configure revision 1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-vesa 2.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-vesa'
593 PACKAGE_TARNAME='xf86-video-vesa'
594 PACKAGE_VERSION='2.4.0'
595 PACKAGE_STRING='xf86-video-vesa 2.4.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 PCIACCESS_LIBS
642 PCIACCESS_CFLAGS
643 XEXT_LIBS
644 XEXT_CFLAGS
645 XORG_LIBS
646 XORG_CFLAGS
647 moduledir
648 LT_SYS_LIBRARY_PATH
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 LIBTOOL
667 MAN_SUBSTS
668 XORG_MAN_PAGE
669 ADMIN_MAN_DIR
670 DRIVER_MAN_DIR
671 MISC_MAN_DIR
672 FILE_MAN_DIR
673 LIB_MAN_DIR
674 APP_MAN_DIR
675 ADMIN_MAN_SUFFIX
676 DRIVER_MAN_SUFFIX
677 MISC_MAN_SUFFIX
678 FILE_MAN_SUFFIX
679 LIB_MAN_SUFFIX
680 APP_MAN_SUFFIX
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 EGREP
699 GREP
700 CPP
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__quote
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_selective_werror
789 enable_strict_compilation
790 enable_static
791 enable_shared
792 with_pic
793 enable_fast_install
794 with_aix_soname
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 with_xorg_module_dir
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP
809 PKG_CONFIG
810 PKG_CONFIG_PATH
811 PKG_CONFIG_LIBDIR
812 LT_SYS_LIBRARY_PATH
813 XORG_CFLAGS
814 XORG_LIBS
815 XEXT_CFLAGS
816 XEXT_LIBS
817 PCIACCESS_CFLAGS
818 PCIACCESS_LIBS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures xf86-video-vesa 2.4.0 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of xf86-video-vesa 2.4.0:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --disable-selective-werror
1444 Turn off selective compiler errors. (default:
1445 enabled)
1446 --enable-strict-compilation
1447 Enable all warnings from compiler and make them
1448 errors (default: disabled)
1449 --enable-static[=PKGS] build static libraries [default=no]
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-aix-soname=aix|svr4|both
1461 shared library versioning (aka "SONAME") variant to
1462 provide on AIX, [default=aix].
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1465 compiler's sysroot if not specified).
1466 --with-xorg-module-dir=DIR
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 PKG_CONFIG path to pkg-config utility
1478 PKG_CONFIG_PATH
1479 directories to add to pkg-config's search path
1480 PKG_CONFIG_LIBDIR
1481 path overriding pkg-config's built-in search path
1482 LT_SYS_LIBRARY_PATH
1483 User-defined run-time library search path.
1484 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1485 XORG_LIBS linker flags for XORG, overriding pkg-config
1486 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1487 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1488 PCIACCESS_CFLAGS
1489 C compiler flags for PCIACCESS, overriding pkg-config
1490 PCIACCESS_LIBS
1491 linker flags for PCIACCESS, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 xf86-video-vesa configure 2.4.0
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612 # ---------------------------------------------
1613 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_decl ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 as_decl_name=`echo $2|sed 's/ *(.*//'`
1619 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main ()
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_decl
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_compile
1766
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 test -x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_link
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by xf86-video-vesa $as_me 2.4.0, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232 ac_config_headers="$ac_config_headers config.h"
2233
2234 ac_aux_dir=
2235 for ac_dir in . "$srcdir"/.; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2248 fi
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2252 fi
2253
2254 # These three variables are undocumented and unsupported,
2255 # and are intended to be withdrawn in a future Autoconf release.
2256 # They can cause serious problems if a builder's source tree is in a directory
2257 # whose full name contains unusual characters.
2258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2261
2262
2263
2264 # Initialize Automake
2265 am__api_version='1.15'
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 case $am_aux_dir in
2442 *\ * | *\ *)
2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 *)
2445 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446 esac
2447 fi
2448 # Use eval to expand $SHELL
2449 if eval "$MISSING --is-lightweight"; then
2450 am_missing_run="$MISSING "
2451 else
2452 am_missing_run=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455 fi
2456
2457 if test x"${install_sh+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 *)
2462 install_sh="\${SHELL} $am_aux_dir/install-sh"
2463 esac
2464 fi
2465
2466 # Installed binaries are usually stripped using 'strip' when the user
2467 # run "make install-strip". However 'strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the 'STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_STRIP+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568 if test -z "$MKDIR_P"; then
2569 if ${ac_cv_path_mkdir+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_prog in mkdir gmkdir; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581 'mkdir (GNU coreutils) '* | \
2582 'mkdir (coreutils) '* | \
2583 'mkdir (fileutils) '4.1*)
2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 break 3;;
2586 esac
2587 done
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593
2594 test -d ./--version && rmdir ./--version
2595 if test "${ac_cv_path_mkdir+set}" = set; then
2596 MKDIR_P="$ac_cv_path_mkdir -p"
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for MKDIR_P within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 MKDIR_P="$ac_install_sh -d"
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606 $as_echo "$MKDIR_P" >&6; }
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 # Check whether --enable-silent-rules was given.
2691 if test "${enable_silent_rules+set}" = set; then :
2692 enableval=$enable_silent_rules;
2693 fi
2694
2695 case $enable_silent_rules in # (((
2696 yes) AM_DEFAULT_VERBOSITY=0;;
2697 no) AM_DEFAULT_VERBOSITY=1;;
2698 *) AM_DEFAULT_VERBOSITY=1;;
2699 esac
2700 am_make=${MAKE-make}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703 if ${am_cv_make_support_nested_variables+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if $as_echo 'TRUE=$(BAR$(V))
2707 BAR0=false
2708 BAR1=true
2709 V=1
2710 am__doit:
2711 @$(TRUE)
2712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713 am_cv_make_support_nested_variables=yes
2714 else
2715 am_cv_make_support_nested_variables=no
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2720 if test $am_cv_make_support_nested_variables = yes; then
2721 AM_V='$(V)'
2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723 else
2724 AM_V=$AM_DEFAULT_VERBOSITY
2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726 fi
2727 AM_BACKSLASH='\'
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750 PACKAGE='xf86-video-vesa'
2751 VERSION='2.4.0'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # For better backward compatibility. To be removed once Automake 1.9.x
2780 # dies out for good. For more background, see:
2781 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783 mkdir_p='$(MKDIR_P)'
2784
2785 # We need awk for the "check" target (and possibly the TAP driver). The
2786 # system "awk" is bad on some platforms.
2787 # Always define AMTAR for backward compatibility. Yes, it's still used
2788 # in the wild :-( We should find a proper way to deprecate it ...
2789 AMTAR='$${TAR-tar}'
2790
2791
2792 # We'll loop over all known methods to create a tar archive until one works.
2793 _am_tools='gnutar pax cpio none'
2794
2795 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802 # POSIX will say in a future version that running "rm -f" with no argument
2803 # is OK; and we want to be able to make that assumption in our Makefile
2804 # recipes. So use an aggressive probe to check that the usage we want is
2805 # actually supported "in the wild" to an acceptable degree.
2806 # See automake bug#10828.
2807 # To make any issue more visible, cause the running configure to be aborted
2808 # by default if the 'rm' program in use doesn't match our expectations; the
2809 # user can still override this though.
2810 if rm -f && rm -fr && rm -rf; then : OK; else
2811 cat >&2 <<'END'
2812 Oops!
2813
2814 Your 'rm' program seems unable to run without file operands specified
2815 on the command line, even when the '-f' option is present. This is contrary
2816 to the behaviour of most rm programs out there, and not conforming with
2817 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819 Please tell bug-automake@gnu.org about your system, including the value
2820 of your $PATH and any error possibly output before this message. This
2821 can help us improve future automake versions.
2822
2823 END
2824 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825 echo 'Configuration will proceed anyway, since you have set the' >&2
2826 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827 echo >&2
2828 else
2829 cat >&2 <<'END'
2830 Aborting the configuration process, to ensure you take notice of the issue.
2831
2832 You can download and install GNU coreutils to get an 'rm' implementation
2833 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2834
2835 If you want to complete the configuration process using your problematic
2836 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837 to "yes", and re-run configure.
2838
2839 END
2840 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841 fi
2842 fi
2843
2844
2845 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 DEPDIR="${am__leading_dot}deps"
2858
2859 ac_config_commands="$ac_config_commands depfiles"
2860
2861
2862 am_make=${MAKE-make}
2863 cat > confinc << 'END'
2864 am__doit:
2865 @echo this is the am__doit target
2866 .PHONY: am__doit
2867 END
2868 # If we don't find an include directive, just comment out the code.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2871 am__include="#"
2872 am__quote=
2873 _am_result=none
2874 # First try GNU make style include.
2875 echo "include confinc" > confmf
2876 # Ignore all kinds of additional output from 'make'.
2877 case `$am_make -s -f confmf 2> /dev/null` in #(
2878 *the\ am__doit\ target*)
2879 am__include=include
2880 am__quote=
2881 _am_result=GNU
2882 ;;
2883 esac
2884 # Now try BSD make style include.
2885 if test "$am__include" = "#"; then
2886 echo '.include "confinc"' > confmf
2887 case `$am_make -s -f confmf 2> /dev/null` in #(
2888 *the\ am__doit\ target*)
2889 am__include=.include
2890 am__quote="\""
2891 _am_result=BSD
2892 ;;
2893 esac
2894 fi
2895
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2898 $as_echo "$_am_result" >&6; }
2899 rm -f confinc confmf
2900
2901 # Check whether --enable-dependency-tracking was given.
2902 if test "${enable_dependency_tracking+set}" = set; then :
2903 enableval=$enable_dependency_tracking;
2904 fi
2905
2906 if test "x$enable_dependency_tracking" != xno; then
2907 am_depcomp="$ac_aux_dir/depcomp"
2908 AMDEPBACKSLASH='\'
2909 am__nodep='_no'
2910 fi
2911 if test "x$enable_dependency_tracking" != xno; then
2912 AMDEP_TRUE=
2913 AMDEP_FALSE='#'
2914 else
2915 AMDEP_TRUE='#'
2916 AMDEP_FALSE=
2917 fi
2918
2919
2920 ac_ext=c
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_CC"; then
2965 ac_ct_CC=$CC
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_CC="gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996 $as_echo "$ac_ct_CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 CC=$ac_ct_CC
3012 fi
3013 else
3014 CC="$ac_cv_prog_CC"
3015 fi
3016
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_CC="${ac_tool_prefix}cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 fi
3058 if test -z "$CC"; then
3059 # Extract the first word of "cc", so it can be a program name with args.
3060 set dummy cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 ac_prog_rejected=no
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078 ac_prog_rejected=yes
3079 continue
3080 fi
3081 ac_cv_prog_CC="cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 if test $ac_prog_rejected = yes; then
3090 # We found a bogon in the path, so make sure we never use it.
3091 set dummy $ac_cv_prog_CC
3092 shift
3093 if test $# != 0; then
3094 # We chose a different compiler from the bogus one.
3095 # However, it has the same basename, so the bogon will be chosen
3096 # first if we set CC to just the basename; use the full file name.
3097 shift
3098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 fi
3100 fi
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 fi
3114 if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 test -n "$CC" && break
3156 done
3157 fi
3158 if test -z "$CC"; then
3159 ac_ct_CC=$CC
3160 for ac_prog in cl.exe
3161 do
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_CC="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 test -n "$ac_ct_CC" && break
3200 done
3201
3202 if test "x$ac_ct_CC" = x; then
3203 CC=""
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 CC=$ac_ct_CC
3212 fi
3213 fi
3214
3215 fi
3216
3217
3218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details" "$LINENO" 5; }
3222
3223 # Provide some information about the compiler.
3224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225 set X $ac_compile
3226 ac_compiler=$2
3227 for ac_option in --version -v -V -qversion; do
3228 { { ac_try="$ac_compiler $ac_option >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236 ac_status=$?
3237 if test -s conftest.err; then
3238 sed '10a\
3239 ... rest of stderr output deleted ...
3240 10q' conftest.err >conftest.er1
3241 cat conftest.er1 >&5
3242 fi
3243 rm -f conftest.er1 conftest.err
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 done
3247
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files_save=$ac_clean_files
3260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261 # Try to create an executable without -o first, disregard a.out.
3262 # It will help us diagnose broken compilers, and finding out an intuition
3263 # of exeext.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265 $as_echo_n "checking whether the C compiler works... " >&6; }
3266 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268 # The possible output files:
3269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
3271 ac_rmfiles=
3272 for ac_file in $ac_files
3273 do
3274 case $ac_file in
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 esac
3278 done
3279 rm -f $ac_rmfiles
3280
3281 if { { ac_try="$ac_link_default"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_link_default") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3298 do
3299 test -f "$ac_file" || continue
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302 ;;
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 fi
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
3317 break;;
3318 * )
3319 break;;
3320 esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324 else
3325 ac_file=''
3326 fi
3327 if test -z "$ac_file"; then :
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error 77 "C compiler cannot create executables
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342 $as_echo_n "checking for C compiler default output file name... " >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344 $as_echo "$ac_file" >&6; }
3345 ac_exeext=$ac_cv_exeext
3346
3347 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3368 case $ac_file in
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 break;;
3372 * ) break;;
3373 esac
3374 done
3375 else
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 rm -f conftest conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3384
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #include <stdio.h>
3391 int
3392 main ()
3393 {
3394 FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 ac_clean_files="$ac_clean_files conftest.out"
3402 # Check that the compiler produces executables we can run. If not, either
3403 # the compiler is broken, or we cross compile.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405 $as_echo_n "checking whether we are cross compiling... " >&6; }
3406 if test "$cross_compiling" != yes; then
3407 { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 if { ac_try='./conftest$ac_cv_exeext'
3419 { { case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_try") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; }; then
3429 cross_compiling=no
3430 else
3431 if test "$cross_compiling" = maybe; then
3432 cross_compiling=yes
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot run C compiled programs.
3437 If you meant to cross compile, use \`--host'.
3438 See \`config.log' for more details" "$LINENO" 5; }
3439 fi
3440 fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443 $as_echo "$cross_compiling" >&6; }
3444
3445 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if ${ac_cv_objext+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482 done
3483 else
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if ${ac_cv_c_compiler_gnu+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509 #ifndef __GNUC__
3510 choke me
3511 #endif
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_compiler_gnu=yes
3519 else
3520 ac_compiler_gnu=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530 else
3531 GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if ${ac_cv_prog_cc_g+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3557 else
3558 CFLAGS=""
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572 else
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606 else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if ${ac_cv_prog_cc_c89+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 struct stat;
3625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3626 struct buf { int x; };
3627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628 static char *e (p, i)
3629 char **p;
3630 int i;
3631 {
3632 return p[i];
3633 }
3634 static char *f (char * (*g) (char **, int), char **p, ...)
3635 {
3636 char *s;
3637 va_list v;
3638 va_start (v,p);
3639 s = g (p, va_arg (v,int));
3640 va_end (v);
3641 return s;
3642 }
3643
3644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3645 function prototypes and stuff, but not '\xHH' hex character constants.
3646 These don't provoke an error unfortunately, instead are silently treated
3647 as 'x'. The following induces an error, until -std is added to get
3648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3649 array size at least. It's necessary to write '\x00'==0 to get something
3650 that's true only with -std. */
3651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
3653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654 inside strings and character constants. */
3655 #define FOO(x) 'x'
3656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 int argc;
3663 char **argv;
3664 int
3665 main ()
3666 {
3667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 do
3675 CC="$ac_save_CC $ac_arg"
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_prog_cc_c89=$ac_arg
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext
3680 test "x$ac_cv_prog_cc_c89" != "xno" && break
3681 done
3682 rm -f conftest.$ac_ext
3683 CC=$ac_save_CC
3684
3685 fi
3686 # AC_CACHE_VAL
3687 case "x$ac_cv_prog_cc_c89" in
3688 x)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3691 xno)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3694 *)
3695 CC="$CC $ac_cv_prog_cc_c89"
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698 esac
3699 if test "x$ac_cv_prog_cc_c89" != xno; then :
3700
3701 fi
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3715 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3716 if ${am_cv_prog_cc_c_o+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 # Make sure it works both with $CC and with simple cc.
3731 # Following AC_PROG_CC_C_O, we do the test twice because some
3732 # compilers refuse to overwrite an existing .o file with -o,
3733 # though they will create one.
3734 am_cv_prog_cc_c_o=yes
3735 for am_i in 1 2; do
3736 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3737 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } \
3741 && test -f conftest2.$ac_objext; then
3742 : OK
3743 else
3744 am_cv_prog_cc_c_o=no
3745 break
3746 fi
3747 done
3748 rm -f core conftest*
3749 unset am_i
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3752 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3753 if test "$am_cv_prog_cc_c_o" != yes; then
3754 # Losing compiler, so override with the script.
3755 # FIXME: It is wrong to rewrite CC.
3756 # But if we don't then we get into trouble of one sort or another.
3757 # A longer-term fix would be to have automake use am__CC in this case,
3758 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3759 CC="$am_aux_dir/compile $CC"
3760 fi
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768 depcc="$CC" am_compiler_list=
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771 $as_echo_n "checking dependency style of $depcc... " >&6; }
3772 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named 'D' -- because '-MD' means "put the output
3780 # in D".
3781 rm -rf conftest.dir
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3794
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3816 # Solaris 10 /bin/sh.
3817 echo '/* dummy */' > sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle '-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs.
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
3832 nosideeffect)
3833 # After this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested.
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
3841 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3842 # This compiler won't grok '-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3893 fi
3894
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3897 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3898 if ${ac_cv_prog_cc_c99+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 ac_cv_prog_cc_c99=no
3902 ac_save_CC=$CC
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <stdarg.h>
3906 #include <stdbool.h>
3907 #include <stdlib.h>
3908 #include <wchar.h>
3909 #include <stdio.h>
3910
3911 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3912 #define debug(...) fprintf (stderr, __VA_ARGS__)
3913 #define showlist(...) puts (#__VA_ARGS__)
3914 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3915 static void
3916 test_varargs_macros (void)
3917 {
3918 int x = 1234;
3919 int y = 5678;
3920 debug ("Flag");
3921 debug ("X = %d\n", x);
3922 showlist (The first, second, and third items.);
3923 report (x>y, "x is %d but y is %d", x, y);
3924 }
3925
3926 // Check long long types.
3927 #define BIG64 18446744073709551615ull
3928 #define BIG32 4294967295ul
3929 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3930 #if !BIG_OK
3931 your preprocessor is broken;
3932 #endif
3933 #if BIG_OK
3934 #else
3935 your preprocessor is broken;
3936 #endif
3937 static long long int bignum = -9223372036854775807LL;
3938 static unsigned long long int ubignum = BIG64;
3939
3940 struct incomplete_array
3941 {
3942 int datasize;
3943 double data[];
3944 };
3945
3946 struct named_init {
3947 int number;
3948 const wchar_t *name;
3949 double average;
3950 };
3951
3952 typedef const char *ccp;
3953
3954 static inline int
3955 test_restrict (ccp restrict text)
3956 {
3957 // See if C++-style comments work.
3958 // Iterate through items via the restricted pointer.
3959 // Also check for declarations in for loops.
3960 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3961 continue;
3962 return 0;
3963 }
3964
3965 // Check varargs and va_copy.
3966 static void
3967 test_varargs (const char *format, ...)
3968 {
3969 va_list args;
3970 va_start (args, format);
3971 va_list args_copy;
3972 va_copy (args_copy, args);
3973
3974 const char *str;
3975 int number;
3976 float fnumber;
3977
3978 while (*format)
3979 {
3980 switch (*format++)
3981 {
3982 case 's': // string
3983 str = va_arg (args_copy, const char *);
3984 break;
3985 case 'd': // int
3986 number = va_arg (args_copy, int);
3987 break;
3988 case 'f': // float
3989 fnumber = va_arg (args_copy, double);
3990 break;
3991 default:
3992 break;
3993 }
3994 }
3995 va_end (args_copy);
3996 va_end (args);
3997 }
3998
3999 int
4000 main ()
4001 {
4002
4003 // Check bool.
4004 _Bool success = false;
4005
4006 // Check restrict.
4007 if (test_restrict ("String literal") == 0)
4008 success = true;
4009 char *restrict newvar = "Another string";
4010
4011 // Check varargs.
4012 test_varargs ("s, d' f .", "string", 65, 34.234);
4013 test_varargs_macros ();
4014
4015 // Check flexible array members.
4016 struct incomplete_array *ia =
4017 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4018 ia->datasize = 10;
4019 for (int i = 0; i < ia->datasize; ++i)
4020 ia->data[i] = i * 1.234;
4021
4022 // Check named initializers.
4023 struct named_init ni = {
4024 .number = 34,
4025 .name = L"Test wide string",
4026 .average = 543.34343,
4027 };
4028
4029 ni.number = 58;
4030
4031 int dynamic_array[ni.number];
4032 dynamic_array[ni.number - 1] = 543;
4033
4034 // work around unused variable warnings
4035 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4036 || dynamic_array[ni.number - 1] != 543);
4037
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4043 do
4044 CC="$ac_save_CC $ac_arg"
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_c99=$ac_arg
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext
4049 test "x$ac_cv_prog_cc_c99" != "xno" && break
4050 done
4051 rm -f conftest.$ac_ext
4052 CC=$ac_save_CC
4053
4054 fi
4055 # AC_CACHE_VAL
4056 case "x$ac_cv_prog_cc_c99" in
4057 x)
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;;
4060 xno)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062 $as_echo "unsupported" >&6; } ;;
4063 *)
4064 CC="$CC $ac_cv_prog_cc_c99"
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4066 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4067 esac
4068 if test "x$ac_cv_prog_cc_c99" != xno; then :
4069
4070 fi
4071
4072
4073
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4081 # On Suns, sometimes $CPP names a directory.
4082 if test -n "$CPP" && test -d "$CPP"; then
4083 CPP=
4084 fi
4085 if test -z "$CPP"; then
4086 if ${ac_cv_prog_CPP+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 # Double quotes because CPP needs to be expanded
4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4091 do
4092 ac_preproc_ok=false
4093 for ac_c_preproc_warn_flag in '' yes
4094 do
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #ifdef __STDC__
4104 # include <limits.h>
4105 #else
4106 # include <assert.h>
4107 #endif
4108 Syntax error
4109 _ACEOF
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111
4112 else
4113 # Broken: fails on valid input.
4114 continue
4115 fi
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125 # Broken: success on invalid input.
4126 continue
4127 else
4128 # Passes both tests.
4129 ac_preproc_ok=:
4130 break
4131 fi
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.i conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then :
4138 break
4139 fi
4140
4141 done
4142 ac_cv_prog_CPP=$CPP
4143
4144 fi
4145 CPP=$ac_cv_prog_CPP
4146 else
4147 ac_cv_prog_CPP=$CPP
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4150 $as_echo "$CPP" >&6; }
4151 ac_preproc_ok=false
4152 for ac_c_preproc_warn_flag in '' yes
4153 do
4154 # Use a header file that comes with gcc, so configuring glibc
4155 # with a fresh cross-compiler works.
4156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 # <limits.h> exists even on freestanding compilers.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4159 # not just through cpp. "Syntax error" is here to catch this case.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #ifdef __STDC__
4163 # include <limits.h>
4164 #else
4165 # include <assert.h>
4166 #endif
4167 Syntax error
4168 _ACEOF
4169 if ac_fn_c_try_cpp "$LINENO"; then :
4170
4171 else
4172 # Broken: fails on valid input.
4173 continue
4174 fi
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177 # OK, works on sane cases. Now check whether nonexistent headers
4178 # can be detected and how.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <ac_nonexistent.h>
4182 _ACEOF
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4184 # Broken: success on invalid input.
4185 continue
4186 else
4187 # Passes both tests.
4188 ac_preproc_ok=:
4189 break
4190 fi
4191 rm -f conftest.err conftest.i conftest.$ac_ext
4192
4193 done
4194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.i conftest.err conftest.$ac_ext
4196 if $ac_preproc_ok; then :
4197
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log' for more details" "$LINENO" 5; }
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if ${ac_cv_path_GREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_GREP" || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_GREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_GREP"; then
4263 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_GREP=$GREP
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4271 $as_echo "$ac_cv_path_GREP" >&6; }
4272 GREP="$ac_cv_path_GREP"
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4276 $as_echo_n "checking for egrep... " >&6; }
4277 if ${ac_cv_path_EGREP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4281 then ac_cv_path_EGREP="$GREP -E"
4282 else
4283 if test -z "$EGREP"; then
4284 ac_path_EGREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in egrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_EGREP" || continue
4295 # Check for GNU ac_path_EGREP and select it if it is found.
4296 # Check for GNU $ac_path_EGREP
4297 case `"$ac_path_EGREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'EGREP' >> "conftest.nl"
4309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_EGREP="$ac_path_EGREP"
4315 ac_path_EGREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_EGREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_EGREP"; then
4329 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335 fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4343 $as_echo_n "checking for ANSI C header files... " >&6; }
4344 if ${ac_cv_header_stdc+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <stdlib.h>
4350 #include <stdarg.h>
4351 #include <string.h>
4352 #include <float.h>
4353
4354 int
4355 main ()
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_header_stdc=yes
4364 else
4365 ac_cv_header_stdc=no
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368
4369 if test $ac_cv_header_stdc = yes; then
4370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <string.h>
4374
4375 _ACEOF
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "memchr" >/dev/null 2>&1; then :
4378
4379 else
4380 ac_cv_header_stdc=no
4381 fi
4382 rm -f conftest*
4383
4384 fi
4385
4386 if test $ac_cv_header_stdc = yes; then
4387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <stdlib.h>
4391
4392 _ACEOF
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "free" >/dev/null 2>&1; then :
4395
4396 else
4397 ac_cv_header_stdc=no
4398 fi
4399 rm -f conftest*
4400
4401 fi
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4405 if test "$cross_compiling" = yes; then :
4406 :
4407 else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <ctype.h>
4411 #include <stdlib.h>
4412 #if ((' ' & 0x0FF) == 0x020)
4413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415 #else
4416 # define ISLOWER(c) \
4417 (('a' <= (c) && (c) <= 'i') \
4418 || ('j' <= (c) && (c) <= 'r') \
4419 || ('s' <= (c) && (c) <= 'z'))
4420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4421 #endif
4422
4423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4424 int
4425 main ()
4426 {
4427 int i;
4428 for (i = 0; i < 256; i++)
4429 if (XOR (islower (i), ISLOWER (i))
4430 || toupper (i) != TOUPPER (i))
4431 return 2;
4432 return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_run "$LINENO"; then :
4436
4437 else
4438 ac_cv_header_stdc=no
4439 fi
4440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4441 conftest.$ac_objext conftest.beam conftest.$ac_ext
4442 fi
4443
4444 fi
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4447 $as_echo "$ac_cv_header_stdc" >&6; }
4448 if test $ac_cv_header_stdc = yes; then
4449
4450 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4451
4452 fi
4453
4454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4455 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4456 inttypes.h stdint.h unistd.h
4457 do :
4458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4460 "
4461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464 _ACEOF
4465
4466 fi
4467
4468 done
4469
4470
4471
4472
4473
4474
4475 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4476 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4477 CLANGCC="yes"
4478 else
4479 CLANGCC="no"
4480 fi
4481
4482 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4483 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4484 INTELCC="yes"
4485 else
4486 INTELCC="no"
4487 fi
4488
4489 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4490 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4491 SUNCC="yes"
4492 else
4493 SUNCC="no"
4494 fi
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 case $PKG_CONFIG in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 ;;
4534 esac
4535 fi
4536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4537 if test -n "$PKG_CONFIG"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4539 $as_echo "$PKG_CONFIG" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546 fi
4547 if test -z "$ac_cv_path_PKG_CONFIG"; then
4548 ac_pt_PKG_CONFIG=$PKG_CONFIG
4549 # Extract the first word of "pkg-config", so it can be a program name with args.
4550 set dummy pkg-config; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 case $ac_pt_PKG_CONFIG in
4557 [\\/]* | ?:[\\/]*)
4558 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4559 ;;
4560 *)
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 ;;
4577 esac
4578 fi
4579 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4580 if test -n "$ac_pt_PKG_CONFIG"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4582 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588 if test "x$ac_pt_PKG_CONFIG" = x; then
4589 PKG_CONFIG=""
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 PKG_CONFIG=$ac_pt_PKG_CONFIG
4598 fi
4599 else
4600 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4601 fi
4602
4603 fi
4604 if test -n "$PKG_CONFIG"; then
4605 _pkg_min_version=0.9.0
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4607 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4608 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610 $as_echo "yes" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 PKG_CONFIG=""
4615 fi
4616 fi
4617 # Make sure we can run config.sub.
4618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4619 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4622 $as_echo_n "checking build system type... " >&6; }
4623 if ${ac_cv_build+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 ac_build_alias=$build_alias
4627 test "x$ac_build_alias" = x &&
4628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4629 test "x$ac_build_alias" = x &&
4630 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4636 $as_echo "$ac_cv_build" >&6; }
4637 case $ac_cv_build in
4638 *-*-*) ;;
4639 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4640 esac
4641 build=$ac_cv_build
4642 ac_save_IFS=$IFS; IFS='-'
4643 set x $ac_cv_build
4644 shift
4645 build_cpu=$1
4646 build_vendor=$2
4647 shift; shift
4648 # Remember, the first character of IFS is used to create $*,
4649 # except with old shells:
4650 build_os=$*
4651 IFS=$ac_save_IFS
4652 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4656 $as_echo_n "checking host system type... " >&6; }
4657 if ${ac_cv_host+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test "x$host_alias" = x; then
4661 ac_cv_host=$ac_cv_build
4662 else
4663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4665 fi
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4669 $as_echo "$ac_cv_host" >&6; }
4670 case $ac_cv_host in
4671 *-*-*) ;;
4672 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4673 esac
4674 host=$ac_cv_host
4675 ac_save_IFS=$IFS; IFS='-'
4676 set x $ac_cv_host
4677 shift
4678 host_cpu=$1
4679 host_vendor=$2
4680 shift; shift
4681 # Remember, the first character of IFS is used to create $*,
4682 # except with old shells:
4683 host_os=$*
4684 IFS=$ac_save_IFS
4685 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4689 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4690 if ${ac_cv_path_SED+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4694 for ac_i in 1 2 3 4 5 6 7; do
4695 ac_script="$ac_script$as_nl$ac_script"
4696 done
4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4698 { ac_script=; unset ac_script;}
4699 if test -z "$SED"; then
4700 ac_path_SED_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in sed gsed; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_SED" || continue
4711 # Check for GNU ac_path_SED and select it if it is found.
4712 # Check for GNU $ac_path_SED
4713 case `"$ac_path_SED" --version 2>&1` in
4714 *GNU*)
4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4716 *)
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4720 do
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo '' >> "conftest.nl"
4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_SED_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_SED="$ac_path_SED"
4731 ac_path_SED_max=$ac_count
4732 fi
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4738
4739 $ac_path_SED_found && break 3
4740 done
4741 done
4742 done
4743 IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_SED"; then
4745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4746 fi
4747 else
4748 ac_cv_path_SED=$SED
4749 fi
4750
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4753 $as_echo "$ac_cv_path_SED" >&6; }
4754 SED="$ac_cv_path_SED"
4755 rm -f conftest.sed
4756
4757
4758
4759
4760
4761
4762 # Check whether --enable-selective-werror was given.
4763 if test "${enable_selective_werror+set}" = set; then :
4764 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4765 else
4766 SELECTIVE_WERROR=yes
4767 fi
4768
4769
4770
4771
4772
4773 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4774 if test "x$SUNCC" = "xyes"; then
4775 BASE_CFLAGS="-v"
4776 else
4777 BASE_CFLAGS=""
4778 fi
4779
4780 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 xorg_testset_save_CFLAGS="$CFLAGS"
4795
4796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 int i;
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 xorg_cv_cc_flag_unknown_warning_option=yes
4809 else
4810 xorg_cv_cc_flag_unknown_warning_option=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4818 fi
4819
4820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823 fi
4824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 int i;
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 xorg_cv_cc_flag_unused_command_line_argument=yes
4836 else
4837 xorg_cv_cc_flag_unused_command_line_argument=no
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4844 CFLAGS="$xorg_testset_save_CFLAGS"
4845 fi
4846
4847 found="no"
4848
4849 if test $found = "no" ; then
4850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 fi
4853
4854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856 fi
4857
4858 CFLAGS="$CFLAGS -Wall"
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4861 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4862 cacheid=xorg_cv_cc_flag__Wall
4863 if eval \${$cacheid+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 int i;
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_link "$LINENO"; then :
4878 eval $cacheid=yes
4879 else
4880 eval $cacheid=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4884 fi
4885
4886
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888
4889 eval supported=\$$cacheid
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4891 $as_echo "$supported" >&6; }
4892 if test "$supported" = "yes" ; then
4893 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4894 found="yes"
4895 fi
4896 fi
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 xorg_testset_save_CFLAGS="$CFLAGS"
4913
4914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 int i;
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 xorg_cv_cc_flag_unknown_warning_option=yes
4927 else
4928 xorg_cv_cc_flag_unknown_warning_option=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936 fi
4937
4938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 fi
4942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 int i;
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 xorg_cv_cc_flag_unused_command_line_argument=yes
4954 else
4955 xorg_cv_cc_flag_unused_command_line_argument=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 found="no"
4966
4967 if test $found = "no" ; then
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 fi
4971
4972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974 fi
4975
4976 CFLAGS="$CFLAGS -Wpointer-arith"
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4979 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4980 cacheid=xorg_cv_cc_flag__Wpointer_arith
4981 if eval \${$cacheid+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 int i;
4987 int
4988 main ()
4989 {
4990
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 if ac_fn_c_try_link "$LINENO"; then :
4996 eval $cacheid=yes
4997 else
4998 eval $cacheid=no
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
5002 fi
5003
5004
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006
5007 eval supported=\$$cacheid
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5009 $as_echo "$supported" >&6; }
5010 if test "$supported" = "yes" ; then
5011 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5012 found="yes"
5013 fi
5014 fi
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 xorg_testset_save_CFLAGS="$CFLAGS"
5031
5032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 xorg_cv_cc_flag_unknown_warning_option=yes
5045 else
5046 xorg_cv_cc_flag_unknown_warning_option=no
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5053 CFLAGS="$xorg_testset_save_CFLAGS"
5054 fi
5055
5056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059 fi
5060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int i;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 xorg_cv_cc_flag_unused_command_line_argument=yes
5072 else
5073 xorg_cv_cc_flag_unused_command_line_argument=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5080 CFLAGS="$xorg_testset_save_CFLAGS"
5081 fi
5082
5083 found="no"
5084
5085 if test $found = "no" ; then
5086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088 fi
5089
5090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092 fi
5093
5094 CFLAGS="$CFLAGS -Wmissing-declarations"
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5097 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5098 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5099 if eval \${$cacheid+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 int i;
5105 int
5106 main ()
5107 {
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 eval $cacheid=yes
5115 else
5116 eval $cacheid=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 fi
5121
5122
5123 CFLAGS="$xorg_testset_save_CFLAGS"
5124
5125 eval supported=\$$cacheid
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5127 $as_echo "$supported" >&6; }
5128 if test "$supported" = "yes" ; then
5129 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5130 found="yes"
5131 fi
5132 fi
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 xorg_testset_save_CFLAGS="$CFLAGS"
5149
5150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 xorg_cv_cc_flag_unknown_warning_option=yes
5163 else
5164 xorg_cv_cc_flag_unknown_warning_option=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172 fi
5173
5174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177 fi
5178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 int i;
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 xorg_cv_cc_flag_unused_command_line_argument=yes
5190 else
5191 xorg_cv_cc_flag_unused_command_line_argument=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5198 CFLAGS="$xorg_testset_save_CFLAGS"
5199 fi
5200
5201 found="no"
5202
5203 if test $found = "no" ; then
5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207
5208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210 fi
5211
5212 CFLAGS="$CFLAGS -Wformat=2"
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5215 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5216 cacheid=xorg_cv_cc_flag__Wformat_2
5217 if eval \${$cacheid+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 int i;
5223 int
5224 main ()
5225 {
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 eval $cacheid=yes
5233 else
5234 eval $cacheid=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 fi
5239
5240
5241 CFLAGS="$xorg_testset_save_CFLAGS"
5242
5243 eval supported=\$$cacheid
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5245 $as_echo "$supported" >&6; }
5246 if test "$supported" = "yes" ; then
5247 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5248 found="yes"
5249 fi
5250 fi
5251
5252 if test $found = "no" ; then
5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255 fi
5256
5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259 fi
5260
5261 CFLAGS="$CFLAGS -Wformat"
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5264 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5265 cacheid=xorg_cv_cc_flag__Wformat
5266 if eval \${$cacheid+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_c_try_link "$LINENO"; then :
5281 eval $cacheid=yes
5282 else
5283 eval $cacheid=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 fi
5288
5289
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291
5292 eval supported=\$$cacheid
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5294 $as_echo "$supported" >&6; }
5295 if test "$supported" = "yes" ; then
5296 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5297 found="yes"
5298 fi
5299 fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 xorg_testset_save_CFLAGS="$CFLAGS"
5318
5319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5322 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5323 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 int i;
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 xorg_cv_cc_flag_unknown_warning_option=yes
5332 else
5333 xorg_cv_cc_flag_unknown_warning_option=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5338 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5340 CFLAGS="$xorg_testset_save_CFLAGS"
5341 fi
5342
5343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346 fi
5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5349 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5350 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 int i;
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 xorg_cv_cc_flag_unused_command_line_argument=yes
5359 else
5360 xorg_cv_cc_flag_unused_command_line_argument=no
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5365 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5367 CFLAGS="$xorg_testset_save_CFLAGS"
5368 fi
5369
5370 found="no"
5371
5372 if test $found = "no" ; then
5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 fi
5376
5377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5379 fi
5380
5381 CFLAGS="$CFLAGS -Wstrict-prototypes"
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5384 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5385 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5386 if eval \${$cacheid+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 int i;
5392 int
5393 main ()
5394 {
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_link "$LINENO"; then :
5401 eval $cacheid=yes
5402 else
5403 eval $cacheid=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 fi
5408
5409
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411
5412 eval supported=\$$cacheid
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5414 $as_echo "$supported" >&6; }
5415 if test "$supported" = "yes" ; then
5416 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5417 found="yes"
5418 fi
5419 fi
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 xorg_testset_save_CFLAGS="$CFLAGS"
5436
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 xorg_cv_cc_flag_unknown_warning_option=yes
5450 else
5451 xorg_cv_cc_flag_unknown_warning_option=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459 fi
5460
5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 int i;
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 xorg_cv_cc_flag_unused_command_line_argument=yes
5477 else
5478 xorg_cv_cc_flag_unused_command_line_argument=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486 fi
5487
5488 found="no"
5489
5490 if test $found = "no" ; then
5491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493 fi
5494
5495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497 fi
5498
5499 CFLAGS="$CFLAGS -Wmissing-prototypes"
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5502 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5503 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5504 if eval \${$cacheid+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 int i;
5510 int
5511 main ()
5512 {
5513
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 if ac_fn_c_try_link "$LINENO"; then :
5519 eval $cacheid=yes
5520 else
5521 eval $cacheid=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 fi
5526
5527
5528 CFLAGS="$xorg_testset_save_CFLAGS"
5529
5530 eval supported=\$$cacheid
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5532 $as_echo "$supported" >&6; }
5533 if test "$supported" = "yes" ; then
5534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5535 found="yes"
5536 fi
5537 fi
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 xorg_testset_save_CFLAGS="$CFLAGS"
5554
5555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 int i;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 xorg_cv_cc_flag_unknown_warning_option=yes
5568 else
5569 xorg_cv_cc_flag_unknown_warning_option=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577 fi
5578
5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 fi
5583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 int i;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 xorg_cv_cc_flag_unused_command_line_argument=yes
5595 else
5596 xorg_cv_cc_flag_unused_command_line_argument=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604 fi
5605
5606 found="no"
5607
5608 if test $found = "no" ; then
5609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 fi
5612
5613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5615 fi
5616
5617 CFLAGS="$CFLAGS -Wnested-externs"
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5620 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5621 cacheid=xorg_cv_cc_flag__Wnested_externs
5622 if eval \${$cacheid+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 int i;
5628 int
5629 main ()
5630 {
5631
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_link "$LINENO"; then :
5637 eval $cacheid=yes
5638 else
5639 eval $cacheid=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 fi
5644
5645
5646 CFLAGS="$xorg_testset_save_CFLAGS"
5647
5648 eval supported=\$$cacheid
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5650 $as_echo "$supported" >&6; }
5651 if test "$supported" = "yes" ; then
5652 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5653 found="yes"
5654 fi
5655 fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 xorg_testset_save_CFLAGS="$CFLAGS"
5672
5673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 xorg_cv_cc_flag_unknown_warning_option=yes
5686 else
5687 xorg_cv_cc_flag_unknown_warning_option=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695 fi
5696
5697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700 fi
5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int i;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 xorg_cv_cc_flag_unused_command_line_argument=yes
5713 else
5714 xorg_cv_cc_flag_unused_command_line_argument=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wbad-function-cast"
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5738 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5740 if eval \${$cacheid+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 int i;
5746 int
5747 main ()
5748 {
5749
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 eval $cacheid=yes
5756 else
5757 eval $cacheid=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 fi
5762
5763
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765
5766 eval supported=\$$cacheid
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5768 $as_echo "$supported" >&6; }
5769 if test "$supported" = "yes" ; then
5770 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5771 found="yes"
5772 fi
5773 fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 xorg_testset_save_CFLAGS="$CFLAGS"
5790
5791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 xorg_cv_cc_flag_unknown_warning_option=yes
5804 else
5805 xorg_cv_cc_flag_unknown_warning_option=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813 fi
5814
5815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 fi
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 int i;
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 xorg_cv_cc_flag_unused_command_line_argument=yes
5831 else
5832 xorg_cv_cc_flag_unused_command_line_argument=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840 fi
5841
5842 found="no"
5843
5844 if test $found = "no" ; then
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 fi
5848
5849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5851 fi
5852
5853 CFLAGS="$CFLAGS -Wold-style-definition"
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5856 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5857 cacheid=xorg_cv_cc_flag__Wold_style_definition
5858 if eval \${$cacheid+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 int i;
5864 int
5865 main ()
5866 {
5867
5868 ;
5869 return 0;
5870 }
5871 _ACEOF
5872 if ac_fn_c_try_link "$LINENO"; then :
5873 eval $cacheid=yes
5874 else
5875 eval $cacheid=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 fi
5880
5881
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883
5884 eval supported=\$$cacheid
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5886 $as_echo "$supported" >&6; }
5887 if test "$supported" = "yes" ; then
5888 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5889 found="yes"
5890 fi
5891 fi
5892
5893 if test $found = "no" ; then
5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896 fi
5897
5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900 fi
5901
5902 CFLAGS="$CFLAGS -fd"
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5905 $as_echo_n "checking if $CC supports -fd... " >&6; }
5906 cacheid=xorg_cv_cc_flag__fd
5907 if eval \${$cacheid+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 int i;
5913 int
5914 main ()
5915 {
5916
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 eval $cacheid=yes
5923 else
5924 eval $cacheid=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5928 fi
5929
5930
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933 eval supported=\$$cacheid
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935 $as_echo "$supported" >&6; }
5936 if test "$supported" = "yes" ; then
5937 BASE_CFLAGS="$BASE_CFLAGS -fd"
5938 found="yes"
5939 fi
5940 fi
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 xorg_testset_save_CFLAGS="$CFLAGS"
5957
5958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 xorg_cv_cc_flag_unknown_warning_option=yes
5971 else
5972 xorg_cv_cc_flag_unknown_warning_option=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5979 CFLAGS="$xorg_testset_save_CFLAGS"
5980 fi
5981
5982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 fi
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 xorg_cv_cc_flag_unused_command_line_argument=yes
5998 else
5999 xorg_cv_cc_flag_unused_command_line_argument=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007 fi
6008
6009 found="no"
6010
6011 if test $found = "no" ; then
6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014 fi
6015
6016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6018 fi
6019
6020 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6023 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6024 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6025 if eval \${$cacheid+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 int i;
6031 int
6032 main ()
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_link "$LINENO"; then :
6040 eval $cacheid=yes
6041 else
6042 eval $cacheid=no
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046 fi
6047
6048
6049 CFLAGS="$xorg_testset_save_CFLAGS"
6050
6051 eval supported=\$$cacheid
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6053 $as_echo "$supported" >&6; }
6054 if test "$supported" = "yes" ; then
6055 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6056 found="yes"
6057 fi
6058 fi
6059
6060
6061
6062
6063
6064 # This chunk adds additional warnings that could catch undesired effects.
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unknown_warning_option=yes
6093 else
6094 xorg_cv_cc_flag_unknown_warning_option=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 fi
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 fi
6141
6142 CFLAGS="$CFLAGS -Wunused"
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6145 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wunused
6147 if eval \${$cacheid+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 int i;
6153 int
6154 main ()
6155 {
6156
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162 eval $cacheid=yes
6163 else
6164 eval $cacheid=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 fi
6169
6170
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173 eval supported=\$$cacheid
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6178 found="yes"
6179 fi
6180 fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unknown_warning_option=yes
6211 else
6212 xorg_cv_cc_flag_unknown_warning_option=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 fi
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 int i;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 xorg_cv_cc_flag_unused_command_line_argument=yes
6238 else
6239 xorg_cv_cc_flag_unused_command_line_argument=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 found="no"
6250
6251 if test $found = "no" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255
6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258 fi
6259
6260 CFLAGS="$CFLAGS -Wuninitialized"
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6263 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6264 cacheid=xorg_cv_cc_flag__Wuninitialized
6265 if eval \${$cacheid+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 int i;
6271 int
6272 main ()
6273 {
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_link "$LINENO"; then :
6280 eval $cacheid=yes
6281 else
6282 eval $cacheid=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286 fi
6287
6288
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291 eval supported=\$$cacheid
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294 if test "$supported" = "yes" ; then
6295 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6296 found="yes"
6297 fi
6298 fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unknown_warning_option=yes
6329 else
6330 xorg_cv_cc_flag_unknown_warning_option=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343 fi
6344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unused_command_line_argument=yes
6356 else
6357 xorg_cv_cc_flag_unused_command_line_argument=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 found="no"
6368
6369 if test $found = "no" ; then
6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372 fi
6373
6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376 fi
6377
6378 CFLAGS="$CFLAGS -Wshadow"
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6381 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6382 cacheid=xorg_cv_cc_flag__Wshadow
6383 if eval \${$cacheid+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 int i;
6389 int
6390 main ()
6391 {
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 eval $cacheid=yes
6399 else
6400 eval $cacheid=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6404 fi
6405
6406
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409 eval supported=\$$cacheid
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412 if test "$supported" = "yes" ; then
6413 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6414 found="yes"
6415 fi
6416 fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unknown_warning_option=yes
6447 else
6448 xorg_cv_cc_flag_unknown_warning_option=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461 fi
6462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 xorg_cv_cc_flag_unused_command_line_argument=yes
6474 else
6475 xorg_cv_cc_flag_unused_command_line_argument=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 found="no"
6486
6487 if test $found = "no" ; then
6488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490 fi
6491
6492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494 fi
6495
6496 CFLAGS="$CFLAGS -Wmissing-noreturn"
6497
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6499 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6500 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6501 if eval \${$cacheid+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 int i;
6507 int
6508 main ()
6509 {
6510
6511 ;
6512 return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"; then :
6516 eval $cacheid=yes
6517 else
6518 eval $cacheid=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 fi
6523
6524
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527 eval supported=\$$cacheid
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530 if test "$supported" = "yes" ; then
6531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6532 found="yes"
6533 fi
6534 fi
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 xorg_cv_cc_flag_unknown_warning_option=yes
6565 else
6566 xorg_cv_cc_flag_unknown_warning_option=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579 fi
6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 xorg_cv_cc_flag_unused_command_line_argument=yes
6592 else
6593 xorg_cv_cc_flag_unused_command_line_argument=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601 fi
6602
6603 found="no"
6604
6605 if test $found = "no" ; then
6606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608 fi
6609
6610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612 fi
6613
6614 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6617 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6618 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6619 if eval \${$cacheid+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 int i;
6625 int
6626 main ()
6627 {
6628
6629 ;
6630 return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"; then :
6634 eval $cacheid=yes
6635 else
6636 eval $cacheid=no
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 fi
6641
6642
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645 eval supported=\$$cacheid
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647 $as_echo "$supported" >&6; }
6648 if test "$supported" = "yes" ; then
6649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6650 found="yes"
6651 fi
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unknown_warning_option=yes
6683 else
6684 xorg_cv_cc_flag_unknown_warning_option=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 fi
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 int i;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 xorg_cv_cc_flag_unused_command_line_argument=yes
6710 else
6711 xorg_cv_cc_flag_unused_command_line_argument=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 found="no"
6722
6723 if test $found = "no" ; then
6724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 fi
6727
6728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 fi
6731
6732 CFLAGS="$CFLAGS -Wredundant-decls"
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6735 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6736 cacheid=xorg_cv_cc_flag__Wredundant_decls
6737 if eval \${$cacheid+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int i;
6743 int
6744 main ()
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752 eval $cacheid=yes
6753 else
6754 eval $cacheid=no
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
6758 fi
6759
6760
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763 eval supported=\$$cacheid
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 $as_echo "$supported" >&6; }
6766 if test "$supported" = "yes" ; then
6767 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6768 found="yes"
6769 fi
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 xorg_testset_save_CFLAGS="$CFLAGS"
6787
6788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 xorg_cv_cc_flag_unknown_warning_option=yes
6801 else
6802 xorg_cv_cc_flag_unknown_warning_option=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6809 CFLAGS="$xorg_testset_save_CFLAGS"
6810 fi
6811
6812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 fi
6816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int i;
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 xorg_cv_cc_flag_unused_command_line_argument=yes
6828 else
6829 xorg_cv_cc_flag_unused_command_line_argument=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837 fi
6838
6839 found="no"
6840
6841 if test $found = "no" ; then
6842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844 fi
6845
6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848 fi
6849
6850 CFLAGS="$CFLAGS -Wlogical-op"
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6853 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6854 cacheid=xorg_cv_cc_flag__Wlogical_op
6855 if eval \${$cacheid+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 int i;
6861 int
6862 main ()
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 eval $cacheid=yes
6871 else
6872 eval $cacheid=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 fi
6877
6878
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880
6881 eval supported=\$$cacheid
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6883 $as_echo "$supported" >&6; }
6884 if test "$supported" = "yes" ; then
6885 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6886 found="yes"
6887 fi
6888 fi
6889
6890
6891
6892 # These are currently disabled because they are noisy. They will be enabled
6893 # in the future once the codebase is sufficiently modernized to silence
6894 # them. For now, I don't want them to drown out the other warnings.
6895 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6896 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6897 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6898
6899 # Turn some warnings into errors, so we don't accidently get successful builds
6900 # when there are problems that should be fixed.
6901
6902 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 xorg_testset_save_CFLAGS="$CFLAGS"
6917
6918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 xorg_cv_cc_flag_unknown_warning_option=yes
6931 else
6932 xorg_cv_cc_flag_unknown_warning_option=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940 fi
6941
6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945 fi
6946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 int i;
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"; then :
6957 xorg_cv_cc_flag_unused_command_line_argument=yes
6958 else
6959 xorg_cv_cc_flag_unused_command_line_argument=no
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6966 CFLAGS="$xorg_testset_save_CFLAGS"
6967 fi
6968
6969 found="no"
6970
6971 if test $found = "no" ; then
6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974 fi
6975
6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978 fi
6979
6980 CFLAGS="$CFLAGS -Werror=implicit"
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6983 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6984 cacheid=xorg_cv_cc_flag__Werror_implicit
6985 if eval \${$cacheid+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 int i;
6991 int
6992 main ()
6993 {
6994
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 eval $cacheid=yes
7001 else
7002 eval $cacheid=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 fi
7007
7008
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010
7011 eval supported=\$$cacheid
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7013 $as_echo "$supported" >&6; }
7014 if test "$supported" = "yes" ; then
7015 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7016 found="yes"
7017 fi
7018 fi
7019
7020 if test $found = "no" ; then
7021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023 fi
7024
7025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027 fi
7028
7029 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7032 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7033 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7034 if eval \${$cacheid+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 int i;
7040 int
7041 main ()
7042 {
7043
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 eval $cacheid=yes
7050 else
7051 eval $cacheid=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 fi
7056
7057
7058 CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060 eval supported=\$$cacheid
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063 if test "$supported" = "yes" ; then
7064 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7065 found="yes"
7066 fi
7067 fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097 xorg_cv_cc_flag_unknown_warning_option=yes
7098 else
7099 xorg_cv_cc_flag_unknown_warning_option=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106 CFLAGS="$xorg_testset_save_CFLAGS"
7107 fi
7108
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 fi
7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 xorg_cv_cc_flag_unused_command_line_argument=yes
7125 else
7126 xorg_cv_cc_flag_unused_command_line_argument=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145 fi
7146
7147 CFLAGS="$CFLAGS -Werror=nonnull"
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7150 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7151 cacheid=xorg_cv_cc_flag__Werror_nonnull
7152 if eval \${$cacheid+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 int i;
7158 int
7159 main ()
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 eval $cacheid=yes
7168 else
7169 eval $cacheid=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 fi
7174
7175
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178 eval supported=\$$cacheid
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181 if test "$supported" = "yes" ; then
7182 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7183 found="yes"
7184 fi
7185 fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 xorg_cv_cc_flag_unknown_warning_option=yes
7216 else
7217 xorg_cv_cc_flag_unknown_warning_option=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230 fi
7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 int i;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 xorg_cv_cc_flag_unused_command_line_argument=yes
7243 else
7244 xorg_cv_cc_flag_unused_command_line_argument=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 found="no"
7255
7256 if test $found = "no" ; then
7257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259 fi
7260
7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263 fi
7264
7265 CFLAGS="$CFLAGS -Werror=init-self"
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7268 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7269 cacheid=xorg_cv_cc_flag__Werror_init_self
7270 if eval \${$cacheid+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 int i;
7276 int
7277 main ()
7278 {
7279
7280 ;
7281 return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_link "$LINENO"; then :
7285 eval $cacheid=yes
7286 else
7287 eval $cacheid=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 fi
7292
7293
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296 eval supported=\$$cacheid
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299 if test "$supported" = "yes" ; then
7300 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7301 found="yes"
7302 fi
7303 fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unknown_warning_option=yes
7334 else
7335 xorg_cv_cc_flag_unknown_warning_option=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348 fi
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 xorg_cv_cc_flag_unused_command_line_argument=yes
7361 else
7362 xorg_cv_cc_flag_unused_command_line_argument=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 found="no"
7373
7374 if test $found = "no" ; then
7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377 fi
7378
7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381 fi
7382
7383 CFLAGS="$CFLAGS -Werror=main"
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7386 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7387 cacheid=xorg_cv_cc_flag__Werror_main
7388 if eval \${$cacheid+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 int i;
7394 int
7395 main ()
7396 {
7397
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_link "$LINENO"; then :
7403 eval $cacheid=yes
7404 else
7405 eval $cacheid=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7409 fi
7410
7411
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414 eval supported=\$$cacheid
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417 if test "$supported" = "yes" ; then
7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7419 found="yes"
7420 fi
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 xorg_testset_save_CFLAGS="$CFLAGS"
7438
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 xorg_cv_cc_flag_unknown_warning_option=yes
7452 else
7453 xorg_cv_cc_flag_unknown_warning_option=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466 fi
7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 int i;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 xorg_cv_cc_flag_unused_command_line_argument=yes
7479 else
7480 xorg_cv_cc_flag_unused_command_line_argument=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 found="no"
7491
7492 if test $found = "no" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496
7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499 fi
7500
7501 CFLAGS="$CFLAGS -Werror=missing-braces"
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7504 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7505 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7506 if eval \${$cacheid+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 int i;
7512 int
7513 main ()
7514 {
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 eval $cacheid=yes
7522 else
7523 eval $cacheid=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 fi
7528
7529
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7531
7532 eval supported=\$$cacheid
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7534 $as_echo "$supported" >&6; }
7535 if test "$supported" = "yes" ; then
7536 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7537 found="yes"
7538 fi
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 xorg_testset_save_CFLAGS="$CFLAGS"
7556
7557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 xorg_cv_cc_flag_unknown_warning_option=yes
7570 else
7571 xorg_cv_cc_flag_unknown_warning_option=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584 fi
7585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 int i;
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 xorg_cv_cc_flag_unused_command_line_argument=yes
7597 else
7598 xorg_cv_cc_flag_unused_command_line_argument=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7605 CFLAGS="$xorg_testset_save_CFLAGS"
7606 fi
7607
7608 found="no"
7609
7610 if test $found = "no" ; then
7611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613 fi
7614
7615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617 fi
7618
7619 CFLAGS="$CFLAGS -Werror=sequence-point"
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7622 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7623 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7624 if eval \${$cacheid+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 int i;
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 eval $cacheid=yes
7640 else
7641 eval $cacheid=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 fi
7646
7647
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649
7650 eval supported=\$$cacheid
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7652 $as_echo "$supported" >&6; }
7653 if test "$supported" = "yes" ; then
7654 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7655 found="yes"
7656 fi
7657 fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 xorg_testset_save_CFLAGS="$CFLAGS"
7674
7675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 int i;
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 xorg_cv_cc_flag_unknown_warning_option=yes
7688 else
7689 xorg_cv_cc_flag_unknown_warning_option=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 _ACEOF
7713 if ac_fn_c_try_compile "$LINENO"; then :
7714 xorg_cv_cc_flag_unused_command_line_argument=yes
7715 else
7716 xorg_cv_cc_flag_unused_command_line_argument=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7723 CFLAGS="$xorg_testset_save_CFLAGS"
7724 fi
7725
7726 found="no"
7727
7728 if test $found = "no" ; then
7729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 fi
7732
7733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7735 fi
7736
7737 CFLAGS="$CFLAGS -Werror=return-type"
7738
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7740 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7741 cacheid=xorg_cv_cc_flag__Werror_return_type
7742 if eval \${$cacheid+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 int i;
7748 int
7749 main ()
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"; then :
7757 eval $cacheid=yes
7758 else
7759 eval $cacheid=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext \
7762 conftest$ac_exeext conftest.$ac_ext
7763 fi
7764
7765
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767
7768 eval supported=\$$cacheid
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7770 $as_echo "$supported" >&6; }
7771 if test "$supported" = "yes" ; then
7772 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7773 found="yes"
7774 fi
7775 fi
7776
7777 if test $found = "no" ; then
7778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780 fi
7781
7782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784 fi
7785
7786 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7789 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7790 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7791 if eval \${$cacheid+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 int i;
7797 int
7798 main ()
7799 {
7800
7801 ;
7802 return 0;
7803 }
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"; then :
7806 eval $cacheid=yes
7807 else
7808 eval $cacheid=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812 fi
7813
7814
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817 eval supported=\$$cacheid
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820 if test "$supported" = "yes" ; then
7821 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7822 found="yes"
7823 fi
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 int i;
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 xorg_cv_cc_flag_unknown_warning_option=yes
7855 else
7856 xorg_cv_cc_flag_unknown_warning_option=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 fi
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 int i;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 xorg_cv_cc_flag_unused_command_line_argument=yes
7882 else
7883 xorg_cv_cc_flag_unused_command_line_argument=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 found="no"
7894
7895 if test $found = "no" ; then
7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898 fi
7899
7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902 fi
7903
7904 CFLAGS="$CFLAGS -Werror=trigraphs"
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7907 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7908 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7909 if eval \${$cacheid+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 int i;
7915 int
7916 main ()
7917 {
7918
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 eval $cacheid=yes
7925 else
7926 eval $cacheid=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 fi
7931
7932
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935 eval supported=\$$cacheid
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938 if test "$supported" = "yes" ; then
7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7940 found="yes"
7941 fi
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 xorg_cv_cc_flag_unknown_warning_option=yes
7973 else
7974 xorg_cv_cc_flag_unknown_warning_option=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7982 fi
7983
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987 fi
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 xorg_cv_cc_flag_unused_command_line_argument=yes
8000 else
8001 xorg_cv_cc_flag_unused_command_line_argument=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 found="no"
8012
8013 if test $found = "no" ; then
8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016 fi
8017
8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020 fi
8021
8022 CFLAGS="$CFLAGS -Werror=array-bounds"
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8025 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8026 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8027 if eval \${$cacheid+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 int i;
8033 int
8034 main ()
8035 {
8036
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042 eval $cacheid=yes
8043 else
8044 eval $cacheid=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8048 fi
8049
8050
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053 eval supported=\$$cacheid
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056 if test "$supported" = "yes" ; then
8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8058 found="yes"
8059 fi
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 xorg_testset_save_CFLAGS="$CFLAGS"
8077
8078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 xorg_cv_cc_flag_unknown_warning_option=yes
8091 else
8092 xorg_cv_cc_flag_unknown_warning_option=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105 fi
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int i;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 xorg_cv_cc_flag_unused_command_line_argument=yes
8118 else
8119 xorg_cv_cc_flag_unused_command_line_argument=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 found="no"
8130
8131 if test $found = "no" ; then
8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134 fi
8135
8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138 fi
8139
8140 CFLAGS="$CFLAGS -Werror=write-strings"
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8143 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8144 cacheid=xorg_cv_cc_flag__Werror_write_strings
8145 if eval \${$cacheid+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 int i;
8151 int
8152 main ()
8153 {
8154
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_link "$LINENO"; then :
8160 eval $cacheid=yes
8161 else
8162 eval $cacheid=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext \
8165 conftest$ac_exeext conftest.$ac_ext
8166 fi
8167
8168
8169 CFLAGS="$xorg_testset_save_CFLAGS"
8170
8171 eval supported=\$$cacheid
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173 $as_echo "$supported" >&6; }
8174 if test "$supported" = "yes" ; then
8175 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8176 found="yes"
8177 fi
8178 fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194 xorg_testset_save_CFLAGS="$CFLAGS"
8195
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 xorg_cv_cc_flag_unknown_warning_option=yes
8209 else
8210 xorg_cv_cc_flag_unknown_warning_option=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 int i;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 xorg_cv_cc_flag_unused_command_line_argument=yes
8236 else
8237 xorg_cv_cc_flag_unused_command_line_argument=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245 fi
8246
8247 found="no"
8248
8249 if test $found = "no" ; then
8250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252 fi
8253
8254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8256 fi
8257
8258 CFLAGS="$CFLAGS -Werror=address"
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8261 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8262 cacheid=xorg_cv_cc_flag__Werror_address
8263 if eval \${$cacheid+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 int i;
8269 int
8270 main ()
8271 {
8272
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278 eval $cacheid=yes
8279 else
8280 eval $cacheid=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 fi
8285
8286
8287 CFLAGS="$xorg_testset_save_CFLAGS"
8288
8289 eval supported=\$$cacheid
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8291 $as_echo "$supported" >&6; }
8292 if test "$supported" = "yes" ; then
8293 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8294 found="yes"
8295 fi
8296 fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312 xorg_testset_save_CFLAGS="$CFLAGS"
8313
8314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 xorg_cv_cc_flag_unknown_warning_option=yes
8327 else
8328 xorg_cv_cc_flag_unknown_warning_option=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336 fi
8337
8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341 fi
8342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 int i;
8351 _ACEOF
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353 xorg_cv_cc_flag_unused_command_line_argument=yes
8354 else
8355 xorg_cv_cc_flag_unused_command_line_argument=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363 fi
8364
8365 found="no"
8366
8367 if test $found = "no" ; then
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 fi
8371
8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374 fi
8375
8376 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8377
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8379 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8380 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8381 if eval \${$cacheid+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 int i;
8387 int
8388 main ()
8389 {
8390
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 eval $cacheid=yes
8397 else
8398 eval $cacheid=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 fi
8403
8404
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406
8407 eval supported=\$$cacheid
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8409 $as_echo "$supported" >&6; }
8410 if test "$supported" = "yes" ; then
8411 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8412 found="yes"
8413 fi
8414 fi
8415
8416 if test $found = "no" ; then
8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419 fi
8420
8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 fi
8424
8425 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8428 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8429 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8430 if eval \${$cacheid+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 int i;
8436 int
8437 main ()
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 eval $cacheid=yes
8446 else
8447 eval $cacheid=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 fi
8452
8453
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8455
8456 eval supported=\$$cacheid
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8458 $as_echo "$supported" >&6; }
8459 if test "$supported" = "yes" ; then
8460 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8461 found="yes"
8462 fi
8463 fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479 xorg_testset_save_CFLAGS="$CFLAGS"
8480
8481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 xorg_cv_cc_flag_unknown_warning_option=yes
8494 else
8495 xorg_cv_cc_flag_unknown_warning_option=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8503 fi
8504
8505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508 fi
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 int i;
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520 xorg_cv_cc_flag_unused_command_line_argument=yes
8521 else
8522 xorg_cv_cc_flag_unused_command_line_argument=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530 fi
8531
8532 found="no"
8533
8534 if test $found = "no" ; then
8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537 fi
8538
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541 fi
8542
8543 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8546 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8547 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8548 if eval \${$cacheid+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 int i;
8554 int
8555 main ()
8556 {
8557
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_link "$LINENO"; then :
8563 eval $cacheid=yes
8564 else
8565 eval $cacheid=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8569 fi
8570
8571
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574 eval supported=\$$cacheid
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576 $as_echo "$supported" >&6; }
8577 if test "$supported" = "yes" ; then
8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8579 found="yes"
8580 fi
8581 fi
8582
8583 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8584 else
8585 { $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
8586 $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;}
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 xorg_cv_cc_flag_unknown_warning_option=yes
8615 else
8616 xorg_cv_cc_flag_unknown_warning_option=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623 CFLAGS="$xorg_testset_save_CFLAGS"
8624 fi
8625
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629 fi
8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 xorg_cv_cc_flag_unused_command_line_argument=yes
8642 else
8643 xorg_cv_cc_flag_unused_command_line_argument=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 found="no"
8654
8655 if test $found = "no" ; then
8656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658 fi
8659
8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662 fi
8663
8664 CFLAGS="$CFLAGS -Wimplicit"
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8667 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8668 cacheid=xorg_cv_cc_flag__Wimplicit
8669 if eval \${$cacheid+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674 int i;
8675 int
8676 main ()
8677 {
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 eval $cacheid=yes
8685 else
8686 eval $cacheid=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 fi
8691
8692
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695 eval supported=\$$cacheid
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698 if test "$supported" = "yes" ; then
8699 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8700 found="yes"
8701 fi
8702 fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 xorg_cv_cc_flag_unknown_warning_option=yes
8733 else
8734 xorg_cv_cc_flag_unknown_warning_option=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747 fi
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 int i;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 xorg_cv_cc_flag_unused_command_line_argument=yes
8760 else
8761 xorg_cv_cc_flag_unused_command_line_argument=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8769 fi
8770
8771 found="no"
8772
8773 if test $found = "no" ; then
8774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 fi
8777
8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780 fi
8781
8782 CFLAGS="$CFLAGS -Wnonnull"
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8785 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8786 cacheid=xorg_cv_cc_flag__Wnonnull
8787 if eval \${$cacheid+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 int i;
8793 int
8794 main ()
8795 {
8796
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_c_try_link "$LINENO"; then :
8802 eval $cacheid=yes
8803 else
8804 eval $cacheid=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 fi
8809
8810
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813 eval supported=\$$cacheid
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816 if test "$supported" = "yes" ; then
8817 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8818 found="yes"
8819 fi
8820 fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unknown_warning_option=yes
8851 else
8852 xorg_cv_cc_flag_unknown_warning_option=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865 fi
8866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 xorg_cv_cc_flag_unused_command_line_argument=yes
8878 else
8879 xorg_cv_cc_flag_unused_command_line_argument=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 found="no"
8890
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898 fi
8899
8900 CFLAGS="$CFLAGS -Winit-self"
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8903 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8904 cacheid=xorg_cv_cc_flag__Winit_self
8905 if eval \${$cacheid+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main ()
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920 eval $cacheid=yes
8921 else
8922 eval $cacheid=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 fi
8927
8928
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931 eval supported=\$$cacheid
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934 if test "$supported" = "yes" ; then
8935 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8936 found="yes"
8937 fi
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8969 else
8970 xorg_cv_cc_flag_unknown_warning_option=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983 fi
8984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995 xorg_cv_cc_flag_unused_command_line_argument=yes
8996 else
8997 xorg_cv_cc_flag_unused_command_line_argument=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 found="no"
9008
9009 if test $found = "no" ; then
9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 fi
9013
9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016 fi
9017
9018 CFLAGS="$CFLAGS -Wmain"
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9021 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9022 cacheid=xorg_cv_cc_flag__Wmain
9023 if eval \${$cacheid+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 int i;
9029 int
9030 main ()
9031 {
9032
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 eval $cacheid=yes
9039 else
9040 eval $cacheid=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 fi
9045
9046
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049 eval supported=\$$cacheid
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9054 found="yes"
9055 fi
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unknown_warning_option=yes
9087 else
9088 xorg_cv_cc_flag_unknown_warning_option=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101 fi
9102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 xorg_cv_cc_flag_unused_command_line_argument=yes
9114 else
9115 xorg_cv_cc_flag_unused_command_line_argument=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123 fi
9124
9125 found="no"
9126
9127 if test $found = "no" ; then
9128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130 fi
9131
9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134 fi
9135
9136 CFLAGS="$CFLAGS -Wmissing-braces"
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9139 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9140 cacheid=xorg_cv_cc_flag__Wmissing_braces
9141 if eval \${$cacheid+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int i;
9147 int
9148 main ()
9149 {
9150
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156 eval $cacheid=yes
9157 else
9158 eval $cacheid=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 fi
9163
9164
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167 eval supported=\$$cacheid
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170 if test "$supported" = "yes" ; then
9171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9172 found="yes"
9173 fi
9174 fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unknown_warning_option=yes
9205 else
9206 xorg_cv_cc_flag_unknown_warning_option=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 fi
9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 xorg_cv_cc_flag_unused_command_line_argument=yes
9232 else
9233 xorg_cv_cc_flag_unused_command_line_argument=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 found="no"
9244
9245 if test $found = "no" ; then
9246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248 fi
9249
9250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252 fi
9253
9254 CFLAGS="$CFLAGS -Wsequence-point"
9255
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9257 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9258 cacheid=xorg_cv_cc_flag__Wsequence_point
9259 if eval \${$cacheid+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 int i;
9265 int
9266 main ()
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 eval $cacheid=yes
9275 else
9276 eval $cacheid=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi
9281
9282
9283 CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285 eval supported=\$$cacheid
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288 if test "$supported" = "yes" ; then
9289 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9290 found="yes"
9291 fi
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9323 else
9324 xorg_cv_cc_flag_unknown_warning_option=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337 fi
9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 xorg_cv_cc_flag_unused_command_line_argument=yes
9350 else
9351 xorg_cv_cc_flag_unused_command_line_argument=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 found="no"
9362
9363 if test $found = "no" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370 fi
9371
9372 CFLAGS="$CFLAGS -Wreturn-type"
9373
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9375 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9376 cacheid=xorg_cv_cc_flag__Wreturn_type
9377 if eval \${$cacheid+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382 int i;
9383 int
9384 main ()
9385 {
9386
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392 eval $cacheid=yes
9393 else
9394 eval $cacheid=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 fi
9399
9400
9401 CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403 eval supported=\$$cacheid
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406 if test "$supported" = "yes" ; then
9407 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9408 found="yes"
9409 fi
9410 fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unknown_warning_option=yes
9441 else
9442 xorg_cv_cc_flag_unknown_warning_option=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455 fi
9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 int i;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 xorg_cv_cc_flag_unused_command_line_argument=yes
9468 else
9469 xorg_cv_cc_flag_unused_command_line_argument=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 found="no"
9480
9481 if test $found = "no" ; then
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 fi
9485
9486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488 fi
9489
9490 CFLAGS="$CFLAGS -Wtrigraphs"
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9493 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9494 cacheid=xorg_cv_cc_flag__Wtrigraphs
9495 if eval \${$cacheid+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 int
9502 main ()
9503 {
9504
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 eval $cacheid=yes
9511 else
9512 eval $cacheid=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 fi
9517
9518
9519 CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521 eval supported=\$$cacheid
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524 if test "$supported" = "yes" ; then
9525 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9526 found="yes"
9527 fi
9528 fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unknown_warning_option=yes
9559 else
9560 xorg_cv_cc_flag_unknown_warning_option=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573 fi
9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 int i;
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 xorg_cv_cc_flag_unused_command_line_argument=yes
9586 else
9587 xorg_cv_cc_flag_unused_command_line_argument=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 found="no"
9598
9599 if test $found = "no" ; then
9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602 fi
9603
9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606 fi
9607
9608 CFLAGS="$CFLAGS -Warray-bounds"
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9611 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9612 cacheid=xorg_cv_cc_flag__Warray_bounds
9613 if eval \${$cacheid+:} false; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 int i;
9619 int
9620 main ()
9621 {
9622
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628 eval $cacheid=yes
9629 else
9630 eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639 eval supported=\$$cacheid
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9644 found="yes"
9645 fi
9646 fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unknown_warning_option=yes
9677 else
9678 xorg_cv_cc_flag_unknown_warning_option=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 fi
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int i;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 xorg_cv_cc_flag_unused_command_line_argument=yes
9704 else
9705 xorg_cv_cc_flag_unused_command_line_argument=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 found="no"
9716
9717 if test $found = "no" ; then
9718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720 fi
9721
9722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724 fi
9725
9726 CFLAGS="$CFLAGS -Wwrite-strings"
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9729 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9730 cacheid=xorg_cv_cc_flag__Wwrite_strings
9731 if eval \${$cacheid+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 int i;
9737 int
9738 main ()
9739 {
9740
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 eval $cacheid=yes
9747 else
9748 eval $cacheid=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 fi
9753
9754
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757 eval supported=\$$cacheid
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760 if test "$supported" = "yes" ; then
9761 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9762 found="yes"
9763 fi
9764 fi
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780 xorg_testset_save_CFLAGS="$CFLAGS"
9781
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 xorg_cv_cc_flag_unknown_warning_option=yes
9795 else
9796 xorg_cv_cc_flag_unknown_warning_option=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809 fi
9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 int i;
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 xorg_cv_cc_flag_unused_command_line_argument=yes
9822 else
9823 xorg_cv_cc_flag_unused_command_line_argument=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9831 fi
9832
9833 found="no"
9834
9835 if test $found = "no" ; then
9836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838 fi
9839
9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842 fi
9843
9844 CFLAGS="$CFLAGS -Waddress"
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9847 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9848 cacheid=xorg_cv_cc_flag__Waddress
9849 if eval \${$cacheid+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 int i;
9855 int
9856 main ()
9857 {
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864 eval $cacheid=yes
9865 else
9866 eval $cacheid=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 fi
9871
9872
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874
9875 eval supported=\$$cacheid
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877 $as_echo "$supported" >&6; }
9878 if test "$supported" = "yes" ; then
9879 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9880 found="yes"
9881 fi
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 xorg_testset_save_CFLAGS="$CFLAGS"
9899
9900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 xorg_cv_cc_flag_unknown_warning_option=yes
9913 else
9914 xorg_cv_cc_flag_unknown_warning_option=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927 fi
9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 int i;
9937 _ACEOF
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939 xorg_cv_cc_flag_unused_command_line_argument=yes
9940 else
9941 xorg_cv_cc_flag_unused_command_line_argument=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9949 fi
9950
9951 found="no"
9952
9953 if test $found = "no" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957
9958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960 fi
9961
9962 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9965 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9966 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9967 if eval \${$cacheid+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int i;
9973 int
9974 main ()
9975 {
9976
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982 eval $cacheid=yes
9983 else
9984 eval $cacheid=no
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 fi
9989
9990
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9992
9993 eval supported=\$$cacheid
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9995 $as_echo "$supported" >&6; }
9996 if test "$supported" = "yes" ; then
9997 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9998 found="yes"
9999 fi
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 xorg_testset_save_CFLAGS="$CFLAGS"
10017
10018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 xorg_cv_cc_flag_unknown_warning_option=yes
10031 else
10032 xorg_cv_cc_flag_unknown_warning_option=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040 fi
10041
10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045 fi
10046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int i;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 xorg_cv_cc_flag_unused_command_line_argument=yes
10058 else
10059 xorg_cv_cc_flag_unused_command_line_argument=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067 fi
10068
10069 found="no"
10070
10071 if test $found = "no" ; then
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 fi
10075
10076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10078 fi
10079
10080 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10081
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10083 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10084 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10085 if eval \${$cacheid+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 int i;
10091 int
10092 main ()
10093 {
10094
10095 ;
10096 return 0;
10097 }
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 eval $cacheid=yes
10101 else
10102 eval $cacheid=no
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 fi
10107
10108
10109 CFLAGS="$xorg_testset_save_CFLAGS"
10110
10111 eval supported=\$$cacheid
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10113 $as_echo "$supported" >&6; }
10114 if test "$supported" = "yes" ; then
10115 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10116 found="yes"
10117 fi
10118 fi
10119
10120
10121 fi
10122
10123
10124
10125
10126
10127
10128
10129 CWARNFLAGS="$BASE_CFLAGS"
10130 if test "x$GCC" = xyes ; then
10131 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140
10141 # Check whether --enable-strict-compilation was given.
10142 if test "${enable_strict_compilation+set}" = set; then :
10143 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10144 else
10145 STRICT_COMPILE=no
10146 fi
10147
10148
10149
10150
10151
10152
10153 STRICT_CFLAGS=""
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 int i;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 xorg_cv_cc_flag_unknown_warning_option=yes
10182 else
10183 xorg_cv_cc_flag_unknown_warning_option=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 xorg_cv_cc_flag_unused_command_line_argument=yes
10209 else
10210 xorg_cv_cc_flag_unused_command_line_argument=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 found="no"
10221
10222 if test $found = "no" ; then
10223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225 fi
10226
10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229 fi
10230
10231 CFLAGS="$CFLAGS -pedantic"
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10234 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10235 cacheid=xorg_cv_cc_flag__pedantic
10236 if eval \${$cacheid+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 int i;
10242 int
10243 main ()
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 eval $cacheid=yes
10252 else
10253 eval $cacheid=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 fi
10258
10259
10260 CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262 eval supported=\$$cacheid
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264 $as_echo "$supported" >&6; }
10265 if test "$supported" = "yes" ; then
10266 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10267 found="yes"
10268 fi
10269 fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285 xorg_testset_save_CFLAGS="$CFLAGS"
10286
10287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 xorg_cv_cc_flag_unknown_warning_option=yes
10300 else
10301 xorg_cv_cc_flag_unknown_warning_option=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10308 CFLAGS="$xorg_testset_save_CFLAGS"
10309 fi
10310
10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314 fi
10315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"; then :
10326 xorg_cv_cc_flag_unused_command_line_argument=yes
10327 else
10328 xorg_cv_cc_flag_unused_command_line_argument=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336 fi
10337
10338 found="no"
10339
10340 if test $found = "no" ; then
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 fi
10344
10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347 fi
10348
10349 CFLAGS="$CFLAGS -Werror"
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10352 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10353 cacheid=xorg_cv_cc_flag__Werror
10354 if eval \${$cacheid+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359 int i;
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 eval $cacheid=yes
10370 else
10371 eval $cacheid=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 fi
10376
10377
10378 CFLAGS="$xorg_testset_save_CFLAGS"
10379
10380 eval supported=\$$cacheid
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10382 $as_echo "$supported" >&6; }
10383 if test "$supported" = "yes" ; then
10384 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10385 found="yes"
10386 fi
10387 fi
10388
10389 if test $found = "no" ; then
10390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392 fi
10393
10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396 fi
10397
10398 CFLAGS="$CFLAGS -errwarn"
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10401 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10402 cacheid=xorg_cv_cc_flag__errwarn
10403 if eval \${$cacheid+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408 int i;
10409 int
10410 main ()
10411 {
10412
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 eval $cacheid=yes
10419 else
10420 eval $cacheid=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 fi
10425
10426
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428
10429 eval supported=\$$cacheid
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10431 $as_echo "$supported" >&6; }
10432 if test "$supported" = "yes" ; then
10433 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10434 found="yes"
10435 fi
10436 fi
10437
10438
10439
10440 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10441 # activate it with -Werror, so we add it here explicitly.
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455 xorg_testset_save_CFLAGS="$CFLAGS"
10456
10457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 int i;
10467 _ACEOF
10468 if ac_fn_c_try_compile "$LINENO"; then :
10469 xorg_cv_cc_flag_unknown_warning_option=yes
10470 else
10471 xorg_cv_cc_flag_unknown_warning_option=no
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10478 CFLAGS="$xorg_testset_save_CFLAGS"
10479 fi
10480
10481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484 fi
10485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 int i;
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 xorg_cv_cc_flag_unused_command_line_argument=yes
10497 else
10498 xorg_cv_cc_flag_unused_command_line_argument=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506 fi
10507
10508 found="no"
10509
10510 if test $found = "no" ; then
10511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513 fi
10514
10515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517 fi
10518
10519 CFLAGS="$CFLAGS -Werror=attributes"
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10522 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10523 cacheid=xorg_cv_cc_flag__Werror_attributes
10524 if eval \${$cacheid+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 int i;
10530 int
10531 main ()
10532 {
10533
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"; then :
10539 eval $cacheid=yes
10540 else
10541 eval $cacheid=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 fi
10546
10547
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549
10550 eval supported=\$$cacheid
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10552 $as_echo "$supported" >&6; }
10553 if test "$supported" = "yes" ; then
10554 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10555 found="yes"
10556 fi
10557 fi
10558
10559
10560
10561 if test "x$STRICT_COMPILE" = "xyes"; then
10562 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10563 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10564 fi
10565
10566
10567
10568
10569
10570
10571 cat >>confdefs.h <<_ACEOF
10572 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10573 _ACEOF
10574
10575 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10576 if test "x$PVM" = "x"; then
10577 PVM="0"
10578 fi
10579
10580 cat >>confdefs.h <<_ACEOF
10581 #define PACKAGE_VERSION_MINOR $PVM
10582 _ACEOF
10583
10584 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10585 if test "x$PVP" = "x"; then
10586 PVP="0"
10587 fi
10588
10589 cat >>confdefs.h <<_ACEOF
10590 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10591 _ACEOF
10592
10593
10594
10595 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10596 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10597 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10598 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10599
10600
10601
10602
10603 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10604 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10605 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10606 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10607 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10608
10609
10610
10611
10612
10613
10614 if test x$APP_MAN_SUFFIX = x ; then
10615 APP_MAN_SUFFIX=1
10616 fi
10617 if test x$APP_MAN_DIR = x ; then
10618 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10619 fi
10620
10621 if test x$LIB_MAN_SUFFIX = x ; then
10622 LIB_MAN_SUFFIX=3
10623 fi
10624 if test x$LIB_MAN_DIR = x ; then
10625 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10626 fi
10627
10628 if test x$FILE_MAN_SUFFIX = x ; then
10629 case $host_os in
10630 solaris*) FILE_MAN_SUFFIX=4 ;;
10631 *) FILE_MAN_SUFFIX=5 ;;
10632 esac
10633 fi
10634 if test x$FILE_MAN_DIR = x ; then
10635 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10636 fi
10637
10638 if test x$MISC_MAN_SUFFIX = x ; then
10639 case $host_os in
10640 solaris*) MISC_MAN_SUFFIX=5 ;;
10641 *) MISC_MAN_SUFFIX=7 ;;
10642 esac
10643 fi
10644 if test x$MISC_MAN_DIR = x ; then
10645 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10646 fi
10647
10648 if test x$DRIVER_MAN_SUFFIX = x ; then
10649 case $host_os in
10650 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10651 *) DRIVER_MAN_SUFFIX=4 ;;
10652 esac
10653 fi
10654 if test x$DRIVER_MAN_DIR = x ; then
10655 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10656 fi
10657
10658 if test x$ADMIN_MAN_SUFFIX = x ; then
10659 case $host_os in
10660 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10661 *) ADMIN_MAN_SUFFIX=8 ;;
10662 esac
10663 fi
10664 if test x$ADMIN_MAN_DIR = x ; then
10665 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10666 fi
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682 XORG_MAN_PAGE="X Version 11"
10683
10684 MAN_SUBSTS="\
10685 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10686 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10687 -e 's|__xservername__|Xorg|g' \
10688 -e 's|__xconfigfile__|xorg.conf|g' \
10689 -e 's|__projectroot__|\$(prefix)|g' \
10690 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10691 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10692 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10693 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10694 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10695 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10696 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10697
10698
10699
10700 # Check whether --enable-silent-rules was given.
10701 if test "${enable_silent_rules+set}" = set; then :
10702 enableval=$enable_silent_rules;
10703 fi
10704
10705 case $enable_silent_rules in # (((
10706 yes) AM_DEFAULT_VERBOSITY=0;;
10707 no) AM_DEFAULT_VERBOSITY=1;;
10708 *) AM_DEFAULT_VERBOSITY=0;;
10709 esac
10710 am_make=${MAKE-make}
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10712 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10713 if ${am_cv_make_support_nested_variables+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if $as_echo 'TRUE=$(BAR$(V))
10717 BAR0=false
10718 BAR1=true
10719 V=1
10720 am__doit:
10721 @$(TRUE)
10722 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10723 am_cv_make_support_nested_variables=yes
10724 else
10725 am_cv_make_support_nested_variables=no
10726 fi
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10729 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10730 if test $am_cv_make_support_nested_variables = yes; then
10731 AM_V='$(V)'
10732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10733 else
10734 AM_V=$AM_DEFAULT_VERBOSITY
10735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10736 fi
10737 AM_BACKSLASH='\'
10738
10739
10740
10741 # Initialize libtool
10742 # Check whether --enable-static was given.
10743 if test "${enable_static+set}" = set; then :
10744 enableval=$enable_static; p=${PACKAGE-default}
10745 case $enableval in
10746 yes) enable_static=yes ;;
10747 no) enable_static=no ;;
10748 *)
10749 enable_static=no
10750 # Look at the argument we got. We use all the common list separators.
10751 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10752 for pkg in $enableval; do
10753 IFS=$lt_save_ifs
10754 if test "X$pkg" = "X$p"; then
10755 enable_static=yes
10756 fi
10757 done
10758 IFS=$lt_save_ifs
10759 ;;
10760 esac
10761 else
10762 enable_static=no
10763 fi
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773 case `pwd` in
10774 *\ * | *\ *)
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10777 esac
10778
10779
10780
10781 macro_version='2.4.6'
10782 macro_revision='2.4.6'
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 ltmain=$ac_aux_dir/ltmain.sh
10797
10798 # Backslashify metacharacters that are still active within
10799 # double-quoted strings.
10800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10801
10802 # Same as above, but do not quote variable references.
10803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10804
10805 # Sed substitution to delay expansion of an escaped shell variable in a
10806 # double_quote_subst'ed string.
10807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10808
10809 # Sed substitution to delay expansion of an escaped single quote.
10810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10811
10812 # Sed substitution to avoid accidental globbing in evaled expressions
10813 no_glob_subst='s/\*/\\\*/g'
10814
10815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10820 $as_echo_n "checking how to print strings... " >&6; }
10821 # Test print first, because it will be a builtin if present.
10822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10823 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10824 ECHO='print -r --'
10825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10826 ECHO='printf %s\n'
10827 else
10828 # Use this function as a fallback that always works.
10829 func_fallback_echo ()
10830 {
10831 eval 'cat <<_LTECHO_EOF
10832 $1
10833 _LTECHO_EOF'
10834 }
10835 ECHO='func_fallback_echo'
10836 fi
10837
10838 # func_echo_all arg...
10839 # Invoke $ECHO with all args, space-separated.
10840 func_echo_all ()
10841 {
10842 $ECHO ""
10843 }
10844
10845 case $ECHO in
10846 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10847 $as_echo "printf" >&6; } ;;
10848 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10849 $as_echo "print -r" >&6; } ;;
10850 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10851 $as_echo "cat" >&6; } ;;
10852 esac
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10869 if ${ac_cv_path_SED+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10873 for ac_i in 1 2 3 4 5 6 7; do
10874 ac_script="$ac_script$as_nl$ac_script"
10875 done
10876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10877 { ac_script=; unset ac_script;}
10878 if test -z "$SED"; then
10879 ac_path_SED_found=false
10880 # Loop through the user's path and test for each of PROGNAME-LIST
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_prog in sed gsed; do
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10889 as_fn_executable_p "$ac_path_SED" || continue
10890 # Check for GNU ac_path_SED and select it if it is found.
10891 # Check for GNU $ac_path_SED
10892 case `"$ac_path_SED" --version 2>&1` in
10893 *GNU*)
10894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10895 *)
10896 ac_count=0
10897 $as_echo_n 0123456789 >"conftest.in"
10898 while :
10899 do
10900 cat "conftest.in" "conftest.in" >"conftest.tmp"
10901 mv "conftest.tmp" "conftest.in"
10902 cp "conftest.in" "conftest.nl"
10903 $as_echo '' >> "conftest.nl"
10904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10906 as_fn_arith $ac_count + 1 && ac_count=$as_val
10907 if test $ac_count -gt ${ac_path_SED_max-0}; then
10908 # Best one so far, save it but keep looking for a better one
10909 ac_cv_path_SED="$ac_path_SED"
10910 ac_path_SED_max=$ac_count
10911 fi
10912 # 10*(2^10) chars as input seems more than enough
10913 test $ac_count -gt 10 && break
10914 done
10915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10916 esac
10917
10918 $ac_path_SED_found && break 3
10919 done
10920 done
10921 done
10922 IFS=$as_save_IFS
10923 if test -z "$ac_cv_path_SED"; then
10924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10925 fi
10926 else
10927 ac_cv_path_SED=$SED
10928 fi
10929
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10932 $as_echo "$ac_cv_path_SED" >&6; }
10933 SED="$ac_cv_path_SED"
10934 rm -f conftest.sed
10935
10936 test -z "$SED" && SED=sed
10937 Xsed="$SED -e 1s/^X//"
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10950 $as_echo_n "checking for fgrep... " >&6; }
10951 if ${ac_cv_path_FGREP+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10955 then ac_cv_path_FGREP="$GREP -F"
10956 else
10957 if test -z "$FGREP"; then
10958 ac_path_FGREP_found=false
10959 # Loop through the user's path and test for each of PROGNAME-LIST
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10962 do
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_prog in fgrep; do
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10968 as_fn_executable_p "$ac_path_FGREP" || continue
10969 # Check for GNU ac_path_FGREP and select it if it is found.
10970 # Check for GNU $ac_path_FGREP
10971 case `"$ac_path_FGREP" --version 2>&1` in
10972 *GNU*)
10973 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10974 *)
10975 ac_count=0
10976 $as_echo_n 0123456789 >"conftest.in"
10977 while :
10978 do
10979 cat "conftest.in" "conftest.in" >"conftest.tmp"
10980 mv "conftest.tmp" "conftest.in"
10981 cp "conftest.in" "conftest.nl"
10982 $as_echo 'FGREP' >> "conftest.nl"
10983 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10985 as_fn_arith $ac_count + 1 && ac_count=$as_val
10986 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10987 # Best one so far, save it but keep looking for a better one
10988 ac_cv_path_FGREP="$ac_path_FGREP"
10989 ac_path_FGREP_max=$ac_count
10990 fi
10991 # 10*(2^10) chars as input seems more than enough
10992 test $ac_count -gt 10 && break
10993 done
10994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10995 esac
10996
10997 $ac_path_FGREP_found && break 3
10998 done
10999 done
11000 done
11001 IFS=$as_save_IFS
11002 if test -z "$ac_cv_path_FGREP"; then
11003 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11004 fi
11005 else
11006 ac_cv_path_FGREP=$FGREP
11007 fi
11008
11009 fi
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11012 $as_echo "$ac_cv_path_FGREP" >&6; }
11013 FGREP="$ac_cv_path_FGREP"
11014
11015
11016 test -z "$GREP" && GREP=grep
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036 # Check whether --with-gnu-ld was given.
11037 if test "${with_gnu_ld+set}" = set; then :
11038 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11039 else
11040 with_gnu_ld=no
11041 fi
11042
11043 ac_prog=ld
11044 if test yes = "$GCC"; then
11045 # Check if gcc -print-prog-name=ld gives a path.
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11047 $as_echo_n "checking for ld used by $CC... " >&6; }
11048 case $host in
11049 *-*-mingw*)
11050 # gcc leaves a trailing carriage return, which upsets mingw
11051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11052 *)
11053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11054 esac
11055 case $ac_prog in
11056 # Accept absolute paths.
11057 [\\/]* | ?:[\\/]*)
11058 re_direlt='/[^/][^/]*/\.\./'
11059 # Canonicalize the pathname of ld
11060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11063 done
11064 test -z "$LD" && LD=$ac_prog
11065 ;;
11066 "")
11067 # If it fails, then pretend we aren't using GCC.
11068 ac_prog=ld
11069 ;;
11070 *)
11071 # If it is relative, then search for the first ld in PATH.
11072 with_gnu_ld=unknown
11073 ;;
11074 esac
11075 elif test yes = "$with_gnu_ld"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11077 $as_echo_n "checking for GNU ld... " >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11080 $as_echo_n "checking for non-GNU ld... " >&6; }
11081 fi
11082 if ${lt_cv_path_LD+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 if test -z "$LD"; then
11086 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11087 for ac_dir in $PATH; do
11088 IFS=$lt_save_ifs
11089 test -z "$ac_dir" && ac_dir=.
11090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11091 lt_cv_path_LD=$ac_dir/$ac_prog
11092 # Check to see if the program is GNU ld. I'd rather use --version,
11093 # but apparently some variants of GNU ld only accept -v.
11094 # Break only if it was the GNU/non-GNU ld that we prefer.
11095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11096 *GNU* | *'with BFD'*)
11097 test no != "$with_gnu_ld" && break
11098 ;;
11099 *)
11100 test yes != "$with_gnu_ld" && break
11101 ;;
11102 esac
11103 fi
11104 done
11105 IFS=$lt_save_ifs
11106 else
11107 lt_cv_path_LD=$LD # Let the user override the test with a path.
11108 fi
11109 fi
11110
11111 LD=$lt_cv_path_LD
11112 if test -n "$LD"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11114 $as_echo "$LD" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 fi
11119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11122 if ${lt_cv_prog_gnu_ld+:} false; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11126 case `$LD -v 2>&1 </dev/null` in
11127 *GNU* | *'with BFD'*)
11128 lt_cv_prog_gnu_ld=yes
11129 ;;
11130 *)
11131 lt_cv_prog_gnu_ld=no
11132 ;;
11133 esac
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11137 with_gnu_ld=$lt_cv_prog_gnu_ld
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11148 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11149 if ${lt_cv_path_NM+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if test -n "$NM"; then
11153 # Let the user override the test.
11154 lt_cv_path_NM=$NM
11155 else
11156 lt_nm_to_check=${ac_tool_prefix}nm
11157 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11158 lt_nm_to_check="$lt_nm_to_check nm"
11159 fi
11160 for lt_tmp_nm in $lt_nm_to_check; do
11161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11162 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11163 IFS=$lt_save_ifs
11164 test -z "$ac_dir" && ac_dir=.
11165 tmp_nm=$ac_dir/$lt_tmp_nm
11166 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11167 # Check to see if the nm accepts a BSD-compat flag.
11168 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11169 # nm: unknown option "B" ignored
11170 # Tru64's nm complains that /dev/null is an invalid object file
11171 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11172 case $build_os in
11173 mingw*) lt_bad_file=conftest.nm/nofile ;;
11174 *) lt_bad_file=/dev/null ;;
11175 esac
11176 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11177 *$lt_bad_file* | *'Invalid file or object type'*)
11178 lt_cv_path_NM="$tmp_nm -B"
11179 break 2
11180 ;;
11181 *)
11182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11183 */dev/null*)
11184 lt_cv_path_NM="$tmp_nm -p"
11185 break 2
11186 ;;
11187 *)
11188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11189 continue # so that we can try to find one that supports BSD flags
11190 ;;
11191 esac
11192 ;;
11193 esac
11194 fi
11195 done
11196 IFS=$lt_save_ifs
11197 done
11198 : ${lt_cv_path_NM=no}
11199 fi
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11202 $as_echo "$lt_cv_path_NM" >&6; }
11203 if test no != "$lt_cv_path_NM"; then
11204 NM=$lt_cv_path_NM
11205 else
11206 # Didn't find any BSD compatible name lister, look for dumpbin.
11207 if test -n "$DUMPBIN"; then :
11208 # Let the user override the test.
11209 else
11210 if test -n "$ac_tool_prefix"; then
11211 for ac_prog in dumpbin "link -dump"
11212 do
11213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if ${ac_cv_prog_DUMPBIN+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 if test -n "$DUMPBIN"; then
11221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234 done
11235 done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 DUMPBIN=$ac_cv_prog_DUMPBIN
11241 if test -n "$DUMPBIN"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11243 $as_echo "$DUMPBIN" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250 test -n "$DUMPBIN" && break
11251 done
11252 fi
11253 if test -z "$DUMPBIN"; then
11254 ac_ct_DUMPBIN=$DUMPBIN
11255 for ac_prog in dumpbin "link -dump"
11256 do
11257 # Extract the first word of "$ac_prog", so it can be a program name with args.
11258 set dummy $ac_prog; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 if test -n "$ac_ct_DUMPBIN"; then
11265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11266 else
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11269 do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11277 fi
11278 done
11279 done
11280 IFS=$as_save_IFS
11281
11282 fi
11283 fi
11284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11285 if test -n "$ac_ct_DUMPBIN"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11287 $as_echo "$ac_ct_DUMPBIN" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11291 fi
11292
11293
11294 test -n "$ac_ct_DUMPBIN" && break
11295 done
11296
11297 if test "x$ac_ct_DUMPBIN" = x; then
11298 DUMPBIN=":"
11299 else
11300 case $cross_compiling:$ac_tool_warned in
11301 yes:)
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11304 ac_tool_warned=yes ;;
11305 esac
11306 DUMPBIN=$ac_ct_DUMPBIN
11307 fi
11308 fi
11309
11310 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11311 *COFF*)
11312 DUMPBIN="$DUMPBIN -symbols -headers"
11313 ;;
11314 *)
11315 DUMPBIN=:
11316 ;;
11317 esac
11318 fi
11319
11320 if test : != "$DUMPBIN"; then
11321 NM=$DUMPBIN
11322 fi
11323 fi
11324 test -z "$NM" && NM=nm
11325
11326
11327
11328
11329
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11333 if ${lt_cv_nm_interface+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 lt_cv_nm_interface="BSD nm"
11337 echo "int some_variable = 0;" > conftest.$ac_ext
11338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11339 (eval "$ac_compile" 2>conftest.err)
11340 cat conftest.err >&5
11341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11343 cat conftest.err >&5
11344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11345 cat conftest.out >&5
11346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11347 lt_cv_nm_interface="MS dumpbin"
11348 fi
11349 rm -f conftest*
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11352 $as_echo "$lt_cv_nm_interface" >&6; }
11353
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11355 $as_echo_n "checking whether ln -s works... " >&6; }
11356 LN_S=$as_ln_s
11357 if test "$LN_S" = "ln -s"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11362 $as_echo "no, using $LN_S" >&6; }
11363 fi
11364
11365 # find the maximum length of command line arguments
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11368 if ${lt_cv_sys_max_cmd_len+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 i=0
11372 teststring=ABCD
11373
11374 case $build_os in
11375 msdosdjgpp*)
11376 # On DJGPP, this test can blow up pretty badly due to problems in libc
11377 # (any single argument exceeding 2000 bytes causes a buffer overrun
11378 # during glob expansion). Even if it were fixed, the result of this
11379 # check would be larger than it should be.
11380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11381 ;;
11382
11383 gnu*)
11384 # Under GNU Hurd, this test is not required because there is
11385 # no limit to the length of command line arguments.
11386 # Libtool will interpret -1 as no limit whatsoever
11387 lt_cv_sys_max_cmd_len=-1;
11388 ;;
11389
11390 cygwin* | mingw* | cegcc*)
11391 # On Win9x/ME, this test blows up -- it succeeds, but takes
11392 # about 5 minutes as the teststring grows exponentially.
11393 # Worse, since 9x/ME are not pre-emptively multitasking,
11394 # you end up with a "frozen" computer, even though with patience
11395 # the test eventually succeeds (with a max line length of 256k).
11396 # Instead, let's just punt: use the minimum linelength reported by
11397 # all of the supported platforms: 8192 (on NT/2K/XP).
11398 lt_cv_sys_max_cmd_len=8192;
11399 ;;
11400
11401 mint*)
11402 # On MiNT this can take a long time and run out of memory.
11403 lt_cv_sys_max_cmd_len=8192;
11404 ;;
11405
11406 amigaos*)
11407 # On AmigaOS with pdksh, this test takes hours, literally.
11408 # So we just punt and use a minimum line length of 8192.
11409 lt_cv_sys_max_cmd_len=8192;
11410 ;;
11411
11412 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11413 # This has been around since 386BSD, at least. Likely further.
11414 if test -x /sbin/sysctl; then
11415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11416 elif test -x /usr/sbin/sysctl; then
11417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11418 else
11419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11420 fi
11421 # And add a safety zone
11422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11424 ;;
11425
11426 interix*)
11427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11428 lt_cv_sys_max_cmd_len=196608
11429 ;;
11430
11431 os2*)
11432 # The test takes a long time on OS/2.
11433 lt_cv_sys_max_cmd_len=8192
11434 ;;
11435
11436 osf*)
11437 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11438 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11439 # nice to cause kernel panics so lets avoid the loop below.
11440 # First set a reasonable default.
11441 lt_cv_sys_max_cmd_len=16384
11442 #
11443 if test -x /sbin/sysconfig; then
11444 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11445 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11446 esac
11447 fi
11448 ;;
11449 sco3.2v5*)
11450 lt_cv_sys_max_cmd_len=102400
11451 ;;
11452 sysv5* | sco5v6* | sysv4.2uw2*)
11453 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11454 if test -n "$kargmax"; then
11455 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11456 else
11457 lt_cv_sys_max_cmd_len=32768
11458 fi
11459 ;;
11460 *)
11461 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11462 if test -n "$lt_cv_sys_max_cmd_len" && \
11463 test undefined != "$lt_cv_sys_max_cmd_len"; then
11464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11466 else
11467 # Make teststring a little bigger before we do anything with it.
11468 # a 1K string should be a reasonable start.
11469 for i in 1 2 3 4 5 6 7 8; do
11470 teststring=$teststring$teststring
11471 done
11472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11473 # If test is not a shell built-in, we'll probably end up computing a
11474 # maximum length that is only half of the actual maximum length, but
11475 # we can't tell.
11476 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11477 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11478 test 17 != "$i" # 1/2 MB should be enough
11479 do
11480 i=`expr $i + 1`
11481 teststring=$teststring$teststring
11482 done
11483 # Only check the string length outside the loop.
11484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11485 teststring=
11486 # Add a significant safety factor because C++ compilers can tack on
11487 # massive amounts of additional arguments before passing them to the
11488 # linker. It appears as though 1/2 is a usable value.
11489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11490 fi
11491 ;;
11492 esac
11493
11494 fi
11495
11496 if test -n "$lt_cv_sys_max_cmd_len"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11501 $as_echo "none" >&6; }
11502 fi
11503 max_cmd_len=$lt_cv_sys_max_cmd_len
11504
11505
11506
11507
11508
11509
11510 : ${CP="cp -f"}
11511 : ${MV="mv -f"}
11512 : ${RM="rm -f"}
11513
11514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11515 lt_unset=unset
11516 else
11517 lt_unset=false
11518 fi
11519
11520
11521
11522
11523
11524 # test EBCDIC or ASCII
11525 case `echo X|tr X '\101'` in
11526 A) # ASCII based system
11527 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11528 lt_SP2NL='tr \040 \012'
11529 lt_NL2SP='tr \015\012 \040\040'
11530 ;;
11531 *) # EBCDIC based system
11532 lt_SP2NL='tr \100 \n'
11533 lt_NL2SP='tr \r\n \100\100'
11534 ;;
11535 esac
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11546 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11547 if ${lt_cv_to_host_file_cmd+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 case $host in
11551 *-*-mingw* )
11552 case $build in
11553 *-*-mingw* ) # actually msys
11554 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11555 ;;
11556 *-*-cygwin* )
11557 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11558 ;;
11559 * ) # otherwise, assume *nix
11560 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11561 ;;
11562 esac
11563 ;;
11564 *-*-cygwin* )
11565 case $build in
11566 *-*-mingw* ) # actually msys
11567 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11568 ;;
11569 *-*-cygwin* )
11570 lt_cv_to_host_file_cmd=func_convert_file_noop
11571 ;;
11572 * ) # otherwise, assume *nix
11573 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11574 ;;
11575 esac
11576 ;;
11577 * ) # unhandled hosts (and "normal" native builds)
11578 lt_cv_to_host_file_cmd=func_convert_file_noop
11579 ;;
11580 esac
11581
11582 fi
11583
11584 to_host_file_cmd=$lt_cv_to_host_file_cmd
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11586 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11587
11588
11589
11590
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11593 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11594 if ${lt_cv_to_tool_file_cmd+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 #assume ordinary cross tools, or native build.
11598 lt_cv_to_tool_file_cmd=func_convert_file_noop
11599 case $host in
11600 *-*-mingw* )
11601 case $build in
11602 *-*-mingw* ) # actually msys
11603 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11604 ;;
11605 esac
11606 ;;
11607 esac
11608
11609 fi
11610
11611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11613 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11614
11615
11616
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11620 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11621 if ${lt_cv_ld_reload_flag+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 lt_cv_ld_reload_flag='-r'
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11627 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11628 reload_flag=$lt_cv_ld_reload_flag
11629 case $reload_flag in
11630 "" | " "*) ;;
11631 *) reload_flag=" $reload_flag" ;;
11632 esac
11633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11634 case $host_os in
11635 cygwin* | mingw* | pw32* | cegcc*)
11636 if test yes != "$GCC"; then
11637 reload_cmds=false
11638 fi
11639 ;;
11640 darwin*)
11641 if test yes = "$GCC"; then
11642 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11643 else
11644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11645 fi
11646 ;;
11647 esac
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657 if test -n "$ac_tool_prefix"; then
11658 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11659 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661 $as_echo_n "checking for $ac_word... " >&6; }
11662 if ${ac_cv_prog_OBJDUMP+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 if test -n "$OBJDUMP"; then
11666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11667 else
11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $PATH
11670 do
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
11673 for ac_exec_ext in '' $ac_executable_extensions; do
11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11675 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 break 2
11678 fi
11679 done
11680 done
11681 IFS=$as_save_IFS
11682
11683 fi
11684 fi
11685 OBJDUMP=$ac_cv_prog_OBJDUMP
11686 if test -n "$OBJDUMP"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11688 $as_echo "$OBJDUMP" >&6; }
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695 fi
11696 if test -z "$ac_cv_prog_OBJDUMP"; then
11697 ac_ct_OBJDUMP=$OBJDUMP
11698 # Extract the first word of "objdump", so it can be a program name with args.
11699 set dummy objdump; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test -n "$ac_ct_OBJDUMP"; then
11706 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719 done
11720 done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11726 if test -n "$ac_ct_OBJDUMP"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11728 $as_echo "$ac_ct_OBJDUMP" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734 if test "x$ac_ct_OBJDUMP" = x; then
11735 OBJDUMP="false"
11736 else
11737 case $cross_compiling:$ac_tool_warned in
11738 yes:)
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11741 ac_tool_warned=yes ;;
11742 esac
11743 OBJDUMP=$ac_ct_OBJDUMP
11744 fi
11745 else
11746 OBJDUMP="$ac_cv_prog_OBJDUMP"
11747 fi
11748
11749 test -z "$OBJDUMP" && OBJDUMP=objdump
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11760 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11761 if ${lt_cv_deplibs_check_method+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 lt_cv_file_magic_cmd='$MAGIC_CMD'
11765 lt_cv_file_magic_test_file=
11766 lt_cv_deplibs_check_method='unknown'
11767 # Need to set the preceding variable on all platforms that support
11768 # interlibrary dependencies.
11769 # 'none' -- dependencies not supported.
11770 # 'unknown' -- same as none, but documents that we really don't know.
11771 # 'pass_all' -- all dependencies passed with no checks.
11772 # 'test_compile' -- check by making test program.
11773 # 'file_magic [[regex]]' -- check by looking for files in library path
11774 # that responds to the $file_magic_cmd with a given extended regex.
11775 # If you have 'file' or equivalent on your system and you're not sure
11776 # whether 'pass_all' will *always* work, you probably want this one.
11777
11778 case $host_os in
11779 aix[4-9]*)
11780 lt_cv_deplibs_check_method=pass_all
11781 ;;
11782
11783 beos*)
11784 lt_cv_deplibs_check_method=pass_all
11785 ;;
11786
11787 bsdi[45]*)
11788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11789 lt_cv_file_magic_cmd='/usr/bin/file -L'
11790 lt_cv_file_magic_test_file=/shlib/libc.so
11791 ;;
11792
11793 cygwin*)
11794 # func_win32_libid is a shell function defined in ltmain.sh
11795 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11796 lt_cv_file_magic_cmd='func_win32_libid'
11797 ;;
11798
11799 mingw* | pw32*)
11800 # Base MSYS/MinGW do not provide the 'file' command needed by
11801 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11802 # unless we find 'file', for example because we are cross-compiling.
11803 if ( file / ) >/dev/null 2>&1; then
11804 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11805 lt_cv_file_magic_cmd='func_win32_libid'
11806 else
11807 # Keep this pattern in sync with the one in func_win32_libid.
11808 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11809 lt_cv_file_magic_cmd='$OBJDUMP -f'
11810 fi
11811 ;;
11812
11813 cegcc*)
11814 # use the weaker test based on 'objdump'. See mingw*.
11815 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11816 lt_cv_file_magic_cmd='$OBJDUMP -f'
11817 ;;
11818
11819 darwin* | rhapsody*)
11820 lt_cv_deplibs_check_method=pass_all
11821 ;;
11822
11823 freebsd* | dragonfly*)
11824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11825 case $host_cpu in
11826 i*86 )
11827 # Not sure whether the presence of OpenBSD here was a mistake.
11828 # Let's accept both of them until this is cleared up.
11829 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11830 lt_cv_file_magic_cmd=/usr/bin/file
11831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11832 ;;
11833 esac
11834 else
11835 lt_cv_deplibs_check_method=pass_all
11836 fi
11837 ;;
11838
11839 haiku*)
11840 lt_cv_deplibs_check_method=pass_all
11841 ;;
11842
11843 hpux10.20* | hpux11*)
11844 lt_cv_file_magic_cmd=/usr/bin/file
11845 case $host_cpu in
11846 ia64*)
11847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11848 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11849 ;;
11850 hppa*64*)
11851 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]'
11852 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11853 ;;
11854 *)
11855 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11856 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11857 ;;
11858 esac
11859 ;;
11860
11861 interix[3-9]*)
11862 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11864 ;;
11865
11866 irix5* | irix6* | nonstopux*)
11867 case $LD in
11868 *-32|*"-32 ") libmagic=32-bit;;
11869 *-n32|*"-n32 ") libmagic=N32;;
11870 *-64|*"-64 ") libmagic=64-bit;;
11871 *) libmagic=never-match;;
11872 esac
11873 lt_cv_deplibs_check_method=pass_all
11874 ;;
11875
11876 # This must be glibc/ELF.
11877 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11878 lt_cv_deplibs_check_method=pass_all
11879 ;;
11880
11881 netbsd*)
11882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11884 else
11885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11886 fi
11887 ;;
11888
11889 newos6*)
11890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11891 lt_cv_file_magic_cmd=/usr/bin/file
11892 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11893 ;;
11894
11895 *nto* | *qnx*)
11896 lt_cv_deplibs_check_method=pass_all
11897 ;;
11898
11899 openbsd* | bitrig*)
11900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11902 else
11903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11904 fi
11905 ;;
11906
11907 osf3* | osf4* | osf5*)
11908 lt_cv_deplibs_check_method=pass_all
11909 ;;
11910
11911 rdos*)
11912 lt_cv_deplibs_check_method=pass_all
11913 ;;
11914
11915 solaris*)
11916 lt_cv_deplibs_check_method=pass_all
11917 ;;
11918
11919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11920 lt_cv_deplibs_check_method=pass_all
11921 ;;
11922
11923 sysv4 | sysv4.3*)
11924 case $host_vendor in
11925 motorola)
11926 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]'
11927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11928 ;;
11929 ncr)
11930 lt_cv_deplibs_check_method=pass_all
11931 ;;
11932 sequent)
11933 lt_cv_file_magic_cmd='/bin/file'
11934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11935 ;;
11936 sni)
11937 lt_cv_file_magic_cmd='/bin/file'
11938 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11939 lt_cv_file_magic_test_file=/lib/libc.so
11940 ;;
11941 siemens)
11942 lt_cv_deplibs_check_method=pass_all
11943 ;;
11944 pc)
11945 lt_cv_deplibs_check_method=pass_all
11946 ;;
11947 esac
11948 ;;
11949
11950 tpf*)
11951 lt_cv_deplibs_check_method=pass_all
11952 ;;
11953 os2*)
11954 lt_cv_deplibs_check_method=pass_all
11955 ;;
11956 esac
11957
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11960 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11961
11962 file_magic_glob=
11963 want_nocaseglob=no
11964 if test "$build" = "$host"; then
11965 case $host_os in
11966 mingw* | pw32*)
11967 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11968 want_nocaseglob=yes
11969 else
11970 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11971 fi
11972 ;;
11973 esac
11974 fi
11975
11976 file_magic_cmd=$lt_cv_file_magic_cmd
11977 deplibs_check_method=$lt_cv_deplibs_check_method
11978 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 if test -n "$ac_tool_prefix"; then
12002 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12003 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_prog_DLLTOOL+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if test -n "$DLLTOOL"; then
12010 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12011 else
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $PATH
12014 do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12019 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12022 fi
12023 done
12024 done
12025 IFS=$as_save_IFS
12026
12027 fi
12028 fi
12029 DLLTOOL=$ac_cv_prog_DLLTOOL
12030 if test -n "$DLLTOOL"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12032 $as_echo "$DLLTOOL" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12036 fi
12037
12038
12039 fi
12040 if test -z "$ac_cv_prog_DLLTOOL"; then
12041 ac_ct_DLLTOOL=$DLLTOOL
12042 # Extract the first word of "dlltool", so it can be a program name with args.
12043 set dummy dlltool; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 if test -n "$ac_ct_DLLTOOL"; then
12050 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12054 do
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 break 2
12062 fi
12063 done
12064 done
12065 IFS=$as_save_IFS
12066
12067 fi
12068 fi
12069 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12070 if test -n "$ac_ct_DLLTOOL"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12072 $as_echo "$ac_ct_DLLTOOL" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12076 fi
12077
12078 if test "x$ac_ct_DLLTOOL" = x; then
12079 DLLTOOL="false"
12080 else
12081 case $cross_compiling:$ac_tool_warned in
12082 yes:)
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12085 ac_tool_warned=yes ;;
12086 esac
12087 DLLTOOL=$ac_ct_DLLTOOL
12088 fi
12089 else
12090 DLLTOOL="$ac_cv_prog_DLLTOOL"
12091 fi
12092
12093 test -z "$DLLTOOL" && DLLTOOL=dlltool
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12105 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12106 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 lt_cv_sharedlib_from_linklib_cmd='unknown'
12110
12111 case $host_os in
12112 cygwin* | mingw* | pw32* | cegcc*)
12113 # two different shell functions defined in ltmain.sh;
12114 # decide which one to use based on capabilities of $DLLTOOL
12115 case `$DLLTOOL --help 2>&1` in
12116 *--identify-strict*)
12117 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12118 ;;
12119 *)
12120 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12121 ;;
12122 esac
12123 ;;
12124 *)
12125 # fallback: assume linklib IS sharedlib
12126 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12127 ;;
12128 esac
12129
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12132 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12133 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12134 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12135
12136
12137
12138
12139
12140
12141
12142 if test -n "$ac_tool_prefix"; then
12143 for ac_prog in ar
12144 do
12145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_prog_AR+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 if test -n "$AR"; then
12153 ac_cv_prog_AR="$AR" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166 done
12167 done
12168 IFS=$as_save_IFS
12169
12170 fi
12171 fi
12172 AR=$ac_cv_prog_AR
12173 if test -n "$AR"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12175 $as_echo "$AR" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12179 fi
12180
12181
12182 test -n "$AR" && break
12183 done
12184 fi
12185 if test -z "$AR"; then
12186 ac_ct_AR=$AR
12187 for ac_prog in ar
12188 do
12189 # Extract the first word of "$ac_prog", so it can be a program name with args.
12190 set dummy $ac_prog; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 if test -n "$ac_ct_AR"; then
12197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12198 else
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_ac_ct_AR="$ac_prog"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12209 fi
12210 done
12211 done
12212 IFS=$as_save_IFS
12213
12214 fi
12215 fi
12216 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12217 if test -n "$ac_ct_AR"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12219 $as_echo "$ac_ct_AR" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12223 fi
12224
12225
12226 test -n "$ac_ct_AR" && break
12227 done
12228
12229 if test "x$ac_ct_AR" = x; then
12230 AR="false"
12231 else
12232 case $cross_compiling:$ac_tool_warned in
12233 yes:)
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12236 ac_tool_warned=yes ;;
12237 esac
12238 AR=$ac_ct_AR
12239 fi
12240 fi
12241
12242 : ${AR=ar}
12243 : ${AR_FLAGS=cru}
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12256 $as_echo_n "checking for archiver @FILE support... " >&6; }
12257 if ${lt_cv_ar_at_file+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 lt_cv_ar_at_file=no
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263
12264 int
12265 main ()
12266 {
12267
12268 ;
12269 return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"; then :
12273 echo conftest.$ac_objext > conftest.lst
12274 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12276 (eval $lt_ar_try) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279 test $ac_status = 0; }
12280 if test 0 -eq "$ac_status"; then
12281 # Ensure the archiver fails upon bogus file names.
12282 rm -f conftest.$ac_objext libconftest.a
12283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12284 (eval $lt_ar_try) 2>&5
12285 ac_status=$?
12286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287 test $ac_status = 0; }
12288 if test 0 -ne "$ac_status"; then
12289 lt_cv_ar_at_file=@
12290 fi
12291 fi
12292 rm -f conftest.* libconftest.a
12293
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12299 $as_echo "$lt_cv_ar_at_file" >&6; }
12300
12301 if test no = "$lt_cv_ar_at_file"; then
12302 archiver_list_spec=
12303 else
12304 archiver_list_spec=$lt_cv_ar_at_file
12305 fi
12306
12307
12308
12309
12310
12311
12312
12313 if test -n "$ac_tool_prefix"; then
12314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12315 set dummy ${ac_tool_prefix}strip; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_prog_STRIP+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$STRIP"; then
12322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 STRIP=$ac_cv_prog_STRIP
12342 if test -n "$STRIP"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12344 $as_echo "$STRIP" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 if test -z "$ac_cv_prog_STRIP"; then
12353 ac_ct_STRIP=$STRIP
12354 # Extract the first word of "strip", so it can be a program name with args.
12355 set dummy strip; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$ac_ct_STRIP"; then
12362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12366 do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_ac_ct_STRIP="strip"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375 done
12376 done
12377 IFS=$as_save_IFS
12378
12379 fi
12380 fi
12381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12382 if test -n "$ac_ct_STRIP"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12384 $as_echo "$ac_ct_STRIP" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389
12390 if test "x$ac_ct_STRIP" = x; then
12391 STRIP=":"
12392 else
12393 case $cross_compiling:$ac_tool_warned in
12394 yes:)
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12397 ac_tool_warned=yes ;;
12398 esac
12399 STRIP=$ac_ct_STRIP
12400 fi
12401 else
12402 STRIP="$ac_cv_prog_STRIP"
12403 fi
12404
12405 test -z "$STRIP" && STRIP=:
12406
12407
12408
12409
12410
12411
12412 if test -n "$ac_tool_prefix"; then
12413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_prog_RANLIB+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$RANLIB"; then
12421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 RANLIB=$ac_cv_prog_RANLIB
12441 if test -n "$RANLIB"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12443 $as_echo "$RANLIB" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 fi
12451 if test -z "$ac_cv_prog_RANLIB"; then
12452 ac_ct_RANLIB=$RANLIB
12453 # Extract the first word of "ranlib", so it can be a program name with args.
12454 set dummy ranlib; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$ac_ct_RANLIB"; then
12461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470 ac_cv_prog_ac_ct_RANLIB="ranlib"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474 done
12475 done
12476 IFS=$as_save_IFS
12477
12478 fi
12479 fi
12480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12481 if test -n "$ac_ct_RANLIB"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12483 $as_echo "$ac_ct_RANLIB" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488
12489 if test "x$ac_ct_RANLIB" = x; then
12490 RANLIB=":"
12491 else
12492 case $cross_compiling:$ac_tool_warned in
12493 yes:)
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12496 ac_tool_warned=yes ;;
12497 esac
12498 RANLIB=$ac_ct_RANLIB
12499 fi
12500 else
12501 RANLIB="$ac_cv_prog_RANLIB"
12502 fi
12503
12504 test -z "$RANLIB" && RANLIB=:
12505
12506
12507
12508
12509
12510
12511 # Determine commands to create old-style static archives.
12512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12513 old_postinstall_cmds='chmod 644 $oldlib'
12514 old_postuninstall_cmds=
12515
12516 if test -n "$RANLIB"; then
12517 case $host_os in
12518 bitrig* | openbsd*)
12519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12520 ;;
12521 *)
12522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12523 ;;
12524 esac
12525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12526 fi
12527
12528 case $host_os in
12529 darwin*)
12530 lock_old_archive_extraction=yes ;;
12531 *)
12532 lock_old_archive_extraction=no ;;
12533 esac
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573 # If no C compiler was specified, use CC.
12574 LTCC=${LTCC-"$CC"}
12575
12576 # If no C compiler flags were specified, use CFLAGS.
12577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12578
12579 # Allow CC to be a program name with arguments.
12580 compiler=$CC
12581
12582
12583 # Check for command to grab the raw symbol name followed by C symbol from nm.
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12585 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12586 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589
12590 # These are sane defaults that work on at least a few old systems.
12591 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12592
12593 # Character class describing NM global symbol codes.
12594 symcode='[BCDEGRST]'
12595
12596 # Regexp to match symbols that can be accessed directly from C.
12597 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12598
12599 # Define system-specific variables.
12600 case $host_os in
12601 aix*)
12602 symcode='[BCDT]'
12603 ;;
12604 cygwin* | mingw* | pw32* | cegcc*)
12605 symcode='[ABCDGISTW]'
12606 ;;
12607 hpux*)
12608 if test ia64 = "$host_cpu"; then
12609 symcode='[ABCDEGRST]'
12610 fi
12611 ;;
12612 irix* | nonstopux*)
12613 symcode='[BCDEGRST]'
12614 ;;
12615 osf*)
12616 symcode='[BCDEGQRST]'
12617 ;;
12618 solaris*)
12619 symcode='[BDRT]'
12620 ;;
12621 sco3.2v5*)
12622 symcode='[DT]'
12623 ;;
12624 sysv4.2uw2*)
12625 symcode='[DT]'
12626 ;;
12627 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12628 symcode='[ABDT]'
12629 ;;
12630 sysv4)
12631 symcode='[DFNSTU]'
12632 ;;
12633 esac
12634
12635 # If we're using GNU nm, then use its standard symbol codes.
12636 case `$NM -V 2>&1` in
12637 *GNU* | *'with BFD'*)
12638 symcode='[ABCDGIRSTW]' ;;
12639 esac
12640
12641 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12642 # Gets list of data symbols to import.
12643 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12644 # Adjust the below global symbol transforms to fixup imported variables.
12645 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12646 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12647 lt_c_name_lib_hook="\
12648 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12649 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12650 else
12651 # Disable hooks by default.
12652 lt_cv_sys_global_symbol_to_import=
12653 lt_cdecl_hook=
12654 lt_c_name_hook=
12655 lt_c_name_lib_hook=
12656 fi
12657
12658 # Transform an extracted symbol line into a proper C declaration.
12659 # Some systems (esp. on ia64) link data and code symbols differently,
12660 # so use this general approach.
12661 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12662 $lt_cdecl_hook\
12663 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12664 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12665
12666 # Transform an extracted symbol line into symbol name and symbol address
12667 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12668 $lt_c_name_hook\
12669 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12670 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12671
12672 # Transform an extracted symbol line into symbol name with lib prefix and
12673 # symbol address.
12674 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12675 $lt_c_name_lib_hook\
12676 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12677 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12678 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12679
12680 # Handle CRLF in mingw tool chain
12681 opt_cr=
12682 case $build_os in
12683 mingw*)
12684 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12685 ;;
12686 esac
12687
12688 # Try without a prefix underscore, then with it.
12689 for ac_symprfx in "" "_"; do
12690
12691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12692 symxfrm="\\1 $ac_symprfx\\2 \\2"
12693
12694 # Write the raw and C identifiers.
12695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12696 # Fake it for dumpbin and say T for any non-static function,
12697 # D for any global variable and I for any imported variable.
12698 # Also find C++ and __fastcall symbols from MSVC++,
12699 # which start with @ or ?.
12700 lt_cv_sys_global_symbol_pipe="$AWK '"\
12701 " {last_section=section; section=\$ 3};"\
12702 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12704 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12705 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12706 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12707 " \$ 0!~/External *\|/{next};"\
12708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12709 " {if(hide[section]) next};"\
12710 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12711 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12712 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12713 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12714 " ' prfx=^$ac_symprfx"
12715 else
12716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12717 fi
12718 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12719
12720 # Check to see that the pipe works correctly.
12721 pipe_works=no
12722
12723 rm -f conftest*
12724 cat > conftest.$ac_ext <<_LT_EOF
12725 #ifdef __cplusplus
12726 extern "C" {
12727 #endif
12728 char nm_test_var;
12729 void nm_test_func(void);
12730 void nm_test_func(void){}
12731 #ifdef __cplusplus
12732 }
12733 #endif
12734 int main(){nm_test_var='a';nm_test_func();return(0);}
12735 _LT_EOF
12736
12737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12738 (eval $ac_compile) 2>&5
12739 ac_status=$?
12740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741 test $ac_status = 0; }; then
12742 # Now try to grab the symbols.
12743 nlist=conftest.nm
12744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12745 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12746 ac_status=$?
12747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12748 test $ac_status = 0; } && test -s "$nlist"; then
12749 # Try sorting and uniquifying the output.
12750 if sort "$nlist" | uniq > "$nlist"T; then
12751 mv -f "$nlist"T "$nlist"
12752 else
12753 rm -f "$nlist"T
12754 fi
12755
12756 # Make sure that we snagged all the symbols we need.
12757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12759 cat <<_LT_EOF > conftest.$ac_ext
12760 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12761 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12762 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12763 relocations are performed -- see ld's documentation on pseudo-relocs. */
12764 # define LT_DLSYM_CONST
12765 #elif defined __osf__
12766 /* This system does not cope well with relocations in const data. */
12767 # define LT_DLSYM_CONST
12768 #else
12769 # define LT_DLSYM_CONST const
12770 #endif
12771
12772 #ifdef __cplusplus
12773 extern "C" {
12774 #endif
12775
12776 _LT_EOF
12777 # Now generate the symbol file.
12778 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12779
12780 cat <<_LT_EOF >> conftest.$ac_ext
12781
12782 /* The mapping between symbol names and symbols. */
12783 LT_DLSYM_CONST struct {
12784 const char *name;
12785 void *address;
12786 }
12787 lt__PROGRAM__LTX_preloaded_symbols[] =
12788 {
12789 { "@PROGRAM@", (void *) 0 },
12790 _LT_EOF
12791 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12792 cat <<\_LT_EOF >> conftest.$ac_ext
12793 {0, (void *) 0}
12794 };
12795
12796 /* This works around a problem in FreeBSD linker */
12797 #ifdef FREEBSD_WORKAROUND
12798 static const void *lt_preloaded_setup() {
12799 return lt__PROGRAM__LTX_preloaded_symbols;
12800 }
12801 #endif
12802
12803 #ifdef __cplusplus
12804 }
12805 #endif
12806 _LT_EOF
12807 # Now try linking the two files.
12808 mv conftest.$ac_objext conftstm.$ac_objext
12809 lt_globsym_save_LIBS=$LIBS
12810 lt_globsym_save_CFLAGS=$CFLAGS
12811 LIBS=conftstm.$ac_objext
12812 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12814 (eval $ac_link) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12818 pipe_works=yes
12819 fi
12820 LIBS=$lt_globsym_save_LIBS
12821 CFLAGS=$lt_globsym_save_CFLAGS
12822 else
12823 echo "cannot find nm_test_func in $nlist" >&5
12824 fi
12825 else
12826 echo "cannot find nm_test_var in $nlist" >&5
12827 fi
12828 else
12829 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12830 fi
12831 else
12832 echo "$progname: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12834 fi
12835 rm -rf conftest* conftst*
12836
12837 # Do not use the global_symbol_pipe unless it works.
12838 if test yes = "$pipe_works"; then
12839 break
12840 else
12841 lt_cv_sys_global_symbol_pipe=
12842 fi
12843 done
12844
12845 fi
12846
12847 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12848 lt_cv_sys_global_symbol_to_cdecl=
12849 fi
12850 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12852 $as_echo "failed" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12855 $as_echo "ok" >&6; }
12856 fi
12857
12858 # Response file support.
12859 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12860 nm_file_list_spec='@'
12861 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12862 nm_file_list_spec='@'
12863 fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12902 $as_echo_n "checking for sysroot... " >&6; }
12903
12904 # Check whether --with-sysroot was given.
12905 if test "${with_sysroot+set}" = set; then :
12906 withval=$with_sysroot;
12907 else
12908 with_sysroot=no
12909 fi
12910
12911
12912 lt_sysroot=
12913 case $with_sysroot in #(
12914 yes)
12915 if test yes = "$GCC"; then
12916 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12917 fi
12918 ;; #(
12919 /*)
12920 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12921 ;; #(
12922 no|'')
12923 ;; #(
12924 *)
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12926 $as_echo "$with_sysroot" >&6; }
12927 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12928 ;;
12929 esac
12930
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12932 $as_echo "${lt_sysroot:-no}" >&6; }
12933
12934
12935
12936
12937
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12939 $as_echo_n "checking for a working dd... " >&6; }
12940 if ${ac_cv_path_lt_DD+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 printf 0123456789abcdef0123456789abcdef >conftest.i
12944 cat conftest.i conftest.i >conftest2.i
12945 : ${lt_DD:=$DD}
12946 if test -z "$lt_DD"; then
12947 ac_path_lt_DD_found=false
12948 # Loop through the user's path and test for each of PROGNAME-LIST
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_prog in dd; do
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12957 as_fn_executable_p "$ac_path_lt_DD" || continue
12958 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12959 cmp -s conftest.i conftest.out \
12960 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12961 fi
12962 $ac_path_lt_DD_found && break 3
12963 done
12964 done
12965 done
12966 IFS=$as_save_IFS
12967 if test -z "$ac_cv_path_lt_DD"; then
12968 :
12969 fi
12970 else
12971 ac_cv_path_lt_DD=$lt_DD
12972 fi
12973
12974 rm -f conftest.i conftest2.i conftest.out
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12977 $as_echo "$ac_cv_path_lt_DD" >&6; }
12978
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12981 $as_echo_n "checking how to truncate binary pipes... " >&6; }
12982 if ${lt_cv_truncate_bin+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 printf 0123456789abcdef0123456789abcdef >conftest.i
12986 cat conftest.i conftest.i >conftest2.i
12987 lt_cv_truncate_bin=
12988 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12989 cmp -s conftest.i conftest.out \
12990 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12991 fi
12992 rm -f conftest.i conftest2.i conftest.out
12993 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12994 fi
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12996 $as_echo "$lt_cv_truncate_bin" >&6; }
12997
12998
12999
13000
13001
13002
13003
13004 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13005 func_cc_basename ()
13006 {
13007 for cc_temp in $*""; do
13008 case $cc_temp in
13009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13011 \-*) ;;
13012 *) break;;
13013 esac
13014 done
13015 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13016 }
13017
13018 # Check whether --enable-libtool-lock was given.
13019 if test "${enable_libtool_lock+set}" = set; then :
13020 enableval=$enable_libtool_lock;
13021 fi
13022
13023 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13024
13025 # Some flags need to be propagated to the compiler or linker for good
13026 # libtool support.
13027 case $host in
13028 ia64-*-hpux*)
13029 # Find out what ABI is being produced by ac_compile, and set mode
13030 # options accordingly.
13031 echo 'int i;' > conftest.$ac_ext
13032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13033 (eval $ac_compile) 2>&5
13034 ac_status=$?
13035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036 test $ac_status = 0; }; then
13037 case `/usr/bin/file conftest.$ac_objext` in
13038 *ELF-32*)
13039 HPUX_IA64_MODE=32
13040 ;;
13041 *ELF-64*)
13042 HPUX_IA64_MODE=64
13043 ;;
13044 esac
13045 fi
13046 rm -rf conftest*
13047 ;;
13048 *-*-irix6*)
13049 # Find out what ABI is being produced by ac_compile, and set linker
13050 # options accordingly.
13051 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13053 (eval $ac_compile) 2>&5
13054 ac_status=$?
13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056 test $ac_status = 0; }; then
13057 if test yes = "$lt_cv_prog_gnu_ld"; then
13058 case `/usr/bin/file conftest.$ac_objext` in
13059 *32-bit*)
13060 LD="${LD-ld} -melf32bsmip"
13061 ;;
13062 *N32*)
13063 LD="${LD-ld} -melf32bmipn32"
13064 ;;
13065 *64-bit*)
13066 LD="${LD-ld} -melf64bmip"
13067 ;;
13068 esac
13069 else
13070 case `/usr/bin/file conftest.$ac_objext` in
13071 *32-bit*)
13072 LD="${LD-ld} -32"
13073 ;;
13074 *N32*)
13075 LD="${LD-ld} -n32"
13076 ;;
13077 *64-bit*)
13078 LD="${LD-ld} -64"
13079 ;;
13080 esac
13081 fi
13082 fi
13083 rm -rf conftest*
13084 ;;
13085
13086 mips64*-*linux*)
13087 # Find out what ABI is being produced by ac_compile, and set linker
13088 # options accordingly.
13089 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13091 (eval $ac_compile) 2>&5
13092 ac_status=$?
13093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13094 test $ac_status = 0; }; then
13095 emul=elf
13096 case `/usr/bin/file conftest.$ac_objext` in
13097 *32-bit*)
13098 emul="${emul}32"
13099 ;;
13100 *64-bit*)
13101 emul="${emul}64"
13102 ;;
13103 esac
13104 case `/usr/bin/file conftest.$ac_objext` in
13105 *MSB*)
13106 emul="${emul}btsmip"
13107 ;;
13108 *LSB*)
13109 emul="${emul}ltsmip"
13110 ;;
13111 esac
13112 case `/usr/bin/file conftest.$ac_objext` in
13113 *N32*)
13114 emul="${emul}n32"
13115 ;;
13116 esac
13117 LD="${LD-ld} -m $emul"
13118 fi
13119 rm -rf conftest*
13120 ;;
13121
13122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13124 # Find out what ABI is being produced by ac_compile, and set linker
13125 # options accordingly. Note that the listed cases only cover the
13126 # situations where additional linker options are needed (such as when
13127 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13128 # vice versa); the common cases where no linker options are needed do
13129 # not appear in the list.
13130 echo 'int i;' > conftest.$ac_ext
13131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13132 (eval $ac_compile) 2>&5
13133 ac_status=$?
13134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13135 test $ac_status = 0; }; then
13136 case `/usr/bin/file conftest.o` in
13137 *32-bit*)
13138 case $host in
13139 x86_64-*kfreebsd*-gnu)
13140 LD="${LD-ld} -m elf_i386_fbsd"
13141 ;;
13142 x86_64-*linux*)
13143 case `/usr/bin/file conftest.o` in
13144 *x86-64*)
13145 LD="${LD-ld} -m elf32_x86_64"
13146 ;;
13147 *)
13148 LD="${LD-ld} -m elf_i386"
13149 ;;
13150 esac
13151 ;;
13152 powerpc64le-*linux*)
13153 LD="${LD-ld} -m elf32lppclinux"
13154 ;;
13155 powerpc64-*linux*)
13156 LD="${LD-ld} -m elf32ppclinux"
13157 ;;
13158 s390x-*linux*)
13159 LD="${LD-ld} -m elf_s390"
13160 ;;
13161 sparc64-*linux*)
13162 LD="${LD-ld} -m elf32_sparc"
13163 ;;
13164 esac
13165 ;;
13166 *64-bit*)
13167 case $host in
13168 x86_64-*kfreebsd*-gnu)
13169 LD="${LD-ld} -m elf_x86_64_fbsd"
13170 ;;
13171 x86_64-*linux*)
13172 LD="${LD-ld} -m elf_x86_64"
13173 ;;
13174 powerpcle-*linux*)
13175 LD="${LD-ld} -m elf64lppc"
13176 ;;
13177 powerpc-*linux*)
13178 LD="${LD-ld} -m elf64ppc"
13179 ;;
13180 s390*-*linux*|s390*-*tpf*)
13181 LD="${LD-ld} -m elf64_s390"
13182 ;;
13183 sparc*-*linux*)
13184 LD="${LD-ld} -m elf64_sparc"
13185 ;;
13186 esac
13187 ;;
13188 esac
13189 fi
13190 rm -rf conftest*
13191 ;;
13192
13193 *-*-sco3.2v5*)
13194 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13195 SAVE_CFLAGS=$CFLAGS
13196 CFLAGS="$CFLAGS -belf"
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13198 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13199 if ${lt_cv_cc_needs_belf+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 ac_ext=c
13203 ac_cpp='$CPP $CPPFLAGS'
13204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13207
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210
13211 int
13212 main ()
13213 {
13214
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 lt_cv_cc_needs_belf=yes
13221 else
13222 lt_cv_cc_needs_belf=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 ac_ext=c
13227 ac_cpp='$CPP $CPPFLAGS'
13228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13231
13232 fi
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13234 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13235 if test yes != "$lt_cv_cc_needs_belf"; then
13236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13237 CFLAGS=$SAVE_CFLAGS
13238 fi
13239 ;;
13240 *-*solaris*)
13241 # Find out what ABI is being produced by ac_compile, and set linker
13242 # options accordingly.
13243 echo 'int i;' > conftest.$ac_ext
13244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13245 (eval $ac_compile) 2>&5
13246 ac_status=$?
13247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248 test $ac_status = 0; }; then
13249 case `/usr/bin/file conftest.o` in
13250 *64-bit*)
13251 case $lt_cv_prog_gnu_ld in
13252 yes*)
13253 case $host in
13254 i?86-*-solaris*|x86_64-*-solaris*)
13255 LD="${LD-ld} -m elf_x86_64"
13256 ;;
13257 sparc*-*-solaris*)
13258 LD="${LD-ld} -m elf64_sparc"
13259 ;;
13260 esac
13261 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13262 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13263 LD=${LD-ld}_sol2
13264 fi
13265 ;;
13266 *)
13267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13268 LD="${LD-ld} -64"
13269 fi
13270 ;;
13271 esac
13272 ;;
13273 esac
13274 fi
13275 rm -rf conftest*
13276 ;;
13277 esac
13278
13279 need_locks=$enable_libtool_lock
13280
13281 if test -n "$ac_tool_prefix"; then
13282 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13283 set dummy ${ac_tool_prefix}mt; ac_word=$2
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285 $as_echo_n "checking for $ac_word... " >&6; }
13286 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 if test -n "$MANIFEST_TOOL"; then
13290 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13291 else
13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293 for as_dir in $PATH
13294 do
13295 IFS=$as_save_IFS
13296 test -z "$as_dir" && as_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13299 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 break 2
13302 fi
13303 done
13304 done
13305 IFS=$as_save_IFS
13306
13307 fi
13308 fi
13309 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13310 if test -n "$MANIFEST_TOOL"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13312 $as_echo "$MANIFEST_TOOL" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317
13318
13319 fi
13320 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13321 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13322 # Extract the first word of "mt", so it can be a program name with args.
13323 set dummy mt; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325 $as_echo_n "checking for $ac_word... " >&6; }
13326 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test -n "$ac_ct_MANIFEST_TOOL"; then
13330 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13331 else
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 break 2
13342 fi
13343 done
13344 done
13345 IFS=$as_save_IFS
13346
13347 fi
13348 fi
13349 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13350 if test -n "$ac_ct_MANIFEST_TOOL"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13352 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356 fi
13357
13358 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13359 MANIFEST_TOOL=":"
13360 else
13361 case $cross_compiling:$ac_tool_warned in
13362 yes:)
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13365 ac_tool_warned=yes ;;
13366 esac
13367 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13368 fi
13369 else
13370 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13371 fi
13372
13373 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13375 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13376 if ${lt_cv_path_mainfest_tool+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 lt_cv_path_mainfest_tool=no
13380 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13381 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13382 cat conftest.err >&5
13383 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13384 lt_cv_path_mainfest_tool=yes
13385 fi
13386 rm -f conftest*
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13389 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13390 if test yes != "$lt_cv_path_mainfest_tool"; then
13391 MANIFEST_TOOL=:
13392 fi
13393
13394
13395
13396
13397
13398
13399 case $host_os in
13400 rhapsody* | darwin*)
13401 if test -n "$ac_tool_prefix"; then
13402 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13403 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 if test -n "$DSYMUTIL"; then
13410 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13414 do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13419 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 break 2
13422 fi
13423 done
13424 done
13425 IFS=$as_save_IFS
13426
13427 fi
13428 fi
13429 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13430 if test -n "$DSYMUTIL"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13432 $as_echo "$DSYMUTIL" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 fi
13437
13438
13439 fi
13440 if test -z "$ac_cv_prog_DSYMUTIL"; then
13441 ac_ct_DSYMUTIL=$DSYMUTIL
13442 # Extract the first word of "dsymutil", so it can be a program name with args.
13443 set dummy dsymutil; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if test -n "$ac_ct_DSYMUTIL"; then
13450 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13470 if test -n "$ac_ct_DSYMUTIL"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13472 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478 if test "x$ac_ct_DSYMUTIL" = x; then
13479 DSYMUTIL=":"
13480 else
13481 case $cross_compiling:$ac_tool_warned in
13482 yes:)
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13485 ac_tool_warned=yes ;;
13486 esac
13487 DSYMUTIL=$ac_ct_DSYMUTIL
13488 fi
13489 else
13490 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13491 fi
13492
13493 if test -n "$ac_tool_prefix"; then
13494 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13495 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if ${ac_cv_prog_NMEDIT+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$NMEDIT"; then
13502 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515 done
13516 done
13517 IFS=$as_save_IFS
13518
13519 fi
13520 fi
13521 NMEDIT=$ac_cv_prog_NMEDIT
13522 if test -n "$NMEDIT"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13524 $as_echo "$NMEDIT" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530
13531 fi
13532 if test -z "$ac_cv_prog_NMEDIT"; then
13533 ac_ct_NMEDIT=$NMEDIT
13534 # Extract the first word of "nmedit", so it can be a program name with args.
13535 set dummy nmedit; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$ac_ct_NMEDIT"; then
13542 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555 done
13556 done
13557 IFS=$as_save_IFS
13558
13559 fi
13560 fi
13561 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13562 if test -n "$ac_ct_NMEDIT"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13564 $as_echo "$ac_ct_NMEDIT" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569
13570 if test "x$ac_ct_NMEDIT" = x; then
13571 NMEDIT=":"
13572 else
13573 case $cross_compiling:$ac_tool_warned in
13574 yes:)
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13577 ac_tool_warned=yes ;;
13578 esac
13579 NMEDIT=$ac_ct_NMEDIT
13580 fi
13581 else
13582 NMEDIT="$ac_cv_prog_NMEDIT"
13583 fi
13584
13585 if test -n "$ac_tool_prefix"; then
13586 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13587 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if ${ac_cv_prog_LIPO+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 if test -n "$LIPO"; then
13594 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13595 else
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13598 do
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13606 fi
13607 done
13608 done
13609 IFS=$as_save_IFS
13610
13611 fi
13612 fi
13613 LIPO=$ac_cv_prog_LIPO
13614 if test -n "$LIPO"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13616 $as_echo "$LIPO" >&6; }
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13620 fi
13621
13622
13623 fi
13624 if test -z "$ac_cv_prog_LIPO"; then
13625 ac_ct_LIPO=$LIPO
13626 # Extract the first word of "lipo", so it can be a program name with args.
13627 set dummy lipo; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 if test -n "$ac_ct_LIPO"; then
13634 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13638 do
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13643 ac_cv_prog_ac_ct_LIPO="lipo"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13646 fi
13647 done
13648 done
13649 IFS=$as_save_IFS
13650
13651 fi
13652 fi
13653 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13654 if test -n "$ac_ct_LIPO"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13656 $as_echo "$ac_ct_LIPO" >&6; }
13657 else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13660 fi
13661
13662 if test "x$ac_ct_LIPO" = x; then
13663 LIPO=":"
13664 else
13665 case $cross_compiling:$ac_tool_warned in
13666 yes:)
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13669 ac_tool_warned=yes ;;
13670 esac
13671 LIPO=$ac_ct_LIPO
13672 fi
13673 else
13674 LIPO="$ac_cv_prog_LIPO"
13675 fi
13676
13677 if test -n "$ac_tool_prefix"; then
13678 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13679 set dummy ${ac_tool_prefix}otool; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_prog_OTOOL+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 if test -n "$OTOOL"; then
13686 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13687 else
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 fi
13704 fi
13705 OTOOL=$ac_cv_prog_OTOOL
13706 if test -n "$OTOOL"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13708 $as_echo "$OTOOL" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 fi
13713
13714
13715 fi
13716 if test -z "$ac_cv_prog_OTOOL"; then
13717 ac_ct_OTOOL=$OTOOL
13718 # Extract the first word of "otool", so it can be a program name with args.
13719 set dummy otool; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -n "$ac_ct_OTOOL"; then
13726 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13730 do
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13735 ac_cv_prog_ac_ct_OTOOL="otool"
13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 break 2
13738 fi
13739 done
13740 done
13741 IFS=$as_save_IFS
13742
13743 fi
13744 fi
13745 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13746 if test -n "$ac_ct_OTOOL"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13748 $as_echo "$ac_ct_OTOOL" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754 if test "x$ac_ct_OTOOL" = x; then
13755 OTOOL=":"
13756 else
13757 case $cross_compiling:$ac_tool_warned in
13758 yes:)
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13761 ac_tool_warned=yes ;;
13762 esac
13763 OTOOL=$ac_ct_OTOOL
13764 fi
13765 else
13766 OTOOL="$ac_cv_prog_OTOOL"
13767 fi
13768
13769 if test -n "$ac_tool_prefix"; then
13770 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13771 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773 $as_echo_n "checking for $ac_word... " >&6; }
13774 if ${ac_cv_prog_OTOOL64+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 if test -n "$OTOOL64"; then
13778 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13779 else
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13782 do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13787 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13790 fi
13791 done
13792 done
13793 IFS=$as_save_IFS
13794
13795 fi
13796 fi
13797 OTOOL64=$ac_cv_prog_OTOOL64
13798 if test -n "$OTOOL64"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13800 $as_echo "$OTOOL64" >&6; }
13801 else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805
13806
13807 fi
13808 if test -z "$ac_cv_prog_OTOOL64"; then
13809 ac_ct_OTOOL64=$OTOOL64
13810 # Extract the first word of "otool64", so it can be a program name with args.
13811 set dummy otool64; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 if test -n "$ac_ct_OTOOL64"; then
13818 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_ac_ct_OTOOL64="otool64"
13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 break 2
13830 fi
13831 done
13832 done
13833 IFS=$as_save_IFS
13834
13835 fi
13836 fi
13837 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13838 if test -n "$ac_ct_OTOOL64"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13840 $as_echo "$ac_ct_OTOOL64" >&6; }
13841 else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846 if test "x$ac_ct_OTOOL64" = x; then
13847 OTOOL64=":"
13848 else
13849 case $cross_compiling:$ac_tool_warned in
13850 yes:)
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13853 ac_tool_warned=yes ;;
13854 esac
13855 OTOOL64=$ac_ct_OTOOL64
13856 fi
13857 else
13858 OTOOL64="$ac_cv_prog_OTOOL64"
13859 fi
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13888 $as_echo_n "checking for -single_module linker flag... " >&6; }
13889 if ${lt_cv_apple_cc_single_mod+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 lt_cv_apple_cc_single_mod=no
13893 if test -z "$LT_MULTI_MODULE"; then
13894 # By default we will add the -single_module flag. You can override
13895 # by either setting the environment variable LT_MULTI_MODULE
13896 # non-empty at configure time, or by adding -multi_module to the
13897 # link flags.
13898 rm -rf libconftest.dylib*
13899 echo "int foo(void){return 1;}" > conftest.c
13900 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13901 -dynamiclib -Wl,-single_module conftest.c" >&5
13902 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13903 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13904 _lt_result=$?
13905 # If there is a non-empty error log, and "single_module"
13906 # appears in it, assume the flag caused a linker warning
13907 if test -s conftest.err && $GREP single_module conftest.err; then
13908 cat conftest.err >&5
13909 # Otherwise, if the output was created with a 0 exit code from
13910 # the compiler, it worked.
13911 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13912 lt_cv_apple_cc_single_mod=yes
13913 else
13914 cat conftest.err >&5
13915 fi
13916 rm -rf libconftest.dylib*
13917 rm -f conftest.*
13918 fi
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13921 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13924 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13925 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 lt_cv_ld_exported_symbols_list=no
13929 save_LDFLAGS=$LDFLAGS
13930 echo "_main" > conftest.sym
13931 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934
13935 int
13936 main ()
13937 {
13938
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944 lt_cv_ld_exported_symbols_list=yes
13945 else
13946 lt_cv_ld_exported_symbols_list=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LDFLAGS=$save_LDFLAGS
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13954 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13957 $as_echo_n "checking for -force_load linker flag... " >&6; }
13958 if ${lt_cv_ld_force_load+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 lt_cv_ld_force_load=no
13962 cat > conftest.c << _LT_EOF
13963 int forced_loaded() { return 2;}
13964 _LT_EOF
13965 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13966 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13967 echo "$AR cru libconftest.a conftest.o" >&5
13968 $AR cru libconftest.a conftest.o 2>&5
13969 echo "$RANLIB libconftest.a" >&5
13970 $RANLIB libconftest.a 2>&5
13971 cat > conftest.c << _LT_EOF
13972 int main() { return 0;}
13973 _LT_EOF
13974 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13975 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13976 _lt_result=$?
13977 if test -s conftest.err && $GREP force_load conftest.err; then
13978 cat conftest.err >&5
13979 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13980 lt_cv_ld_force_load=yes
13981 else
13982 cat conftest.err >&5
13983 fi
13984 rm -f conftest.err libconftest.a conftest conftest.c
13985 rm -rf conftest.dSYM
13986
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13989 $as_echo "$lt_cv_ld_force_load" >&6; }
13990 case $host_os in
13991 rhapsody* | darwin1.[012])
13992 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13993 darwin1.*)
13994 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13995 darwin*) # darwin 5.x on
13996 # if running on 10.5 or later, the deployment target defaults
13997 # to the OS version, if on x86, and 10.4, the deployment
13998 # target defaults to 10.4. Don't you love it?
13999 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14000 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14001 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14002 10.[012][,.]*)
14003 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14004 10.*)
14005 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14006 esac
14007 ;;
14008 esac
14009 if test yes = "$lt_cv_apple_cc_single_mod"; then
14010 _lt_dar_single_mod='$single_module'
14011 fi
14012 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14013 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14014 else
14015 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14016 fi
14017 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14018 _lt_dsymutil='~$DSYMUTIL $lib || :'
14019 else
14020 _lt_dsymutil=
14021 fi
14022 ;;
14023 esac
14024
14025 # func_munge_path_list VARIABLE PATH
14026 # -----------------------------------
14027 # VARIABLE is name of variable containing _space_ separated list of
14028 # directories to be munged by the contents of PATH, which is string
14029 # having a format:
14030 # "DIR[:DIR]:"
14031 # string "DIR[ DIR]" will be prepended to VARIABLE
14032 # ":DIR[:DIR]"
14033 # string "DIR[ DIR]" will be appended to VARIABLE
14034 # "DIRP[:DIRP]::[DIRA:]DIRA"
14035 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14036 # "DIRA[ DIRA]" will be appended to VARIABLE
14037 # "DIR[:DIR]"
14038 # VARIABLE will be replaced by "DIR[ DIR]"
14039 func_munge_path_list ()
14040 {
14041 case x$2 in
14042 x)
14043 ;;
14044 *:)
14045 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14046 ;;
14047 x:*)
14048 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14049 ;;
14050 *::*)
14051 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14052 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14053 ;;
14054 *)
14055 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14056 ;;
14057 esac
14058 }
14059
14060 for ac_header in dlfcn.h
14061 do :
14062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14063 "
14064 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_DLFCN_H 1
14067 _ACEOF
14068
14069 fi
14070
14071 done
14072
14073
14074
14075
14076
14077 # Set options
14078
14079
14080
14081 enable_dlopen=no
14082
14083
14084 enable_win32_dll=no
14085
14086
14087 # Check whether --enable-shared was given.
14088 if test "${enable_shared+set}" = set; then :
14089 enableval=$enable_shared; p=${PACKAGE-default}
14090 case $enableval in
14091 yes) enable_shared=yes ;;
14092 no) enable_shared=no ;;
14093 *)
14094 enable_shared=no
14095 # Look at the argument we got. We use all the common list separators.
14096 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14097 for pkg in $enableval; do
14098 IFS=$lt_save_ifs
14099 if test "X$pkg" = "X$p"; then
14100 enable_shared=yes
14101 fi
14102 done
14103 IFS=$lt_save_ifs
14104 ;;
14105 esac
14106 else
14107 enable_shared=yes
14108 fi
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120 # Check whether --with-pic was given.
14121 if test "${with_pic+set}" = set; then :
14122 withval=$with_pic; lt_p=${PACKAGE-default}
14123 case $withval in
14124 yes|no) pic_mode=$withval ;;
14125 *)
14126 pic_mode=default
14127 # Look at the argument we got. We use all the common list separators.
14128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14129 for lt_pkg in $withval; do
14130 IFS=$lt_save_ifs
14131 if test "X$lt_pkg" = "X$lt_p"; then
14132 pic_mode=yes
14133 fi
14134 done
14135 IFS=$lt_save_ifs
14136 ;;
14137 esac
14138 else
14139 pic_mode=default
14140 fi
14141
14142
14143
14144
14145
14146
14147
14148
14149 # Check whether --enable-fast-install was given.
14150 if test "${enable_fast_install+set}" = set; then :
14151 enableval=$enable_fast_install; p=${PACKAGE-default}
14152 case $enableval in
14153 yes) enable_fast_install=yes ;;
14154 no) enable_fast_install=no ;;
14155 *)
14156 enable_fast_install=no
14157 # Look at the argument we got. We use all the common list separators.
14158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14159 for pkg in $enableval; do
14160 IFS=$lt_save_ifs
14161 if test "X$pkg" = "X$p"; then
14162 enable_fast_install=yes
14163 fi
14164 done
14165 IFS=$lt_save_ifs
14166 ;;
14167 esac
14168 else
14169 enable_fast_install=yes
14170 fi
14171
14172
14173
14174
14175
14176
14177
14178
14179 shared_archive_member_spec=
14180 case $host,$enable_shared in
14181 power*-*-aix[5-9]*,yes)
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14183 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14184
14185 # Check whether --with-aix-soname was given.
14186 if test "${with_aix_soname+set}" = set; then :
14187 withval=$with_aix_soname; case $withval in
14188 aix|svr4|both)
14189 ;;
14190 *)
14191 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14192 ;;
14193 esac
14194 lt_cv_with_aix_soname=$with_aix_soname
14195 else
14196 if ${lt_cv_with_aix_soname+:} false; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 lt_cv_with_aix_soname=aix
14200 fi
14201
14202 with_aix_soname=$lt_cv_with_aix_soname
14203 fi
14204
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14206 $as_echo "$with_aix_soname" >&6; }
14207 if test aix != "$with_aix_soname"; then
14208 # For the AIX way of multilib, we name the shared archive member
14209 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14210 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14211 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14212 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14213 if test 64 = "${OBJECT_MODE-32}"; then
14214 shared_archive_member_spec=shr_64
14215 else
14216 shared_archive_member_spec=shr
14217 fi
14218 fi
14219 ;;
14220 *)
14221 with_aix_soname=aix
14222 ;;
14223 esac
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234 # This can be used to rebuild libtool when needed
14235 LIBTOOL_DEPS=$ltmain
14236
14237 # Always use our own libtool.
14238 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269 test -z "$LN_S" && LN_S="ln -s"
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284 if test -n "${ZSH_VERSION+set}"; then
14285 setopt NO_GLOB_SUBST
14286 fi
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14289 $as_echo_n "checking for objdir... " >&6; }
14290 if ${lt_cv_objdir+:} false; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 rm -f .libs 2>/dev/null
14294 mkdir .libs 2>/dev/null
14295 if test -d .libs; then
14296 lt_cv_objdir=.libs
14297 else
14298 # MS-DOS does not allow filenames that begin with a dot.
14299 lt_cv_objdir=_libs
14300 fi
14301 rmdir .libs 2>/dev/null
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14304 $as_echo "$lt_cv_objdir" >&6; }
14305 objdir=$lt_cv_objdir
14306
14307
14308
14309
14310
14311 cat >>confdefs.h <<_ACEOF
14312 #define LT_OBJDIR "$lt_cv_objdir/"
14313 _ACEOF
14314
14315
14316
14317
14318 case $host_os in
14319 aix3*)
14320 # AIX sometimes has problems with the GCC collect2 program. For some
14321 # reason, if we set the COLLECT_NAMES environment variable, the problems
14322 # vanish in a puff of smoke.
14323 if test set != "${COLLECT_NAMES+set}"; then
14324 COLLECT_NAMES=
14325 export COLLECT_NAMES
14326 fi
14327 ;;
14328 esac
14329
14330 # Global variables:
14331 ofile=libtool
14332 can_build_shared=yes
14333
14334 # All known linkers require a '.a' archive for static linking (except MSVC,
14335 # which needs '.lib').
14336 libext=a
14337
14338 with_gnu_ld=$lt_cv_prog_gnu_ld
14339
14340 old_CC=$CC
14341 old_CFLAGS=$CFLAGS
14342
14343 # Set sane defaults for various variables
14344 test -z "$CC" && CC=cc
14345 test -z "$LTCC" && LTCC=$CC
14346 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14347 test -z "$LD" && LD=ld
14348 test -z "$ac_objext" && ac_objext=o
14349
14350 func_cc_basename $compiler
14351 cc_basename=$func_cc_basename_result
14352
14353
14354 # Only perform the check for file, if the check method requires it
14355 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14356 case $deplibs_check_method in
14357 file_magic*)
14358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14360 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14361 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 case $MAGIC_CMD in
14365 [\\/*] | ?:[\\/]*)
14366 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14367 ;;
14368 *)
14369 lt_save_MAGIC_CMD=$MAGIC_CMD
14370 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14372 for ac_dir in $ac_dummy; do
14373 IFS=$lt_save_ifs
14374 test -z "$ac_dir" && ac_dir=.
14375 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14376 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14377 if test -n "$file_magic_test_file"; then
14378 case $deplibs_check_method in
14379 "file_magic "*)
14380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14383 $EGREP "$file_magic_regex" > /dev/null; then
14384 :
14385 else
14386 cat <<_LT_EOF 1>&2
14387
14388 *** Warning: the command libtool uses to detect shared libraries,
14389 *** $file_magic_cmd, produces output that libtool cannot recognize.
14390 *** The result is that libtool may fail to recognize shared libraries
14391 *** as such. This will affect the creation of libtool libraries that
14392 *** depend on shared libraries, but programs linked with such libtool
14393 *** libraries will work regardless of this problem. Nevertheless, you
14394 *** may want to report the problem to your system manager and/or to
14395 *** bug-libtool (at] gnu.org
14396
14397 _LT_EOF
14398 fi ;;
14399 esac
14400 fi
14401 break
14402 fi
14403 done
14404 IFS=$lt_save_ifs
14405 MAGIC_CMD=$lt_save_MAGIC_CMD
14406 ;;
14407 esac
14408 fi
14409
14410 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14411 if test -n "$MAGIC_CMD"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14413 $as_echo "$MAGIC_CMD" >&6; }
14414 else
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417 fi
14418
14419
14420
14421
14422
14423 if test -z "$lt_cv_path_MAGIC_CMD"; then
14424 if test -n "$ac_tool_prefix"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14426 $as_echo_n "checking for file... " >&6; }
14427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14428 $as_echo_n "(cached) " >&6
14429 else
14430 case $MAGIC_CMD in
14431 [\\/*] | ?:[\\/]*)
14432 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14433 ;;
14434 *)
14435 lt_save_MAGIC_CMD=$MAGIC_CMD
14436 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14438 for ac_dir in $ac_dummy; do
14439 IFS=$lt_save_ifs
14440 test -z "$ac_dir" && ac_dir=.
14441 if test -f "$ac_dir/file"; then
14442 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14443 if test -n "$file_magic_test_file"; then
14444 case $deplibs_check_method in
14445 "file_magic "*)
14446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14447 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14449 $EGREP "$file_magic_regex" > /dev/null; then
14450 :
14451 else
14452 cat <<_LT_EOF 1>&2
14453
14454 *** Warning: the command libtool uses to detect shared libraries,
14455 *** $file_magic_cmd, produces output that libtool cannot recognize.
14456 *** The result is that libtool may fail to recognize shared libraries
14457 *** as such. This will affect the creation of libtool libraries that
14458 *** depend on shared libraries, but programs linked with such libtool
14459 *** libraries will work regardless of this problem. Nevertheless, you
14460 *** may want to report the problem to your system manager and/or to
14461 *** bug-libtool (at] gnu.org
14462
14463 _LT_EOF
14464 fi ;;
14465 esac
14466 fi
14467 break
14468 fi
14469 done
14470 IFS=$lt_save_ifs
14471 MAGIC_CMD=$lt_save_MAGIC_CMD
14472 ;;
14473 esac
14474 fi
14475
14476 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14477 if test -n "$MAGIC_CMD"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14479 $as_echo "$MAGIC_CMD" >&6; }
14480 else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483 fi
14484
14485
14486 else
14487 MAGIC_CMD=:
14488 fi
14489 fi
14490
14491 fi
14492 ;;
14493 esac
14494
14495 # Use C for the default configuration in the libtool script
14496
14497 lt_save_CC=$CC
14498 ac_ext=c
14499 ac_cpp='$CPP $CPPFLAGS'
14500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14503
14504
14505 # Source file extension for C test sources.
14506 ac_ext=c
14507
14508 # Object file extension for compiled C test sources.
14509 objext=o
14510 objext=$objext
14511
14512 # Code to be used in simple compile tests
14513 lt_simple_compile_test_code="int some_variable = 0;"
14514
14515 # Code to be used in simple link tests
14516 lt_simple_link_test_code='int main(){return(0);}'
14517
14518
14519
14520
14521
14522
14523
14524 # If no C compiler was specified, use CC.
14525 LTCC=${LTCC-"$CC"}
14526
14527 # If no C compiler flags were specified, use CFLAGS.
14528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14529
14530 # Allow CC to be a program name with arguments.
14531 compiler=$CC
14532
14533 # Save the default compiler, since it gets overwritten when the other
14534 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14535 compiler_DEFAULT=$CC
14536
14537 # save warnings/boilerplate of simple test code
14538 ac_outfile=conftest.$ac_objext
14539 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14540 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14541 _lt_compiler_boilerplate=`cat conftest.err`
14542 $RM conftest*
14543
14544 ac_outfile=conftest.$ac_objext
14545 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14546 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14547 _lt_linker_boilerplate=`cat conftest.err`
14548 $RM -r conftest*
14549
14550
14551 if test -n "$compiler"; then
14552
14553 lt_prog_compiler_no_builtin_flag=
14554
14555 if test yes = "$GCC"; then
14556 case $cc_basename in
14557 nvcc*)
14558 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14559 *)
14560 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14561 esac
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14564 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14565 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 lt_cv_prog_compiler_rtti_exceptions=no
14569 ac_outfile=conftest.$ac_objext
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 # The option is referenced via a variable to avoid confusing sed.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>conftest.err)
14583 ac_status=$?
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s "$ac_outfile"; then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings other than the usual output.
14589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_rtti_exceptions=yes
14593 fi
14594 fi
14595 $RM conftest*
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14599 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14600
14601 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14602 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14603 else
14604 :
14605 fi
14606
14607 fi
14608
14609
14610
14611
14612
14613
14614 lt_prog_compiler_wl=
14615 lt_prog_compiler_pic=
14616 lt_prog_compiler_static=
14617
14618
14619 if test yes = "$GCC"; then
14620 lt_prog_compiler_wl='-Wl,'
14621 lt_prog_compiler_static='-static'
14622
14623 case $host_os in
14624 aix*)
14625 # All AIX code is PIC.
14626 if test ia64 = "$host_cpu"; then
14627 # AIX 5 now supports IA64 processor
14628 lt_prog_compiler_static='-Bstatic'
14629 fi
14630 lt_prog_compiler_pic='-fPIC'
14631 ;;
14632
14633 amigaos*)
14634 case $host_cpu in
14635 powerpc)
14636 # see comment about AmigaOS4 .so support
14637 lt_prog_compiler_pic='-fPIC'
14638 ;;
14639 m68k)
14640 # FIXME: we need at least 68020 code to build shared libraries, but
14641 # adding the '-m68020' flag to GCC prevents building anything better,
14642 # like '-m68040'.
14643 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14644 ;;
14645 esac
14646 ;;
14647
14648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14649 # PIC is the default for these OSes.
14650 ;;
14651
14652 mingw* | cygwin* | pw32* | os2* | cegcc*)
14653 # This hack is so that the source file can tell whether it is being
14654 # built for inclusion in a dll (and should export symbols for example).
14655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14656 # (--disable-auto-import) libraries
14657 lt_prog_compiler_pic='-DDLL_EXPORT'
14658 case $host_os in
14659 os2*)
14660 lt_prog_compiler_static='$wl-static'
14661 ;;
14662 esac
14663 ;;
14664
14665 darwin* | rhapsody*)
14666 # PIC is the default on this platform
14667 # Common symbols not allowed in MH_DYLIB files
14668 lt_prog_compiler_pic='-fno-common'
14669 ;;
14670
14671 haiku*)
14672 # PIC is the default for Haiku.
14673 # The "-static" flag exists, but is broken.
14674 lt_prog_compiler_static=
14675 ;;
14676
14677 hpux*)
14678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14680 # sets the default TLS model and affects inlining.
14681 case $host_cpu in
14682 hppa*64*)
14683 # +Z the default
14684 ;;
14685 *)
14686 lt_prog_compiler_pic='-fPIC'
14687 ;;
14688 esac
14689 ;;
14690
14691 interix[3-9]*)
14692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14693 # Instead, we relocate shared libraries at runtime.
14694 ;;
14695
14696 msdosdjgpp*)
14697 # Just because we use GCC doesn't mean we suddenly get shared libraries
14698 # on systems that don't support them.
14699 lt_prog_compiler_can_build_shared=no
14700 enable_shared=no
14701 ;;
14702
14703 *nto* | *qnx*)
14704 # QNX uses GNU C++, but need to define -shared option too, otherwise
14705 # it will coredump.
14706 lt_prog_compiler_pic='-fPIC -shared'
14707 ;;
14708
14709 sysv4*MP*)
14710 if test -d /usr/nec; then
14711 lt_prog_compiler_pic=-Kconform_pic
14712 fi
14713 ;;
14714
14715 *)
14716 lt_prog_compiler_pic='-fPIC'
14717 ;;
14718 esac
14719
14720 case $cc_basename in
14721 nvcc*) # Cuda Compiler Driver 2.2
14722 lt_prog_compiler_wl='-Xlinker '
14723 if test -n "$lt_prog_compiler_pic"; then
14724 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14725 fi
14726 ;;
14727 esac
14728 else
14729 # PORTME Check for flag to pass linker flags through the system compiler.
14730 case $host_os in
14731 aix*)
14732 lt_prog_compiler_wl='-Wl,'
14733 if test ia64 = "$host_cpu"; then
14734 # AIX 5 now supports IA64 processor
14735 lt_prog_compiler_static='-Bstatic'
14736 else
14737 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14738 fi
14739 ;;
14740
14741 darwin* | rhapsody*)
14742 # PIC is the default on this platform
14743 # Common symbols not allowed in MH_DYLIB files
14744 lt_prog_compiler_pic='-fno-common'
14745 case $cc_basename in
14746 nagfor*)
14747 # NAG Fortran compiler
14748 lt_prog_compiler_wl='-Wl,-Wl,,'
14749 lt_prog_compiler_pic='-PIC'
14750 lt_prog_compiler_static='-Bstatic'
14751 ;;
14752 esac
14753 ;;
14754
14755 mingw* | cygwin* | pw32* | os2* | cegcc*)
14756 # This hack is so that the source file can tell whether it is being
14757 # built for inclusion in a dll (and should export symbols for example).
14758 lt_prog_compiler_pic='-DDLL_EXPORT'
14759 case $host_os in
14760 os2*)
14761 lt_prog_compiler_static='$wl-static'
14762 ;;
14763 esac
14764 ;;
14765
14766 hpux9* | hpux10* | hpux11*)
14767 lt_prog_compiler_wl='-Wl,'
14768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14769 # not for PA HP-UX.
14770 case $host_cpu in
14771 hppa*64*|ia64*)
14772 # +Z the default
14773 ;;
14774 *)
14775 lt_prog_compiler_pic='+Z'
14776 ;;
14777 esac
14778 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14779 lt_prog_compiler_static='$wl-a ${wl}archive'
14780 ;;
14781
14782 irix5* | irix6* | nonstopux*)
14783 lt_prog_compiler_wl='-Wl,'
14784 # PIC (with -KPIC) is the default.
14785 lt_prog_compiler_static='-non_shared'
14786 ;;
14787
14788 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14789 case $cc_basename in
14790 # old Intel for x86_64, which still supported -KPIC.
14791 ecc*)
14792 lt_prog_compiler_wl='-Wl,'
14793 lt_prog_compiler_pic='-KPIC'
14794 lt_prog_compiler_static='-static'
14795 ;;
14796 # icc used to be incompatible with GCC.
14797 # ICC 10 doesn't accept -KPIC any more.
14798 icc* | ifort*)
14799 lt_prog_compiler_wl='-Wl,'
14800 lt_prog_compiler_pic='-fPIC'
14801 lt_prog_compiler_static='-static'
14802 ;;
14803 # Lahey Fortran 8.1.
14804 lf95*)
14805 lt_prog_compiler_wl='-Wl,'
14806 lt_prog_compiler_pic='--shared'
14807 lt_prog_compiler_static='--static'
14808 ;;
14809 nagfor*)
14810 # NAG Fortran compiler
14811 lt_prog_compiler_wl='-Wl,-Wl,,'
14812 lt_prog_compiler_pic='-PIC'
14813 lt_prog_compiler_static='-Bstatic'
14814 ;;
14815 tcc*)
14816 # Fabrice Bellard et al's Tiny C Compiler
14817 lt_prog_compiler_wl='-Wl,'
14818 lt_prog_compiler_pic='-fPIC'
14819 lt_prog_compiler_static='-static'
14820 ;;
14821 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14822 # Portland Group compilers (*not* the Pentium gcc compiler,
14823 # which looks to be a dead project)
14824 lt_prog_compiler_wl='-Wl,'
14825 lt_prog_compiler_pic='-fpic'
14826 lt_prog_compiler_static='-Bstatic'
14827 ;;
14828 ccc*)
14829 lt_prog_compiler_wl='-Wl,'
14830 # All Alpha code is PIC.
14831 lt_prog_compiler_static='-non_shared'
14832 ;;
14833 xl* | bgxl* | bgf* | mpixl*)
14834 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14835 lt_prog_compiler_wl='-Wl,'
14836 lt_prog_compiler_pic='-qpic'
14837 lt_prog_compiler_static='-qstaticlink'
14838 ;;
14839 *)
14840 case `$CC -V 2>&1 | sed 5q` in
14841 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14842 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14843 lt_prog_compiler_pic='-KPIC'
14844 lt_prog_compiler_static='-Bstatic'
14845 lt_prog_compiler_wl=''
14846 ;;
14847 *Sun\ F* | *Sun*Fortran*)
14848 lt_prog_compiler_pic='-KPIC'
14849 lt_prog_compiler_static='-Bstatic'
14850 lt_prog_compiler_wl='-Qoption ld '
14851 ;;
14852 *Sun\ C*)
14853 # Sun C 5.9
14854 lt_prog_compiler_pic='-KPIC'
14855 lt_prog_compiler_static='-Bstatic'
14856 lt_prog_compiler_wl='-Wl,'
14857 ;;
14858 *Intel*\ [CF]*Compiler*)
14859 lt_prog_compiler_wl='-Wl,'
14860 lt_prog_compiler_pic='-fPIC'
14861 lt_prog_compiler_static='-static'
14862 ;;
14863 *Portland\ Group*)
14864 lt_prog_compiler_wl='-Wl,'
14865 lt_prog_compiler_pic='-fpic'
14866 lt_prog_compiler_static='-Bstatic'
14867 ;;
14868 esac
14869 ;;
14870 esac
14871 ;;
14872
14873 newsos6)
14874 lt_prog_compiler_pic='-KPIC'
14875 lt_prog_compiler_static='-Bstatic'
14876 ;;
14877
14878 *nto* | *qnx*)
14879 # QNX uses GNU C++, but need to define -shared option too, otherwise
14880 # it will coredump.
14881 lt_prog_compiler_pic='-fPIC -shared'
14882 ;;
14883
14884 osf3* | osf4* | osf5*)
14885 lt_prog_compiler_wl='-Wl,'
14886 # All OSF/1 code is PIC.
14887 lt_prog_compiler_static='-non_shared'
14888 ;;
14889
14890 rdos*)
14891 lt_prog_compiler_static='-non_shared'
14892 ;;
14893
14894 solaris*)
14895 lt_prog_compiler_pic='-KPIC'
14896 lt_prog_compiler_static='-Bstatic'
14897 case $cc_basename in
14898 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14899 lt_prog_compiler_wl='-Qoption ld ';;
14900 *)
14901 lt_prog_compiler_wl='-Wl,';;
14902 esac
14903 ;;
14904
14905 sunos4*)
14906 lt_prog_compiler_wl='-Qoption ld '
14907 lt_prog_compiler_pic='-PIC'
14908 lt_prog_compiler_static='-Bstatic'
14909 ;;
14910
14911 sysv4 | sysv4.2uw2* | sysv4.3*)
14912 lt_prog_compiler_wl='-Wl,'
14913 lt_prog_compiler_pic='-KPIC'
14914 lt_prog_compiler_static='-Bstatic'
14915 ;;
14916
14917 sysv4*MP*)
14918 if test -d /usr/nec; then
14919 lt_prog_compiler_pic='-Kconform_pic'
14920 lt_prog_compiler_static='-Bstatic'
14921 fi
14922 ;;
14923
14924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14925 lt_prog_compiler_wl='-Wl,'
14926 lt_prog_compiler_pic='-KPIC'
14927 lt_prog_compiler_static='-Bstatic'
14928 ;;
14929
14930 unicos*)
14931 lt_prog_compiler_wl='-Wl,'
14932 lt_prog_compiler_can_build_shared=no
14933 ;;
14934
14935 uts4*)
14936 lt_prog_compiler_pic='-pic'
14937 lt_prog_compiler_static='-Bstatic'
14938 ;;
14939
14940 *)
14941 lt_prog_compiler_can_build_shared=no
14942 ;;
14943 esac
14944 fi
14945
14946 case $host_os in
14947 # For platforms that do not support PIC, -DPIC is meaningless:
14948 *djgpp*)
14949 lt_prog_compiler_pic=
14950 ;;
14951 *)
14952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14953 ;;
14954 esac
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14957 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14958 if ${lt_cv_prog_compiler_pic+:} false; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14964 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14965 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14966
14967 #
14968 # Check to make sure the PIC flag actually works.
14969 #
14970 if test -n "$lt_prog_compiler_pic"; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14972 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14973 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 lt_cv_prog_compiler_pic_works=no
14977 ac_outfile=conftest.$ac_objext
14978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14979 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14980 # Insert the option either (1) after the last *FLAGS variable, or
14981 # (2) before a word containing "conftest.", or (3) at the end.
14982 # Note that $ac_compile itself does not contain backslashes and begins
14983 # with a dollar sign (not a hyphen), so the echo should work correctly.
14984 # The option is referenced via a variable to avoid confusing sed.
14985 lt_compile=`echo "$ac_compile" | $SED \
14986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14988 -e 's:$: $lt_compiler_flag:'`
14989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14990 (eval "$lt_compile" 2>conftest.err)
14991 ac_status=$?
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 if (exit $ac_status) && test -s "$ac_outfile"; then
14995 # The compiler can only warn and ignore the option if not recognized
14996 # So say no if there are warnings other than the usual output.
14997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15000 lt_cv_prog_compiler_pic_works=yes
15001 fi
15002 fi
15003 $RM conftest*
15004
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15007 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15008
15009 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15010 case $lt_prog_compiler_pic in
15011 "" | " "*) ;;
15012 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15013 esac
15014 else
15015 lt_prog_compiler_pic=
15016 lt_prog_compiler_can_build_shared=no
15017 fi
15018
15019 fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031 #
15032 # Check to make sure the static flag actually works.
15033 #
15034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15036 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15037 if ${lt_cv_prog_compiler_static_works+:} false; then :
15038 $as_echo_n "(cached) " >&6
15039 else
15040 lt_cv_prog_compiler_static_works=no
15041 save_LDFLAGS=$LDFLAGS
15042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15045 # The linker can only warn and ignore the option if not recognized
15046 # So say no if there are warnings
15047 if test -s conftest.err; then
15048 # Append any errors to the config.log.
15049 cat conftest.err 1>&5
15050 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15052 if diff conftest.exp conftest.er2 >/dev/null; then
15053 lt_cv_prog_compiler_static_works=yes
15054 fi
15055 else
15056 lt_cv_prog_compiler_static_works=yes
15057 fi
15058 fi
15059 $RM -r conftest*
15060 LDFLAGS=$save_LDFLAGS
15061
15062 fi
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15064 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15065
15066 if test yes = "$lt_cv_prog_compiler_static_works"; then
15067 :
15068 else
15069 lt_prog_compiler_static=
15070 fi
15071
15072
15073
15074
15075
15076
15077
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15080 if ${lt_cv_prog_compiler_c_o+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 lt_cv_prog_compiler_c_o=no
15084 $RM -r conftest 2>/dev/null
15085 mkdir conftest
15086 cd conftest
15087 mkdir out
15088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15089
15090 lt_compiler_flag="-o out/conftest2.$ac_objext"
15091 # Insert the option either (1) after the last *FLAGS variable, or
15092 # (2) before a word containing "conftest.", or (3) at the end.
15093 # Note that $ac_compile itself does not contain backslashes and begins
15094 # with a dollar sign (not a hyphen), so the echo should work correctly.
15095 lt_compile=`echo "$ac_compile" | $SED \
15096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098 -e 's:$: $lt_compiler_flag:'`
15099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15100 (eval "$lt_compile" 2>out/conftest.err)
15101 ac_status=$?
15102 cat out/conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105 then
15106 # The compiler can only warn and ignore the option if not recognized
15107 # So say no if there are warnings
15108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15111 lt_cv_prog_compiler_c_o=yes
15112 fi
15113 fi
15114 chmod u+w . 2>&5
15115 $RM conftest*
15116 # SGI C++ compiler will create directory out/ii_files/ for
15117 # template instantiation
15118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15119 $RM out/* && rmdir out
15120 cd ..
15121 $RM -r conftest
15122 $RM conftest*
15123
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15127
15128
15129
15130
15131
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15135 if ${lt_cv_prog_compiler_c_o+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 lt_cv_prog_compiler_c_o=no
15139 $RM -r conftest 2>/dev/null
15140 mkdir conftest
15141 cd conftest
15142 mkdir out
15143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
15145 lt_compiler_flag="-o out/conftest2.$ac_objext"
15146 # Insert the option either (1) after the last *FLAGS variable, or
15147 # (2) before a word containing "conftest.", or (3) at the end.
15148 # Note that $ac_compile itself does not contain backslashes and begins
15149 # with a dollar sign (not a hyphen), so the echo should work correctly.
15150 lt_compile=`echo "$ac_compile" | $SED \
15151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15153 -e 's:$: $lt_compiler_flag:'`
15154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15155 (eval "$lt_compile" 2>out/conftest.err)
15156 ac_status=$?
15157 cat out/conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15160 then
15161 # The compiler can only warn and ignore the option if not recognized
15162 # So say no if there are warnings
15163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15166 lt_cv_prog_compiler_c_o=yes
15167 fi
15168 fi
15169 chmod u+w . 2>&5
15170 $RM conftest*
15171 # SGI C++ compiler will create directory out/ii_files/ for
15172 # template instantiation
15173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15174 $RM out/* && rmdir out
15175 cd ..
15176 $RM -r conftest
15177 $RM conftest*
15178
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15182
15183
15184
15185
15186 hard_links=nottested
15187 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15188 # do not overwrite the value of need_locks provided by the user
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15190 $as_echo_n "checking if we can lock with hard links... " >&6; }
15191 hard_links=yes
15192 $RM conftest*
15193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15194 touch conftest.a
15195 ln conftest.a conftest.b 2>&5 || hard_links=no
15196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15198 $as_echo "$hard_links" >&6; }
15199 if test no = "$hard_links"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15201 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15202 need_locks=warn
15203 fi
15204 else
15205 need_locks=no
15206 fi
15207
15208
15209
15210
15211
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15214 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15215
15216 runpath_var=
15217 allow_undefined_flag=
15218 always_export_symbols=no
15219 archive_cmds=
15220 archive_expsym_cmds=
15221 compiler_needs_object=no
15222 enable_shared_with_static_runtimes=no
15223 export_dynamic_flag_spec=
15224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15225 hardcode_automatic=no
15226 hardcode_direct=no
15227 hardcode_direct_absolute=no
15228 hardcode_libdir_flag_spec=
15229 hardcode_libdir_separator=
15230 hardcode_minus_L=no
15231 hardcode_shlibpath_var=unsupported
15232 inherit_rpath=no
15233 link_all_deplibs=unknown
15234 module_cmds=
15235 module_expsym_cmds=
15236 old_archive_from_new_cmds=
15237 old_archive_from_expsyms_cmds=
15238 thread_safe_flag_spec=
15239 whole_archive_flag_spec=
15240 # include_expsyms should be a list of space-separated symbols to be *always*
15241 # included in the symbol list
15242 include_expsyms=
15243 # exclude_expsyms can be an extended regexp of symbols to exclude
15244 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15245 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15246 # as well as any symbol that contains 'd'.
15247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15249 # platforms (ab)use it in PIC code, but their linkers get confused if
15250 # the symbol is explicitly referenced. Since portable code cannot
15251 # rely on this symbol name, it's probably fine to never include it in
15252 # preloaded symbol tables.
15253 # Exclude shared library initialization/finalization symbols.
15254 extract_expsyms_cmds=
15255
15256 case $host_os in
15257 cygwin* | mingw* | pw32* | cegcc*)
15258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15259 # When not using gcc, we currently assume that we are using
15260 # Microsoft Visual C++.
15261 if test yes != "$GCC"; then
15262 with_gnu_ld=no
15263 fi
15264 ;;
15265 interix*)
15266 # we just hope/assume this is gcc and not c89 (= MSVC++)
15267 with_gnu_ld=yes
15268 ;;
15269 openbsd* | bitrig*)
15270 with_gnu_ld=no
15271 ;;
15272 esac
15273
15274 ld_shlibs=yes
15275
15276 # On some targets, GNU ld is compatible enough with the native linker
15277 # that we're better off using the native interface for both.
15278 lt_use_gnu_ld_interface=no
15279 if test yes = "$with_gnu_ld"; then
15280 case $host_os in
15281 aix*)
15282 # The AIX port of GNU ld has always aspired to compatibility
15283 # with the native linker. However, as the warning in the GNU ld
15284 # block says, versions before 2.19.5* couldn't really create working
15285 # shared libraries, regardless of the interface used.
15286 case `$LD -v 2>&1` in
15287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15289 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15290 *)
15291 lt_use_gnu_ld_interface=yes
15292 ;;
15293 esac
15294 ;;
15295 *)
15296 lt_use_gnu_ld_interface=yes
15297 ;;
15298 esac
15299 fi
15300
15301 if test yes = "$lt_use_gnu_ld_interface"; then
15302 # If archive_cmds runs LD, not CC, wlarc should be empty
15303 wlarc='$wl'
15304
15305 # Set some defaults for GNU ld with shared library support. These
15306 # are reset later if shared libraries are not supported. Putting them
15307 # here allows them to be overridden if necessary.
15308 runpath_var=LD_RUN_PATH
15309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15310 export_dynamic_flag_spec='$wl--export-dynamic'
15311 # ancient GNU ld didn't support --whole-archive et. al.
15312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15313 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15314 else
15315 whole_archive_flag_spec=
15316 fi
15317 supports_anon_versioning=no
15318 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15319 *GNU\ gold*) supports_anon_versioning=yes ;;
15320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15323 *\ 2.11.*) ;; # other 2.11 versions
15324 *) supports_anon_versioning=yes ;;
15325 esac
15326
15327 # See if GNU ld supports shared libraries.
15328 case $host_os in
15329 aix[3-9]*)
15330 # On AIX/PPC, the GNU linker is very broken
15331 if test ia64 != "$host_cpu"; then
15332 ld_shlibs=no
15333 cat <<_LT_EOF 1>&2
15334
15335 *** Warning: the GNU linker, at least up to release 2.19, is reported
15336 *** to be unable to reliably create shared libraries on AIX.
15337 *** Therefore, libtool is disabling shared libraries support. If you
15338 *** really care for shared libraries, you may want to install binutils
15339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15340 *** You will then need to restart the configuration process.
15341
15342 _LT_EOF
15343 fi
15344 ;;
15345
15346 amigaos*)
15347 case $host_cpu in
15348 powerpc)
15349 # see comment about AmigaOS4 .so support
15350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15351 archive_expsym_cmds=''
15352 ;;
15353 m68k)
15354 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)'
15355 hardcode_libdir_flag_spec='-L$libdir'
15356 hardcode_minus_L=yes
15357 ;;
15358 esac
15359 ;;
15360
15361 beos*)
15362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15363 allow_undefined_flag=unsupported
15364 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15365 # support --undefined. This deserves some investigation. FIXME
15366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15367 else
15368 ld_shlibs=no
15369 fi
15370 ;;
15371
15372 cygwin* | mingw* | pw32* | cegcc*)
15373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15374 # as there is no search path for DLLs.
15375 hardcode_libdir_flag_spec='-L$libdir'
15376 export_dynamic_flag_spec='$wl--export-all-symbols'
15377 allow_undefined_flag=unsupported
15378 always_export_symbols=no
15379 enable_shared_with_static_runtimes=yes
15380 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'
15381 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15382
15383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15385 # If the export-symbols file already is a .def file, use it as
15386 # is; otherwise, prepend EXPORTS...
15387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15388 cp $export_symbols $output_objdir/$soname.def;
15389 else
15390 echo EXPORTS > $output_objdir/$soname.def;
15391 cat $export_symbols >> $output_objdir/$soname.def;
15392 fi~
15393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15394 else
15395 ld_shlibs=no
15396 fi
15397 ;;
15398
15399 haiku*)
15400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15401 link_all_deplibs=yes
15402 ;;
15403
15404 os2*)
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 hardcode_minus_L=yes
15407 allow_undefined_flag=unsupported
15408 shrext_cmds=.dll
15409 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15412 $ECHO EXPORTS >> $output_objdir/$libname.def~
15413 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15415 emximp -o $lib $output_objdir/$libname.def'
15416 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15419 $ECHO EXPORTS >> $output_objdir/$libname.def~
15420 prefix_cmds="$SED"~
15421 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15422 prefix_cmds="$prefix_cmds -e 1d";
15423 fi~
15424 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15425 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15427 emximp -o $lib $output_objdir/$libname.def'
15428 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15429 enable_shared_with_static_runtimes=yes
15430 ;;
15431
15432 interix[3-9]*)
15433 hardcode_direct=no
15434 hardcode_shlibpath_var=no
15435 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15436 export_dynamic_flag_spec='$wl-E'
15437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15438 # Instead, shared libraries are loaded at an image base (0x10000000 by
15439 # default) and relocated if they conflict, which is a slow very memory
15440 # consuming and fragmenting process. To avoid this, we pick a random,
15441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15444 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'
15445 ;;
15446
15447 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15448 tmp_diet=no
15449 if test linux-dietlibc = "$host_os"; then
15450 case $cc_basename in
15451 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15452 esac
15453 fi
15454 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15455 && test no = "$tmp_diet"
15456 then
15457 tmp_addflag=' $pic_flag'
15458 tmp_sharedflag='-shared'
15459 case $cc_basename,$host_cpu in
15460 pgcc*) # Portland Group C compiler
15461 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'
15462 tmp_addflag=' $pic_flag'
15463 ;;
15464 pgf77* | pgf90* | pgf95* | pgfortran*)
15465 # Portland Group f77 and f90 compilers
15466 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'
15467 tmp_addflag=' $pic_flag -Mnomain' ;;
15468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15469 tmp_addflag=' -i_dynamic' ;;
15470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15471 tmp_addflag=' -i_dynamic -nofor_main' ;;
15472 ifc* | ifort*) # Intel Fortran compiler
15473 tmp_addflag=' -nofor_main' ;;
15474 lf95*) # Lahey Fortran 8.1
15475 whole_archive_flag_spec=
15476 tmp_sharedflag='--shared' ;;
15477 nagfor*) # NAGFOR 5.3
15478 tmp_sharedflag='-Wl,-shared' ;;
15479 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15480 tmp_sharedflag='-qmkshrobj'
15481 tmp_addflag= ;;
15482 nvcc*) # Cuda Compiler Driver 2.2
15483 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'
15484 compiler_needs_object=yes
15485 ;;
15486 esac
15487 case `$CC -V 2>&1 | sed 5q` in
15488 *Sun\ C*) # Sun C 5.9
15489 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'
15490 compiler_needs_object=yes
15491 tmp_sharedflag='-G' ;;
15492 *Sun\ F*) # Sun Fortran 8.3
15493 tmp_sharedflag='-G' ;;
15494 esac
15495 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15496
15497 if test yes = "$supports_anon_versioning"; then
15498 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15500 echo "local: *; };" >> $output_objdir/$libname.ver~
15501 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15502 fi
15503
15504 case $cc_basename in
15505 tcc*)
15506 export_dynamic_flag_spec='-rdynamic'
15507 ;;
15508 xlf* | bgf* | bgxlf* | mpixlf*)
15509 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15510 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15512 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15513 if test yes = "$supports_anon_versioning"; then
15514 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15516 echo "local: *; };" >> $output_objdir/$libname.ver~
15517 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15518 fi
15519 ;;
15520 esac
15521 else
15522 ld_shlibs=no
15523 fi
15524 ;;
15525
15526 netbsd*)
15527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15528 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15529 wlarc=
15530 else
15531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15533 fi
15534 ;;
15535
15536 solaris*)
15537 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15538 ld_shlibs=no
15539 cat <<_LT_EOF 1>&2
15540
15541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15542 *** create shared libraries on Solaris systems. Therefore, libtool
15543 *** is disabling shared libraries support. We urge you to upgrade GNU
15544 *** binutils to release 2.9.1 or newer. Another option is to modify
15545 *** your PATH or compiler configuration so that the native linker is
15546 *** used, and then restart.
15547
15548 _LT_EOF
15549 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15552 else
15553 ld_shlibs=no
15554 fi
15555 ;;
15556
15557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15558 case `$LD -v 2>&1` in
15559 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15560 ld_shlibs=no
15561 cat <<_LT_EOF 1>&2
15562
15563 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15564 *** reliably create shared libraries on SCO systems. Therefore, libtool
15565 *** is disabling shared libraries support. We urge you to upgrade GNU
15566 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15567 *** your PATH or compiler configuration so that the native linker is
15568 *** used, and then restart.
15569
15570 _LT_EOF
15571 ;;
15572 *)
15573 # For security reasons, it is highly recommended that you always
15574 # use absolute paths for naming shared libraries, and exclude the
15575 # DT_RUNPATH tag from executables and libraries. But doing so
15576 # requires that you compile everything twice, which is a pain.
15577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15581 else
15582 ld_shlibs=no
15583 fi
15584 ;;
15585 esac
15586 ;;
15587
15588 sunos4*)
15589 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590 wlarc=
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15593 ;;
15594
15595 *)
15596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15598 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15599 else
15600 ld_shlibs=no
15601 fi
15602 ;;
15603 esac
15604
15605 if test no = "$ld_shlibs"; then
15606 runpath_var=
15607 hardcode_libdir_flag_spec=
15608 export_dynamic_flag_spec=
15609 whole_archive_flag_spec=
15610 fi
15611 else
15612 # PORTME fill in a description of your system's linker (not GNU ld)
15613 case $host_os in
15614 aix3*)
15615 allow_undefined_flag=unsupported
15616 always_export_symbols=yes
15617 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'
15618 # Note: this linker hardcodes the directories in LIBPATH if there
15619 # are no directories specified by -L.
15620 hardcode_minus_L=yes
15621 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15622 # Neither direct hardcoding nor static linking is supported with a
15623 # broken collect2.
15624 hardcode_direct=unsupported
15625 fi
15626 ;;
15627
15628 aix[4-9]*)
15629 if test ia64 = "$host_cpu"; then
15630 # On IA64, the linker does run time linking by default, so we don't
15631 # have to do anything special.
15632 aix_use_runtimelinking=no
15633 exp_sym_flag='-Bexport'
15634 no_entry_flag=
15635 else
15636 # If we're using GNU nm, then we don't want the "-C" option.
15637 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15638 # Without the "-l" option, or with the "-B" option, AIX nm treats
15639 # weak defined symbols like other global defined symbols, whereas
15640 # GNU nm marks them as "W".
15641 # While the 'weak' keyword is ignored in the Export File, we need
15642 # it in the Import File for the 'aix-soname' feature, so we have
15643 # to replace the "-B" option with "-P" for AIX nm.
15644 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15645 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'
15646 else
15647 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'
15648 fi
15649 aix_use_runtimelinking=no
15650
15651 # Test if we are trying to use run time linking or normal
15652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15653 # have runtime linking enabled, and use it for executables.
15654 # For shared libraries, we enable/disable runtime linking
15655 # depending on the kind of the shared library created -
15656 # when "with_aix_soname,aix_use_runtimelinking" is:
15657 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15658 # "aix,yes" lib.so shared, rtl:yes, for executables
15659 # lib.a static archive
15660 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15661 # lib.a(lib.so.V) shared, rtl:no, for executables
15662 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15663 # lib.a(lib.so.V) shared, rtl:no
15664 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15665 # lib.a static archive
15666 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15667 for ld_flag in $LDFLAGS; do
15668 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15669 aix_use_runtimelinking=yes
15670 break
15671 fi
15672 done
15673 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15674 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15675 # so we don't have lib.a shared libs to link our executables.
15676 # We have to force runtime linking in this case.
15677 aix_use_runtimelinking=yes
15678 LDFLAGS="$LDFLAGS -Wl,-brtl"
15679 fi
15680 ;;
15681 esac
15682
15683 exp_sym_flag='-bexport'
15684 no_entry_flag='-bnoentry'
15685 fi
15686
15687 # When large executables or shared objects are built, AIX ld can
15688 # have problems creating the table of contents. If linking a library
15689 # or program results in "error TOC overflow" add -mminimal-toc to
15690 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15691 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15692
15693 archive_cmds=''
15694 hardcode_direct=yes
15695 hardcode_direct_absolute=yes
15696 hardcode_libdir_separator=':'
15697 link_all_deplibs=yes
15698 file_list_spec='$wl-f,'
15699 case $with_aix_soname,$aix_use_runtimelinking in
15700 aix,*) ;; # traditional, no import file
15701 svr4,* | *,yes) # use import file
15702 # The Import File defines what to hardcode.
15703 hardcode_direct=no
15704 hardcode_direct_absolute=no
15705 ;;
15706 esac
15707
15708 if test yes = "$GCC"; then
15709 case $host_os in aix4.[012]|aix4.[012].*)
15710 # We only want to do this on AIX 4.2 and lower, the check
15711 # below for broken collect2 doesn't work under 4.3+
15712 collect2name=`$CC -print-prog-name=collect2`
15713 if test -f "$collect2name" &&
15714 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15715 then
15716 # We have reworked collect2
15717 :
15718 else
15719 # We have old collect2
15720 hardcode_direct=unsupported
15721 # It fails to find uninstalled libraries when the uninstalled
15722 # path is not listed in the libpath. Setting hardcode_minus_L
15723 # to unsupported forces relinking
15724 hardcode_minus_L=yes
15725 hardcode_libdir_flag_spec='-L$libdir'
15726 hardcode_libdir_separator=
15727 fi
15728 ;;
15729 esac
15730 shared_flag='-shared'
15731 if test yes = "$aix_use_runtimelinking"; then
15732 shared_flag="$shared_flag "'$wl-G'
15733 fi
15734 # Need to ensure runtime linking is disabled for the traditional
15735 # shared library, or the linker may eventually find shared libraries
15736 # /with/ Import File - we do not want to mix them.
15737 shared_flag_aix='-shared'
15738 shared_flag_svr4='-shared $wl-G'
15739 else
15740 # not using gcc
15741 if test ia64 = "$host_cpu"; then
15742 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15743 # chokes on -Wl,-G. The following line is correct:
15744 shared_flag='-G'
15745 else
15746 if test yes = "$aix_use_runtimelinking"; then
15747 shared_flag='$wl-G'
15748 else
15749 shared_flag='$wl-bM:SRE'
15750 fi
15751 shared_flag_aix='$wl-bM:SRE'
15752 shared_flag_svr4='$wl-G'
15753 fi
15754 fi
15755
15756 export_dynamic_flag_spec='$wl-bexpall'
15757 # It seems that -bexpall does not export symbols beginning with
15758 # underscore (_), so it is better to generate a list of symbols to export.
15759 always_export_symbols=yes
15760 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15761 # Warning - without using the other runtime loading flags (-brtl),
15762 # -berok will link without error, but may produce a broken library.
15763 allow_undefined_flag='-berok'
15764 # Determine the default libpath from the value encoded in an
15765 # empty executable.
15766 if test set = "${lt_cv_aix_libpath+set}"; then
15767 aix_libpath=$lt_cv_aix_libpath
15768 else
15769 if ${lt_cv_aix_libpath_+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774
15775 int
15776 main ()
15777 {
15778
15779 ;
15780 return 0;
15781 }
15782 _ACEOF
15783 if ac_fn_c_try_link "$LINENO"; then :
15784
15785 lt_aix_libpath_sed='
15786 /Import File Strings/,/^$/ {
15787 /^0/ {
15788 s/^0 *\([^ ]*\) *$/\1/
15789 p
15790 }
15791 }'
15792 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15793 # Check for a 64-bit object if we didn't find anything.
15794 if test -z "$lt_cv_aix_libpath_"; then
15795 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15796 fi
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800 if test -z "$lt_cv_aix_libpath_"; then
15801 lt_cv_aix_libpath_=/usr/lib:/lib
15802 fi
15803
15804 fi
15805
15806 aix_libpath=$lt_cv_aix_libpath_
15807 fi
15808
15809 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15810 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
15811 else
15812 if test ia64 = "$host_cpu"; then
15813 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15814 allow_undefined_flag="-z nodefs"
15815 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"
15816 else
15817 # Determine the default libpath from the value encoded in an
15818 # empty executable.
15819 if test set = "${lt_cv_aix_libpath+set}"; then
15820 aix_libpath=$lt_cv_aix_libpath
15821 else
15822 if ${lt_cv_aix_libpath_+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827
15828 int
15829 main ()
15830 {
15831
15832 ;
15833 return 0;
15834 }
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"; then :
15837
15838 lt_aix_libpath_sed='
15839 /Import File Strings/,/^$/ {
15840 /^0/ {
15841 s/^0 *\([^ ]*\) *$/\1/
15842 p
15843 }
15844 }'
15845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15846 # Check for a 64-bit object if we didn't find anything.
15847 if test -z "$lt_cv_aix_libpath_"; then
15848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15849 fi
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 if test -z "$lt_cv_aix_libpath_"; then
15854 lt_cv_aix_libpath_=/usr/lib:/lib
15855 fi
15856
15857 fi
15858
15859 aix_libpath=$lt_cv_aix_libpath_
15860 fi
15861
15862 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15863 # Warning - without using the other run time loading flags,
15864 # -berok will link without error, but may produce a broken library.
15865 no_undefined_flag=' $wl-bernotok'
15866 allow_undefined_flag=' $wl-berok'
15867 if test yes = "$with_gnu_ld"; then
15868 # We only use this code for GNU lds that support --whole-archive.
15869 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15870 else
15871 # Exported symbols can be pulled into shared objects from archives
15872 whole_archive_flag_spec='$convenience'
15873 fi
15874 archive_cmds_need_lc=yes
15875 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15876 # -brtl affects multiple linker settings, -berok does not and is overridden later
15877 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15878 if test svr4 != "$with_aix_soname"; then
15879 # This is similar to how AIX traditionally builds its shared libraries.
15880 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'
15881 fi
15882 if test aix != "$with_aix_soname"; then
15883 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'
15884 else
15885 # used by -dlpreopen to get the symbols
15886 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15887 fi
15888 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15889 fi
15890 fi
15891 ;;
15892
15893 amigaos*)
15894 case $host_cpu in
15895 powerpc)
15896 # see comment about AmigaOS4 .so support
15897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15898 archive_expsym_cmds=''
15899 ;;
15900 m68k)
15901 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)'
15902 hardcode_libdir_flag_spec='-L$libdir'
15903 hardcode_minus_L=yes
15904 ;;
15905 esac
15906 ;;
15907
15908 bsdi[45]*)
15909 export_dynamic_flag_spec=-rdynamic
15910 ;;
15911
15912 cygwin* | mingw* | pw32* | cegcc*)
15913 # When not using gcc, we currently assume that we are using
15914 # Microsoft Visual C++.
15915 # hardcode_libdir_flag_spec is actually meaningless, as there is
15916 # no search path for DLLs.
15917 case $cc_basename in
15918 cl*)
15919 # Native MSVC
15920 hardcode_libdir_flag_spec=' '
15921 allow_undefined_flag=unsupported
15922 always_export_symbols=yes
15923 file_list_spec='@'
15924 # Tell ltmain to make .lib files, not .a files.
15925 libext=lib
15926 # Tell ltmain to make .dll files, not .so files.
15927 shrext_cmds=.dll
15928 # FIXME: Setting linknames here is a bad hack.
15929 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15930 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15931 cp "$export_symbols" "$output_objdir/$soname.def";
15932 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15933 else
15934 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15935 fi~
15936 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15937 linknames='
15938 # The linker will not automatically build a static lib if we build a DLL.
15939 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15940 enable_shared_with_static_runtimes=yes
15941 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15943 # Don't use ranlib
15944 old_postinstall_cmds='chmod 644 $oldlib'
15945 postlink_cmds='lt_outputfile="@OUTPUT@"~
15946 lt_tool_outputfile="@TOOL_OUTPUT@"~
15947 case $lt_outputfile in
15948 *.exe|*.EXE) ;;
15949 *)
15950 lt_outputfile=$lt_outputfile.exe
15951 lt_tool_outputfile=$lt_tool_outputfile.exe
15952 ;;
15953 esac~
15954 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15955 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15956 $RM "$lt_outputfile.manifest";
15957 fi'
15958 ;;
15959 *)
15960 # Assume MSVC wrapper
15961 hardcode_libdir_flag_spec=' '
15962 allow_undefined_flag=unsupported
15963 # Tell ltmain to make .lib files, not .a files.
15964 libext=lib
15965 # Tell ltmain to make .dll files, not .so files.
15966 shrext_cmds=.dll
15967 # FIXME: Setting linknames here is a bad hack.
15968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15969 # The linker will automatically build a .lib file if we build a DLL.
15970 old_archive_from_new_cmds='true'
15971 # FIXME: Should let the user specify the lib program.
15972 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15973 enable_shared_with_static_runtimes=yes
15974 ;;
15975 esac
15976 ;;
15977
15978 darwin* | rhapsody*)
15979
15980
15981 archive_cmds_need_lc=no
15982 hardcode_direct=no
15983 hardcode_automatic=yes
15984 hardcode_shlibpath_var=unsupported
15985 if test yes = "$lt_cv_ld_force_load"; then
15986 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\"`'
15987
15988 else
15989 whole_archive_flag_spec=''
15990 fi
15991 link_all_deplibs=yes
15992 allow_undefined_flag=$_lt_dar_allow_undefined
15993 case $cc_basename in
15994 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15995 *) _lt_dar_can_shared=$GCC ;;
15996 esac
15997 if test yes = "$_lt_dar_can_shared"; then
15998 output_verbose_link_cmd=func_echo_all
15999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16001 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"
16002 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"
16003
16004 else
16005 ld_shlibs=no
16006 fi
16007
16008 ;;
16009
16010 dgux*)
16011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_libdir_flag_spec='-L$libdir'
16013 hardcode_shlibpath_var=no
16014 ;;
16015
16016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16017 # support. Future versions do this automatically, but an explicit c++rt0.o
16018 # does not break anything, and helps significantly (at the cost of a little
16019 # extra space).
16020 freebsd2.2*)
16021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16022 hardcode_libdir_flag_spec='-R$libdir'
16023 hardcode_direct=yes
16024 hardcode_shlibpath_var=no
16025 ;;
16026
16027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16028 freebsd2.*)
16029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030 hardcode_direct=yes
16031 hardcode_minus_L=yes
16032 hardcode_shlibpath_var=no
16033 ;;
16034
16035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16036 freebsd* | dragonfly*)
16037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16038 hardcode_libdir_flag_spec='-R$libdir'
16039 hardcode_direct=yes
16040 hardcode_shlibpath_var=no
16041 ;;
16042
16043 hpux9*)
16044 if test yes = "$GCC"; then
16045 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'
16046 else
16047 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'
16048 fi
16049 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16050 hardcode_libdir_separator=:
16051 hardcode_direct=yes
16052
16053 # hardcode_minus_L: Not really in the search PATH,
16054 # but as the default location of the library.
16055 hardcode_minus_L=yes
16056 export_dynamic_flag_spec='$wl-E'
16057 ;;
16058
16059 hpux10*)
16060 if test yes,no = "$GCC,$with_gnu_ld"; then
16061 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16062 else
16063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16064 fi
16065 if test no = "$with_gnu_ld"; then
16066 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16067 hardcode_libdir_separator=:
16068 hardcode_direct=yes
16069 hardcode_direct_absolute=yes
16070 export_dynamic_flag_spec='$wl-E'
16071 # hardcode_minus_L: Not really in the search PATH,
16072 # but as the default location of the library.
16073 hardcode_minus_L=yes
16074 fi
16075 ;;
16076
16077 hpux11*)
16078 if test yes,no = "$GCC,$with_gnu_ld"; then
16079 case $host_cpu in
16080 hppa*64*)
16081 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16082 ;;
16083 ia64*)
16084 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16085 ;;
16086 *)
16087 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16088 ;;
16089 esac
16090 else
16091 case $host_cpu in
16092 hppa*64*)
16093 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 ;;
16095 ia64*)
16096 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16097 ;;
16098 *)
16099
16100 # Older versions of the 11.00 compiler do not understand -b yet
16101 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16103 $as_echo_n "checking if $CC understands -b... " >&6; }
16104 if ${lt_cv_prog_compiler__b+:} false; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107 lt_cv_prog_compiler__b=no
16108 save_LDFLAGS=$LDFLAGS
16109 LDFLAGS="$LDFLAGS -b"
16110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16112 # The linker can only warn and ignore the option if not recognized
16113 # So say no if there are warnings
16114 if test -s conftest.err; then
16115 # Append any errors to the config.log.
16116 cat conftest.err 1>&5
16117 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16119 if diff conftest.exp conftest.er2 >/dev/null; then
16120 lt_cv_prog_compiler__b=yes
16121 fi
16122 else
16123 lt_cv_prog_compiler__b=yes
16124 fi
16125 fi
16126 $RM -r conftest*
16127 LDFLAGS=$save_LDFLAGS
16128
16129 fi
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16131 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16132
16133 if test yes = "$lt_cv_prog_compiler__b"; then
16134 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16135 else
16136 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16137 fi
16138
16139 ;;
16140 esac
16141 fi
16142 if test no = "$with_gnu_ld"; then
16143 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16144 hardcode_libdir_separator=:
16145
16146 case $host_cpu in
16147 hppa*64*|ia64*)
16148 hardcode_direct=no
16149 hardcode_shlibpath_var=no
16150 ;;
16151 *)
16152 hardcode_direct=yes
16153 hardcode_direct_absolute=yes
16154 export_dynamic_flag_spec='$wl-E'
16155
16156 # hardcode_minus_L: Not really in the search PATH,
16157 # but as the default location of the library.
16158 hardcode_minus_L=yes
16159 ;;
16160 esac
16161 fi
16162 ;;
16163
16164 irix5* | irix6* | nonstopux*)
16165 if test yes = "$GCC"; then
16166 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'
16167 # Try to use the -exported_symbol ld option, if it does not
16168 # work, assume that -exports_file does not work either and
16169 # implicitly export all symbols.
16170 # This should be the same for all languages, so no per-tag cache variable.
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16172 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16173 if ${lt_cv_irix_exported_symbol+:} false; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 save_LDFLAGS=$LDFLAGS
16177 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16180 int foo (void) { return 0; }
16181 _ACEOF
16182 if ac_fn_c_try_link "$LINENO"; then :
16183 lt_cv_irix_exported_symbol=yes
16184 else
16185 lt_cv_irix_exported_symbol=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 LDFLAGS=$save_LDFLAGS
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16192 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16193 if test yes = "$lt_cv_irix_exported_symbol"; then
16194 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'
16195 fi
16196 else
16197 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'
16198 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'
16199 fi
16200 archive_cmds_need_lc='no'
16201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16202 hardcode_libdir_separator=:
16203 inherit_rpath=yes
16204 link_all_deplibs=yes
16205 ;;
16206
16207 linux*)
16208 case $cc_basename in
16209 tcc*)
16210 # Fabrice Bellard et al's Tiny C Compiler
16211 ld_shlibs=yes
16212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16213 ;;
16214 esac
16215 ;;
16216
16217 netbsd*)
16218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16220 else
16221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16222 fi
16223 hardcode_libdir_flag_spec='-R$libdir'
16224 hardcode_direct=yes
16225 hardcode_shlibpath_var=no
16226 ;;
16227
16228 newsos6)
16229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_direct=yes
16231 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16232 hardcode_libdir_separator=:
16233 hardcode_shlibpath_var=no
16234 ;;
16235
16236 *nto* | *qnx*)
16237 ;;
16238
16239 openbsd* | bitrig*)
16240 if test -f /usr/libexec/ld.so; then
16241 hardcode_direct=yes
16242 hardcode_shlibpath_var=no
16243 hardcode_direct_absolute=yes
16244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16247 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16248 export_dynamic_flag_spec='$wl-E'
16249 else
16250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16251 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16252 fi
16253 else
16254 ld_shlibs=no
16255 fi
16256 ;;
16257
16258 os2*)
16259 hardcode_libdir_flag_spec='-L$libdir'
16260 hardcode_minus_L=yes
16261 allow_undefined_flag=unsupported
16262 shrext_cmds=.dll
16263 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16264 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16265 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16266 $ECHO EXPORTS >> $output_objdir/$libname.def~
16267 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16268 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16269 emximp -o $lib $output_objdir/$libname.def'
16270 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16271 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16272 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16273 $ECHO EXPORTS >> $output_objdir/$libname.def~
16274 prefix_cmds="$SED"~
16275 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16276 prefix_cmds="$prefix_cmds -e 1d";
16277 fi~
16278 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16279 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16281 emximp -o $lib $output_objdir/$libname.def'
16282 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16283 enable_shared_with_static_runtimes=yes
16284 ;;
16285
16286 osf3*)
16287 if test yes = "$GCC"; then
16288 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16289 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'
16290 else
16291 allow_undefined_flag=' -expect_unresolved \*'
16292 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'
16293 fi
16294 archive_cmds_need_lc='no'
16295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16296 hardcode_libdir_separator=:
16297 ;;
16298
16299 osf4* | osf5*) # as osf3* with the addition of -msym flag
16300 if test yes = "$GCC"; then
16301 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16302 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'
16303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16304 else
16305 allow_undefined_flag=' -expect_unresolved \*'
16306 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'
16307 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~
16308 $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'
16309
16310 # Both c and cxx compiler support -rpath directly
16311 hardcode_libdir_flag_spec='-rpath $libdir'
16312 fi
16313 archive_cmds_need_lc='no'
16314 hardcode_libdir_separator=:
16315 ;;
16316
16317 solaris*)
16318 no_undefined_flag=' -z defs'
16319 if test yes = "$GCC"; then
16320 wlarc='$wl'
16321 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16323 $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'
16324 else
16325 case `$CC -V 2>&1` in
16326 *"Compilers 5.0"*)
16327 wlarc=''
16328 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16330 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16331 ;;
16332 *)
16333 wlarc='$wl'
16334 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16336 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16337 ;;
16338 esac
16339 fi
16340 hardcode_libdir_flag_spec='-R$libdir'
16341 hardcode_shlibpath_var=no
16342 case $host_os in
16343 solaris2.[0-5] | solaris2.[0-5].*) ;;
16344 *)
16345 # The compiler driver will combine and reorder linker options,
16346 # but understands '-z linker_flag'. GCC discards it without '$wl',
16347 # but is careful enough not to reorder.
16348 # Supported since Solaris 2.6 (maybe 2.5.1?)
16349 if test yes = "$GCC"; then
16350 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16351 else
16352 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16353 fi
16354 ;;
16355 esac
16356 link_all_deplibs=yes
16357 ;;
16358
16359 sunos4*)
16360 if test sequent = "$host_vendor"; then
16361 # Use $CC to link under sequent, because it throws in some extra .o
16362 # files that make .init and .fini sections work.
16363 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16364 else
16365 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16366 fi
16367 hardcode_libdir_flag_spec='-L$libdir'
16368 hardcode_direct=yes
16369 hardcode_minus_L=yes
16370 hardcode_shlibpath_var=no
16371 ;;
16372
16373 sysv4)
16374 case $host_vendor in
16375 sni)
16376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16377 hardcode_direct=yes # is this really true???
16378 ;;
16379 siemens)
16380 ## LD is ld it makes a PLAMLIB
16381 ## CC just makes a GrossModule.
16382 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16383 reload_cmds='$CC -r -o $output$reload_objs'
16384 hardcode_direct=no
16385 ;;
16386 motorola)
16387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16389 ;;
16390 esac
16391 runpath_var='LD_RUN_PATH'
16392 hardcode_shlibpath_var=no
16393 ;;
16394
16395 sysv4.3*)
16396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397 hardcode_shlibpath_var=no
16398 export_dynamic_flag_spec='-Bexport'
16399 ;;
16400
16401 sysv4*MP*)
16402 if test -d /usr/nec; then
16403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16404 hardcode_shlibpath_var=no
16405 runpath_var=LD_RUN_PATH
16406 hardcode_runpath_var=yes
16407 ld_shlibs=yes
16408 fi
16409 ;;
16410
16411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16412 no_undefined_flag='$wl-z,text'
16413 archive_cmds_need_lc=no
16414 hardcode_shlibpath_var=no
16415 runpath_var='LD_RUN_PATH'
16416
16417 if test yes = "$GCC"; then
16418 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 else
16421 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 fi
16424 ;;
16425
16426 sysv5* | sco3.2v5* | sco5v6*)
16427 # Note: We CANNOT use -z defs as we might desire, because we do not
16428 # link with -lc, and that would cause any symbols used from libc to
16429 # always be unresolved, which means just about no library would
16430 # ever link correctly. If we're not using GNU ld we use -z text
16431 # though, which does catch some bad symbols but isn't as heavy-handed
16432 # as -z defs.
16433 no_undefined_flag='$wl-z,text'
16434 allow_undefined_flag='$wl-z,nodefs'
16435 archive_cmds_need_lc=no
16436 hardcode_shlibpath_var=no
16437 hardcode_libdir_flag_spec='$wl-R,$libdir'
16438 hardcode_libdir_separator=':'
16439 link_all_deplibs=yes
16440 export_dynamic_flag_spec='$wl-Bexport'
16441 runpath_var='LD_RUN_PATH'
16442
16443 if test yes = "$GCC"; then
16444 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 else
16447 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 fi
16450 ;;
16451
16452 uts4*)
16453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_libdir_flag_spec='-L$libdir'
16455 hardcode_shlibpath_var=no
16456 ;;
16457
16458 *)
16459 ld_shlibs=no
16460 ;;
16461 esac
16462
16463 if test sni = "$host_vendor"; then
16464 case $host in
16465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16466 export_dynamic_flag_spec='$wl-Blargedynsym'
16467 ;;
16468 esac
16469 fi
16470 fi
16471
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16473 $as_echo "$ld_shlibs" >&6; }
16474 test no = "$ld_shlibs" && can_build_shared=no
16475
16476 with_gnu_ld=$with_gnu_ld
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492 #
16493 # Do we need to explicitly link libc?
16494 #
16495 case "x$archive_cmds_need_lc" in
16496 x|xyes)
16497 # Assume -lc should be added
16498 archive_cmds_need_lc=yes
16499
16500 if test yes,yes = "$GCC,$enable_shared"; then
16501 case $archive_cmds in
16502 *'~'*)
16503 # FIXME: we may have to deal with multi-command sequences.
16504 ;;
16505 '$CC '*)
16506 # Test whether the compiler implicitly links with -lc since on some
16507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16508 # to ld, don't add -lc before -lgcc.
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16510 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16511 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514 $RM conftest*
16515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16516
16517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16518 (eval $ac_compile) 2>&5
16519 ac_status=$?
16520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16521 test $ac_status = 0; } 2>conftest.err; then
16522 soname=conftest
16523 lib=conftest
16524 libobjs=conftest.$ac_objext
16525 deplibs=
16526 wl=$lt_prog_compiler_wl
16527 pic_flag=$lt_prog_compiler_pic
16528 compiler_flags=-v
16529 linker_flags=-v
16530 verstring=
16531 output_objdir=.
16532 libname=conftest
16533 lt_save_allow_undefined_flag=$allow_undefined_flag
16534 allow_undefined_flag=
16535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16536 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16537 ac_status=$?
16538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; }
16540 then
16541 lt_cv_archive_cmds_need_lc=no
16542 else
16543 lt_cv_archive_cmds_need_lc=yes
16544 fi
16545 allow_undefined_flag=$lt_save_allow_undefined_flag
16546 else
16547 cat conftest.err 1>&5
16548 fi
16549 $RM conftest*
16550
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16553 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16554 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16555 ;;
16556 esac
16557 fi
16558 ;;
16559 esac
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16714
16715 if test yes = "$GCC"; then
16716 case $host_os in
16717 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16718 *) lt_awk_arg='/^libraries:/' ;;
16719 esac
16720 case $host_os in
16721 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16722 *) lt_sed_strip_eq='s|=/|/|g' ;;
16723 esac
16724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16725 case $lt_search_path_spec in
16726 *\;*)
16727 # if the path contains ";" then we assume it to be the separator
16728 # otherwise default to the standard path separator (i.e. ":") - it is
16729 # assumed that no part of a normal pathname contains ";" but that should
16730 # okay in the real world where ";" in dirpaths is itself problematic.
16731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16732 ;;
16733 *)
16734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16735 ;;
16736 esac
16737 # Ok, now we have the path, separated by spaces, we can step through it
16738 # and add multilib dir if necessary...
16739 lt_tmp_lt_search_path_spec=
16740 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16741 # ...but if some path component already ends with the multilib dir we assume
16742 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16743 case "$lt_multi_os_dir; $lt_search_path_spec " in
16744 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16745 lt_multi_os_dir=
16746 ;;
16747 esac
16748 for lt_sys_path in $lt_search_path_spec; do
16749 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16750 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16751 elif test -n "$lt_multi_os_dir"; then
16752 test -d "$lt_sys_path" && \
16753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16754 fi
16755 done
16756 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16757 BEGIN {RS = " "; FS = "/|\n";} {
16758 lt_foo = "";
16759 lt_count = 0;
16760 for (lt_i = NF; lt_i > 0; lt_i--) {
16761 if ($lt_i != "" && $lt_i != ".") {
16762 if ($lt_i == "..") {
16763 lt_count++;
16764 } else {
16765 if (lt_count == 0) {
16766 lt_foo = "/" $lt_i lt_foo;
16767 } else {
16768 lt_count--;
16769 }
16770 }
16771 }
16772 }
16773 if (lt_foo != "") { lt_freq[lt_foo]++; }
16774 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16775 }'`
16776 # AWK program above erroneously prepends '/' to C:/dos/paths
16777 # for these hosts.
16778 case $host_os in
16779 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16780 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16781 esac
16782 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16783 else
16784 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16785 fi
16786 library_names_spec=
16787 libname_spec='lib$name'
16788 soname_spec=
16789 shrext_cmds=.so
16790 postinstall_cmds=
16791 postuninstall_cmds=
16792 finish_cmds=
16793 finish_eval=
16794 shlibpath_var=
16795 shlibpath_overrides_runpath=unknown
16796 version_type=none
16797 dynamic_linker="$host_os ld.so"
16798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16799 need_lib_prefix=unknown
16800 hardcode_into_libs=no
16801
16802 # when you set need_version to no, make sure it does not cause -set_version
16803 # flags to be left without arguments
16804 need_version=unknown
16805
16806
16807
16808 case $host_os in
16809 aix3*)
16810 version_type=linux # correct to gnu/linux during the next big refactor
16811 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16812 shlibpath_var=LIBPATH
16813
16814 # AIX 3 has no versioning support, so we append a major version to the name.
16815 soname_spec='$libname$release$shared_ext$major'
16816 ;;
16817
16818 aix[4-9]*)
16819 version_type=linux # correct to gnu/linux during the next big refactor
16820 need_lib_prefix=no
16821 need_version=no
16822 hardcode_into_libs=yes
16823 if test ia64 = "$host_cpu"; then
16824 # AIX 5 supports IA64
16825 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 else
16828 # With GCC up to 2.95.x, collect2 would create an import file
16829 # for dependence libraries. The import file would start with
16830 # the line '#! .'. This would cause the generated library to
16831 # depend on '.', always an invalid library. This was fixed in
16832 # development snapshots of GCC prior to 3.0.
16833 case $host_os in
16834 aix4 | aix4.[01] | aix4.[01].*)
16835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16836 echo ' yes '
16837 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16838 :
16839 else
16840 can_build_shared=no
16841 fi
16842 ;;
16843 esac
16844 # Using Import Files as archive members, it is possible to support
16845 # filename-based versioning of shared library archives on AIX. While
16846 # this would work for both with and without runtime linking, it will
16847 # prevent static linking of such archives. So we do filename-based
16848 # shared library versioning with .so extension only, which is used
16849 # when both runtime linking and shared linking is enabled.
16850 # Unfortunately, runtime linking may impact performance, so we do
16851 # not want this to be the default eventually. Also, we use the
16852 # versioned .so libs for executables only if there is the -brtl
16853 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16854 # To allow for filename-based versioning support, we need to create
16855 # libNAME.so.V as an archive file, containing:
16856 # *) an Import File, referring to the versioned filename of the
16857 # archive as well as the shared archive member, telling the
16858 # bitwidth (32 or 64) of that shared object, and providing the
16859 # list of exported symbols of that shared object, eventually
16860 # decorated with the 'weak' keyword
16861 # *) the shared object with the F_LOADONLY flag set, to really avoid
16862 # it being seen by the linker.
16863 # At run time we better use the real file rather than another symlink,
16864 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16865
16866 case $with_aix_soname,$aix_use_runtimelinking in
16867 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16868 # soname into executable. Probably we can add versioning support to
16869 # collect2, so additional links can be useful in future.
16870 aix,yes) # traditional libtool
16871 dynamic_linker='AIX unversionable lib.so'
16872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16873 # instead of lib<name>.a to let people know that these are not
16874 # typical AIX shared libraries.
16875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16876 ;;
16877 aix,no) # traditional AIX only
16878 dynamic_linker='AIX lib.a(lib.so.V)'
16879 # We preserve .a as extension for shared libraries through AIX4.2
16880 # and later when we are not doing run time linking.
16881 library_names_spec='$libname$release.a $libname.a'
16882 soname_spec='$libname$release$shared_ext$major'
16883 ;;
16884 svr4,*) # full svr4 only
16885 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16886 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16887 # We do not specify a path in Import Files, so LIBPATH fires.
16888 shlibpath_overrides_runpath=yes
16889 ;;
16890 *,yes) # both, prefer svr4
16891 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16892 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16893 # unpreferred sharedlib libNAME.a needs extra handling
16894 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"'
16895 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"'
16896 # We do not specify a path in Import Files, so LIBPATH fires.
16897 shlibpath_overrides_runpath=yes
16898 ;;
16899 *,no) # both, prefer aix
16900 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16901 library_names_spec='$libname$release.a $libname.a'
16902 soname_spec='$libname$release$shared_ext$major'
16903 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16904 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)'
16905 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"'
16906 ;;
16907 esac
16908 shlibpath_var=LIBPATH
16909 fi
16910 ;;
16911
16912 amigaos*)
16913 case $host_cpu in
16914 powerpc)
16915 # Since July 2007 AmigaOS4 officially supports .so libraries.
16916 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16918 ;;
16919 m68k)
16920 library_names_spec='$libname.ixlibrary $libname.a'
16921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16922 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'
16923 ;;
16924 esac
16925 ;;
16926
16927 beos*)
16928 library_names_spec='$libname$shared_ext'
16929 dynamic_linker="$host_os ld.so"
16930 shlibpath_var=LIBRARY_PATH
16931 ;;
16932
16933 bsdi[45]*)
16934 version_type=linux # correct to gnu/linux during the next big refactor
16935 need_version=no
16936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16937 soname_spec='$libname$release$shared_ext$major'
16938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16942 # the default ld.so.conf also contains /usr/contrib/lib and
16943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16944 # libtool to hard-code these into programs
16945 ;;
16946
16947 cygwin* | mingw* | pw32* | cegcc*)
16948 version_type=windows
16949 shrext_cmds=.dll
16950 need_version=no
16951 need_lib_prefix=no
16952
16953 case $GCC,$cc_basename in
16954 yes,*)
16955 # gcc
16956 library_names_spec='$libname.dll.a'
16957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16958 postinstall_cmds='base_file=`basename \$file`~
16959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16960 dldir=$destdir/`dirname \$dlpath`~
16961 test -d \$dldir || mkdir -p \$dldir~
16962 $install_prog $dir/$dlname \$dldir/$dlname~
16963 chmod a+x \$dldir/$dlname~
16964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16966 fi'
16967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16968 dlpath=$dir/\$dldll~
16969 $RM \$dlpath'
16970 shlibpath_overrides_runpath=yes
16971
16972 case $host_os in
16973 cygwin*)
16974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16975 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16976
16977 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16978 ;;
16979 mingw* | cegcc*)
16980 # MinGW DLLs use traditional 'lib' prefix
16981 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16982 ;;
16983 pw32*)
16984 # pw32 DLLs use 'pw' prefix rather than 'lib'
16985 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16986 ;;
16987 esac
16988 dynamic_linker='Win32 ld.exe'
16989 ;;
16990
16991 *,cl*)
16992 # Native MSVC
16993 libname_spec='$name'
16994 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16995 library_names_spec='$libname.dll.lib'
16996
16997 case $build_os in
16998 mingw*)
16999 sys_lib_search_path_spec=
17000 lt_save_ifs=$IFS
17001 IFS=';'
17002 for lt_path in $LIB
17003 do
17004 IFS=$lt_save_ifs
17005 # Let DOS variable expansion print the short 8.3 style file name.
17006 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17007 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17008 done
17009 IFS=$lt_save_ifs
17010 # Convert to MSYS style.
17011 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17012 ;;
17013 cygwin*)
17014 # Convert to unix form, then to dos form, then back to unix form
17015 # but this time dos style (no spaces!) so that the unix form looks
17016 # like /cygdrive/c/PROGRA~1:/cygdr...
17017 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17018 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17019 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17020 ;;
17021 *)
17022 sys_lib_search_path_spec=$LIB
17023 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17024 # It is most probably a Windows format PATH.
17025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17026 else
17027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17028 fi
17029 # FIXME: find the short name or the path components, as spaces are
17030 # common. (e.g. "Program Files" -> "PROGRA~1")
17031 ;;
17032 esac
17033
17034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17035 postinstall_cmds='base_file=`basename \$file`~
17036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17037 dldir=$destdir/`dirname \$dlpath`~
17038 test -d \$dldir || mkdir -p \$dldir~
17039 $install_prog $dir/$dlname \$dldir/$dlname'
17040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17041 dlpath=$dir/\$dldll~
17042 $RM \$dlpath'
17043 shlibpath_overrides_runpath=yes
17044 dynamic_linker='Win32 link.exe'
17045 ;;
17046
17047 *)
17048 # Assume MSVC wrapper
17049 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17050 dynamic_linker='Win32 ld.exe'
17051 ;;
17052 esac
17053 # FIXME: first we should search . and the directory the executable is in
17054 shlibpath_var=PATH
17055 ;;
17056
17057 darwin* | rhapsody*)
17058 dynamic_linker="$host_os dyld"
17059 version_type=darwin
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17063 soname_spec='$libname$release$major$shared_ext'
17064 shlibpath_overrides_runpath=yes
17065 shlibpath_var=DYLD_LIBRARY_PATH
17066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17067
17068 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17070 ;;
17071
17072 dgux*)
17073 version_type=linux # correct to gnu/linux during the next big refactor
17074 need_lib_prefix=no
17075 need_version=no
17076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17077 soname_spec='$libname$release$shared_ext$major'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 ;;
17080
17081 freebsd* | dragonfly*)
17082 # DragonFly does not have aout. When/if they implement a new
17083 # versioning mechanism, adjust this.
17084 if test -x /usr/bin/objformat; then
17085 objformat=`/usr/bin/objformat`
17086 else
17087 case $host_os in
17088 freebsd[23].*) objformat=aout ;;
17089 *) objformat=elf ;;
17090 esac
17091 fi
17092 version_type=freebsd-$objformat
17093 case $version_type in
17094 freebsd-elf*)
17095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17096 soname_spec='$libname$release$shared_ext$major'
17097 need_version=no
17098 need_lib_prefix=no
17099 ;;
17100 freebsd-*)
17101 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17102 need_version=yes
17103 ;;
17104 esac
17105 shlibpath_var=LD_LIBRARY_PATH
17106 case $host_os in
17107 freebsd2.*)
17108 shlibpath_overrides_runpath=yes
17109 ;;
17110 freebsd3.[01]* | freebsdelf3.[01]*)
17111 shlibpath_overrides_runpath=yes
17112 hardcode_into_libs=yes
17113 ;;
17114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17116 shlibpath_overrides_runpath=no
17117 hardcode_into_libs=yes
17118 ;;
17119 *) # from 4.6 on, and DragonFly
17120 shlibpath_overrides_runpath=yes
17121 hardcode_into_libs=yes
17122 ;;
17123 esac
17124 ;;
17125
17126 haiku*)
17127 version_type=linux # correct to gnu/linux during the next big refactor
17128 need_lib_prefix=no
17129 need_version=no
17130 dynamic_linker="$host_os runtime_loader"
17131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17132 soname_spec='$libname$release$shared_ext$major'
17133 shlibpath_var=LIBRARY_PATH
17134 shlibpath_overrides_runpath=no
17135 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17136 hardcode_into_libs=yes
17137 ;;
17138
17139 hpux9* | hpux10* | hpux11*)
17140 # Give a soname corresponding to the major version so that dld.sl refuses to
17141 # link against other versions.
17142 version_type=sunos
17143 need_lib_prefix=no
17144 need_version=no
17145 case $host_cpu in
17146 ia64*)
17147 shrext_cmds='.so'
17148 hardcode_into_libs=yes
17149 dynamic_linker="$host_os dld.so"
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17153 soname_spec='$libname$release$shared_ext$major'
17154 if test 32 = "$HPUX_IA64_MODE"; then
17155 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17156 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17157 else
17158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17159 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17160 fi
17161 ;;
17162 hppa*64*)
17163 shrext_cmds='.sl'
17164 hardcode_into_libs=yes
17165 dynamic_linker="$host_os dld.sl"
17166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17169 soname_spec='$libname$release$shared_ext$major'
17170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17172 ;;
17173 *)
17174 shrext_cmds='.sl'
17175 dynamic_linker="$host_os dld.sl"
17176 shlibpath_var=SHLIB_PATH
17177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17179 soname_spec='$libname$release$shared_ext$major'
17180 ;;
17181 esac
17182 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17183 postinstall_cmds='chmod 555 $lib'
17184 # or fails outright, so override atomically:
17185 install_override_mode=555
17186 ;;
17187
17188 interix[3-9]*)
17189 version_type=linux # correct to gnu/linux during the next big refactor
17190 need_lib_prefix=no
17191 need_version=no
17192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17193 soname_spec='$libname$release$shared_ext$major'
17194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=no
17197 hardcode_into_libs=yes
17198 ;;
17199
17200 irix5* | irix6* | nonstopux*)
17201 case $host_os in
17202 nonstopux*) version_type=nonstopux ;;
17203 *)
17204 if test yes = "$lt_cv_prog_gnu_ld"; then
17205 version_type=linux # correct to gnu/linux during the next big refactor
17206 else
17207 version_type=irix
17208 fi ;;
17209 esac
17210 need_lib_prefix=no
17211 need_version=no
17212 soname_spec='$libname$release$shared_ext$major'
17213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17214 case $host_os in
17215 irix5* | nonstopux*)
17216 libsuff= shlibsuff=
17217 ;;
17218 *)
17219 case $LD in # libtool.m4 will add one of these switches to LD
17220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17221 libsuff= shlibsuff= libmagic=32-bit;;
17222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17223 libsuff=32 shlibsuff=N32 libmagic=N32;;
17224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17226 *) libsuff= shlibsuff= libmagic=never-match;;
17227 esac
17228 ;;
17229 esac
17230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17231 shlibpath_overrides_runpath=no
17232 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17233 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17234 hardcode_into_libs=yes
17235 ;;
17236
17237 # No shared lib support for Linux oldld, aout, or coff.
17238 linux*oldld* | linux*aout* | linux*coff*)
17239 dynamic_linker=no
17240 ;;
17241
17242 linux*android*)
17243 version_type=none # Android doesn't support versioned libraries.
17244 need_lib_prefix=no
17245 need_version=no
17246 library_names_spec='$libname$release$shared_ext'
17247 soname_spec='$libname$release$shared_ext'
17248 finish_cmds=
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=yes
17251
17252 # This implies no fast_install, which is unacceptable.
17253 # Some rework will be needed to allow for fast_install
17254 # before this can be enabled.
17255 hardcode_into_libs=yes
17256
17257 dynamic_linker='Android linker'
17258 # Don't embed -rpath directories since the linker doesn't support them.
17259 hardcode_libdir_flag_spec='-L$libdir'
17260 ;;
17261
17262 # This must be glibc/ELF.
17263 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17264 version_type=linux # correct to gnu/linux during the next big refactor
17265 need_lib_prefix=no
17266 need_version=no
17267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17268 soname_spec='$libname$release$shared_ext$major'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=no
17272
17273 # Some binutils ld are patched to set DT_RUNPATH
17274 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 lt_cv_shlibpath_overrides_runpath=no
17278 save_LDFLAGS=$LDFLAGS
17279 save_libdir=$libdir
17280 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17281 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 int
17286 main ()
17287 {
17288
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_link "$LINENO"; then :
17294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17295 lt_cv_shlibpath_overrides_runpath=yes
17296 fi
17297 fi
17298 rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
17300 LDFLAGS=$save_LDFLAGS
17301 libdir=$save_libdir
17302
17303 fi
17304
17305 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17306
17307 # This implies no fast_install, which is unacceptable.
17308 # Some rework will be needed to allow for fast_install
17309 # before this can be enabled.
17310 hardcode_into_libs=yes
17311
17312 # Add ABI-specific directories to the system library path.
17313 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17314
17315 # Ideally, we could use ldconfig to report *all* directores which are
17316 # searched for libraries, however this is still not possible. Aside from not
17317 # being certain /sbin/ldconfig is available, command
17318 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17319 # even though it is searched at run-time. Try to do the best guess by
17320 # appending ld.so.conf contents (and includes) to the search path.
17321 if test -f /etc/ld.so.conf; then
17322 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' ' '`
17323 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17324 fi
17325
17326 # We used to test for /lib/ld.so.1 and disable shared libraries on
17327 # powerpc, because MkLinux only supported shared libraries with the
17328 # GNU dynamic linker. Since this was broken with cross compilers,
17329 # most powerpc-linux boxes support dynamic linking these days and
17330 # people can always --disable-shared, the test was removed, and we
17331 # assume the GNU/Linux dynamic linker is in use.
17332 dynamic_linker='GNU/Linux ld.so'
17333 ;;
17334
17335 netbsd*)
17336 version_type=sunos
17337 need_lib_prefix=no
17338 need_version=no
17339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17342 dynamic_linker='NetBSD (a.out) ld.so'
17343 else
17344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17345 soname_spec='$libname$release$shared_ext$major'
17346 dynamic_linker='NetBSD ld.elf_so'
17347 fi
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes
17350 hardcode_into_libs=yes
17351 ;;
17352
17353 newsos6)
17354 version_type=linux # correct to gnu/linux during the next big refactor
17355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=yes
17358 ;;
17359
17360 *nto* | *qnx*)
17361 version_type=qnx
17362 need_lib_prefix=no
17363 need_version=no
17364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17365 soname_spec='$libname$release$shared_ext$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17368 hardcode_into_libs=yes
17369 dynamic_linker='ldqnx.so'
17370 ;;
17371
17372 openbsd* | bitrig*)
17373 version_type=sunos
17374 sys_lib_dlsearch_path_spec=/usr/lib
17375 need_lib_prefix=no
17376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17377 need_version=no
17378 else
17379 need_version=yes
17380 fi
17381 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=yes
17385 ;;
17386
17387 os2*)
17388 libname_spec='$name'
17389 version_type=windows
17390 shrext_cmds=.dll
17391 need_version=no
17392 need_lib_prefix=no
17393 # OS/2 can only load a DLL with a base name of 8 characters or less.
17394 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17395 v=$($ECHO $release$versuffix | tr -d .-);
17396 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17397 $ECHO $n$v`$shared_ext'
17398 library_names_spec='${libname}_dll.$libext'
17399 dynamic_linker='OS/2 ld.exe'
17400 shlibpath_var=BEGINLIBPATH
17401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17403 postinstall_cmds='base_file=`basename \$file`~
17404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17405 dldir=$destdir/`dirname \$dlpath`~
17406 test -d \$dldir || mkdir -p \$dldir~
17407 $install_prog $dir/$dlname \$dldir/$dlname~
17408 chmod a+x \$dldir/$dlname~
17409 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17410 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17411 fi'
17412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17413 dlpath=$dir/\$dldll~
17414 $RM \$dlpath'
17415 ;;
17416
17417 osf3* | osf4* | osf5*)
17418 version_type=osf
17419 need_lib_prefix=no
17420 need_version=no
17421 soname_spec='$libname$release$shared_ext$major'
17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17426 ;;
17427
17428 rdos*)
17429 dynamic_linker=no
17430 ;;
17431
17432 solaris*)
17433 version_type=linux # correct to gnu/linux during the next big refactor
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17437 soname_spec='$libname$release$shared_ext$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 hardcode_into_libs=yes
17441 # ldd complains unless libraries are executable
17442 postinstall_cmds='chmod +x $lib'
17443 ;;
17444
17445 sunos4*)
17446 version_type=sunos
17447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17451 if test yes = "$with_gnu_ld"; then
17452 need_lib_prefix=no
17453 fi
17454 need_version=yes
17455 ;;
17456
17457 sysv4 | sysv4.3*)
17458 version_type=linux # correct to gnu/linux during the next big refactor
17459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17460 soname_spec='$libname$release$shared_ext$major'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 case $host_vendor in
17463 sni)
17464 shlibpath_overrides_runpath=no
17465 need_lib_prefix=no
17466 runpath_var=LD_RUN_PATH
17467 ;;
17468 siemens)
17469 need_lib_prefix=no
17470 ;;
17471 motorola)
17472 need_lib_prefix=no
17473 need_version=no
17474 shlibpath_overrides_runpath=no
17475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17476 ;;
17477 esac
17478 ;;
17479
17480 sysv4*MP*)
17481 if test -d /usr/nec; then
17482 version_type=linux # correct to gnu/linux during the next big refactor
17483 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17484 soname_spec='$libname$shared_ext.$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 fi
17487 ;;
17488
17489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17490 version_type=sco
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17494 soname_spec='$libname$release$shared_ext$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 hardcode_into_libs=yes
17498 if test yes = "$with_gnu_ld"; then
17499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17500 else
17501 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17502 case $host_os in
17503 sco3.2v5*)
17504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17505 ;;
17506 esac
17507 fi
17508 sys_lib_dlsearch_path_spec='/usr/lib'
17509 ;;
17510
17511 tpf*)
17512 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17513 version_type=linux # correct to gnu/linux during the next big refactor
17514 need_lib_prefix=no
17515 need_version=no
17516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=no
17519 hardcode_into_libs=yes
17520 ;;
17521
17522 uts4*)
17523 version_type=linux # correct to gnu/linux during the next big refactor
17524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17525 soname_spec='$libname$release$shared_ext$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 ;;
17528
17529 *)
17530 dynamic_linker=no
17531 ;;
17532 esac
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17534 $as_echo "$dynamic_linker" >&6; }
17535 test no = "$dynamic_linker" && can_build_shared=no
17536
17537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17538 if test yes = "$GCC"; then
17539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17540 fi
17541
17542 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17543 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17544 fi
17545
17546 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17547 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17548 fi
17549
17550 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17551 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17552
17553 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17554 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17555
17556 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17557 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17657 hardcode_action=
17658 if test -n "$hardcode_libdir_flag_spec" ||
17659 test -n "$runpath_var" ||
17660 test yes = "$hardcode_automatic"; then
17661
17662 # We can hardcode non-existent directories.
17663 if test no != "$hardcode_direct" &&
17664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17665 # have to relink, otherwise we might link with an installed library
17666 # when we should be linking with a yet-to-be-installed one
17667 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17668 test no != "$hardcode_minus_L"; then
17669 # Linking always hardcodes the temporary library directory.
17670 hardcode_action=relink
17671 else
17672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17673 hardcode_action=immediate
17674 fi
17675 else
17676 # We cannot hardcode anything, or else we can only hardcode existing
17677 # directories.
17678 hardcode_action=unsupported
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17681 $as_echo "$hardcode_action" >&6; }
17682
17683 if test relink = "$hardcode_action" ||
17684 test yes = "$inherit_rpath"; then
17685 # Fast installation is not supported
17686 enable_fast_install=no
17687 elif test yes = "$shlibpath_overrides_runpath" ||
17688 test no = "$enable_shared"; then
17689 # Fast installation is not necessary
17690 enable_fast_install=needless
17691 fi
17692
17693
17694
17695
17696
17697
17698 if test yes != "$enable_dlopen"; then
17699 enable_dlopen=unknown
17700 enable_dlopen_self=unknown
17701 enable_dlopen_self_static=unknown
17702 else
17703 lt_cv_dlopen=no
17704 lt_cv_dlopen_libs=
17705
17706 case $host_os in
17707 beos*)
17708 lt_cv_dlopen=load_add_on
17709 lt_cv_dlopen_libs=
17710 lt_cv_dlopen_self=yes
17711 ;;
17712
17713 mingw* | pw32* | cegcc*)
17714 lt_cv_dlopen=LoadLibrary
17715 lt_cv_dlopen_libs=
17716 ;;
17717
17718 cygwin*)
17719 lt_cv_dlopen=dlopen
17720 lt_cv_dlopen_libs=
17721 ;;
17722
17723 darwin*)
17724 # if libdl is installed we need to link against it
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17727 if ${ac_cv_lib_dl_dlopen+:} false; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730 ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-ldl $LIBS"
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734
17735 /* Override any GCC internal prototype to avoid an error.
17736 Use char because int might match the return type of a GCC
17737 builtin and then its argument prototype would still apply. */
17738 #ifdef __cplusplus
17739 extern "C"
17740 #endif
17741 char dlopen ();
17742 int
17743 main ()
17744 {
17745 return dlopen ();
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 if ac_fn_c_try_link "$LINENO"; then :
17751 ac_cv_lib_dl_dlopen=yes
17752 else
17753 ac_cv_lib_dl_dlopen=no
17754 fi
17755 rm -f core conftest.err conftest.$ac_objext \
17756 conftest$ac_exeext conftest.$ac_ext
17757 LIBS=$ac_check_lib_save_LIBS
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17762 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17763 else
17764
17765 lt_cv_dlopen=dyld
17766 lt_cv_dlopen_libs=
17767 lt_cv_dlopen_self=yes
17768
17769 fi
17770
17771 ;;
17772
17773 tpf*)
17774 # Don't try to run any link tests for TPF. We know it's impossible
17775 # because TPF is a cross-compiler, and we know how we open DSOs.
17776 lt_cv_dlopen=dlopen
17777 lt_cv_dlopen_libs=
17778 lt_cv_dlopen_self=no
17779 ;;
17780
17781 *)
17782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17783 if test "x$ac_cv_func_shl_load" = xyes; then :
17784 lt_cv_dlopen=shl_load
17785 else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17788 if ${ac_cv_lib_dld_shl_load+:} false; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 ac_check_lib_save_LIBS=$LIBS
17792 LIBS="-ldld $LIBS"
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 char shl_load ();
17803 int
17804 main ()
17805 {
17806 return shl_load ();
17807 ;
17808 return 0;
17809 }
17810 _ACEOF
17811 if ac_fn_c_try_link "$LINENO"; then :
17812 ac_cv_lib_dld_shl_load=yes
17813 else
17814 ac_cv_lib_dld_shl_load=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17822 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17823 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17824 else
17825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17826 if test "x$ac_cv_func_dlopen" = xyes; then :
17827 lt_cv_dlopen=dlopen
17828 else
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17831 if ${ac_cv_lib_dl_dlopen+:} false; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-ldl $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17838
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char dlopen ();
17846 int
17847 main ()
17848 {
17849 return dlopen ();
17850 ;
17851 return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 ac_cv_lib_dl_dlopen=yes
17856 else
17857 ac_cv_lib_dl_dlopen=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17862 fi
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17865 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17867 else
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17870 if ${ac_cv_lib_svld_dlopen+:} false; then :
17871 $as_echo_n "(cached) " >&6
17872 else
17873 ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-lsvld $LIBS"
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 char dlopen ();
17885 int
17886 main ()
17887 {
17888 return dlopen ();
17889 ;
17890 return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 ac_cv_lib_svld_dlopen=yes
17895 else
17896 ac_cv_lib_svld_dlopen=no
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17904 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17906 else
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17909 if ${ac_cv_lib_dld_dld_link+:} false; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldld $LIBS"
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char dld_link ();
17924 int
17925 main ()
17926 {
17927 return dld_link ();
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"; then :
17933 ac_cv_lib_dld_dld_link=yes
17934 else
17935 ac_cv_lib_dld_dld_link=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17940 fi
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17943 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17944 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17945 fi
17946
17947
17948 fi
17949
17950
17951 fi
17952
17953
17954 fi
17955
17956
17957 fi
17958
17959
17960 fi
17961
17962 ;;
17963 esac
17964
17965 if test no = "$lt_cv_dlopen"; then
17966 enable_dlopen=no
17967 else
17968 enable_dlopen=yes
17969 fi
17970
17971 case $lt_cv_dlopen in
17972 dlopen)
17973 save_CPPFLAGS=$CPPFLAGS
17974 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17975
17976 save_LDFLAGS=$LDFLAGS
17977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17978
17979 save_LIBS=$LIBS
17980 LIBS="$lt_cv_dlopen_libs $LIBS"
17981
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17984 if ${lt_cv_dlopen_self+:} false; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 if test yes = "$cross_compiling"; then :
17988 lt_cv_dlopen_self=cross
17989 else
17990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991 lt_status=$lt_dlunknown
17992 cat > conftest.$ac_ext <<_LT_EOF
17993 #line $LINENO "configure"
17994 #include "confdefs.h"
17995
17996 #if HAVE_DLFCN_H
17997 #include <dlfcn.h>
17998 #endif
17999
18000 #include <stdio.h>
18001
18002 #ifdef RTLD_GLOBAL
18003 # define LT_DLGLOBAL RTLD_GLOBAL
18004 #else
18005 # ifdef DL_GLOBAL
18006 # define LT_DLGLOBAL DL_GLOBAL
18007 # else
18008 # define LT_DLGLOBAL 0
18009 # endif
18010 #endif
18011
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013 find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18015 # ifdef RTLD_LAZY
18016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18017 # else
18018 # ifdef DL_LAZY
18019 # define LT_DLLAZY_OR_NOW DL_LAZY
18020 # else
18021 # ifdef RTLD_NOW
18022 # define LT_DLLAZY_OR_NOW RTLD_NOW
18023 # else
18024 # ifdef DL_NOW
18025 # define LT_DLLAZY_OR_NOW DL_NOW
18026 # else
18027 # define LT_DLLAZY_OR_NOW 0
18028 # endif
18029 # endif
18030 # endif
18031 # endif
18032 #endif
18033
18034 /* When -fvisibility=hidden is used, assume the code has been annotated
18035 correspondingly for the symbols needed. */
18036 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18037 int fnord () __attribute__((visibility("default")));
18038 #endif
18039
18040 int fnord () { return 42; }
18041 int main ()
18042 {
18043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18044 int status = $lt_dlunknown;
18045
18046 if (self)
18047 {
18048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18049 else
18050 {
18051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18052 else puts (dlerror ());
18053 }
18054 /* dlclose (self); */
18055 }
18056 else
18057 puts (dlerror ());
18058
18059 return status;
18060 }
18061 _LT_EOF
18062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18063 (eval $ac_link) 2>&5
18064 ac_status=$?
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18067 (./conftest; exit; ) >&5 2>/dev/null
18068 lt_status=$?
18069 case x$lt_status in
18070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18073 esac
18074 else :
18075 # compilation failed
18076 lt_cv_dlopen_self=no
18077 fi
18078 fi
18079 rm -fr conftest*
18080
18081
18082 fi
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18084 $as_echo "$lt_cv_dlopen_self" >&6; }
18085
18086 if test yes = "$lt_cv_dlopen_self"; then
18087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18089 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18090 if ${lt_cv_dlopen_self_static+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 if test yes = "$cross_compiling"; then :
18094 lt_cv_dlopen_self_static=cross
18095 else
18096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18097 lt_status=$lt_dlunknown
18098 cat > conftest.$ac_ext <<_LT_EOF
18099 #line $LINENO "configure"
18100 #include "confdefs.h"
18101
18102 #if HAVE_DLFCN_H
18103 #include <dlfcn.h>
18104 #endif
18105
18106 #include <stdio.h>
18107
18108 #ifdef RTLD_GLOBAL
18109 # define LT_DLGLOBAL RTLD_GLOBAL
18110 #else
18111 # ifdef DL_GLOBAL
18112 # define LT_DLGLOBAL DL_GLOBAL
18113 # else
18114 # define LT_DLGLOBAL 0
18115 # endif
18116 #endif
18117
18118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18119 find out it does not work in some platform. */
18120 #ifndef LT_DLLAZY_OR_NOW
18121 # ifdef RTLD_LAZY
18122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18123 # else
18124 # ifdef DL_LAZY
18125 # define LT_DLLAZY_OR_NOW DL_LAZY
18126 # else
18127 # ifdef RTLD_NOW
18128 # define LT_DLLAZY_OR_NOW RTLD_NOW
18129 # else
18130 # ifdef DL_NOW
18131 # define LT_DLLAZY_OR_NOW DL_NOW
18132 # else
18133 # define LT_DLLAZY_OR_NOW 0
18134 # endif
18135 # endif
18136 # endif
18137 # endif
18138 #endif
18139
18140 /* When -fvisibility=hidden is used, assume the code has been annotated
18141 correspondingly for the symbols needed. */
18142 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18143 int fnord () __attribute__((visibility("default")));
18144 #endif
18145
18146 int fnord () { return 42; }
18147 int main ()
18148 {
18149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18150 int status = $lt_dlunknown;
18151
18152 if (self)
18153 {
18154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18155 else
18156 {
18157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18158 else puts (dlerror ());
18159 }
18160 /* dlclose (self); */
18161 }
18162 else
18163 puts (dlerror ());
18164
18165 return status;
18166 }
18167 _LT_EOF
18168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18169 (eval $ac_link) 2>&5
18170 ac_status=$?
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18173 (./conftest; exit; ) >&5 2>/dev/null
18174 lt_status=$?
18175 case x$lt_status in
18176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18178 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18179 esac
18180 else :
18181 # compilation failed
18182 lt_cv_dlopen_self_static=no
18183 fi
18184 fi
18185 rm -fr conftest*
18186
18187
18188 fi
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18190 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18191 fi
18192
18193 CPPFLAGS=$save_CPPFLAGS
18194 LDFLAGS=$save_LDFLAGS
18195 LIBS=$save_LIBS
18196 ;;
18197 esac
18198
18199 case $lt_cv_dlopen_self in
18200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18201 *) enable_dlopen_self=unknown ;;
18202 esac
18203
18204 case $lt_cv_dlopen_self_static in
18205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18206 *) enable_dlopen_self_static=unknown ;;
18207 esac
18208 fi
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226 striplib=
18227 old_striplib=
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18229 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18230 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18231 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18232 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234 $as_echo "yes" >&6; }
18235 else
18236 # FIXME - insert some real tests, host_os isn't really good enough
18237 case $host_os in
18238 darwin*)
18239 if test -n "$STRIP"; then
18240 striplib="$STRIP -x"
18241 old_striplib="$STRIP -S"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18243 $as_echo "yes" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18247 fi
18248 ;;
18249 *)
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18252 ;;
18253 esac
18254 fi
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267 # Report what library types will actually be built
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18269 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18271 $as_echo "$can_build_shared" >&6; }
18272
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18274 $as_echo_n "checking whether to build shared libraries... " >&6; }
18275 test no = "$can_build_shared" && enable_shared=no
18276
18277 # On AIX, shared libraries and static libraries use the same namespace, and
18278 # are all built from PIC.
18279 case $host_os in
18280 aix3*)
18281 test yes = "$enable_shared" && enable_static=no
18282 if test -n "$RANLIB"; then
18283 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18284 postinstall_cmds='$RANLIB $lib'
18285 fi
18286 ;;
18287
18288 aix[4-9]*)
18289 if test ia64 != "$host_cpu"; then
18290 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18291 yes,aix,yes) ;; # shared object as lib.so file only
18292 yes,svr4,*) ;; # shared object as lib.so archive member only
18293 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18294 esac
18295 fi
18296 ;;
18297 esac
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18299 $as_echo "$enable_shared" >&6; }
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18302 $as_echo_n "checking whether to build static libraries... " >&6; }
18303 # Make sure either enable_shared or enable_static is yes.
18304 test yes = "$enable_shared" || enable_static=yes
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18306 $as_echo "$enable_static" >&6; }
18307
18308
18309
18310
18311 fi
18312 ac_ext=c
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
18318 CC=$lt_save_CC
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334 ac_config_commands="$ac_config_commands libtool"
18335
18336
18337
18338
18339 # Only expand once:
18340
18341
18342
18343
18344
18345 # Define a configure option for an alternate module directory
18346
18347 # Check whether --with-xorg-module-dir was given.
18348 if test "${with_xorg_module_dir+set}" = set; then :
18349 withval=$with_xorg_module_dir; moduledir="$withval"
18350 else
18351 moduledir="$libdir/xorg/modules"
18352 fi
18353
18354
18355
18356 # Store the list of server defined optional extensions in REQUIRED_MODULES
18357
18358
18359 SAVE_CFLAGS="$CFLAGS"
18360 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363
18364 #include "xorg-server.h"
18365 #if !defined RANDR
18366 #error RANDR not defined
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372
18373 ;
18374 return 0;
18375 }
18376 _ACEOF
18377 if ac_fn_c_try_compile "$LINENO"; then :
18378 _EXT_CHECK=yes
18379 else
18380 _EXT_CHECK=no
18381 fi
18382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18383 CFLAGS="$SAVE_CFLAGS"
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18385 $as_echo_n "checking if RANDR is defined... " >&6; }
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18387 $as_echo "$_EXT_CHECK" >&6; }
18388 if test "$_EXT_CHECK" != no; then
18389 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18390 fi
18391
18392
18393
18394 SAVE_CFLAGS="$CFLAGS"
18395 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18398
18399 #include "xorg-server.h"
18400 #if !defined RENDER
18401 #error RENDER not defined
18402 #endif
18403
18404 int
18405 main ()
18406 {
18407
18408 ;
18409 return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"; then :
18413 _EXT_CHECK=yes
18414 else
18415 _EXT_CHECK=no
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 CFLAGS="$SAVE_CFLAGS"
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18420 $as_echo_n "checking if RENDER is defined... " >&6; }
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18422 $as_echo "$_EXT_CHECK" >&6; }
18423 if test "$_EXT_CHECK" != no; then
18424 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18425 fi
18426
18427
18428
18429 SAVE_CFLAGS="$CFLAGS"
18430 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433
18434 #include "xorg-server.h"
18435 #if !defined DPMSExtension
18436 #error DPMSExtension not defined
18437 #endif
18438
18439 int
18440 main ()
18441 {
18442
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448 _EXT_CHECK=yes
18449 else
18450 _EXT_CHECK=no
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 CFLAGS="$SAVE_CFLAGS"
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18455 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18457 $as_echo "$_EXT_CHECK" >&6; }
18458 if test "$_EXT_CHECK" != no; then
18459 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18460 fi
18461
18462
18463 # Obtain compiler/linker options for the driver dependencies
18464
18465 pkg_failed=no
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18467 $as_echo_n "checking for XORG... " >&6; }
18468
18469 if test -n "$XORG_CFLAGS"; then
18470 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18471 elif test -n "$PKG_CONFIG"; then
18472 if test -n "$PKG_CONFIG" && \
18473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18474 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18475 ac_status=$?
18476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18477 test $ac_status = 0; }; then
18478 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18479 test "x$?" != "x0" && pkg_failed=yes
18480 else
18481 pkg_failed=yes
18482 fi
18483 else
18484 pkg_failed=untried
18485 fi
18486 if test -n "$XORG_LIBS"; then
18487 pkg_cv_XORG_LIBS="$XORG_LIBS"
18488 elif test -n "$PKG_CONFIG"; then
18489 if test -n "$PKG_CONFIG" && \
18490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18491 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18492 ac_status=$?
18493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18494 test $ac_status = 0; }; then
18495 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18496 test "x$?" != "x0" && pkg_failed=yes
18497 else
18498 pkg_failed=yes
18499 fi
18500 else
18501 pkg_failed=untried
18502 fi
18503
18504
18505
18506 if test $pkg_failed = yes; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18508 $as_echo "no" >&6; }
18509
18510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18511 _pkg_short_errors_supported=yes
18512 else
18513 _pkg_short_errors_supported=no
18514 fi
18515 if test $_pkg_short_errors_supported = yes; then
18516 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18517 else
18518 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18519 fi
18520 # Put the nasty error message in config.log where it belongs
18521 echo "$XORG_PKG_ERRORS" >&5
18522
18523 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18524
18525 $XORG_PKG_ERRORS
18526
18527 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18528 installed software in a non-standard prefix.
18529
18530 Alternatively, you may set the environment variables XORG_CFLAGS
18531 and XORG_LIBS to avoid the need to call pkg-config.
18532 See the pkg-config man page for more details." "$LINENO" 5
18533 elif test $pkg_failed = untried; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18535 $as_echo "no" >&6; }
18536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18538 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18539 is in your PATH or set the PKG_CONFIG environment variable to the full
18540 path to pkg-config.
18541
18542 Alternatively, you may set the environment variables XORG_CFLAGS
18543 and XORG_LIBS to avoid the need to call pkg-config.
18544 See the pkg-config man page for more details.
18545
18546 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18547 See \`config.log' for more details" "$LINENO" 5; }
18548 else
18549 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18550 XORG_LIBS=$pkg_cv_XORG_LIBS
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18552 $as_echo "yes" >&6; }
18553
18554 fi
18555
18556 pkg_failed=no
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18558 $as_echo_n "checking for XEXT... " >&6; }
18559
18560 if test -n "$XEXT_CFLAGS"; then
18561 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18562 elif test -n "$PKG_CONFIG"; then
18563 if test -n "$PKG_CONFIG" && \
18564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18565 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18566 ac_status=$?
18567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18568 test $ac_status = 0; }; then
18569 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18570 test "x$?" != "x0" && pkg_failed=yes
18571 else
18572 pkg_failed=yes
18573 fi
18574 else
18575 pkg_failed=untried
18576 fi
18577 if test -n "$XEXT_LIBS"; then
18578 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18579 elif test -n "$PKG_CONFIG"; then
18580 if test -n "$PKG_CONFIG" && \
18581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18582 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18583 ac_status=$?
18584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; }; then
18586 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18587 test "x$?" != "x0" && pkg_failed=yes
18588 else
18589 pkg_failed=yes
18590 fi
18591 else
18592 pkg_failed=untried
18593 fi
18594
18595
18596
18597 if test $pkg_failed = yes; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18600
18601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18602 _pkg_short_errors_supported=yes
18603 else
18604 _pkg_short_errors_supported=no
18605 fi
18606 if test $_pkg_short_errors_supported = yes; then
18607 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18608 else
18609 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18610 fi
18611 # Put the nasty error message in config.log where it belongs
18612 echo "$XEXT_PKG_ERRORS" >&5
18613
18614 HAVE_XEXTPROTO_71="no"
18615 elif test $pkg_failed = untried; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18617 $as_echo "no" >&6; }
18618 HAVE_XEXTPROTO_71="no"
18619 else
18620 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18621 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18623 $as_echo "yes" >&6; }
18624 HAVE_XEXTPROTO_71="yes"
18625 fi
18626
18627 if test "x$HAVE_XEXTPROTO_71" = xyes; then
18628
18629 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18630
18631 fi
18632
18633 save_CFLAGS="$CFLAGS"
18634 CFLAGS="$XORG_CFLAGS"
18635 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18636 "
18637 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18638
18639 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18640
18641 fi
18642
18643 CFLAGS="$save_CFLAGS"
18644
18645 save_CFLAGS="$CFLAGS"
18646 CFLAGS="$XORG_CFLAGS"
18647 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18648 "
18649 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18650 XSERVER_LIBPCIACCESS=yes
18651 else
18652 XSERVER_LIBPCIACCESS=no
18653 fi
18654
18655 CFLAGS="$save_CFLAGS"
18656
18657 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18658
18659 pkg_failed=no
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18661 $as_echo_n "checking for PCIACCESS... " >&6; }
18662
18663 if test -n "$PCIACCESS_CFLAGS"; then
18664 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18665 elif test -n "$PKG_CONFIG"; then
18666 if test -n "$PKG_CONFIG" && \
18667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18668 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18669 ac_status=$?
18670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18671 test $ac_status = 0; }; then
18672 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18673 test "x$?" != "x0" && pkg_failed=yes
18674 else
18675 pkg_failed=yes
18676 fi
18677 else
18678 pkg_failed=untried
18679 fi
18680 if test -n "$PCIACCESS_LIBS"; then
18681 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18682 elif test -n "$PKG_CONFIG"; then
18683 if test -n "$PKG_CONFIG" && \
18684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18685 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18686 ac_status=$?
18687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18688 test $ac_status = 0; }; then
18689 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18690 test "x$?" != "x0" && pkg_failed=yes
18691 else
18692 pkg_failed=yes
18693 fi
18694 else
18695 pkg_failed=untried
18696 fi
18697
18698
18699
18700 if test $pkg_failed = yes; then
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703
18704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18705 _pkg_short_errors_supported=yes
18706 else
18707 _pkg_short_errors_supported=no
18708 fi
18709 if test $_pkg_short_errors_supported = yes; then
18710 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18711 else
18712 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18713 fi
18714 # Put the nasty error message in config.log where it belongs
18715 echo "$PCIACCESS_PKG_ERRORS" >&5
18716
18717 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18718
18719 $PCIACCESS_PKG_ERRORS
18720
18721 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18722 installed software in a non-standard prefix.
18723
18724 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18725 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18726 See the pkg-config man page for more details." "$LINENO" 5
18727 elif test $pkg_failed = untried; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18732 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18733 is in your PATH or set the PKG_CONFIG environment variable to the full
18734 path to pkg-config.
18735
18736 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18737 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18738 See the pkg-config man page for more details.
18739
18740 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18741 See \`config.log' for more details" "$LINENO" 5; }
18742 else
18743 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18744 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18746 $as_echo "yes" >&6; }
18747
18748 fi
18749 fi
18750
18751 # Checks for libraries.
18752
18753 DRIVER_NAME=vesa
18754
18755
18756 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18757
18758 cat >confcache <<\_ACEOF
18759 # This file is a shell script that caches the results of configure
18760 # tests run on this system so they can be shared between configure
18761 # scripts and configure runs, see configure's option --config-cache.
18762 # It is not useful on other systems. If it contains results you don't
18763 # want to keep, you may remove or edit it.
18764 #
18765 # config.status only pays attention to the cache file if you give it
18766 # the --recheck option to rerun configure.
18767 #
18768 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18770 # following values.
18771
18772 _ACEOF
18773
18774 # The following way of writing the cache mishandles newlines in values,
18775 # but we know of no workaround that is simple, portable, and efficient.
18776 # So, we kill variables containing newlines.
18777 # Ultrix sh set writes to stderr and can't be redirected directly,
18778 # and sets the high bit in the cache file unless we assign to the vars.
18779 (
18780 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18781 eval ac_val=\$$ac_var
18782 case $ac_val in #(
18783 *${as_nl}*)
18784 case $ac_var in #(
18785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18787 esac
18788 case $ac_var in #(
18789 _ | IFS | as_nl) ;; #(
18790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18791 *) { eval $ac_var=; unset $ac_var;} ;;
18792 esac ;;
18793 esac
18794 done
18795
18796 (set) 2>&1 |
18797 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18798 *${as_nl}ac_space=\ *)
18799 # `set' does not quote correctly, so add quotes: double-quote
18800 # substitution turns \\\\ into \\, and sed turns \\ into \.
18801 sed -n \
18802 "s/'/'\\\\''/g;
18803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18804 ;; #(
18805 *)
18806 # `set' quotes correctly as required by POSIX, so do not add quotes.
18807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18808 ;;
18809 esac |
18810 sort
18811 ) |
18812 sed '
18813 /^ac_cv_env_/b end
18814 t clear
18815 :clear
18816 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18817 t end
18818 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18819 :end' >>confcache
18820 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18821 if test -w "$cache_file"; then
18822 if test "x$cache_file" != "x/dev/null"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18824 $as_echo "$as_me: updating cache $cache_file" >&6;}
18825 if test ! -f "$cache_file" || test -h "$cache_file"; then
18826 cat confcache >"$cache_file"
18827 else
18828 case $cache_file in #(
18829 */* | ?:*)
18830 mv -f confcache "$cache_file"$$ &&
18831 mv -f "$cache_file"$$ "$cache_file" ;; #(
18832 *)
18833 mv -f confcache "$cache_file" ;;
18834 esac
18835 fi
18836 fi
18837 else
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18839 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18840 fi
18841 fi
18842 rm -f confcache
18843
18844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18845 # Let make expand exec_prefix.
18846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18847
18848 DEFS=-DHAVE_CONFIG_H
18849
18850 ac_libobjs=
18851 ac_ltlibobjs=
18852 U=
18853 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18854 # 1. Remove the extension, and $U if already installed.
18855 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18856 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18858 # will be set to the directory where LIBOBJS objects are built.
18859 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18860 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18861 done
18862 LIBOBJS=$ac_libobjs
18863
18864 LTLIBOBJS=$ac_ltlibobjs
18865
18866
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18868 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18869 if test -n "$am_sleep_pid"; then
18870 # Hide warnings about reused PIDs.
18871 wait $am_sleep_pid 2>/dev/null
18872 fi
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18874 $as_echo "done" >&6; }
18875 if test -n "$EXEEXT"; then
18876 am__EXEEXT_TRUE=
18877 am__EXEEXT_FALSE='#'
18878 else
18879 am__EXEEXT_TRUE='#'
18880 am__EXEEXT_FALSE=
18881 fi
18882
18883 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18884 as_fn_error $? "conditional \"AMDEP\" was never defined.
18885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18886 fi
18887 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18888 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18890 fi
18891
18892 : "${CONFIG_STATUS=./config.status}"
18893 ac_write_fail=0
18894 ac_clean_files_save=$ac_clean_files
18895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18898 as_write_fail=0
18899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18900 #! $SHELL
18901 # Generated by $as_me.
18902 # Run this file to recreate the current configuration.
18903 # Compiler output produced by configure, useful for debugging
18904 # configure, is in config.log if it exists.
18905
18906 debug=false
18907 ac_cs_recheck=false
18908 ac_cs_silent=false
18909
18910 SHELL=\${CONFIG_SHELL-$SHELL}
18911 export SHELL
18912 _ASEOF
18913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18914 ## -------------------- ##
18915 ## M4sh Initialization. ##
18916 ## -------------------- ##
18917
18918 # Be more Bourne compatible
18919 DUALCASE=1; export DUALCASE # for MKS sh
18920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18921 emulate sh
18922 NULLCMD=:
18923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18924 # is contrary to our usage. Disable this feature.
18925 alias -g '${1+"$@"}'='"$@"'
18926 setopt NO_GLOB_SUBST
18927 else
18928 case `(set -o) 2>/dev/null` in #(
18929 *posix*) :
18930 set -o posix ;; #(
18931 *) :
18932 ;;
18933 esac
18934 fi
18935
18936
18937 as_nl='
18938 '
18939 export as_nl
18940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18944 # Prefer a ksh shell builtin over an external printf program on Solaris,
18945 # but without wasting forks for bash or zsh.
18946 if test -z "$BASH_VERSION$ZSH_VERSION" \
18947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18948 as_echo='print -r --'
18949 as_echo_n='print -rn --'
18950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18951 as_echo='printf %s\n'
18952 as_echo_n='printf %s'
18953 else
18954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18956 as_echo_n='/usr/ucb/echo -n'
18957 else
18958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18959 as_echo_n_body='eval
18960 arg=$1;
18961 case $arg in #(
18962 *"$as_nl"*)
18963 expr "X$arg" : "X\\(.*\\)$as_nl";
18964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18965 esac;
18966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18967 '
18968 export as_echo_n_body
18969 as_echo_n='sh -c $as_echo_n_body as_echo'
18970 fi
18971 export as_echo_body
18972 as_echo='sh -c $as_echo_body as_echo'
18973 fi
18974
18975 # The user is always right.
18976 if test "${PATH_SEPARATOR+set}" != set; then
18977 PATH_SEPARATOR=:
18978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18980 PATH_SEPARATOR=';'
18981 }
18982 fi
18983
18984
18985 # IFS
18986 # We need space, tab and new line, in precisely that order. Quoting is
18987 # there to prevent editors from complaining about space-tab.
18988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18989 # splitting by setting IFS to empty value.)
18990 IFS=" "" $as_nl"
18991
18992 # Find who we are. Look in the path if we contain no directory separator.
18993 as_myself=
18994 case $0 in #((
18995 *[\\/]* ) as_myself=$0 ;;
18996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
18998 do
18999 IFS=$as_save_IFS
19000 test -z "$as_dir" && as_dir=.
19001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19002 done
19003 IFS=$as_save_IFS
19004
19005 ;;
19006 esac
19007 # We did not find ourselves, most probably we were run as `sh COMMAND'
19008 # in which case we are not to be found in the path.
19009 if test "x$as_myself" = x; then
19010 as_myself=$0
19011 fi
19012 if test ! -f "$as_myself"; then
19013 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19014 exit 1
19015 fi
19016
19017 # Unset variables that we do not need and which cause bugs (e.g. in
19018 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19019 # suppresses any "Segmentation fault" message there. '((' could
19020 # trigger a bug in pdksh 5.2.14.
19021 for as_var in BASH_ENV ENV MAIL MAILPATH
19022 do eval test x\${$as_var+set} = xset \
19023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19024 done
19025 PS1='$ '
19026 PS2='> '
19027 PS4='+ '
19028
19029 # NLS nuisances.
19030 LC_ALL=C
19031 export LC_ALL
19032 LANGUAGE=C
19033 export LANGUAGE
19034
19035 # CDPATH.
19036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19037
19038
19039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19040 # ----------------------------------------
19041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19043 # script with STATUS, using 1 if that was 0.
19044 as_fn_error ()
19045 {
19046 as_status=$1; test $as_status -eq 0 && as_status=1
19047 if test "$4"; then
19048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19050 fi
19051 $as_echo "$as_me: error: $2" >&2
19052 as_fn_exit $as_status
19053 } # as_fn_error
19054
19055
19056 # as_fn_set_status STATUS
19057 # -----------------------
19058 # Set $? to STATUS, without forking.
19059 as_fn_set_status ()
19060 {
19061 return $1
19062 } # as_fn_set_status
19063
19064 # as_fn_exit STATUS
19065 # -----------------
19066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19067 as_fn_exit ()
19068 {
19069 set +e
19070 as_fn_set_status $1
19071 exit $1
19072 } # as_fn_exit
19073
19074 # as_fn_unset VAR
19075 # ---------------
19076 # Portably unset VAR.
19077 as_fn_unset ()
19078 {
19079 { eval $1=; unset $1;}
19080 }
19081 as_unset=as_fn_unset
19082 # as_fn_append VAR VALUE
19083 # ----------------------
19084 # Append the text in VALUE to the end of the definition contained in VAR. Take
19085 # advantage of any shell optimizations that allow amortized linear growth over
19086 # repeated appends, instead of the typical quadratic growth present in naive
19087 # implementations.
19088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19089 eval 'as_fn_append ()
19090 {
19091 eval $1+=\$2
19092 }'
19093 else
19094 as_fn_append ()
19095 {
19096 eval $1=\$$1\$2
19097 }
19098 fi # as_fn_append
19099
19100 # as_fn_arith ARG...
19101 # ------------------
19102 # Perform arithmetic evaluation on the ARGs, and store the result in the
19103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19104 # must be portable across $(()) and expr.
19105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19106 eval 'as_fn_arith ()
19107 {
19108 as_val=$(( $* ))
19109 }'
19110 else
19111 as_fn_arith ()
19112 {
19113 as_val=`expr "$@" || test $? -eq 1`
19114 }
19115 fi # as_fn_arith
19116
19117
19118 if expr a : '\(a\)' >/dev/null 2>&1 &&
19119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19120 as_expr=expr
19121 else
19122 as_expr=false
19123 fi
19124
19125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19126 as_basename=basename
19127 else
19128 as_basename=false
19129 fi
19130
19131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19132 as_dirname=dirname
19133 else
19134 as_dirname=false
19135 fi
19136
19137 as_me=`$as_basename -- "$0" ||
19138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19139 X"$0" : 'X\(//\)$' \| \
19140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19141 $as_echo X/"$0" |
19142 sed '/^.*\/\([^/][^/]*\)\/*$/{
19143 s//\1/
19144 q
19145 }
19146 /^X\/\(\/\/\)$/{
19147 s//\1/
19148 q
19149 }
19150 /^X\/\(\/\).*/{
19151 s//\1/
19152 q
19153 }
19154 s/.*/./; q'`
19155
19156 # Avoid depending upon Character Ranges.
19157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19160 as_cr_digits='0123456789'
19161 as_cr_alnum=$as_cr_Letters$as_cr_digits
19162
19163 ECHO_C= ECHO_N= ECHO_T=
19164 case `echo -n x` in #(((((
19165 -n*)
19166 case `echo 'xy\c'` in
19167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19168 xy) ECHO_C='\c';;
19169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19170 ECHO_T=' ';;
19171 esac;;
19172 *)
19173 ECHO_N='-n';;
19174 esac
19175
19176 rm -f conf$$ conf$$.exe conf$$.file
19177 if test -d conf$$.dir; then
19178 rm -f conf$$.dir/conf$$.file
19179 else
19180 rm -f conf$$.dir
19181 mkdir conf$$.dir 2>/dev/null
19182 fi
19183 if (echo >conf$$.file) 2>/dev/null; then
19184 if ln -s conf$$.file conf$$ 2>/dev/null; then
19185 as_ln_s='ln -s'
19186 # ... but there are two gotchas:
19187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19189 # In both cases, we have to default to `cp -pR'.
19190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19191 as_ln_s='cp -pR'
19192 elif ln conf$$.file conf$$ 2>/dev/null; then
19193 as_ln_s=ln
19194 else
19195 as_ln_s='cp -pR'
19196 fi
19197 else
19198 as_ln_s='cp -pR'
19199 fi
19200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19201 rmdir conf$$.dir 2>/dev/null
19202
19203
19204 # as_fn_mkdir_p
19205 # -------------
19206 # Create "$as_dir" as a directory, including parents if necessary.
19207 as_fn_mkdir_p ()
19208 {
19209
19210 case $as_dir in #(
19211 -*) as_dir=./$as_dir;;
19212 esac
19213 test -d "$as_dir" || eval $as_mkdir_p || {
19214 as_dirs=
19215 while :; do
19216 case $as_dir in #(
19217 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19218 *) as_qdir=$as_dir;;
19219 esac
19220 as_dirs="'$as_qdir' $as_dirs"
19221 as_dir=`$as_dirname -- "$as_dir" ||
19222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19223 X"$as_dir" : 'X\(//\)[^/]' \| \
19224 X"$as_dir" : 'X\(//\)$' \| \
19225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19226 $as_echo X"$as_dir" |
19227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19228 s//\1/
19229 q
19230 }
19231 /^X\(\/\/\)[^/].*/{
19232 s//\1/
19233 q
19234 }
19235 /^X\(\/\/\)$/{
19236 s//\1/
19237 q
19238 }
19239 /^X\(\/\).*/{
19240 s//\1/
19241 q
19242 }
19243 s/.*/./; q'`
19244 test -d "$as_dir" && break
19245 done
19246 test -z "$as_dirs" || eval "mkdir $as_dirs"
19247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19248
19249
19250 } # as_fn_mkdir_p
19251 if mkdir -p . 2>/dev/null; then
19252 as_mkdir_p='mkdir -p "$as_dir"'
19253 else
19254 test -d ./-p && rmdir ./-p
19255 as_mkdir_p=false
19256 fi
19257
19258
19259 # as_fn_executable_p FILE
19260 # -----------------------
19261 # Test if FILE is an executable regular file.
19262 as_fn_executable_p ()
19263 {
19264 test -f "$1" && test -x "$1"
19265 } # as_fn_executable_p
19266 as_test_x='test -x'
19267 as_executable_p=as_fn_executable_p
19268
19269 # Sed expression to map a string onto a valid CPP name.
19270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19271
19272 # Sed expression to map a string onto a valid variable name.
19273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19274
19275
19276 exec 6>&1
19277 ## ----------------------------------- ##
19278 ## Main body of $CONFIG_STATUS script. ##
19279 ## ----------------------------------- ##
19280 _ASEOF
19281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19282
19283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284 # Save the log message, to keep $0 and so on meaningful, and to
19285 # report actual input values of CONFIG_FILES etc. instead of their
19286 # values after options handling.
19287 ac_log="
19288 This file was extended by xf86-video-vesa $as_me 2.4.0, which was
19289 generated by GNU Autoconf 2.69. Invocation command line was
19290
19291 CONFIG_FILES = $CONFIG_FILES
19292 CONFIG_HEADERS = $CONFIG_HEADERS
19293 CONFIG_LINKS = $CONFIG_LINKS
19294 CONFIG_COMMANDS = $CONFIG_COMMANDS
19295 $ $0 $@
19296
19297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19298 "
19299
19300 _ACEOF
19301
19302 case $ac_config_files in *"
19303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19304 esac
19305
19306 case $ac_config_headers in *"
19307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19308 esac
19309
19310
19311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19312 # Files that config.status was made for.
19313 config_files="$ac_config_files"
19314 config_headers="$ac_config_headers"
19315 config_commands="$ac_config_commands"
19316
19317 _ACEOF
19318
19319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320 ac_cs_usage="\
19321 \`$as_me' instantiates files and other configuration actions
19322 from templates according to the current configuration. Unless the files
19323 and actions are specified as TAGs, all are instantiated by default.
19324
19325 Usage: $0 [OPTION]... [TAG]...
19326
19327 -h, --help print this help, then exit
19328 -V, --version print version number and configuration settings, then exit
19329 --config print configuration, then exit
19330 -q, --quiet, --silent
19331 do not print progress messages
19332 -d, --debug don't remove temporary files
19333 --recheck update $as_me by reconfiguring in the same conditions
19334 --file=FILE[:TEMPLATE]
19335 instantiate the configuration file FILE
19336 --header=FILE[:TEMPLATE]
19337 instantiate the configuration header FILE
19338
19339 Configuration files:
19340 $config_files
19341
19342 Configuration headers:
19343 $config_headers
19344
19345 Configuration commands:
19346 $config_commands
19347
19348 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19349
19350 _ACEOF
19351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19353 ac_cs_version="\\
19354 xf86-video-vesa config.status 2.4.0
19355 configured by $0, generated by GNU Autoconf 2.69,
19356 with options \\"\$ac_cs_config\\"
19357
19358 Copyright (C) 2012 Free Software Foundation, Inc.
19359 This config.status script is free software; the Free Software Foundation
19360 gives unlimited permission to copy, distribute and modify it."
19361
19362 ac_pwd='$ac_pwd'
19363 srcdir='$srcdir'
19364 INSTALL='$INSTALL'
19365 MKDIR_P='$MKDIR_P'
19366 AWK='$AWK'
19367 test -n "\$AWK" || AWK=awk
19368 _ACEOF
19369
19370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19371 # The default lists apply if the user does not specify any file.
19372 ac_need_defaults=:
19373 while test $# != 0
19374 do
19375 case $1 in
19376 --*=?*)
19377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19379 ac_shift=:
19380 ;;
19381 --*=)
19382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19383 ac_optarg=
19384 ac_shift=:
19385 ;;
19386 *)
19387 ac_option=$1
19388 ac_optarg=$2
19389 ac_shift=shift
19390 ;;
19391 esac
19392
19393 case $ac_option in
19394 # Handling of the options.
19395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19396 ac_cs_recheck=: ;;
19397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19398 $as_echo "$ac_cs_version"; exit ;;
19399 --config | --confi | --conf | --con | --co | --c )
19400 $as_echo "$ac_cs_config"; exit ;;
19401 --debug | --debu | --deb | --de | --d | -d )
19402 debug=: ;;
19403 --file | --fil | --fi | --f )
19404 $ac_shift
19405 case $ac_optarg in
19406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19407 '') as_fn_error $? "missing file argument" ;;
19408 esac
19409 as_fn_append CONFIG_FILES " '$ac_optarg'"
19410 ac_need_defaults=false;;
19411 --header | --heade | --head | --hea )
19412 $ac_shift
19413 case $ac_optarg in
19414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19415 esac
19416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19417 ac_need_defaults=false;;
19418 --he | --h)
19419 # Conflict between --help and --header
19420 as_fn_error $? "ambiguous option: \`$1'
19421 Try \`$0 --help' for more information.";;
19422 --help | --hel | -h )
19423 $as_echo "$ac_cs_usage"; exit ;;
19424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19426 ac_cs_silent=: ;;
19427
19428 # This is an error.
19429 -*) as_fn_error $? "unrecognized option: \`$1'
19430 Try \`$0 --help' for more information." ;;
19431
19432 *) as_fn_append ac_config_targets " $1"
19433 ac_need_defaults=false ;;
19434
19435 esac
19436 shift
19437 done
19438
19439 ac_configure_extra_args=
19440
19441 if $ac_cs_silent; then
19442 exec 6>/dev/null
19443 ac_configure_extra_args="$ac_configure_extra_args --silent"
19444 fi
19445
19446 _ACEOF
19447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19448 if \$ac_cs_recheck; then
19449 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19450 shift
19451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19452 CONFIG_SHELL='$SHELL'
19453 export CONFIG_SHELL
19454 exec "\$@"
19455 fi
19456
19457 _ACEOF
19458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19459 exec 5>>config.log
19460 {
19461 echo
19462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19463 ## Running $as_me. ##
19464 _ASBOX
19465 $as_echo "$ac_log"
19466 } >&5
19467
19468 _ACEOF
19469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19470 #
19471 # INIT-COMMANDS
19472 #
19473 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19474
19475
19476 # The HP-UX ksh and POSIX shell print the target directory to stdout
19477 # if CDPATH is set.
19478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19479
19480 sed_quote_subst='$sed_quote_subst'
19481 double_quote_subst='$double_quote_subst'
19482 delay_variable_subst='$delay_variable_subst'
19483 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19484 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19485 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19486 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19487 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19488 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19489 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19490 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19491 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19492 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19493 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19494 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19495 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19496 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19497 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19498 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19499 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19500 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19501 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19502 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19503 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19504 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19505 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19506 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19507 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19508 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19509 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19510 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19511 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19512 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19513 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19514 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19515 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19516 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19517 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19518 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19519 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19520 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19521 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19522 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19523 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19524 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19525 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19526 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19527 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19528 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19529 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19530 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19531 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19532 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19533 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19534 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19535 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19536 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19537 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19538 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19539 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19540 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19541 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"`'
19542 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19543 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19544 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19545 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19546 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19547 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19548 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19551 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19552 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19553 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19554 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19578 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19579 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19580 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19581 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19582 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19583 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19584 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19585 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19591 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19592 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19593 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19594 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19595 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19596 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19597 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19598 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19599 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19600 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19601 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19602 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19603 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19604 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19605 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19606 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19607 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19608 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19609 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19610 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19611 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19618
19619 LTCC='$LTCC'
19620 LTCFLAGS='$LTCFLAGS'
19621 compiler='$compiler_DEFAULT'
19622
19623 # A function that is used when there is no print builtin or printf.
19624 func_fallback_echo ()
19625 {
19626 eval 'cat <<_LTECHO_EOF
19627 \$1
19628 _LTECHO_EOF'
19629 }
19630
19631 # Quote evaled strings.
19632 for var in SHELL \
19633 ECHO \
19634 PATH_SEPARATOR \
19635 SED \
19636 GREP \
19637 EGREP \
19638 FGREP \
19639 LD \
19640 NM \
19641 LN_S \
19642 lt_SP2NL \
19643 lt_NL2SP \
19644 reload_flag \
19645 OBJDUMP \
19646 deplibs_check_method \
19647 file_magic_cmd \
19648 file_magic_glob \
19649 want_nocaseglob \
19650 DLLTOOL \
19651 sharedlib_from_linklib_cmd \
19652 AR \
19653 AR_FLAGS \
19654 archiver_list_spec \
19655 STRIP \
19656 RANLIB \
19657 CC \
19658 CFLAGS \
19659 compiler \
19660 lt_cv_sys_global_symbol_pipe \
19661 lt_cv_sys_global_symbol_to_cdecl \
19662 lt_cv_sys_global_symbol_to_import \
19663 lt_cv_sys_global_symbol_to_c_name_address \
19664 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19665 lt_cv_nm_interface \
19666 nm_file_list_spec \
19667 lt_cv_truncate_bin \
19668 lt_prog_compiler_no_builtin_flag \
19669 lt_prog_compiler_pic \
19670 lt_prog_compiler_wl \
19671 lt_prog_compiler_static \
19672 lt_cv_prog_compiler_c_o \
19673 need_locks \
19674 MANIFEST_TOOL \
19675 DSYMUTIL \
19676 NMEDIT \
19677 LIPO \
19678 OTOOL \
19679 OTOOL64 \
19680 shrext_cmds \
19681 export_dynamic_flag_spec \
19682 whole_archive_flag_spec \
19683 compiler_needs_object \
19684 with_gnu_ld \
19685 allow_undefined_flag \
19686 no_undefined_flag \
19687 hardcode_libdir_flag_spec \
19688 hardcode_libdir_separator \
19689 exclude_expsyms \
19690 include_expsyms \
19691 file_list_spec \
19692 variables_saved_for_relink \
19693 libname_spec \
19694 library_names_spec \
19695 soname_spec \
19696 install_override_mode \
19697 finish_eval \
19698 old_striplib \
19699 striplib; do
19700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19701 *[\\\\\\\`\\"\\\$]*)
19702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19703 ;;
19704 *)
19705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19706 ;;
19707 esac
19708 done
19709
19710 # Double-quote double-evaled strings.
19711 for var in reload_cmds \
19712 old_postinstall_cmds \
19713 old_postuninstall_cmds \
19714 old_archive_cmds \
19715 extract_expsyms_cmds \
19716 old_archive_from_new_cmds \
19717 old_archive_from_expsyms_cmds \
19718 archive_cmds \
19719 archive_expsym_cmds \
19720 module_cmds \
19721 module_expsym_cmds \
19722 export_symbols_cmds \
19723 prelink_cmds \
19724 postlink_cmds \
19725 postinstall_cmds \
19726 postuninstall_cmds \
19727 finish_cmds \
19728 sys_lib_search_path_spec \
19729 configure_time_dlsearch_path \
19730 configure_time_lt_sys_library_path; do
19731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19732 *[\\\\\\\`\\"\\\$]*)
19733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19734 ;;
19735 *)
19736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19737 ;;
19738 esac
19739 done
19740
19741 ac_aux_dir='$ac_aux_dir'
19742
19743 # See if we are running on zsh, and set the options that allow our
19744 # commands through without removal of \ escapes INIT.
19745 if test -n "\${ZSH_VERSION+set}"; then
19746 setopt NO_GLOB_SUBST
19747 fi
19748
19749
19750 PACKAGE='$PACKAGE'
19751 VERSION='$VERSION'
19752 RM='$RM'
19753 ofile='$ofile'
19754
19755
19756
19757
19758 _ACEOF
19759
19760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19761
19762 # Handling of arguments.
19763 for ac_config_target in $ac_config_targets
19764 do
19765 case $ac_config_target in
19766 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19767 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19768 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19772
19773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19774 esac
19775 done
19776
19777
19778 # If the user did not use the arguments to specify the items to instantiate,
19779 # then the envvar interface is used. Set only those that are not.
19780 # We use the long form for the default assignment because of an extremely
19781 # bizarre bug on SunOS 4.1.3.
19782 if $ac_need_defaults; then
19783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19786 fi
19787
19788 # Have a temporary directory for convenience. Make it in the build tree
19789 # simply because there is no reason against having it here, and in addition,
19790 # creating and moving files from /tmp can sometimes cause problems.
19791 # Hook for its removal unless debugging.
19792 # Note that there is a small window in which the directory will not be cleaned:
19793 # after its creation but before its name has been assigned to `$tmp'.
19794 $debug ||
19795 {
19796 tmp= ac_tmp=
19797 trap 'exit_status=$?
19798 : "${ac_tmp:=$tmp}"
19799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19800 ' 0
19801 trap 'as_fn_exit 1' 1 2 13 15
19802 }
19803 # Create a (secure) tmp directory for tmp files.
19804
19805 {
19806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19807 test -d "$tmp"
19808 } ||
19809 {
19810 tmp=./conf$$-$RANDOM
19811 (umask 077 && mkdir "$tmp")
19812 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19813 ac_tmp=$tmp
19814
19815 # Set up the scripts for CONFIG_FILES section.
19816 # No need to generate them if there are no CONFIG_FILES.
19817 # This happens for instance with `./config.status config.h'.
19818 if test -n "$CONFIG_FILES"; then
19819
19820
19821 ac_cr=`echo X | tr X '\015'`
19822 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19823 # But we know of no other shell where ac_cr would be empty at this
19824 # point, so we can use a bashism as a fallback.
19825 if test "x$ac_cr" = x; then
19826 eval ac_cr=\$\'\\r\'
19827 fi
19828 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19830 ac_cs_awk_cr='\\r'
19831 else
19832 ac_cs_awk_cr=$ac_cr
19833 fi
19834
19835 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19836 _ACEOF
19837
19838
19839 {
19840 echo "cat >conf$$subs.awk <<_ACEOF" &&
19841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19842 echo "_ACEOF"
19843 } >conf$$subs.sh ||
19844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19846 ac_delim='%!_!# '
19847 for ac_last_try in false false false false false :; do
19848 . ./conf$$subs.sh ||
19849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19850
19851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19852 if test $ac_delim_n = $ac_delim_num; then
19853 break
19854 elif $ac_last_try; then
19855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19856 else
19857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19858 fi
19859 done
19860 rm -f conf$$subs.sh
19861
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19864 _ACEOF
19865 sed -n '
19866 h
19867 s/^/S["/; s/!.*/"]=/
19868 p
19869 g
19870 s/^[^!]*!//
19871 :repl
19872 t repl
19873 s/'"$ac_delim"'$//
19874 t delim
19875 :nl
19876 h
19877 s/\(.\{148\}\)..*/\1/
19878 t more1
19879 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19880 p
19881 n
19882 b repl
19883 :more1
19884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19885 p
19886 g
19887 s/.\{148\}//
19888 t nl
19889 :delim
19890 h
19891 s/\(.\{148\}\)..*/\1/
19892 t more2
19893 s/["\\]/\\&/g; s/^/"/; s/$/"/
19894 p
19895 b
19896 :more2
19897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19898 p
19899 g
19900 s/.\{148\}//
19901 t delim
19902 ' <conf$$subs.awk | sed '
19903 /^[^""]/{
19904 N
19905 s/\n//
19906 }
19907 ' >>$CONFIG_STATUS || ac_write_fail=1
19908 rm -f conf$$subs.awk
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 _ACAWK
19911 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19912 for (key in S) S_is_set[key] = 1
19913 FS = ""
19914
19915 }
19916 {
19917 line = $ 0
19918 nfields = split(line, field, "@")
19919 substed = 0
19920 len = length(field[1])
19921 for (i = 2; i < nfields; i++) {
19922 key = field[i]
19923 keylen = length(key)
19924 if (S_is_set[key]) {
19925 value = S[key]
19926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19927 len += length(value) + length(field[++i])
19928 substed = 1
19929 } else
19930 len += 1 + keylen
19931 }
19932
19933 print line
19934 }
19935
19936 _ACAWK
19937 _ACEOF
19938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19941 else
19942 cat
19943 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19945 _ACEOF
19946
19947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19949 # trailing colons and then remove the whole line if VPATH becomes empty
19950 # (actually we leave an empty line to preserve line numbers).
19951 if test "x$srcdir" = x.; then
19952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19953 h
19954 s///
19955 s/^/:/
19956 s/[ ]*$/:/
19957 s/:\$(srcdir):/:/g
19958 s/:\${srcdir}:/:/g
19959 s/:@srcdir@:/:/g
19960 s/^:*//
19961 s/:*$//
19962 x
19963 s/\(=[ ]*\).*/\1/
19964 G
19965 s/\n//
19966 s/^[^=]*=[ ]*$//
19967 }'
19968 fi
19969
19970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19971 fi # test -n "$CONFIG_FILES"
19972
19973 # Set up the scripts for CONFIG_HEADERS section.
19974 # No need to generate them if there are no CONFIG_HEADERS.
19975 # This happens for instance with `./config.status Makefile'.
19976 if test -n "$CONFIG_HEADERS"; then
19977 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19978 BEGIN {
19979 _ACEOF
19980
19981 # Transform confdefs.h into an awk script `defines.awk', embedded as
19982 # here-document in config.status, that substitutes the proper values into
19983 # config.h.in to produce config.h.
19984
19985 # Create a delimiter string that does not exist in confdefs.h, to ease
19986 # handling of long lines.
19987 ac_delim='%!_!# '
19988 for ac_last_try in false false :; do
19989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19990 if test -z "$ac_tt"; then
19991 break
19992 elif $ac_last_try; then
19993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19994 else
19995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19996 fi
19997 done
19998
19999 # For the awk script, D is an array of macro values keyed by name,
20000 # likewise P contains macro parameters if any. Preserve backslash
20001 # newline sequences.
20002
20003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20004 sed -n '
20005 s/.\{148\}/&'"$ac_delim"'/g
20006 t rset
20007 :rset
20008 s/^[ ]*#[ ]*define[ ][ ]*/ /
20009 t def
20010 d
20011 :def
20012 s/\\$//
20013 t bsnl
20014 s/["\\]/\\&/g
20015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20016 D["\1"]=" \3"/p
20017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20018 d
20019 :bsnl
20020 s/["\\]/\\&/g
20021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20022 D["\1"]=" \3\\\\\\n"\\/p
20023 t cont
20024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20025 t cont
20026 d
20027 :cont
20028 n
20029 s/.\{148\}/&'"$ac_delim"'/g
20030 t clear
20031 :clear
20032 s/\\$//
20033 t bsnlc
20034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20035 d
20036 :bsnlc
20037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20038 b cont
20039 ' <confdefs.h | sed '
20040 s/'"$ac_delim"'/"\\\
20041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20042
20043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20044 for (key in D) D_is_set[key] = 1
20045 FS = ""
20046 }
20047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20048 line = \$ 0
20049 split(line, arg, " ")
20050 if (arg[1] == "#") {
20051 defundef = arg[2]
20052 mac1 = arg[3]
20053 } else {
20054 defundef = substr(arg[1], 2)
20055 mac1 = arg[2]
20056 }
20057 split(mac1, mac2, "(") #)
20058 macro = mac2[1]
20059 prefix = substr(line, 1, index(line, defundef) - 1)
20060 if (D_is_set[macro]) {
20061 # Preserve the white space surrounding the "#".
20062 print prefix "define", macro P[macro] D[macro]
20063 next
20064 } else {
20065 # Replace #undef with comments. This is necessary, for example,
20066 # in the case of _POSIX_SOURCE, which is predefined and required
20067 # on some systems where configure will not decide to define it.
20068 if (defundef == "undef") {
20069 print "/*", prefix defundef, macro, "*/"
20070 next
20071 }
20072 }
20073 }
20074 { print }
20075 _ACAWK
20076 _ACEOF
20077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20079 fi # test -n "$CONFIG_HEADERS"
20080
20081
20082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20083 shift
20084 for ac_tag
20085 do
20086 case $ac_tag in
20087 :[FHLC]) ac_mode=$ac_tag; continue;;
20088 esac
20089 case $ac_mode$ac_tag in
20090 :[FHL]*:*);;
20091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20092 :[FH]-) ac_tag=-:-;;
20093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20094 esac
20095 ac_save_IFS=$IFS
20096 IFS=:
20097 set x $ac_tag
20098 IFS=$ac_save_IFS
20099 shift
20100 ac_file=$1
20101 shift
20102
20103 case $ac_mode in
20104 :L) ac_source=$1;;
20105 :[FH])
20106 ac_file_inputs=
20107 for ac_f
20108 do
20109 case $ac_f in
20110 -) ac_f="$ac_tmp/stdin";;
20111 *) # Look for the file first in the build tree, then in the source tree
20112 # (if the path is not absolute). The absolute path cannot be DOS-style,
20113 # because $ac_f cannot contain `:'.
20114 test -f "$ac_f" ||
20115 case $ac_f in
20116 [\\/$]*) false;;
20117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20118 esac ||
20119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20120 esac
20121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20122 as_fn_append ac_file_inputs " '$ac_f'"
20123 done
20124
20125 # Let's still pretend it is `configure' which instantiates (i.e., don't
20126 # use $as_me), people would be surprised to read:
20127 # /* config.h. Generated by config.status. */
20128 configure_input='Generated from '`
20129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20130 `' by configure.'
20131 if test x"$ac_file" != x-; then
20132 configure_input="$ac_file. $configure_input"
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20134 $as_echo "$as_me: creating $ac_file" >&6;}
20135 fi
20136 # Neutralize special characters interpreted by sed in replacement strings.
20137 case $configure_input in #(
20138 *\&* | *\|* | *\\* )
20139 ac_sed_conf_input=`$as_echo "$configure_input" |
20140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20141 *) ac_sed_conf_input=$configure_input;;
20142 esac
20143
20144 case $ac_tag in
20145 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20147 esac
20148 ;;
20149 esac
20150
20151 ac_dir=`$as_dirname -- "$ac_file" ||
20152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20153 X"$ac_file" : 'X\(//\)[^/]' \| \
20154 X"$ac_file" : 'X\(//\)$' \| \
20155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20156 $as_echo X"$ac_file" |
20157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20158 s//\1/
20159 q
20160 }
20161 /^X\(\/\/\)[^/].*/{
20162 s//\1/
20163 q
20164 }
20165 /^X\(\/\/\)$/{
20166 s//\1/
20167 q
20168 }
20169 /^X\(\/\).*/{
20170 s//\1/
20171 q
20172 }
20173 s/.*/./; q'`
20174 as_dir="$ac_dir"; as_fn_mkdir_p
20175 ac_builddir=.
20176
20177 case "$ac_dir" in
20178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20179 *)
20180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20181 # A ".." for each directory in $ac_dir_suffix.
20182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20183 case $ac_top_builddir_sub in
20184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20186 esac ;;
20187 esac
20188 ac_abs_top_builddir=$ac_pwd
20189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20190 # for backward compatibility:
20191 ac_top_builddir=$ac_top_build_prefix
20192
20193 case $srcdir in
20194 .) # We are building in place.
20195 ac_srcdir=.
20196 ac_top_srcdir=$ac_top_builddir_sub
20197 ac_abs_top_srcdir=$ac_pwd ;;
20198 [\\/]* | ?:[\\/]* ) # Absolute name.
20199 ac_srcdir=$srcdir$ac_dir_suffix;
20200 ac_top_srcdir=$srcdir
20201 ac_abs_top_srcdir=$srcdir ;;
20202 *) # Relative name.
20203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20204 ac_top_srcdir=$ac_top_build_prefix$srcdir
20205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20206 esac
20207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20208
20209
20210 case $ac_mode in
20211 :F)
20212 #
20213 # CONFIG_FILE
20214 #
20215
20216 case $INSTALL in
20217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20219 esac
20220 ac_MKDIR_P=$MKDIR_P
20221 case $MKDIR_P in
20222 [\\/$]* | ?:[\\/]* ) ;;
20223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20224 esac
20225 _ACEOF
20226
20227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20228 # If the template does not know about datarootdir, expand it.
20229 # FIXME: This hack should be removed a few years after 2.60.
20230 ac_datarootdir_hack=; ac_datarootdir_seen=
20231 ac_sed_dataroot='
20232 /datarootdir/ {
20233 p
20234 q
20235 }
20236 /@datadir@/p
20237 /@docdir@/p
20238 /@infodir@/p
20239 /@localedir@/p
20240 /@mandir@/p'
20241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20242 *datarootdir*) ac_datarootdir_seen=yes;;
20243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20246 _ACEOF
20247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20248 ac_datarootdir_hack='
20249 s&@datadir@&$datadir&g
20250 s&@docdir@&$docdir&g
20251 s&@infodir@&$infodir&g
20252 s&@localedir@&$localedir&g
20253 s&@mandir@&$mandir&g
20254 s&\\\${datarootdir}&$datarootdir&g' ;;
20255 esac
20256 _ACEOF
20257
20258 # Neutralize VPATH when `$srcdir' = `.'.
20259 # Shell code in configure.ac might set extrasub.
20260 # FIXME: do we really want to maintain this feature?
20261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20262 ac_sed_extra="$ac_vpsub
20263 $extrasub
20264 _ACEOF
20265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20266 :t
20267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20268 s|@configure_input@|$ac_sed_conf_input|;t t
20269 s&@top_builddir@&$ac_top_builddir_sub&;t t
20270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20271 s&@srcdir@&$ac_srcdir&;t t
20272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20273 s&@top_srcdir@&$ac_top_srcdir&;t t
20274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20275 s&@builddir@&$ac_builddir&;t t
20276 s&@abs_builddir@&$ac_abs_builddir&;t t
20277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20278 s&@INSTALL@&$ac_INSTALL&;t t
20279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20280 $ac_datarootdir_hack
20281 "
20282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20284
20285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20290 which seems to be undefined. Please make sure it is defined" >&5
20291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20292 which seems to be undefined. Please make sure it is defined" >&2;}
20293
20294 rm -f "$ac_tmp/stdin"
20295 case $ac_file in
20296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20298 esac \
20299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20300 ;;
20301 :H)
20302 #
20303 # CONFIG_HEADER
20304 #
20305 if test x"$ac_file" != x-; then
20306 {
20307 $as_echo "/* $configure_input */" \
20308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20309 } >"$ac_tmp/config.h" \
20310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20314 else
20315 rm -f "$ac_file"
20316 mv "$ac_tmp/config.h" "$ac_file" \
20317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20318 fi
20319 else
20320 $as_echo "/* $configure_input */" \
20321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20322 || as_fn_error $? "could not create -" "$LINENO" 5
20323 fi
20324 # Compute "$ac_file"'s index in $config_headers.
20325 _am_arg="$ac_file"
20326 _am_stamp_count=1
20327 for _am_header in $config_headers :; do
20328 case $_am_header in
20329 $_am_arg | $_am_arg:* )
20330 break ;;
20331 * )
20332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20333 esac
20334 done
20335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20337 X"$_am_arg" : 'X\(//\)[^/]' \| \
20338 X"$_am_arg" : 'X\(//\)$' \| \
20339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20340 $as_echo X"$_am_arg" |
20341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20342 s//\1/
20343 q
20344 }
20345 /^X\(\/\/\)[^/].*/{
20346 s//\1/
20347 q
20348 }
20349 /^X\(\/\/\)$/{
20350 s//\1/
20351 q
20352 }
20353 /^X\(\/\).*/{
20354 s//\1/
20355 q
20356 }
20357 s/.*/./; q'`/stamp-h$_am_stamp_count
20358 ;;
20359
20360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20361 $as_echo "$as_me: executing $ac_file commands" >&6;}
20362 ;;
20363 esac
20364
20365
20366 case $ac_file$ac_mode in
20367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20368 # Older Autoconf quotes --file arguments for eval, but not when files
20369 # are listed without --file. Let's play safe and only enable the eval
20370 # if we detect the quoting.
20371 case $CONFIG_FILES in
20372 *\'*) eval set x "$CONFIG_FILES" ;;
20373 *) set x $CONFIG_FILES ;;
20374 esac
20375 shift
20376 for mf
20377 do
20378 # Strip MF so we end up with the name of the file.
20379 mf=`echo "$mf" | sed -e 's/:.*$//'`
20380 # Check whether this is an Automake generated Makefile or not.
20381 # We used to match only the files named 'Makefile.in', but
20382 # some people rename them; so instead we look at the file content.
20383 # Grep'ing the first line is not enough: some people post-process
20384 # each Makefile.in and add a new line on top of each file to say so.
20385 # Grep'ing the whole file is not good either: AIX grep has a line
20386 # limit of 2048, but all sed's we know have understand at least 4000.
20387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20388 dirpart=`$as_dirname -- "$mf" ||
20389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20390 X"$mf" : 'X\(//\)[^/]' \| \
20391 X"$mf" : 'X\(//\)$' \| \
20392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20393 $as_echo X"$mf" |
20394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20395 s//\1/
20396 q
20397 }
20398 /^X\(\/\/\)[^/].*/{
20399 s//\1/
20400 q
20401 }
20402 /^X\(\/\/\)$/{
20403 s//\1/
20404 q
20405 }
20406 /^X\(\/\).*/{
20407 s//\1/
20408 q
20409 }
20410 s/.*/./; q'`
20411 else
20412 continue
20413 fi
20414 # Extract the definition of DEPDIR, am__include, and am__quote
20415 # from the Makefile without running 'make'.
20416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20417 test -z "$DEPDIR" && continue
20418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20419 test -z "$am__include" && continue
20420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20421 # Find all dependency output files, they are included files with
20422 # $(DEPDIR) in their names. We invoke sed twice because it is the
20423 # simplest approach to changing $(DEPDIR) to its actual value in the
20424 # expansion.
20425 for file in `sed -n "
20426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20428 # Make sure the directory exists.
20429 test -f "$dirpart/$file" && continue
20430 fdir=`$as_dirname -- "$file" ||
20431 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20432 X"$file" : 'X\(//\)[^/]' \| \
20433 X"$file" : 'X\(//\)$' \| \
20434 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20435 $as_echo X"$file" |
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20437 s//\1/
20438 q
20439 }
20440 /^X\(\/\/\)[^/].*/{
20441 s//\1/
20442 q
20443 }
20444 /^X\(\/\/\)$/{
20445 s//\1/
20446 q
20447 }
20448 /^X\(\/\).*/{
20449 s//\1/
20450 q
20451 }
20452 s/.*/./; q'`
20453 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20454 # echo "creating $dirpart/$file"
20455 echo '# dummy' > "$dirpart/$file"
20456 done
20457 done
20458 }
20459 ;;
20460 "libtool":C)
20461
20462 # See if we are running on zsh, and set the options that allow our
20463 # commands through without removal of \ escapes.
20464 if test -n "${ZSH_VERSION+set}"; then
20465 setopt NO_GLOB_SUBST
20466 fi
20467
20468 cfgfile=${ofile}T
20469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20470 $RM "$cfgfile"
20471
20472 cat <<_LT_EOF >> "$cfgfile"
20473 #! $SHELL
20474 # Generated automatically by $as_me ($PACKAGE) $VERSION
20475 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20477
20478 # Provide generalized library-building support services.
20479 # Written by Gordon Matzigkeit, 1996
20480
20481 # Copyright (C) 2014 Free Software Foundation, Inc.
20482 # This is free software; see the source for copying conditions. There is NO
20483 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20484
20485 # GNU Libtool is free software; you can redistribute it and/or modify
20486 # it under the terms of the GNU General Public License as published by
20487 # the Free Software Foundation; either version 2 of of the License, or
20488 # (at your option) any later version.
20489 #
20490 # As a special exception to the GNU General Public License, if you
20491 # distribute this file as part of a program or library that is built
20492 # using GNU Libtool, you may include this file under the same
20493 # distribution terms that you use for the rest of that program.
20494 #
20495 # GNU Libtool is distributed in the hope that it will be useful, but
20496 # WITHOUT ANY WARRANTY; without even the implied warranty of
20497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20498 # GNU General Public License for more details.
20499 #
20500 # You should have received a copy of the GNU General Public License
20501 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20502
20503
20504 # The names of the tagged configurations supported by this script.
20505 available_tags=''
20506
20507 # Configured defaults for sys_lib_dlsearch_path munging.
20508 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20509
20510 # ### BEGIN LIBTOOL CONFIG
20511
20512 # Whether or not to build static libraries.
20513 build_old_libs=$enable_static
20514
20515 # Which release of libtool.m4 was used?
20516 macro_version=$macro_version
20517 macro_revision=$macro_revision
20518
20519 # Whether or not to build shared libraries.
20520 build_libtool_libs=$enable_shared
20521
20522 # What type of objects to build.
20523 pic_mode=$pic_mode
20524
20525 # Whether or not to optimize for fast installation.
20526 fast_install=$enable_fast_install
20527
20528 # Shared archive member basename,for filename based shared library versioning on AIX.
20529 shared_archive_member_spec=$shared_archive_member_spec
20530
20531 # Shell to use when invoking shell scripts.
20532 SHELL=$lt_SHELL
20533
20534 # An echo program that protects backslashes.
20535 ECHO=$lt_ECHO
20536
20537 # The PATH separator for the build system.
20538 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20539
20540 # The host system.
20541 host_alias=$host_alias
20542 host=$host
20543 host_os=$host_os
20544
20545 # The build system.
20546 build_alias=$build_alias
20547 build=$build
20548 build_os=$build_os
20549
20550 # A sed program that does not truncate output.
20551 SED=$lt_SED
20552
20553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20554 Xsed="\$SED -e 1s/^X//"
20555
20556 # A grep program that handles long lines.
20557 GREP=$lt_GREP
20558
20559 # An ERE matcher.
20560 EGREP=$lt_EGREP
20561
20562 # A literal string matcher.
20563 FGREP=$lt_FGREP
20564
20565 # A BSD- or MS-compatible name lister.
20566 NM=$lt_NM
20567
20568 # Whether we need soft or hard links.
20569 LN_S=$lt_LN_S
20570
20571 # What is the maximum length of a command?
20572 max_cmd_len=$max_cmd_len
20573
20574 # Object file suffix (normally "o").
20575 objext=$ac_objext
20576
20577 # Executable file suffix (normally "").
20578 exeext=$exeext
20579
20580 # whether the shell understands "unset".
20581 lt_unset=$lt_unset
20582
20583 # turn spaces into newlines.
20584 SP2NL=$lt_lt_SP2NL
20585
20586 # turn newlines into spaces.
20587 NL2SP=$lt_lt_NL2SP
20588
20589 # convert \$build file names to \$host format.
20590 to_host_file_cmd=$lt_cv_to_host_file_cmd
20591
20592 # convert \$build files to toolchain format.
20593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20594
20595 # An object symbol dumper.
20596 OBJDUMP=$lt_OBJDUMP
20597
20598 # Method to check whether dependent libraries are shared objects.
20599 deplibs_check_method=$lt_deplibs_check_method
20600
20601 # Command to use when deplibs_check_method = "file_magic".
20602 file_magic_cmd=$lt_file_magic_cmd
20603
20604 # How to find potential files when deplibs_check_method = "file_magic".
20605 file_magic_glob=$lt_file_magic_glob
20606
20607 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20608 want_nocaseglob=$lt_want_nocaseglob
20609
20610 # DLL creation program.
20611 DLLTOOL=$lt_DLLTOOL
20612
20613 # Command to associate shared and link libraries.
20614 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20615
20616 # The archiver.
20617 AR=$lt_AR
20618
20619 # Flags to create an archive.
20620 AR_FLAGS=$lt_AR_FLAGS
20621
20622 # How to feed a file listing to the archiver.
20623 archiver_list_spec=$lt_archiver_list_spec
20624
20625 # A symbol stripping program.
20626 STRIP=$lt_STRIP
20627
20628 # Commands used to install an old-style archive.
20629 RANLIB=$lt_RANLIB
20630 old_postinstall_cmds=$lt_old_postinstall_cmds
20631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20632
20633 # Whether to use a lock for old archive extraction.
20634 lock_old_archive_extraction=$lock_old_archive_extraction
20635
20636 # A C compiler.
20637 LTCC=$lt_CC
20638
20639 # LTCC compiler flags.
20640 LTCFLAGS=$lt_CFLAGS
20641
20642 # Take the output of nm and produce a listing of raw symbols and C names.
20643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20644
20645 # Transform the output of nm in a proper C declaration.
20646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20647
20648 # Transform the output of nm into a list of symbols to manually relocate.
20649 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20650
20651 # Transform the output of nm in a C name address pair.
20652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20653
20654 # Transform the output of nm in a C name address pair when lib prefix is needed.
20655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20656
20657 # The name lister interface.
20658 nm_interface=$lt_lt_cv_nm_interface
20659
20660 # Specify filename containing input files for \$NM.
20661 nm_file_list_spec=$lt_nm_file_list_spec
20662
20663 # The root where to search for dependent libraries,and where our libraries should be installed.
20664 lt_sysroot=$lt_sysroot
20665
20666 # Command to truncate a binary pipe.
20667 lt_truncate_bin=$lt_lt_cv_truncate_bin
20668
20669 # The name of the directory that contains temporary libtool files.
20670 objdir=$objdir
20671
20672 # Used to examine libraries when file_magic_cmd begins with "file".
20673 MAGIC_CMD=$MAGIC_CMD
20674
20675 # Must we lock files when doing compilation?
20676 need_locks=$lt_need_locks
20677
20678 # Manifest tool.
20679 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20680
20681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20682 DSYMUTIL=$lt_DSYMUTIL
20683
20684 # Tool to change global to local symbols on Mac OS X.
20685 NMEDIT=$lt_NMEDIT
20686
20687 # Tool to manipulate fat objects and archives on Mac OS X.
20688 LIPO=$lt_LIPO
20689
20690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20691 OTOOL=$lt_OTOOL
20692
20693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20694 OTOOL64=$lt_OTOOL64
20695
20696 # Old archive suffix (normally "a").
20697 libext=$libext
20698
20699 # Shared library suffix (normally ".so").
20700 shrext_cmds=$lt_shrext_cmds
20701
20702 # The commands to extract the exported symbol list from a shared archive.
20703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20704
20705 # Variables whose values should be saved in libtool wrapper scripts and
20706 # restored at link time.
20707 variables_saved_for_relink=$lt_variables_saved_for_relink
20708
20709 # Do we need the "lib" prefix for modules?
20710 need_lib_prefix=$need_lib_prefix
20711
20712 # Do we need a version for libraries?
20713 need_version=$need_version
20714
20715 # Library versioning type.
20716 version_type=$version_type
20717
20718 # Shared library runtime path variable.
20719 runpath_var=$runpath_var
20720
20721 # Shared library path variable.
20722 shlibpath_var=$shlibpath_var
20723
20724 # Is shlibpath searched before the hard-coded library search path?
20725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20726
20727 # Format of library name prefix.
20728 libname_spec=$lt_libname_spec
20729
20730 # List of archive names. First name is the real one, the rest are links.
20731 # The last name is the one that the linker finds with -lNAME
20732 library_names_spec=$lt_library_names_spec
20733
20734 # The coded name of the library, if different from the real name.
20735 soname_spec=$lt_soname_spec
20736
20737 # Permission mode override for installation of shared libraries.
20738 install_override_mode=$lt_install_override_mode
20739
20740 # Command to use after installation of a shared archive.
20741 postinstall_cmds=$lt_postinstall_cmds
20742
20743 # Command to use after uninstallation of a shared archive.
20744 postuninstall_cmds=$lt_postuninstall_cmds
20745
20746 # Commands used to finish a libtool library installation in a directory.
20747 finish_cmds=$lt_finish_cmds
20748
20749 # As "finish_cmds", except a single script fragment to be evaled but
20750 # not shown.
20751 finish_eval=$lt_finish_eval
20752
20753 # Whether we should hardcode library paths into libraries.
20754 hardcode_into_libs=$hardcode_into_libs
20755
20756 # Compile-time system search path for libraries.
20757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20758
20759 # Detected run-time system search path for libraries.
20760 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20761
20762 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20763 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20764
20765 # Whether dlopen is supported.
20766 dlopen_support=$enable_dlopen
20767
20768 # Whether dlopen of programs is supported.
20769 dlopen_self=$enable_dlopen_self
20770
20771 # Whether dlopen of statically linked programs is supported.
20772 dlopen_self_static=$enable_dlopen_self_static
20773
20774 # Commands to strip libraries.
20775 old_striplib=$lt_old_striplib
20776 striplib=$lt_striplib
20777
20778
20779 # The linker used to build libraries.
20780 LD=$lt_LD
20781
20782 # How to create reloadable object files.
20783 reload_flag=$lt_reload_flag
20784 reload_cmds=$lt_reload_cmds
20785
20786 # Commands used to build an old-style archive.
20787 old_archive_cmds=$lt_old_archive_cmds
20788
20789 # A language specific compiler.
20790 CC=$lt_compiler
20791
20792 # Is the compiler the GNU compiler?
20793 with_gcc=$GCC
20794
20795 # Compiler flag to turn off builtin functions.
20796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20797
20798 # Additional compiler flags for building library objects.
20799 pic_flag=$lt_lt_prog_compiler_pic
20800
20801 # How to pass a linker flag through the compiler.
20802 wl=$lt_lt_prog_compiler_wl
20803
20804 # Compiler flag to prevent dynamic linking.
20805 link_static_flag=$lt_lt_prog_compiler_static
20806
20807 # Does compiler simultaneously support -c and -o options?
20808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20809
20810 # Whether or not to add -lc for building shared libraries.
20811 build_libtool_need_lc=$archive_cmds_need_lc
20812
20813 # Whether or not to disallow shared libs when runtime libs are static.
20814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20815
20816 # Compiler flag to allow reflexive dlopens.
20817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20818
20819 # Compiler flag to generate shared objects directly from archives.
20820 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20821
20822 # Whether the compiler copes with passing no objects directly.
20823 compiler_needs_object=$lt_compiler_needs_object
20824
20825 # Create an old-style archive from a shared archive.
20826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20827
20828 # Create a temporary old-style archive to link instead of a shared archive.
20829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20830
20831 # Commands used to build a shared archive.
20832 archive_cmds=$lt_archive_cmds
20833 archive_expsym_cmds=$lt_archive_expsym_cmds
20834
20835 # Commands used to build a loadable module if different from building
20836 # a shared archive.
20837 module_cmds=$lt_module_cmds
20838 module_expsym_cmds=$lt_module_expsym_cmds
20839
20840 # Whether we are building with GNU ld or not.
20841 with_gnu_ld=$lt_with_gnu_ld
20842
20843 # Flag that allows shared libraries with undefined symbols to be built.
20844 allow_undefined_flag=$lt_allow_undefined_flag
20845
20846 # Flag that enforces no undefined symbols.
20847 no_undefined_flag=$lt_no_undefined_flag
20848
20849 # Flag to hardcode \$libdir into a binary during linking.
20850 # This must work even if \$libdir does not exist
20851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20852
20853 # Whether we need a single "-rpath" flag with a separated argument.
20854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20855
20856 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20857 # DIR into the resulting binary.
20858 hardcode_direct=$hardcode_direct
20859
20860 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20861 # DIR into the resulting binary and the resulting library dependency is
20862 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20863 # library is relocated.
20864 hardcode_direct_absolute=$hardcode_direct_absolute
20865
20866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20867 # into the resulting binary.
20868 hardcode_minus_L=$hardcode_minus_L
20869
20870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20871 # into the resulting binary.
20872 hardcode_shlibpath_var=$hardcode_shlibpath_var
20873
20874 # Set to "yes" if building a shared library automatically hardcodes DIR
20875 # into the library and all subsequent libraries and executables linked
20876 # against it.
20877 hardcode_automatic=$hardcode_automatic
20878
20879 # Set to yes if linker adds runtime paths of dependent libraries
20880 # to runtime path list.
20881 inherit_rpath=$inherit_rpath
20882
20883 # Whether libtool must link a program against all its dependency libraries.
20884 link_all_deplibs=$link_all_deplibs
20885
20886 # Set to "yes" if exported symbols are required.
20887 always_export_symbols=$always_export_symbols
20888
20889 # The commands to list exported symbols.
20890 export_symbols_cmds=$lt_export_symbols_cmds
20891
20892 # Symbols that should not be listed in the preloaded symbols.
20893 exclude_expsyms=$lt_exclude_expsyms
20894
20895 # Symbols that must always be exported.
20896 include_expsyms=$lt_include_expsyms
20897
20898 # Commands necessary for linking programs (against libraries) with templates.
20899 prelink_cmds=$lt_prelink_cmds
20900
20901 # Commands necessary for finishing linking programs.
20902 postlink_cmds=$lt_postlink_cmds
20903
20904 # Specify filename containing input files.
20905 file_list_spec=$lt_file_list_spec
20906
20907 # How to hardcode a shared library path into an executable.
20908 hardcode_action=$hardcode_action
20909
20910 # ### END LIBTOOL CONFIG
20911
20912 _LT_EOF
20913
20914 cat <<'_LT_EOF' >> "$cfgfile"
20915
20916 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20917
20918 # func_munge_path_list VARIABLE PATH
20919 # -----------------------------------
20920 # VARIABLE is name of variable containing _space_ separated list of
20921 # directories to be munged by the contents of PATH, which is string
20922 # having a format:
20923 # "DIR[:DIR]:"
20924 # string "DIR[ DIR]" will be prepended to VARIABLE
20925 # ":DIR[:DIR]"
20926 # string "DIR[ DIR]" will be appended to VARIABLE
20927 # "DIRP[:DIRP]::[DIRA:]DIRA"
20928 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20929 # "DIRA[ DIRA]" will be appended to VARIABLE
20930 # "DIR[:DIR]"
20931 # VARIABLE will be replaced by "DIR[ DIR]"
20932 func_munge_path_list ()
20933 {
20934 case x$2 in
20935 x)
20936 ;;
20937 *:)
20938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20939 ;;
20940 x:*)
20941 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20942 ;;
20943 *::*)
20944 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20945 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20946 ;;
20947 *)
20948 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20949 ;;
20950 esac
20951 }
20952
20953
20954 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20955 func_cc_basename ()
20956 {
20957 for cc_temp in $*""; do
20958 case $cc_temp in
20959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20961 \-*) ;;
20962 *) break;;
20963 esac
20964 done
20965 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20966 }
20967
20968
20969 # ### END FUNCTIONS SHARED WITH CONFIGURE
20970
20971 _LT_EOF
20972
20973 case $host_os in
20974 aix3*)
20975 cat <<\_LT_EOF >> "$cfgfile"
20976 # AIX sometimes has problems with the GCC collect2 program. For some
20977 # reason, if we set the COLLECT_NAMES environment variable, the problems
20978 # vanish in a puff of smoke.
20979 if test set != "${COLLECT_NAMES+set}"; then
20980 COLLECT_NAMES=
20981 export COLLECT_NAMES
20982 fi
20983 _LT_EOF
20984 ;;
20985 esac
20986
20987
20988 ltmain=$ac_aux_dir/ltmain.sh
20989
20990
20991 # We use sed instead of cat because bash on DJGPP gets confused if
20992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20993 # text mode, it properly converts lines to CR/LF. This bash problem
20994 # is reportedly fixed, but why not run on old versions too?
20995 sed '$q' "$ltmain" >> "$cfgfile" \
20996 || (rm -f "$cfgfile"; exit 1)
20997
20998 mv -f "$cfgfile" "$ofile" ||
20999 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21000 chmod +x "$ofile"
21001
21002 ;;
21003
21004 esac
21005 done # for ac_tag
21006
21007
21008 as_fn_exit 0
21009 _ACEOF
21010 ac_clean_files=$ac_clean_files_save
21011
21012 test $ac_write_fail = 0 ||
21013 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21014
21015
21016 # configure is writing to config.log, and then calls config.status.
21017 # config.status does its own redirection, appending to config.log.
21018 # Unfortunately, on DOS this fails, as config.log is still kept open
21019 # by configure, so config.status won't be able to write to it; its
21020 # output is simply discarded. So we exec the FD to /dev/null,
21021 # effectively closing config.log, so it can be properly (re)opened and
21022 # appended to by config.status. When coming back to configure, we
21023 # need to make the FD available again.
21024 if test "$no_create" != yes; then
21025 ac_cs_success=:
21026 ac_config_status_args=
21027 test "$silent" = yes &&
21028 ac_config_status_args="$ac_config_status_args --quiet"
21029 exec 5>/dev/null
21030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21031 exec 5>>config.log
21032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21033 # would make configure fail if this is the last instruction.
21034 $ac_cs_success || as_fn_exit 1
21035 fi
21036 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21038 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21039 fi
21040
21041