configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXrender 0.9.11.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libXrender'
624 PACKAGE_TARNAME='libXrender'
625 PACKAGE_VERSION='0.9.11'
626 PACKAGE_STRING='libXrender 0.9.11'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 RENDER_LIBS
668 RENDER_CFLAGS
669 RENDER_VERSION
670 XTMALLOC_ZERO_CFLAGS
671 XMALLOC_ZERO_CFLAGS
672 MALLOC_ZERO_CFLAGS
673 MAN_SUBSTS
674 XORG_MAN_PAGE
675 ADMIN_MAN_DIR
676 DRIVER_MAN_DIR
677 MISC_MAN_DIR
678 FILE_MAN_DIR
679 LIB_MAN_DIR
680 APP_MAN_DIR
681 ADMIN_MAN_SUFFIX
682 DRIVER_MAN_SUFFIX
683 MISC_MAN_SUFFIX
684 FILE_MAN_SUFFIX
685 LIB_MAN_SUFFIX
686 APP_MAN_SUFFIX
687 INSTALL_CMD
688 PKG_CONFIG_LIBDIR
689 PKG_CONFIG_PATH
690 PKG_CONFIG
691 CHANGELOG_CMD
692 STRICT_CFLAGS
693 CWARNFLAGS
694 BASE_CFLAGS
695 LT_SYS_LIBRARY_PATH
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 ac_ct_AR
704 AR
705 DLLTOOL
706 OBJDUMP
707 FILECMD
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 LIBTOOL
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 CSCOPE
747 ETAGS
748 CTAGS
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
754 AWK
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 PACKAGE_BRIEF
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_shared
818 enable_static
819 with_pic
820 enable_fast_install
821 with_aix_soname
822 enable_dependency_tracking
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_selective_werror
827 enable_strict_compilation
828 enable_malloc0returnsnull
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 LT_SYS_LIBRARY_PATH
839 PKG_CONFIG
840 PKG_CONFIG_PATH
841 PKG_CONFIG_LIBDIR
842 RENDER_CFLAGS
843 RENDER_LIBS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 runstatedir='${localstatedir}/run'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: \`$ac_useropt'"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: \`$ac_useropt'"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -runstatedir | --runstatedir | --runstatedi | --runstated \
1134 | --runstate | --runstat | --runsta | --runst | --runs \
1135 | --run | --ru | --r)
1136 ac_prev=runstatedir ;;
1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139 | --run=* | --ru=* | --r=*)
1140 runstatedir=$ac_optarg ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: \`$ac_useropt'"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: \`$ac_useropt'"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 ;;
1258
1259 esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir runstatedir
1280 do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 printf "%s\n" X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures libXrender 0.9.11 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrender]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of libXrender 0.9.11:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --disable-selective-werror
1483 Turn off selective compiler errors. (default:
1484 enabled)
1485 --enable-strict-compilation
1486 Enable all warnings from compiler and make them
1487 errors (default: disabled)
1488 --enable-malloc0returnsnull
1489 malloc(0) returns NULL (default: auto)
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --with-aix-soname=aix|svr4|both
1497 shared library versioning (aka "SONAME") variant to
1498 provide on AIX, [default=aix].
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1501 compiler's sysroot if not specified).
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 LT_SYS_LIBRARY_PATH
1512 User-defined run-time library search path.
1513 PKG_CONFIG path to pkg-config utility
1514 PKG_CONFIG_PATH
1515 directories to add to pkg-config's search path
1516 PKG_CONFIG_LIBDIR
1517 path overriding pkg-config's built-in search path
1518 RENDER_CFLAGS
1519 C compiler flags for RENDER, overriding pkg-config
1520 RENDER_LIBS linker flags for RENDER, overriding pkg-config
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 continue
1536 ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for configure.gnu first; this name is used for a wrapper for
1572 # Metaconfig's "Configure" on case-insensitive file systems.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 libXrender configure 0.9.11
1590 generated by GNU Autoconf 2.71
1591
1592 Copyright (C) 2021 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596 exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest.beam
1610 if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 printf "%s\n" "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext
1629 then :
1630 ac_retval=0
1631 else $as_nop
1632 printf "%s\n" "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 printf "%s\n" "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 test -x conftest$ac_exeext
1670 }
1671 then :
1672 ac_retval=0
1673 else $as_nop
1674 printf "%s\n" "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1680 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1681 # interfere with the next link command; also delete a directory that is
1682 # left behind by Apple's compiler. We do this before executing the actions.
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_link
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 printf %s "checking for $2... " >&6; }
1698 if eval test \${$3+y}
1699 then :
1700 printf %s "(cached) " >&6
1701 else $as_nop
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"
1708 then :
1709 eval "$3=yes"
1710 else $as_nop
1711 eval "$3=no"
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1714 fi
1715 eval ac_res=\$$3
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 printf "%s\n" "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_compile
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 printf %s "checking for $2... " >&6; }
1730 if eval test \${$3+y}
1731 then :
1732 printf %s "(cached) " >&6
1733 else $as_nop
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1738 #define $2 innocuous_$2
1739
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $2 (); below. */
1742
1743 #include <limits.h>
1744 #undef $2
1745
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 ();
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1759
1760 int
1761 main (void)
1762 {
1763 return $2 ();
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"
1769 then :
1770 eval "$3=yes"
1771 else $as_nop
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775 conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 printf "%s\n" "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1785 # ------------------------------------------------------------------
1786 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1787 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1788 ac_fn_check_decl ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 as_decl_name=`echo $2|sed 's/ *(.*//'`
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793 printf %s "checking whether $as_decl_name is declared... " >&6; }
1794 if eval test \${$3+y}
1795 then :
1796 printf %s "(cached) " >&6
1797 else $as_nop
1798 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1799 eval ac_save_FLAGS=\$$6
1800 as_fn_append $6 " $5"
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 int
1805 main (void)
1806 {
1807 #ifndef $as_decl_name
1808 #ifdef __cplusplus
1809 (void) $as_decl_use;
1810 #else
1811 (void) $as_decl_name;
1812 #endif
1813 #endif
1814
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"
1820 then :
1821 eval "$3=yes"
1822 else $as_nop
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826 eval $6=\$ac_save_FLAGS
1827
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_check_decl
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1839 # executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 printf "%s\n" "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1851 ac_status=$?
1852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }
1864 then :
1865 ac_retval=0
1866 else $as_nop
1867 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872 fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_run
1878 ac_configure_args_raw=
1879 for ac_arg
1880 do
1881 case $ac_arg in
1882 *\'*)
1883 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 esac
1885 as_fn_append ac_configure_args_raw " '$ac_arg'"
1886 done
1887
1888 case $ac_configure_args_raw in
1889 *$as_nl*)
1890 ac_safe_unquote= ;;
1891 *)
1892 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1893 ac_unsafe_a="$ac_unsafe_z#~"
1894 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1895 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1896 esac
1897
1898 cat >config.log <<_ACEOF
1899 This file contains any messages produced by compilers while
1900 running configure, to aid debugging if configure makes a mistake.
1901
1902 It was created by libXrender $as_me 0.9.11, which was
1903 generated by GNU Autoconf 2.71. Invocation command line was
1904
1905 $ $0$ac_configure_args_raw
1906
1907 _ACEOF
1908 exec 5>>config.log
1909 {
1910 cat <<_ASUNAME
1911 ## --------- ##
1912 ## Platform. ##
1913 ## --------- ##
1914
1915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920
1921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1923
1924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1931
1932 _ASUNAME
1933
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937 IFS=$as_save_IFS
1938 case $as_dir in #(((
1939 '') as_dir=./ ;;
1940 */) ;;
1941 *) as_dir=$as_dir/ ;;
1942 esac
1943 printf "%s\n" "PATH: $as_dir"
1944 done
1945 IFS=$as_save_IFS
1946
1947 } >&5
1948
1949 cat >&5 <<_ACEOF
1950
1951
1952 ## ----------- ##
1953 ## Core tests. ##
1954 ## ----------- ##
1955
1956 _ACEOF
1957
1958
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_configure_args=
1965 ac_configure_args0=
1966 ac_configure_args1=
1967 ac_must_keep_next=false
1968 for ac_pass in 1 2
1969 do
1970 for ac_arg
1971 do
1972 case $ac_arg in
1973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975 | -silent | --silent | --silen | --sile | --sil)
1976 continue ;;
1977 *\'*)
1978 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 esac
1980 case $ac_pass in
1981 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 2)
1983 as_fn_append ac_configure_args1 " '$ac_arg'"
1984 if test $ac_must_keep_next = true; then
1985 ac_must_keep_next=false # Got value, back to normal.
1986 else
1987 case $ac_arg in
1988 *=* | --config-cache | -C | -disable-* | --disable-* \
1989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991 | -with-* | --with-* | -without-* | --without-* | --x)
1992 case "$ac_configure_args0 " in
1993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994 esac
1995 ;;
1996 -* ) ac_must_keep_next=true ;;
1997 esac
1998 fi
1999 as_fn_append ac_configure_args " '$ac_arg'"
2000 ;;
2001 esac
2002 done
2003 done
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2006
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log. We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013 # Sanitize IFS.
2014 IFS=" "" $as_nl"
2015 # Save into config.log some information that might help in debugging.
2016 {
2017 echo
2018
2019 printf "%s\n" "## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##"
2022 echo
2023 # The following way of writing the cache mishandles newlines in values,
2024 (
2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026 eval ac_val=\$$ac_var
2027 case $ac_val in #(
2028 *${as_nl}*)
2029 case $ac_var in #(
2030 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032 esac
2033 case $ac_var in #(
2034 _ | IFS | as_nl) ;; #(
2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036 *) { eval $ac_var=; unset $ac_var;} ;;
2037 esac ;;
2038 esac
2039 done
2040 (set) 2>&1 |
2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042 *${as_nl}ac_space=\ *)
2043 sed -n \
2044 "s/'\''/'\''\\\\'\'''\''/g;
2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046 ;; #(
2047 *)
2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049 ;;
2050 esac |
2051 sort
2052 )
2053 echo
2054
2055 printf "%s\n" "## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##"
2058 echo
2059 for ac_var in $ac_subst_vars
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 printf "%s\n" "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068
2069 if test -n "$ac_subst_files"; then
2070 printf "%s\n" "## ------------------- ##
2071 ## File substitutions. ##
2072 ## ------------------- ##"
2073 echo
2074 for ac_var in $ac_subst_files
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 printf "%s\n" "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083 fi
2084
2085 if test -s confdefs.h; then
2086 printf "%s\n" "## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##"
2089 echo
2090 cat confdefs.h
2091 echo
2092 fi
2093 test "$ac_signal" != 0 &&
2094 printf "%s\n" "$as_me: caught signal $ac_signal"
2095 printf "%s\n" "$as_me: exit $exit_status"
2096 } >&5
2097 rm -f core *.core core.conftest.* &&
2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099 exit $exit_status
2100 ' 0
2101 for ac_signal in 1 2 13 15; do
2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 done
2104 ac_signal=0
2105
2106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2107 rm -f -r conftest* confdefs.h
2108
2109 printf "%s\n" "/* confdefs.h */" > confdefs.h
2110
2111 # Predefined preprocessor variables.
2112
2113 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2114
2115 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2116
2117 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2118
2119 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2120
2121 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2124
2125
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2128 if test -n "$CONFIG_SITE"; then
2129 ac_site_files="$CONFIG_SITE"
2130 elif test "x$prefix" != xNONE; then
2131 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2132 else
2133 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2134 fi
2135
2136 for ac_site_file in $ac_site_files
2137 do
2138 case $ac_site_file in #(
2139 */*) :
2140 ;; #(
2141 *) :
2142 ac_site_file=./$ac_site_file ;;
2143 esac
2144 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2147 sed 's/^/| /' "$ac_site_file" >&5
2148 . "$ac_site_file" \
2149 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2151 as_fn_error $? "failed to load site script $ac_site_file
2152 See \`config.log' for more details" "$LINENO" 5; }
2153 fi
2154 done
2155
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special files
2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2162 case $cache_file in
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2165 esac
2166 fi
2167 else
2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2170 >$cache_file
2171 fi
2172
2173 # Test code for whether the C compiler supports C89 (global declarations)
2174 ac_c_conftest_c89_globals='
2175 /* Does the compiler advertise C89 conformance?
2176 Do not test the value of __STDC__, because some compilers set it to 0
2177 while being otherwise adequately conformant. */
2178 #if !defined __STDC__
2179 # error "Compiler does not advertise C89 conformance"
2180 #endif
2181
2182 #include <stddef.h>
2183 #include <stdarg.h>
2184 struct stat;
2185 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2186 struct buf { int x; };
2187 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2188 static char *e (p, i)
2189 char **p;
2190 int i;
2191 {
2192 return p[i];
2193 }
2194 static char *f (char * (*g) (char **, int), char **p, ...)
2195 {
2196 char *s;
2197 va_list v;
2198 va_start (v,p);
2199 s = g (p, va_arg (v,int));
2200 va_end (v);
2201 return s;
2202 }
2203
2204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2205 function prototypes and stuff, but not \xHH hex character constants.
2206 These do not provoke an error unfortunately, instead are silently treated
2207 as an "x". The following induces an error, until -std is added to get
2208 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2209 array size at least. It is necessary to write \x00 == 0 to get something
2210 that is true only with -std. */
2211 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2212
2213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2214 inside strings and character constants. */
2215 #define FOO(x) '\''x'\''
2216 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2217
2218 int test (int i, double x);
2219 struct s1 {int (*f) (int a);};
2220 struct s2 {int (*f) (double a);};
2221 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2222 int, int);'
2223
2224 # Test code for whether the C compiler supports C89 (body of main).
2225 ac_c_conftest_c89_main='
2226 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2227 '
2228
2229 # Test code for whether the C compiler supports C99 (global declarations)
2230 ac_c_conftest_c99_globals='
2231 // Does the compiler advertise C99 conformance?
2232 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2233 # error "Compiler does not advertise C99 conformance"
2234 #endif
2235
2236 #include <stdbool.h>
2237 extern int puts (const char *);
2238 extern int printf (const char *, ...);
2239 extern int dprintf (int, const char *, ...);
2240 extern void *malloc (size_t);
2241
2242 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2243 // dprintf is used instead of fprintf to avoid needing to declare
2244 // FILE and stderr.
2245 #define debug(...) dprintf (2, __VA_ARGS__)
2246 #define showlist(...) puts (#__VA_ARGS__)
2247 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2248 static void
2249 test_varargs_macros (void)
2250 {
2251 int x = 1234;
2252 int y = 5678;
2253 debug ("Flag");
2254 debug ("X = %d\n", x);
2255 showlist (The first, second, and third items.);
2256 report (x>y, "x is %d but y is %d", x, y);
2257 }
2258
2259 // Check long long types.
2260 #define BIG64 18446744073709551615ull
2261 #define BIG32 4294967295ul
2262 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2263 #if !BIG_OK
2264 #error "your preprocessor is broken"
2265 #endif
2266 #if BIG_OK
2267 #else
2268 #error "your preprocessor is broken"
2269 #endif
2270 static long long int bignum = -9223372036854775807LL;
2271 static unsigned long long int ubignum = BIG64;
2272
2273 struct incomplete_array
2274 {
2275 int datasize;
2276 double data[];
2277 };
2278
2279 struct named_init {
2280 int number;
2281 const wchar_t *name;
2282 double average;
2283 };
2284
2285 typedef const char *ccp;
2286
2287 static inline int
2288 test_restrict (ccp restrict text)
2289 {
2290 // See if C++-style comments work.
2291 // Iterate through items via the restricted pointer.
2292 // Also check for declarations in for loops.
2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294 continue;
2295 return 0;
2296 }
2297
2298 // Check varargs and va_copy.
2299 static bool
2300 test_varargs (const char *format, ...)
2301 {
2302 va_list args;
2303 va_start (args, format);
2304 va_list args_copy;
2305 va_copy (args_copy, args);
2306
2307 const char *str = "";
2308 int number = 0;
2309 float fnumber = 0;
2310
2311 while (*format)
2312 {
2313 switch (*format++)
2314 {
2315 case '\''s'\'': // string
2316 str = va_arg (args_copy, const char *);
2317 break;
2318 case '\''d'\'': // int
2319 number = va_arg (args_copy, int);
2320 break;
2321 case '\''f'\'': // float
2322 fnumber = va_arg (args_copy, double);
2323 break;
2324 default:
2325 break;
2326 }
2327 }
2328 va_end (args_copy);
2329 va_end (args);
2330
2331 return *str && number && fnumber;
2332 }
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (body of main).
2336 ac_c_conftest_c99_main='
2337 // Check bool.
2338 _Bool success = false;
2339 success |= (argc != 0);
2340
2341 // Check restrict.
2342 if (test_restrict ("String literal") == 0)
2343 success = true;
2344 char *restrict newvar = "Another string";
2345
2346 // Check varargs.
2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348 test_varargs_macros ();
2349
2350 // Check flexible array members.
2351 struct incomplete_array *ia =
2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353 ia->datasize = 10;
2354 for (int i = 0; i < ia->datasize; ++i)
2355 ia->data[i] = i * 1.234;
2356
2357 // Check named initializers.
2358 struct named_init ni = {
2359 .number = 34,
2360 .name = L"Test wide string",
2361 .average = 543.34343,
2362 };
2363
2364 ni.number = 58;
2365
2366 int dynamic_array[ni.number];
2367 dynamic_array[0] = argv[0][0];
2368 dynamic_array[ni.number - 1] = 543;
2369
2370 // work around unused variable warnings
2371 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2372 || dynamic_array[ni.number - 1] != 543);
2373 '
2374
2375 # Test code for whether the C compiler supports C11 (global declarations)
2376 ac_c_conftest_c11_globals='
2377 // Does the compiler advertise C11 conformance?
2378 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2379 # error "Compiler does not advertise C11 conformance"
2380 #endif
2381
2382 // Check _Alignas.
2383 char _Alignas (double) aligned_as_double;
2384 char _Alignas (0) no_special_alignment;
2385 extern char aligned_as_int;
2386 char _Alignas (0) _Alignas (int) aligned_as_int;
2387
2388 // Check _Alignof.
2389 enum
2390 {
2391 int_alignment = _Alignof (int),
2392 int_array_alignment = _Alignof (int[100]),
2393 char_alignment = _Alignof (char)
2394 };
2395 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2396
2397 // Check _Noreturn.
2398 int _Noreturn does_not_return (void) { for (;;) continue; }
2399
2400 // Check _Static_assert.
2401 struct test_static_assert
2402 {
2403 int x;
2404 _Static_assert (sizeof (int) <= sizeof (long int),
2405 "_Static_assert does not work in struct");
2406 long int y;
2407 };
2408
2409 // Check UTF-8 literals.
2410 #define u8 syntax error!
2411 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2412
2413 // Check duplicate typedefs.
2414 typedef long *long_ptr;
2415 typedef long int *long_ptr;
2416 typedef long_ptr long_ptr;
2417
2418 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2419 struct anonymous
2420 {
2421 union {
2422 struct { int i; int j; };
2423 struct { int k; long int l; } w;
2424 };
2425 int m;
2426 } v1;
2427 '
2428
2429 # Test code for whether the C compiler supports C11 (body of main).
2430 ac_c_conftest_c11_main='
2431 _Static_assert ((offsetof (struct anonymous, i)
2432 == offsetof (struct anonymous, w.k)),
2433 "Anonymous union alignment botch");
2434 v1.i = 2;
2435 v1.w.k = 5;
2436 ok |= v1.i != 5;
2437 '
2438
2439 # Test code for whether the C compiler supports C11 (complete).
2440 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2441 ${ac_c_conftest_c99_globals}
2442 ${ac_c_conftest_c11_globals}
2443
2444 int
2445 main (int argc, char **argv)
2446 {
2447 int ok = 0;
2448 ${ac_c_conftest_c89_main}
2449 ${ac_c_conftest_c99_main}
2450 ${ac_c_conftest_c11_main}
2451 return ok;
2452 }
2453 "
2454
2455 # Test code for whether the C compiler supports C99 (complete).
2456 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2457 ${ac_c_conftest_c99_globals}
2458
2459 int
2460 main (int argc, char **argv)
2461 {
2462 int ok = 0;
2463 ${ac_c_conftest_c89_main}
2464 ${ac_c_conftest_c99_main}
2465 return ok;
2466 }
2467 "
2468
2469 # Test code for whether the C compiler supports C89 (complete).
2470 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2471
2472 int
2473 main (int argc, char **argv)
2474 {
2475 int ok = 0;
2476 ${ac_c_conftest_c89_main}
2477 return ok;
2478 }
2479 "
2480
2481 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2482 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2483 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2484 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2485 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2486 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2487 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2488 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2489 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2490
2491 # Auxiliary files required by this configure script.
2492 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2493
2494 # Locations in which to look for auxiliary files.
2495 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2496
2497 # Search for a directory containing all of the required auxiliary files,
2498 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2499 # If we don't find one directory that contains all the files we need,
2500 # we report the set of missing files from the *first* directory in
2501 # $ac_aux_dir_candidates and give up.
2502 ac_missing_aux_files=""
2503 ac_first_candidate=:
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 as_found=false
2507 for as_dir in $ac_aux_dir_candidates
2508 do
2509 IFS=$as_save_IFS
2510 case $as_dir in #(((
2511 '') as_dir=./ ;;
2512 */) ;;
2513 *) as_dir=$as_dir/ ;;
2514 esac
2515 as_found=:
2516
2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2518 ac_aux_dir_found=yes
2519 ac_install_sh=
2520 for ac_aux in $ac_aux_files
2521 do
2522 # As a special case, if "install-sh" is required, that requirement
2523 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2524 # and $ac_install_sh is set appropriately for whichever one is found.
2525 if test x"$ac_aux" = x"install-sh"
2526 then
2527 if test -f "${as_dir}install-sh"; then
2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2529 ac_install_sh="${as_dir}install-sh -c"
2530 elif test -f "${as_dir}install.sh"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2532 ac_install_sh="${as_dir}install.sh -c"
2533 elif test -f "${as_dir}shtool"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2535 ac_install_sh="${as_dir}shtool install -c"
2536 else
2537 ac_aux_dir_found=no
2538 if $ac_first_candidate; then
2539 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2540 else
2541 break
2542 fi
2543 fi
2544 else
2545 if test -f "${as_dir}${ac_aux}"; then
2546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2547 else
2548 ac_aux_dir_found=no
2549 if $ac_first_candidate; then
2550 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2551 else
2552 break
2553 fi
2554 fi
2555 fi
2556 done
2557 if test "$ac_aux_dir_found" = yes; then
2558 ac_aux_dir="$as_dir"
2559 break
2560 fi
2561 ac_first_candidate=false
2562
2563 as_found=false
2564 done
2565 IFS=$as_save_IFS
2566 if $as_found
2567 then :
2568
2569 else $as_nop
2570 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2571 fi
2572
2573
2574 # These three variables are undocumented and unsupported,
2575 # and are intended to be withdrawn in a future Autoconf release.
2576 # They can cause serious problems if a builder's source tree is in a directory
2577 # whose full name contains unusual characters.
2578 if test -f "${ac_aux_dir}config.guess"; then
2579 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2580 fi
2581 if test -f "${ac_aux_dir}config.sub"; then
2582 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2583 fi
2584 if test -f "$ac_aux_dir/configure"; then
2585 ac_configure="$SHELL ${ac_aux_dir}configure"
2586 fi
2587
2588 # Check that the precious variables saved in the cache have kept the same
2589 # value.
2590 ac_cache_corrupted=false
2591 for ac_var in $ac_precious_vars; do
2592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593 eval ac_new_set=\$ac_env_${ac_var}_set
2594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595 eval ac_new_val=\$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2597 set,)
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,set)
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,);;
2606 *)
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w=`echo x $ac_old_val`
2610 ac_new_val_w=`echo x $ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614 ac_cache_corrupted=:
2615 else
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\$ac_old_val
2619 fi
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2624 fi;;
2625 esac
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2628 case $ac_new_val in
2629 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 *) ac_arg=$ac_var=$ac_new_val ;;
2631 esac
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635 esac
2636 fi
2637 done
2638 if $ac_cache_corrupted; then
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2644 and start over" "$LINENO" 5
2645 fi
2646 ## -------------------- ##
2647 ## Main body of script. ##
2648 ## -------------------- ##
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657
2658 ac_config_headers="$ac_config_headers config.h"
2659
2660
2661 PACKAGE_BRIEF="Library for the Render Extension to the X11 protocol"
2662
2663
2664 # Initialize Automake
2665 am__api_version='1.16'
2666
2667
2668
2669 # Find a good install program. We prefer a C program (faster),
2670 # so one script is as good as another. But avoid the broken or
2671 # incompatible versions:
2672 # SysV /etc/install, /usr/sbin/install
2673 # SunOS /usr/etc/install
2674 # IRIX /sbin/install
2675 # AIX /bin/install
2676 # AmigaOS /C/install, which installs bootblocks on floppy discs
2677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680 # OS/2's system install, which has a completely different semantic
2681 # ./install, which can be erroneously created by make from ./install.sh.
2682 # Reject install programs that cannot install multiple files.
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2684 printf %s "checking for a BSD-compatible install... " >&6; }
2685 if test -z "$INSTALL"; then
2686 if test ${ac_cv_path_install+y}
2687 then :
2688 printf %s "(cached) " >&6
2689 else $as_nop
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 case $as_dir in #(((
2695 '') as_dir=./ ;;
2696 */) ;;
2697 *) as_dir=$as_dir/ ;;
2698 esac
2699 # Account for fact that we put trailing slashes in our PATH walk.
2700 case $as_dir in #((
2701 ./ | /[cC]/* | \
2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704 /usr/ucb/* ) ;;
2705 *)
2706 # OSF1 and SCO ODT 3.0 have their own names for install.
2707 # Don't use installbsd from OSF since it installs stuff as root
2708 # by default.
2709 for ac_prog in ginstall scoinst install; do
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2712 if test $ac_prog = install &&
2713 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # AIX install. It has an incompatible calling convention.
2715 :
2716 elif test $ac_prog = install &&
2717 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # program-specific install script used by HP pwplus--don't use.
2719 :
2720 else
2721 rm -rf conftest.one conftest.two conftest.dir
2722 echo one > conftest.one
2723 echo two > conftest.two
2724 mkdir conftest.dir
2725 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2726 test -s conftest.one && test -s conftest.two &&
2727 test -s conftest.dir/conftest.one &&
2728 test -s conftest.dir/conftest.two
2729 then
2730 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2731 break 3
2732 fi
2733 fi
2734 fi
2735 done
2736 done
2737 ;;
2738 esac
2739
2740 done
2741 IFS=$as_save_IFS
2742
2743 rm -rf conftest.one conftest.two conftest.dir
2744
2745 fi
2746 if test ${ac_cv_path_install+y}; then
2747 INSTALL=$ac_cv_path_install
2748 else
2749 # As a last resort, use the slow shell script. Don't cache a
2750 # value for INSTALL within a source directory, because that will
2751 # break other packages using the cache if that directory is
2752 # removed, or if the value is a relative name.
2753 INSTALL=$ac_install_sh
2754 fi
2755 fi
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757 printf "%s\n" "$INSTALL" >&6; }
2758
2759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760 # It thinks the first close brace ends the variable substitution.
2761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762
2763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764
2765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768 printf %s "checking whether build environment is sane... " >&6; }
2769 # Reject unsafe characters in $srcdir or the absolute working directory
2770 # name. Accept space and tab only in the latter.
2771 am_lf='
2772 '
2773 case `pwd` in
2774 *[\\\"\#\$\&\'\`$am_lf]*)
2775 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2776 esac
2777 case $srcdir in
2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2779 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2780 esac
2781
2782 # Do 'set' in a subshell so we don't clobber the current shell's
2783 # arguments. Must try -L first in case configure is actually a
2784 # symlink; some systems play weird games with the mod time of symlinks
2785 # (eg FreeBSD returns the mod time of the symlink's containing
2786 # directory).
2787 if (
2788 am_has_slept=no
2789 for am_try in 1 2; do
2790 echo "timestamp, slept: $am_has_slept" > conftest.file
2791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792 if test "$*" = "X"; then
2793 # -L didn't work.
2794 set X `ls -t "$srcdir/configure" conftest.file`
2795 fi
2796 if test "$*" != "X $srcdir/configure conftest.file" \
2797 && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799 # If neither matched, then we have a broken ls. This can happen
2800 # if, for instance, CONFIG_SHELL is bash and it inherits a
2801 # broken ls alias from the environment. This has actually
2802 # happened. Such a system could not be considered "sane".
2803 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2804 alias in your environment" "$LINENO" 5
2805 fi
2806 if test "$2" = conftest.file || test $am_try -eq 2; then
2807 break
2808 fi
2809 # Just in case.
2810 sleep 1
2811 am_has_slept=yes
2812 done
2813 test "$2" = conftest.file
2814 )
2815 then
2816 # Ok.
2817 :
2818 else
2819 as_fn_error $? "newly created file is older than distributed files!
2820 Check your system clock" "$LINENO" 5
2821 fi
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 printf "%s\n" "yes" >&6; }
2824 # If we didn't sleep, we still need to ensure time stamps of config.status and
2825 # generated files are strictly newer.
2826 am_sleep_pid=
2827 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2828 ( sleep 1 ) &
2829 am_sleep_pid=$!
2830 fi
2831
2832 rm -f conftest.file
2833
2834 test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2843
2844
2845 # Expand $ac_aux_dir to an absolute path.
2846 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848
2849 if test x"${MISSING+set}" != xset; then
2850 MISSING="\${SHELL} '$am_aux_dir/missing'"
2851 fi
2852 # Use eval to expand $SHELL
2853 if eval "$MISSING --is-lightweight"; then
2854 am_missing_run="$MISSING "
2855 else
2856 am_missing_run=
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2858 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2859 fi
2860
2861 if test x"${install_sh+set}" != xset; then
2862 case $am_aux_dir in
2863 *\ * | *\ *)
2864 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865 *)
2866 install_sh="\${SHELL} $am_aux_dir/install-sh"
2867 esac
2868 fi
2869
2870 # Installed binaries are usually stripped using 'strip' when the user
2871 # run "make install-strip". However 'strip' might not be the right
2872 # tool to use in cross-compilation environments, therefore Automake
2873 # will honor the 'STRIP' environment variable to overrule this program.
2874 if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}strip; ac_word=$2
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 printf %s "checking for $ac_word... " >&6; }
2880 if test ${ac_cv_prog_STRIP+y}
2881 then :
2882 printf %s "(cached) " >&6
2883 else $as_nop
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 case $as_dir in #(((
2892 '') as_dir=./ ;;
2893 */) ;;
2894 *) as_dir=$as_dir/ ;;
2895 esac
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 STRIP=$ac_cv_prog_STRIP
2909 if test -n "$STRIP"; then
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2911 printf "%s\n" "$STRIP" >&6; }
2912 else
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 printf "%s\n" "no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$ac_cv_prog_STRIP"; then
2920 ac_ct_STRIP=$STRIP
2921 # Extract the first word of "strip", so it can be a program name with args.
2922 set dummy strip; ac_word=$2
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 printf %s "checking for $ac_word... " >&6; }
2925 if test ${ac_cv_prog_ac_ct_STRIP+y}
2926 then :
2927 printf %s "(cached) " >&6
2928 else $as_nop
2929 if test -n "$ac_ct_STRIP"; then
2930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 case $as_dir in #(((
2937 '') as_dir=./ ;;
2938 */) ;;
2939 *) as_dir=$as_dir/ ;;
2940 esac
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_ac_ct_STRIP="strip"
2944 printf "%s\n" "$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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2954 if test -n "$ac_ct_STRIP"; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2956 printf "%s\n" "$ac_ct_STRIP" >&6; }
2957 else
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2960 fi
2961
2962 if test "x$ac_ct_STRIP" = x; then
2963 STRIP=":"
2964 else
2965 case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 STRIP=$ac_ct_STRIP
2972 fi
2973 else
2974 STRIP="$ac_cv_prog_STRIP"
2975 fi
2976
2977 fi
2978 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2979
2980
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2982 printf %s "checking for a race-free mkdir -p... " >&6; }
2983 if test -z "$MKDIR_P"; then
2984 if test ${ac_cv_path_mkdir+y}
2985 then :
2986 printf %s "(cached) " >&6
2987 else $as_nop
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_prog in mkdir gmkdir; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3000 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001 'mkdir ('*'coreutils) '* | \
3002 'BusyBox '* | \
3003 'mkdir (fileutils) '4.1*)
3004 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3005 break 3;;
3006 esac
3007 done
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013
3014 test -d ./--version && rmdir ./--version
3015 if test ${ac_cv_path_mkdir+y}; then
3016 MKDIR_P="$ac_cv_path_mkdir -p"
3017 else
3018 # As a last resort, use the slow shell script. Don't cache a
3019 # value for MKDIR_P within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the value is a relative name.
3022 MKDIR_P="$ac_install_sh -d"
3023 fi
3024 fi
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026 printf "%s\n" "$MKDIR_P" >&6; }
3027
3028 for ac_prog in gawk mawk nawk awk
3029 do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 printf %s "checking for $ac_word... " >&6; }
3034 if test ${ac_cv_prog_AWK+y}
3035 then :
3036 printf %s "(cached) " >&6
3037 else $as_nop
3038 if test -n "$AWK"; then
3039 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 case $as_dir in #(((
3046 '') as_dir=./ ;;
3047 */) ;;
3048 *) as_dir=$as_dir/ ;;
3049 esac
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_AWK="$ac_prog"
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 AWK=$ac_cv_prog_AWK
3063 if test -n "$AWK"; then
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065 printf "%s\n" "$AWK" >&6; }
3066 else
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 printf "%s\n" "no" >&6; }
3069 fi
3070
3071
3072 test -n "$AWK" && break
3073 done
3074
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3077 set x ${MAKE-make}
3078 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3079 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else $as_nop
3083 cat >conftest.make <<\_ACEOF
3084 SHELL = /bin/sh
3085 all:
3086 @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 _ACEOF
3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090 *@@@%%%=?*=@@@%%%*)
3091 eval ac_cv_prog_make_${ac_make}_set=yes;;
3092 *)
3093 eval ac_cv_prog_make_${ac_make}_set=no;;
3094 esac
3095 rm -f conftest.make
3096 fi
3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 printf "%s\n" "yes" >&6; }
3100 SET_MAKE=
3101 else
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 printf "%s\n" "no" >&6; }
3104 SET_MAKE="MAKE=${MAKE-make}"
3105 fi
3106
3107 rm -rf .tst 2>/dev/null
3108 mkdir .tst 2>/dev/null
3109 if test -d .tst; then
3110 am__leading_dot=.
3111 else
3112 am__leading_dot=_
3113 fi
3114 rmdir .tst 2>/dev/null
3115
3116 # Check whether --enable-silent-rules was given.
3117 if test ${enable_silent_rules+y}
3118 then :
3119 enableval=$enable_silent_rules;
3120 fi
3121
3122 case $enable_silent_rules in # (((
3123 yes) AM_DEFAULT_VERBOSITY=0;;
3124 no) AM_DEFAULT_VERBOSITY=1;;
3125 *) AM_DEFAULT_VERBOSITY=1;;
3126 esac
3127 am_make=${MAKE-make}
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3129 printf %s "checking whether $am_make supports nested variables... " >&6; }
3130 if test ${am_cv_make_support_nested_variables+y}
3131 then :
3132 printf %s "(cached) " >&6
3133 else $as_nop
3134 if printf "%s\n" 'TRUE=$(BAR$(V))
3135 BAR0=false
3136 BAR1=true
3137 V=1
3138 am__doit:
3139 @$(TRUE)
3140 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3141 am_cv_make_support_nested_variables=yes
3142 else
3143 am_cv_make_support_nested_variables=no
3144 fi
3145 fi
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3147 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3148 if test $am_cv_make_support_nested_variables = yes; then
3149 AM_V='$(V)'
3150 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3151 else
3152 AM_V=$AM_DEFAULT_VERBOSITY
3153 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3154 fi
3155 AM_BACKSLASH='\'
3156
3157 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3159 # is not polluted with repeated "-I."
3160 am__isrc=' -I$(srcdir)'
3161 # test to see if srcdir already configured
3162 if test -f $srcdir/config.status; then
3163 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3164 fi
3165 fi
3166
3167 # test whether we have cygpath
3168 if test -z "$CYGPATH_W"; then
3169 if (cygpath --version) >/dev/null 2>/dev/null; then
3170 CYGPATH_W='cygpath -w'
3171 else
3172 CYGPATH_W=echo
3173 fi
3174 fi
3175
3176
3177 # Define the identity of the package.
3178 PACKAGE='libXrender'
3179 VERSION='0.9.11'
3180
3181
3182 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3183
3184
3185 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3186
3187 # Some tools Automake needs.
3188
3189 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3190
3191
3192 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3193
3194
3195 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3196
3197
3198 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3199
3200
3201 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3202
3203 # For better backward compatibility. To be removed once Automake 1.9.x
3204 # dies out for good. For more background, see:
3205 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3206 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3207 mkdir_p='$(MKDIR_P)'
3208
3209 # We need awk for the "check" target (and possibly the TAP driver). The
3210 # system "awk" is bad on some platforms.
3211 # Always define AMTAR for backward compatibility. Yes, it's still used
3212 # in the wild :-( We should find a proper way to deprecate it ...
3213 AMTAR='$${TAR-tar}'
3214
3215
3216 # We'll loop over all known methods to create a tar archive until one works.
3217 _am_tools='gnutar pax cpio none'
3218
3219 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3220
3221
3222
3223
3224
3225 # Variables for tags utilities; see am/tags.am
3226 if test -z "$CTAGS"; then
3227 CTAGS=ctags
3228 fi
3229
3230 if test -z "$ETAGS"; then
3231 ETAGS=etags
3232 fi
3233
3234 if test -z "$CSCOPE"; then
3235 CSCOPE=cscope
3236 fi
3237
3238
3239
3240 # POSIX will say in a future version that running "rm -f" with no argument
3241 # is OK; and we want to be able to make that assumption in our Makefile
3242 # recipes. So use an aggressive probe to check that the usage we want is
3243 # actually supported "in the wild" to an acceptable degree.
3244 # See automake bug#10828.
3245 # To make any issue more visible, cause the running configure to be aborted
3246 # by default if the 'rm' program in use doesn't match our expectations; the
3247 # user can still override this though.
3248 if rm -f && rm -fr && rm -rf; then : OK; else
3249 cat >&2 <<'END'
3250 Oops!
3251
3252 Your 'rm' program seems unable to run without file operands specified
3253 on the command line, even when the '-f' option is present. This is contrary
3254 to the behaviour of most rm programs out there, and not conforming with
3255 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3256
3257 Please tell bug-automake@gnu.org about your system, including the value
3258 of your $PATH and any error possibly output before this message. This
3259 can help us improve future automake versions.
3260
3261 END
3262 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3263 echo 'Configuration will proceed anyway, since you have set the' >&2
3264 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3265 echo >&2
3266 else
3267 cat >&2 <<'END'
3268 Aborting the configuration process, to ensure you take notice of the issue.
3269
3270 You can download and install GNU coreutils to get an 'rm' implementation
3271 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3272
3273 If you want to complete the configuration process using your problematic
3274 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3275 to "yes", and re-run configure.
3276
3277 END
3278 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3279 fi
3280 fi
3281
3282
3283 # Initialize libtool
3284 case `pwd` in
3285 *\ * | *\ *)
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3287 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3288 esac
3289
3290
3291
3292 macro_version='2.4.7'
3293 macro_revision='2.4.7'
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308 ltmain=$ac_aux_dir/ltmain.sh
3309
3310
3311
3312 # Make sure we can run config.sub.
3313 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3314 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3315
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3317 printf %s "checking build system type... " >&6; }
3318 if test ${ac_cv_build+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else $as_nop
3322 ac_build_alias=$build_alias
3323 test "x$ac_build_alias" = x &&
3324 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3325 test "x$ac_build_alias" = x &&
3326 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3327 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3328 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3329
3330 fi
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3332 printf "%s\n" "$ac_cv_build" >&6; }
3333 case $ac_cv_build in
3334 *-*-*) ;;
3335 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3336 esac
3337 build=$ac_cv_build
3338 ac_save_IFS=$IFS; IFS='-'
3339 set x $ac_cv_build
3340 shift
3341 build_cpu=$1
3342 build_vendor=$2
3343 shift; shift
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3346 build_os=$*
3347 IFS=$ac_save_IFS
3348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3349
3350
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3352 printf %s "checking host system type... " >&6; }
3353 if test ${ac_cv_host+y}
3354 then :
3355 printf %s "(cached) " >&6
3356 else $as_nop
3357 if test "x$host_alias" = x; then
3358 ac_cv_host=$ac_cv_build
3359 else
3360 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3361 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3362 fi
3363
3364 fi
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3366 printf "%s\n" "$ac_cv_host" >&6; }
3367 case $ac_cv_host in
3368 *-*-*) ;;
3369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3370 esac
3371 host=$ac_cv_host
3372 ac_save_IFS=$IFS; IFS='-'
3373 set x $ac_cv_host
3374 shift
3375 host_cpu=$1
3376 host_vendor=$2
3377 shift; shift
3378 # Remember, the first character of IFS is used to create $*,
3379 # except with old shells:
3380 host_os=$*
3381 IFS=$ac_save_IFS
3382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3383
3384
3385 # Backslashify metacharacters that are still active within
3386 # double-quoted strings.
3387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3388
3389 # Same as above, but do not quote variable references.
3390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3391
3392 # Sed substitution to delay expansion of an escaped shell variable in a
3393 # double_quote_subst'ed string.
3394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3395
3396 # Sed substitution to delay expansion of an escaped single quote.
3397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3398
3399 # Sed substitution to avoid accidental globbing in evaled expressions
3400 no_glob_subst='s/\*/\\\*/g'
3401
3402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3405
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3407 printf %s "checking how to print strings... " >&6; }
3408 # Test print first, because it will be a builtin if present.
3409 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3411 ECHO='print -r --'
3412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3413 ECHO='printf %s\n'
3414 else
3415 # Use this function as a fallback that always works.
3416 func_fallback_echo ()
3417 {
3418 eval 'cat <<_LTECHO_EOF
3419 $1
3420 _LTECHO_EOF'
3421 }
3422 ECHO='func_fallback_echo'
3423 fi
3424
3425 # func_echo_all arg...
3426 # Invoke $ECHO with all args, space-separated.
3427 func_echo_all ()
3428 {
3429 $ECHO ""
3430 }
3431
3432 case $ECHO in
3433 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3434 printf "%s\n" "printf" >&6; } ;;
3435 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3436 printf "%s\n" "print -r" >&6; } ;;
3437 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3438 printf "%s\n" "cat" >&6; } ;;
3439 esac
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463 DEPDIR="${am__leading_dot}deps"
3464
3465 ac_config_commands="$ac_config_commands depfiles"
3466
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3468 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3469 cat > confinc.mk << 'END'
3470 am__doit:
3471 @echo this is the am__doit target >confinc.out
3472 .PHONY: am__doit
3473 END
3474 am__include="#"
3475 am__quote=
3476 # BSD make does it like this.
3477 echo '.include "confinc.mk" # ignored' > confmf.BSD
3478 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3479 echo 'include confinc.mk # ignored' > confmf.GNU
3480 _am_result=no
3481 for s in GNU BSD; do
3482 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3483 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3487 case $?:`cat confinc.out 2>/dev/null` in #(
3488 '0:this is the am__doit target') :
3489 case $s in #(
3490 BSD) :
3491 am__include='.include' am__quote='"' ;; #(
3492 *) :
3493 am__include='include' am__quote='' ;;
3494 esac ;; #(
3495 *) :
3496 ;;
3497 esac
3498 if test "$am__include" != "#"; then
3499 _am_result="yes ($s style)"
3500 break
3501 fi
3502 done
3503 rm -f confinc.* confmf.*
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3505 printf "%s\n" "${_am_result}" >&6; }
3506
3507 # Check whether --enable-dependency-tracking was given.
3508 if test ${enable_dependency_tracking+y}
3509 then :
3510 enableval=$enable_dependency_tracking;
3511 fi
3512
3513 if test "x$enable_dependency_tracking" != xno; then
3514 am_depcomp="$ac_aux_dir/depcomp"
3515 AMDEPBACKSLASH='\'
3516 am__nodep='_no'
3517 fi
3518 if test "x$enable_dependency_tracking" != xno; then
3519 AMDEP_TRUE=
3520 AMDEP_FALSE='#'
3521 else
3522 AMDEP_TRUE='#'
3523 AMDEP_FALSE=
3524 fi
3525
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 printf %s "checking for $ac_word... " >&6; }
3537 if test ${ac_cv_prog_CC+y}
3538 then :
3539 printf %s "(cached) " >&6
3540 else $as_nop
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 case $as_dir in #(((
3549 '') as_dir=./ ;;
3550 */) ;;
3551 *) as_dir=$as_dir/ ;;
3552 esac
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 printf "%s\n" "$CC" >&6; }
3569 else
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 printf "%s\n" "no" >&6; }
3572 fi
3573
3574
3575 fi
3576 if test -z "$ac_cv_prog_CC"; then
3577 ac_ct_CC=$CC
3578 # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc; ac_word=$2
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 printf %s "checking for $ac_word... " >&6; }
3582 if test ${ac_cv_prog_ac_ct_CC+y}
3583 then :
3584 printf %s "(cached) " >&6
3585 else $as_nop
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 case $as_dir in #(((
3594 '') as_dir=./ ;;
3595 */) ;;
3596 *) as_dir=$as_dir/ ;;
3597 esac
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CC="gcc"
3601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3611 if test -n "$ac_ct_CC"; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3613 printf "%s\n" "$ac_ct_CC" >&6; }
3614 else
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 printf "%s\n" "no" >&6; }
3617 fi
3618
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3629 fi
3630 else
3631 CC="$ac_cv_prog_CC"
3632 fi
3633
3634 if test -z "$CC"; then
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}cc; ac_word=$2
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 printf %s "checking for $ac_word... " >&6; }
3640 if test ${ac_cv_prog_CC+y}
3641 then :
3642 printf %s "(cached) " >&6
3643 else $as_nop
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 case $as_dir in #(((
3652 '') as_dir=./ ;;
3653 */) ;;
3654 *) as_dir=$as_dir/ ;;
3655 esac
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC="${ac_tool_prefix}cc"
3659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 printf "%s\n" "$CC" >&6; }
3672 else
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 printf "%s\n" "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 fi
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 printf %s "checking for $ac_word... " >&6; }
3685 if test ${ac_cv_prog_CC+y}
3686 then :
3687 printf %s "(cached) " >&6
3688 else $as_nop
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC="$CC" # Let the user override the test.
3691 else
3692 ac_prog_rejected=no
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 case $as_dir in #(((
3698 '') as_dir=./ ;;
3699 */) ;;
3700 *) as_dir=$as_dir/ ;;
3701 esac
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705 ac_prog_rejected=yes
3706 continue
3707 fi
3708 ac_cv_prog_CC="cc"
3709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712 done
3713 done
3714 IFS=$as_save_IFS
3715
3716 if test $ac_prog_rejected = yes; then
3717 # We found a bogon in the path, so make sure we never use it.
3718 set dummy $ac_cv_prog_CC
3719 shift
3720 if test $# != 0; then
3721 # We chose a different compiler from the bogus one.
3722 # However, it has the same basename, so the bogon will be chosen
3723 # first if we set CC to just the basename; use the full file name.
3724 shift
3725 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3726 fi
3727 fi
3728 fi
3729 fi
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 printf "%s\n" "$CC" >&6; }
3734 else
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 printf "%s\n" "no" >&6; }
3737 fi
3738
3739
3740 fi
3741 if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
3743 for ac_prog in cl.exe
3744 do
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_CC+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else $as_nop
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 case $as_dir in #(((
3761 '') as_dir=./ ;;
3762 */) ;;
3763 *) as_dir=$as_dir/ ;;
3764 esac
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 CC=$ac_cv_prog_CC
3778 if test -n "$CC"; then
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780 printf "%s\n" "$CC" >&6; }
3781 else
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3784 fi
3785
3786
3787 test -n "$CC" && break
3788 done
3789 fi
3790 if test -z "$CC"; then
3791 ac_ct_CC=$CC
3792 for ac_prog in cl.exe
3793 do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 printf %s "checking for $ac_word... " >&6; }
3798 if test ${ac_cv_prog_ac_ct_CC+y}
3799 then :
3800 printf %s "(cached) " >&6
3801 else $as_nop
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_CC="$ac_prog"
3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 printf "%s\n" "$ac_ct_CC" >&6; }
3830 else
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 printf "%s\n" "no" >&6; }
3833 fi
3834
3835
3836 test -n "$ac_ct_CC" && break
3837 done
3838
3839 if test "x$ac_ct_CC" = x; then
3840 CC=""
3841 else
3842 case $cross_compiling:$ac_tool_warned in
3843 yes:)
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3845 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3846 ac_tool_warned=yes ;;
3847 esac
3848 CC=$ac_ct_CC
3849 fi
3850 fi
3851
3852 fi
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}clang; ac_word=$2
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 printf %s "checking for $ac_word... " >&6; }
3859 if test ${ac_cv_prog_CC+y}
3860 then :
3861 printf %s "(cached) " >&6
3862 else $as_nop
3863 if test -n "$CC"; then
3864 ac_cv_prog_CC="$CC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 case $as_dir in #(((
3871 '') as_dir=./ ;;
3872 */) ;;
3873 *) as_dir=$as_dir/ ;;
3874 esac
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_CC="${ac_tool_prefix}clang"
3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 printf "%s\n" "$CC" >&6; }
3891 else
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 printf "%s\n" "no" >&6; }
3894 fi
3895
3896
3897 fi
3898 if test -z "$ac_cv_prog_CC"; then
3899 ac_ct_CC=$CC
3900 # Extract the first word of "clang", so it can be a program name with args.
3901 set dummy clang; ac_word=$2
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 printf %s "checking for $ac_word... " >&6; }
3904 if test ${ac_cv_prog_ac_ct_CC+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else $as_nop
3908 if test -n "$ac_ct_CC"; then
3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 case $as_dir in #(((
3916 '') as_dir=./ ;;
3917 */) ;;
3918 *) as_dir=$as_dir/ ;;
3919 esac
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_ac_ct_CC="clang"
3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3933 if test -n "$ac_ct_CC"; then
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3935 printf "%s\n" "$ac_ct_CC" >&6; }
3936 else
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 printf "%s\n" "no" >&6; }
3939 fi
3940
3941 if test "x$ac_ct_CC" = x; then
3942 CC=""
3943 else
3944 case $cross_compiling:$ac_tool_warned in
3945 yes:)
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948 ac_tool_warned=yes ;;
3949 esac
3950 CC=$ac_ct_CC
3951 fi
3952 else
3953 CC="$ac_cv_prog_CC"
3954 fi
3955
3956 fi
3957
3958
3959 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error $? "no acceptable C compiler found in \$PATH
3962 See \`config.log' for more details" "$LINENO" 5; }
3963
3964 # Provide some information about the compiler.
3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3966 set X $ac_compile
3967 ac_compiler=$2
3968 for ac_option in --version -v -V -qversion -version; do
3969 { { ac_try="$ac_compiler $ac_option >&5"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 printf "%s\n" "$ac_try_echo"; } >&5
3976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3977 ac_status=$?
3978 if test -s conftest.err; then
3979 sed '10a\
3980 ... rest of stderr output deleted ...
3981 10q' conftest.err >conftest.er1
3982 cat conftest.er1 >&5
3983 fi
3984 rm -f conftest.er1 conftest.err
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }
3987 done
3988
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main (void)
3994 {
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 ac_clean_files_save=$ac_clean_files
4001 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4002 # Try to create an executable without -o first, disregard a.out.
4003 # It will help us diagnose broken compilers, and finding out an intuition
4004 # of exeext.
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4006 printf %s "checking whether the C compiler works... " >&6; }
4007 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4008
4009 # The possible output files:
4010 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4011
4012 ac_rmfiles=
4013 for ac_file in $ac_files
4014 do
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4017 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4018 esac
4019 done
4020 rm -f $ac_rmfiles
4021
4022 if { { ac_try="$ac_link_default"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 printf "%s\n" "$ac_try_echo"; } >&5
4029 (eval "$ac_link_default") 2>&5
4030 ac_status=$?
4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 then :
4034 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4035 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4036 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4037 # so that the user can short-circuit this test for compilers unknown to
4038 # Autoconf.
4039 for ac_file in $ac_files ''
4040 do
4041 test -f "$ac_file" || continue
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4044 ;;
4045 [ab].out )
4046 # We found the default executable, but exeext='' is most
4047 # certainly right.
4048 break;;
4049 *.* )
4050 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4051 then :; else
4052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 fi
4054 # We set ac_cv_exeext here because the later test for it is not
4055 # safe: cross compilers may not add the suffix if given an `-o'
4056 # argument, so we may need to know it at that point already.
4057 # Even if this section looks crufty: it has the advantage of
4058 # actually working.
4059 break;;
4060 * )
4061 break;;
4062 esac
4063 done
4064 test "$ac_cv_exeext" = no && ac_cv_exeext=
4065
4066 else $as_nop
4067 ac_file=''
4068 fi
4069 if test -z "$ac_file"
4070 then :
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 printf "%s\n" "no" >&6; }
4073 printf "%s\n" "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error 77 "C compiler cannot create executables
4079 See \`config.log' for more details" "$LINENO" 5; }
4080 else $as_nop
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082 printf "%s\n" "yes" >&6; }
4083 fi
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4085 printf %s "checking for C compiler default output file name... " >&6; }
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4087 printf "%s\n" "$ac_file" >&6; }
4088 ac_exeext=$ac_cv_exeext
4089
4090 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4091 ac_clean_files=$ac_clean_files_save
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4093 printf %s "checking for suffix of executables... " >&6; }
4094 if { { ac_try="$ac_link"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 printf "%s\n" "$ac_try_echo"; } >&5
4101 (eval "$ac_link") 2>&5
4102 ac_status=$?
4103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4105 then :
4106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4108 # work properly (i.e., refer to `conftest.exe'), while it won't with
4109 # `rm'.
4110 for ac_file in conftest.exe conftest conftest.*; do
4111 test -f "$ac_file" || continue
4112 case $ac_file in
4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4115 break;;
4116 * ) break;;
4117 esac
4118 done
4119 else $as_nop
4120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4123 See \`config.log' for more details" "$LINENO" 5; }
4124 fi
4125 rm -f conftest conftest$ac_cv_exeext
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4127 printf "%s\n" "$ac_cv_exeext" >&6; }
4128
4129 rm -f conftest.$ac_ext
4130 EXEEXT=$ac_cv_exeext
4131 ac_exeext=$EXEEXT
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <stdio.h>
4135 int
4136 main (void)
4137 {
4138 FILE *f = fopen ("conftest.out", "w");
4139 return ferror (f) || fclose (f) != 0;
4140
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 ac_clean_files="$ac_clean_files conftest.out"
4146 # Check that the compiler produces executables we can run. If not, either
4147 # the compiler is broken, or we cross compile.
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4149 printf %s "checking whether we are cross compiling... " >&6; }
4150 if test "$cross_compiling" != yes; then
4151 { { ac_try="$ac_link"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 printf "%s\n" "$ac_try_echo"; } >&5
4158 (eval "$ac_link") 2>&5
4159 ac_status=$?
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 if { ac_try='./conftest$ac_cv_exeext'
4163 { { case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4168 printf "%s\n" "$ac_try_echo"; } >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172 test $ac_status = 0; }; }; then
4173 cross_compiling=no
4174 else
4175 if test "$cross_compiling" = maybe; then
4176 cross_compiling=yes
4177 else
4178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error 77 "cannot run C compiled programs.
4181 If you meant to cross compile, use \`--host'.
4182 See \`config.log' for more details" "$LINENO" 5; }
4183 fi
4184 fi
4185 fi
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4187 printf "%s\n" "$cross_compiling" >&6; }
4188
4189 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4190 ac_clean_files=$ac_clean_files_save
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4192 printf %s "checking for suffix of object files... " >&6; }
4193 if test ${ac_cv_objext+y}
4194 then :
4195 printf %s "(cached) " >&6
4196 else $as_nop
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main (void)
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.o conftest.obj
4209 if { { ac_try="$ac_compile"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 printf "%s\n" "$ac_try_echo"; } >&5
4216 (eval "$ac_compile") 2>&5
4217 ac_status=$?
4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }
4220 then :
4221 for ac_file in conftest.o conftest.obj conftest.*; do
4222 test -f "$ac_file" || continue;
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4226 break;;
4227 esac
4228 done
4229 else $as_nop
4230 printf "%s\n" "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4235 as_fn_error $? "cannot compute suffix of object files: cannot compile
4236 See \`config.log' for more details" "$LINENO" 5; }
4237 fi
4238 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4241 printf "%s\n" "$ac_cv_objext" >&6; }
4242 OBJEXT=$ac_cv_objext
4243 ac_objext=$OBJEXT
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4245 printf %s "checking whether the compiler supports GNU C... " >&6; }
4246 if test ${ac_cv_c_compiler_gnu+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else $as_nop
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252
4253 int
4254 main (void)
4255 {
4256 #ifndef __GNUC__
4257 choke me
4258 #endif
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"
4265 then :
4266 ac_compiler_gnu=yes
4267 else $as_nop
4268 ac_compiler_gnu=no
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4272
4273 fi
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4275 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278 if test $ac_compiler_gnu = yes; then
4279 GCC=yes
4280 else
4281 GCC=
4282 fi
4283 ac_test_CFLAGS=${CFLAGS+y}
4284 ac_save_CFLAGS=$CFLAGS
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4286 printf %s "checking whether $CC accepts -g... " >&6; }
4287 if test ${ac_cv_prog_cc_g+y}
4288 then :
4289 printf %s "(cached) " >&6
4290 else $as_nop
4291 ac_save_c_werror_flag=$ac_c_werror_flag
4292 ac_c_werror_flag=yes
4293 ac_cv_prog_cc_g=no
4294 CFLAGS="-g"
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main (void)
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"
4307 then :
4308 ac_cv_prog_cc_g=yes
4309 else $as_nop
4310 CFLAGS=""
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main (void)
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 if ac_fn_c_try_compile "$LINENO"
4323 then :
4324
4325 else $as_nop
4326 ac_c_werror_flag=$ac_save_c_werror_flag
4327 CFLAGS="-g"
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 int
4332 main (void)
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"
4340 then :
4341 ac_cv_prog_cc_g=yes
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4348 ac_c_werror_flag=$ac_save_c_werror_flag
4349 fi
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4351 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4352 if test $ac_test_CFLAGS; then
4353 CFLAGS=$ac_save_CFLAGS
4354 elif test $ac_cv_prog_cc_g = yes; then
4355 if test "$GCC" = yes; then
4356 CFLAGS="-g -O2"
4357 else
4358 CFLAGS="-g"
4359 fi
4360 else
4361 if test "$GCC" = yes; then
4362 CFLAGS="-O2"
4363 else
4364 CFLAGS=
4365 fi
4366 fi
4367 ac_prog_cc_stdc=no
4368 if test x$ac_prog_cc_stdc = xno
4369 then :
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4371 printf %s "checking for $CC option to enable C11 features... " >&6; }
4372 if test ${ac_cv_prog_cc_c11+y}
4373 then :
4374 printf %s "(cached) " >&6
4375 else $as_nop
4376 ac_cv_prog_cc_c11=no
4377 ac_save_CC=$CC
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 $ac_c_conftest_c11_program
4381 _ACEOF
4382 for ac_arg in '' -std=gnu11
4383 do
4384 CC="$ac_save_CC $ac_arg"
4385 if ac_fn_c_try_compile "$LINENO"
4386 then :
4387 ac_cv_prog_cc_c11=$ac_arg
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.beam
4390 test "x$ac_cv_prog_cc_c11" != "xno" && break
4391 done
4392 rm -f conftest.$ac_ext
4393 CC=$ac_save_CC
4394 fi
4395
4396 if test "x$ac_cv_prog_cc_c11" = xno
4397 then :
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399 printf "%s\n" "unsupported" >&6; }
4400 else $as_nop
4401 if test "x$ac_cv_prog_cc_c11" = x
4402 then :
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4404 printf "%s\n" "none needed" >&6; }
4405 else $as_nop
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4407 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4408 CC="$CC $ac_cv_prog_cc_c11"
4409 fi
4410 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4411 ac_prog_cc_stdc=c11
4412 fi
4413 fi
4414 if test x$ac_prog_cc_stdc = xno
4415 then :
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4417 printf %s "checking for $CC option to enable C99 features... " >&6; }
4418 if test ${ac_cv_prog_cc_c99+y}
4419 then :
4420 printf %s "(cached) " >&6
4421 else $as_nop
4422 ac_cv_prog_cc_c99=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 $ac_c_conftest_c99_program
4427 _ACEOF
4428 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4429 do
4430 CC="$ac_save_CC $ac_arg"
4431 if ac_fn_c_try_compile "$LINENO"
4432 then :
4433 ac_cv_prog_cc_c99=$ac_arg
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.beam
4436 test "x$ac_cv_prog_cc_c99" != "xno" && break
4437 done
4438 rm -f conftest.$ac_ext
4439 CC=$ac_save_CC
4440 fi
4441
4442 if test "x$ac_cv_prog_cc_c99" = xno
4443 then :
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4445 printf "%s\n" "unsupported" >&6; }
4446 else $as_nop
4447 if test "x$ac_cv_prog_cc_c99" = x
4448 then :
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4450 printf "%s\n" "none needed" >&6; }
4451 else $as_nop
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4453 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4454 CC="$CC $ac_cv_prog_cc_c99"
4455 fi
4456 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4457 ac_prog_cc_stdc=c99
4458 fi
4459 fi
4460 if test x$ac_prog_cc_stdc = xno
4461 then :
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4463 printf %s "checking for $CC option to enable C89 features... " >&6; }
4464 if test ${ac_cv_prog_cc_c89+y}
4465 then :
4466 printf %s "(cached) " >&6
4467 else $as_nop
4468 ac_cv_prog_cc_c89=no
4469 ac_save_CC=$CC
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 $ac_c_conftest_c89_program
4473 _ACEOF
4474 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4475 do
4476 CC="$ac_save_CC $ac_arg"
4477 if ac_fn_c_try_compile "$LINENO"
4478 then :
4479 ac_cv_prog_cc_c89=$ac_arg
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam
4482 test "x$ac_cv_prog_cc_c89" != "xno" && break
4483 done
4484 rm -f conftest.$ac_ext
4485 CC=$ac_save_CC
4486 fi
4487
4488 if test "x$ac_cv_prog_cc_c89" = xno
4489 then :
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4491 printf "%s\n" "unsupported" >&6; }
4492 else $as_nop
4493 if test "x$ac_cv_prog_cc_c89" = x
4494 then :
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4496 printf "%s\n" "none needed" >&6; }
4497 else $as_nop
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4499 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 fi
4502 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4503 ac_prog_cc_stdc=c89
4504 fi
4505 fi
4506
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4520 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4521 if test ${am_cv_prog_cc_c_o+y}
4522 then :
4523 printf %s "(cached) " >&6
4524 else $as_nop
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527
4528 int
4529 main (void)
4530 {
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 # Make sure it works both with $CC and with simple cc.
4537 # Following AC_PROG_CC_C_O, we do the test twice because some
4538 # compilers refuse to overwrite an existing .o file with -o,
4539 # though they will create one.
4540 am_cv_prog_cc_c_o=yes
4541 for am_i in 1 2; do
4542 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4543 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } \
4547 && test -f conftest2.$ac_objext; then
4548 : OK
4549 else
4550 am_cv_prog_cc_c_o=no
4551 break
4552 fi
4553 done
4554 rm -f core conftest*
4555 unset am_i
4556 fi
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4558 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4559 if test "$am_cv_prog_cc_c_o" != yes; then
4560 # Losing compiler, so override with the script.
4561 # FIXME: It is wrong to rewrite CC.
4562 # But if we don't then we get into trouble of one sort or another.
4563 # A longer-term fix would be to have automake use am__CC in this case,
4564 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4565 CC="$am_aux_dir/compile $CC"
4566 fi
4567 ac_ext=c
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574 depcc="$CC" am_compiler_list=
4575
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4577 printf %s "checking dependency style of $depcc... " >&6; }
4578 if test ${am_cv_CC_dependencies_compiler_type+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else $as_nop
4582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583 # We make a subdir and do the tests there. Otherwise we can end up
4584 # making bogus files that we don't know about and never remove. For
4585 # instance it was reported that on HP-UX the gcc test will end up
4586 # making a dummy file named 'D' -- because '-MD' means "put the output
4587 # in D".
4588 rm -rf conftest.dir
4589 mkdir conftest.dir
4590 # Copy depcomp to subdir because otherwise we won't find it if we're
4591 # using a relative directory.
4592 cp "$am_depcomp" conftest.dir
4593 cd conftest.dir
4594 # We will build objects and dependencies in a subdirectory because
4595 # it helps to detect inapplicable dependency modes. For instance
4596 # both Tru64's cc and ICC support -MD to output dependencies as a
4597 # side effect of compilation, but ICC will put the dependencies in
4598 # the current directory while Tru64 will put them in the object
4599 # directory.
4600 mkdir sub
4601
4602 am_cv_CC_dependencies_compiler_type=none
4603 if test "$am_compiler_list" = ""; then
4604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4605 fi
4606 am__universal=false
4607 case " $depcc " in #(
4608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4609 esac
4610
4611 for depmode in $am_compiler_list; do
4612 # Setup a source with many dependencies, because some compilers
4613 # like to wrap large dependency lists on column 80 (with \), and
4614 # we should not choose a depcomp mode which is confused by this.
4615 #
4616 # We need to recreate these files for each test, as the compiler may
4617 # overwrite some of them when testing with obscure command lines.
4618 # This happens at least with the AIX C compiler.
4619 : > sub/conftest.c
4620 for i in 1 2 3 4 5 6; do
4621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4623 # Solaris 10 /bin/sh.
4624 echo '/* dummy */' > sub/conftst$i.h
4625 done
4626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4627
4628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4629 # mode. It turns out that the SunPro C++ compiler does not properly
4630 # handle '-M -o', and we need to detect this. Also, some Intel
4631 # versions had trouble with output in subdirs.
4632 am__obj=sub/conftest.${OBJEXT-o}
4633 am__minus_obj="-o $am__obj"
4634 case $depmode in
4635 gcc)
4636 # This depmode causes a compiler race in universal mode.
4637 test "$am__universal" = false || continue
4638 ;;
4639 nosideeffect)
4640 # After this tag, mechanisms are not by side-effect, so they'll
4641 # only be used when explicitly requested.
4642 if test "x$enable_dependency_tracking" = xyes; then
4643 continue
4644 else
4645 break
4646 fi
4647 ;;
4648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4649 # This compiler won't grok '-c -o', but also, the minuso test has
4650 # not run yet. These depmodes are late enough in the game, and
4651 # so weak that their functioning should not be impacted.
4652 am__obj=conftest.${OBJEXT-o}
4653 am__minus_obj=
4654 ;;
4655 none) break ;;
4656 esac
4657 if depmode=$depmode \
4658 source=sub/conftest.c object=$am__obj \
4659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4661 >/dev/null 2>conftest.err &&
4662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4666 # icc doesn't choke on unknown options, it will just issue warnings
4667 # or remarks (even with -Werror). So we grep stderr for any message
4668 # that says an option was ignored or not supported.
4669 # When given -MP, icc 7.0 and 7.1 complain thusly:
4670 # icc: Command line warning: ignoring option '-M'; no argument required
4671 # The diagnosis changed in icc 8.0:
4672 # icc: Command line remark: option '-MP' not supported
4673 if (grep 'ignoring option' conftest.err ||
4674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4675 am_cv_CC_dependencies_compiler_type=$depmode
4676 break
4677 fi
4678 fi
4679 done
4680
4681 cd ..
4682 rm -rf conftest.dir
4683 else
4684 am_cv_CC_dependencies_compiler_type=none
4685 fi
4686
4687 fi
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4689 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4691
4692 if
4693 test "x$enable_dependency_tracking" != xno \
4694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4695 am__fastdepCC_TRUE=
4696 am__fastdepCC_FALSE='#'
4697 else
4698 am__fastdepCC_TRUE='#'
4699 am__fastdepCC_FALSE=
4700 fi
4701
4702
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704 printf %s "checking for a sed that does not truncate output... " >&6; }
4705 if test ${ac_cv_path_SED+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else $as_nop
4709 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4710 for ac_i in 1 2 3 4 5 6 7; do
4711 ac_script="$ac_script$as_nl$ac_script"
4712 done
4713 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4714 { ac_script=; unset ac_script;}
4715 if test -z "$SED"; then
4716 ac_path_SED_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 case $as_dir in #(((
4723 '') as_dir=./ ;;
4724 */) ;;
4725 *) as_dir=$as_dir/ ;;
4726 esac
4727 for ac_prog in sed gsed
4728 do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4731 as_fn_executable_p "$ac_path_SED" || continue
4732 # Check for GNU ac_path_SED and select it if it is found.
4733 # Check for GNU $ac_path_SED
4734 case `"$ac_path_SED" --version 2>&1` in
4735 *GNU*)
4736 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4737 *)
4738 ac_count=0
4739 printf %s 0123456789 >"conftest.in"
4740 while :
4741 do
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 printf "%s\n" '' >> "conftest.nl"
4746 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748 as_fn_arith $ac_count + 1 && ac_count=$as_val
4749 if test $ac_count -gt ${ac_path_SED_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_SED="$ac_path_SED"
4752 ac_path_SED_max=$ac_count
4753 fi
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4756 done
4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 esac
4759
4760 $ac_path_SED_found && break 3
4761 done
4762 done
4763 done
4764 IFS=$as_save_IFS
4765 if test -z "$ac_cv_path_SED"; then
4766 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4767 fi
4768 else
4769 ac_cv_path_SED=$SED
4770 fi
4771
4772 fi
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4774 printf "%s\n" "$ac_cv_path_SED" >&6; }
4775 SED="$ac_cv_path_SED"
4776 rm -f conftest.sed
4777
4778 test -z "$SED" && SED=sed
4779 Xsed="$SED -e 1s/^X//"
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4792 printf %s "checking for grep that handles long lines and -e... " >&6; }
4793 if test ${ac_cv_path_GREP+y}
4794 then :
4795 printf %s "(cached) " >&6
4796 else $as_nop
4797 if test -z "$GREP"; then
4798 ac_path_GREP_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_prog in grep ggrep
4810 do
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4813 as_fn_executable_p "$ac_path_GREP" || continue
4814 # Check for GNU ac_path_GREP and select it if it is found.
4815 # Check for GNU $ac_path_GREP
4816 case `"$ac_path_GREP" --version 2>&1` in
4817 *GNU*)
4818 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4819 *)
4820 ac_count=0
4821 printf %s 0123456789 >"conftest.in"
4822 while :
4823 do
4824 cat "conftest.in" "conftest.in" >"conftest.tmp"
4825 mv "conftest.tmp" "conftest.in"
4826 cp "conftest.in" "conftest.nl"
4827 printf "%s\n" 'GREP' >> "conftest.nl"
4828 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830 as_fn_arith $ac_count + 1 && ac_count=$as_val
4831 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4832 # Best one so far, save it but keep looking for a better one
4833 ac_cv_path_GREP="$ac_path_GREP"
4834 ac_path_GREP_max=$ac_count
4835 fi
4836 # 10*(2^10) chars as input seems more than enough
4837 test $ac_count -gt 10 && break
4838 done
4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840 esac
4841
4842 $ac_path_GREP_found && break 3
4843 done
4844 done
4845 done
4846 IFS=$as_save_IFS
4847 if test -z "$ac_cv_path_GREP"; then
4848 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4849 fi
4850 else
4851 ac_cv_path_GREP=$GREP
4852 fi
4853
4854 fi
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4856 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4857 GREP="$ac_cv_path_GREP"
4858
4859
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4861 printf %s "checking for egrep... " >&6; }
4862 if test ${ac_cv_path_EGREP+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else $as_nop
4866 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4867 then ac_cv_path_EGREP="$GREP -E"
4868 else
4869 if test -z "$EGREP"; then
4870 ac_path_EGREP_found=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4874 do
4875 IFS=$as_save_IFS
4876 case $as_dir in #(((
4877 '') as_dir=./ ;;
4878 */) ;;
4879 *) as_dir=$as_dir/ ;;
4880 esac
4881 for ac_prog in egrep
4882 do
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4885 as_fn_executable_p "$ac_path_EGREP" || continue
4886 # Check for GNU ac_path_EGREP and select it if it is found.
4887 # Check for GNU $ac_path_EGREP
4888 case `"$ac_path_EGREP" --version 2>&1` in
4889 *GNU*)
4890 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4891 *)
4892 ac_count=0
4893 printf %s 0123456789 >"conftest.in"
4894 while :
4895 do
4896 cat "conftest.in" "conftest.in" >"conftest.tmp"
4897 mv "conftest.tmp" "conftest.in"
4898 cp "conftest.in" "conftest.nl"
4899 printf "%s\n" 'EGREP' >> "conftest.nl"
4900 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902 as_fn_arith $ac_count + 1 && ac_count=$as_val
4903 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4904 # Best one so far, save it but keep looking for a better one
4905 ac_cv_path_EGREP="$ac_path_EGREP"
4906 ac_path_EGREP_max=$ac_count
4907 fi
4908 # 10*(2^10) chars as input seems more than enough
4909 test $ac_count -gt 10 && break
4910 done
4911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912 esac
4913
4914 $ac_path_EGREP_found && break 3
4915 done
4916 done
4917 done
4918 IFS=$as_save_IFS
4919 if test -z "$ac_cv_path_EGREP"; then
4920 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921 fi
4922 else
4923 ac_cv_path_EGREP=$EGREP
4924 fi
4925
4926 fi
4927 fi
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4929 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4930 EGREP="$ac_cv_path_EGREP"
4931
4932
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4934 printf %s "checking for fgrep... " >&6; }
4935 if test ${ac_cv_path_FGREP+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else $as_nop
4939 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4940 then ac_cv_path_FGREP="$GREP -F"
4941 else
4942 if test -z "$FGREP"; then
4943 ac_path_FGREP_found=false
4944 # Loop through the user's path and test for each of PROGNAME-LIST
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4947 do
4948 IFS=$as_save_IFS
4949 case $as_dir in #(((
4950 '') as_dir=./ ;;
4951 */) ;;
4952 *) as_dir=$as_dir/ ;;
4953 esac
4954 for ac_prog in fgrep
4955 do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_FGREP" || continue
4959 # Check for GNU ac_path_FGREP and select it if it is found.
4960 # Check for GNU $ac_path_FGREP
4961 case `"$ac_path_FGREP" --version 2>&1` in
4962 *GNU*)
4963 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4964 *)
4965 ac_count=0
4966 printf %s 0123456789 >"conftest.in"
4967 while :
4968 do
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 printf "%s\n" 'FGREP' >> "conftest.nl"
4973 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975 as_fn_arith $ac_count + 1 && ac_count=$as_val
4976 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_FGREP="$ac_path_FGREP"
4979 ac_path_FGREP_max=$ac_count
4980 fi
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4983 done
4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4986
4987 $ac_path_FGREP_found && break 3
4988 done
4989 done
4990 done
4991 IFS=$as_save_IFS
4992 if test -z "$ac_cv_path_FGREP"; then
4993 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994 fi
4995 else
4996 ac_cv_path_FGREP=$FGREP
4997 fi
4998
4999 fi
5000 fi
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5002 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5003 FGREP="$ac_cv_path_FGREP"
5004
5005
5006 test -z "$GREP" && GREP=grep
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 # Check whether --with-gnu-ld was given.
5027 if test ${with_gnu_ld+y}
5028 then :
5029 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5030 else $as_nop
5031 with_gnu_ld=no
5032 fi
5033
5034 ac_prog=ld
5035 if test yes = "$GCC"; then
5036 # Check if gcc -print-prog-name=ld gives a path.
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5038 printf %s "checking for ld used by $CC... " >&6; }
5039 case $host in
5040 *-*-mingw*)
5041 # gcc leaves a trailing carriage return, which upsets mingw
5042 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5043 *)
5044 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5045 esac
5046 case $ac_prog in
5047 # Accept absolute paths.
5048 [\\/]* | ?:[\\/]*)
5049 re_direlt='/[^/][^/]*/\.\./'
5050 # Canonicalize the pathname of ld
5051 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5052 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5053 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5054 done
5055 test -z "$LD" && LD=$ac_prog
5056 ;;
5057 "")
5058 # If it fails, then pretend we aren't using GCC.
5059 ac_prog=ld
5060 ;;
5061 *)
5062 # If it is relative, then search for the first ld in PATH.
5063 with_gnu_ld=unknown
5064 ;;
5065 esac
5066 elif test yes = "$with_gnu_ld"; then
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5068 printf %s "checking for GNU ld... " >&6; }
5069 else
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5071 printf %s "checking for non-GNU ld... " >&6; }
5072 fi
5073 if test ${lt_cv_path_LD+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else $as_nop
5077 if test -z "$LD"; then
5078 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5079 for ac_dir in $PATH; do
5080 IFS=$lt_save_ifs
5081 test -z "$ac_dir" && ac_dir=.
5082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5083 lt_cv_path_LD=$ac_dir/$ac_prog
5084 # Check to see if the program is GNU ld. I'd rather use --version,
5085 # but apparently some variants of GNU ld only accept -v.
5086 # Break only if it was the GNU/non-GNU ld that we prefer.
5087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5088 *GNU* | *'with BFD'*)
5089 test no != "$with_gnu_ld" && break
5090 ;;
5091 *)
5092 test yes != "$with_gnu_ld" && break
5093 ;;
5094 esac
5095 fi
5096 done
5097 IFS=$lt_save_ifs
5098 else
5099 lt_cv_path_LD=$LD # Let the user override the test with a path.
5100 fi
5101 fi
5102
5103 LD=$lt_cv_path_LD
5104 if test -n "$LD"; then
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106 printf "%s\n" "$LD" >&6; }
5107 else
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 printf "%s\n" "no" >&6; }
5110 fi
5111 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5114 if test ${lt_cv_prog_gnu_ld+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119 case `$LD -v 2>&1 </dev/null` in
5120 *GNU* | *'with BFD'*)
5121 lt_cv_prog_gnu_ld=yes
5122 ;;
5123 *)
5124 lt_cv_prog_gnu_ld=no
5125 ;;
5126 esac
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5130 with_gnu_ld=$lt_cv_prog_gnu_ld
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142 if test ${lt_cv_path_NM+y}
5143 then :
5144 printf %s "(cached) " >&6
5145 else $as_nop
5146 if test -n "$NM"; then
5147 # Let the user override the test.
5148 lt_cv_path_NM=$NM
5149 else
5150 lt_nm_to_check=${ac_tool_prefix}nm
5151 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5152 lt_nm_to_check="$lt_nm_to_check nm"
5153 fi
5154 for lt_tmp_nm in $lt_nm_to_check; do
5155 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5156 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5157 IFS=$lt_save_ifs
5158 test -z "$ac_dir" && ac_dir=.
5159 tmp_nm=$ac_dir/$lt_tmp_nm
5160 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5161 # Check to see if the nm accepts a BSD-compat flag.
5162 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5163 # nm: unknown option "B" ignored
5164 # Tru64's nm complains that /dev/null is an invalid object file
5165 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5166 case $build_os in
5167 mingw*) lt_bad_file=conftest.nm/nofile ;;
5168 *) lt_bad_file=/dev/null ;;
5169 esac
5170 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5171 *$lt_bad_file* | *'Invalid file or object type'*)
5172 lt_cv_path_NM="$tmp_nm -B"
5173 break 2
5174 ;;
5175 *)
5176 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5177 */dev/null*)
5178 lt_cv_path_NM="$tmp_nm -p"
5179 break 2
5180 ;;
5181 *)
5182 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5183 continue # so that we can try to find one that supports BSD flags
5184 ;;
5185 esac
5186 ;;
5187 esac
5188 fi
5189 done
5190 IFS=$lt_save_ifs
5191 done
5192 : ${lt_cv_path_NM=no}
5193 fi
5194 fi
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5196 printf "%s\n" "$lt_cv_path_NM" >&6; }
5197 if test no != "$lt_cv_path_NM"; then
5198 NM=$lt_cv_path_NM
5199 else
5200 # Didn't find any BSD compatible name lister, look for dumpbin.
5201 if test -n "$DUMPBIN"; then :
5202 # Let the user override the test.
5203 else
5204 if test -n "$ac_tool_prefix"; then
5205 for ac_prog in dumpbin "link -dump"
5206 do
5207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 printf %s "checking for $ac_word... " >&6; }
5211 if test ${ac_cv_prog_DUMPBIN+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else $as_nop
5215 if test -n "$DUMPBIN"; then
5216 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 case $as_dir in #(((
5223 '') as_dir=./ ;;
5224 */) ;;
5225 *) as_dir=$as_dir/ ;;
5226 esac
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 DUMPBIN=$ac_cv_prog_DUMPBIN
5240 if test -n "$DUMPBIN"; then
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5242 printf "%s\n" "$DUMPBIN" >&6; }
5243 else
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 printf "%s\n" "no" >&6; }
5246 fi
5247
5248
5249 test -n "$DUMPBIN" && break
5250 done
5251 fi
5252 if test -z "$DUMPBIN"; then
5253 ac_ct_DUMPBIN=$DUMPBIN
5254 for ac_prog in dumpbin "link -dump"
5255 do
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 printf %s "checking for $ac_word... " >&6; }
5260 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else $as_nop
5264 if test -n "$ac_ct_DUMPBIN"; then
5265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 case $as_dir in #(((
5272 '') as_dir=./ ;;
5273 */) ;;
5274 *) as_dir=$as_dir/ ;;
5275 esac
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5289 if test -n "$ac_ct_DUMPBIN"; then
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5291 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5292 else
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 printf "%s\n" "no" >&6; }
5295 fi
5296
5297
5298 test -n "$ac_ct_DUMPBIN" && break
5299 done
5300
5301 if test "x$ac_ct_DUMPBIN" = x; then
5302 DUMPBIN=":"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 DUMPBIN=$ac_ct_DUMPBIN
5311 fi
5312 fi
5313
5314 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5315 *COFF*)
5316 DUMPBIN="$DUMPBIN -symbols -headers"
5317 ;;
5318 *)
5319 DUMPBIN=:
5320 ;;
5321 esac
5322 fi
5323
5324 if test : != "$DUMPBIN"; then
5325 NM=$DUMPBIN
5326 fi
5327 fi
5328 test -z "$NM" && NM=nm
5329
5330
5331
5332
5333
5334
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5336 printf %s "checking the name lister ($NM) interface... " >&6; }
5337 if test ${lt_cv_nm_interface+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else $as_nop
5341 lt_cv_nm_interface="BSD nm"
5342 echo "int some_variable = 0;" > conftest.$ac_ext
5343 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5344 (eval "$ac_compile" 2>conftest.err)
5345 cat conftest.err >&5
5346 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5347 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5348 cat conftest.err >&5
5349 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5350 cat conftest.out >&5
5351 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5352 lt_cv_nm_interface="MS dumpbin"
5353 fi
5354 rm -f conftest*
5355 fi
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5357 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5358
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5360 printf %s "checking whether ln -s works... " >&6; }
5361 LN_S=$as_ln_s
5362 if test "$LN_S" = "ln -s"; then
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 printf "%s\n" "yes" >&6; }
5365 else
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5367 printf "%s\n" "no, using $LN_S" >&6; }
5368 fi
5369
5370 # find the maximum length of command line arguments
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5372 printf %s "checking the maximum length of command line arguments... " >&6; }
5373 if test ${lt_cv_sys_max_cmd_len+y}
5374 then :
5375 printf %s "(cached) " >&6
5376 else $as_nop
5377 i=0
5378 teststring=ABCD
5379
5380 case $build_os in
5381 msdosdjgpp*)
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5387 ;;
5388
5389 gnu*)
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len=-1;
5394 ;;
5395
5396 cygwin* | mingw* | cegcc*)
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 mint*)
5408 # On MiNT this can take a long time and run out of memory.
5409 lt_cv_sys_max_cmd_len=8192;
5410 ;;
5411
5412 amigaos*)
5413 # On AmigaOS with pdksh, this test takes hours, literally.
5414 # So we just punt and use a minimum line length of 8192.
5415 lt_cv_sys_max_cmd_len=8192;
5416 ;;
5417
5418 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5419 # This has been around since 386BSD, at least. Likely further.
5420 if test -x /sbin/sysctl; then
5421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5422 elif test -x /usr/sbin/sysctl; then
5423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5424 else
5425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5426 fi
5427 # And add a safety zone
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430 ;;
5431
5432 interix*)
5433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5434 lt_cv_sys_max_cmd_len=196608
5435 ;;
5436
5437 os2*)
5438 # The test takes a long time on OS/2.
5439 lt_cv_sys_max_cmd_len=8192
5440 ;;
5441
5442 osf*)
5443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5445 # nice to cause kernel panics so lets avoid the loop below.
5446 # First set a reasonable default.
5447 lt_cv_sys_max_cmd_len=16384
5448 #
5449 if test -x /sbin/sysconfig; then
5450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5452 esac
5453 fi
5454 ;;
5455 sco3.2v5*)
5456 lt_cv_sys_max_cmd_len=102400
5457 ;;
5458 sysv5* | sco5v6* | sysv4.2uw2*)
5459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5460 if test -n "$kargmax"; then
5461 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5462 else
5463 lt_cv_sys_max_cmd_len=32768
5464 fi
5465 ;;
5466 *)
5467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5468 if test -n "$lt_cv_sys_max_cmd_len" && \
5469 test undefined != "$lt_cv_sys_max_cmd_len"; then
5470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5472 else
5473 # Make teststring a little bigger before we do anything with it.
5474 # a 1K string should be a reasonable start.
5475 for i in 1 2 3 4 5 6 7 8; do
5476 teststring=$teststring$teststring
5477 done
5478 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5479 # If test is not a shell built-in, we'll probably end up computing a
5480 # maximum length that is only half of the actual maximum length, but
5481 # we can't tell.
5482 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5483 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5484 test 17 != "$i" # 1/2 MB should be enough
5485 do
5486 i=`expr $i + 1`
5487 teststring=$teststring$teststring
5488 done
5489 # Only check the string length outside the loop.
5490 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5491 teststring=
5492 # Add a significant safety factor because C++ compilers can tack on
5493 # massive amounts of additional arguments before passing them to the
5494 # linker. It appears as though 1/2 is a usable value.
5495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5496 fi
5497 ;;
5498 esac
5499
5500 fi
5501
5502 if test -n "$lt_cv_sys_max_cmd_len"; then
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5504 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5505 else
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5507 printf "%s\n" "none" >&6; }
5508 fi
5509 max_cmd_len=$lt_cv_sys_max_cmd_len
5510
5511
5512
5513
5514
5515
5516 : ${CP="cp -f"}
5517 : ${MV="mv -f"}
5518 : ${RM="rm -f"}
5519
5520 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5521 lt_unset=unset
5522 else
5523 lt_unset=false
5524 fi
5525
5526
5527
5528
5529
5530 # test EBCDIC or ASCII
5531 case `echo X|tr X '\101'` in
5532 A) # ASCII based system
5533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5534 lt_SP2NL='tr \040 \012'
5535 lt_NL2SP='tr \015\012 \040\040'
5536 ;;
5537 *) # EBCDIC based system
5538 lt_SP2NL='tr \100 \n'
5539 lt_NL2SP='tr \r\n \100\100'
5540 ;;
5541 esac
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5552 printf %s "checking how to convert $build file names to $host format... " >&6; }
5553 if test ${lt_cv_to_host_file_cmd+y}
5554 then :
5555 printf %s "(cached) " >&6
5556 else $as_nop
5557 case $host in
5558 *-*-mingw* )
5559 case $build in
5560 *-*-mingw* ) # actually msys
5561 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5562 ;;
5563 *-*-cygwin* )
5564 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5565 ;;
5566 * ) # otherwise, assume *nix
5567 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5568 ;;
5569 esac
5570 ;;
5571 *-*-cygwin* )
5572 case $build in
5573 *-*-mingw* ) # actually msys
5574 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5575 ;;
5576 *-*-cygwin* )
5577 lt_cv_to_host_file_cmd=func_convert_file_noop
5578 ;;
5579 * ) # otherwise, assume *nix
5580 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5581 ;;
5582 esac
5583 ;;
5584 * ) # unhandled hosts (and "normal" native builds)
5585 lt_cv_to_host_file_cmd=func_convert_file_noop
5586 ;;
5587 esac
5588
5589 fi
5590
5591 to_host_file_cmd=$lt_cv_to_host_file_cmd
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5593 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5594
5595
5596
5597
5598
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5600 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5601 if test ${lt_cv_to_tool_file_cmd+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
5605 #assume ordinary cross tools, or native build.
5606 lt_cv_to_tool_file_cmd=func_convert_file_noop
5607 case $host in
5608 *-*-mingw* )
5609 case $build in
5610 *-*-mingw* ) # actually msys
5611 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5612 ;;
5613 esac
5614 ;;
5615 esac
5616
5617 fi
5618
5619 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5621 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5622
5623
5624
5625
5626
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5628 printf %s "checking for $LD option to reload object files... " >&6; }
5629 if test ${lt_cv_ld_reload_flag+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else $as_nop
5633 lt_cv_ld_reload_flag='-r'
5634 fi
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5636 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5637 reload_flag=$lt_cv_ld_reload_flag
5638 case $reload_flag in
5639 "" | " "*) ;;
5640 *) reload_flag=" $reload_flag" ;;
5641 esac
5642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5643 case $host_os in
5644 cygwin* | mingw* | pw32* | cegcc*)
5645 if test yes != "$GCC"; then
5646 reload_cmds=false
5647 fi
5648 ;;
5649 darwin*)
5650 if test yes = "$GCC"; then
5651 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5652 else
5653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5654 fi
5655 ;;
5656 esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}file; ac_word=$2
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 printf %s "checking for $ac_word... " >&6; }
5671 if test ${ac_cv_prog_FILECMD+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else $as_nop
5675 if test -n "$FILECMD"; then
5676 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681 IFS=$as_save_IFS
5682 case $as_dir in #(((
5683 '') as_dir=./ ;;
5684 */) ;;
5685 *) as_dir=$as_dir/ ;;
5686 esac
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 FILECMD=$ac_cv_prog_FILECMD
5700 if test -n "$FILECMD"; then
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5702 printf "%s\n" "$FILECMD" >&6; }
5703 else
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 printf "%s\n" "no" >&6; }
5706 fi
5707
5708
5709 fi
5710 if test -z "$ac_cv_prog_FILECMD"; then
5711 ac_ct_FILECMD=$FILECMD
5712 # Extract the first word of "file", so it can be a program name with args.
5713 set dummy file; ac_word=$2
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 printf %s "checking for $ac_word... " >&6; }
5716 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else $as_nop
5720 if test -n "$ac_ct_FILECMD"; then
5721 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 case $as_dir in #(((
5728 '') as_dir=./ ;;
5729 */) ;;
5730 *) as_dir=$as_dir/ ;;
5731 esac
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_ac_ct_FILECMD="file"
5735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5745 if test -n "$ac_ct_FILECMD"; then
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5747 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5748 else
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 printf "%s\n" "no" >&6; }
5751 fi
5752
5753 if test "x$ac_ct_FILECMD" = x; then
5754 FILECMD=":"
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757 yes:)
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762 FILECMD=$ac_ct_FILECMD
5763 fi
5764 else
5765 FILECMD="$ac_cv_prog_FILECMD"
5766 fi
5767
5768
5769
5770
5771
5772
5773
5774 if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 printf %s "checking for $ac_word... " >&6; }
5779 if test ${ac_cv_prog_OBJDUMP+y}
5780 then :
5781 printf %s "(cached) " >&6
5782 else $as_nop
5783 if test -n "$OBJDUMP"; then
5784 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 case $as_dir in #(((
5791 '') as_dir=./ ;;
5792 */) ;;
5793 *) as_dir=$as_dir/ ;;
5794 esac
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805 fi
5806 fi
5807 OBJDUMP=$ac_cv_prog_OBJDUMP
5808 if test -n "$OBJDUMP"; then
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5810 printf "%s\n" "$OBJDUMP" >&6; }
5811 else
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 printf "%s\n" "no" >&6; }
5814 fi
5815
5816
5817 fi
5818 if test -z "$ac_cv_prog_OBJDUMP"; then
5819 ac_ct_OBJDUMP=$OBJDUMP
5820 # Extract the first word of "objdump", so it can be a program name with args.
5821 set dummy objdump; ac_word=$2
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 printf %s "checking for $ac_word... " >&6; }
5824 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5825 then :
5826 printf %s "(cached) " >&6
5827 else $as_nop
5828 if test -n "$ac_ct_OBJDUMP"; then
5829 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 case $as_dir in #(((
5836 '') as_dir=./ ;;
5837 */) ;;
5838 *) as_dir=$as_dir/ ;;
5839 esac
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5853 if test -n "$ac_ct_OBJDUMP"; then
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5855 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5856 else
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 printf "%s\n" "no" >&6; }
5859 fi
5860
5861 if test "x$ac_ct_OBJDUMP" = x; then
5862 OBJDUMP="false"
5863 else
5864 case $cross_compiling:$ac_tool_warned in
5865 yes:)
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868 ac_tool_warned=yes ;;
5869 esac
5870 OBJDUMP=$ac_ct_OBJDUMP
5871 fi
5872 else
5873 OBJDUMP="$ac_cv_prog_OBJDUMP"
5874 fi
5875
5876 test -z "$OBJDUMP" && OBJDUMP=objdump
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5887 printf %s "checking how to recognize dependent libraries... " >&6; }
5888 if test ${lt_cv_deplibs_check_method+y}
5889 then :
5890 printf %s "(cached) " >&6
5891 else $as_nop
5892 lt_cv_file_magic_cmd='$MAGIC_CMD'
5893 lt_cv_file_magic_test_file=
5894 lt_cv_deplibs_check_method='unknown'
5895 # Need to set the preceding variable on all platforms that support
5896 # interlibrary dependencies.
5897 # 'none' -- dependencies not supported.
5898 # 'unknown' -- same as none, but documents that we really don't know.
5899 # 'pass_all' -- all dependencies passed with no checks.
5900 # 'test_compile' -- check by making test program.
5901 # 'file_magic [[regex]]' -- check by looking for files in library path
5902 # that responds to the $file_magic_cmd with a given extended regex.
5903 # If you have 'file' or equivalent on your system and you're not sure
5904 # whether 'pass_all' will *always* work, you probably want this one.
5905
5906 case $host_os in
5907 aix[4-9]*)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910
5911 beos*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915 bsdi[45]*)
5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5917 lt_cv_file_magic_cmd='$FILECMD -L'
5918 lt_cv_file_magic_test_file=/shlib/libc.so
5919 ;;
5920
5921 cygwin*)
5922 # func_win32_libid is a shell function defined in ltmain.sh
5923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5924 lt_cv_file_magic_cmd='func_win32_libid'
5925 ;;
5926
5927 mingw* | pw32*)
5928 # Base MSYS/MinGW do not provide the 'file' command needed by
5929 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5930 # unless we find 'file', for example because we are cross-compiling.
5931 if ( file / ) >/dev/null 2>&1; then
5932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5933 lt_cv_file_magic_cmd='func_win32_libid'
5934 else
5935 # Keep this pattern in sync with the one in func_win32_libid.
5936 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5937 lt_cv_file_magic_cmd='$OBJDUMP -f'
5938 fi
5939 ;;
5940
5941 cegcc*)
5942 # use the weaker test based on 'objdump'. See mingw*.
5943 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5944 lt_cv_file_magic_cmd='$OBJDUMP -f'
5945 ;;
5946
5947 darwin* | rhapsody*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 freebsd* | dragonfly* | midnightbsd*)
5952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5953 case $host_cpu in
5954 i*86 )
5955 # Not sure whether the presence of OpenBSD here was a mistake.
5956 # Let's accept both of them until this is cleared up.
5957 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5958 lt_cv_file_magic_cmd=$FILECMD
5959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5960 ;;
5961 esac
5962 else
5963 lt_cv_deplibs_check_method=pass_all
5964 fi
5965 ;;
5966
5967 haiku*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 hpux10.20* | hpux11*)
5972 lt_cv_file_magic_cmd=$FILECMD
5973 case $host_cpu in
5974 ia64*)
5975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5977 ;;
5978 hppa*64*)
5979 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]'
5980 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5981 ;;
5982 *)
5983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5984 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5985 ;;
5986 esac
5987 ;;
5988
5989 interix[3-9]*)
5990 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5992 ;;
5993
5994 irix5* | irix6* | nonstopux*)
5995 case $LD in
5996 *-32|*"-32 ") libmagic=32-bit;;
5997 *-n32|*"-n32 ") libmagic=N32;;
5998 *-64|*"-64 ") libmagic=64-bit;;
5999 *) libmagic=never-match;;
6000 esac
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 # This must be glibc/ELF.
6005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 netbsd*)
6010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 else
6013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6014 fi
6015 ;;
6016
6017 newos6*)
6018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6019 lt_cv_file_magic_cmd=$FILECMD
6020 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6021 ;;
6022
6023 *nto* | *qnx*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 openbsd* | bitrig*)
6028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6030 else
6031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6032 fi
6033 ;;
6034
6035 osf3* | osf4* | osf5*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 rdos*)
6040 lt_cv_deplibs_check_method=pass_all
6041 ;;
6042
6043 solaris*)
6044 lt_cv_deplibs_check_method=pass_all
6045 ;;
6046
6047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6048 lt_cv_deplibs_check_method=pass_all
6049 ;;
6050
6051 sysv4 | sysv4.3*)
6052 case $host_vendor in
6053 motorola)
6054 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]'
6055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6056 ;;
6057 ncr)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060 sequent)
6061 lt_cv_file_magic_cmd='/bin/file'
6062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6063 ;;
6064 sni)
6065 lt_cv_file_magic_cmd='/bin/file'
6066 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6067 lt_cv_file_magic_test_file=/lib/libc.so
6068 ;;
6069 siemens)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072 pc)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075 esac
6076 ;;
6077
6078 tpf*)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081 os2*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084 esac
6085
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6088 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6089
6090 file_magic_glob=
6091 want_nocaseglob=no
6092 if test "$build" = "$host"; then
6093 case $host_os in
6094 mingw* | pw32*)
6095 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6096 want_nocaseglob=yes
6097 else
6098 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6099 fi
6100 ;;
6101 esac
6102 fi
6103
6104 file_magic_cmd=$lt_cv_file_magic_cmd
6105 deplibs_check_method=$lt_cv_deplibs_check_method
6106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 printf %s "checking for $ac_word... " >&6; }
6134 if test ${ac_cv_prog_DLLTOOL+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else $as_nop
6138 if test -n "$DLLTOOL"; then
6139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 case $as_dir in #(((
6146 '') as_dir=./ ;;
6147 */) ;;
6148 *) as_dir=$as_dir/ ;;
6149 esac
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 DLLTOOL=$ac_cv_prog_DLLTOOL
6163 if test -n "$DLLTOOL"; then
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6165 printf "%s\n" "$DLLTOOL" >&6; }
6166 else
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 printf "%s\n" "no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_DLLTOOL"; then
6174 ac_ct_DLLTOOL=$DLLTOOL
6175 # Extract the first word of "dlltool", so it can be a program name with args.
6176 set dummy dlltool; ac_word=$2
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 printf %s "checking for $ac_word... " >&6; }
6179 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6180 then :
6181 printf %s "(cached) " >&6
6182 else $as_nop
6183 if test -n "$ac_ct_DLLTOOL"; then
6184 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 case $as_dir in #(((
6191 '') as_dir=./ ;;
6192 */) ;;
6193 *) as_dir=$as_dir/ ;;
6194 esac
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6208 if test -n "$ac_ct_DLLTOOL"; then
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6210 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6211 else
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 printf "%s\n" "no" >&6; }
6214 fi
6215
6216 if test "x$ac_ct_DLLTOOL" = x; then
6217 DLLTOOL="false"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225 DLLTOOL=$ac_ct_DLLTOOL
6226 fi
6227 else
6228 DLLTOOL="$ac_cv_prog_DLLTOOL"
6229 fi
6230
6231 test -z "$DLLTOOL" && DLLTOOL=dlltool
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6243 printf %s "checking how to associate runtime and link libraries... " >&6; }
6244 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else $as_nop
6248 lt_cv_sharedlib_from_linklib_cmd='unknown'
6249
6250 case $host_os in
6251 cygwin* | mingw* | pw32* | cegcc*)
6252 # two different shell functions defined in ltmain.sh;
6253 # decide which one to use based on capabilities of $DLLTOOL
6254 case `$DLLTOOL --help 2>&1` in
6255 *--identify-strict*)
6256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6257 ;;
6258 *)
6259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6260 ;;
6261 esac
6262 ;;
6263 *)
6264 # fallback: assume linklib IS sharedlib
6265 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6266 ;;
6267 esac
6268
6269 fi
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6271 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6272 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6273 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6274
6275
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283 for ac_prog in ar
6284 do
6285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 printf %s "checking for $ac_word... " >&6; }
6289 if test ${ac_cv_prog_AR+y}
6290 then :
6291 printf %s "(cached) " >&6
6292 else $as_nop
6293 if test -n "$AR"; then
6294 ac_cv_prog_AR="$AR" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 case $as_dir in #(((
6301 '') as_dir=./ ;;
6302 */) ;;
6303 *) as_dir=$as_dir/ ;;
6304 esac
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 AR=$ac_cv_prog_AR
6318 if test -n "$AR"; then
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6320 printf "%s\n" "$AR" >&6; }
6321 else
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 printf "%s\n" "no" >&6; }
6324 fi
6325
6326
6327 test -n "$AR" && break
6328 done
6329 fi
6330 if test -z "$AR"; then
6331 ac_ct_AR=$AR
6332 for ac_prog in ar
6333 do
6334 # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 printf %s "checking for $ac_word... " >&6; }
6338 if test ${ac_cv_prog_ac_ct_AR+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else $as_nop
6342 if test -n "$ac_ct_AR"; then
6343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 case $as_dir in #(((
6350 '') as_dir=./ ;;
6351 */) ;;
6352 *) as_dir=$as_dir/ ;;
6353 esac
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_AR="$ac_prog"
6357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367 if test -n "$ac_ct_AR"; then
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6369 printf "%s\n" "$ac_ct_AR" >&6; }
6370 else
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 printf "%s\n" "no" >&6; }
6373 fi
6374
6375
6376 test -n "$ac_ct_AR" && break
6377 done
6378
6379 if test "x$ac_ct_AR" = x; then
6380 AR="false"
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6387 esac
6388 AR=$ac_ct_AR
6389 fi
6390 fi
6391
6392 : ${AR=ar}
6393
6394
6395
6396
6397
6398
6399 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6400 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6401 # higher priority because thats what people were doing historically (setting
6402 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6403 # variable obsoleted/removed.
6404
6405 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6406 lt_ar_flags=$AR_FLAGS
6407
6408
6409
6410
6411
6412
6413 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6414 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6415
6416
6417
6418
6419
6420
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6422 printf %s "checking for archiver @FILE support... " >&6; }
6423 if test ${lt_cv_ar_at_file+y}
6424 then :
6425 printf %s "(cached) " >&6
6426 else $as_nop
6427 lt_cv_ar_at_file=no
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430
6431 int
6432 main (void)
6433 {
6434
6435 ;
6436 return 0;
6437 }
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"
6440 then :
6441 echo conftest.$ac_objext > conftest.lst
6442 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444 (eval $lt_ar_try) 2>&5
6445 ac_status=$?
6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448 if test 0 -eq "$ac_status"; then
6449 # Ensure the archiver fails upon bogus file names.
6450 rm -f conftest.$ac_objext libconftest.a
6451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6452 (eval $lt_ar_try) 2>&5
6453 ac_status=$?
6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6456 if test 0 -ne "$ac_status"; then
6457 lt_cv_ar_at_file=@
6458 fi
6459 fi
6460 rm -f conftest.* libconftest.a
6461
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6464
6465 fi
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6467 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6468
6469 if test no = "$lt_cv_ar_at_file"; then
6470 archiver_list_spec=
6471 else
6472 archiver_list_spec=$lt_cv_ar_at_file
6473 fi
6474
6475
6476
6477
6478
6479
6480
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}strip; ac_word=$2
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 printf %s "checking for $ac_word... " >&6; }
6486 if test ${ac_cv_prog_STRIP+y}
6487 then :
6488 printf %s "(cached) " >&6
6489 else $as_nop
6490 if test -n "$STRIP"; then
6491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 case $as_dir in #(((
6498 '') as_dir=./ ;;
6499 */) ;;
6500 *) as_dir=$as_dir/ ;;
6501 esac
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 STRIP=$ac_cv_prog_STRIP
6515 if test -n "$STRIP"; then
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6517 printf "%s\n" "$STRIP" >&6; }
6518 else
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 printf "%s\n" "no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_STRIP"; then
6526 ac_ct_STRIP=$STRIP
6527 # Extract the first word of "strip", so it can be a program name with args.
6528 set dummy strip; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_ac_ct_STRIP+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test -n "$ac_ct_STRIP"; then
6536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_STRIP="strip"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6560 if test -n "$ac_ct_STRIP"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6562 printf "%s\n" "$ac_ct_STRIP" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568 if test "x$ac_ct_STRIP" = x; then
6569 STRIP=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577 STRIP=$ac_ct_STRIP
6578 fi
6579 else
6580 STRIP="$ac_cv_prog_STRIP"
6581 fi
6582
6583 test -z "$STRIP" && STRIP=:
6584
6585
6586
6587
6588
6589
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 printf %s "checking for $ac_word... " >&6; }
6595 if test ${ac_cv_prog_RANLIB+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else $as_nop
6599 if test -n "$RANLIB"; then
6600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 case $as_dir in #(((
6607 '') as_dir=./ ;;
6608 */) ;;
6609 *) as_dir=$as_dir/ ;;
6610 esac
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 RANLIB=$ac_cv_prog_RANLIB
6624 if test -n "$RANLIB"; then
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6626 printf "%s\n" "$RANLIB" >&6; }
6627 else
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 printf "%s\n" "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_RANLIB"; then
6635 ac_ct_RANLIB=$RANLIB
6636 # Extract the first word of "ranlib", so it can be a program name with args.
6637 set dummy ranlib; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 if test -n "$ac_ct_RANLIB"; then
6645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_RANLIB="ranlib"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669 if test -n "$ac_ct_RANLIB"; then
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6672 else
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 fi
6676
6677 if test "x$ac_ct_RANLIB" = x; then
6678 RANLIB=":"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686 RANLIB=$ac_ct_RANLIB
6687 fi
6688 else
6689 RANLIB="$ac_cv_prog_RANLIB"
6690 fi
6691
6692 test -z "$RANLIB" && RANLIB=:
6693
6694
6695
6696
6697
6698
6699 # Determine commands to create old-style static archives.
6700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701 old_postinstall_cmds='chmod 644 $oldlib'
6702 old_postuninstall_cmds=
6703
6704 if test -n "$RANLIB"; then
6705 case $host_os in
6706 bitrig* | openbsd*)
6707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6708 ;;
6709 *)
6710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6711 ;;
6712 esac
6713 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6714 fi
6715
6716 case $host_os in
6717 darwin*)
6718 lock_old_archive_extraction=yes ;;
6719 *)
6720 lock_old_archive_extraction=no ;;
6721 esac
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 # If no C compiler was specified, use CC.
6762 LTCC=${LTCC-"$CC"}
6763
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767 # Allow CC to be a program name with arguments.
6768 compiler=$CC
6769
6770
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6774 if test ${lt_cv_sys_global_symbol_pipe+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else $as_nop
6778
6779 # These are sane defaults that work on at least a few old systems.
6780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6781
6782 # Character class describing NM global symbol codes.
6783 symcode='[BCDEGRST]'
6784
6785 # Regexp to match symbols that can be accessed directly from C.
6786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787
6788 # Define system-specific variables.
6789 case $host_os in
6790 aix*)
6791 symcode='[BCDT]'
6792 ;;
6793 cygwin* | mingw* | pw32* | cegcc*)
6794 symcode='[ABCDGISTW]'
6795 ;;
6796 hpux*)
6797 if test ia64 = "$host_cpu"; then
6798 symcode='[ABCDEGRST]'
6799 fi
6800 ;;
6801 irix* | nonstopux*)
6802 symcode='[BCDEGRST]'
6803 ;;
6804 osf*)
6805 symcode='[BCDEGQRST]'
6806 ;;
6807 solaris*)
6808 symcode='[BDRT]'
6809 ;;
6810 sco3.2v5*)
6811 symcode='[DT]'
6812 ;;
6813 sysv4.2uw2*)
6814 symcode='[DT]'
6815 ;;
6816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6817 symcode='[ABDT]'
6818 ;;
6819 sysv4)
6820 symcode='[DFNSTU]'
6821 ;;
6822 esac
6823
6824 # If we're using GNU nm, then use its standard symbol codes.
6825 case `$NM -V 2>&1` in
6826 *GNU* | *'with BFD'*)
6827 symcode='[ABCDGIRSTW]' ;;
6828 esac
6829
6830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6831 # Gets list of data symbols to import.
6832 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6833 # Adjust the below global symbol transforms to fixup imported variables.
6834 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6835 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6836 lt_c_name_lib_hook="\
6837 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6838 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6839 else
6840 # Disable hooks by default.
6841 lt_cv_sys_global_symbol_to_import=
6842 lt_cdecl_hook=
6843 lt_c_name_hook=
6844 lt_c_name_lib_hook=
6845 fi
6846
6847 # Transform an extracted symbol line into a proper C declaration.
6848 # Some systems (esp. on ia64) link data and code symbols differently,
6849 # so use this general approach.
6850 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6851 $lt_cdecl_hook\
6852 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6853 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6854
6855 # Transform an extracted symbol line into symbol name and symbol address
6856 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6857 $lt_c_name_hook\
6858 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6859 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6860
6861 # Transform an extracted symbol line into symbol name with lib prefix and
6862 # symbol address.
6863 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6864 $lt_c_name_lib_hook\
6865 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6866 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6867 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6868
6869 # Handle CRLF in mingw tool chain
6870 opt_cr=
6871 case $build_os in
6872 mingw*)
6873 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6874 ;;
6875 esac
6876
6877 # Try without a prefix underscore, then with it.
6878 for ac_symprfx in "" "_"; do
6879
6880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6881 symxfrm="\\1 $ac_symprfx\\2 \\2"
6882
6883 # Write the raw and C identifiers.
6884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6885 # Fake it for dumpbin and say T for any non-static function,
6886 # D for any global variable and I for any imported variable.
6887 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6888 # which start with @ or ?.
6889 lt_cv_sys_global_symbol_pipe="$AWK '"\
6890 " {last_section=section; section=\$ 3};"\
6891 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6892 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6893 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6894 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6895 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6896 " \$ 0!~/External *\|/{next};"\
6897 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6898 " {if(hide[section]) next};"\
6899 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6900 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6901 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6902 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6903 " ' prfx=^$ac_symprfx"
6904 else
6905 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6906 fi
6907 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6908
6909 # Check to see that the pipe works correctly.
6910 pipe_works=no
6911
6912 rm -f conftest*
6913 cat > conftest.$ac_ext <<_LT_EOF
6914 #ifdef __cplusplus
6915 extern "C" {
6916 #endif
6917 char nm_test_var;
6918 void nm_test_func(void);
6919 void nm_test_func(void){}
6920 #ifdef __cplusplus
6921 }
6922 #endif
6923 int main(){nm_test_var='a';nm_test_func();return(0);}
6924 _LT_EOF
6925
6926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927 (eval $ac_compile) 2>&5
6928 ac_status=$?
6929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930 test $ac_status = 0; }; then
6931 # Now try to grab the symbols.
6932 nlist=conftest.nm
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6934 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6935 ac_status=$?
6936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; } && test -s "$nlist"; then
6938 # Try sorting and uniquifying the output.
6939 if sort "$nlist" | uniq > "$nlist"T; then
6940 mv -f "$nlist"T "$nlist"
6941 else
6942 rm -f "$nlist"T
6943 fi
6944
6945 # Make sure that we snagged all the symbols we need.
6946 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6947 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6948 cat <<_LT_EOF > conftest.$ac_ext
6949 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6950 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6951 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6952 relocations are performed -- see ld's documentation on pseudo-relocs. */
6953 # define LT_DLSYM_CONST
6954 #elif defined __osf__
6955 /* This system does not cope well with relocations in const data. */
6956 # define LT_DLSYM_CONST
6957 #else
6958 # define LT_DLSYM_CONST const
6959 #endif
6960
6961 #ifdef __cplusplus
6962 extern "C" {
6963 #endif
6964
6965 _LT_EOF
6966 # Now generate the symbol file.
6967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6968
6969 cat <<_LT_EOF >> conftest.$ac_ext
6970
6971 /* The mapping between symbol names and symbols. */
6972 LT_DLSYM_CONST struct {
6973 const char *name;
6974 void *address;
6975 }
6976 lt__PROGRAM__LTX_preloaded_symbols[] =
6977 {
6978 { "@PROGRAM@", (void *) 0 },
6979 _LT_EOF
6980 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6981 cat <<\_LT_EOF >> conftest.$ac_ext
6982 {0, (void *) 0}
6983 };
6984
6985 /* This works around a problem in FreeBSD linker */
6986 #ifdef FREEBSD_WORKAROUND
6987 static const void *lt_preloaded_setup() {
6988 return lt__PROGRAM__LTX_preloaded_symbols;
6989 }
6990 #endif
6991
6992 #ifdef __cplusplus
6993 }
6994 #endif
6995 _LT_EOF
6996 # Now try linking the two files.
6997 mv conftest.$ac_objext conftstm.$ac_objext
6998 lt_globsym_save_LIBS=$LIBS
6999 lt_globsym_save_CFLAGS=$CFLAGS
7000 LIBS=conftstm.$ac_objext
7001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7003 (eval $ac_link) 2>&5
7004 ac_status=$?
7005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7007 pipe_works=yes
7008 fi
7009 LIBS=$lt_globsym_save_LIBS
7010 CFLAGS=$lt_globsym_save_CFLAGS
7011 else
7012 echo "cannot find nm_test_func in $nlist" >&5
7013 fi
7014 else
7015 echo "cannot find nm_test_var in $nlist" >&5
7016 fi
7017 else
7018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7019 fi
7020 else
7021 echo "$progname: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 fi
7024 rm -rf conftest* conftst*
7025
7026 # Do not use the global_symbol_pipe unless it works.
7027 if test yes = "$pipe_works"; then
7028 break
7029 else
7030 lt_cv_sys_global_symbol_pipe=
7031 fi
7032 done
7033
7034 fi
7035
7036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7037 lt_cv_sys_global_symbol_to_cdecl=
7038 fi
7039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7041 printf "%s\n" "failed" >&6; }
7042 else
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7044 printf "%s\n" "ok" >&6; }
7045 fi
7046
7047 # Response file support.
7048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7049 nm_file_list_spec='@'
7050 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7051 nm_file_list_spec='@'
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7091 printf %s "checking for sysroot... " >&6; }
7092
7093 # Check whether --with-sysroot was given.
7094 if test ${with_sysroot+y}
7095 then :
7096 withval=$with_sysroot;
7097 else $as_nop
7098 with_sysroot=no
7099 fi
7100
7101
7102 lt_sysroot=
7103 case $with_sysroot in #(
7104 yes)
7105 if test yes = "$GCC"; then
7106 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7107 fi
7108 ;; #(
7109 /*)
7110 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7111 ;; #(
7112 no|'')
7113 ;; #(
7114 *)
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7116 printf "%s\n" "$with_sysroot" >&6; }
7117 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7118 ;;
7119 esac
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7122 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7123
7124
7125
7126
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7129 printf %s "checking for a working dd... " >&6; }
7130 if test ${ac_cv_path_lt_DD+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else $as_nop
7134 printf 0123456789abcdef0123456789abcdef >conftest.i
7135 cat conftest.i conftest.i >conftest2.i
7136 : ${lt_DD:=$DD}
7137 if test -z "$lt_DD"; then
7138 ac_path_lt_DD_found=false
7139 # Loop through the user's path and test for each of PROGNAME-LIST
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 case $as_dir in #(((
7145 '') as_dir=./ ;;
7146 */) ;;
7147 *) as_dir=$as_dir/ ;;
7148 esac
7149 for ac_prog in dd
7150 do
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7153 as_fn_executable_p "$ac_path_lt_DD" || continue
7154 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7155 cmp -s conftest.i conftest.out \
7156 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7157 fi
7158 $ac_path_lt_DD_found && break 3
7159 done
7160 done
7161 done
7162 IFS=$as_save_IFS
7163 if test -z "$ac_cv_path_lt_DD"; then
7164 :
7165 fi
7166 else
7167 ac_cv_path_lt_DD=$lt_DD
7168 fi
7169
7170 rm -f conftest.i conftest2.i conftest.out
7171 fi
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7173 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7174
7175
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7177 printf %s "checking how to truncate binary pipes... " >&6; }
7178 if test ${lt_cv_truncate_bin+y}
7179 then :
7180 printf %s "(cached) " >&6
7181 else $as_nop
7182 printf 0123456789abcdef0123456789abcdef >conftest.i
7183 cat conftest.i conftest.i >conftest2.i
7184 lt_cv_truncate_bin=
7185 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7186 cmp -s conftest.i conftest.out \
7187 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7188 fi
7189 rm -f conftest.i conftest2.i conftest.out
7190 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7191 fi
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7193 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7194
7195
7196
7197
7198
7199
7200
7201 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7202 func_cc_basename ()
7203 {
7204 for cc_temp in $*""; do
7205 case $cc_temp in
7206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7208 \-*) ;;
7209 *) break;;
7210 esac
7211 done
7212 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7213 }
7214
7215 # Check whether --enable-libtool-lock was given.
7216 if test ${enable_libtool_lock+y}
7217 then :
7218 enableval=$enable_libtool_lock;
7219 fi
7220
7221 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7222
7223 # Some flags need to be propagated to the compiler or linker for good
7224 # libtool support.
7225 case $host in
7226 ia64-*-hpux*)
7227 # Find out what ABI is being produced by ac_compile, and set mode
7228 # options accordingly.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `$FILECMD conftest.$ac_objext` in
7236 *ELF-32*)
7237 HPUX_IA64_MODE=32
7238 ;;
7239 *ELF-64*)
7240 HPUX_IA64_MODE=64
7241 ;;
7242 esac
7243 fi
7244 rm -rf conftest*
7245 ;;
7246 *-*-irix6*)
7247 # Find out what ABI is being produced by ac_compile, and set linker
7248 # options accordingly.
7249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251 (eval $ac_compile) 2>&5
7252 ac_status=$?
7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; }; then
7255 if test yes = "$lt_cv_prog_gnu_ld"; then
7256 case `$FILECMD conftest.$ac_objext` in
7257 *32-bit*)
7258 LD="${LD-ld} -melf32bsmip"
7259 ;;
7260 *N32*)
7261 LD="${LD-ld} -melf32bmipn32"
7262 ;;
7263 *64-bit*)
7264 LD="${LD-ld} -melf64bmip"
7265 ;;
7266 esac
7267 else
7268 case `$FILECMD conftest.$ac_objext` in
7269 *32-bit*)
7270 LD="${LD-ld} -32"
7271 ;;
7272 *N32*)
7273 LD="${LD-ld} -n32"
7274 ;;
7275 *64-bit*)
7276 LD="${LD-ld} -64"
7277 ;;
7278 esac
7279 fi
7280 fi
7281 rm -rf conftest*
7282 ;;
7283
7284 mips64*-*linux*)
7285 # Find out what ABI is being produced by ac_compile, and set linker
7286 # options accordingly.
7287 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7290 ac_status=$?
7291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 emul=elf
7294 case `$FILECMD conftest.$ac_objext` in
7295 *32-bit*)
7296 emul="${emul}32"
7297 ;;
7298 *64-bit*)
7299 emul="${emul}64"
7300 ;;
7301 esac
7302 case `$FILECMD conftest.$ac_objext` in
7303 *MSB*)
7304 emul="${emul}btsmip"
7305 ;;
7306 *LSB*)
7307 emul="${emul}ltsmip"
7308 ;;
7309 esac
7310 case `$FILECMD conftest.$ac_objext` in
7311 *N32*)
7312 emul="${emul}n32"
7313 ;;
7314 esac
7315 LD="${LD-ld} -m $emul"
7316 fi
7317 rm -rf conftest*
7318 ;;
7319
7320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7322 # Find out what ABI is being produced by ac_compile, and set linker
7323 # options accordingly. Note that the listed cases only cover the
7324 # situations where additional linker options are needed (such as when
7325 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7326 # vice versa); the common cases where no linker options are needed do
7327 # not appear in the list.
7328 echo 'int i;' > conftest.$ac_ext
7329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7330 (eval $ac_compile) 2>&5
7331 ac_status=$?
7332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; }; then
7334 case `$FILECMD conftest.o` in
7335 *32-bit*)
7336 case $host in
7337 x86_64-*kfreebsd*-gnu)
7338 LD="${LD-ld} -m elf_i386_fbsd"
7339 ;;
7340 x86_64-*linux*)
7341 case `$FILECMD conftest.o` in
7342 *x86-64*)
7343 LD="${LD-ld} -m elf32_x86_64"
7344 ;;
7345 *)
7346 LD="${LD-ld} -m elf_i386"
7347 ;;
7348 esac
7349 ;;
7350 powerpc64le-*linux*)
7351 LD="${LD-ld} -m elf32lppclinux"
7352 ;;
7353 powerpc64-*linux*)
7354 LD="${LD-ld} -m elf32ppclinux"
7355 ;;
7356 s390x-*linux*)
7357 LD="${LD-ld} -m elf_s390"
7358 ;;
7359 sparc64-*linux*)
7360 LD="${LD-ld} -m elf32_sparc"
7361 ;;
7362 esac
7363 ;;
7364 *64-bit*)
7365 case $host in
7366 x86_64-*kfreebsd*-gnu)
7367 LD="${LD-ld} -m elf_x86_64_fbsd"
7368 ;;
7369 x86_64-*linux*)
7370 LD="${LD-ld} -m elf_x86_64"
7371 ;;
7372 powerpcle-*linux*)
7373 LD="${LD-ld} -m elf64lppc"
7374 ;;
7375 powerpc-*linux*)
7376 LD="${LD-ld} -m elf64ppc"
7377 ;;
7378 s390*-*linux*|s390*-*tpf*)
7379 LD="${LD-ld} -m elf64_s390"
7380 ;;
7381 sparc*-*linux*)
7382 LD="${LD-ld} -m elf64_sparc"
7383 ;;
7384 esac
7385 ;;
7386 esac
7387 fi
7388 rm -rf conftest*
7389 ;;
7390
7391 *-*-sco3.2v5*)
7392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7393 SAVE_CFLAGS=$CFLAGS
7394 CFLAGS="$CFLAGS -belf"
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7396 printf %s "checking whether the C compiler needs -belf... " >&6; }
7397 if test ${lt_cv_cc_needs_belf+y}
7398 then :
7399 printf %s "(cached) " >&6
7400 else $as_nop
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409
7410 int
7411 main (void)
7412 {
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"
7419 then :
7420 lt_cv_cc_needs_belf=yes
7421 else $as_nop
7422 lt_cv_cc_needs_belf=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7425 conftest$ac_exeext conftest.$ac_ext
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432 fi
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7434 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7435 if test yes != "$lt_cv_cc_needs_belf"; then
7436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7437 CFLAGS=$SAVE_CFLAGS
7438 fi
7439 ;;
7440 *-*solaris*)
7441 # Find out what ABI is being produced by ac_compile, and set linker
7442 # options accordingly.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `$FILECMD conftest.o` in
7450 *64-bit*)
7451 case $lt_cv_prog_gnu_ld in
7452 yes*)
7453 case $host in
7454 i?86-*-solaris*|x86_64-*-solaris*)
7455 LD="${LD-ld} -m elf_x86_64"
7456 ;;
7457 sparc*-*-solaris*)
7458 LD="${LD-ld} -m elf64_sparc"
7459 ;;
7460 esac
7461 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7462 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7463 LD=${LD-ld}_sol2
7464 fi
7465 ;;
7466 *)
7467 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7468 LD="${LD-ld} -64"
7469 fi
7470 ;;
7471 esac
7472 ;;
7473 esac
7474 fi
7475 rm -rf conftest*
7476 ;;
7477 esac
7478
7479 need_locks=$enable_libtool_lock
7480
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}mt; ac_word=$2
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 printf %s "checking for $ac_word... " >&6; }
7486 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else $as_nop
7490 if test -n "$MANIFEST_TOOL"; then
7491 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 case $as_dir in #(((
7498 '') as_dir=./ ;;
7499 */) ;;
7500 *) as_dir=$as_dir/ ;;
7501 esac
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7515 if test -n "$MANIFEST_TOOL"; then
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7517 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7518 else
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 printf "%s\n" "no" >&6; }
7521 fi
7522
7523
7524 fi
7525 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7526 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7527 # Extract the first word of "mt", so it can be a program name with args.
7528 set dummy mt; ac_word=$2
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 printf %s "checking for $ac_word... " >&6; }
7531 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else $as_nop
7535 if test -n "$ac_ct_MANIFEST_TOOL"; then
7536 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 case $as_dir in #(((
7543 '') as_dir=./ ;;
7544 */) ;;
7545 *) as_dir=$as_dir/ ;;
7546 esac
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7560 if test -n "$ac_ct_MANIFEST_TOOL"; then
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7562 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7563 else
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 printf "%s\n" "no" >&6; }
7566 fi
7567
7568 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7569 MANIFEST_TOOL=":"
7570 else
7571 case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7576 esac
7577 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7578 fi
7579 else
7580 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7581 fi
7582
7583 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7585 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7586 if test ${lt_cv_path_mainfest_tool+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 lt_cv_path_mainfest_tool=no
7591 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7592 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7593 cat conftest.err >&5
7594 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7595 lt_cv_path_mainfest_tool=yes
7596 fi
7597 rm -f conftest*
7598 fi
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7600 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7601 if test yes != "$lt_cv_path_mainfest_tool"; then
7602 MANIFEST_TOOL=:
7603 fi
7604
7605
7606
7607
7608
7609
7610 case $host_os in
7611 rhapsody* | darwin*)
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 printf %s "checking for $ac_word... " >&6; }
7617 if test ${ac_cv_prog_DSYMUTIL+y}
7618 then :
7619 printf %s "(cached) " >&6
7620 else $as_nop
7621 if test -n "$DSYMUTIL"; then
7622 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 case $as_dir in #(((
7629 '') as_dir=./ ;;
7630 */) ;;
7631 *) as_dir=$as_dir/ ;;
7632 esac
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639 done
7640 done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7646 if test -n "$DSYMUTIL"; then
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7648 printf "%s\n" "$DSYMUTIL" >&6; }
7649 else
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 printf "%s\n" "no" >&6; }
7652 fi
7653
7654
7655 fi
7656 if test -z "$ac_cv_prog_DSYMUTIL"; then
7657 ac_ct_DSYMUTIL=$DSYMUTIL
7658 # Extract the first word of "dsymutil", so it can be a program name with args.
7659 set dummy dsymutil; ac_word=$2
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 printf %s "checking for $ac_word... " >&6; }
7662 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else $as_nop
7666 if test -n "$ac_ct_DSYMUTIL"; then
7667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 case $as_dir in #(((
7674 '') as_dir=./ ;;
7675 */) ;;
7676 *) as_dir=$as_dir/ ;;
7677 esac
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691 if test -n "$ac_ct_DSYMUTIL"; then
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7694 else
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 printf "%s\n" "no" >&6; }
7697 fi
7698
7699 if test "x$ac_ct_DSYMUTIL" = x; then
7700 DSYMUTIL=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708 DSYMUTIL=$ac_ct_DSYMUTIL
7709 fi
7710 else
7711 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7712 fi
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 printf %s "checking for $ac_word... " >&6; }
7719 if test ${ac_cv_prog_NMEDIT+y}
7720 then :
7721 printf %s "(cached) " >&6
7722 else $as_nop
7723 if test -n "$NMEDIT"; then
7724 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729 IFS=$as_save_IFS
7730 case $as_dir in #(((
7731 '') as_dir=./ ;;
7732 */) ;;
7733 *) as_dir=$as_dir/ ;;
7734 esac
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 NMEDIT=$ac_cv_prog_NMEDIT
7748 if test -n "$NMEDIT"; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7750 printf "%s\n" "$NMEDIT" >&6; }
7751 else
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 printf "%s\n" "no" >&6; }
7754 fi
7755
7756
7757 fi
7758 if test -z "$ac_cv_prog_NMEDIT"; then
7759 ac_ct_NMEDIT=$NMEDIT
7760 # Extract the first word of "nmedit", so it can be a program name with args.
7761 set dummy nmedit; ac_word=$2
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 printf %s "checking for $ac_word... " >&6; }
7764 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else $as_nop
7768 if test -n "$ac_ct_NMEDIT"; then
7769 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 case $as_dir in #(((
7776 '') as_dir=./ ;;
7777 */) ;;
7778 *) as_dir=$as_dir/ ;;
7779 esac
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7793 if test -n "$ac_ct_NMEDIT"; then
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7795 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7796 else
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 printf "%s\n" "no" >&6; }
7799 fi
7800
7801 if test "x$ac_ct_NMEDIT" = x; then
7802 NMEDIT=":"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 NMEDIT=$ac_ct_NMEDIT
7811 fi
7812 else
7813 NMEDIT="$ac_cv_prog_NMEDIT"
7814 fi
7815
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 printf %s "checking for $ac_word... " >&6; }
7821 if test ${ac_cv_prog_LIPO+y}
7822 then :
7823 printf %s "(cached) " >&6
7824 else $as_nop
7825 if test -n "$LIPO"; then
7826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831 IFS=$as_save_IFS
7832 case $as_dir in #(((
7833 '') as_dir=./ ;;
7834 */) ;;
7835 *) as_dir=$as_dir/ ;;
7836 esac
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 LIPO=$ac_cv_prog_LIPO
7850 if test -n "$LIPO"; then
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7852 printf "%s\n" "$LIPO" >&6; }
7853 else
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 printf "%s\n" "no" >&6; }
7856 fi
7857
7858
7859 fi
7860 if test -z "$ac_cv_prog_LIPO"; then
7861 ac_ct_LIPO=$LIPO
7862 # Extract the first word of "lipo", so it can be a program name with args.
7863 set dummy lipo; ac_word=$2
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 printf %s "checking for $ac_word... " >&6; }
7866 if test ${ac_cv_prog_ac_ct_LIPO+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else $as_nop
7870 if test -n "$ac_ct_LIPO"; then
7871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 case $as_dir in #(((
7878 '') as_dir=./ ;;
7879 */) ;;
7880 *) as_dir=$as_dir/ ;;
7881 esac
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_ac_ct_LIPO="lipo"
7885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892 fi
7893 fi
7894 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7895 if test -n "$ac_ct_LIPO"; then
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7897 printf "%s\n" "$ac_ct_LIPO" >&6; }
7898 else
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 printf "%s\n" "no" >&6; }
7901 fi
7902
7903 if test "x$ac_ct_LIPO" = x; then
7904 LIPO=":"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912 LIPO=$ac_ct_LIPO
7913 fi
7914 else
7915 LIPO="$ac_cv_prog_LIPO"
7916 fi
7917
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}otool; ac_word=$2
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 printf %s "checking for $ac_word... " >&6; }
7923 if test ${ac_cv_prog_OTOOL+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else $as_nop
7927 if test -n "$OTOOL"; then
7928 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 case $as_dir in #(((
7935 '') as_dir=./ ;;
7936 */) ;;
7937 *) as_dir=$as_dir/ ;;
7938 esac
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 OTOOL=$ac_cv_prog_OTOOL
7952 if test -n "$OTOOL"; then
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7954 printf "%s\n" "$OTOOL" >&6; }
7955 else
7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 printf "%s\n" "no" >&6; }
7958 fi
7959
7960
7961 fi
7962 if test -z "$ac_cv_prog_OTOOL"; then
7963 ac_ct_OTOOL=$OTOOL
7964 # Extract the first word of "otool", so it can be a program name with args.
7965 set dummy otool; ac_word=$2
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 printf %s "checking for $ac_word... " >&6; }
7968 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else $as_nop
7972 if test -n "$ac_ct_OTOOL"; then
7973 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 case $as_dir in #(((
7980 '') as_dir=./ ;;
7981 */) ;;
7982 *) as_dir=$as_dir/ ;;
7983 esac
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_ac_ct_OTOOL="otool"
7987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7997 if test -n "$ac_ct_OTOOL"; then
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7999 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8000 else
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 printf "%s\n" "no" >&6; }
8003 fi
8004
8005 if test "x$ac_ct_OTOOL" = x; then
8006 OTOOL=":"
8007 else
8008 case $cross_compiling:$ac_tool_warned in
8009 yes:)
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012 ac_tool_warned=yes ;;
8013 esac
8014 OTOOL=$ac_ct_OTOOL
8015 fi
8016 else
8017 OTOOL="$ac_cv_prog_OTOOL"
8018 fi
8019
8020 if test -n "$ac_tool_prefix"; then
8021 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8022 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 printf %s "checking for $ac_word... " >&6; }
8025 if test ${ac_cv_prog_OTOOL64+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else $as_nop
8029 if test -n "$OTOOL64"; then
8030 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035 IFS=$as_save_IFS
8036 case $as_dir in #(((
8037 '') as_dir=./ ;;
8038 */) ;;
8039 *) as_dir=$as_dir/ ;;
8040 esac
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8045 break 2
8046 fi
8047 done
8048 done
8049 IFS=$as_save_IFS
8050
8051 fi
8052 fi
8053 OTOOL64=$ac_cv_prog_OTOOL64
8054 if test -n "$OTOOL64"; then
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8056 printf "%s\n" "$OTOOL64" >&6; }
8057 else
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 printf "%s\n" "no" >&6; }
8060 fi
8061
8062
8063 fi
8064 if test -z "$ac_cv_prog_OTOOL64"; then
8065 ac_ct_OTOOL64=$OTOOL64
8066 # Extract the first word of "otool64", so it can be a program name with args.
8067 set dummy otool64; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else $as_nop
8074 if test -n "$ac_ct_OTOOL64"; then
8075 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_OTOOL64="otool64"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8099 if test -n "$ac_ct_OTOOL64"; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8101 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8102 else
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105 fi
8106
8107 if test "x$ac_ct_OTOOL64" = x; then
8108 OTOOL64=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116 OTOOL64=$ac_ct_OTOOL64
8117 fi
8118 else
8119 OTOOL64="$ac_cv_prog_OTOOL64"
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8149 printf %s "checking for -single_module linker flag... " >&6; }
8150 if test ${lt_cv_apple_cc_single_mod+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else $as_nop
8154 lt_cv_apple_cc_single_mod=no
8155 if test -z "$LT_MULTI_MODULE"; then
8156 # By default we will add the -single_module flag. You can override
8157 # by either setting the environment variable LT_MULTI_MODULE
8158 # non-empty at configure time, or by adding -multi_module to the
8159 # link flags.
8160 rm -rf libconftest.dylib*
8161 echo "int foo(void){return 1;}" > conftest.c
8162 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8163 -dynamiclib -Wl,-single_module conftest.c" >&5
8164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8165 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8166 _lt_result=$?
8167 # If there is a non-empty error log, and "single_module"
8168 # appears in it, assume the flag caused a linker warning
8169 if test -s conftest.err && $GREP single_module conftest.err; then
8170 cat conftest.err >&5
8171 # Otherwise, if the output was created with a 0 exit code from
8172 # the compiler, it worked.
8173 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8174 lt_cv_apple_cc_single_mod=yes
8175 else
8176 cat conftest.err >&5
8177 fi
8178 rm -rf libconftest.dylib*
8179 rm -f conftest.*
8180 fi
8181 fi
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8183 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8184
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8186 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8187 if test ${lt_cv_ld_exported_symbols_list+y}
8188 then :
8189 printf %s "(cached) " >&6
8190 else $as_nop
8191 lt_cv_ld_exported_symbols_list=no
8192 save_LDFLAGS=$LDFLAGS
8193 echo "_main" > conftest.sym
8194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197
8198 int
8199 main (void)
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"
8207 then :
8208 lt_cv_ld_exported_symbols_list=yes
8209 else $as_nop
8210 lt_cv_ld_exported_symbols_list=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8213 conftest$ac_exeext conftest.$ac_ext
8214 LDFLAGS=$save_LDFLAGS
8215
8216 fi
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8218 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8219
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8221 printf %s "checking for -force_load linker flag... " >&6; }
8222 if test ${lt_cv_ld_force_load+y}
8223 then :
8224 printf %s "(cached) " >&6
8225 else $as_nop
8226 lt_cv_ld_force_load=no
8227 cat > conftest.c << _LT_EOF
8228 int forced_loaded() { return 2;}
8229 _LT_EOF
8230 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8231 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8232 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8233 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8234 echo "$RANLIB libconftest.a" >&5
8235 $RANLIB libconftest.a 2>&5
8236 cat > conftest.c << _LT_EOF
8237 int main() { return 0;}
8238 _LT_EOF
8239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8241 _lt_result=$?
8242 if test -s conftest.err && $GREP force_load conftest.err; then
8243 cat conftest.err >&5
8244 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8245 lt_cv_ld_force_load=yes
8246 else
8247 cat conftest.err >&5
8248 fi
8249 rm -f conftest.err libconftest.a conftest conftest.c
8250 rm -rf conftest.dSYM
8251
8252 fi
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8254 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8255 case $host_os in
8256 rhapsody* | darwin1.[012])
8257 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8258 darwin1.*)
8259 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8260 darwin*)
8261 case $MACOSX_DEPLOYMENT_TARGET,$host in
8262 10.[012],*|,*powerpc*-darwin[5-8]*)
8263 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8264 *)
8265 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8266 esac
8267 ;;
8268 esac
8269 if test yes = "$lt_cv_apple_cc_single_mod"; then
8270 _lt_dar_single_mod='$single_module'
8271 fi
8272 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8273 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8274 else
8275 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8276 fi
8277 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8278 _lt_dsymutil='~$DSYMUTIL $lib || :'
8279 else
8280 _lt_dsymutil=
8281 fi
8282 ;;
8283 esac
8284
8285 # func_munge_path_list VARIABLE PATH
8286 # -----------------------------------
8287 # VARIABLE is name of variable containing _space_ separated list of
8288 # directories to be munged by the contents of PATH, which is string
8289 # having a format:
8290 # "DIR[:DIR]:"
8291 # string "DIR[ DIR]" will be prepended to VARIABLE
8292 # ":DIR[:DIR]"
8293 # string "DIR[ DIR]" will be appended to VARIABLE
8294 # "DIRP[:DIRP]::[DIRA:]DIRA"
8295 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8296 # "DIRA[ DIRA]" will be appended to VARIABLE
8297 # "DIR[:DIR]"
8298 # VARIABLE will be replaced by "DIR[ DIR]"
8299 func_munge_path_list ()
8300 {
8301 case x$2 in
8302 x)
8303 ;;
8304 *:)
8305 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8306 ;;
8307 x:*)
8308 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8309 ;;
8310 *::*)
8311 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8312 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8313 ;;
8314 *)
8315 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8316 ;;
8317 esac
8318 }
8319
8320 ac_header= ac_cache=
8321 for ac_item in $ac_header_c_list
8322 do
8323 if test $ac_cache; then
8324 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8325 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8326 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8327 fi
8328 ac_header= ac_cache=
8329 elif test $ac_header; then
8330 ac_cache=$ac_item
8331 else
8332 ac_header=$ac_item
8333 fi
8334 done
8335
8336
8337
8338
8339
8340
8341
8342
8343 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8344 then :
8345
8346 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8347
8348 fi
8349 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8350 "
8351 if test "x$ac_cv_header_dlfcn_h" = xyes
8352 then :
8353 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8354
8355 fi
8356
8357
8358
8359
8360
8361 # Set options
8362
8363
8364
8365 enable_dlopen=no
8366
8367
8368 enable_win32_dll=no
8369
8370
8371 # Check whether --enable-shared was given.
8372 if test ${enable_shared+y}
8373 then :
8374 enableval=$enable_shared; p=${PACKAGE-default}
8375 case $enableval in
8376 yes) enable_shared=yes ;;
8377 no) enable_shared=no ;;
8378 *)
8379 enable_shared=no
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8382 for pkg in $enableval; do
8383 IFS=$lt_save_ifs
8384 if test "X$pkg" = "X$p"; then
8385 enable_shared=yes
8386 fi
8387 done
8388 IFS=$lt_save_ifs
8389 ;;
8390 esac
8391 else $as_nop
8392 enable_shared=yes
8393 fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 # Check whether --enable-static was given.
8404 if test ${enable_static+y}
8405 then :
8406 enableval=$enable_static; p=${PACKAGE-default}
8407 case $enableval in
8408 yes) enable_static=yes ;;
8409 no) enable_static=no ;;
8410 *)
8411 enable_static=no
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8414 for pkg in $enableval; do
8415 IFS=$lt_save_ifs
8416 if test "X$pkg" = "X$p"; then
8417 enable_static=yes
8418 fi
8419 done
8420 IFS=$lt_save_ifs
8421 ;;
8422 esac
8423 else $as_nop
8424 enable_static=yes
8425 fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 # Check whether --with-pic was given.
8437 if test ${with_pic+y}
8438 then :
8439 withval=$with_pic; lt_p=${PACKAGE-default}
8440 case $withval in
8441 yes|no) pic_mode=$withval ;;
8442 *)
8443 pic_mode=default
8444 # Look at the argument we got. We use all the common list separators.
8445 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8446 for lt_pkg in $withval; do
8447 IFS=$lt_save_ifs
8448 if test "X$lt_pkg" = "X$lt_p"; then
8449 pic_mode=yes
8450 fi
8451 done
8452 IFS=$lt_save_ifs
8453 ;;
8454 esac
8455 else $as_nop
8456 pic_mode=default
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466 # Check whether --enable-fast-install was given.
8467 if test ${enable_fast_install+y}
8468 then :
8469 enableval=$enable_fast_install; p=${PACKAGE-default}
8470 case $enableval in
8471 yes) enable_fast_install=yes ;;
8472 no) enable_fast_install=no ;;
8473 *)
8474 enable_fast_install=no
8475 # Look at the argument we got. We use all the common list separators.
8476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8477 for pkg in $enableval; do
8478 IFS=$lt_save_ifs
8479 if test "X$pkg" = "X$p"; then
8480 enable_fast_install=yes
8481 fi
8482 done
8483 IFS=$lt_save_ifs
8484 ;;
8485 esac
8486 else $as_nop
8487 enable_fast_install=yes
8488 fi
8489
8490
8491
8492
8493
8494
8495
8496
8497 shared_archive_member_spec=
8498 case $host,$enable_shared in
8499 power*-*-aix[5-9]*,yes)
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8501 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8502
8503 # Check whether --with-aix-soname was given.
8504 if test ${with_aix_soname+y}
8505 then :
8506 withval=$with_aix_soname; case $withval in
8507 aix|svr4|both)
8508 ;;
8509 *)
8510 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8511 ;;
8512 esac
8513 lt_cv_with_aix_soname=$with_aix_soname
8514 else $as_nop
8515 if test ${lt_cv_with_aix_soname+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else $as_nop
8519 lt_cv_with_aix_soname=aix
8520 fi
8521
8522 with_aix_soname=$lt_cv_with_aix_soname
8523 fi
8524
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8526 printf "%s\n" "$with_aix_soname" >&6; }
8527 if test aix != "$with_aix_soname"; then
8528 # For the AIX way of multilib, we name the shared archive member
8529 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8530 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8531 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8532 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8533 if test 64 = "${OBJECT_MODE-32}"; then
8534 shared_archive_member_spec=shr_64
8535 else
8536 shared_archive_member_spec=shr
8537 fi
8538 fi
8539 ;;
8540 *)
8541 with_aix_soname=aix
8542 ;;
8543 esac
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 # This can be used to rebuild libtool when needed
8555 LIBTOOL_DEPS=$ltmain
8556
8557 # Always use our own libtool.
8558 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589 test -z "$LN_S" && LN_S="ln -s"
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 if test -n "${ZSH_VERSION+set}"; then
8605 setopt NO_GLOB_SUBST
8606 fi
8607
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8609 printf %s "checking for objdir... " >&6; }
8610 if test ${lt_cv_objdir+y}
8611 then :
8612 printf %s "(cached) " >&6
8613 else $as_nop
8614 rm -f .libs 2>/dev/null
8615 mkdir .libs 2>/dev/null
8616 if test -d .libs; then
8617 lt_cv_objdir=.libs
8618 else
8619 # MS-DOS does not allow filenames that begin with a dot.
8620 lt_cv_objdir=_libs
8621 fi
8622 rmdir .libs 2>/dev/null
8623 fi
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8625 printf "%s\n" "$lt_cv_objdir" >&6; }
8626 objdir=$lt_cv_objdir
8627
8628
8629
8630
8631
8632 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8633
8634
8635
8636
8637 case $host_os in
8638 aix3*)
8639 # AIX sometimes has problems with the GCC collect2 program. For some
8640 # reason, if we set the COLLECT_NAMES environment variable, the problems
8641 # vanish in a puff of smoke.
8642 if test set != "${COLLECT_NAMES+set}"; then
8643 COLLECT_NAMES=
8644 export COLLECT_NAMES
8645 fi
8646 ;;
8647 esac
8648
8649 # Global variables:
8650 ofile=libtool
8651 can_build_shared=yes
8652
8653 # All known linkers require a '.a' archive for static linking (except MSVC and
8654 # ICC, which need '.lib').
8655 libext=a
8656
8657 with_gnu_ld=$lt_cv_prog_gnu_ld
8658
8659 old_CC=$CC
8660 old_CFLAGS=$CFLAGS
8661
8662 # Set sane defaults for various variables
8663 test -z "$CC" && CC=cc
8664 test -z "$LTCC" && LTCC=$CC
8665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8666 test -z "$LD" && LD=ld
8667 test -z "$ac_objext" && ac_objext=o
8668
8669 func_cc_basename $compiler
8670 cc_basename=$func_cc_basename_result
8671
8672
8673 # Only perform the check for file, if the check method requires it
8674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8675 case $deplibs_check_method in
8676 file_magic*)
8677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8679 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8680 if test ${lt_cv_path_MAGIC_CMD+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else $as_nop
8684 case $MAGIC_CMD in
8685 [\\/*] | ?:[\\/]*)
8686 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8687 ;;
8688 *)
8689 lt_save_MAGIC_CMD=$MAGIC_CMD
8690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8692 for ac_dir in $ac_dummy; do
8693 IFS=$lt_save_ifs
8694 test -z "$ac_dir" && ac_dir=.
8695 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8696 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8697 if test -n "$file_magic_test_file"; then
8698 case $deplibs_check_method in
8699 "file_magic "*)
8700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8701 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8703 $EGREP "$file_magic_regex" > /dev/null; then
8704 :
8705 else
8706 cat <<_LT_EOF 1>&2
8707
8708 *** Warning: the command libtool uses to detect shared libraries,
8709 *** $file_magic_cmd, produces output that libtool cannot recognize.
8710 *** The result is that libtool may fail to recognize shared libraries
8711 *** as such. This will affect the creation of libtool libraries that
8712 *** depend on shared libraries, but programs linked with such libtool
8713 *** libraries will work regardless of this problem. Nevertheless, you
8714 *** may want to report the problem to your system manager and/or to
8715 *** bug-libtool@gnu.org
8716
8717 _LT_EOF
8718 fi ;;
8719 esac
8720 fi
8721 break
8722 fi
8723 done
8724 IFS=$lt_save_ifs
8725 MAGIC_CMD=$lt_save_MAGIC_CMD
8726 ;;
8727 esac
8728 fi
8729
8730 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8731 if test -n "$MAGIC_CMD"; then
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8733 printf "%s\n" "$MAGIC_CMD" >&6; }
8734 else
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 printf "%s\n" "no" >&6; }
8737 fi
8738
8739
8740
8741
8742
8743 if test -z "$lt_cv_path_MAGIC_CMD"; then
8744 if test -n "$ac_tool_prefix"; then
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8746 printf %s "checking for file... " >&6; }
8747 if test ${lt_cv_path_MAGIC_CMD+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else $as_nop
8751 case $MAGIC_CMD in
8752 [\\/*] | ?:[\\/]*)
8753 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8754 ;;
8755 *)
8756 lt_save_MAGIC_CMD=$MAGIC_CMD
8757 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8759 for ac_dir in $ac_dummy; do
8760 IFS=$lt_save_ifs
8761 test -z "$ac_dir" && ac_dir=.
8762 if test -f "$ac_dir/file"; then
8763 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8764 if test -n "$file_magic_test_file"; then
8765 case $deplibs_check_method in
8766 "file_magic "*)
8767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8768 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8770 $EGREP "$file_magic_regex" > /dev/null; then
8771 :
8772 else
8773 cat <<_LT_EOF 1>&2
8774
8775 *** Warning: the command libtool uses to detect shared libraries,
8776 *** $file_magic_cmd, produces output that libtool cannot recognize.
8777 *** The result is that libtool may fail to recognize shared libraries
8778 *** as such. This will affect the creation of libtool libraries that
8779 *** depend on shared libraries, but programs linked with such libtool
8780 *** libraries will work regardless of this problem. Nevertheless, you
8781 *** may want to report the problem to your system manager and/or to
8782 *** bug-libtool@gnu.org
8783
8784 _LT_EOF
8785 fi ;;
8786 esac
8787 fi
8788 break
8789 fi
8790 done
8791 IFS=$lt_save_ifs
8792 MAGIC_CMD=$lt_save_MAGIC_CMD
8793 ;;
8794 esac
8795 fi
8796
8797 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8798 if test -n "$MAGIC_CMD"; then
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8800 printf "%s\n" "$MAGIC_CMD" >&6; }
8801 else
8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 printf "%s\n" "no" >&6; }
8804 fi
8805
8806
8807 else
8808 MAGIC_CMD=:
8809 fi
8810 fi
8811
8812 fi
8813 ;;
8814 esac
8815
8816 # Use C for the default configuration in the libtool script
8817
8818 lt_save_CC=$CC
8819 ac_ext=c
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8824
8825
8826 # Source file extension for C test sources.
8827 ac_ext=c
8828
8829 # Object file extension for compiled C test sources.
8830 objext=o
8831 objext=$objext
8832
8833 # Code to be used in simple compile tests
8834 lt_simple_compile_test_code="int some_variable = 0;"
8835
8836 # Code to be used in simple link tests
8837 lt_simple_link_test_code='int main(){return(0);}'
8838
8839
8840
8841
8842
8843
8844
8845 # If no C compiler was specified, use CC.
8846 LTCC=${LTCC-"$CC"}
8847
8848 # If no C compiler flags were specified, use CFLAGS.
8849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8850
8851 # Allow CC to be a program name with arguments.
8852 compiler=$CC
8853
8854 # Save the default compiler, since it gets overwritten when the other
8855 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8856 compiler_DEFAULT=$CC
8857
8858 # save warnings/boilerplate of simple test code
8859 ac_outfile=conftest.$ac_objext
8860 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862 _lt_compiler_boilerplate=`cat conftest.err`
8863 $RM conftest*
8864
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8868 _lt_linker_boilerplate=`cat conftest.err`
8869 $RM -r conftest*
8870
8871
8872 if test -n "$compiler"; then
8873
8874 lt_prog_compiler_no_builtin_flag=
8875
8876 if test yes = "$GCC"; then
8877 case $cc_basename in
8878 nvcc*)
8879 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8880 *)
8881 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8882 esac
8883
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8885 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8886 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8887 then :
8888 printf %s "(cached) " >&6
8889 else $as_nop
8890 lt_cv_prog_compiler_rtti_exceptions=no
8891 ac_outfile=conftest.$ac_objext
8892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8894 # Insert the option either (1) after the last *FLAGS variable, or
8895 # (2) before a word containing "conftest.", or (3) at the end.
8896 # Note that $ac_compile itself does not contain backslashes and begins
8897 # with a dollar sign (not a hyphen), so the echo should work correctly.
8898 # The option is referenced via a variable to avoid confusing sed.
8899 lt_compile=`echo "$ac_compile" | $SED \
8900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902 -e 's:$: $lt_compiler_flag:'`
8903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8904 (eval "$lt_compile" 2>conftest.err)
8905 ac_status=$?
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 if (exit $ac_status) && test -s "$ac_outfile"; then
8909 # The compiler can only warn and ignore the option if not recognized
8910 # So say no if there are warnings other than the usual output.
8911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8914 lt_cv_prog_compiler_rtti_exceptions=yes
8915 fi
8916 fi
8917 $RM conftest*
8918
8919 fi
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8921 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8922
8923 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8925 else
8926 :
8927 fi
8928
8929 fi
8930
8931
8932
8933
8934
8935
8936 lt_prog_compiler_wl=
8937 lt_prog_compiler_pic=
8938 lt_prog_compiler_static=
8939
8940
8941 if test yes = "$GCC"; then
8942 lt_prog_compiler_wl='-Wl,'
8943 lt_prog_compiler_static='-static'
8944
8945 case $host_os in
8946 aix*)
8947 # All AIX code is PIC.
8948 if test ia64 = "$host_cpu"; then
8949 # AIX 5 now supports IA64 processor
8950 lt_prog_compiler_static='-Bstatic'
8951 fi
8952 lt_prog_compiler_pic='-fPIC'
8953 ;;
8954
8955 amigaos*)
8956 case $host_cpu in
8957 powerpc)
8958 # see comment about AmigaOS4 .so support
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961 m68k)
8962 # FIXME: we need at least 68020 code to build shared libraries, but
8963 # adding the '-m68020' flag to GCC prevents building anything better,
8964 # like '-m68040'.
8965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8966 ;;
8967 esac
8968 ;;
8969
8970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8971 # PIC is the default for these OSes.
8972 ;;
8973
8974 mingw* | cygwin* | pw32* | os2* | cegcc*)
8975 # This hack is so that the source file can tell whether it is being
8976 # built for inclusion in a dll (and should export symbols for example).
8977 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8978 # (--disable-auto-import) libraries
8979 lt_prog_compiler_pic='-DDLL_EXPORT'
8980 case $host_os in
8981 os2*)
8982 lt_prog_compiler_static='$wl-static'
8983 ;;
8984 esac
8985 ;;
8986
8987 darwin* | rhapsody*)
8988 # PIC is the default on this platform
8989 # Common symbols not allowed in MH_DYLIB files
8990 lt_prog_compiler_pic='-fno-common'
8991 ;;
8992
8993 haiku*)
8994 # PIC is the default for Haiku.
8995 # The "-static" flag exists, but is broken.
8996 lt_prog_compiler_static=
8997 ;;
8998
8999 hpux*)
9000 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9001 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9002 # sets the default TLS model and affects inlining.
9003 case $host_cpu in
9004 hppa*64*)
9005 # +Z the default
9006 ;;
9007 *)
9008 lt_prog_compiler_pic='-fPIC'
9009 ;;
9010 esac
9011 ;;
9012
9013 interix[3-9]*)
9014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9015 # Instead, we relocate shared libraries at runtime.
9016 ;;
9017
9018 msdosdjgpp*)
9019 # Just because we use GCC doesn't mean we suddenly get shared libraries
9020 # on systems that don't support them.
9021 lt_prog_compiler_can_build_shared=no
9022 enable_shared=no
9023 ;;
9024
9025 *nto* | *qnx*)
9026 # QNX uses GNU C++, but need to define -shared option too, otherwise
9027 # it will coredump.
9028 lt_prog_compiler_pic='-fPIC -shared'
9029 ;;
9030
9031 sysv4*MP*)
9032 if test -d /usr/nec; then
9033 lt_prog_compiler_pic=-Kconform_pic
9034 fi
9035 ;;
9036
9037 *)
9038 lt_prog_compiler_pic='-fPIC'
9039 ;;
9040 esac
9041
9042 case $cc_basename in
9043 nvcc*) # Cuda Compiler Driver 2.2
9044 lt_prog_compiler_wl='-Xlinker '
9045 if test -n "$lt_prog_compiler_pic"; then
9046 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9047 fi
9048 ;;
9049 esac
9050 else
9051 # PORTME Check for flag to pass linker flags through the system compiler.
9052 case $host_os in
9053 aix*)
9054 lt_prog_compiler_wl='-Wl,'
9055 if test ia64 = "$host_cpu"; then
9056 # AIX 5 now supports IA64 processor
9057 lt_prog_compiler_static='-Bstatic'
9058 else
9059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9060 fi
9061 ;;
9062
9063 darwin* | rhapsody*)
9064 # PIC is the default on this platform
9065 # Common symbols not allowed in MH_DYLIB files
9066 lt_prog_compiler_pic='-fno-common'
9067 case $cc_basename in
9068 nagfor*)
9069 # NAG Fortran compiler
9070 lt_prog_compiler_wl='-Wl,-Wl,,'
9071 lt_prog_compiler_pic='-PIC'
9072 lt_prog_compiler_static='-Bstatic'
9073 ;;
9074 esac
9075 ;;
9076
9077 mingw* | cygwin* | pw32* | os2* | cegcc*)
9078 # This hack is so that the source file can tell whether it is being
9079 # built for inclusion in a dll (and should export symbols for example).
9080 lt_prog_compiler_pic='-DDLL_EXPORT'
9081 case $host_os in
9082 os2*)
9083 lt_prog_compiler_static='$wl-static'
9084 ;;
9085 esac
9086 ;;
9087
9088 hpux9* | hpux10* | hpux11*)
9089 lt_prog_compiler_wl='-Wl,'
9090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9091 # not for PA HP-UX.
9092 case $host_cpu in
9093 hppa*64*|ia64*)
9094 # +Z the default
9095 ;;
9096 *)
9097 lt_prog_compiler_pic='+Z'
9098 ;;
9099 esac
9100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9101 lt_prog_compiler_static='$wl-a ${wl}archive'
9102 ;;
9103
9104 irix5* | irix6* | nonstopux*)
9105 lt_prog_compiler_wl='-Wl,'
9106 # PIC (with -KPIC) is the default.
9107 lt_prog_compiler_static='-non_shared'
9108 ;;
9109
9110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9111 case $cc_basename in
9112 # old Intel for x86_64, which still supported -KPIC.
9113 ecc*)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-KPIC'
9116 lt_prog_compiler_static='-static'
9117 ;;
9118 # icc used to be incompatible with GCC.
9119 # ICC 10 doesn't accept -KPIC any more.
9120 icc* | ifort*)
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_pic='-fPIC'
9123 lt_prog_compiler_static='-static'
9124 ;;
9125 # Lahey Fortran 8.1.
9126 lf95*)
9127 lt_prog_compiler_wl='-Wl,'
9128 lt_prog_compiler_pic='--shared'
9129 lt_prog_compiler_static='--static'
9130 ;;
9131 nagfor*)
9132 # NAG Fortran compiler
9133 lt_prog_compiler_wl='-Wl,-Wl,,'
9134 lt_prog_compiler_pic='-PIC'
9135 lt_prog_compiler_static='-Bstatic'
9136 ;;
9137 tcc*)
9138 # Fabrice Bellard et al's Tiny C Compiler
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fPIC'
9141 lt_prog_compiler_static='-static'
9142 ;;
9143 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9144 # Portland Group compilers (*not* the Pentium gcc compiler,
9145 # which looks to be a dead project)
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-fpic'
9148 lt_prog_compiler_static='-Bstatic'
9149 ;;
9150 ccc*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # All Alpha code is PIC.
9153 lt_prog_compiler_static='-non_shared'
9154 ;;
9155 xl* | bgxl* | bgf* | mpixl*)
9156 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-qpic'
9159 lt_prog_compiler_static='-qstaticlink'
9160 ;;
9161 *)
9162 case `$CC -V 2>&1 | $SED 5q` in
9163 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9165 lt_prog_compiler_pic='-KPIC'
9166 lt_prog_compiler_static='-Bstatic'
9167 lt_prog_compiler_wl=''
9168 ;;
9169 *Sun\ F* | *Sun*Fortran*)
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 lt_prog_compiler_wl='-Qoption ld '
9173 ;;
9174 *Sun\ C*)
9175 # Sun C 5.9
9176 lt_prog_compiler_pic='-KPIC'
9177 lt_prog_compiler_static='-Bstatic'
9178 lt_prog_compiler_wl='-Wl,'
9179 ;;
9180 *Intel*\ [CF]*Compiler*)
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-fPIC'
9183 lt_prog_compiler_static='-static'
9184 ;;
9185 *Portland\ Group*)
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_pic='-fpic'
9188 lt_prog_compiler_static='-Bstatic'
9189 ;;
9190 esac
9191 ;;
9192 esac
9193 ;;
9194
9195 newsos6)
9196 lt_prog_compiler_pic='-KPIC'
9197 lt_prog_compiler_static='-Bstatic'
9198 ;;
9199
9200 *nto* | *qnx*)
9201 # QNX uses GNU C++, but need to define -shared option too, otherwise
9202 # it will coredump.
9203 lt_prog_compiler_pic='-fPIC -shared'
9204 ;;
9205
9206 osf3* | osf4* | osf5*)
9207 lt_prog_compiler_wl='-Wl,'
9208 # All OSF/1 code is PIC.
9209 lt_prog_compiler_static='-non_shared'
9210 ;;
9211
9212 rdos*)
9213 lt_prog_compiler_static='-non_shared'
9214 ;;
9215
9216 solaris*)
9217 lt_prog_compiler_pic='-KPIC'
9218 lt_prog_compiler_static='-Bstatic'
9219 case $cc_basename in
9220 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9221 lt_prog_compiler_wl='-Qoption ld ';;
9222 *)
9223 lt_prog_compiler_wl='-Wl,';;
9224 esac
9225 ;;
9226
9227 sunos4*)
9228 lt_prog_compiler_wl='-Qoption ld '
9229 lt_prog_compiler_pic='-PIC'
9230 lt_prog_compiler_static='-Bstatic'
9231 ;;
9232
9233 sysv4 | sysv4.2uw2* | sysv4.3*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-KPIC'
9236 lt_prog_compiler_static='-Bstatic'
9237 ;;
9238
9239 sysv4*MP*)
9240 if test -d /usr/nec; then
9241 lt_prog_compiler_pic='-Kconform_pic'
9242 lt_prog_compiler_static='-Bstatic'
9243 fi
9244 ;;
9245
9246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='-KPIC'
9249 lt_prog_compiler_static='-Bstatic'
9250 ;;
9251
9252 unicos*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_can_build_shared=no
9255 ;;
9256
9257 uts4*)
9258 lt_prog_compiler_pic='-pic'
9259 lt_prog_compiler_static='-Bstatic'
9260 ;;
9261
9262 *)
9263 lt_prog_compiler_can_build_shared=no
9264 ;;
9265 esac
9266 fi
9267
9268 case $host_os in
9269 # For platforms that do not support PIC, -DPIC is meaningless:
9270 *djgpp*)
9271 lt_prog_compiler_pic=
9272 ;;
9273 *)
9274 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9275 ;;
9276 esac
9277
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9279 printf %s "checking for $compiler option to produce PIC... " >&6; }
9280 if test ${lt_cv_prog_compiler_pic+y}
9281 then :
9282 printf %s "(cached) " >&6
9283 else $as_nop
9284 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9285 fi
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9287 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9288 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9289
9290 #
9291 # Check to make sure the PIC flag actually works.
9292 #
9293 if test -n "$lt_prog_compiler_pic"; then
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9295 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9296 if test ${lt_cv_prog_compiler_pic_works+y}
9297 then :
9298 printf %s "(cached) " >&6
9299 else $as_nop
9300 lt_cv_prog_compiler_pic_works=no
9301 ac_outfile=conftest.$ac_objext
9302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9304 # Insert the option either (1) after the last *FLAGS variable, or
9305 # (2) before a word containing "conftest.", or (3) at the end.
9306 # Note that $ac_compile itself does not contain backslashes and begins
9307 # with a dollar sign (not a hyphen), so the echo should work correctly.
9308 # The option is referenced via a variable to avoid confusing sed.
9309 lt_compile=`echo "$ac_compile" | $SED \
9310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9312 -e 's:$: $lt_compiler_flag:'`
9313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9314 (eval "$lt_compile" 2>conftest.err)
9315 ac_status=$?
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 if (exit $ac_status) && test -s "$ac_outfile"; then
9319 # The compiler can only warn and ignore the option if not recognized
9320 # So say no if there are warnings other than the usual output.
9321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9324 lt_cv_prog_compiler_pic_works=yes
9325 fi
9326 fi
9327 $RM conftest*
9328
9329 fi
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9331 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9332
9333 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9334 case $lt_prog_compiler_pic in
9335 "" | " "*) ;;
9336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9337 esac
9338 else
9339 lt_prog_compiler_pic=
9340 lt_prog_compiler_can_build_shared=no
9341 fi
9342
9343 fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355 #
9356 # Check to make sure the static flag actually works.
9357 #
9358 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9360 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9361 if test ${lt_cv_prog_compiler_static_works+y}
9362 then :
9363 printf %s "(cached) " >&6
9364 else $as_nop
9365 lt_cv_prog_compiler_static_works=no
9366 save_LDFLAGS=$LDFLAGS
9367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9370 # The linker can only warn and ignore the option if not recognized
9371 # So say no if there are warnings
9372 if test -s conftest.err; then
9373 # Append any errors to the config.log.
9374 cat conftest.err 1>&5
9375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377 if diff conftest.exp conftest.er2 >/dev/null; then
9378 lt_cv_prog_compiler_static_works=yes
9379 fi
9380 else
9381 lt_cv_prog_compiler_static_works=yes
9382 fi
9383 fi
9384 $RM -r conftest*
9385 LDFLAGS=$save_LDFLAGS
9386
9387 fi
9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9389 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9390
9391 if test yes = "$lt_cv_prog_compiler_static_works"; then
9392 :
9393 else
9394 lt_prog_compiler_static=
9395 fi
9396
9397
9398
9399
9400
9401
9402
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9404 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9405 if test ${lt_cv_prog_compiler_c_o+y}
9406 then :
9407 printf %s "(cached) " >&6
9408 else $as_nop
9409 lt_cv_prog_compiler_c_o=no
9410 $RM -r conftest 2>/dev/null
9411 mkdir conftest
9412 cd conftest
9413 mkdir out
9414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415
9416 lt_compiler_flag="-o out/conftest2.$ac_objext"
9417 # Insert the option either (1) after the last *FLAGS variable, or
9418 # (2) before a word containing "conftest.", or (3) at the end.
9419 # Note that $ac_compile itself does not contain backslashes and begins
9420 # with a dollar sign (not a hyphen), so the echo should work correctly.
9421 lt_compile=`echo "$ac_compile" | $SED \
9422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424 -e 's:$: $lt_compiler_flag:'`
9425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9426 (eval "$lt_compile" 2>out/conftest.err)
9427 ac_status=$?
9428 cat out/conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9431 then
9432 # The compiler can only warn and ignore the option if not recognized
9433 # So say no if there are warnings
9434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_c_o=yes
9438 fi
9439 fi
9440 chmod u+w . 2>&5
9441 $RM conftest*
9442 # SGI C++ compiler will create directory out/ii_files/ for
9443 # template instantiation
9444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9445 $RM out/* && rmdir out
9446 cd ..
9447 $RM -r conftest
9448 $RM conftest*
9449
9450 fi
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9452 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9453
9454
9455
9456
9457
9458
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9460 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9461 if test ${lt_cv_prog_compiler_c_o+y}
9462 then :
9463 printf %s "(cached) " >&6
9464 else $as_nop
9465 lt_cv_prog_compiler_c_o=no
9466 $RM -r conftest 2>/dev/null
9467 mkdir conftest
9468 cd conftest
9469 mkdir out
9470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472 lt_compiler_flag="-o out/conftest2.$ac_objext"
9473 # Insert the option either (1) after the last *FLAGS variable, or
9474 # (2) before a word containing "conftest.", or (3) at the end.
9475 # Note that $ac_compile itself does not contain backslashes and begins
9476 # with a dollar sign (not a hyphen), so the echo should work correctly.
9477 lt_compile=`echo "$ac_compile" | $SED \
9478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9480 -e 's:$: $lt_compiler_flag:'`
9481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9482 (eval "$lt_compile" 2>out/conftest.err)
9483 ac_status=$?
9484 cat out/conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9487 then
9488 # The compiler can only warn and ignore the option if not recognized
9489 # So say no if there are warnings
9490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9493 lt_cv_prog_compiler_c_o=yes
9494 fi
9495 fi
9496 chmod u+w . 2>&5
9497 $RM conftest*
9498 # SGI C++ compiler will create directory out/ii_files/ for
9499 # template instantiation
9500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9501 $RM out/* && rmdir out
9502 cd ..
9503 $RM -r conftest
9504 $RM conftest*
9505
9506 fi
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9508 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9509
9510
9511
9512
9513 hard_links=nottested
9514 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9515 # do not overwrite the value of need_locks provided by the user
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9517 printf %s "checking if we can lock with hard links... " >&6; }
9518 hard_links=yes
9519 $RM conftest*
9520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521 touch conftest.a
9522 ln conftest.a conftest.b 2>&5 || hard_links=no
9523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9525 printf "%s\n" "$hard_links" >&6; }
9526 if test no = "$hard_links"; then
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9528 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9529 need_locks=warn
9530 fi
9531 else
9532 need_locks=no
9533 fi
9534
9535
9536
9537
9538
9539
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9541 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9542
9543 runpath_var=
9544 allow_undefined_flag=
9545 always_export_symbols=no
9546 archive_cmds=
9547 archive_expsym_cmds=
9548 compiler_needs_object=no
9549 enable_shared_with_static_runtimes=no
9550 export_dynamic_flag_spec=
9551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9552 hardcode_automatic=no
9553 hardcode_direct=no
9554 hardcode_direct_absolute=no
9555 hardcode_libdir_flag_spec=
9556 hardcode_libdir_separator=
9557 hardcode_minus_L=no
9558 hardcode_shlibpath_var=unsupported
9559 inherit_rpath=no
9560 link_all_deplibs=unknown
9561 module_cmds=
9562 module_expsym_cmds=
9563 old_archive_from_new_cmds=
9564 old_archive_from_expsyms_cmds=
9565 thread_safe_flag_spec=
9566 whole_archive_flag_spec=
9567 # include_expsyms should be a list of space-separated symbols to be *always*
9568 # included in the symbol list
9569 include_expsyms=
9570 # exclude_expsyms can be an extended regexp of symbols to exclude
9571 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9572 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9573 # as well as any symbol that contains 'd'.
9574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9576 # platforms (ab)use it in PIC code, but their linkers get confused if
9577 # the symbol is explicitly referenced. Since portable code cannot
9578 # rely on this symbol name, it's probably fine to never include it in
9579 # preloaded symbol tables.
9580 # Exclude shared library initialization/finalization symbols.
9581 extract_expsyms_cmds=
9582
9583 case $host_os in
9584 cygwin* | mingw* | pw32* | cegcc*)
9585 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9586 # When not using gcc, we currently assume that we are using
9587 # Microsoft Visual C++ or Intel C++ Compiler.
9588 if test yes != "$GCC"; then
9589 with_gnu_ld=no
9590 fi
9591 ;;
9592 interix*)
9593 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9594 with_gnu_ld=yes
9595 ;;
9596 openbsd* | bitrig*)
9597 with_gnu_ld=no
9598 ;;
9599 esac
9600
9601 ld_shlibs=yes
9602
9603 # On some targets, GNU ld is compatible enough with the native linker
9604 # that we're better off using the native interface for both.
9605 lt_use_gnu_ld_interface=no
9606 if test yes = "$with_gnu_ld"; then
9607 case $host_os in
9608 aix*)
9609 # The AIX port of GNU ld has always aspired to compatibility
9610 # with the native linker. However, as the warning in the GNU ld
9611 # block says, versions before 2.19.5* couldn't really create working
9612 # shared libraries, regardless of the interface used.
9613 case `$LD -v 2>&1` in
9614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9617 *)
9618 lt_use_gnu_ld_interface=yes
9619 ;;
9620 esac
9621 ;;
9622 *)
9623 lt_use_gnu_ld_interface=yes
9624 ;;
9625 esac
9626 fi
9627
9628 if test yes = "$lt_use_gnu_ld_interface"; then
9629 # If archive_cmds runs LD, not CC, wlarc should be empty
9630 wlarc='$wl'
9631
9632 # Set some defaults for GNU ld with shared library support. These
9633 # are reset later if shared libraries are not supported. Putting them
9634 # here allows them to be overridden if necessary.
9635 runpath_var=LD_RUN_PATH
9636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9637 export_dynamic_flag_spec='$wl--export-dynamic'
9638 # ancient GNU ld didn't support --whole-archive et. al.
9639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9640 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9641 else
9642 whole_archive_flag_spec=
9643 fi
9644 supports_anon_versioning=no
9645 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9646 *GNU\ gold*) supports_anon_versioning=yes ;;
9647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9650 *\ 2.11.*) ;; # other 2.11 versions
9651 *) supports_anon_versioning=yes ;;
9652 esac
9653
9654 # See if GNU ld supports shared libraries.
9655 case $host_os in
9656 aix[3-9]*)
9657 # On AIX/PPC, the GNU linker is very broken
9658 if test ia64 != "$host_cpu"; then
9659 ld_shlibs=no
9660 cat <<_LT_EOF 1>&2
9661
9662 *** Warning: the GNU linker, at least up to release 2.19, is reported
9663 *** to be unable to reliably create shared libraries on AIX.
9664 *** Therefore, libtool is disabling shared libraries support. If you
9665 *** really care for shared libraries, you may want to install binutils
9666 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9667 *** You will then need to restart the configuration process.
9668
9669 _LT_EOF
9670 fi
9671 ;;
9672
9673 amigaos*)
9674 case $host_cpu in
9675 powerpc)
9676 # see comment about AmigaOS4 .so support
9677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9678 archive_expsym_cmds=''
9679 ;;
9680 m68k)
9681 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)'
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_minus_L=yes
9684 ;;
9685 esac
9686 ;;
9687
9688 beos*)
9689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9690 allow_undefined_flag=unsupported
9691 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9692 # support --undefined. This deserves some investigation. FIXME
9693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9694 else
9695 ld_shlibs=no
9696 fi
9697 ;;
9698
9699 cygwin* | mingw* | pw32* | cegcc*)
9700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9701 # as there is no search path for DLLs.
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 export_dynamic_flag_spec='$wl--export-all-symbols'
9704 allow_undefined_flag=unsupported
9705 always_export_symbols=no
9706 enable_shared_with_static_runtimes=yes
9707 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'
9708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9709
9710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9712 # If the export-symbols file already is a .def file, use it as
9713 # is; otherwise, prepend EXPORTS...
9714 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9715 cp $export_symbols $output_objdir/$soname.def;
9716 else
9717 echo EXPORTS > $output_objdir/$soname.def;
9718 cat $export_symbols >> $output_objdir/$soname.def;
9719 fi~
9720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9721 else
9722 ld_shlibs=no
9723 fi
9724 ;;
9725
9726 haiku*)
9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9728 link_all_deplibs=yes
9729 ;;
9730
9731 os2*)
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_minus_L=yes
9734 allow_undefined_flag=unsupported
9735 shrext_cmds=.dll
9736 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9739 $ECHO EXPORTS >> $output_objdir/$libname.def~
9740 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9741 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9742 emximp -o $lib $output_objdir/$libname.def'
9743 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9744 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9745 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9746 $ECHO EXPORTS >> $output_objdir/$libname.def~
9747 prefix_cmds="$SED"~
9748 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9749 prefix_cmds="$prefix_cmds -e 1d";
9750 fi~
9751 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9752 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9754 emximp -o $lib $output_objdir/$libname.def'
9755 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9756 enable_shared_with_static_runtimes=yes
9757 file_list_spec='@'
9758 ;;
9759
9760 interix[3-9]*)
9761 hardcode_direct=no
9762 hardcode_shlibpath_var=no
9763 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9764 export_dynamic_flag_spec='$wl-E'
9765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9766 # Instead, shared libraries are loaded at an image base (0x10000000 by
9767 # default) and relocated if they conflict, which is a slow very memory
9768 # consuming and fragmenting process. To avoid this, we pick a random,
9769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9770 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9772 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'
9773 ;;
9774
9775 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9776 tmp_diet=no
9777 if test linux-dietlibc = "$host_os"; then
9778 case $cc_basename in
9779 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9780 esac
9781 fi
9782 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9783 && test no = "$tmp_diet"
9784 then
9785 tmp_addflag=' $pic_flag'
9786 tmp_sharedflag='-shared'
9787 case $cc_basename,$host_cpu in
9788 pgcc*) # Portland Group C compiler
9789 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'
9790 tmp_addflag=' $pic_flag'
9791 ;;
9792 pgf77* | pgf90* | pgf95* | pgfortran*)
9793 # Portland Group f77 and f90 compilers
9794 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'
9795 tmp_addflag=' $pic_flag -Mnomain' ;;
9796 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9797 tmp_addflag=' -i_dynamic' ;;
9798 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9799 tmp_addflag=' -i_dynamic -nofor_main' ;;
9800 ifc* | ifort*) # Intel Fortran compiler
9801 tmp_addflag=' -nofor_main' ;;
9802 lf95*) # Lahey Fortran 8.1
9803 whole_archive_flag_spec=
9804 tmp_sharedflag='--shared' ;;
9805 nagfor*) # NAGFOR 5.3
9806 tmp_sharedflag='-Wl,-shared' ;;
9807 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9808 tmp_sharedflag='-qmkshrobj'
9809 tmp_addflag= ;;
9810 nvcc*) # Cuda Compiler Driver 2.2
9811 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'
9812 compiler_needs_object=yes
9813 ;;
9814 esac
9815 case `$CC -V 2>&1 | $SED 5q` in
9816 *Sun\ C*) # Sun C 5.9
9817 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'
9818 compiler_needs_object=yes
9819 tmp_sharedflag='-G' ;;
9820 *Sun\ F*) # Sun Fortran 8.3
9821 tmp_sharedflag='-G' ;;
9822 esac
9823 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9824
9825 if test yes = "$supports_anon_versioning"; then
9826 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9827 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9828 echo "local: *; };" >> $output_objdir/$libname.ver~
9829 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9830 fi
9831
9832 case $cc_basename in
9833 tcc*)
9834 export_dynamic_flag_spec='-rdynamic'
9835 ;;
9836 xlf* | bgf* | bgxlf* | mpixlf*)
9837 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9838 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9840 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9841 if test yes = "$supports_anon_versioning"; then
9842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844 echo "local: *; };" >> $output_objdir/$libname.ver~
9845 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9846 fi
9847 ;;
9848 esac
9849 else
9850 ld_shlibs=no
9851 fi
9852 ;;
9853
9854 netbsd*)
9855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9856 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9857 wlarc=
9858 else
9859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9860 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9861 fi
9862 ;;
9863
9864 solaris*)
9865 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9866 ld_shlibs=no
9867 cat <<_LT_EOF 1>&2
9868
9869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9870 *** create shared libraries on Solaris systems. Therefore, libtool
9871 *** is disabling shared libraries support. We urge you to upgrade GNU
9872 *** binutils to release 2.9.1 or newer. Another option is to modify
9873 *** your PATH or compiler configuration so that the native linker is
9874 *** used, and then restart.
9875
9876 _LT_EOF
9877 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880 else
9881 ld_shlibs=no
9882 fi
9883 ;;
9884
9885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9886 case `$LD -v 2>&1` in
9887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9888 ld_shlibs=no
9889 cat <<_LT_EOF 1>&2
9890
9891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9892 *** reliably create shared libraries on SCO systems. Therefore, libtool
9893 *** is disabling shared libraries support. We urge you to upgrade GNU
9894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9895 *** your PATH or compiler configuration so that the native linker is
9896 *** used, and then restart.
9897
9898 _LT_EOF
9899 ;;
9900 *)
9901 # For security reasons, it is highly recommended that you always
9902 # use absolute paths for naming shared libraries, and exclude the
9903 # DT_RUNPATH tag from executables and libraries. But doing so
9904 # requires that you compile everything twice, which is a pain.
9905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9909 else
9910 ld_shlibs=no
9911 fi
9912 ;;
9913 esac
9914 ;;
9915
9916 sunos4*)
9917 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9918 wlarc=
9919 hardcode_direct=yes
9920 hardcode_shlibpath_var=no
9921 ;;
9922
9923 *)
9924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9927 else
9928 ld_shlibs=no
9929 fi
9930 ;;
9931 esac
9932
9933 if test no = "$ld_shlibs"; then
9934 runpath_var=
9935 hardcode_libdir_flag_spec=
9936 export_dynamic_flag_spec=
9937 whole_archive_flag_spec=
9938 fi
9939 else
9940 # PORTME fill in a description of your system's linker (not GNU ld)
9941 case $host_os in
9942 aix3*)
9943 allow_undefined_flag=unsupported
9944 always_export_symbols=yes
9945 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'
9946 # Note: this linker hardcodes the directories in LIBPATH if there
9947 # are no directories specified by -L.
9948 hardcode_minus_L=yes
9949 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9950 # Neither direct hardcoding nor static linking is supported with a
9951 # broken collect2.
9952 hardcode_direct=unsupported
9953 fi
9954 ;;
9955
9956 aix[4-9]*)
9957 if test ia64 = "$host_cpu"; then
9958 # On IA64, the linker does run time linking by default, so we don't
9959 # have to do anything special.
9960 aix_use_runtimelinking=no
9961 exp_sym_flag='-Bexport'
9962 no_entry_flag=
9963 else
9964 # If we're using GNU nm, then we don't want the "-C" option.
9965 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9966 # Without the "-l" option, or with the "-B" option, AIX nm treats
9967 # weak defined symbols like other global defined symbols, whereas
9968 # GNU nm marks them as "W".
9969 # While the 'weak' keyword is ignored in the Export File, we need
9970 # it in the Import File for the 'aix-soname' feature, so we have
9971 # to replace the "-B" option with "-P" for AIX nm.
9972 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9973 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'
9974 else
9975 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 == "L") || (\$ 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'
9976 fi
9977 aix_use_runtimelinking=no
9978
9979 # Test if we are trying to use run time linking or normal
9980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9981 # have runtime linking enabled, and use it for executables.
9982 # For shared libraries, we enable/disable runtime linking
9983 # depending on the kind of the shared library created -
9984 # when "with_aix_soname,aix_use_runtimelinking" is:
9985 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9986 # "aix,yes" lib.so shared, rtl:yes, for executables
9987 # lib.a static archive
9988 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9989 # lib.a(lib.so.V) shared, rtl:no, for executables
9990 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9991 # lib.a(lib.so.V) shared, rtl:no
9992 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9993 # lib.a static archive
9994 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9995 for ld_flag in $LDFLAGS; do
9996 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9997 aix_use_runtimelinking=yes
9998 break
9999 fi
10000 done
10001 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10002 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10003 # so we don't have lib.a shared libs to link our executables.
10004 # We have to force runtime linking in this case.
10005 aix_use_runtimelinking=yes
10006 LDFLAGS="$LDFLAGS -Wl,-brtl"
10007 fi
10008 ;;
10009 esac
10010
10011 exp_sym_flag='-bexport'
10012 no_entry_flag='-bnoentry'
10013 fi
10014
10015 # When large executables or shared objects are built, AIX ld can
10016 # have problems creating the table of contents. If linking a library
10017 # or program results in "error TOC overflow" add -mminimal-toc to
10018 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10019 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10020
10021 archive_cmds=''
10022 hardcode_direct=yes
10023 hardcode_direct_absolute=yes
10024 hardcode_libdir_separator=':'
10025 link_all_deplibs=yes
10026 file_list_spec='$wl-f,'
10027 case $with_aix_soname,$aix_use_runtimelinking in
10028 aix,*) ;; # traditional, no import file
10029 svr4,* | *,yes) # use import file
10030 # The Import File defines what to hardcode.
10031 hardcode_direct=no
10032 hardcode_direct_absolute=no
10033 ;;
10034 esac
10035
10036 if test yes = "$GCC"; then
10037 case $host_os in aix4.[012]|aix4.[012].*)
10038 # We only want to do this on AIX 4.2 and lower, the check
10039 # below for broken collect2 doesn't work under 4.3+
10040 collect2name=`$CC -print-prog-name=collect2`
10041 if test -f "$collect2name" &&
10042 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10043 then
10044 # We have reworked collect2
10045 :
10046 else
10047 # We have old collect2
10048 hardcode_direct=unsupported
10049 # It fails to find uninstalled libraries when the uninstalled
10050 # path is not listed in the libpath. Setting hardcode_minus_L
10051 # to unsupported forces relinking
10052 hardcode_minus_L=yes
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_libdir_separator=
10055 fi
10056 ;;
10057 esac
10058 shared_flag='-shared'
10059 if test yes = "$aix_use_runtimelinking"; then
10060 shared_flag="$shared_flag "'$wl-G'
10061 fi
10062 # Need to ensure runtime linking is disabled for the traditional
10063 # shared library, or the linker may eventually find shared libraries
10064 # /with/ Import File - we do not want to mix them.
10065 shared_flag_aix='-shared'
10066 shared_flag_svr4='-shared $wl-G'
10067 else
10068 # not using gcc
10069 if test ia64 = "$host_cpu"; then
10070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10071 # chokes on -Wl,-G. The following line is correct:
10072 shared_flag='-G'
10073 else
10074 if test yes = "$aix_use_runtimelinking"; then
10075 shared_flag='$wl-G'
10076 else
10077 shared_flag='$wl-bM:SRE'
10078 fi
10079 shared_flag_aix='$wl-bM:SRE'
10080 shared_flag_svr4='$wl-G'
10081 fi
10082 fi
10083
10084 export_dynamic_flag_spec='$wl-bexpall'
10085 # It seems that -bexpall does not export symbols beginning with
10086 # underscore (_), so it is better to generate a list of symbols to export.
10087 always_export_symbols=yes
10088 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10089 # Warning - without using the other runtime loading flags (-brtl),
10090 # -berok will link without error, but may produce a broken library.
10091 allow_undefined_flag='-berok'
10092 # Determine the default libpath from the value encoded in an
10093 # empty executable.
10094 if test set = "${lt_cv_aix_libpath+set}"; then
10095 aix_libpath=$lt_cv_aix_libpath
10096 else
10097 if test ${lt_cv_aix_libpath_+y}
10098 then :
10099 printf %s "(cached) " >&6
10100 else $as_nop
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10103
10104 int
10105 main (void)
10106 {
10107
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"
10113 then :
10114
10115 lt_aix_libpath_sed='
10116 /Import File Strings/,/^$/ {
10117 /^0/ {
10118 s/^0 *\([^ ]*\) *$/\1/
10119 p
10120 }
10121 }'
10122 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123 # Check for a 64-bit object if we didn't find anything.
10124 if test -z "$lt_cv_aix_libpath_"; then
10125 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126 fi
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10129 conftest$ac_exeext conftest.$ac_ext
10130 if test -z "$lt_cv_aix_libpath_"; then
10131 lt_cv_aix_libpath_=/usr/lib:/lib
10132 fi
10133
10134 fi
10135
10136 aix_libpath=$lt_cv_aix_libpath_
10137 fi
10138
10139 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10140 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
10141 else
10142 if test ia64 = "$host_cpu"; then
10143 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10144 allow_undefined_flag="-z nodefs"
10145 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"
10146 else
10147 # Determine the default libpath from the value encoded in an
10148 # empty executable.
10149 if test set = "${lt_cv_aix_libpath+set}"; then
10150 aix_libpath=$lt_cv_aix_libpath
10151 else
10152 if test ${lt_cv_aix_libpath_+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else $as_nop
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158
10159 int
10160 main (void)
10161 {
10162
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"
10168 then :
10169
10170 lt_aix_libpath_sed='
10171 /Import File Strings/,/^$/ {
10172 /^0/ {
10173 s/^0 *\([^ ]*\) *$/\1/
10174 p
10175 }
10176 }'
10177 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10178 # Check for a 64-bit object if we didn't find anything.
10179 if test -z "$lt_cv_aix_libpath_"; then
10180 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10181 fi
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10184 conftest$ac_exeext conftest.$ac_ext
10185 if test -z "$lt_cv_aix_libpath_"; then
10186 lt_cv_aix_libpath_=/usr/lib:/lib
10187 fi
10188
10189 fi
10190
10191 aix_libpath=$lt_cv_aix_libpath_
10192 fi
10193
10194 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10195 # Warning - without using the other run time loading flags,
10196 # -berok will link without error, but may produce a broken library.
10197 no_undefined_flag=' $wl-bernotok'
10198 allow_undefined_flag=' $wl-berok'
10199 if test yes = "$with_gnu_ld"; then
10200 # We only use this code for GNU lds that support --whole-archive.
10201 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10202 else
10203 # Exported symbols can be pulled into shared objects from archives
10204 whole_archive_flag_spec='$convenience'
10205 fi
10206 archive_cmds_need_lc=yes
10207 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10208 # -brtl affects multiple linker settings, -berok does not and is overridden later
10209 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10210 if test svr4 != "$with_aix_soname"; then
10211 # This is similar to how AIX traditionally builds its shared libraries.
10212 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'
10213 fi
10214 if test aix != "$with_aix_soname"; then
10215 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'
10216 else
10217 # used by -dlpreopen to get the symbols
10218 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10219 fi
10220 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10221 fi
10222 fi
10223 ;;
10224
10225 amigaos*)
10226 case $host_cpu in
10227 powerpc)
10228 # see comment about AmigaOS4 .so support
10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230 archive_expsym_cmds=''
10231 ;;
10232 m68k)
10233 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)'
10234 hardcode_libdir_flag_spec='-L$libdir'
10235 hardcode_minus_L=yes
10236 ;;
10237 esac
10238 ;;
10239
10240 bsdi[45]*)
10241 export_dynamic_flag_spec=-rdynamic
10242 ;;
10243
10244 cygwin* | mingw* | pw32* | cegcc*)
10245 # When not using gcc, we currently assume that we are using
10246 # Microsoft Visual C++ or Intel C++ Compiler.
10247 # hardcode_libdir_flag_spec is actually meaningless, as there is
10248 # no search path for DLLs.
10249 case $cc_basename in
10250 cl* | icl*)
10251 # Native MSVC or ICC
10252 hardcode_libdir_flag_spec=' '
10253 allow_undefined_flag=unsupported
10254 always_export_symbols=yes
10255 file_list_spec='@'
10256 # Tell ltmain to make .lib files, not .a files.
10257 libext=lib
10258 # Tell ltmain to make .dll files, not .so files.
10259 shrext_cmds=.dll
10260 # FIXME: Setting linknames here is a bad hack.
10261 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10262 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10263 cp "$export_symbols" "$output_objdir/$soname.def";
10264 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10265 else
10266 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10267 fi~
10268 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10269 linknames='
10270 # The linker will not automatically build a static lib if we build a DLL.
10271 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10272 enable_shared_with_static_runtimes=yes
10273 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10275 # Don't use ranlib
10276 old_postinstall_cmds='chmod 644 $oldlib'
10277 postlink_cmds='lt_outputfile="@OUTPUT@"~
10278 lt_tool_outputfile="@TOOL_OUTPUT@"~
10279 case $lt_outputfile in
10280 *.exe|*.EXE) ;;
10281 *)
10282 lt_outputfile=$lt_outputfile.exe
10283 lt_tool_outputfile=$lt_tool_outputfile.exe
10284 ;;
10285 esac~
10286 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10287 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10288 $RM "$lt_outputfile.manifest";
10289 fi'
10290 ;;
10291 *)
10292 # Assume MSVC and ICC wrapper
10293 hardcode_libdir_flag_spec=' '
10294 allow_undefined_flag=unsupported
10295 # Tell ltmain to make .lib files, not .a files.
10296 libext=lib
10297 # Tell ltmain to make .dll files, not .so files.
10298 shrext_cmds=.dll
10299 # FIXME: Setting linknames here is a bad hack.
10300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10301 # The linker will automatically build a .lib file if we build a DLL.
10302 old_archive_from_new_cmds='true'
10303 # FIXME: Should let the user specify the lib program.
10304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10305 enable_shared_with_static_runtimes=yes
10306 ;;
10307 esac
10308 ;;
10309
10310 darwin* | rhapsody*)
10311
10312
10313 archive_cmds_need_lc=no
10314 hardcode_direct=no
10315 hardcode_automatic=yes
10316 hardcode_shlibpath_var=unsupported
10317 if test yes = "$lt_cv_ld_force_load"; then
10318 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\"`'
10319
10320 else
10321 whole_archive_flag_spec=''
10322 fi
10323 link_all_deplibs=yes
10324 allow_undefined_flag=$_lt_dar_allow_undefined
10325 case $cc_basename in
10326 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10327 *) _lt_dar_can_shared=$GCC ;;
10328 esac
10329 if test yes = "$_lt_dar_can_shared"; then
10330 output_verbose_link_cmd=func_echo_all
10331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10333 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"
10334 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"
10335
10336 else
10337 ld_shlibs=no
10338 fi
10339
10340 ;;
10341
10342 dgux*)
10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_shlibpath_var=no
10346 ;;
10347
10348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10349 # support. Future versions do this automatically, but an explicit c++rt0.o
10350 # does not break anything, and helps significantly (at the cost of a little
10351 # extra space).
10352 freebsd2.2*)
10353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10354 hardcode_libdir_flag_spec='-R$libdir'
10355 hardcode_direct=yes
10356 hardcode_shlibpath_var=no
10357 ;;
10358
10359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10360 freebsd2.*)
10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=yes
10363 hardcode_minus_L=yes
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10368 freebsd* | dragonfly* | midnightbsd*)
10369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10370 hardcode_libdir_flag_spec='-R$libdir'
10371 hardcode_direct=yes
10372 hardcode_shlibpath_var=no
10373 ;;
10374
10375 hpux9*)
10376 if test yes = "$GCC"; then
10377 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'
10378 else
10379 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'
10380 fi
10381 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10382 hardcode_libdir_separator=:
10383 hardcode_direct=yes
10384
10385 # hardcode_minus_L: Not really in the search PATH,
10386 # but as the default location of the library.
10387 hardcode_minus_L=yes
10388 export_dynamic_flag_spec='$wl-E'
10389 ;;
10390
10391 hpux10*)
10392 if test yes,no = "$GCC,$with_gnu_ld"; then
10393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394 else
10395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396 fi
10397 if test no = "$with_gnu_ld"; then
10398 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10399 hardcode_libdir_separator=:
10400 hardcode_direct=yes
10401 hardcode_direct_absolute=yes
10402 export_dynamic_flag_spec='$wl-E'
10403 # hardcode_minus_L: Not really in the search PATH,
10404 # but as the default location of the library.
10405 hardcode_minus_L=yes
10406 fi
10407 ;;
10408
10409 hpux11*)
10410 if test yes,no = "$GCC,$with_gnu_ld"; then
10411 case $host_cpu in
10412 hppa*64*)
10413 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 ;;
10415 ia64*)
10416 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10417 ;;
10418 *)
10419 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420 ;;
10421 esac
10422 else
10423 case $host_cpu in
10424 hppa*64*)
10425 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 ;;
10427 ia64*)
10428 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10429 ;;
10430 *)
10431
10432 # Older versions of the 11.00 compiler do not understand -b yet
10433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10435 printf %s "checking if $CC understands -b... " >&6; }
10436 if test ${lt_cv_prog_compiler__b+y}
10437 then :
10438 printf %s "(cached) " >&6
10439 else $as_nop
10440 lt_cv_prog_compiler__b=no
10441 save_LDFLAGS=$LDFLAGS
10442 LDFLAGS="$LDFLAGS -b"
10443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10445 # The linker can only warn and ignore the option if not recognized
10446 # So say no if there are warnings
10447 if test -s conftest.err; then
10448 # Append any errors to the config.log.
10449 cat conftest.err 1>&5
10450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10452 if diff conftest.exp conftest.er2 >/dev/null; then
10453 lt_cv_prog_compiler__b=yes
10454 fi
10455 else
10456 lt_cv_prog_compiler__b=yes
10457 fi
10458 fi
10459 $RM -r conftest*
10460 LDFLAGS=$save_LDFLAGS
10461
10462 fi
10463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10464 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10465
10466 if test yes = "$lt_cv_prog_compiler__b"; then
10467 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468 else
10469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10470 fi
10471
10472 ;;
10473 esac
10474 fi
10475 if test no = "$with_gnu_ld"; then
10476 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10477 hardcode_libdir_separator=:
10478
10479 case $host_cpu in
10480 hppa*64*|ia64*)
10481 hardcode_direct=no
10482 hardcode_shlibpath_var=no
10483 ;;
10484 *)
10485 hardcode_direct=yes
10486 hardcode_direct_absolute=yes
10487 export_dynamic_flag_spec='$wl-E'
10488
10489 # hardcode_minus_L: Not really in the search PATH,
10490 # but as the default location of the library.
10491 hardcode_minus_L=yes
10492 ;;
10493 esac
10494 fi
10495 ;;
10496
10497 irix5* | irix6* | nonstopux*)
10498 if test yes = "$GCC"; then
10499 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'
10500 # Try to use the -exported_symbol ld option, if it does not
10501 # work, assume that -exports_file does not work either and
10502 # implicitly export all symbols.
10503 # This should be the same for all languages, so no per-tag cache variable.
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10505 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10506 if test ${lt_cv_irix_exported_symbol+y}
10507 then :
10508 printf %s "(cached) " >&6
10509 else $as_nop
10510 save_LDFLAGS=$LDFLAGS
10511 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514 int foo (void) { return 0; }
10515 _ACEOF
10516 if ac_fn_c_try_link "$LINENO"
10517 then :
10518 lt_cv_irix_exported_symbol=yes
10519 else $as_nop
10520 lt_cv_irix_exported_symbol=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LDFLAGS=$save_LDFLAGS
10525 fi
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10527 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10528 if test yes = "$lt_cv_irix_exported_symbol"; then
10529 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'
10530 fi
10531 else
10532 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'
10533 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'
10534 fi
10535 archive_cmds_need_lc='no'
10536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537 hardcode_libdir_separator=:
10538 inherit_rpath=yes
10539 link_all_deplibs=yes
10540 ;;
10541
10542 linux*)
10543 case $cc_basename in
10544 tcc*)
10545 # Fabrice Bellard et al's Tiny C Compiler
10546 ld_shlibs=yes
10547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10548 ;;
10549 esac
10550 ;;
10551
10552 netbsd*)
10553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10555 else
10556 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10557 fi
10558 hardcode_libdir_flag_spec='-R$libdir'
10559 hardcode_direct=yes
10560 hardcode_shlibpath_var=no
10561 ;;
10562
10563 newsos6)
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_direct=yes
10566 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10567 hardcode_libdir_separator=:
10568 hardcode_shlibpath_var=no
10569 ;;
10570
10571 *nto* | *qnx*)
10572 ;;
10573
10574 openbsd* | bitrig*)
10575 if test -f /usr/libexec/ld.so; then
10576 hardcode_direct=yes
10577 hardcode_shlibpath_var=no
10578 hardcode_direct_absolute=yes
10579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10582 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10583 export_dynamic_flag_spec='$wl-E'
10584 else
10585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10587 fi
10588 else
10589 ld_shlibs=no
10590 fi
10591 ;;
10592
10593 os2*)
10594 hardcode_libdir_flag_spec='-L$libdir'
10595 hardcode_minus_L=yes
10596 allow_undefined_flag=unsupported
10597 shrext_cmds=.dll
10598 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10599 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10600 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10601 $ECHO EXPORTS >> $output_objdir/$libname.def~
10602 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10603 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10604 emximp -o $lib $output_objdir/$libname.def'
10605 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10606 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10607 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10608 $ECHO EXPORTS >> $output_objdir/$libname.def~
10609 prefix_cmds="$SED"~
10610 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10611 prefix_cmds="$prefix_cmds -e 1d";
10612 fi~
10613 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10614 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10616 emximp -o $lib $output_objdir/$libname.def'
10617 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10618 enable_shared_with_static_runtimes=yes
10619 file_list_spec='@'
10620 ;;
10621
10622 osf3*)
10623 if test yes = "$GCC"; then
10624 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10625 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'
10626 else
10627 allow_undefined_flag=' -expect_unresolved \*'
10628 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'
10629 fi
10630 archive_cmds_need_lc='no'
10631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10632 hardcode_libdir_separator=:
10633 ;;
10634
10635 osf4* | osf5*) # as osf3* with the addition of -msym flag
10636 if test yes = "$GCC"; then
10637 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10638 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'
10639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640 else
10641 allow_undefined_flag=' -expect_unresolved \*'
10642 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'
10643 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~
10644 $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'
10645
10646 # Both c and cxx compiler support -rpath directly
10647 hardcode_libdir_flag_spec='-rpath $libdir'
10648 fi
10649 archive_cmds_need_lc='no'
10650 hardcode_libdir_separator=:
10651 ;;
10652
10653 solaris*)
10654 no_undefined_flag=' -z defs'
10655 if test yes = "$GCC"; then
10656 wlarc='$wl'
10657 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659 $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'
10660 else
10661 case `$CC -V 2>&1` in
10662 *"Compilers 5.0"*)
10663 wlarc=''
10664 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10667 ;;
10668 *)
10669 wlarc='$wl'
10670 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10672 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10673 ;;
10674 esac
10675 fi
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_shlibpath_var=no
10678 case $host_os in
10679 solaris2.[0-5] | solaris2.[0-5].*) ;;
10680 *)
10681 # The compiler driver will combine and reorder linker options,
10682 # but understands '-z linker_flag'. GCC discards it without '$wl',
10683 # but is careful enough not to reorder.
10684 # Supported since Solaris 2.6 (maybe 2.5.1?)
10685 if test yes = "$GCC"; then
10686 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10687 else
10688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10689 fi
10690 ;;
10691 esac
10692 link_all_deplibs=yes
10693 ;;
10694
10695 sunos4*)
10696 if test sequent = "$host_vendor"; then
10697 # Use $CC to link under sequent, because it throws in some extra .o
10698 # files that make .init and .fini sections work.
10699 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10700 else
10701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10702 fi
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_direct=yes
10705 hardcode_minus_L=yes
10706 hardcode_shlibpath_var=no
10707 ;;
10708
10709 sysv4)
10710 case $host_vendor in
10711 sni)
10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713 hardcode_direct=yes # is this really true???
10714 ;;
10715 siemens)
10716 ## LD is ld it makes a PLAMLIB
10717 ## CC just makes a GrossModule.
10718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10719 reload_cmds='$CC -r -o $output$reload_objs'
10720 hardcode_direct=no
10721 ;;
10722 motorola)
10723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10725 ;;
10726 esac
10727 runpath_var='LD_RUN_PATH'
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 sysv4.3*)
10732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733 hardcode_shlibpath_var=no
10734 export_dynamic_flag_spec='-Bexport'
10735 ;;
10736
10737 sysv4*MP*)
10738 if test -d /usr/nec; then
10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740 hardcode_shlibpath_var=no
10741 runpath_var=LD_RUN_PATH
10742 hardcode_runpath_var=yes
10743 ld_shlibs=yes
10744 fi
10745 ;;
10746
10747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10748 no_undefined_flag='$wl-z,text'
10749 archive_cmds_need_lc=no
10750 hardcode_shlibpath_var=no
10751 runpath_var='LD_RUN_PATH'
10752
10753 if test yes = "$GCC"; then
10754 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 else
10757 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 fi
10760 ;;
10761
10762 sysv5* | sco3.2v5* | sco5v6*)
10763 # Note: We CANNOT use -z defs as we might desire, because we do not
10764 # link with -lc, and that would cause any symbols used from libc to
10765 # always be unresolved, which means just about no library would
10766 # ever link correctly. If we're not using GNU ld we use -z text
10767 # though, which does catch some bad symbols but isn't as heavy-handed
10768 # as -z defs.
10769 no_undefined_flag='$wl-z,text'
10770 allow_undefined_flag='$wl-z,nodefs'
10771 archive_cmds_need_lc=no
10772 hardcode_shlibpath_var=no
10773 hardcode_libdir_flag_spec='$wl-R,$libdir'
10774 hardcode_libdir_separator=':'
10775 link_all_deplibs=yes
10776 export_dynamic_flag_spec='$wl-Bexport'
10777 runpath_var='LD_RUN_PATH'
10778
10779 if test yes = "$GCC"; then
10780 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 else
10783 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 fi
10786 ;;
10787
10788 uts4*)
10789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_shlibpath_var=no
10792 ;;
10793
10794 *)
10795 ld_shlibs=no
10796 ;;
10797 esac
10798
10799 if test sni = "$host_vendor"; then
10800 case $host in
10801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10802 export_dynamic_flag_spec='$wl-Blargedynsym'
10803 ;;
10804 esac
10805 fi
10806 fi
10807
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10809 printf "%s\n" "$ld_shlibs" >&6; }
10810 test no = "$ld_shlibs" && can_build_shared=no
10811
10812 with_gnu_ld=$with_gnu_ld
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828 #
10829 # Do we need to explicitly link libc?
10830 #
10831 case "x$archive_cmds_need_lc" in
10832 x|xyes)
10833 # Assume -lc should be added
10834 archive_cmds_need_lc=yes
10835
10836 if test yes,yes = "$GCC,$enable_shared"; then
10837 case $archive_cmds in
10838 *'~'*)
10839 # FIXME: we may have to deal with multi-command sequences.
10840 ;;
10841 '$CC '*)
10842 # Test whether the compiler implicitly links with -lc since on some
10843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10844 # to ld, don't add -lc before -lgcc.
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10846 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10847 if test ${lt_cv_archive_cmds_need_lc+y}
10848 then :
10849 printf %s "(cached) " >&6
10850 else $as_nop
10851 $RM conftest*
10852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10853
10854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10855 (eval $ac_compile) 2>&5
10856 ac_status=$?
10857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858 test $ac_status = 0; } 2>conftest.err; then
10859 soname=conftest
10860 lib=conftest
10861 libobjs=conftest.$ac_objext
10862 deplibs=
10863 wl=$lt_prog_compiler_wl
10864 pic_flag=$lt_prog_compiler_pic
10865 compiler_flags=-v
10866 linker_flags=-v
10867 verstring=
10868 output_objdir=.
10869 libname=conftest
10870 lt_save_allow_undefined_flag=$allow_undefined_flag
10871 allow_undefined_flag=
10872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10873 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10874 ac_status=$?
10875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876 test $ac_status = 0; }
10877 then
10878 lt_cv_archive_cmds_need_lc=no
10879 else
10880 lt_cv_archive_cmds_need_lc=yes
10881 fi
10882 allow_undefined_flag=$lt_save_allow_undefined_flag
10883 else
10884 cat conftest.err 1>&5
10885 fi
10886 $RM conftest*
10887
10888 fi
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10890 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10891 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10892 ;;
10893 esac
10894 fi
10895 ;;
10896 esac
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11050 printf %s "checking dynamic linker characteristics... " >&6; }
11051
11052 if test yes = "$GCC"; then
11053 case $host_os in
11054 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11055 *) lt_awk_arg='/^libraries:/' ;;
11056 esac
11057 case $host_os in
11058 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11059 *) lt_sed_strip_eq='s|=/|/|g' ;;
11060 esac
11061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11062 case $lt_search_path_spec in
11063 *\;*)
11064 # if the path contains ";" then we assume it to be the separator
11065 # otherwise default to the standard path separator (i.e. ":") - it is
11066 # assumed that no part of a normal pathname contains ";" but that should
11067 # okay in the real world where ";" in dirpaths is itself problematic.
11068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11069 ;;
11070 *)
11071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11072 ;;
11073 esac
11074 # Ok, now we have the path, separated by spaces, we can step through it
11075 # and add multilib dir if necessary...
11076 lt_tmp_lt_search_path_spec=
11077 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11078 # ...but if some path component already ends with the multilib dir we assume
11079 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11080 case "$lt_multi_os_dir; $lt_search_path_spec " in
11081 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11082 lt_multi_os_dir=
11083 ;;
11084 esac
11085 for lt_sys_path in $lt_search_path_spec; do
11086 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11087 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11088 elif test -n "$lt_multi_os_dir"; then
11089 test -d "$lt_sys_path" && \
11090 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11091 fi
11092 done
11093 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11094 BEGIN {RS = " "; FS = "/|\n";} {
11095 lt_foo = "";
11096 lt_count = 0;
11097 for (lt_i = NF; lt_i > 0; lt_i--) {
11098 if ($lt_i != "" && $lt_i != ".") {
11099 if ($lt_i == "..") {
11100 lt_count++;
11101 } else {
11102 if (lt_count == 0) {
11103 lt_foo = "/" $lt_i lt_foo;
11104 } else {
11105 lt_count--;
11106 }
11107 }
11108 }
11109 }
11110 if (lt_foo != "") { lt_freq[lt_foo]++; }
11111 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11112 }'`
11113 # AWK program above erroneously prepends '/' to C:/dos/paths
11114 # for these hosts.
11115 case $host_os in
11116 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11117 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11118 esac
11119 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11120 else
11121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122 fi
11123 library_names_spec=
11124 libname_spec='lib$name'
11125 soname_spec=
11126 shrext_cmds=.so
11127 postinstall_cmds=
11128 postuninstall_cmds=
11129 finish_cmds=
11130 finish_eval=
11131 shlibpath_var=
11132 shlibpath_overrides_runpath=unknown
11133 version_type=none
11134 dynamic_linker="$host_os ld.so"
11135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11136 need_lib_prefix=unknown
11137 hardcode_into_libs=no
11138
11139 # when you set need_version to no, make sure it does not cause -set_version
11140 # flags to be left without arguments
11141 need_version=unknown
11142
11143
11144
11145 case $host_os in
11146 aix3*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11149 shlibpath_var=LIBPATH
11150
11151 # AIX 3 has no versioning support, so we append a major version to the name.
11152 soname_spec='$libname$release$shared_ext$major'
11153 ;;
11154
11155 aix[4-9]*)
11156 version_type=linux # correct to gnu/linux during the next big refactor
11157 need_lib_prefix=no
11158 need_version=no
11159 hardcode_into_libs=yes
11160 if test ia64 = "$host_cpu"; then
11161 # AIX 5 supports IA64
11162 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 else
11165 # With GCC up to 2.95.x, collect2 would create an import file
11166 # for dependence libraries. The import file would start with
11167 # the line '#! .'. This would cause the generated library to
11168 # depend on '.', always an invalid library. This was fixed in
11169 # development snapshots of GCC prior to 3.0.
11170 case $host_os in
11171 aix4 | aix4.[01] | aix4.[01].*)
11172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173 echo ' yes '
11174 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11175 :
11176 else
11177 can_build_shared=no
11178 fi
11179 ;;
11180 esac
11181 # Using Import Files as archive members, it is possible to support
11182 # filename-based versioning of shared library archives on AIX. While
11183 # this would work for both with and without runtime linking, it will
11184 # prevent static linking of such archives. So we do filename-based
11185 # shared library versioning with .so extension only, which is used
11186 # when both runtime linking and shared linking is enabled.
11187 # Unfortunately, runtime linking may impact performance, so we do
11188 # not want this to be the default eventually. Also, we use the
11189 # versioned .so libs for executables only if there is the -brtl
11190 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11191 # To allow for filename-based versioning support, we need to create
11192 # libNAME.so.V as an archive file, containing:
11193 # *) an Import File, referring to the versioned filename of the
11194 # archive as well as the shared archive member, telling the
11195 # bitwidth (32 or 64) of that shared object, and providing the
11196 # list of exported symbols of that shared object, eventually
11197 # decorated with the 'weak' keyword
11198 # *) the shared object with the F_LOADONLY flag set, to really avoid
11199 # it being seen by the linker.
11200 # At run time we better use the real file rather than another symlink,
11201 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11202
11203 case $with_aix_soname,$aix_use_runtimelinking in
11204 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11205 # soname into executable. Probably we can add versioning support to
11206 # collect2, so additional links can be useful in future.
11207 aix,yes) # traditional libtool
11208 dynamic_linker='AIX unversionable lib.so'
11209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11210 # instead of lib<name>.a to let people know that these are not
11211 # typical AIX shared libraries.
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213 ;;
11214 aix,no) # traditional AIX only
11215 dynamic_linker='AIX lib.a(lib.so.V)'
11216 # We preserve .a as extension for shared libraries through AIX4.2
11217 # and later when we are not doing run time linking.
11218 library_names_spec='$libname$release.a $libname.a'
11219 soname_spec='$libname$release$shared_ext$major'
11220 ;;
11221 svr4,*) # full svr4 only
11222 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11223 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11224 # We do not specify a path in Import Files, so LIBPATH fires.
11225 shlibpath_overrides_runpath=yes
11226 ;;
11227 *,yes) # both, prefer svr4
11228 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11229 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11230 # unpreferred sharedlib libNAME.a needs extra handling
11231 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"'
11232 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"'
11233 # We do not specify a path in Import Files, so LIBPATH fires.
11234 shlibpath_overrides_runpath=yes
11235 ;;
11236 *,no) # both, prefer aix
11237 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11238 library_names_spec='$libname$release.a $libname.a'
11239 soname_spec='$libname$release$shared_ext$major'
11240 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11241 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)'
11242 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"'
11243 ;;
11244 esac
11245 shlibpath_var=LIBPATH
11246 fi
11247 ;;
11248
11249 amigaos*)
11250 case $host_cpu in
11251 powerpc)
11252 # Since July 2007 AmigaOS4 officially supports .so libraries.
11253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255 ;;
11256 m68k)
11257 library_names_spec='$libname.ixlibrary $libname.a'
11258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11259 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'
11260 ;;
11261 esac
11262 ;;
11263
11264 beos*)
11265 library_names_spec='$libname$shared_ext'
11266 dynamic_linker="$host_os ld.so"
11267 shlibpath_var=LIBRARY_PATH
11268 ;;
11269
11270 bsdi[45]*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 need_version=no
11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11274 soname_spec='$libname$release$shared_ext$major'
11275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11279 # the default ld.so.conf also contains /usr/contrib/lib and
11280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11281 # libtool to hard-code these into programs
11282 ;;
11283
11284 cygwin* | mingw* | pw32* | cegcc*)
11285 version_type=windows
11286 shrext_cmds=.dll
11287 need_version=no
11288 need_lib_prefix=no
11289
11290 case $GCC,$cc_basename in
11291 yes,*)
11292 # gcc
11293 library_names_spec='$libname.dll.a'
11294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295 postinstall_cmds='base_file=`basename \$file`~
11296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11297 dldir=$destdir/`dirname \$dlpath`~
11298 test -d \$dldir || mkdir -p \$dldir~
11299 $install_prog $dir/$dlname \$dldir/$dlname~
11300 chmod a+x \$dldir/$dlname~
11301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11303 fi'
11304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11305 dlpath=$dir/\$dldll~
11306 $RM \$dlpath'
11307 shlibpath_overrides_runpath=yes
11308
11309 case $host_os in
11310 cygwin*)
11311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11312 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11313
11314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11315 ;;
11316 mingw* | cegcc*)
11317 # MinGW DLLs use traditional 'lib' prefix
11318 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11319 ;;
11320 pw32*)
11321 # pw32 DLLs use 'pw' prefix rather than 'lib'
11322 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11323 ;;
11324 esac
11325 dynamic_linker='Win32 ld.exe'
11326 ;;
11327
11328 *,cl* | *,icl*)
11329 # Native MSVC or ICC
11330 libname_spec='$name'
11331 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11332 library_names_spec='$libname.dll.lib'
11333
11334 case $build_os in
11335 mingw*)
11336 sys_lib_search_path_spec=
11337 lt_save_ifs=$IFS
11338 IFS=';'
11339 for lt_path in $LIB
11340 do
11341 IFS=$lt_save_ifs
11342 # Let DOS variable expansion print the short 8.3 style file name.
11343 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11344 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11345 done
11346 IFS=$lt_save_ifs
11347 # Convert to MSYS style.
11348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11349 ;;
11350 cygwin*)
11351 # Convert to unix form, then to dos form, then back to unix form
11352 # but this time dos style (no spaces!) so that the unix form looks
11353 # like /cygdrive/c/PROGRA~1:/cygdr...
11354 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11355 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11356 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11357 ;;
11358 *)
11359 sys_lib_search_path_spec=$LIB
11360 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11361 # It is most probably a Windows format PATH.
11362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11363 else
11364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11365 fi
11366 # FIXME: find the short name or the path components, as spaces are
11367 # common. (e.g. "Program Files" -> "PROGRA~1")
11368 ;;
11369 esac
11370
11371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11372 postinstall_cmds='base_file=`basename \$file`~
11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11374 dldir=$destdir/`dirname \$dlpath`~
11375 test -d \$dldir || mkdir -p \$dldir~
11376 $install_prog $dir/$dlname \$dldir/$dlname'
11377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11378 dlpath=$dir/\$dldll~
11379 $RM \$dlpath'
11380 shlibpath_overrides_runpath=yes
11381 dynamic_linker='Win32 link.exe'
11382 ;;
11383
11384 *)
11385 # Assume MSVC and ICC wrapper
11386 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11387 dynamic_linker='Win32 ld.exe'
11388 ;;
11389 esac
11390 # FIXME: first we should search . and the directory the executable is in
11391 shlibpath_var=PATH
11392 ;;
11393
11394 darwin* | rhapsody*)
11395 dynamic_linker="$host_os dyld"
11396 version_type=darwin
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11400 soname_spec='$libname$release$major$shared_ext'
11401 shlibpath_overrides_runpath=yes
11402 shlibpath_var=DYLD_LIBRARY_PATH
11403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11404
11405 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11407 ;;
11408
11409 dgux*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11411 need_lib_prefix=no
11412 need_version=no
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414 soname_spec='$libname$release$shared_ext$major'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 ;;
11417
11418 freebsd* | dragonfly* | midnightbsd*)
11419 # DragonFly does not have aout. When/if they implement a new
11420 # versioning mechanism, adjust this.
11421 if test -x /usr/bin/objformat; then
11422 objformat=`/usr/bin/objformat`
11423 else
11424 case $host_os in
11425 freebsd[23].*) objformat=aout ;;
11426 *) objformat=elf ;;
11427 esac
11428 fi
11429 version_type=freebsd-$objformat
11430 case $version_type in
11431 freebsd-elf*)
11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11433 soname_spec='$libname$release$shared_ext$major'
11434 need_version=no
11435 need_lib_prefix=no
11436 ;;
11437 freebsd-*)
11438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11439 need_version=yes
11440 ;;
11441 esac
11442 shlibpath_var=LD_LIBRARY_PATH
11443 case $host_os in
11444 freebsd2.*)
11445 shlibpath_overrides_runpath=yes
11446 ;;
11447 freebsd3.[01]* | freebsdelf3.[01]*)
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 ;;
11451 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11452 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11453 shlibpath_overrides_runpath=no
11454 hardcode_into_libs=yes
11455 ;;
11456 *) # from 4.6 on, and DragonFly
11457 shlibpath_overrides_runpath=yes
11458 hardcode_into_libs=yes
11459 ;;
11460 esac
11461 ;;
11462
11463 haiku*)
11464 version_type=linux # correct to gnu/linux during the next big refactor
11465 need_lib_prefix=no
11466 need_version=no
11467 dynamic_linker="$host_os runtime_loader"
11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469 soname_spec='$libname$release$shared_ext$major'
11470 shlibpath_var=LIBRARY_PATH
11471 shlibpath_overrides_runpath=no
11472 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11473 hardcode_into_libs=yes
11474 ;;
11475
11476 hpux9* | hpux10* | hpux11*)
11477 # Give a soname corresponding to the major version so that dld.sl refuses to
11478 # link against other versions.
11479 version_type=sunos
11480 need_lib_prefix=no
11481 need_version=no
11482 case $host_cpu in
11483 ia64*)
11484 shrext_cmds='.so'
11485 hardcode_into_libs=yes
11486 dynamic_linker="$host_os dld.so"
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490 soname_spec='$libname$release$shared_ext$major'
11491 if test 32 = "$HPUX_IA64_MODE"; then
11492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11494 else
11495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11497 fi
11498 ;;
11499 hppa*64*)
11500 shrext_cmds='.sl'
11501 hardcode_into_libs=yes
11502 dynamic_linker="$host_os dld.sl"
11503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506 soname_spec='$libname$release$shared_ext$major'
11507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509 ;;
11510 *)
11511 shrext_cmds='.sl'
11512 dynamic_linker="$host_os dld.sl"
11513 shlibpath_var=SHLIB_PATH
11514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516 soname_spec='$libname$release$shared_ext$major'
11517 ;;
11518 esac
11519 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11520 postinstall_cmds='chmod 555 $lib'
11521 # or fails outright, so override atomically:
11522 install_override_mode=555
11523 ;;
11524
11525 interix[3-9]*)
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534 hardcode_into_libs=yes
11535 ;;
11536
11537 irix5* | irix6* | nonstopux*)
11538 case $host_os in
11539 nonstopux*) version_type=nonstopux ;;
11540 *)
11541 if test yes = "$lt_cv_prog_gnu_ld"; then
11542 version_type=linux # correct to gnu/linux during the next big refactor
11543 else
11544 version_type=irix
11545 fi ;;
11546 esac
11547 need_lib_prefix=no
11548 need_version=no
11549 soname_spec='$libname$release$shared_ext$major'
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11551 case $host_os in
11552 irix5* | nonstopux*)
11553 libsuff= shlibsuff=
11554 ;;
11555 *)
11556 case $LD in # libtool.m4 will add one of these switches to LD
11557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11558 libsuff= shlibsuff= libmagic=32-bit;;
11559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11560 libsuff=32 shlibsuff=N32 libmagic=N32;;
11561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11563 *) libsuff= shlibsuff= libmagic=never-match;;
11564 esac
11565 ;;
11566 esac
11567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11568 shlibpath_overrides_runpath=no
11569 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11570 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11571 hardcode_into_libs=yes
11572 ;;
11573
11574 # No shared lib support for Linux oldld, aout, or coff.
11575 linux*oldld* | linux*aout* | linux*coff*)
11576 dynamic_linker=no
11577 ;;
11578
11579 linux*android*)
11580 version_type=none # Android doesn't support versioned libraries.
11581 need_lib_prefix=no
11582 need_version=no
11583 library_names_spec='$libname$release$shared_ext'
11584 soname_spec='$libname$release$shared_ext'
11585 finish_cmds=
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588
11589 # This implies no fast_install, which is unacceptable.
11590 # Some rework will be needed to allow for fast_install
11591 # before this can be enabled.
11592 hardcode_into_libs=yes
11593
11594 dynamic_linker='Android linker'
11595 # Don't embed -rpath directories since the linker doesn't support them.
11596 hardcode_libdir_flag_spec='-L$libdir'
11597 ;;
11598
11599 # This must be glibc/ELF.
11600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11601 version_type=linux # correct to gnu/linux during the next big refactor
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605 soname_spec='$libname$release$shared_ext$major'
11606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=no
11609
11610 # Some binutils ld are patched to set DT_RUNPATH
11611 if test ${lt_cv_shlibpath_overrides_runpath+y}
11612 then :
11613 printf %s "(cached) " >&6
11614 else $as_nop
11615 lt_cv_shlibpath_overrides_runpath=no
11616 save_LDFLAGS=$LDFLAGS
11617 save_libdir=$libdir
11618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622
11623 int
11624 main (void)
11625 {
11626
11627 ;
11628 return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"
11632 then :
11633 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11634 then :
11635 lt_cv_shlibpath_overrides_runpath=yes
11636 fi
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LDFLAGS=$save_LDFLAGS
11641 libdir=$save_libdir
11642
11643 fi
11644
11645 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11646
11647 # This implies no fast_install, which is unacceptable.
11648 # Some rework will be needed to allow for fast_install
11649 # before this can be enabled.
11650 hardcode_into_libs=yes
11651
11652 # Ideally, we could use ldconfig to report *all* directores which are
11653 # searched for libraries, however this is still not possible. Aside from not
11654 # being certain /sbin/ldconfig is available, command
11655 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11656 # even though it is searched at run-time. Try to do the best guess by
11657 # appending ld.so.conf contents (and includes) to the search path.
11658 if test -f /etc/ld.so.conf; then
11659 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' ' '`
11660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11661 fi
11662
11663 # We used to test for /lib/ld.so.1 and disable shared libraries on
11664 # powerpc, because MkLinux only supported shared libraries with the
11665 # GNU dynamic linker. Since this was broken with cross compilers,
11666 # most powerpc-linux boxes support dynamic linking these days and
11667 # people can always --disable-shared, the test was removed, and we
11668 # assume the GNU/Linux dynamic linker is in use.
11669 dynamic_linker='GNU/Linux ld.so'
11670 ;;
11671
11672 netbsd*)
11673 version_type=sunos
11674 need_lib_prefix=no
11675 need_version=no
11676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11679 dynamic_linker='NetBSD (a.out) ld.so'
11680 else
11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11682 soname_spec='$libname$release$shared_ext$major'
11683 dynamic_linker='NetBSD ld.elf_so'
11684 fi
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=yes
11687 hardcode_into_libs=yes
11688 ;;
11689
11690 newsos6)
11691 version_type=linux # correct to gnu/linux during the next big refactor
11692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 ;;
11696
11697 *nto* | *qnx*)
11698 version_type=qnx
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702 soname_spec='$libname$release$shared_ext$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 hardcode_into_libs=yes
11706 dynamic_linker='ldqnx.so'
11707 ;;
11708
11709 openbsd* | bitrig*)
11710 version_type=sunos
11711 sys_lib_dlsearch_path_spec=/usr/lib
11712 need_lib_prefix=no
11713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11714 need_version=no
11715 else
11716 need_version=yes
11717 fi
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 ;;
11723
11724 os2*)
11725 libname_spec='$name'
11726 version_type=windows
11727 shrext_cmds=.dll
11728 need_version=no
11729 need_lib_prefix=no
11730 # OS/2 can only load a DLL with a base name of 8 characters or less.
11731 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11732 v=$($ECHO $release$versuffix | tr -d .-);
11733 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11734 $ECHO $n$v`$shared_ext'
11735 library_names_spec='${libname}_dll.$libext'
11736 dynamic_linker='OS/2 ld.exe'
11737 shlibpath_var=BEGINLIBPATH
11738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740 postinstall_cmds='base_file=`basename \$file`~
11741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11742 dldir=$destdir/`dirname \$dlpath`~
11743 test -d \$dldir || mkdir -p \$dldir~
11744 $install_prog $dir/$dlname \$dldir/$dlname~
11745 chmod a+x \$dldir/$dlname~
11746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11748 fi'
11749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11750 dlpath=$dir/\$dldll~
11751 $RM \$dlpath'
11752 ;;
11753
11754 osf3* | osf4* | osf5*)
11755 version_type=osf
11756 need_lib_prefix=no
11757 need_version=no
11758 soname_spec='$libname$release$shared_ext$major'
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11763 ;;
11764
11765 rdos*)
11766 dynamic_linker=no
11767 ;;
11768
11769 solaris*)
11770 version_type=linux # correct to gnu/linux during the next big refactor
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11774 soname_spec='$libname$release$shared_ext$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 shlibpath_overrides_runpath=yes
11777 hardcode_into_libs=yes
11778 # ldd complains unless libraries are executable
11779 postinstall_cmds='chmod +x $lib'
11780 ;;
11781
11782 sunos4*)
11783 version_type=sunos
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 if test yes = "$with_gnu_ld"; then
11789 need_lib_prefix=no
11790 fi
11791 need_version=yes
11792 ;;
11793
11794 sysv4 | sysv4.3*)
11795 version_type=linux # correct to gnu/linux during the next big refactor
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797 soname_spec='$libname$release$shared_ext$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 case $host_vendor in
11800 sni)
11801 shlibpath_overrides_runpath=no
11802 need_lib_prefix=no
11803 runpath_var=LD_RUN_PATH
11804 ;;
11805 siemens)
11806 need_lib_prefix=no
11807 ;;
11808 motorola)
11809 need_lib_prefix=no
11810 need_version=no
11811 shlibpath_overrides_runpath=no
11812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11813 ;;
11814 esac
11815 ;;
11816
11817 sysv4*MP*)
11818 if test -d /usr/nec; then
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11821 soname_spec='$libname$shared_ext.$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 fi
11824 ;;
11825
11826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11827 version_type=sco
11828 need_lib_prefix=no
11829 need_version=no
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11831 soname_spec='$libname$release$shared_ext$major'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 hardcode_into_libs=yes
11835 if test yes = "$with_gnu_ld"; then
11836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11837 else
11838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11839 case $host_os in
11840 sco3.2v5*)
11841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11842 ;;
11843 esac
11844 fi
11845 sys_lib_dlsearch_path_spec='/usr/lib'
11846 ;;
11847
11848 tpf*)
11849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11850 version_type=linux # correct to gnu/linux during the next big refactor
11851 need_lib_prefix=no
11852 need_version=no
11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=no
11856 hardcode_into_libs=yes
11857 ;;
11858
11859 uts4*)
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862 soname_spec='$libname$release$shared_ext$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 ;;
11865
11866 *)
11867 dynamic_linker=no
11868 ;;
11869 esac
11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11871 printf "%s\n" "$dynamic_linker" >&6; }
11872 test no = "$dynamic_linker" && can_build_shared=no
11873
11874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11875 if test yes = "$GCC"; then
11876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11877 fi
11878
11879 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11880 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11881 fi
11882
11883 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11884 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11885 fi
11886
11887 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11888 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11889
11890 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11891 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11892
11893 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11894 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11993 printf %s "checking how to hardcode library paths into programs... " >&6; }
11994 hardcode_action=
11995 if test -n "$hardcode_libdir_flag_spec" ||
11996 test -n "$runpath_var" ||
11997 test yes = "$hardcode_automatic"; then
11998
11999 # We can hardcode non-existent directories.
12000 if test no != "$hardcode_direct" &&
12001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12002 # have to relink, otherwise we might link with an installed library
12003 # when we should be linking with a yet-to-be-installed one
12004 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12005 test no != "$hardcode_minus_L"; then
12006 # Linking always hardcodes the temporary library directory.
12007 hardcode_action=relink
12008 else
12009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12010 hardcode_action=immediate
12011 fi
12012 else
12013 # We cannot hardcode anything, or else we can only hardcode existing
12014 # directories.
12015 hardcode_action=unsupported
12016 fi
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12018 printf "%s\n" "$hardcode_action" >&6; }
12019
12020 if test relink = "$hardcode_action" ||
12021 test yes = "$inherit_rpath"; then
12022 # Fast installation is not supported
12023 enable_fast_install=no
12024 elif test yes = "$shlibpath_overrides_runpath" ||
12025 test no = "$enable_shared"; then
12026 # Fast installation is not necessary
12027 enable_fast_install=needless
12028 fi
12029
12030
12031
12032
12033
12034
12035 if test yes != "$enable_dlopen"; then
12036 enable_dlopen=unknown
12037 enable_dlopen_self=unknown
12038 enable_dlopen_self_static=unknown
12039 else
12040 lt_cv_dlopen=no
12041 lt_cv_dlopen_libs=
12042
12043 case $host_os in
12044 beos*)
12045 lt_cv_dlopen=load_add_on
12046 lt_cv_dlopen_libs=
12047 lt_cv_dlopen_self=yes
12048 ;;
12049
12050 mingw* | pw32* | cegcc*)
12051 lt_cv_dlopen=LoadLibrary
12052 lt_cv_dlopen_libs=
12053 ;;
12054
12055 cygwin*)
12056 lt_cv_dlopen=dlopen
12057 lt_cv_dlopen_libs=
12058 ;;
12059
12060 darwin*)
12061 # if libdl is installed we need to link against it
12062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12063 printf %s "checking for dlopen in -ldl... " >&6; }
12064 if test ${ac_cv_lib_dl_dlopen+y}
12065 then :
12066 printf %s "(cached) " >&6
12067 else $as_nop
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-ldl $LIBS"
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076 char dlopen ();
12077 int
12078 main (void)
12079 {
12080 return dlopen ();
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_link "$LINENO"
12086 then :
12087 ac_cv_lib_dl_dlopen=yes
12088 else $as_nop
12089 ac_cv_lib_dl_dlopen=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12094 fi
12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12096 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12097 if test "x$ac_cv_lib_dl_dlopen" = xyes
12098 then :
12099 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12100 else $as_nop
12101
12102 lt_cv_dlopen=dyld
12103 lt_cv_dlopen_libs=
12104 lt_cv_dlopen_self=yes
12105
12106 fi
12107
12108 ;;
12109
12110 tpf*)
12111 # Don't try to run any link tests for TPF. We know it's impossible
12112 # because TPF is a cross-compiler, and we know how we open DSOs.
12113 lt_cv_dlopen=dlopen
12114 lt_cv_dlopen_libs=
12115 lt_cv_dlopen_self=no
12116 ;;
12117
12118 *)
12119 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12120 if test "x$ac_cv_func_shl_load" = xyes
12121 then :
12122 lt_cv_dlopen=shl_load
12123 else $as_nop
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12125 printf %s "checking for shl_load in -ldld... " >&6; }
12126 if test ${ac_cv_lib_dld_shl_load+y}
12127 then :
12128 printf %s "(cached) " >&6
12129 else $as_nop
12130 ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-ldld $LIBS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 char shl_load ();
12139 int
12140 main (void)
12141 {
12142 return shl_load ();
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_link "$LINENO"
12148 then :
12149 ac_cv_lib_dld_shl_load=yes
12150 else $as_nop
12151 ac_cv_lib_dld_shl_load=no
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12158 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12159 if test "x$ac_cv_lib_dld_shl_load" = xyes
12160 then :
12161 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12162 else $as_nop
12163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12164 if test "x$ac_cv_func_dlopen" = xyes
12165 then :
12166 lt_cv_dlopen=dlopen
12167 else $as_nop
12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12169 printf %s "checking for dlopen in -ldl... " >&6; }
12170 if test ${ac_cv_lib_dl_dlopen+y}
12171 then :
12172 printf %s "(cached) " >&6
12173 else $as_nop
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-ldl $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182 char dlopen ();
12183 int
12184 main (void)
12185 {
12186 return dlopen ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"
12192 then :
12193 ac_cv_lib_dl_dlopen=yes
12194 else $as_nop
12195 ac_cv_lib_dl_dlopen=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12202 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12203 if test "x$ac_cv_lib_dl_dlopen" = xyes
12204 then :
12205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12206 else $as_nop
12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12208 printf %s "checking for dlopen in -lsvld... " >&6; }
12209 if test ${ac_cv_lib_svld_dlopen+y}
12210 then :
12211 printf %s "(cached) " >&6
12212 else $as_nop
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lsvld $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 char dlopen ();
12222 int
12223 main (void)
12224 {
12225 return dlopen ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"
12231 then :
12232 ac_cv_lib_svld_dlopen=yes
12233 else $as_nop
12234 ac_cv_lib_svld_dlopen=no
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12241 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12242 if test "x$ac_cv_lib_svld_dlopen" = xyes
12243 then :
12244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12245 else $as_nop
12246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12247 printf %s "checking for dld_link in -ldld... " >&6; }
12248 if test ${ac_cv_lib_dld_dld_link+y}
12249 then :
12250 printf %s "(cached) " >&6
12251 else $as_nop
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldld $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 char dld_link ();
12261 int
12262 main (void)
12263 {
12264 return dld_link ();
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"
12270 then :
12271 ac_cv_lib_dld_dld_link=yes
12272 else $as_nop
12273 ac_cv_lib_dld_dld_link=no
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12280 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12281 if test "x$ac_cv_lib_dld_dld_link" = xyes
12282 then :
12283 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12284 fi
12285
12286
12287 fi
12288
12289
12290 fi
12291
12292
12293 fi
12294
12295
12296 fi
12297
12298
12299 fi
12300
12301 ;;
12302 esac
12303
12304 if test no = "$lt_cv_dlopen"; then
12305 enable_dlopen=no
12306 else
12307 enable_dlopen=yes
12308 fi
12309
12310 case $lt_cv_dlopen in
12311 dlopen)
12312 save_CPPFLAGS=$CPPFLAGS
12313 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12314
12315 save_LDFLAGS=$LDFLAGS
12316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12317
12318 save_LIBS=$LIBS
12319 LIBS="$lt_cv_dlopen_libs $LIBS"
12320
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12322 printf %s "checking whether a program can dlopen itself... " >&6; }
12323 if test ${lt_cv_dlopen_self+y}
12324 then :
12325 printf %s "(cached) " >&6
12326 else $as_nop
12327 if test yes = "$cross_compiling"; then :
12328 lt_cv_dlopen_self=cross
12329 else
12330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12331 lt_status=$lt_dlunknown
12332 cat > conftest.$ac_ext <<_LT_EOF
12333 #line $LINENO "configure"
12334 #include "confdefs.h"
12335
12336 #if HAVE_DLFCN_H
12337 #include <dlfcn.h>
12338 #endif
12339
12340 #include <stdio.h>
12341
12342 #ifdef RTLD_GLOBAL
12343 # define LT_DLGLOBAL RTLD_GLOBAL
12344 #else
12345 # ifdef DL_GLOBAL
12346 # define LT_DLGLOBAL DL_GLOBAL
12347 # else
12348 # define LT_DLGLOBAL 0
12349 # endif
12350 #endif
12351
12352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12353 find out it does not work in some platform. */
12354 #ifndef LT_DLLAZY_OR_NOW
12355 # ifdef RTLD_LAZY
12356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12357 # else
12358 # ifdef DL_LAZY
12359 # define LT_DLLAZY_OR_NOW DL_LAZY
12360 # else
12361 # ifdef RTLD_NOW
12362 # define LT_DLLAZY_OR_NOW RTLD_NOW
12363 # else
12364 # ifdef DL_NOW
12365 # define LT_DLLAZY_OR_NOW DL_NOW
12366 # else
12367 # define LT_DLLAZY_OR_NOW 0
12368 # endif
12369 # endif
12370 # endif
12371 # endif
12372 #endif
12373
12374 /* When -fvisibility=hidden is used, assume the code has been annotated
12375 correspondingly for the symbols needed. */
12376 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12377 int fnord () __attribute__((visibility("default")));
12378 #endif
12379
12380 int fnord () { return 42; }
12381 int main ()
12382 {
12383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12384 int status = $lt_dlunknown;
12385
12386 if (self)
12387 {
12388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12389 else
12390 {
12391 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12392 else puts (dlerror ());
12393 }
12394 /* dlclose (self); */
12395 }
12396 else
12397 puts (dlerror ());
12398
12399 return status;
12400 }
12401 _LT_EOF
12402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12403 (eval $ac_link) 2>&5
12404 ac_status=$?
12405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12407 (./conftest; exit; ) >&5 2>/dev/null
12408 lt_status=$?
12409 case x$lt_status in
12410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12412 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12413 esac
12414 else :
12415 # compilation failed
12416 lt_cv_dlopen_self=no
12417 fi
12418 fi
12419 rm -fr conftest*
12420
12421
12422 fi
12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12424 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12425
12426 if test yes = "$lt_cv_dlopen_self"; then
12427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12429 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12430 if test ${lt_cv_dlopen_self_static+y}
12431 then :
12432 printf %s "(cached) " >&6
12433 else $as_nop
12434 if test yes = "$cross_compiling"; then :
12435 lt_cv_dlopen_self_static=cross
12436 else
12437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438 lt_status=$lt_dlunknown
12439 cat > conftest.$ac_ext <<_LT_EOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12442
12443 #if HAVE_DLFCN_H
12444 #include <dlfcn.h>
12445 #endif
12446
12447 #include <stdio.h>
12448
12449 #ifdef RTLD_GLOBAL
12450 # define LT_DLGLOBAL RTLD_GLOBAL
12451 #else
12452 # ifdef DL_GLOBAL
12453 # define LT_DLGLOBAL DL_GLOBAL
12454 # else
12455 # define LT_DLGLOBAL 0
12456 # endif
12457 #endif
12458
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460 find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12462 # ifdef RTLD_LAZY
12463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12464 # else
12465 # ifdef DL_LAZY
12466 # define LT_DLLAZY_OR_NOW DL_LAZY
12467 # else
12468 # ifdef RTLD_NOW
12469 # define LT_DLLAZY_OR_NOW RTLD_NOW
12470 # else
12471 # ifdef DL_NOW
12472 # define LT_DLLAZY_OR_NOW DL_NOW
12473 # else
12474 # define LT_DLLAZY_OR_NOW 0
12475 # endif
12476 # endif
12477 # endif
12478 # endif
12479 #endif
12480
12481 /* When -fvisibility=hidden is used, assume the code has been annotated
12482 correspondingly for the symbols needed. */
12483 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 int fnord () __attribute__((visibility("default")));
12485 #endif
12486
12487 int fnord () { return 42; }
12488 int main ()
12489 {
12490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491 int status = $lt_dlunknown;
12492
12493 if (self)
12494 {
12495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12496 else
12497 {
12498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12499 else puts (dlerror ());
12500 }
12501 /* dlclose (self); */
12502 }
12503 else
12504 puts (dlerror ());
12505
12506 return status;
12507 }
12508 _LT_EOF
12509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510 (eval $ac_link) 2>&5
12511 ac_status=$?
12512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514 (./conftest; exit; ) >&5 2>/dev/null
12515 lt_status=$?
12516 case x$lt_status in
12517 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12518 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12519 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12520 esac
12521 else :
12522 # compilation failed
12523 lt_cv_dlopen_self_static=no
12524 fi
12525 fi
12526 rm -fr conftest*
12527
12528
12529 fi
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12531 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12532 fi
12533
12534 CPPFLAGS=$save_CPPFLAGS
12535 LDFLAGS=$save_LDFLAGS
12536 LIBS=$save_LIBS
12537 ;;
12538 esac
12539
12540 case $lt_cv_dlopen_self in
12541 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12542 *) enable_dlopen_self=unknown ;;
12543 esac
12544
12545 case $lt_cv_dlopen_self_static in
12546 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12547 *) enable_dlopen_self_static=unknown ;;
12548 esac
12549 fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567 striplib=
12568 old_striplib=
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12570 printf %s "checking whether stripping libraries is possible... " >&6; }
12571 if test -z "$STRIP"; then
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 printf "%s\n" "no" >&6; }
12574 else
12575 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12576 old_striplib="$STRIP --strip-debug"
12577 striplib="$STRIP --strip-unneeded"
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579 printf "%s\n" "yes" >&6; }
12580 else
12581 case $host_os in
12582 darwin*)
12583 # FIXME - insert some real tests, host_os isn't really good enough
12584 striplib="$STRIP -x"
12585 old_striplib="$STRIP -S"
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 printf "%s\n" "yes" >&6; }
12588 ;;
12589 freebsd*)
12590 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12591 old_striplib="$STRIP --strip-debug"
12592 striplib="$STRIP --strip-unneeded"
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 printf "%s\n" "yes" >&6; }
12595 else
12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 printf "%s\n" "no" >&6; }
12598 fi
12599 ;;
12600 *)
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 printf "%s\n" "no" >&6; }
12603 ;;
12604 esac
12605 fi
12606 fi
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619 # Report what library types will actually be built
12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12621 printf %s "checking if libtool supports shared libraries... " >&6; }
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12623 printf "%s\n" "$can_build_shared" >&6; }
12624
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12626 printf %s "checking whether to build shared libraries... " >&6; }
12627 test no = "$can_build_shared" && enable_shared=no
12628
12629 # On AIX, shared libraries and static libraries use the same namespace, and
12630 # are all built from PIC.
12631 case $host_os in
12632 aix3*)
12633 test yes = "$enable_shared" && enable_static=no
12634 if test -n "$RANLIB"; then
12635 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12636 postinstall_cmds='$RANLIB $lib'
12637 fi
12638 ;;
12639
12640 aix[4-9]*)
12641 if test ia64 != "$host_cpu"; then
12642 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12643 yes,aix,yes) ;; # shared object as lib.so file only
12644 yes,svr4,*) ;; # shared object as lib.so archive member only
12645 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12646 esac
12647 fi
12648 ;;
12649 esac
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12651 printf "%s\n" "$enable_shared" >&6; }
12652
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12654 printf %s "checking whether to build static libraries... " >&6; }
12655 # Make sure either enable_shared or enable_static is yes.
12656 test yes = "$enable_shared" || enable_static=yes
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12658 printf "%s\n" "$enable_static" >&6; }
12659
12660
12661
12662
12663 fi
12664 ac_ext=c
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12669
12670 CC=$lt_save_CC
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686 ac_config_commands="$ac_config_commands libtool"
12687
12688
12689
12690
12691 # Only expand once:
12692
12693
12694
12695 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12709 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12710 if test ${ac_cv_c_undeclared_builtin_options+y}
12711 then :
12712 printf %s "(cached) " >&6
12713 else $as_nop
12714 ac_save_CFLAGS=$CFLAGS
12715 ac_cv_c_undeclared_builtin_options='cannot detect'
12716 for ac_arg in '' -fno-builtin; do
12717 CFLAGS="$ac_save_CFLAGS $ac_arg"
12718 # This test program should *not* compile successfully.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721
12722 int
12723 main (void)
12724 {
12725 (void) strchr;
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"
12731 then :
12732
12733 else $as_nop
12734 # This test program should compile successfully.
12735 # No library function is consistently available on
12736 # freestanding implementations, so test against a dummy
12737 # declaration. Include always-available headers on the
12738 # off chance that they somehow elicit warnings.
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #include <float.h>
12742 #include <limits.h>
12743 #include <stdarg.h>
12744 #include <stddef.h>
12745 extern void ac_decl (int, char *);
12746
12747 int
12748 main (void)
12749 {
12750 (void) ac_decl (0, (char *) 0);
12751 (void) ac_decl;
12752
12753 ;
12754 return 0;
12755 }
12756 _ACEOF
12757 if ac_fn_c_try_compile "$LINENO"
12758 then :
12759 if test x"$ac_arg" = x
12760 then :
12761 ac_cv_c_undeclared_builtin_options='none needed'
12762 else $as_nop
12763 ac_cv_c_undeclared_builtin_options=$ac_arg
12764 fi
12765 break
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12770 done
12771 CFLAGS=$ac_save_CFLAGS
12772
12773 fi
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12775 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12776 case $ac_cv_c_undeclared_builtin_options in #(
12777 'cannot detect') :
12778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12779 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12780 as_fn_error $? "cannot make $CC report undeclared builtins
12781 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12782 'none needed') :
12783 ac_c_undeclared_builtin_options='' ;; #(
12784 *) :
12785 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12786 esac
12787
12788
12789
12790
12791
12792 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12793 if test "x$ac_cv_have_decl___clang__" = xyes
12794 then :
12795 CLANGCC="yes"
12796 else $as_nop
12797 CLANGCC="no"
12798 fi
12799 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12800 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12801 then :
12802 INTELCC="yes"
12803 else $as_nop
12804 INTELCC="no"
12805 fi
12806 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12807 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12808 then :
12809 SUNCC="yes"
12810 else $as_nop
12811 SUNCC="no"
12812 fi
12813
12814
12815
12816
12817
12818
12819
12820
12821 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12822 if test -n "$ac_tool_prefix"; then
12823 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12824 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 printf %s "checking for $ac_word... " >&6; }
12827 if test ${ac_cv_path_PKG_CONFIG+y}
12828 then :
12829 printf %s "(cached) " >&6
12830 else $as_nop
12831 case $PKG_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839 IFS=$as_save_IFS
12840 case $as_dir in #(((
12841 '') as_dir=./ ;;
12842 */) ;;
12843 *) as_dir=$as_dir/ ;;
12844 esac
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12847 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12849 break 2
12850 fi
12851 done
12852 done
12853 IFS=$as_save_IFS
12854
12855 ;;
12856 esac
12857 fi
12858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859 if test -n "$PKG_CONFIG"; then
12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12861 printf "%s\n" "$PKG_CONFIG" >&6; }
12862 else
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 printf "%s\n" "no" >&6; }
12865 fi
12866
12867
12868 fi
12869 if test -z "$ac_cv_path_PKG_CONFIG"; then
12870 ac_pt_PKG_CONFIG=$PKG_CONFIG
12871 # Extract the first word of "pkg-config", so it can be a program name with args.
12872 set dummy pkg-config; ac_word=$2
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 printf %s "checking for $ac_word... " >&6; }
12875 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12876 then :
12877 printf %s "(cached) " >&6
12878 else $as_nop
12879 case $ac_pt_PKG_CONFIG in
12880 [\\/]* | ?:[\\/]*)
12881 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12882 ;;
12883 *)
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887 IFS=$as_save_IFS
12888 case $as_dir in #(((
12889 '') as_dir=./ ;;
12890 */) ;;
12891 *) as_dir=$as_dir/ ;;
12892 esac
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12895 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899 done
12900 done
12901 IFS=$as_save_IFS
12902
12903 ;;
12904 esac
12905 fi
12906 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12907 if test -n "$ac_pt_PKG_CONFIG"; then
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12909 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12910 else
12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 printf "%s\n" "no" >&6; }
12913 fi
12914
12915 if test "x$ac_pt_PKG_CONFIG" = x; then
12916 PKG_CONFIG=""
12917 else
12918 case $cross_compiling:$ac_tool_warned in
12919 yes:)
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12922 ac_tool_warned=yes ;;
12923 esac
12924 PKG_CONFIG=$ac_pt_PKG_CONFIG
12925 fi
12926 else
12927 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12928 fi
12929
12930 fi
12931 if test -n "$PKG_CONFIG"; then
12932 _pkg_min_version=0.9.0
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12934 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12935 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12937 printf "%s\n" "yes" >&6; }
12938 else
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 printf "%s\n" "no" >&6; }
12941 PKG_CONFIG=""
12942 fi
12943 fi
12944
12945
12946
12947
12948
12949 # Check whether --enable-selective-werror was given.
12950 if test ${enable_selective_werror+y}
12951 then :
12952 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12953 else $as_nop
12954 SELECTIVE_WERROR=yes
12955 fi
12956
12957
12958
12959
12960
12961 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12962 if test "x$SUNCC" = "xyes"; then
12963 BASE_CFLAGS="-v"
12964 else
12965 BASE_CFLAGS=""
12966 fi
12967
12968 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982 xorg_testset_save_CFLAGS="$CFLAGS"
12983
12984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12989 then :
12990 printf %s "(cached) " >&6
12991 else $as_nop
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994 int i;
12995 _ACEOF
12996 if ac_fn_c_try_compile "$LINENO"
12997 then :
12998 xorg_cv_cc_flag_unknown_warning_option=yes
12999 else $as_nop
13000 xorg_cv_cc_flag_unknown_warning_option=no
13001 fi
13002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13003 fi
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13007 CFLAGS="$xorg_testset_save_CFLAGS"
13008 fi
13009
13010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13013 fi
13014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13018 then :
13019 printf %s "(cached) " >&6
13020 else $as_nop
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 int i;
13024 _ACEOF
13025 if ac_fn_c_try_compile "$LINENO"
13026 then :
13027 xorg_cv_cc_flag_unused_command_line_argument=yes
13028 else $as_nop
13029 xorg_cv_cc_flag_unused_command_line_argument=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13032 fi
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13036 CFLAGS="$xorg_testset_save_CFLAGS"
13037 fi
13038
13039 found="no"
13040
13041 if test $found = "no" ; then
13042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044 fi
13045
13046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13048 fi
13049
13050 CFLAGS="$CFLAGS -Wall"
13051
13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13053 printf %s "checking if $CC supports -Wall... " >&6; }
13054 cacheid=xorg_cv_cc_flag__Wall
13055 if eval test \${$cacheid+y}
13056 then :
13057 printf %s "(cached) " >&6
13058 else $as_nop
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 int i;
13062 int
13063 main (void)
13064 {
13065
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_link "$LINENO"
13071 then :
13072 eval $cacheid=yes
13073 else $as_nop
13074 eval $cacheid=no
13075 fi
13076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13077 conftest$ac_exeext conftest.$ac_ext
13078 fi
13079
13080
13081 CFLAGS="$xorg_testset_save_CFLAGS"
13082
13083 eval supported=\$$cacheid
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13085 printf "%s\n" "$supported" >&6; }
13086 if test "$supported" = "yes" ; then
13087 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13088 found="yes"
13089 fi
13090 fi
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106 xorg_testset_save_CFLAGS="$CFLAGS"
13107
13108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13113 then :
13114 printf %s "(cached) " >&6
13115 else $as_nop
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 int i;
13119 _ACEOF
13120 if ac_fn_c_try_compile "$LINENO"
13121 then :
13122 xorg_cv_cc_flag_unknown_warning_option=yes
13123 else $as_nop
13124 xorg_cv_cc_flag_unknown_warning_option=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13127 fi
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13131 CFLAGS="$xorg_testset_save_CFLAGS"
13132 fi
13133
13134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13137 fi
13138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13142 then :
13143 printf %s "(cached) " >&6
13144 else $as_nop
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 int i;
13148 _ACEOF
13149 if ac_fn_c_try_compile "$LINENO"
13150 then :
13151 xorg_cv_cc_flag_unused_command_line_argument=yes
13152 else $as_nop
13153 xorg_cv_cc_flag_unused_command_line_argument=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13156 fi
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13160 CFLAGS="$xorg_testset_save_CFLAGS"
13161 fi
13162
13163 found="no"
13164
13165 if test $found = "no" ; then
13166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13168 fi
13169
13170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13172 fi
13173
13174 CFLAGS="$CFLAGS -Wpointer-arith"
13175
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13177 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13178 cacheid=xorg_cv_cc_flag__Wpointer_arith
13179 if eval test \${$cacheid+y}
13180 then :
13181 printf %s "(cached) " >&6
13182 else $as_nop
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 int i;
13186 int
13187 main (void)
13188 {
13189
13190 ;
13191 return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"
13195 then :
13196 eval $cacheid=yes
13197 else $as_nop
13198 eval $cacheid=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13201 conftest$ac_exeext conftest.$ac_ext
13202 fi
13203
13204
13205 CFLAGS="$xorg_testset_save_CFLAGS"
13206
13207 eval supported=\$$cacheid
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13209 printf "%s\n" "$supported" >&6; }
13210 if test "$supported" = "yes" ; then
13211 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13212 found="yes"
13213 fi
13214 fi
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230 xorg_testset_save_CFLAGS="$CFLAGS"
13231
13232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13237 then :
13238 printf %s "(cached) " >&6
13239 else $as_nop
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 int i;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"
13245 then :
13246 xorg_cv_cc_flag_unknown_warning_option=yes
13247 else $as_nop
13248 xorg_cv_cc_flag_unknown_warning_option=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13251 fi
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13255 CFLAGS="$xorg_testset_save_CFLAGS"
13256 fi
13257
13258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13261 fi
13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13266 then :
13267 printf %s "(cached) " >&6
13268 else $as_nop
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 int i;
13272 _ACEOF
13273 if ac_fn_c_try_compile "$LINENO"
13274 then :
13275 xorg_cv_cc_flag_unused_command_line_argument=yes
13276 else $as_nop
13277 xorg_cv_cc_flag_unused_command_line_argument=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13280 fi
13281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13284 CFLAGS="$xorg_testset_save_CFLAGS"
13285 fi
13286
13287 found="no"
13288
13289 if test $found = "no" ; then
13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292 fi
13293
13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13296 fi
13297
13298 CFLAGS="$CFLAGS -Wmissing-declarations"
13299
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13301 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13302 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13303 if eval test \${$cacheid+y}
13304 then :
13305 printf %s "(cached) " >&6
13306 else $as_nop
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 int i;
13310 int
13311 main (void)
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_link "$LINENO"
13319 then :
13320 eval $cacheid=yes
13321 else $as_nop
13322 eval $cacheid=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 fi
13327
13328
13329 CFLAGS="$xorg_testset_save_CFLAGS"
13330
13331 eval supported=\$$cacheid
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13333 printf "%s\n" "$supported" >&6; }
13334 if test "$supported" = "yes" ; then
13335 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13336 found="yes"
13337 fi
13338 fi
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 xorg_testset_save_CFLAGS="$CFLAGS"
13355
13356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13361 then :
13362 printf %s "(cached) " >&6
13363 else $as_nop
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 int i;
13367 _ACEOF
13368 if ac_fn_c_try_compile "$LINENO"
13369 then :
13370 xorg_cv_cc_flag_unknown_warning_option=yes
13371 else $as_nop
13372 xorg_cv_cc_flag_unknown_warning_option=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13375 fi
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13379 CFLAGS="$xorg_testset_save_CFLAGS"
13380 fi
13381
13382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385 fi
13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13390 then :
13391 printf %s "(cached) " >&6
13392 else $as_nop
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 int i;
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"
13398 then :
13399 xorg_cv_cc_flag_unused_command_line_argument=yes
13400 else $as_nop
13401 xorg_cv_cc_flag_unused_command_line_argument=no
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13404 fi
13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13408 CFLAGS="$xorg_testset_save_CFLAGS"
13409 fi
13410
13411 found="no"
13412
13413 if test $found = "no" ; then
13414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416 fi
13417
13418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13420 fi
13421
13422 CFLAGS="$CFLAGS -Wformat=2"
13423
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13425 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13426 cacheid=xorg_cv_cc_flag__Wformat_2
13427 if eval test \${$cacheid+y}
13428 then :
13429 printf %s "(cached) " >&6
13430 else $as_nop
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433 int i;
13434 int
13435 main (void)
13436 {
13437
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"
13443 then :
13444 eval $cacheid=yes
13445 else $as_nop
13446 eval $cacheid=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13449 conftest$ac_exeext conftest.$ac_ext
13450 fi
13451
13452
13453 CFLAGS="$xorg_testset_save_CFLAGS"
13454
13455 eval supported=\$$cacheid
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13457 printf "%s\n" "$supported" >&6; }
13458 if test "$supported" = "yes" ; then
13459 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13460 found="yes"
13461 fi
13462 fi
13463
13464 if test $found = "no" ; then
13465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467 fi
13468
13469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13471 fi
13472
13473 CFLAGS="$CFLAGS -Wformat"
13474
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13476 printf %s "checking if $CC supports -Wformat... " >&6; }
13477 cacheid=xorg_cv_cc_flag__Wformat
13478 if eval test \${$cacheid+y}
13479 then :
13480 printf %s "(cached) " >&6
13481 else $as_nop
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 int i;
13485 int
13486 main (void)
13487 {
13488
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_link "$LINENO"
13494 then :
13495 eval $cacheid=yes
13496 else $as_nop
13497 eval $cacheid=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13500 conftest$ac_exeext conftest.$ac_ext
13501 fi
13502
13503
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505
13506 eval supported=\$$cacheid
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13508 printf "%s\n" "$supported" >&6; }
13509 if test "$supported" = "yes" ; then
13510 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13511 found="yes"
13512 fi
13513 fi
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 xorg_testset_save_CFLAGS="$CFLAGS"
13532
13533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13537 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13538 then :
13539 printf %s "(cached) " >&6
13540 else $as_nop
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 int i;
13544 _ACEOF
13545 if ac_fn_c_try_compile "$LINENO"
13546 then :
13547 xorg_cv_cc_flag_unknown_warning_option=yes
13548 else $as_nop
13549 xorg_cv_cc_flag_unknown_warning_option=no
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13552 fi
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13556 CFLAGS="$xorg_testset_save_CFLAGS"
13557 fi
13558
13559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562 fi
13563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13567 then :
13568 printf %s "(cached) " >&6
13569 else $as_nop
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 int i;
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"
13575 then :
13576 xorg_cv_cc_flag_unused_command_line_argument=yes
13577 else $as_nop
13578 xorg_cv_cc_flag_unused_command_line_argument=no
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13581 fi
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13583 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13585 CFLAGS="$xorg_testset_save_CFLAGS"
13586 fi
13587
13588 found="no"
13589
13590 if test $found = "no" ; then
13591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13593 fi
13594
13595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13597 fi
13598
13599 CFLAGS="$CFLAGS -Wstrict-prototypes"
13600
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13602 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13603 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13604 if eval test \${$cacheid+y}
13605 then :
13606 printf %s "(cached) " >&6
13607 else $as_nop
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 int i;
13611 int
13612 main (void)
13613 {
13614
13615 ;
13616 return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"
13620 then :
13621 eval $cacheid=yes
13622 else $as_nop
13623 eval $cacheid=no
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13626 conftest$ac_exeext conftest.$ac_ext
13627 fi
13628
13629
13630 CFLAGS="$xorg_testset_save_CFLAGS"
13631
13632 eval supported=\$$cacheid
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13634 printf "%s\n" "$supported" >&6; }
13635 if test "$supported" = "yes" ; then
13636 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13637 found="yes"
13638 fi
13639 fi
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655 xorg_testset_save_CFLAGS="$CFLAGS"
13656
13657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13661 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13662 then :
13663 printf %s "(cached) " >&6
13664 else $as_nop
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 int i;
13668 _ACEOF
13669 if ac_fn_c_try_compile "$LINENO"
13670 then :
13671 xorg_cv_cc_flag_unknown_warning_option=yes
13672 else $as_nop
13673 xorg_cv_cc_flag_unknown_warning_option=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13676 fi
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13678 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13680 CFLAGS="$xorg_testset_save_CFLAGS"
13681 fi
13682
13683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13686 fi
13687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13689 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13690 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13691 then :
13692 printf %s "(cached) " >&6
13693 else $as_nop
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696 int i;
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"
13699 then :
13700 xorg_cv_cc_flag_unused_command_line_argument=yes
13701 else $as_nop
13702 xorg_cv_cc_flag_unused_command_line_argument=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13705 fi
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13707 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13709 CFLAGS="$xorg_testset_save_CFLAGS"
13710 fi
13711
13712 found="no"
13713
13714 if test $found = "no" ; then
13715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13717 fi
13718
13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13721 fi
13722
13723 CFLAGS="$CFLAGS -Wmissing-prototypes"
13724
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13726 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13727 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13728 if eval test \${$cacheid+y}
13729 then :
13730 printf %s "(cached) " >&6
13731 else $as_nop
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 int i;
13735 int
13736 main (void)
13737 {
13738
13739 ;
13740 return 0;
13741 }
13742 _ACEOF
13743 if ac_fn_c_try_link "$LINENO"
13744 then :
13745 eval $cacheid=yes
13746 else $as_nop
13747 eval $cacheid=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13750 conftest$ac_exeext conftest.$ac_ext
13751 fi
13752
13753
13754 CFLAGS="$xorg_testset_save_CFLAGS"
13755
13756 eval supported=\$$cacheid
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13758 printf "%s\n" "$supported" >&6; }
13759 if test "$supported" = "yes" ; then
13760 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13761 found="yes"
13762 fi
13763 fi
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779 xorg_testset_save_CFLAGS="$CFLAGS"
13780
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13784 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13785 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13786 then :
13787 printf %s "(cached) " >&6
13788 else $as_nop
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 int i;
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"
13794 then :
13795 xorg_cv_cc_flag_unknown_warning_option=yes
13796 else $as_nop
13797 xorg_cv_cc_flag_unknown_warning_option=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13800 fi
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13802 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13804 CFLAGS="$xorg_testset_save_CFLAGS"
13805 fi
13806
13807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13810 fi
13811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13813 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13814 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13815 then :
13816 printf %s "(cached) " >&6
13817 else $as_nop
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 int i;
13821 _ACEOF
13822 if ac_fn_c_try_compile "$LINENO"
13823 then :
13824 xorg_cv_cc_flag_unused_command_line_argument=yes
13825 else $as_nop
13826 xorg_cv_cc_flag_unused_command_line_argument=no
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13829 fi
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13833 CFLAGS="$xorg_testset_save_CFLAGS"
13834 fi
13835
13836 found="no"
13837
13838 if test $found = "no" ; then
13839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13841 fi
13842
13843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13845 fi
13846
13847 CFLAGS="$CFLAGS -Wnested-externs"
13848
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13850 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13851 cacheid=xorg_cv_cc_flag__Wnested_externs
13852 if eval test \${$cacheid+y}
13853 then :
13854 printf %s "(cached) " >&6
13855 else $as_nop
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 int i;
13859 int
13860 main (void)
13861 {
13862
13863 ;
13864 return 0;
13865 }
13866 _ACEOF
13867 if ac_fn_c_try_link "$LINENO"
13868 then :
13869 eval $cacheid=yes
13870 else $as_nop
13871 eval $cacheid=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13874 conftest$ac_exeext conftest.$ac_ext
13875 fi
13876
13877
13878 CFLAGS="$xorg_testset_save_CFLAGS"
13879
13880 eval supported=\$$cacheid
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13882 printf "%s\n" "$supported" >&6; }
13883 if test "$supported" = "yes" ; then
13884 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13885 found="yes"
13886 fi
13887 fi
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903 xorg_testset_save_CFLAGS="$CFLAGS"
13904
13905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13909 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13910 then :
13911 printf %s "(cached) " >&6
13912 else $as_nop
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 int i;
13916 _ACEOF
13917 if ac_fn_c_try_compile "$LINENO"
13918 then :
13919 xorg_cv_cc_flag_unknown_warning_option=yes
13920 else $as_nop
13921 xorg_cv_cc_flag_unknown_warning_option=no
13922 fi
13923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13924 fi
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13928 CFLAGS="$xorg_testset_save_CFLAGS"
13929 fi
13930
13931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13934 fi
13935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13939 then :
13940 printf %s "(cached) " >&6
13941 else $as_nop
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 int i;
13945 _ACEOF
13946 if ac_fn_c_try_compile "$LINENO"
13947 then :
13948 xorg_cv_cc_flag_unused_command_line_argument=yes
13949 else $as_nop
13950 xorg_cv_cc_flag_unused_command_line_argument=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13953 fi
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13955 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13957 CFLAGS="$xorg_testset_save_CFLAGS"
13958 fi
13959
13960 found="no"
13961
13962 if test $found = "no" ; then
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 fi
13966
13967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13969 fi
13970
13971 CFLAGS="$CFLAGS -Wbad-function-cast"
13972
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13974 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13975 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13976 if eval test \${$cacheid+y}
13977 then :
13978 printf %s "(cached) " >&6
13979 else $as_nop
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13982 int i;
13983 int
13984 main (void)
13985 {
13986
13987 ;
13988 return 0;
13989 }
13990 _ACEOF
13991 if ac_fn_c_try_link "$LINENO"
13992 then :
13993 eval $cacheid=yes
13994 else $as_nop
13995 eval $cacheid=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13998 conftest$ac_exeext conftest.$ac_ext
13999 fi
14000
14001
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003
14004 eval supported=\$$cacheid
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14006 printf "%s\n" "$supported" >&6; }
14007 if test "$supported" = "yes" ; then
14008 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14009 found="yes"
14010 fi
14011 fi
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027 xorg_testset_save_CFLAGS="$CFLAGS"
14028
14029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14033 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14034 then :
14035 printf %s "(cached) " >&6
14036 else $as_nop
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039 int i;
14040 _ACEOF
14041 if ac_fn_c_try_compile "$LINENO"
14042 then :
14043 xorg_cv_cc_flag_unknown_warning_option=yes
14044 else $as_nop
14045 xorg_cv_cc_flag_unknown_warning_option=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14048 fi
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052 CFLAGS="$xorg_testset_save_CFLAGS"
14053 fi
14054
14055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058 fi
14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14063 then :
14064 printf %s "(cached) " >&6
14065 else $as_nop
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 int i;
14069 _ACEOF
14070 if ac_fn_c_try_compile "$LINENO"
14071 then :
14072 xorg_cv_cc_flag_unused_command_line_argument=yes
14073 else $as_nop
14074 xorg_cv_cc_flag_unused_command_line_argument=no
14075 fi
14076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14077 fi
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14081 CFLAGS="$xorg_testset_save_CFLAGS"
14082 fi
14083
14084 found="no"
14085
14086 if test $found = "no" ; then
14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089 fi
14090
14091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093 fi
14094
14095 CFLAGS="$CFLAGS -Wold-style-definition"
14096
14097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14098 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14099 cacheid=xorg_cv_cc_flag__Wold_style_definition
14100 if eval test \${$cacheid+y}
14101 then :
14102 printf %s "(cached) " >&6
14103 else $as_nop
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 int i;
14107 int
14108 main (void)
14109 {
14110
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_link "$LINENO"
14116 then :
14117 eval $cacheid=yes
14118 else $as_nop
14119 eval $cacheid=no
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14122 conftest$ac_exeext conftest.$ac_ext
14123 fi
14124
14125
14126 CFLAGS="$xorg_testset_save_CFLAGS"
14127
14128 eval supported=\$$cacheid
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14130 printf "%s\n" "$supported" >&6; }
14131 if test "$supported" = "yes" ; then
14132 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14133 found="yes"
14134 fi
14135 fi
14136
14137 if test $found = "no" ; then
14138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140 fi
14141
14142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14144 fi
14145
14146 CFLAGS="$CFLAGS -fd"
14147
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14149 printf %s "checking if $CC supports -fd... " >&6; }
14150 cacheid=xorg_cv_cc_flag__fd
14151 if eval test \${$cacheid+y}
14152 then :
14153 printf %s "(cached) " >&6
14154 else $as_nop
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157 int i;
14158 int
14159 main (void)
14160 {
14161
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"
14167 then :
14168 eval $cacheid=yes
14169 else $as_nop
14170 eval $cacheid=no
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14173 conftest$ac_exeext conftest.$ac_ext
14174 fi
14175
14176
14177 CFLAGS="$xorg_testset_save_CFLAGS"
14178
14179 eval supported=\$$cacheid
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14181 printf "%s\n" "$supported" >&6; }
14182 if test "$supported" = "yes" ; then
14183 BASE_CFLAGS="$BASE_CFLAGS -fd"
14184 found="yes"
14185 fi
14186 fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202 xorg_testset_save_CFLAGS="$CFLAGS"
14203
14204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14209 then :
14210 printf %s "(cached) " >&6
14211 else $as_nop
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 int i;
14215 _ACEOF
14216 if ac_fn_c_try_compile "$LINENO"
14217 then :
14218 xorg_cv_cc_flag_unknown_warning_option=yes
14219 else $as_nop
14220 xorg_cv_cc_flag_unknown_warning_option=no
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14223 fi
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14227 CFLAGS="$xorg_testset_save_CFLAGS"
14228 fi
14229
14230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14233 fi
14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14238 then :
14239 printf %s "(cached) " >&6
14240 else $as_nop
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 int i;
14244 _ACEOF
14245 if ac_fn_c_try_compile "$LINENO"
14246 then :
14247 xorg_cv_cc_flag_unused_command_line_argument=yes
14248 else $as_nop
14249 xorg_cv_cc_flag_unused_command_line_argument=no
14250 fi
14251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14252 fi
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256 CFLAGS="$xorg_testset_save_CFLAGS"
14257 fi
14258
14259 found="no"
14260
14261 if test $found = "no" ; then
14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264 fi
14265
14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268 fi
14269
14270 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14271
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14273 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14274 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14275 if eval test \${$cacheid+y}
14276 then :
14277 printf %s "(cached) " >&6
14278 else $as_nop
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 int i;
14282 int
14283 main (void)
14284 {
14285
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"
14291 then :
14292 eval $cacheid=yes
14293 else $as_nop
14294 eval $cacheid=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297 conftest$ac_exeext conftest.$ac_ext
14298 fi
14299
14300
14301 CFLAGS="$xorg_testset_save_CFLAGS"
14302
14303 eval supported=\$$cacheid
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14305 printf "%s\n" "$supported" >&6; }
14306 if test "$supported" = "yes" ; then
14307 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14308 found="yes"
14309 fi
14310 fi
14311
14312
14313
14314
14315
14316 # This chunk adds additional warnings that could catch undesired effects.
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 xorg_testset_save_CFLAGS="$CFLAGS"
14331
14332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14336 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14337 then :
14338 printf %s "(cached) " >&6
14339 else $as_nop
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 int i;
14343 _ACEOF
14344 if ac_fn_c_try_compile "$LINENO"
14345 then :
14346 xorg_cv_cc_flag_unknown_warning_option=yes
14347 else $as_nop
14348 xorg_cv_cc_flag_unknown_warning_option=no
14349 fi
14350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14351 fi
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14355 CFLAGS="$xorg_testset_save_CFLAGS"
14356 fi
14357
14358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14361 fi
14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14366 then :
14367 printf %s "(cached) " >&6
14368 else $as_nop
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 int i;
14372 _ACEOF
14373 if ac_fn_c_try_compile "$LINENO"
14374 then :
14375 xorg_cv_cc_flag_unused_command_line_argument=yes
14376 else $as_nop
14377 xorg_cv_cc_flag_unused_command_line_argument=no
14378 fi
14379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14380 fi
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14384 CFLAGS="$xorg_testset_save_CFLAGS"
14385 fi
14386
14387 found="no"
14388
14389 if test $found = "no" ; then
14390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392 fi
14393
14394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14396 fi
14397
14398 CFLAGS="$CFLAGS -Wunused"
14399
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14401 printf %s "checking if $CC supports -Wunused... " >&6; }
14402 cacheid=xorg_cv_cc_flag__Wunused
14403 if eval test \${$cacheid+y}
14404 then :
14405 printf %s "(cached) " >&6
14406 else $as_nop
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 int i;
14410 int
14411 main (void)
14412 {
14413
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"
14419 then :
14420 eval $cacheid=yes
14421 else $as_nop
14422 eval $cacheid=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14425 conftest$ac_exeext conftest.$ac_ext
14426 fi
14427
14428
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14430
14431 eval supported=\$$cacheid
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14433 printf "%s\n" "$supported" >&6; }
14434 if test "$supported" = "yes" ; then
14435 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14436 found="yes"
14437 fi
14438 fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454 xorg_testset_save_CFLAGS="$CFLAGS"
14455
14456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14461 then :
14462 printf %s "(cached) " >&6
14463 else $as_nop
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466 int i;
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"
14469 then :
14470 xorg_cv_cc_flag_unknown_warning_option=yes
14471 else $as_nop
14472 xorg_cv_cc_flag_unknown_warning_option=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14475 fi
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14477 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14479 CFLAGS="$xorg_testset_save_CFLAGS"
14480 fi
14481
14482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14485 fi
14486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14490 then :
14491 printf %s "(cached) " >&6
14492 else $as_nop
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 int i;
14496 _ACEOF
14497 if ac_fn_c_try_compile "$LINENO"
14498 then :
14499 xorg_cv_cc_flag_unused_command_line_argument=yes
14500 else $as_nop
14501 xorg_cv_cc_flag_unused_command_line_argument=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14504 fi
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14508 CFLAGS="$xorg_testset_save_CFLAGS"
14509 fi
14510
14511 found="no"
14512
14513 if test $found = "no" ; then
14514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14516 fi
14517
14518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520 fi
14521
14522 CFLAGS="$CFLAGS -Wuninitialized"
14523
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14525 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14526 cacheid=xorg_cv_cc_flag__Wuninitialized
14527 if eval test \${$cacheid+y}
14528 then :
14529 printf %s "(cached) " >&6
14530 else $as_nop
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 int i;
14534 int
14535 main (void)
14536 {
14537
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"
14543 then :
14544 eval $cacheid=yes
14545 else $as_nop
14546 eval $cacheid=no
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14549 conftest$ac_exeext conftest.$ac_ext
14550 fi
14551
14552
14553 CFLAGS="$xorg_testset_save_CFLAGS"
14554
14555 eval supported=\$$cacheid
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14557 printf "%s\n" "$supported" >&6; }
14558 if test "$supported" = "yes" ; then
14559 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14560 found="yes"
14561 fi
14562 fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578 xorg_testset_save_CFLAGS="$CFLAGS"
14579
14580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14585 then :
14586 printf %s "(cached) " >&6
14587 else $as_nop
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 int i;
14591 _ACEOF
14592 if ac_fn_c_try_compile "$LINENO"
14593 then :
14594 xorg_cv_cc_flag_unknown_warning_option=yes
14595 else $as_nop
14596 xorg_cv_cc_flag_unknown_warning_option=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14599 fi
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14603 CFLAGS="$xorg_testset_save_CFLAGS"
14604 fi
14605
14606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14609 fi
14610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14614 then :
14615 printf %s "(cached) " >&6
14616 else $as_nop
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 int i;
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"
14622 then :
14623 xorg_cv_cc_flag_unused_command_line_argument=yes
14624 else $as_nop
14625 xorg_cv_cc_flag_unused_command_line_argument=no
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14628 fi
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14632 CFLAGS="$xorg_testset_save_CFLAGS"
14633 fi
14634
14635 found="no"
14636
14637 if test $found = "no" ; then
14638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14640 fi
14641
14642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14644 fi
14645
14646 CFLAGS="$CFLAGS -Wshadow"
14647
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14649 printf %s "checking if $CC supports -Wshadow... " >&6; }
14650 cacheid=xorg_cv_cc_flag__Wshadow
14651 if eval test \${$cacheid+y}
14652 then :
14653 printf %s "(cached) " >&6
14654 else $as_nop
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 int i;
14658 int
14659 main (void)
14660 {
14661
14662 ;
14663 return 0;
14664 }
14665 _ACEOF
14666 if ac_fn_c_try_link "$LINENO"
14667 then :
14668 eval $cacheid=yes
14669 else $as_nop
14670 eval $cacheid=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14673 conftest$ac_exeext conftest.$ac_ext
14674 fi
14675
14676
14677 CFLAGS="$xorg_testset_save_CFLAGS"
14678
14679 eval supported=\$$cacheid
14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14681 printf "%s\n" "$supported" >&6; }
14682 if test "$supported" = "yes" ; then
14683 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14684 found="yes"
14685 fi
14686 fi
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702 xorg_testset_save_CFLAGS="$CFLAGS"
14703
14704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14709 then :
14710 printf %s "(cached) " >&6
14711 else $as_nop
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 int i;
14715 _ACEOF
14716 if ac_fn_c_try_compile "$LINENO"
14717 then :
14718 xorg_cv_cc_flag_unknown_warning_option=yes
14719 else $as_nop
14720 xorg_cv_cc_flag_unknown_warning_option=no
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14723 fi
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14727 CFLAGS="$xorg_testset_save_CFLAGS"
14728 fi
14729
14730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14733 fi
14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14738 then :
14739 printf %s "(cached) " >&6
14740 else $as_nop
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 int i;
14744 _ACEOF
14745 if ac_fn_c_try_compile "$LINENO"
14746 then :
14747 xorg_cv_cc_flag_unused_command_line_argument=yes
14748 else $as_nop
14749 xorg_cv_cc_flag_unused_command_line_argument=no
14750 fi
14751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14752 fi
14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14756 CFLAGS="$xorg_testset_save_CFLAGS"
14757 fi
14758
14759 found="no"
14760
14761 if test $found = "no" ; then
14762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14764 fi
14765
14766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14768 fi
14769
14770 CFLAGS="$CFLAGS -Wmissing-noreturn"
14771
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14773 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14774 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14775 if eval test \${$cacheid+y}
14776 then :
14777 printf %s "(cached) " >&6
14778 else $as_nop
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 int i;
14782 int
14783 main (void)
14784 {
14785
14786 ;
14787 return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"
14791 then :
14792 eval $cacheid=yes
14793 else $as_nop
14794 eval $cacheid=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14797 conftest$ac_exeext conftest.$ac_ext
14798 fi
14799
14800
14801 CFLAGS="$xorg_testset_save_CFLAGS"
14802
14803 eval supported=\$$cacheid
14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14805 printf "%s\n" "$supported" >&6; }
14806 if test "$supported" = "yes" ; then
14807 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14808 found="yes"
14809 fi
14810 fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826 xorg_testset_save_CFLAGS="$CFLAGS"
14827
14828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14832 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14833 then :
14834 printf %s "(cached) " >&6
14835 else $as_nop
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 int i;
14839 _ACEOF
14840 if ac_fn_c_try_compile "$LINENO"
14841 then :
14842 xorg_cv_cc_flag_unknown_warning_option=yes
14843 else $as_nop
14844 xorg_cv_cc_flag_unknown_warning_option=no
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14847 fi
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14851 CFLAGS="$xorg_testset_save_CFLAGS"
14852 fi
14853
14854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14857 fi
14858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14862 then :
14863 printf %s "(cached) " >&6
14864 else $as_nop
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 int i;
14868 _ACEOF
14869 if ac_fn_c_try_compile "$LINENO"
14870 then :
14871 xorg_cv_cc_flag_unused_command_line_argument=yes
14872 else $as_nop
14873 xorg_cv_cc_flag_unused_command_line_argument=no
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14876 fi
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14880 CFLAGS="$xorg_testset_save_CFLAGS"
14881 fi
14882
14883 found="no"
14884
14885 if test $found = "no" ; then
14886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14888 fi
14889
14890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14892 fi
14893
14894 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14895
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14897 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14898 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14899 if eval test \${$cacheid+y}
14900 then :
14901 printf %s "(cached) " >&6
14902 else $as_nop
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 int i;
14906 int
14907 main (void)
14908 {
14909
14910 ;
14911 return 0;
14912 }
14913 _ACEOF
14914 if ac_fn_c_try_link "$LINENO"
14915 then :
14916 eval $cacheid=yes
14917 else $as_nop
14918 eval $cacheid=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14921 conftest$ac_exeext conftest.$ac_ext
14922 fi
14923
14924
14925 CFLAGS="$xorg_testset_save_CFLAGS"
14926
14927 eval supported=\$$cacheid
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14929 printf "%s\n" "$supported" >&6; }
14930 if test "$supported" = "yes" ; then
14931 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14932 found="yes"
14933 fi
14934 fi
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950 xorg_testset_save_CFLAGS="$CFLAGS"
14951
14952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14956 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14957 then :
14958 printf %s "(cached) " >&6
14959 else $as_nop
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 int i;
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"
14965 then :
14966 xorg_cv_cc_flag_unknown_warning_option=yes
14967 else $as_nop
14968 xorg_cv_cc_flag_unknown_warning_option=no
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14971 fi
14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14973 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14975 CFLAGS="$xorg_testset_save_CFLAGS"
14976 fi
14977
14978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14981 fi
14982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14984 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14985 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14986 then :
14987 printf %s "(cached) " >&6
14988 else $as_nop
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14991 int i;
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"
14994 then :
14995 xorg_cv_cc_flag_unused_command_line_argument=yes
14996 else $as_nop
14997 xorg_cv_cc_flag_unused_command_line_argument=no
14998 fi
14999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15000 fi
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15004 CFLAGS="$xorg_testset_save_CFLAGS"
15005 fi
15006
15007 found="no"
15008
15009 if test $found = "no" ; then
15010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15012 fi
15013
15014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15016 fi
15017
15018 CFLAGS="$CFLAGS -Wredundant-decls"
15019
15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15021 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15022 cacheid=xorg_cv_cc_flag__Wredundant_decls
15023 if eval test \${$cacheid+y}
15024 then :
15025 printf %s "(cached) " >&6
15026 else $as_nop
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 int i;
15030 int
15031 main (void)
15032 {
15033
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"
15039 then :
15040 eval $cacheid=yes
15041 else $as_nop
15042 eval $cacheid=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15045 conftest$ac_exeext conftest.$ac_ext
15046 fi
15047
15048
15049 CFLAGS="$xorg_testset_save_CFLAGS"
15050
15051 eval supported=\$$cacheid
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15053 printf "%s\n" "$supported" >&6; }
15054 if test "$supported" = "yes" ; then
15055 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15056 found="yes"
15057 fi
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074 xorg_testset_save_CFLAGS="$CFLAGS"
15075
15076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15080 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15081 then :
15082 printf %s "(cached) " >&6
15083 else $as_nop
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 int i;
15087 _ACEOF
15088 if ac_fn_c_try_compile "$LINENO"
15089 then :
15090 xorg_cv_cc_flag_unknown_warning_option=yes
15091 else $as_nop
15092 xorg_cv_cc_flag_unknown_warning_option=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15095 fi
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099 CFLAGS="$xorg_testset_save_CFLAGS"
15100 fi
15101
15102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105 fi
15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15110 then :
15111 printf %s "(cached) " >&6
15112 else $as_nop
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 int i;
15116 _ACEOF
15117 if ac_fn_c_try_compile "$LINENO"
15118 then :
15119 xorg_cv_cc_flag_unused_command_line_argument=yes
15120 else $as_nop
15121 xorg_cv_cc_flag_unused_command_line_argument=no
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15124 fi
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15126 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15128 CFLAGS="$xorg_testset_save_CFLAGS"
15129 fi
15130
15131 found="no"
15132
15133 if test $found = "no" ; then
15134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15136 fi
15137
15138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140 fi
15141
15142 CFLAGS="$CFLAGS -Wlogical-op"
15143
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15145 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15146 cacheid=xorg_cv_cc_flag__Wlogical_op
15147 if eval test \${$cacheid+y}
15148 then :
15149 printf %s "(cached) " >&6
15150 else $as_nop
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 int i;
15154 int
15155 main (void)
15156 {
15157
15158 ;
15159 return 0;
15160 }
15161 _ACEOF
15162 if ac_fn_c_try_link "$LINENO"
15163 then :
15164 eval $cacheid=yes
15165 else $as_nop
15166 eval $cacheid=no
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15169 conftest$ac_exeext conftest.$ac_ext
15170 fi
15171
15172
15173 CFLAGS="$xorg_testset_save_CFLAGS"
15174
15175 eval supported=\$$cacheid
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15177 printf "%s\n" "$supported" >&6; }
15178 if test "$supported" = "yes" ; then
15179 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15180 found="yes"
15181 fi
15182 fi
15183
15184
15185
15186 # These are currently disabled because they are noisy. They will be enabled
15187 # in the future once the codebase is sufficiently modernized to silence
15188 # them. For now, I don't want them to drown out the other warnings.
15189 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15190 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15191 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15192
15193 # Turn some warnings into errors, so we don't accidently get successful builds
15194 # when there are problems that should be fixed.
15195
15196 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210 xorg_testset_save_CFLAGS="$CFLAGS"
15211
15212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15217 then :
15218 printf %s "(cached) " >&6
15219 else $as_nop
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 int i;
15223 _ACEOF
15224 if ac_fn_c_try_compile "$LINENO"
15225 then :
15226 xorg_cv_cc_flag_unknown_warning_option=yes
15227 else $as_nop
15228 xorg_cv_cc_flag_unknown_warning_option=no
15229 fi
15230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15231 fi
15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15235 CFLAGS="$xorg_testset_save_CFLAGS"
15236 fi
15237
15238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241 fi
15242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15246 then :
15247 printf %s "(cached) " >&6
15248 else $as_nop
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15251 int i;
15252 _ACEOF
15253 if ac_fn_c_try_compile "$LINENO"
15254 then :
15255 xorg_cv_cc_flag_unused_command_line_argument=yes
15256 else $as_nop
15257 xorg_cv_cc_flag_unused_command_line_argument=no
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15260 fi
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15264 CFLAGS="$xorg_testset_save_CFLAGS"
15265 fi
15266
15267 found="no"
15268
15269 if test $found = "no" ; then
15270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272 fi
15273
15274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276 fi
15277
15278 CFLAGS="$CFLAGS -Werror=implicit"
15279
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15281 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15282 cacheid=xorg_cv_cc_flag__Werror_implicit
15283 if eval test \${$cacheid+y}
15284 then :
15285 printf %s "(cached) " >&6
15286 else $as_nop
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 int i;
15290 int
15291 main (void)
15292 {
15293
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_link "$LINENO"
15299 then :
15300 eval $cacheid=yes
15301 else $as_nop
15302 eval $cacheid=no
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15305 conftest$ac_exeext conftest.$ac_ext
15306 fi
15307
15308
15309 CFLAGS="$xorg_testset_save_CFLAGS"
15310
15311 eval supported=\$$cacheid
15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15313 printf "%s\n" "$supported" >&6; }
15314 if test "$supported" = "yes" ; then
15315 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15316 found="yes"
15317 fi
15318 fi
15319
15320 if test $found = "no" ; then
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323 fi
15324
15325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15327 fi
15328
15329 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15330
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15332 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15333 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15334 if eval test \${$cacheid+y}
15335 then :
15336 printf %s "(cached) " >&6
15337 else $as_nop
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 int i;
15341 int
15342 main (void)
15343 {
15344
15345 ;
15346 return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"
15350 then :
15351 eval $cacheid=yes
15352 else $as_nop
15353 eval $cacheid=no
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15356 conftest$ac_exeext conftest.$ac_ext
15357 fi
15358
15359
15360 CFLAGS="$xorg_testset_save_CFLAGS"
15361
15362 eval supported=\$$cacheid
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15364 printf "%s\n" "$supported" >&6; }
15365 if test "$supported" = "yes" ; then
15366 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15367 found="yes"
15368 fi
15369 fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385 xorg_testset_save_CFLAGS="$CFLAGS"
15386
15387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15392 then :
15393 printf %s "(cached) " >&6
15394 else $as_nop
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15397 int i;
15398 _ACEOF
15399 if ac_fn_c_try_compile "$LINENO"
15400 then :
15401 xorg_cv_cc_flag_unknown_warning_option=yes
15402 else $as_nop
15403 xorg_cv_cc_flag_unknown_warning_option=no
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15406 fi
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15410 CFLAGS="$xorg_testset_save_CFLAGS"
15411 fi
15412
15413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15416 fi
15417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15421 then :
15422 printf %s "(cached) " >&6
15423 else $as_nop
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 int i;
15427 _ACEOF
15428 if ac_fn_c_try_compile "$LINENO"
15429 then :
15430 xorg_cv_cc_flag_unused_command_line_argument=yes
15431 else $as_nop
15432 xorg_cv_cc_flag_unused_command_line_argument=no
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 fi
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15439 CFLAGS="$xorg_testset_save_CFLAGS"
15440 fi
15441
15442 found="no"
15443
15444 if test $found = "no" ; then
15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447 fi
15448
15449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451 fi
15452
15453 CFLAGS="$CFLAGS -Werror=nonnull"
15454
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15456 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15457 cacheid=xorg_cv_cc_flag__Werror_nonnull
15458 if eval test \${$cacheid+y}
15459 then :
15460 printf %s "(cached) " >&6
15461 else $as_nop
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15464 int i;
15465 int
15466 main (void)
15467 {
15468
15469 ;
15470 return 0;
15471 }
15472 _ACEOF
15473 if ac_fn_c_try_link "$LINENO"
15474 then :
15475 eval $cacheid=yes
15476 else $as_nop
15477 eval $cacheid=no
15478 fi
15479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15480 conftest$ac_exeext conftest.$ac_ext
15481 fi
15482
15483
15484 CFLAGS="$xorg_testset_save_CFLAGS"
15485
15486 eval supported=\$$cacheid
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15488 printf "%s\n" "$supported" >&6; }
15489 if test "$supported" = "yes" ; then
15490 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15491 found="yes"
15492 fi
15493 fi
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509 xorg_testset_save_CFLAGS="$CFLAGS"
15510
15511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15516 then :
15517 printf %s "(cached) " >&6
15518 else $as_nop
15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15521 int i;
15522 _ACEOF
15523 if ac_fn_c_try_compile "$LINENO"
15524 then :
15525 xorg_cv_cc_flag_unknown_warning_option=yes
15526 else $as_nop
15527 xorg_cv_cc_flag_unknown_warning_option=no
15528 fi
15529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15530 fi
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15534 CFLAGS="$xorg_testset_save_CFLAGS"
15535 fi
15536
15537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540 fi
15541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15545 then :
15546 printf %s "(cached) " >&6
15547 else $as_nop
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15550 int i;
15551 _ACEOF
15552 if ac_fn_c_try_compile "$LINENO"
15553 then :
15554 xorg_cv_cc_flag_unused_command_line_argument=yes
15555 else $as_nop
15556 xorg_cv_cc_flag_unused_command_line_argument=no
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15559 fi
15560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15563 CFLAGS="$xorg_testset_save_CFLAGS"
15564 fi
15565
15566 found="no"
15567
15568 if test $found = "no" ; then
15569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571 fi
15572
15573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15575 fi
15576
15577 CFLAGS="$CFLAGS -Werror=init-self"
15578
15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15580 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15581 cacheid=xorg_cv_cc_flag__Werror_init_self
15582 if eval test \${$cacheid+y}
15583 then :
15584 printf %s "(cached) " >&6
15585 else $as_nop
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588 int i;
15589 int
15590 main (void)
15591 {
15592
15593 ;
15594 return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_link "$LINENO"
15598 then :
15599 eval $cacheid=yes
15600 else $as_nop
15601 eval $cacheid=no
15602 fi
15603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15604 conftest$ac_exeext conftest.$ac_ext
15605 fi
15606
15607
15608 CFLAGS="$xorg_testset_save_CFLAGS"
15609
15610 eval supported=\$$cacheid
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15612 printf "%s\n" "$supported" >&6; }
15613 if test "$supported" = "yes" ; then
15614 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15615 found="yes"
15616 fi
15617 fi
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633 xorg_testset_save_CFLAGS="$CFLAGS"
15634
15635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15639 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15640 then :
15641 printf %s "(cached) " >&6
15642 else $as_nop
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 int i;
15646 _ACEOF
15647 if ac_fn_c_try_compile "$LINENO"
15648 then :
15649 xorg_cv_cc_flag_unknown_warning_option=yes
15650 else $as_nop
15651 xorg_cv_cc_flag_unknown_warning_option=no
15652 fi
15653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15654 fi
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15658 CFLAGS="$xorg_testset_save_CFLAGS"
15659 fi
15660
15661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15664 fi
15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15669 then :
15670 printf %s "(cached) " >&6
15671 else $as_nop
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15674 int i;
15675 _ACEOF
15676 if ac_fn_c_try_compile "$LINENO"
15677 then :
15678 xorg_cv_cc_flag_unused_command_line_argument=yes
15679 else $as_nop
15680 xorg_cv_cc_flag_unused_command_line_argument=no
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15683 fi
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15687 CFLAGS="$xorg_testset_save_CFLAGS"
15688 fi
15689
15690 found="no"
15691
15692 if test $found = "no" ; then
15693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695 fi
15696
15697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699 fi
15700
15701 CFLAGS="$CFLAGS -Werror=main"
15702
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15704 printf %s "checking if $CC supports -Werror=main... " >&6; }
15705 cacheid=xorg_cv_cc_flag__Werror_main
15706 if eval test \${$cacheid+y}
15707 then :
15708 printf %s "(cached) " >&6
15709 else $as_nop
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 int i;
15713 int
15714 main (void)
15715 {
15716
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"
15722 then :
15723 eval $cacheid=yes
15724 else $as_nop
15725 eval $cacheid=no
15726 fi
15727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15728 conftest$ac_exeext conftest.$ac_ext
15729 fi
15730
15731
15732 CFLAGS="$xorg_testset_save_CFLAGS"
15733
15734 eval supported=\$$cacheid
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15736 printf "%s\n" "$supported" >&6; }
15737 if test "$supported" = "yes" ; then
15738 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15739 found="yes"
15740 fi
15741 fi
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757 xorg_testset_save_CFLAGS="$CFLAGS"
15758
15759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15762 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15763 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15764 then :
15765 printf %s "(cached) " >&6
15766 else $as_nop
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 int i;
15770 _ACEOF
15771 if ac_fn_c_try_compile "$LINENO"
15772 then :
15773 xorg_cv_cc_flag_unknown_warning_option=yes
15774 else $as_nop
15775 xorg_cv_cc_flag_unknown_warning_option=no
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15778 fi
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15782 CFLAGS="$xorg_testset_save_CFLAGS"
15783 fi
15784
15785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788 fi
15789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15793 then :
15794 printf %s "(cached) " >&6
15795 else $as_nop
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"
15801 then :
15802 xorg_cv_cc_flag_unused_command_line_argument=yes
15803 else $as_nop
15804 xorg_cv_cc_flag_unused_command_line_argument=no
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15807 fi
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15811 CFLAGS="$xorg_testset_save_CFLAGS"
15812 fi
15813
15814 found="no"
15815
15816 if test $found = "no" ; then
15817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819 fi
15820
15821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823 fi
15824
15825 CFLAGS="$CFLAGS -Werror=missing-braces"
15826
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15828 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15829 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15830 if eval test \${$cacheid+y}
15831 then :
15832 printf %s "(cached) " >&6
15833 else $as_nop
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 int i;
15837 int
15838 main (void)
15839 {
15840
15841 ;
15842 return 0;
15843 }
15844 _ACEOF
15845 if ac_fn_c_try_link "$LINENO"
15846 then :
15847 eval $cacheid=yes
15848 else $as_nop
15849 eval $cacheid=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15852 conftest$ac_exeext conftest.$ac_ext
15853 fi
15854
15855
15856 CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858 eval supported=\$$cacheid
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860 printf "%s\n" "$supported" >&6; }
15861 if test "$supported" = "yes" ; then
15862 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15863 found="yes"
15864 fi
15865 fi
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881 xorg_testset_save_CFLAGS="$CFLAGS"
15882
15883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15888 then :
15889 printf %s "(cached) " >&6
15890 else $as_nop
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 int i;
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"
15896 then :
15897 xorg_cv_cc_flag_unknown_warning_option=yes
15898 else $as_nop
15899 xorg_cv_cc_flag_unknown_warning_option=no
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15902 fi
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15906 CFLAGS="$xorg_testset_save_CFLAGS"
15907 fi
15908
15909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912 fi
15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15917 then :
15918 printf %s "(cached) " >&6
15919 else $as_nop
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15922 int i;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"
15925 then :
15926 xorg_cv_cc_flag_unused_command_line_argument=yes
15927 else $as_nop
15928 xorg_cv_cc_flag_unused_command_line_argument=no
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15931 fi
15932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15935 CFLAGS="$xorg_testset_save_CFLAGS"
15936 fi
15937
15938 found="no"
15939
15940 if test $found = "no" ; then
15941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943 fi
15944
15945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15947 fi
15948
15949 CFLAGS="$CFLAGS -Werror=sequence-point"
15950
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15952 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15953 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15954 if eval test \${$cacheid+y}
15955 then :
15956 printf %s "(cached) " >&6
15957 else $as_nop
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 int i;
15961 int
15962 main (void)
15963 {
15964
15965 ;
15966 return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_link "$LINENO"
15970 then :
15971 eval $cacheid=yes
15972 else $as_nop
15973 eval $cacheid=no
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15976 conftest$ac_exeext conftest.$ac_ext
15977 fi
15978
15979
15980 CFLAGS="$xorg_testset_save_CFLAGS"
15981
15982 eval supported=\$$cacheid
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15984 printf "%s\n" "$supported" >&6; }
15985 if test "$supported" = "yes" ; then
15986 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15987 found="yes"
15988 fi
15989 fi
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005 xorg_testset_save_CFLAGS="$CFLAGS"
16006
16007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16012 then :
16013 printf %s "(cached) " >&6
16014 else $as_nop
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 int i;
16018 _ACEOF
16019 if ac_fn_c_try_compile "$LINENO"
16020 then :
16021 xorg_cv_cc_flag_unknown_warning_option=yes
16022 else $as_nop
16023 xorg_cv_cc_flag_unknown_warning_option=no
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16026 fi
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16030 CFLAGS="$xorg_testset_save_CFLAGS"
16031 fi
16032
16033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16036 fi
16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16041 then :
16042 printf %s "(cached) " >&6
16043 else $as_nop
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 int i;
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"
16049 then :
16050 xorg_cv_cc_flag_unused_command_line_argument=yes
16051 else $as_nop
16052 xorg_cv_cc_flag_unused_command_line_argument=no
16053 fi
16054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16055 fi
16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16059 CFLAGS="$xorg_testset_save_CFLAGS"
16060 fi
16061
16062 found="no"
16063
16064 if test $found = "no" ; then
16065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16067 fi
16068
16069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16071 fi
16072
16073 CFLAGS="$CFLAGS -Werror=return-type"
16074
16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16076 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16077 cacheid=xorg_cv_cc_flag__Werror_return_type
16078 if eval test \${$cacheid+y}
16079 then :
16080 printf %s "(cached) " >&6
16081 else $as_nop
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 int i;
16085 int
16086 main (void)
16087 {
16088
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_link "$LINENO"
16094 then :
16095 eval $cacheid=yes
16096 else $as_nop
16097 eval $cacheid=no
16098 fi
16099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16100 conftest$ac_exeext conftest.$ac_ext
16101 fi
16102
16103
16104 CFLAGS="$xorg_testset_save_CFLAGS"
16105
16106 eval supported=\$$cacheid
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16108 printf "%s\n" "$supported" >&6; }
16109 if test "$supported" = "yes" ; then
16110 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16111 found="yes"
16112 fi
16113 fi
16114
16115 if test $found = "no" ; then
16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118 fi
16119
16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16122 fi
16123
16124 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16125
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16127 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16128 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16129 if eval test \${$cacheid+y}
16130 then :
16131 printf %s "(cached) " >&6
16132 else $as_nop
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 int i;
16136 int
16137 main (void)
16138 {
16139
16140 ;
16141 return 0;
16142 }
16143 _ACEOF
16144 if ac_fn_c_try_link "$LINENO"
16145 then :
16146 eval $cacheid=yes
16147 else $as_nop
16148 eval $cacheid=no
16149 fi
16150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16151 conftest$ac_exeext conftest.$ac_ext
16152 fi
16153
16154
16155 CFLAGS="$xorg_testset_save_CFLAGS"
16156
16157 eval supported=\$$cacheid
16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16159 printf "%s\n" "$supported" >&6; }
16160 if test "$supported" = "yes" ; then
16161 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16162 found="yes"
16163 fi
16164 fi
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180 xorg_testset_save_CFLAGS="$CFLAGS"
16181
16182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16187 then :
16188 printf %s "(cached) " >&6
16189 else $as_nop
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int i;
16193 _ACEOF
16194 if ac_fn_c_try_compile "$LINENO"
16195 then :
16196 xorg_cv_cc_flag_unknown_warning_option=yes
16197 else $as_nop
16198 xorg_cv_cc_flag_unknown_warning_option=no
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16201 fi
16202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16205 CFLAGS="$xorg_testset_save_CFLAGS"
16206 fi
16207
16208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211 fi
16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16216 then :
16217 printf %s "(cached) " >&6
16218 else $as_nop
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 int i;
16222 _ACEOF
16223 if ac_fn_c_try_compile "$LINENO"
16224 then :
16225 xorg_cv_cc_flag_unused_command_line_argument=yes
16226 else $as_nop
16227 xorg_cv_cc_flag_unused_command_line_argument=no
16228 fi
16229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16230 fi
16231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16234 CFLAGS="$xorg_testset_save_CFLAGS"
16235 fi
16236
16237 found="no"
16238
16239 if test $found = "no" ; then
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 fi
16243
16244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16246 fi
16247
16248 CFLAGS="$CFLAGS -Werror=trigraphs"
16249
16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16251 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16252 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16253 if eval test \${$cacheid+y}
16254 then :
16255 printf %s "(cached) " >&6
16256 else $as_nop
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 int i;
16260 int
16261 main (void)
16262 {
16263
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 if ac_fn_c_try_link "$LINENO"
16269 then :
16270 eval $cacheid=yes
16271 else $as_nop
16272 eval $cacheid=no
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16275 conftest$ac_exeext conftest.$ac_ext
16276 fi
16277
16278
16279 CFLAGS="$xorg_testset_save_CFLAGS"
16280
16281 eval supported=\$$cacheid
16282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16283 printf "%s\n" "$supported" >&6; }
16284 if test "$supported" = "yes" ; then
16285 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16286 found="yes"
16287 fi
16288 fi
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304 xorg_testset_save_CFLAGS="$CFLAGS"
16305
16306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16309 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16310 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16311 then :
16312 printf %s "(cached) " >&6
16313 else $as_nop
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 int i;
16317 _ACEOF
16318 if ac_fn_c_try_compile "$LINENO"
16319 then :
16320 xorg_cv_cc_flag_unknown_warning_option=yes
16321 else $as_nop
16322 xorg_cv_cc_flag_unknown_warning_option=no
16323 fi
16324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16325 fi
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16329 CFLAGS="$xorg_testset_save_CFLAGS"
16330 fi
16331
16332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335 fi
16336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16340 then :
16341 printf %s "(cached) " >&6
16342 else $as_nop
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 int i;
16346 _ACEOF
16347 if ac_fn_c_try_compile "$LINENO"
16348 then :
16349 xorg_cv_cc_flag_unused_command_line_argument=yes
16350 else $as_nop
16351 xorg_cv_cc_flag_unused_command_line_argument=no
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16354 fi
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16358 CFLAGS="$xorg_testset_save_CFLAGS"
16359 fi
16360
16361 found="no"
16362
16363 if test $found = "no" ; then
16364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366 fi
16367
16368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16370 fi
16371
16372 CFLAGS="$CFLAGS -Werror=array-bounds"
16373
16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16375 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16376 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16377 if eval test \${$cacheid+y}
16378 then :
16379 printf %s "(cached) " >&6
16380 else $as_nop
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16383 int i;
16384 int
16385 main (void)
16386 {
16387
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 if ac_fn_c_try_link "$LINENO"
16393 then :
16394 eval $cacheid=yes
16395 else $as_nop
16396 eval $cacheid=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16399 conftest$ac_exeext conftest.$ac_ext
16400 fi
16401
16402
16403 CFLAGS="$xorg_testset_save_CFLAGS"
16404
16405 eval supported=\$$cacheid
16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16407 printf "%s\n" "$supported" >&6; }
16408 if test "$supported" = "yes" ; then
16409 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16410 found="yes"
16411 fi
16412 fi
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428 xorg_testset_save_CFLAGS="$CFLAGS"
16429
16430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16433 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16434 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16435 then :
16436 printf %s "(cached) " >&6
16437 else $as_nop
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 int i;
16441 _ACEOF
16442 if ac_fn_c_try_compile "$LINENO"
16443 then :
16444 xorg_cv_cc_flag_unknown_warning_option=yes
16445 else $as_nop
16446 xorg_cv_cc_flag_unknown_warning_option=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16449 fi
16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16451 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16453 CFLAGS="$xorg_testset_save_CFLAGS"
16454 fi
16455
16456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16459 fi
16460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16462 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16463 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16464 then :
16465 printf %s "(cached) " >&6
16466 else $as_nop
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 int i;
16470 _ACEOF
16471 if ac_fn_c_try_compile "$LINENO"
16472 then :
16473 xorg_cv_cc_flag_unused_command_line_argument=yes
16474 else $as_nop
16475 xorg_cv_cc_flag_unused_command_line_argument=no
16476 fi
16477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16478 fi
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16480 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16482 CFLAGS="$xorg_testset_save_CFLAGS"
16483 fi
16484
16485 found="no"
16486
16487 if test $found = "no" ; then
16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494 fi
16495
16496 CFLAGS="$CFLAGS -Werror=write-strings"
16497
16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16499 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16500 cacheid=xorg_cv_cc_flag__Werror_write_strings
16501 if eval test \${$cacheid+y}
16502 then :
16503 printf %s "(cached) " >&6
16504 else $as_nop
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507 int i;
16508 int
16509 main (void)
16510 {
16511
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"
16517 then :
16518 eval $cacheid=yes
16519 else $as_nop
16520 eval $cacheid=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16523 conftest$ac_exeext conftest.$ac_ext
16524 fi
16525
16526
16527 CFLAGS="$xorg_testset_save_CFLAGS"
16528
16529 eval supported=\$$cacheid
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16531 printf "%s\n" "$supported" >&6; }
16532 if test "$supported" = "yes" ; then
16533 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16534 found="yes"
16535 fi
16536 fi
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552 xorg_testset_save_CFLAGS="$CFLAGS"
16553
16554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16558 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16559 then :
16560 printf %s "(cached) " >&6
16561 else $as_nop
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 int i;
16565 _ACEOF
16566 if ac_fn_c_try_compile "$LINENO"
16567 then :
16568 xorg_cv_cc_flag_unknown_warning_option=yes
16569 else $as_nop
16570 xorg_cv_cc_flag_unknown_warning_option=no
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16573 fi
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16577 CFLAGS="$xorg_testset_save_CFLAGS"
16578 fi
16579
16580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583 fi
16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16588 then :
16589 printf %s "(cached) " >&6
16590 else $as_nop
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593 int i;
16594 _ACEOF
16595 if ac_fn_c_try_compile "$LINENO"
16596 then :
16597 xorg_cv_cc_flag_unused_command_line_argument=yes
16598 else $as_nop
16599 xorg_cv_cc_flag_unused_command_line_argument=no
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16602 fi
16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16606 CFLAGS="$xorg_testset_save_CFLAGS"
16607 fi
16608
16609 found="no"
16610
16611 if test $found = "no" ; then
16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614 fi
16615
16616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618 fi
16619
16620 CFLAGS="$CFLAGS -Werror=address"
16621
16622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16623 printf %s "checking if $CC supports -Werror=address... " >&6; }
16624 cacheid=xorg_cv_cc_flag__Werror_address
16625 if eval test \${$cacheid+y}
16626 then :
16627 printf %s "(cached) " >&6
16628 else $as_nop
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 int i;
16632 int
16633 main (void)
16634 {
16635
16636 ;
16637 return 0;
16638 }
16639 _ACEOF
16640 if ac_fn_c_try_link "$LINENO"
16641 then :
16642 eval $cacheid=yes
16643 else $as_nop
16644 eval $cacheid=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16647 conftest$ac_exeext conftest.$ac_ext
16648 fi
16649
16650
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652
16653 eval supported=\$$cacheid
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16655 printf "%s\n" "$supported" >&6; }
16656 if test "$supported" = "yes" ; then
16657 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16658 found="yes"
16659 fi
16660 fi
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676 xorg_testset_save_CFLAGS="$CFLAGS"
16677
16678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16682 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16683 then :
16684 printf %s "(cached) " >&6
16685 else $as_nop
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 int i;
16689 _ACEOF
16690 if ac_fn_c_try_compile "$LINENO"
16691 then :
16692 xorg_cv_cc_flag_unknown_warning_option=yes
16693 else $as_nop
16694 xorg_cv_cc_flag_unknown_warning_option=no
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16697 fi
16698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16699 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16701 CFLAGS="$xorg_testset_save_CFLAGS"
16702 fi
16703
16704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16707 fi
16708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16712 then :
16713 printf %s "(cached) " >&6
16714 else $as_nop
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717 int i;
16718 _ACEOF
16719 if ac_fn_c_try_compile "$LINENO"
16720 then :
16721 xorg_cv_cc_flag_unused_command_line_argument=yes
16722 else $as_nop
16723 xorg_cv_cc_flag_unused_command_line_argument=no
16724 fi
16725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16726 fi
16727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16728 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16730 CFLAGS="$xorg_testset_save_CFLAGS"
16731 fi
16732
16733 found="no"
16734
16735 if test $found = "no" ; then
16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738 fi
16739
16740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742 fi
16743
16744 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16745
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16747 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16748 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16749 if eval test \${$cacheid+y}
16750 then :
16751 printf %s "(cached) " >&6
16752 else $as_nop
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755 int i;
16756 int
16757 main (void)
16758 {
16759
16760 ;
16761 return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_link "$LINENO"
16765 then :
16766 eval $cacheid=yes
16767 else $as_nop
16768 eval $cacheid=no
16769 fi
16770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16771 conftest$ac_exeext conftest.$ac_ext
16772 fi
16773
16774
16775 CFLAGS="$xorg_testset_save_CFLAGS"
16776
16777 eval supported=\$$cacheid
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16779 printf "%s\n" "$supported" >&6; }
16780 if test "$supported" = "yes" ; then
16781 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16782 found="yes"
16783 fi
16784 fi
16785
16786 if test $found = "no" ; then
16787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789 fi
16790
16791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16793 fi
16794
16795 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16796
16797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16798 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16799 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16800 if eval test \${$cacheid+y}
16801 then :
16802 printf %s "(cached) " >&6
16803 else $as_nop
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806 int i;
16807 int
16808 main (void)
16809 {
16810
16811 ;
16812 return 0;
16813 }
16814 _ACEOF
16815 if ac_fn_c_try_link "$LINENO"
16816 then :
16817 eval $cacheid=yes
16818 else $as_nop
16819 eval $cacheid=no
16820 fi
16821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16822 conftest$ac_exeext conftest.$ac_ext
16823 fi
16824
16825
16826 CFLAGS="$xorg_testset_save_CFLAGS"
16827
16828 eval supported=\$$cacheid
16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16830 printf "%s\n" "$supported" >&6; }
16831 if test "$supported" = "yes" ; then
16832 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16833 found="yes"
16834 fi
16835 fi
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851 xorg_testset_save_CFLAGS="$CFLAGS"
16852
16853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16856 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16857 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16858 then :
16859 printf %s "(cached) " >&6
16860 else $as_nop
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863 int i;
16864 _ACEOF
16865 if ac_fn_c_try_compile "$LINENO"
16866 then :
16867 xorg_cv_cc_flag_unknown_warning_option=yes
16868 else $as_nop
16869 xorg_cv_cc_flag_unknown_warning_option=no
16870 fi
16871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16872 fi
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16876 CFLAGS="$xorg_testset_save_CFLAGS"
16877 fi
16878
16879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16882 fi
16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16887 then :
16888 printf %s "(cached) " >&6
16889 else $as_nop
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 int i;
16893 _ACEOF
16894 if ac_fn_c_try_compile "$LINENO"
16895 then :
16896 xorg_cv_cc_flag_unused_command_line_argument=yes
16897 else $as_nop
16898 xorg_cv_cc_flag_unused_command_line_argument=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16901 fi
16902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16903 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16905 CFLAGS="$xorg_testset_save_CFLAGS"
16906 fi
16907
16908 found="no"
16909
16910 if test $found = "no" ; then
16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913 fi
16914
16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16917 fi
16918
16919 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16920
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16922 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16923 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16924 if eval test \${$cacheid+y}
16925 then :
16926 printf %s "(cached) " >&6
16927 else $as_nop
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16930 int i;
16931 int
16932 main (void)
16933 {
16934
16935 ;
16936 return 0;
16937 }
16938 _ACEOF
16939 if ac_fn_c_try_link "$LINENO"
16940 then :
16941 eval $cacheid=yes
16942 else $as_nop
16943 eval $cacheid=no
16944 fi
16945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16946 conftest$ac_exeext conftest.$ac_ext
16947 fi
16948
16949
16950 CFLAGS="$xorg_testset_save_CFLAGS"
16951
16952 eval supported=\$$cacheid
16953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16954 printf "%s\n" "$supported" >&6; }
16955 if test "$supported" = "yes" ; then
16956 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16957 found="yes"
16958 fi
16959 fi
16960
16961 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16962 else
16963 { printf "%s\n" "$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
16964 printf "%s\n" "$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;}
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978 xorg_testset_save_CFLAGS="$CFLAGS"
16979
16980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16985 then :
16986 printf %s "(cached) " >&6
16987 else $as_nop
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 int i;
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"
16993 then :
16994 xorg_cv_cc_flag_unknown_warning_option=yes
16995 else $as_nop
16996 xorg_cv_cc_flag_unknown_warning_option=no
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16999 fi
17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17003 CFLAGS="$xorg_testset_save_CFLAGS"
17004 fi
17005
17006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17009 fi
17010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17014 then :
17015 printf %s "(cached) " >&6
17016 else $as_nop
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 int i;
17020 _ACEOF
17021 if ac_fn_c_try_compile "$LINENO"
17022 then :
17023 xorg_cv_cc_flag_unused_command_line_argument=yes
17024 else $as_nop
17025 xorg_cv_cc_flag_unused_command_line_argument=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17028 fi
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17032 CFLAGS="$xorg_testset_save_CFLAGS"
17033 fi
17034
17035 found="no"
17036
17037 if test $found = "no" ; then
17038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17040 fi
17041
17042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17044 fi
17045
17046 CFLAGS="$CFLAGS -Wimplicit"
17047
17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17049 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17050 cacheid=xorg_cv_cc_flag__Wimplicit
17051 if eval test \${$cacheid+y}
17052 then :
17053 printf %s "(cached) " >&6
17054 else $as_nop
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056 /* end confdefs.h. */
17057 int i;
17058 int
17059 main (void)
17060 {
17061
17062 ;
17063 return 0;
17064 }
17065 _ACEOF
17066 if ac_fn_c_try_link "$LINENO"
17067 then :
17068 eval $cacheid=yes
17069 else $as_nop
17070 eval $cacheid=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17073 conftest$ac_exeext conftest.$ac_ext
17074 fi
17075
17076
17077 CFLAGS="$xorg_testset_save_CFLAGS"
17078
17079 eval supported=\$$cacheid
17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17081 printf "%s\n" "$supported" >&6; }
17082 if test "$supported" = "yes" ; then
17083 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17084 found="yes"
17085 fi
17086 fi
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102 xorg_testset_save_CFLAGS="$CFLAGS"
17103
17104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17109 then :
17110 printf %s "(cached) " >&6
17111 else $as_nop
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114 int i;
17115 _ACEOF
17116 if ac_fn_c_try_compile "$LINENO"
17117 then :
17118 xorg_cv_cc_flag_unknown_warning_option=yes
17119 else $as_nop
17120 xorg_cv_cc_flag_unknown_warning_option=no
17121 fi
17122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17123 fi
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17125 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17127 CFLAGS="$xorg_testset_save_CFLAGS"
17128 fi
17129
17130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133 fi
17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17138 then :
17139 printf %s "(cached) " >&6
17140 else $as_nop
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 int i;
17144 _ACEOF
17145 if ac_fn_c_try_compile "$LINENO"
17146 then :
17147 xorg_cv_cc_flag_unused_command_line_argument=yes
17148 else $as_nop
17149 xorg_cv_cc_flag_unused_command_line_argument=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17152 fi
17153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17156 CFLAGS="$xorg_testset_save_CFLAGS"
17157 fi
17158
17159 found="no"
17160
17161 if test $found = "no" ; then
17162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17164 fi
17165
17166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17168 fi
17169
17170 CFLAGS="$CFLAGS -Wnonnull"
17171
17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17173 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17174 cacheid=xorg_cv_cc_flag__Wnonnull
17175 if eval test \${$cacheid+y}
17176 then :
17177 printf %s "(cached) " >&6
17178 else $as_nop
17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h. */
17181 int i;
17182 int
17183 main (void)
17184 {
17185
17186 ;
17187 return 0;
17188 }
17189 _ACEOF
17190 if ac_fn_c_try_link "$LINENO"
17191 then :
17192 eval $cacheid=yes
17193 else $as_nop
17194 eval $cacheid=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17197 conftest$ac_exeext conftest.$ac_ext
17198 fi
17199
17200
17201 CFLAGS="$xorg_testset_save_CFLAGS"
17202
17203 eval supported=\$$cacheid
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17205 printf "%s\n" "$supported" >&6; }
17206 if test "$supported" = "yes" ; then
17207 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17208 found="yes"
17209 fi
17210 fi
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226 xorg_testset_save_CFLAGS="$CFLAGS"
17227
17228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17232 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17233 then :
17234 printf %s "(cached) " >&6
17235 else $as_nop
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17238 int i;
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"
17241 then :
17242 xorg_cv_cc_flag_unknown_warning_option=yes
17243 else $as_nop
17244 xorg_cv_cc_flag_unknown_warning_option=no
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17247 fi
17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17251 CFLAGS="$xorg_testset_save_CFLAGS"
17252 fi
17253
17254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17257 fi
17258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17262 then :
17263 printf %s "(cached) " >&6
17264 else $as_nop
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267 int i;
17268 _ACEOF
17269 if ac_fn_c_try_compile "$LINENO"
17270 then :
17271 xorg_cv_cc_flag_unused_command_line_argument=yes
17272 else $as_nop
17273 xorg_cv_cc_flag_unused_command_line_argument=no
17274 fi
17275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17276 fi
17277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17280 CFLAGS="$xorg_testset_save_CFLAGS"
17281 fi
17282
17283 found="no"
17284
17285 if test $found = "no" ; then
17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17288 fi
17289
17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17292 fi
17293
17294 CFLAGS="$CFLAGS -Winit-self"
17295
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17297 printf %s "checking if $CC supports -Winit-self... " >&6; }
17298 cacheid=xorg_cv_cc_flag__Winit_self
17299 if eval test \${$cacheid+y}
17300 then :
17301 printf %s "(cached) " >&6
17302 else $as_nop
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17305 int i;
17306 int
17307 main (void)
17308 {
17309
17310 ;
17311 return 0;
17312 }
17313 _ACEOF
17314 if ac_fn_c_try_link "$LINENO"
17315 then :
17316 eval $cacheid=yes
17317 else $as_nop
17318 eval $cacheid=no
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17321 conftest$ac_exeext conftest.$ac_ext
17322 fi
17323
17324
17325 CFLAGS="$xorg_testset_save_CFLAGS"
17326
17327 eval supported=\$$cacheid
17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17329 printf "%s\n" "$supported" >&6; }
17330 if test "$supported" = "yes" ; then
17331 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17332 found="yes"
17333 fi
17334 fi
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350 xorg_testset_save_CFLAGS="$CFLAGS"
17351
17352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17355 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17356 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17357 then :
17358 printf %s "(cached) " >&6
17359 else $as_nop
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17362 int i;
17363 _ACEOF
17364 if ac_fn_c_try_compile "$LINENO"
17365 then :
17366 xorg_cv_cc_flag_unknown_warning_option=yes
17367 else $as_nop
17368 xorg_cv_cc_flag_unknown_warning_option=no
17369 fi
17370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17371 fi
17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17373 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17375 CFLAGS="$xorg_testset_save_CFLAGS"
17376 fi
17377
17378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381 fi
17382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17386 then :
17387 printf %s "(cached) " >&6
17388 else $as_nop
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391 int i;
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"
17394 then :
17395 xorg_cv_cc_flag_unused_command_line_argument=yes
17396 else $as_nop
17397 xorg_cv_cc_flag_unused_command_line_argument=no
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17400 fi
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17404 CFLAGS="$xorg_testset_save_CFLAGS"
17405 fi
17406
17407 found="no"
17408
17409 if test $found = "no" ; then
17410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17412 fi
17413
17414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17416 fi
17417
17418 CFLAGS="$CFLAGS -Wmain"
17419
17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17421 printf %s "checking if $CC supports -Wmain... " >&6; }
17422 cacheid=xorg_cv_cc_flag__Wmain
17423 if eval test \${$cacheid+y}
17424 then :
17425 printf %s "(cached) " >&6
17426 else $as_nop
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 int i;
17430 int
17431 main (void)
17432 {
17433
17434 ;
17435 return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"
17439 then :
17440 eval $cacheid=yes
17441 else $as_nop
17442 eval $cacheid=no
17443 fi
17444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17445 conftest$ac_exeext conftest.$ac_ext
17446 fi
17447
17448
17449 CFLAGS="$xorg_testset_save_CFLAGS"
17450
17451 eval supported=\$$cacheid
17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17453 printf "%s\n" "$supported" >&6; }
17454 if test "$supported" = "yes" ; then
17455 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17456 found="yes"
17457 fi
17458 fi
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474 xorg_testset_save_CFLAGS="$CFLAGS"
17475
17476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17480 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17481 then :
17482 printf %s "(cached) " >&6
17483 else $as_nop
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 int i;
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"
17489 then :
17490 xorg_cv_cc_flag_unknown_warning_option=yes
17491 else $as_nop
17492 xorg_cv_cc_flag_unknown_warning_option=no
17493 fi
17494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17495 fi
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17499 CFLAGS="$xorg_testset_save_CFLAGS"
17500 fi
17501
17502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17505 fi
17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17510 then :
17511 printf %s "(cached) " >&6
17512 else $as_nop
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515 int i;
17516 _ACEOF
17517 if ac_fn_c_try_compile "$LINENO"
17518 then :
17519 xorg_cv_cc_flag_unused_command_line_argument=yes
17520 else $as_nop
17521 xorg_cv_cc_flag_unused_command_line_argument=no
17522 fi
17523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17524 fi
17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17528 CFLAGS="$xorg_testset_save_CFLAGS"
17529 fi
17530
17531 found="no"
17532
17533 if test $found = "no" ; then
17534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17536 fi
17537
17538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17540 fi
17541
17542 CFLAGS="$CFLAGS -Wmissing-braces"
17543
17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17545 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17546 cacheid=xorg_cv_cc_flag__Wmissing_braces
17547 if eval test \${$cacheid+y}
17548 then :
17549 printf %s "(cached) " >&6
17550 else $as_nop
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17553 int i;
17554 int
17555 main (void)
17556 {
17557
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"
17563 then :
17564 eval $cacheid=yes
17565 else $as_nop
17566 eval $cacheid=no
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17569 conftest$ac_exeext conftest.$ac_ext
17570 fi
17571
17572
17573 CFLAGS="$xorg_testset_save_CFLAGS"
17574
17575 eval supported=\$$cacheid
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17577 printf "%s\n" "$supported" >&6; }
17578 if test "$supported" = "yes" ; then
17579 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17580 found="yes"
17581 fi
17582 fi
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598 xorg_testset_save_CFLAGS="$CFLAGS"
17599
17600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17603 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17604 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17605 then :
17606 printf %s "(cached) " >&6
17607 else $as_nop
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 int i;
17611 _ACEOF
17612 if ac_fn_c_try_compile "$LINENO"
17613 then :
17614 xorg_cv_cc_flag_unknown_warning_option=yes
17615 else $as_nop
17616 xorg_cv_cc_flag_unknown_warning_option=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17619 fi
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17623 CFLAGS="$xorg_testset_save_CFLAGS"
17624 fi
17625
17626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17629 fi
17630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17634 then :
17635 printf %s "(cached) " >&6
17636 else $as_nop
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639 int i;
17640 _ACEOF
17641 if ac_fn_c_try_compile "$LINENO"
17642 then :
17643 xorg_cv_cc_flag_unused_command_line_argument=yes
17644 else $as_nop
17645 xorg_cv_cc_flag_unused_command_line_argument=no
17646 fi
17647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17648 fi
17649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17652 CFLAGS="$xorg_testset_save_CFLAGS"
17653 fi
17654
17655 found="no"
17656
17657 if test $found = "no" ; then
17658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17660 fi
17661
17662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17664 fi
17665
17666 CFLAGS="$CFLAGS -Wsequence-point"
17667
17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17669 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17670 cacheid=xorg_cv_cc_flag__Wsequence_point
17671 if eval test \${$cacheid+y}
17672 then :
17673 printf %s "(cached) " >&6
17674 else $as_nop
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677 int i;
17678 int
17679 main (void)
17680 {
17681
17682 ;
17683 return 0;
17684 }
17685 _ACEOF
17686 if ac_fn_c_try_link "$LINENO"
17687 then :
17688 eval $cacheid=yes
17689 else $as_nop
17690 eval $cacheid=no
17691 fi
17692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17693 conftest$ac_exeext conftest.$ac_ext
17694 fi
17695
17696
17697 CFLAGS="$xorg_testset_save_CFLAGS"
17698
17699 eval supported=\$$cacheid
17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17701 printf "%s\n" "$supported" >&6; }
17702 if test "$supported" = "yes" ; then
17703 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17704 found="yes"
17705 fi
17706 fi
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722 xorg_testset_save_CFLAGS="$CFLAGS"
17723
17724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17727 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17728 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17729 then :
17730 printf %s "(cached) " >&6
17731 else $as_nop
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734 int i;
17735 _ACEOF
17736 if ac_fn_c_try_compile "$LINENO"
17737 then :
17738 xorg_cv_cc_flag_unknown_warning_option=yes
17739 else $as_nop
17740 xorg_cv_cc_flag_unknown_warning_option=no
17741 fi
17742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17743 fi
17744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17745 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17747 CFLAGS="$xorg_testset_save_CFLAGS"
17748 fi
17749
17750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17753 fi
17754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17756 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17757 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17758 then :
17759 printf %s "(cached) " >&6
17760 else $as_nop
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17763 int i;
17764 _ACEOF
17765 if ac_fn_c_try_compile "$LINENO"
17766 then :
17767 xorg_cv_cc_flag_unused_command_line_argument=yes
17768 else $as_nop
17769 xorg_cv_cc_flag_unused_command_line_argument=no
17770 fi
17771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17772 fi
17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17776 CFLAGS="$xorg_testset_save_CFLAGS"
17777 fi
17778
17779 found="no"
17780
17781 if test $found = "no" ; then
17782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17784 fi
17785
17786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17788 fi
17789
17790 CFLAGS="$CFLAGS -Wreturn-type"
17791
17792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17793 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17794 cacheid=xorg_cv_cc_flag__Wreturn_type
17795 if eval test \${$cacheid+y}
17796 then :
17797 printf %s "(cached) " >&6
17798 else $as_nop
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801 int i;
17802 int
17803 main (void)
17804 {
17805
17806 ;
17807 return 0;
17808 }
17809 _ACEOF
17810 if ac_fn_c_try_link "$LINENO"
17811 then :
17812 eval $cacheid=yes
17813 else $as_nop
17814 eval $cacheid=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17817 conftest$ac_exeext conftest.$ac_ext
17818 fi
17819
17820
17821 CFLAGS="$xorg_testset_save_CFLAGS"
17822
17823 eval supported=\$$cacheid
17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17825 printf "%s\n" "$supported" >&6; }
17826 if test "$supported" = "yes" ; then
17827 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17828 found="yes"
17829 fi
17830 fi
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846 xorg_testset_save_CFLAGS="$CFLAGS"
17847
17848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17852 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17853 then :
17854 printf %s "(cached) " >&6
17855 else $as_nop
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17858 int i;
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"
17861 then :
17862 xorg_cv_cc_flag_unknown_warning_option=yes
17863 else $as_nop
17864 xorg_cv_cc_flag_unknown_warning_option=no
17865 fi
17866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17867 fi
17868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17871 CFLAGS="$xorg_testset_save_CFLAGS"
17872 fi
17873
17874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17877 fi
17878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17882 then :
17883 printf %s "(cached) " >&6
17884 else $as_nop
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h. */
17887 int i;
17888 _ACEOF
17889 if ac_fn_c_try_compile "$LINENO"
17890 then :
17891 xorg_cv_cc_flag_unused_command_line_argument=yes
17892 else $as_nop
17893 xorg_cv_cc_flag_unused_command_line_argument=no
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17896 fi
17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17900 CFLAGS="$xorg_testset_save_CFLAGS"
17901 fi
17902
17903 found="no"
17904
17905 if test $found = "no" ; then
17906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17908 fi
17909
17910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17912 fi
17913
17914 CFLAGS="$CFLAGS -Wtrigraphs"
17915
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17917 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17918 cacheid=xorg_cv_cc_flag__Wtrigraphs
17919 if eval test \${$cacheid+y}
17920 then :
17921 printf %s "(cached) " >&6
17922 else $as_nop
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17925 int i;
17926 int
17927 main (void)
17928 {
17929
17930 ;
17931 return 0;
17932 }
17933 _ACEOF
17934 if ac_fn_c_try_link "$LINENO"
17935 then :
17936 eval $cacheid=yes
17937 else $as_nop
17938 eval $cacheid=no
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17941 conftest$ac_exeext conftest.$ac_ext
17942 fi
17943
17944
17945 CFLAGS="$xorg_testset_save_CFLAGS"
17946
17947 eval supported=\$$cacheid
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17949 printf "%s\n" "$supported" >&6; }
17950 if test "$supported" = "yes" ; then
17951 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17952 found="yes"
17953 fi
17954 fi
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970 xorg_testset_save_CFLAGS="$CFLAGS"
17971
17972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17975 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17976 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17977 then :
17978 printf %s "(cached) " >&6
17979 else $as_nop
17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17982 int i;
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"
17985 then :
17986 xorg_cv_cc_flag_unknown_warning_option=yes
17987 else $as_nop
17988 xorg_cv_cc_flag_unknown_warning_option=no
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17991 fi
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17995 CFLAGS="$xorg_testset_save_CFLAGS"
17996 fi
17997
17998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001 fi
18002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18006 then :
18007 printf %s "(cached) " >&6
18008 else $as_nop
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18011 int i;
18012 _ACEOF
18013 if ac_fn_c_try_compile "$LINENO"
18014 then :
18015 xorg_cv_cc_flag_unused_command_line_argument=yes
18016 else $as_nop
18017 xorg_cv_cc_flag_unused_command_line_argument=no
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18020 fi
18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18024 CFLAGS="$xorg_testset_save_CFLAGS"
18025 fi
18026
18027 found="no"
18028
18029 if test $found = "no" ; then
18030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18032 fi
18033
18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18036 fi
18037
18038 CFLAGS="$CFLAGS -Warray-bounds"
18039
18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18041 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18042 cacheid=xorg_cv_cc_flag__Warray_bounds
18043 if eval test \${$cacheid+y}
18044 then :
18045 printf %s "(cached) " >&6
18046 else $as_nop
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 int i;
18050 int
18051 main (void)
18052 {
18053
18054 ;
18055 return 0;
18056 }
18057 _ACEOF
18058 if ac_fn_c_try_link "$LINENO"
18059 then :
18060 eval $cacheid=yes
18061 else $as_nop
18062 eval $cacheid=no
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18065 conftest$ac_exeext conftest.$ac_ext
18066 fi
18067
18068
18069 CFLAGS="$xorg_testset_save_CFLAGS"
18070
18071 eval supported=\$$cacheid
18072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18073 printf "%s\n" "$supported" >&6; }
18074 if test "$supported" = "yes" ; then
18075 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18076 found="yes"
18077 fi
18078 fi
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094 xorg_testset_save_CFLAGS="$CFLAGS"
18095
18096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18100 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18101 then :
18102 printf %s "(cached) " >&6
18103 else $as_nop
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18106 int i;
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"
18109 then :
18110 xorg_cv_cc_flag_unknown_warning_option=yes
18111 else $as_nop
18112 xorg_cv_cc_flag_unknown_warning_option=no
18113 fi
18114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18115 fi
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18119 CFLAGS="$xorg_testset_save_CFLAGS"
18120 fi
18121
18122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18125 fi
18126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18130 then :
18131 printf %s "(cached) " >&6
18132 else $as_nop
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18135 int i;
18136 _ACEOF
18137 if ac_fn_c_try_compile "$LINENO"
18138 then :
18139 xorg_cv_cc_flag_unused_command_line_argument=yes
18140 else $as_nop
18141 xorg_cv_cc_flag_unused_command_line_argument=no
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18144 fi
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18148 CFLAGS="$xorg_testset_save_CFLAGS"
18149 fi
18150
18151 found="no"
18152
18153 if test $found = "no" ; then
18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18156 fi
18157
18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18160 fi
18161
18162 CFLAGS="$CFLAGS -Wwrite-strings"
18163
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18165 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18166 cacheid=xorg_cv_cc_flag__Wwrite_strings
18167 if eval test \${$cacheid+y}
18168 then :
18169 printf %s "(cached) " >&6
18170 else $as_nop
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 int i;
18174 int
18175 main (void)
18176 {
18177
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"
18183 then :
18184 eval $cacheid=yes
18185 else $as_nop
18186 eval $cacheid=no
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18189 conftest$ac_exeext conftest.$ac_ext
18190 fi
18191
18192
18193 CFLAGS="$xorg_testset_save_CFLAGS"
18194
18195 eval supported=\$$cacheid
18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18197 printf "%s\n" "$supported" >&6; }
18198 if test "$supported" = "yes" ; then
18199 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18200 found="yes"
18201 fi
18202 fi
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218 xorg_testset_save_CFLAGS="$CFLAGS"
18219
18220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18225 then :
18226 printf %s "(cached) " >&6
18227 else $as_nop
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230 int i;
18231 _ACEOF
18232 if ac_fn_c_try_compile "$LINENO"
18233 then :
18234 xorg_cv_cc_flag_unknown_warning_option=yes
18235 else $as_nop
18236 xorg_cv_cc_flag_unknown_warning_option=no
18237 fi
18238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18239 fi
18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18243 CFLAGS="$xorg_testset_save_CFLAGS"
18244 fi
18245
18246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18249 fi
18250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18254 then :
18255 printf %s "(cached) " >&6
18256 else $as_nop
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18259 int i;
18260 _ACEOF
18261 if ac_fn_c_try_compile "$LINENO"
18262 then :
18263 xorg_cv_cc_flag_unused_command_line_argument=yes
18264 else $as_nop
18265 xorg_cv_cc_flag_unused_command_line_argument=no
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18268 fi
18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18272 CFLAGS="$xorg_testset_save_CFLAGS"
18273 fi
18274
18275 found="no"
18276
18277 if test $found = "no" ; then
18278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18280 fi
18281
18282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18284 fi
18285
18286 CFLAGS="$CFLAGS -Waddress"
18287
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18289 printf %s "checking if $CC supports -Waddress... " >&6; }
18290 cacheid=xorg_cv_cc_flag__Waddress
18291 if eval test \${$cacheid+y}
18292 then :
18293 printf %s "(cached) " >&6
18294 else $as_nop
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297 int i;
18298 int
18299 main (void)
18300 {
18301
18302 ;
18303 return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"
18307 then :
18308 eval $cacheid=yes
18309 else $as_nop
18310 eval $cacheid=no
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18313 conftest$ac_exeext conftest.$ac_ext
18314 fi
18315
18316
18317 CFLAGS="$xorg_testset_save_CFLAGS"
18318
18319 eval supported=\$$cacheid
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18321 printf "%s\n" "$supported" >&6; }
18322 if test "$supported" = "yes" ; then
18323 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18324 found="yes"
18325 fi
18326 fi
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342 xorg_testset_save_CFLAGS="$CFLAGS"
18343
18344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18349 then :
18350 printf %s "(cached) " >&6
18351 else $as_nop
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18354 int i;
18355 _ACEOF
18356 if ac_fn_c_try_compile "$LINENO"
18357 then :
18358 xorg_cv_cc_flag_unknown_warning_option=yes
18359 else $as_nop
18360 xorg_cv_cc_flag_unknown_warning_option=no
18361 fi
18362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18363 fi
18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18367 CFLAGS="$xorg_testset_save_CFLAGS"
18368 fi
18369
18370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18373 fi
18374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18378 then :
18379 printf %s "(cached) " >&6
18380 else $as_nop
18381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h. */
18383 int i;
18384 _ACEOF
18385 if ac_fn_c_try_compile "$LINENO"
18386 then :
18387 xorg_cv_cc_flag_unused_command_line_argument=yes
18388 else $as_nop
18389 xorg_cv_cc_flag_unused_command_line_argument=no
18390 fi
18391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18392 fi
18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18396 CFLAGS="$xorg_testset_save_CFLAGS"
18397 fi
18398
18399 found="no"
18400
18401 if test $found = "no" ; then
18402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18404 fi
18405
18406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18408 fi
18409
18410 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18411
18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18413 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18414 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18415 if eval test \${$cacheid+y}
18416 then :
18417 printf %s "(cached) " >&6
18418 else $as_nop
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18421 int i;
18422 int
18423 main (void)
18424 {
18425
18426 ;
18427 return 0;
18428 }
18429 _ACEOF
18430 if ac_fn_c_try_link "$LINENO"
18431 then :
18432 eval $cacheid=yes
18433 else $as_nop
18434 eval $cacheid=no
18435 fi
18436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18437 conftest$ac_exeext conftest.$ac_ext
18438 fi
18439
18440
18441 CFLAGS="$xorg_testset_save_CFLAGS"
18442
18443 eval supported=\$$cacheid
18444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18445 printf "%s\n" "$supported" >&6; }
18446 if test "$supported" = "yes" ; then
18447 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18448 found="yes"
18449 fi
18450 fi
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466 xorg_testset_save_CFLAGS="$CFLAGS"
18467
18468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18473 then :
18474 printf %s "(cached) " >&6
18475 else $as_nop
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478 int i;
18479 _ACEOF
18480 if ac_fn_c_try_compile "$LINENO"
18481 then :
18482 xorg_cv_cc_flag_unknown_warning_option=yes
18483 else $as_nop
18484 xorg_cv_cc_flag_unknown_warning_option=no
18485 fi
18486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18487 fi
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18491 CFLAGS="$xorg_testset_save_CFLAGS"
18492 fi
18493
18494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18497 fi
18498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18502 then :
18503 printf %s "(cached) " >&6
18504 else $as_nop
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 int i;
18508 _ACEOF
18509 if ac_fn_c_try_compile "$LINENO"
18510 then :
18511 xorg_cv_cc_flag_unused_command_line_argument=yes
18512 else $as_nop
18513 xorg_cv_cc_flag_unused_command_line_argument=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18516 fi
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18520 CFLAGS="$xorg_testset_save_CFLAGS"
18521 fi
18522
18523 found="no"
18524
18525 if test $found = "no" ; then
18526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18528 fi
18529
18530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18532 fi
18533
18534 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18535
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18537 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18538 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18539 if eval test \${$cacheid+y}
18540 then :
18541 printf %s "(cached) " >&6
18542 else $as_nop
18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18545 int i;
18546 int
18547 main (void)
18548 {
18549
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 if ac_fn_c_try_link "$LINENO"
18555 then :
18556 eval $cacheid=yes
18557 else $as_nop
18558 eval $cacheid=no
18559 fi
18560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18561 conftest$ac_exeext conftest.$ac_ext
18562 fi
18563
18564
18565 CFLAGS="$xorg_testset_save_CFLAGS"
18566
18567 eval supported=\$$cacheid
18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18569 printf "%s\n" "$supported" >&6; }
18570 if test "$supported" = "yes" ; then
18571 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18572 found="yes"
18573 fi
18574 fi
18575
18576
18577 fi
18578
18579
18580
18581
18582
18583
18584
18585 CWARNFLAGS="$BASE_CFLAGS"
18586 if test "x$GCC" = xyes ; then
18587 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18588 fi
18589
18590
18591
18592
18593
18594
18595
18596
18597 # Check whether --enable-strict-compilation was given.
18598 if test ${enable_strict_compilation+y}
18599 then :
18600 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18601 else $as_nop
18602 STRICT_COMPILE=no
18603 fi
18604
18605
18606
18607
18608
18609
18610 STRICT_CFLAGS=""
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624 xorg_testset_save_CFLAGS="$CFLAGS"
18625
18626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18631 then :
18632 printf %s "(cached) " >&6
18633 else $as_nop
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18636 int i;
18637 _ACEOF
18638 if ac_fn_c_try_compile "$LINENO"
18639 then :
18640 xorg_cv_cc_flag_unknown_warning_option=yes
18641 else $as_nop
18642 xorg_cv_cc_flag_unknown_warning_option=no
18643 fi
18644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18645 fi
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18649 CFLAGS="$xorg_testset_save_CFLAGS"
18650 fi
18651
18652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18655 fi
18656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18660 then :
18661 printf %s "(cached) " >&6
18662 else $as_nop
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18665 int i;
18666 _ACEOF
18667 if ac_fn_c_try_compile "$LINENO"
18668 then :
18669 xorg_cv_cc_flag_unused_command_line_argument=yes
18670 else $as_nop
18671 xorg_cv_cc_flag_unused_command_line_argument=no
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18674 fi
18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18678 CFLAGS="$xorg_testset_save_CFLAGS"
18679 fi
18680
18681 found="no"
18682
18683 if test $found = "no" ; then
18684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18686 fi
18687
18688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18690 fi
18691
18692 CFLAGS="$CFLAGS -pedantic"
18693
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18695 printf %s "checking if $CC supports -pedantic... " >&6; }
18696 cacheid=xorg_cv_cc_flag__pedantic
18697 if eval test \${$cacheid+y}
18698 then :
18699 printf %s "(cached) " >&6
18700 else $as_nop
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703 int i;
18704 int
18705 main (void)
18706 {
18707
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 if ac_fn_c_try_link "$LINENO"
18713 then :
18714 eval $cacheid=yes
18715 else $as_nop
18716 eval $cacheid=no
18717 fi
18718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18719 conftest$ac_exeext conftest.$ac_ext
18720 fi
18721
18722
18723 CFLAGS="$xorg_testset_save_CFLAGS"
18724
18725 eval supported=\$$cacheid
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18727 printf "%s\n" "$supported" >&6; }
18728 if test "$supported" = "yes" ; then
18729 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18730 found="yes"
18731 fi
18732 fi
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748 xorg_testset_save_CFLAGS="$CFLAGS"
18749
18750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18755 then :
18756 printf %s "(cached) " >&6
18757 else $as_nop
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18760 int i;
18761 _ACEOF
18762 if ac_fn_c_try_compile "$LINENO"
18763 then :
18764 xorg_cv_cc_flag_unknown_warning_option=yes
18765 else $as_nop
18766 xorg_cv_cc_flag_unknown_warning_option=no
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18769 fi
18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18773 CFLAGS="$xorg_testset_save_CFLAGS"
18774 fi
18775
18776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18779 fi
18780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18784 then :
18785 printf %s "(cached) " >&6
18786 else $as_nop
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789 int i;
18790 _ACEOF
18791 if ac_fn_c_try_compile "$LINENO"
18792 then :
18793 xorg_cv_cc_flag_unused_command_line_argument=yes
18794 else $as_nop
18795 xorg_cv_cc_flag_unused_command_line_argument=no
18796 fi
18797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18798 fi
18799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18802 CFLAGS="$xorg_testset_save_CFLAGS"
18803 fi
18804
18805 found="no"
18806
18807 if test $found = "no" ; then
18808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18810 fi
18811
18812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18814 fi
18815
18816 CFLAGS="$CFLAGS -Werror"
18817
18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18819 printf %s "checking if $CC supports -Werror... " >&6; }
18820 cacheid=xorg_cv_cc_flag__Werror
18821 if eval test \${$cacheid+y}
18822 then :
18823 printf %s "(cached) " >&6
18824 else $as_nop
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18827 int i;
18828 int
18829 main (void)
18830 {
18831
18832 ;
18833 return 0;
18834 }
18835 _ACEOF
18836 if ac_fn_c_try_link "$LINENO"
18837 then :
18838 eval $cacheid=yes
18839 else $as_nop
18840 eval $cacheid=no
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18843 conftest$ac_exeext conftest.$ac_ext
18844 fi
18845
18846
18847 CFLAGS="$xorg_testset_save_CFLAGS"
18848
18849 eval supported=\$$cacheid
18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18851 printf "%s\n" "$supported" >&6; }
18852 if test "$supported" = "yes" ; then
18853 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18854 found="yes"
18855 fi
18856 fi
18857
18858 if test $found = "no" ; then
18859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18861 fi
18862
18863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18865 fi
18866
18867 CFLAGS="$CFLAGS -errwarn"
18868
18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18870 printf %s "checking if $CC supports -errwarn... " >&6; }
18871 cacheid=xorg_cv_cc_flag__errwarn
18872 if eval test \${$cacheid+y}
18873 then :
18874 printf %s "(cached) " >&6
18875 else $as_nop
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878 int i;
18879 int
18880 main (void)
18881 {
18882
18883 ;
18884 return 0;
18885 }
18886 _ACEOF
18887 if ac_fn_c_try_link "$LINENO"
18888 then :
18889 eval $cacheid=yes
18890 else $as_nop
18891 eval $cacheid=no
18892 fi
18893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18894 conftest$ac_exeext conftest.$ac_ext
18895 fi
18896
18897
18898 CFLAGS="$xorg_testset_save_CFLAGS"
18899
18900 eval supported=\$$cacheid
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18902 printf "%s\n" "$supported" >&6; }
18903 if test "$supported" = "yes" ; then
18904 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18905 found="yes"
18906 fi
18907 fi
18908
18909
18910
18911 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18912 # activate it with -Werror, so we add it here explicitly.
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926 xorg_testset_save_CFLAGS="$CFLAGS"
18927
18928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18933 then :
18934 printf %s "(cached) " >&6
18935 else $as_nop
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938 int i;
18939 _ACEOF
18940 if ac_fn_c_try_compile "$LINENO"
18941 then :
18942 xorg_cv_cc_flag_unknown_warning_option=yes
18943 else $as_nop
18944 xorg_cv_cc_flag_unknown_warning_option=no
18945 fi
18946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18947 fi
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18951 CFLAGS="$xorg_testset_save_CFLAGS"
18952 fi
18953
18954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957 fi
18958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18962 then :
18963 printf %s "(cached) " >&6
18964 else $as_nop
18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18967 int i;
18968 _ACEOF
18969 if ac_fn_c_try_compile "$LINENO"
18970 then :
18971 xorg_cv_cc_flag_unused_command_line_argument=yes
18972 else $as_nop
18973 xorg_cv_cc_flag_unused_command_line_argument=no
18974 fi
18975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18976 fi
18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18980 CFLAGS="$xorg_testset_save_CFLAGS"
18981 fi
18982
18983 found="no"
18984
18985 if test $found = "no" ; then
18986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18988 fi
18989
18990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18992 fi
18993
18994 CFLAGS="$CFLAGS -Werror=attributes"
18995
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18997 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18998 cacheid=xorg_cv_cc_flag__Werror_attributes
18999 if eval test \${$cacheid+y}
19000 then :
19001 printf %s "(cached) " >&6
19002 else $as_nop
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 int i;
19006 int
19007 main (void)
19008 {
19009
19010 ;
19011 return 0;
19012 }
19013 _ACEOF
19014 if ac_fn_c_try_link "$LINENO"
19015 then :
19016 eval $cacheid=yes
19017 else $as_nop
19018 eval $cacheid=no
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19021 conftest$ac_exeext conftest.$ac_ext
19022 fi
19023
19024
19025 CFLAGS="$xorg_testset_save_CFLAGS"
19026
19027 eval supported=\$$cacheid
19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19029 printf "%s\n" "$supported" >&6; }
19030 if test "$supported" = "yes" ; then
19031 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19032 found="yes"
19033 fi
19034 fi
19035
19036
19037
19038 if test "x$STRICT_COMPILE" = "xyes"; then
19039 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19040 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19041 fi
19042
19043
19044
19045
19046
19047
19048 cat >>confdefs.h <<_ACEOF
19049 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19050 _ACEOF
19051
19052 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19053 if test "x$PVM" = "x"; then
19054 PVM="0"
19055 fi
19056
19057 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19058
19059 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19060 if test "x$PVP" = "x"; then
19061 PVP="0"
19062 fi
19063
19064 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19065
19066
19067
19068 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19069 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19070 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19071 touch \$(top_srcdir)/ChangeLog; \
19072 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19073
19074
19075
19076
19077 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19078 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19079 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19080 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19081 touch \$(top_srcdir)/INSTALL; \
19082 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19083
19084
19085
19086
19087
19088
19089 case $host_os in
19090 solaris*)
19091 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19092 # check for a man page file found in later versions that use
19093 # traditional section numbers instead
19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19095 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19096 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19097 then :
19098 printf %s "(cached) " >&6
19099 else $as_nop
19100 test "$cross_compiling" = yes &&
19101 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19102 if test -r "/usr/share/man/man7/attributes.7"; then
19103 ac_cv_file__usr_share_man_man7_attributes_7=yes
19104 else
19105 ac_cv_file__usr_share_man_man7_attributes_7=no
19106 fi
19107 fi
19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19109 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19110 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19111 then :
19112 SYSV_MAN_SECTIONS=false
19113 else $as_nop
19114 SYSV_MAN_SECTIONS=true
19115 fi
19116
19117 ;;
19118 *) SYSV_MAN_SECTIONS=false ;;
19119 esac
19120
19121 if test x$APP_MAN_SUFFIX = x ; then
19122 APP_MAN_SUFFIX=1
19123 fi
19124 if test x$APP_MAN_DIR = x ; then
19125 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19126 fi
19127
19128 if test x$LIB_MAN_SUFFIX = x ; then
19129 LIB_MAN_SUFFIX=3
19130 fi
19131 if test x$LIB_MAN_DIR = x ; then
19132 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19133 fi
19134
19135 if test x$FILE_MAN_SUFFIX = x ; then
19136 case $SYSV_MAN_SECTIONS in
19137 true) FILE_MAN_SUFFIX=4 ;;
19138 *) FILE_MAN_SUFFIX=5 ;;
19139 esac
19140 fi
19141 if test x$FILE_MAN_DIR = x ; then
19142 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19143 fi
19144
19145 if test x$MISC_MAN_SUFFIX = x ; then
19146 case $SYSV_MAN_SECTIONS in
19147 true) MISC_MAN_SUFFIX=5 ;;
19148 *) MISC_MAN_SUFFIX=7 ;;
19149 esac
19150 fi
19151 if test x$MISC_MAN_DIR = x ; then
19152 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19153 fi
19154
19155 if test x$DRIVER_MAN_SUFFIX = x ; then
19156 case $SYSV_MAN_SECTIONS in
19157 true) DRIVER_MAN_SUFFIX=7 ;;
19158 *) DRIVER_MAN_SUFFIX=4 ;;
19159 esac
19160 fi
19161 if test x$DRIVER_MAN_DIR = x ; then
19162 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19163 fi
19164
19165 if test x$ADMIN_MAN_SUFFIX = x ; then
19166 case $SYSV_MAN_SECTIONS in
19167 true) ADMIN_MAN_SUFFIX=1m ;;
19168 *) ADMIN_MAN_SUFFIX=8 ;;
19169 esac
19170 fi
19171 if test x$ADMIN_MAN_DIR = x ; then
19172 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19173 fi
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189 XORG_MAN_PAGE="X Version 11"
19190
19191 MAN_SUBSTS="\
19192 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19193 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19194 -e 's|__xservername__|Xorg|g' \
19195 -e 's|__xconfigfile__|xorg.conf|g' \
19196 -e 's|__projectroot__|\$(prefix)|g' \
19197 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19198 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19199 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19200 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19201 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19202 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19203 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19204
19205
19206
19207 # Check whether --enable-silent-rules was given.
19208 if test ${enable_silent_rules+y}
19209 then :
19210 enableval=$enable_silent_rules;
19211 fi
19212
19213 case $enable_silent_rules in # (((
19214 yes) AM_DEFAULT_VERBOSITY=0;;
19215 no) AM_DEFAULT_VERBOSITY=1;;
19216 *) AM_DEFAULT_VERBOSITY=0;;
19217 esac
19218 am_make=${MAKE-make}
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19220 printf %s "checking whether $am_make supports nested variables... " >&6; }
19221 if test ${am_cv_make_support_nested_variables+y}
19222 then :
19223 printf %s "(cached) " >&6
19224 else $as_nop
19225 if printf "%s\n" 'TRUE=$(BAR$(V))
19226 BAR0=false
19227 BAR1=true
19228 V=1
19229 am__doit:
19230 @$(TRUE)
19231 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19232 am_cv_make_support_nested_variables=yes
19233 else
19234 am_cv_make_support_nested_variables=no
19235 fi
19236 fi
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19238 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19239 if test $am_cv_make_support_nested_variables = yes; then
19240 AM_V='$(V)'
19241 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19242 else
19243 AM_V=$AM_DEFAULT_VERBOSITY
19244 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19245 fi
19246 AM_BACKSLASH='\'
19247
19248
19249
19250 # Check whether --enable-malloc0returnsnull was given.
19251 if test ${enable_malloc0returnsnull+y}
19252 then :
19253 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19254 else $as_nop
19255 MALLOC_ZERO_RETURNS_NULL=auto
19256 fi
19257
19258
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19260 printf %s "checking whether malloc(0) returns NULL... " >&6; }
19261 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19262 if test ${xorg_cv_malloc0_returns_null+y}
19263 then :
19264 printf %s "(cached) " >&6
19265 else $as_nop
19266 if test "$cross_compiling" = yes
19267 then :
19268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19270 as_fn_error $? "cannot run test program while cross compiling
19271 See \`config.log' for more details" "$LINENO" 5; }
19272 else $as_nop
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275
19276 #include <stdlib.h>
19277
19278 int
19279 main (void)
19280 {
19281
19282 char *m0, *r0, *c0, *p;
19283 m0 = malloc(0);
19284 p = malloc(10);
19285 r0 = realloc(p,0);
19286 c0 = calloc(0,10);
19287 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19288
19289 ;
19290 return 0;
19291 }
19292 _ACEOF
19293 if ac_fn_c_try_run "$LINENO"
19294 then :
19295 xorg_cv_malloc0_returns_null=yes
19296 else $as_nop
19297 xorg_cv_malloc0_returns_null=no
19298 fi
19299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19300 conftest.$ac_objext conftest.beam conftest.$ac_ext
19301 fi
19302
19303 fi
19304
19305 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19306 fi
19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19308 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19309
19310 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19311 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19312 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19313 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19314 else
19315 MALLOC_ZERO_CFLAGS=""
19316 XMALLOC_ZERO_CFLAGS=""
19317 XTMALLOC_ZERO_CFLAGS=""
19318 fi
19319
19320
19321
19322
19323
19324
19325 # Check render configuration, strip extra digits from package version to
19326 # find the required protocol version
19327 if test "$VERSION" = "" ; then
19328 VERSION=$PACKAGE_VERSION;
19329 fi
19330 RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19331
19332
19333 # Obtain compiler/linker options for dependencies
19334
19335 pkg_failed=no
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
19337 printf %s "checking for RENDER... " >&6; }
19338
19339 if test -n "$RENDER_CFLAGS"; then
19340 pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
19341 elif test -n "$PKG_CONFIG"; then
19342 if test -n "$PKG_CONFIG" && \
19343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
19344 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
19345 ac_status=$?
19346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19347 test $ac_status = 0; }; then
19348 pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
19349 test "x$?" != "x0" && pkg_failed=yes
19350 else
19351 pkg_failed=yes
19352 fi
19353 else
19354 pkg_failed=untried
19355 fi
19356 if test -n "$RENDER_LIBS"; then
19357 pkg_cv_RENDER_LIBS="$RENDER_LIBS"
19358 elif test -n "$PKG_CONFIG"; then
19359 if test -n "$PKG_CONFIG" && \
19360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
19361 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
19362 ac_status=$?
19363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19364 test $ac_status = 0; }; then
19365 pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
19366 test "x$?" != "x0" && pkg_failed=yes
19367 else
19368 pkg_failed=yes
19369 fi
19370 else
19371 pkg_failed=untried
19372 fi
19373
19374
19375
19376 if test $pkg_failed = yes; then
19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 printf "%s\n" "no" >&6; }
19379
19380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19381 _pkg_short_errors_supported=yes
19382 else
19383 _pkg_short_errors_supported=no
19384 fi
19385 if test $_pkg_short_errors_supported = yes; then
19386 RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
19387 else
19388 RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
19389 fi
19390 # Put the nasty error message in config.log where it belongs
19391 echo "$RENDER_PKG_ERRORS" >&5
19392
19393 as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met:
19394
19395 $RENDER_PKG_ERRORS
19396
19397 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19398 installed software in a non-standard prefix.
19399
19400 Alternatively, you may set the environment variables RENDER_CFLAGS
19401 and RENDER_LIBS to avoid the need to call pkg-config.
19402 See the pkg-config man page for more details." "$LINENO" 5
19403 elif test $pkg_failed = untried; then
19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405 printf "%s\n" "no" >&6; }
19406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19408 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19409 is in your PATH or set the PKG_CONFIG environment variable to the full
19410 path to pkg-config.
19411
19412 Alternatively, you may set the environment variables RENDER_CFLAGS
19413 and RENDER_LIBS to avoid the need to call pkg-config.
19414 See the pkg-config man page for more details.
19415
19416 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19417 See \`config.log' for more details" "$LINENO" 5; }
19418 else
19419 RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
19420 RENDER_LIBS=$pkg_cv_RENDER_LIBS
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422 printf "%s\n" "yes" >&6; }
19423
19424 fi
19425
19426 ac_config_files="$ac_config_files Makefile src/Makefile Doxyfile xrender.pc"
19427
19428 cat >confcache <<\_ACEOF
19429 # This file is a shell script that caches the results of configure
19430 # tests run on this system so they can be shared between configure
19431 # scripts and configure runs, see configure's option --config-cache.
19432 # It is not useful on other systems. If it contains results you don't
19433 # want to keep, you may remove or edit it.
19434 #
19435 # config.status only pays attention to the cache file if you give it
19436 # the --recheck option to rerun configure.
19437 #
19438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19440 # following values.
19441
19442 _ACEOF
19443
19444 # The following way of writing the cache mishandles newlines in values,
19445 # but we know of no workaround that is simple, portable, and efficient.
19446 # So, we kill variables containing newlines.
19447 # Ultrix sh set writes to stderr and can't be redirected directly,
19448 # and sets the high bit in the cache file unless we assign to the vars.
19449 (
19450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19451 eval ac_val=\$$ac_var
19452 case $ac_val in #(
19453 *${as_nl}*)
19454 case $ac_var in #(
19455 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19456 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19457 esac
19458 case $ac_var in #(
19459 _ | IFS | as_nl) ;; #(
19460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19461 *) { eval $ac_var=; unset $ac_var;} ;;
19462 esac ;;
19463 esac
19464 done
19465
19466 (set) 2>&1 |
19467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19468 *${as_nl}ac_space=\ *)
19469 # `set' does not quote correctly, so add quotes: double-quote
19470 # substitution turns \\\\ into \\, and sed turns \\ into \.
19471 sed -n \
19472 "s/'/'\\\\''/g;
19473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19474 ;; #(
19475 *)
19476 # `set' quotes correctly as required by POSIX, so do not add quotes.
19477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19478 ;;
19479 esac |
19480 sort
19481 ) |
19482 sed '
19483 /^ac_cv_env_/b end
19484 t clear
19485 :clear
19486 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19487 t end
19488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19489 :end' >>confcache
19490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19491 if test -w "$cache_file"; then
19492 if test "x$cache_file" != "x/dev/null"; then
19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19494 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19495 if test ! -f "$cache_file" || test -h "$cache_file"; then
19496 cat confcache >"$cache_file"
19497 else
19498 case $cache_file in #(
19499 */* | ?:*)
19500 mv -f confcache "$cache_file"$$ &&
19501 mv -f "$cache_file"$$ "$cache_file" ;; #(
19502 *)
19503 mv -f confcache "$cache_file" ;;
19504 esac
19505 fi
19506 fi
19507 else
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19509 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19510 fi
19511 fi
19512 rm -f confcache
19513
19514 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19515 # Let make expand exec_prefix.
19516 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19517
19518 DEFS=-DHAVE_CONFIG_H
19519
19520 ac_libobjs=
19521 ac_ltlibobjs=
19522 U=
19523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19524 # 1. Remove the extension, and $U if already installed.
19525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19526 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19528 # will be set to the directory where LIBOBJS objects are built.
19529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19531 done
19532 LIBOBJS=$ac_libobjs
19533
19534 LTLIBOBJS=$ac_ltlibobjs
19535
19536
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19538 printf %s "checking that generated files are newer than configure... " >&6; }
19539 if test -n "$am_sleep_pid"; then
19540 # Hide warnings about reused PIDs.
19541 wait $am_sleep_pid 2>/dev/null
19542 fi
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19544 printf "%s\n" "done" >&6; }
19545 if test -n "$EXEEXT"; then
19546 am__EXEEXT_TRUE=
19547 am__EXEEXT_FALSE='#'
19548 else
19549 am__EXEEXT_TRUE='#'
19550 am__EXEEXT_FALSE=
19551 fi
19552
19553 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19554 as_fn_error $? "conditional \"AMDEP\" was never defined.
19555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19556 fi
19557 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19558 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560 fi
19561
19562 : "${CONFIG_STATUS=./config.status}"
19563 ac_write_fail=0
19564 ac_clean_files_save=$ac_clean_files
19565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19567 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19568 as_write_fail=0
19569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19570 #! $SHELL
19571 # Generated by $as_me.
19572 # Run this file to recreate the current configuration.
19573 # Compiler output produced by configure, useful for debugging
19574 # configure, is in config.log if it exists.
19575
19576 debug=false
19577 ac_cs_recheck=false
19578 ac_cs_silent=false
19579
19580 SHELL=\${CONFIG_SHELL-$SHELL}
19581 export SHELL
19582 _ASEOF
19583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19584 ## -------------------- ##
19585 ## M4sh Initialization. ##
19586 ## -------------------- ##
19587
19588 # Be more Bourne compatible
19589 DUALCASE=1; export DUALCASE # for MKS sh
19590 as_nop=:
19591 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19592 then :
19593 emulate sh
19594 NULLCMD=:
19595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19596 # is contrary to our usage. Disable this feature.
19597 alias -g '${1+"$@"}'='"$@"'
19598 setopt NO_GLOB_SUBST
19599 else $as_nop
19600 case `(set -o) 2>/dev/null` in #(
19601 *posix*) :
19602 set -o posix ;; #(
19603 *) :
19604 ;;
19605 esac
19606 fi
19607
19608
19609
19610 # Reset variables that may have inherited troublesome values from
19611 # the environment.
19612
19613 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19614 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19615 # side effect of setting IFS to empty, thus disabling word splitting.)
19616 # Quoting is to prevent editors from complaining about space-tab.
19617 as_nl='
19618 '
19619 export as_nl
19620 IFS=" "" $as_nl"
19621
19622 PS1='$ '
19623 PS2='> '
19624 PS4='+ '
19625
19626 # Ensure predictable behavior from utilities with locale-dependent output.
19627 LC_ALL=C
19628 export LC_ALL
19629 LANGUAGE=C
19630 export LANGUAGE
19631
19632 # We cannot yet rely on "unset" to work, but we need these variables
19633 # to be unset--not just set to an empty or harmless value--now, to
19634 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19635 # also avoids known problems related to "unset" and subshell syntax
19636 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19637 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19638 do eval test \${$as_var+y} \
19639 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19640 done
19641
19642 # Ensure that fds 0, 1, and 2 are open.
19643 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19644 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19645 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19646
19647 # The user is always right.
19648 if ${PATH_SEPARATOR+false} :; then
19649 PATH_SEPARATOR=:
19650 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19651 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19652 PATH_SEPARATOR=';'
19653 }
19654 fi
19655
19656
19657 # Find who we are. Look in the path if we contain no directory separator.
19658 as_myself=
19659 case $0 in #((
19660 *[\\/]* ) as_myself=$0 ;;
19661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19662 for as_dir in $PATH
19663 do
19664 IFS=$as_save_IFS
19665 case $as_dir in #(((
19666 '') as_dir=./ ;;
19667 */) ;;
19668 *) as_dir=$as_dir/ ;;
19669 esac
19670 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19671 done
19672 IFS=$as_save_IFS
19673
19674 ;;
19675 esac
19676 # We did not find ourselves, most probably we were run as `sh COMMAND'
19677 # in which case we are not to be found in the path.
19678 if test "x$as_myself" = x; then
19679 as_myself=$0
19680 fi
19681 if test ! -f "$as_myself"; then
19682 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19683 exit 1
19684 fi
19685
19686
19687
19688 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19689 # ----------------------------------------
19690 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19691 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19692 # script with STATUS, using 1 if that was 0.
19693 as_fn_error ()
19694 {
19695 as_status=$1; test $as_status -eq 0 && as_status=1
19696 if test "$4"; then
19697 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19699 fi
19700 printf "%s\n" "$as_me: error: $2" >&2
19701 as_fn_exit $as_status
19702 } # as_fn_error
19703
19704
19705
19706 # as_fn_set_status STATUS
19707 # -----------------------
19708 # Set $? to STATUS, without forking.
19709 as_fn_set_status ()
19710 {
19711 return $1
19712 } # as_fn_set_status
19713
19714 # as_fn_exit STATUS
19715 # -----------------
19716 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19717 as_fn_exit ()
19718 {
19719 set +e
19720 as_fn_set_status $1
19721 exit $1
19722 } # as_fn_exit
19723
19724 # as_fn_unset VAR
19725 # ---------------
19726 # Portably unset VAR.
19727 as_fn_unset ()
19728 {
19729 { eval $1=; unset $1;}
19730 }
19731 as_unset=as_fn_unset
19732
19733 # as_fn_append VAR VALUE
19734 # ----------------------
19735 # Append the text in VALUE to the end of the definition contained in VAR. Take
19736 # advantage of any shell optimizations that allow amortized linear growth over
19737 # repeated appends, instead of the typical quadratic growth present in naive
19738 # implementations.
19739 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19740 then :
19741 eval 'as_fn_append ()
19742 {
19743 eval $1+=\$2
19744 }'
19745 else $as_nop
19746 as_fn_append ()
19747 {
19748 eval $1=\$$1\$2
19749 }
19750 fi # as_fn_append
19751
19752 # as_fn_arith ARG...
19753 # ------------------
19754 # Perform arithmetic evaluation on the ARGs, and store the result in the
19755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19756 # must be portable across $(()) and expr.
19757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19758 then :
19759 eval 'as_fn_arith ()
19760 {
19761 as_val=$(( $* ))
19762 }'
19763 else $as_nop
19764 as_fn_arith ()
19765 {
19766 as_val=`expr "$@" || test $? -eq 1`
19767 }
19768 fi # as_fn_arith
19769
19770
19771 if expr a : '\(a\)' >/dev/null 2>&1 &&
19772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19773 as_expr=expr
19774 else
19775 as_expr=false
19776 fi
19777
19778 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19779 as_basename=basename
19780 else
19781 as_basename=false
19782 fi
19783
19784 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19785 as_dirname=dirname
19786 else
19787 as_dirname=false
19788 fi
19789
19790 as_me=`$as_basename -- "$0" ||
19791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19792 X"$0" : 'X\(//\)$' \| \
19793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19794 printf "%s\n" X/"$0" |
19795 sed '/^.*\/\([^/][^/]*\)\/*$/{
19796 s//\1/
19797 q
19798 }
19799 /^X\/\(\/\/\)$/{
19800 s//\1/
19801 q
19802 }
19803 /^X\/\(\/\).*/{
19804 s//\1/
19805 q
19806 }
19807 s/.*/./; q'`
19808
19809 # Avoid depending upon Character Ranges.
19810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19813 as_cr_digits='0123456789'
19814 as_cr_alnum=$as_cr_Letters$as_cr_digits
19815
19816
19817 # Determine whether it's possible to make 'echo' print without a newline.
19818 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19819 # for compatibility with existing Makefiles.
19820 ECHO_C= ECHO_N= ECHO_T=
19821 case `echo -n x` in #(((((
19822 -n*)
19823 case `echo 'xy\c'` in
19824 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19825 xy) ECHO_C='\c';;
19826 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19827 ECHO_T=' ';;
19828 esac;;
19829 *)
19830 ECHO_N='-n';;
19831 esac
19832
19833 # For backward compatibility with old third-party macros, we provide
19834 # the shell variables $as_echo and $as_echo_n. New code should use
19835 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19836 as_echo='printf %s\n'
19837 as_echo_n='printf %s'
19838
19839 rm -f conf$$ conf$$.exe conf$$.file
19840 if test -d conf$$.dir; then
19841 rm -f conf$$.dir/conf$$.file
19842 else
19843 rm -f conf$$.dir
19844 mkdir conf$$.dir 2>/dev/null
19845 fi
19846 if (echo >conf$$.file) 2>/dev/null; then
19847 if ln -s conf$$.file conf$$ 2>/dev/null; then
19848 as_ln_s='ln -s'
19849 # ... but there are two gotchas:
19850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19852 # In both cases, we have to default to `cp -pR'.
19853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19854 as_ln_s='cp -pR'
19855 elif ln conf$$.file conf$$ 2>/dev/null; then
19856 as_ln_s=ln
19857 else
19858 as_ln_s='cp -pR'
19859 fi
19860 else
19861 as_ln_s='cp -pR'
19862 fi
19863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19864 rmdir conf$$.dir 2>/dev/null
19865
19866
19867 # as_fn_mkdir_p
19868 # -------------
19869 # Create "$as_dir" as a directory, including parents if necessary.
19870 as_fn_mkdir_p ()
19871 {
19872
19873 case $as_dir in #(
19874 -*) as_dir=./$as_dir;;
19875 esac
19876 test -d "$as_dir" || eval $as_mkdir_p || {
19877 as_dirs=
19878 while :; do
19879 case $as_dir in #(
19880 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19881 *) as_qdir=$as_dir;;
19882 esac
19883 as_dirs="'$as_qdir' $as_dirs"
19884 as_dir=`$as_dirname -- "$as_dir" ||
19885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19886 X"$as_dir" : 'X\(//\)[^/]' \| \
19887 X"$as_dir" : 'X\(//\)$' \| \
19888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19889 printf "%s\n" X"$as_dir" |
19890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19891 s//\1/
19892 q
19893 }
19894 /^X\(\/\/\)[^/].*/{
19895 s//\1/
19896 q
19897 }
19898 /^X\(\/\/\)$/{
19899 s//\1/
19900 q
19901 }
19902 /^X\(\/\).*/{
19903 s//\1/
19904 q
19905 }
19906 s/.*/./; q'`
19907 test -d "$as_dir" && break
19908 done
19909 test -z "$as_dirs" || eval "mkdir $as_dirs"
19910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19911
19912
19913 } # as_fn_mkdir_p
19914 if mkdir -p . 2>/dev/null; then
19915 as_mkdir_p='mkdir -p "$as_dir"'
19916 else
19917 test -d ./-p && rmdir ./-p
19918 as_mkdir_p=false
19919 fi
19920
19921
19922 # as_fn_executable_p FILE
19923 # -----------------------
19924 # Test if FILE is an executable regular file.
19925 as_fn_executable_p ()
19926 {
19927 test -f "$1" && test -x "$1"
19928 } # as_fn_executable_p
19929 as_test_x='test -x'
19930 as_executable_p=as_fn_executable_p
19931
19932 # Sed expression to map a string onto a valid CPP name.
19933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19934
19935 # Sed expression to map a string onto a valid variable name.
19936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19937
19938
19939 exec 6>&1
19940 ## ----------------------------------- ##
19941 ## Main body of $CONFIG_STATUS script. ##
19942 ## ----------------------------------- ##
19943 _ASEOF
19944 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19945
19946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19947 # Save the log message, to keep $0 and so on meaningful, and to
19948 # report actual input values of CONFIG_FILES etc. instead of their
19949 # values after options handling.
19950 ac_log="
19951 This file was extended by libXrender $as_me 0.9.11, which was
19952 generated by GNU Autoconf 2.71. Invocation command line was
19953
19954 CONFIG_FILES = $CONFIG_FILES
19955 CONFIG_HEADERS = $CONFIG_HEADERS
19956 CONFIG_LINKS = $CONFIG_LINKS
19957 CONFIG_COMMANDS = $CONFIG_COMMANDS
19958 $ $0 $@
19959
19960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19961 "
19962
19963 _ACEOF
19964
19965 case $ac_config_files in *"
19966 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19967 esac
19968
19969 case $ac_config_headers in *"
19970 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19971 esac
19972
19973
19974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19975 # Files that config.status was made for.
19976 config_files="$ac_config_files"
19977 config_headers="$ac_config_headers"
19978 config_commands="$ac_config_commands"
19979
19980 _ACEOF
19981
19982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983 ac_cs_usage="\
19984 \`$as_me' instantiates files and other configuration actions
19985 from templates according to the current configuration. Unless the files
19986 and actions are specified as TAGs, all are instantiated by default.
19987
19988 Usage: $0 [OPTION]... [TAG]...
19989
19990 -h, --help print this help, then exit
19991 -V, --version print version number and configuration settings, then exit
19992 --config print configuration, then exit
19993 -q, --quiet, --silent
19994 do not print progress messages
19995 -d, --debug don't remove temporary files
19996 --recheck update $as_me by reconfiguring in the same conditions
19997 --file=FILE[:TEMPLATE]
19998 instantiate the configuration file FILE
19999 --header=FILE[:TEMPLATE]
20000 instantiate the configuration header FILE
20001
20002 Configuration files:
20003 $config_files
20004
20005 Configuration headers:
20006 $config_headers
20007
20008 Configuration commands:
20009 $config_commands
20010
20011 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>."
20012
20013 _ACEOF
20014 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20015 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20017 ac_cs_config='$ac_cs_config_escaped'
20018 ac_cs_version="\\
20019 libXrender config.status 0.9.11
20020 configured by $0, generated by GNU Autoconf 2.71,
20021 with options \\"\$ac_cs_config\\"
20022
20023 Copyright (C) 2021 Free Software Foundation, Inc.
20024 This config.status script is free software; the Free Software Foundation
20025 gives unlimited permission to copy, distribute and modify it."
20026
20027 ac_pwd='$ac_pwd'
20028 srcdir='$srcdir'
20029 INSTALL='$INSTALL'
20030 MKDIR_P='$MKDIR_P'
20031 AWK='$AWK'
20032 test -n "\$AWK" || AWK=awk
20033 _ACEOF
20034
20035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20036 # The default lists apply if the user does not specify any file.
20037 ac_need_defaults=:
20038 while test $# != 0
20039 do
20040 case $1 in
20041 --*=?*)
20042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20044 ac_shift=:
20045 ;;
20046 --*=)
20047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20048 ac_optarg=
20049 ac_shift=:
20050 ;;
20051 *)
20052 ac_option=$1
20053 ac_optarg=$2
20054 ac_shift=shift
20055 ;;
20056 esac
20057
20058 case $ac_option in
20059 # Handling of the options.
20060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20061 ac_cs_recheck=: ;;
20062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20063 printf "%s\n" "$ac_cs_version"; exit ;;
20064 --config | --confi | --conf | --con | --co | --c )
20065 printf "%s\n" "$ac_cs_config"; exit ;;
20066 --debug | --debu | --deb | --de | --d | -d )
20067 debug=: ;;
20068 --file | --fil | --fi | --f )
20069 $ac_shift
20070 case $ac_optarg in
20071 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20072 '') as_fn_error $? "missing file argument" ;;
20073 esac
20074 as_fn_append CONFIG_FILES " '$ac_optarg'"
20075 ac_need_defaults=false;;
20076 --header | --heade | --head | --hea )
20077 $ac_shift
20078 case $ac_optarg in
20079 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20080 esac
20081 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20082 ac_need_defaults=false;;
20083 --he | --h)
20084 # Conflict between --help and --header
20085 as_fn_error $? "ambiguous option: \`$1'
20086 Try \`$0 --help' for more information.";;
20087 --help | --hel | -h )
20088 printf "%s\n" "$ac_cs_usage"; exit ;;
20089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20091 ac_cs_silent=: ;;
20092
20093 # This is an error.
20094 -*) as_fn_error $? "unrecognized option: \`$1'
20095 Try \`$0 --help' for more information." ;;
20096
20097 *) as_fn_append ac_config_targets " $1"
20098 ac_need_defaults=false ;;
20099
20100 esac
20101 shift
20102 done
20103
20104 ac_configure_extra_args=
20105
20106 if $ac_cs_silent; then
20107 exec 6>/dev/null
20108 ac_configure_extra_args="$ac_configure_extra_args --silent"
20109 fi
20110
20111 _ACEOF
20112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113 if \$ac_cs_recheck; then
20114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20115 shift
20116 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20117 CONFIG_SHELL='$SHELL'
20118 export CONFIG_SHELL
20119 exec "\$@"
20120 fi
20121
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20124 exec 5>>config.log
20125 {
20126 echo
20127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20128 ## Running $as_me. ##
20129 _ASBOX
20130 printf "%s\n" "$ac_log"
20131 } >&5
20132
20133 _ACEOF
20134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135 #
20136 # INIT-COMMANDS
20137 #
20138 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20139
20140
20141 # The HP-UX ksh and POSIX shell print the target directory to stdout
20142 # if CDPATH is set.
20143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20144
20145 sed_quote_subst='$sed_quote_subst'
20146 double_quote_subst='$double_quote_subst'
20147 delay_variable_subst='$delay_variable_subst'
20148 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20149 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20150 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20151 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20152 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20153 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20154 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20155 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20156 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20157 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20158 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20159 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20160 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20161 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20162 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20163 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20164 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20165 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20166 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20167 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20168 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20169 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20170 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20171 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20172 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20173 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20174 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20175 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20176 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20177 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20178 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20179 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20180 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20181 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20182 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20183 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20184 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20185 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20186 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20187 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20188 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20189 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20190 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20191 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20192 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20193 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20194 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20195 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20196 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20197 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20198 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20199 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20200 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20201 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20202 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20203 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20204 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20205 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20206 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20207 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20208 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"`'
20209 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20210 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20211 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20212 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20213 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20214 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20215 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20217 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20218 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20219 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20220 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20221 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20222 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20223 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20224 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20225 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20226 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20227 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20228 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20229 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20230 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20231 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20232 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20233 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20234 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20235 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20236 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20237 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20238 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20239 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20240 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20241 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20242 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20243 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20244 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20245 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20246 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20247 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20248 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20249 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20250 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20251 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20252 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20258 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20259 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20260 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20261 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20262 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20263 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20264 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20265 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20266 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20267 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20268 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20269 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20270 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20271 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20272 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20273 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20274 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20275 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20276 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20277 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20278 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20279 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20280 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20281 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20282 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20283 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20284 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20285
20286 LTCC='$LTCC'
20287 LTCFLAGS='$LTCFLAGS'
20288 compiler='$compiler_DEFAULT'
20289
20290 # A function that is used when there is no print builtin or printf.
20291 func_fallback_echo ()
20292 {
20293 eval 'cat <<_LTECHO_EOF
20294 \$1
20295 _LTECHO_EOF'
20296 }
20297
20298 # Quote evaled strings.
20299 for var in SHELL \
20300 ECHO \
20301 PATH_SEPARATOR \
20302 SED \
20303 GREP \
20304 EGREP \
20305 FGREP \
20306 LD \
20307 NM \
20308 LN_S \
20309 lt_SP2NL \
20310 lt_NL2SP \
20311 reload_flag \
20312 FILECMD \
20313 OBJDUMP \
20314 deplibs_check_method \
20315 file_magic_cmd \
20316 file_magic_glob \
20317 want_nocaseglob \
20318 DLLTOOL \
20319 sharedlib_from_linklib_cmd \
20320 AR \
20321 archiver_list_spec \
20322 STRIP \
20323 RANLIB \
20324 CC \
20325 CFLAGS \
20326 compiler \
20327 lt_cv_sys_global_symbol_pipe \
20328 lt_cv_sys_global_symbol_to_cdecl \
20329 lt_cv_sys_global_symbol_to_import \
20330 lt_cv_sys_global_symbol_to_c_name_address \
20331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20332 lt_cv_nm_interface \
20333 nm_file_list_spec \
20334 lt_cv_truncate_bin \
20335 lt_prog_compiler_no_builtin_flag \
20336 lt_prog_compiler_pic \
20337 lt_prog_compiler_wl \
20338 lt_prog_compiler_static \
20339 lt_cv_prog_compiler_c_o \
20340 need_locks \
20341 MANIFEST_TOOL \
20342 DSYMUTIL \
20343 NMEDIT \
20344 LIPO \
20345 OTOOL \
20346 OTOOL64 \
20347 shrext_cmds \
20348 export_dynamic_flag_spec \
20349 whole_archive_flag_spec \
20350 compiler_needs_object \
20351 with_gnu_ld \
20352 allow_undefined_flag \
20353 no_undefined_flag \
20354 hardcode_libdir_flag_spec \
20355 hardcode_libdir_separator \
20356 exclude_expsyms \
20357 include_expsyms \
20358 file_list_spec \
20359 variables_saved_for_relink \
20360 libname_spec \
20361 library_names_spec \
20362 soname_spec \
20363 install_override_mode \
20364 finish_eval \
20365 old_striplib \
20366 striplib; do
20367 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20368 *[\\\\\\\`\\"\\\$]*)
20369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20370 ;;
20371 *)
20372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20373 ;;
20374 esac
20375 done
20376
20377 # Double-quote double-evaled strings.
20378 for var in reload_cmds \
20379 old_postinstall_cmds \
20380 old_postuninstall_cmds \
20381 old_archive_cmds \
20382 extract_expsyms_cmds \
20383 old_archive_from_new_cmds \
20384 old_archive_from_expsyms_cmds \
20385 archive_cmds \
20386 archive_expsym_cmds \
20387 module_cmds \
20388 module_expsym_cmds \
20389 export_symbols_cmds \
20390 prelink_cmds \
20391 postlink_cmds \
20392 postinstall_cmds \
20393 postuninstall_cmds \
20394 finish_cmds \
20395 sys_lib_search_path_spec \
20396 configure_time_dlsearch_path \
20397 configure_time_lt_sys_library_path; do
20398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20399 *[\\\\\\\`\\"\\\$]*)
20400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20401 ;;
20402 *)
20403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20404 ;;
20405 esac
20406 done
20407
20408 ac_aux_dir='$ac_aux_dir'
20409
20410 # See if we are running on zsh, and set the options that allow our
20411 # commands through without removal of \ escapes INIT.
20412 if test -n "\${ZSH_VERSION+set}"; then
20413 setopt NO_GLOB_SUBST
20414 fi
20415
20416
20417 PACKAGE='$PACKAGE'
20418 VERSION='$VERSION'
20419 RM='$RM'
20420 ofile='$ofile'
20421
20422
20423
20424
20425 _ACEOF
20426
20427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20428
20429 # Handling of arguments.
20430 for ac_config_target in $ac_config_targets
20431 do
20432 case $ac_config_target in
20433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20435 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20436 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20437 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20438 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20439 "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
20440
20441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20442 esac
20443 done
20444
20445
20446 # If the user did not use the arguments to specify the items to instantiate,
20447 # then the envvar interface is used. Set only those that are not.
20448 # We use the long form for the default assignment because of an extremely
20449 # bizarre bug on SunOS 4.1.3.
20450 if $ac_need_defaults; then
20451 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20452 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20453 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20454 fi
20455
20456 # Have a temporary directory for convenience. Make it in the build tree
20457 # simply because there is no reason against having it here, and in addition,
20458 # creating and moving files from /tmp can sometimes cause problems.
20459 # Hook for its removal unless debugging.
20460 # Note that there is a small window in which the directory will not be cleaned:
20461 # after its creation but before its name has been assigned to `$tmp'.
20462 $debug ||
20463 {
20464 tmp= ac_tmp=
20465 trap 'exit_status=$?
20466 : "${ac_tmp:=$tmp}"
20467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20468 ' 0
20469 trap 'as_fn_exit 1' 1 2 13 15
20470 }
20471 # Create a (secure) tmp directory for tmp files.
20472
20473 {
20474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20475 test -d "$tmp"
20476 } ||
20477 {
20478 tmp=./conf$$-$RANDOM
20479 (umask 077 && mkdir "$tmp")
20480 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20481 ac_tmp=$tmp
20482
20483 # Set up the scripts for CONFIG_FILES section.
20484 # No need to generate them if there are no CONFIG_FILES.
20485 # This happens for instance with `./config.status config.h'.
20486 if test -n "$CONFIG_FILES"; then
20487
20488
20489 ac_cr=`echo X | tr X '\015'`
20490 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20491 # But we know of no other shell where ac_cr would be empty at this
20492 # point, so we can use a bashism as a fallback.
20493 if test "x$ac_cr" = x; then
20494 eval ac_cr=\$\'\\r\'
20495 fi
20496 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20497 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20498 ac_cs_awk_cr='\\r'
20499 else
20500 ac_cs_awk_cr=$ac_cr
20501 fi
20502
20503 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20504 _ACEOF
20505
20506
20507 {
20508 echo "cat >conf$$subs.awk <<_ACEOF" &&
20509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20510 echo "_ACEOF"
20511 } >conf$$subs.sh ||
20512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20513 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20514 ac_delim='%!_!# '
20515 for ac_last_try in false false false false false :; do
20516 . ./conf$$subs.sh ||
20517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20518
20519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20520 if test $ac_delim_n = $ac_delim_num; then
20521 break
20522 elif $ac_last_try; then
20523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20524 else
20525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20526 fi
20527 done
20528 rm -f conf$$subs.sh
20529
20530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20532 _ACEOF
20533 sed -n '
20534 h
20535 s/^/S["/; s/!.*/"]=/
20536 p
20537 g
20538 s/^[^!]*!//
20539 :repl
20540 t repl
20541 s/'"$ac_delim"'$//
20542 t delim
20543 :nl
20544 h
20545 s/\(.\{148\}\)..*/\1/
20546 t more1
20547 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20548 p
20549 n
20550 b repl
20551 :more1
20552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20553 p
20554 g
20555 s/.\{148\}//
20556 t nl
20557 :delim
20558 h
20559 s/\(.\{148\}\)..*/\1/
20560 t more2
20561 s/["\\]/\\&/g; s/^/"/; s/$/"/
20562 p
20563 b
20564 :more2
20565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20566 p
20567 g
20568 s/.\{148\}//
20569 t delim
20570 ' <conf$$subs.awk | sed '
20571 /^[^""]/{
20572 N
20573 s/\n//
20574 }
20575 ' >>$CONFIG_STATUS || ac_write_fail=1
20576 rm -f conf$$subs.awk
20577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20578 _ACAWK
20579 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20580 for (key in S) S_is_set[key] = 1
20581 FS = ""
20582
20583 }
20584 {
20585 line = $ 0
20586 nfields = split(line, field, "@")
20587 substed = 0
20588 len = length(field[1])
20589 for (i = 2; i < nfields; i++) {
20590 key = field[i]
20591 keylen = length(key)
20592 if (S_is_set[key]) {
20593 value = S[key]
20594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20595 len += length(value) + length(field[++i])
20596 substed = 1
20597 } else
20598 len += 1 + keylen
20599 }
20600
20601 print line
20602 }
20603
20604 _ACAWK
20605 _ACEOF
20606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20609 else
20610 cat
20611 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20613 _ACEOF
20614
20615 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20616 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20617 # trailing colons and then remove the whole line if VPATH becomes empty
20618 # (actually we leave an empty line to preserve line numbers).
20619 if test "x$srcdir" = x.; then
20620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20621 h
20622 s///
20623 s/^/:/
20624 s/[ ]*$/:/
20625 s/:\$(srcdir):/:/g
20626 s/:\${srcdir}:/:/g
20627 s/:@srcdir@:/:/g
20628 s/^:*//
20629 s/:*$//
20630 x
20631 s/\(=[ ]*\).*/\1/
20632 G
20633 s/\n//
20634 s/^[^=]*=[ ]*$//
20635 }'
20636 fi
20637
20638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20639 fi # test -n "$CONFIG_FILES"
20640
20641 # Set up the scripts for CONFIG_HEADERS section.
20642 # No need to generate them if there are no CONFIG_HEADERS.
20643 # This happens for instance with `./config.status Makefile'.
20644 if test -n "$CONFIG_HEADERS"; then
20645 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20646 BEGIN {
20647 _ACEOF
20648
20649 # Transform confdefs.h into an awk script `defines.awk', embedded as
20650 # here-document in config.status, that substitutes the proper values into
20651 # config.h.in to produce config.h.
20652
20653 # Create a delimiter string that does not exist in confdefs.h, to ease
20654 # handling of long lines.
20655 ac_delim='%!_!# '
20656 for ac_last_try in false false :; do
20657 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20658 if test -z "$ac_tt"; then
20659 break
20660 elif $ac_last_try; then
20661 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20662 else
20663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20664 fi
20665 done
20666
20667 # For the awk script, D is an array of macro values keyed by name,
20668 # likewise P contains macro parameters if any. Preserve backslash
20669 # newline sequences.
20670
20671 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20672 sed -n '
20673 s/.\{148\}/&'"$ac_delim"'/g
20674 t rset
20675 :rset
20676 s/^[ ]*#[ ]*define[ ][ ]*/ /
20677 t def
20678 d
20679 :def
20680 s/\\$//
20681 t bsnl
20682 s/["\\]/\\&/g
20683 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20684 D["\1"]=" \3"/p
20685 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20686 d
20687 :bsnl
20688 s/["\\]/\\&/g
20689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20690 D["\1"]=" \3\\\\\\n"\\/p
20691 t cont
20692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20693 t cont
20694 d
20695 :cont
20696 n
20697 s/.\{148\}/&'"$ac_delim"'/g
20698 t clear
20699 :clear
20700 s/\\$//
20701 t bsnlc
20702 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20703 d
20704 :bsnlc
20705 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20706 b cont
20707 ' <confdefs.h | sed '
20708 s/'"$ac_delim"'/"\\\
20709 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20710
20711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20712 for (key in D) D_is_set[key] = 1
20713 FS = ""
20714 }
20715 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20716 line = \$ 0
20717 split(line, arg, " ")
20718 if (arg[1] == "#") {
20719 defundef = arg[2]
20720 mac1 = arg[3]
20721 } else {
20722 defundef = substr(arg[1], 2)
20723 mac1 = arg[2]
20724 }
20725 split(mac1, mac2, "(") #)
20726 macro = mac2[1]
20727 prefix = substr(line, 1, index(line, defundef) - 1)
20728 if (D_is_set[macro]) {
20729 # Preserve the white space surrounding the "#".
20730 print prefix "define", macro P[macro] D[macro]
20731 next
20732 } else {
20733 # Replace #undef with comments. This is necessary, for example,
20734 # in the case of _POSIX_SOURCE, which is predefined and required
20735 # on some systems where configure will not decide to define it.
20736 if (defundef == "undef") {
20737 print "/*", prefix defundef, macro, "*/"
20738 next
20739 }
20740 }
20741 }
20742 { print }
20743 _ACAWK
20744 _ACEOF
20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20746 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20747 fi # test -n "$CONFIG_HEADERS"
20748
20749
20750 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20751 shift
20752 for ac_tag
20753 do
20754 case $ac_tag in
20755 :[FHLC]) ac_mode=$ac_tag; continue;;
20756 esac
20757 case $ac_mode$ac_tag in
20758 :[FHL]*:*);;
20759 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20760 :[FH]-) ac_tag=-:-;;
20761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20762 esac
20763 ac_save_IFS=$IFS
20764 IFS=:
20765 set x $ac_tag
20766 IFS=$ac_save_IFS
20767 shift
20768 ac_file=$1
20769 shift
20770
20771 case $ac_mode in
20772 :L) ac_source=$1;;
20773 :[FH])
20774 ac_file_inputs=
20775 for ac_f
20776 do
20777 case $ac_f in
20778 -) ac_f="$ac_tmp/stdin";;
20779 *) # Look for the file first in the build tree, then in the source tree
20780 # (if the path is not absolute). The absolute path cannot be DOS-style,
20781 # because $ac_f cannot contain `:'.
20782 test -f "$ac_f" ||
20783 case $ac_f in
20784 [\\/$]*) false;;
20785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20786 esac ||
20787 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20788 esac
20789 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20790 as_fn_append ac_file_inputs " '$ac_f'"
20791 done
20792
20793 # Let's still pretend it is `configure' which instantiates (i.e., don't
20794 # use $as_me), people would be surprised to read:
20795 # /* config.h. Generated by config.status. */
20796 configure_input='Generated from '`
20797 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20798 `' by configure.'
20799 if test x"$ac_file" != x-; then
20800 configure_input="$ac_file. $configure_input"
20801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20802 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20803 fi
20804 # Neutralize special characters interpreted by sed in replacement strings.
20805 case $configure_input in #(
20806 *\&* | *\|* | *\\* )
20807 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20809 *) ac_sed_conf_input=$configure_input;;
20810 esac
20811
20812 case $ac_tag in
20813 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20815 esac
20816 ;;
20817 esac
20818
20819 ac_dir=`$as_dirname -- "$ac_file" ||
20820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20821 X"$ac_file" : 'X\(//\)[^/]' \| \
20822 X"$ac_file" : 'X\(//\)$' \| \
20823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20824 printf "%s\n" X"$ac_file" |
20825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20826 s//\1/
20827 q
20828 }
20829 /^X\(\/\/\)[^/].*/{
20830 s//\1/
20831 q
20832 }
20833 /^X\(\/\/\)$/{
20834 s//\1/
20835 q
20836 }
20837 /^X\(\/\).*/{
20838 s//\1/
20839 q
20840 }
20841 s/.*/./; q'`
20842 as_dir="$ac_dir"; as_fn_mkdir_p
20843 ac_builddir=.
20844
20845 case "$ac_dir" in
20846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20847 *)
20848 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20849 # A ".." for each directory in $ac_dir_suffix.
20850 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20851 case $ac_top_builddir_sub in
20852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20854 esac ;;
20855 esac
20856 ac_abs_top_builddir=$ac_pwd
20857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20858 # for backward compatibility:
20859 ac_top_builddir=$ac_top_build_prefix
20860
20861 case $srcdir in
20862 .) # We are building in place.
20863 ac_srcdir=.
20864 ac_top_srcdir=$ac_top_builddir_sub
20865 ac_abs_top_srcdir=$ac_pwd ;;
20866 [\\/]* | ?:[\\/]* ) # Absolute name.
20867 ac_srcdir=$srcdir$ac_dir_suffix;
20868 ac_top_srcdir=$srcdir
20869 ac_abs_top_srcdir=$srcdir ;;
20870 *) # Relative name.
20871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20872 ac_top_srcdir=$ac_top_build_prefix$srcdir
20873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20874 esac
20875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20876
20877
20878 case $ac_mode in
20879 :F)
20880 #
20881 # CONFIG_FILE
20882 #
20883
20884 case $INSTALL in
20885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20887 esac
20888 ac_MKDIR_P=$MKDIR_P
20889 case $MKDIR_P in
20890 [\\/$]* | ?:[\\/]* ) ;;
20891 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20892 esac
20893 _ACEOF
20894
20895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20896 # If the template does not know about datarootdir, expand it.
20897 # FIXME: This hack should be removed a few years after 2.60.
20898 ac_datarootdir_hack=; ac_datarootdir_seen=
20899 ac_sed_dataroot='
20900 /datarootdir/ {
20901 p
20902 q
20903 }
20904 /@datadir@/p
20905 /@docdir@/p
20906 /@infodir@/p
20907 /@localedir@/p
20908 /@mandir@/p'
20909 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20910 *datarootdir*) ac_datarootdir_seen=yes;;
20911 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20913 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20914 _ACEOF
20915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20916 ac_datarootdir_hack='
20917 s&@datadir@&$datadir&g
20918 s&@docdir@&$docdir&g
20919 s&@infodir@&$infodir&g
20920 s&@localedir@&$localedir&g
20921 s&@mandir@&$mandir&g
20922 s&\\\${datarootdir}&$datarootdir&g' ;;
20923 esac
20924 _ACEOF
20925
20926 # Neutralize VPATH when `$srcdir' = `.'.
20927 # Shell code in configure.ac might set extrasub.
20928 # FIXME: do we really want to maintain this feature?
20929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20930 ac_sed_extra="$ac_vpsub
20931 $extrasub
20932 _ACEOF
20933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934 :t
20935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20936 s|@configure_input@|$ac_sed_conf_input|;t t
20937 s&@top_builddir@&$ac_top_builddir_sub&;t t
20938 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20939 s&@srcdir@&$ac_srcdir&;t t
20940 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20941 s&@top_srcdir@&$ac_top_srcdir&;t t
20942 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20943 s&@builddir@&$ac_builddir&;t t
20944 s&@abs_builddir@&$ac_abs_builddir&;t t
20945 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20946 s&@INSTALL@&$ac_INSTALL&;t t
20947 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20948 $ac_datarootdir_hack
20949 "
20950 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20951 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20952
20953 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20954 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20956 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20958 which seems to be undefined. Please make sure it is defined" >&5
20959 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20960 which seems to be undefined. Please make sure it is defined" >&2;}
20961
20962 rm -f "$ac_tmp/stdin"
20963 case $ac_file in
20964 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20965 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20966 esac \
20967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20968 ;;
20969 :H)
20970 #
20971 # CONFIG_HEADER
20972 #
20973 if test x"$ac_file" != x-; then
20974 {
20975 printf "%s\n" "/* $configure_input */" >&1 \
20976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20977 } >"$ac_tmp/config.h" \
20978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20979 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20981 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20982 else
20983 rm -f "$ac_file"
20984 mv "$ac_tmp/config.h" "$ac_file" \
20985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20986 fi
20987 else
20988 printf "%s\n" "/* $configure_input */" >&1 \
20989 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20990 || as_fn_error $? "could not create -" "$LINENO" 5
20991 fi
20992 # Compute "$ac_file"'s index in $config_headers.
20993 _am_arg="$ac_file"
20994 _am_stamp_count=1
20995 for _am_header in $config_headers :; do
20996 case $_am_header in
20997 $_am_arg | $_am_arg:* )
20998 break ;;
20999 * )
21000 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21001 esac
21002 done
21003 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21004 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21005 X"$_am_arg" : 'X\(//\)[^/]' \| \
21006 X"$_am_arg" : 'X\(//\)$' \| \
21007 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21008 printf "%s\n" X"$_am_arg" |
21009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21010 s//\1/
21011 q
21012 }
21013 /^X\(\/\/\)[^/].*/{
21014 s//\1/
21015 q
21016 }
21017 /^X\(\/\/\)$/{
21018 s//\1/
21019 q
21020 }
21021 /^X\(\/\).*/{
21022 s//\1/
21023 q
21024 }
21025 s/.*/./; q'`/stamp-h$_am_stamp_count
21026 ;;
21027
21028 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21029 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21030 ;;
21031 esac
21032
21033
21034 case $ac_file$ac_mode in
21035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21036 # Older Autoconf quotes --file arguments for eval, but not when files
21037 # are listed without --file. Let's play safe and only enable the eval
21038 # if we detect the quoting.
21039 # TODO: see whether this extra hack can be removed once we start
21040 # requiring Autoconf 2.70 or later.
21041 case $CONFIG_FILES in #(
21042 *\'*) :
21043 eval set x "$CONFIG_FILES" ;; #(
21044 *) :
21045 set x $CONFIG_FILES ;; #(
21046 *) :
21047 ;;
21048 esac
21049 shift
21050 # Used to flag and report bootstrapping failures.
21051 am_rc=0
21052 for am_mf
21053 do
21054 # Strip MF so we end up with the name of the file.
21055 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21056 # Check whether this is an Automake generated Makefile which includes
21057 # dependency-tracking related rules and includes.
21058 # Grep'ing the whole file directly is not great: AIX grep has a line
21059 # limit of 2048, but all sed's we know have understand at least 4000.
21060 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21061 || continue
21062 am_dirpart=`$as_dirname -- "$am_mf" ||
21063 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21064 X"$am_mf" : 'X\(//\)[^/]' \| \
21065 X"$am_mf" : 'X\(//\)$' \| \
21066 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21067 printf "%s\n" X"$am_mf" |
21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21069 s//\1/
21070 q
21071 }
21072 /^X\(\/\/\)[^/].*/{
21073 s//\1/
21074 q
21075 }
21076 /^X\(\/\/\)$/{
21077 s//\1/
21078 q
21079 }
21080 /^X\(\/\).*/{
21081 s//\1/
21082 q
21083 }
21084 s/.*/./; q'`
21085 am_filepart=`$as_basename -- "$am_mf" ||
21086 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21087 X"$am_mf" : 'X\(//\)$' \| \
21088 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21089 printf "%s\n" X/"$am_mf" |
21090 sed '/^.*\/\([^/][^/]*\)\/*$/{
21091 s//\1/
21092 q
21093 }
21094 /^X\/\(\/\/\)$/{
21095 s//\1/
21096 q
21097 }
21098 /^X\/\(\/\).*/{
21099 s//\1/
21100 q
21101 }
21102 s/.*/./; q'`
21103 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21104 && sed -e '/# am--include-marker/d' "$am_filepart" \
21105 | $MAKE -f - am--depfiles" >&5
21106 (cd "$am_dirpart" \
21107 && sed -e '/# am--include-marker/d' "$am_filepart" \
21108 | $MAKE -f - am--depfiles) >&5 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } || am_rc=$?
21112 done
21113 if test $am_rc -ne 0; then
21114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21115 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21116 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21117 for automatic dependency tracking. If GNU make was not used, consider
21118 re-running the configure script with MAKE=\"gmake\" (or whatever is
21119 necessary). You can also try re-running configure with the
21120 '--disable-dependency-tracking' option to at least be able to build
21121 the package (albeit without support for automatic dependency tracking).
21122 See \`config.log' for more details" "$LINENO" 5; }
21123 fi
21124 { am_dirpart=; unset am_dirpart;}
21125 { am_filepart=; unset am_filepart;}
21126 { am_mf=; unset am_mf;}
21127 { am_rc=; unset am_rc;}
21128 rm -f conftest-deps.mk
21129 }
21130 ;;
21131 "libtool":C)
21132
21133 # See if we are running on zsh, and set the options that allow our
21134 # commands through without removal of \ escapes.
21135 if test -n "${ZSH_VERSION+set}"; then
21136 setopt NO_GLOB_SUBST
21137 fi
21138
21139 cfgfile=${ofile}T
21140 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21141 $RM "$cfgfile"
21142
21143 cat <<_LT_EOF >> "$cfgfile"
21144 #! $SHELL
21145 # Generated automatically by $as_me ($PACKAGE) $VERSION
21146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21148
21149 # Provide generalized library-building support services.
21150 # Written by Gordon Matzigkeit, 1996
21151
21152 # Copyright (C) 2014 Free Software Foundation, Inc.
21153 # This is free software; see the source for copying conditions. There is NO
21154 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21155
21156 # GNU Libtool is free software; you can redistribute it and/or modify
21157 # it under the terms of the GNU General Public License as published by
21158 # the Free Software Foundation; either version 2 of of the License, or
21159 # (at your option) any later version.
21160 #
21161 # As a special exception to the GNU General Public License, if you
21162 # distribute this file as part of a program or library that is built
21163 # using GNU Libtool, you may include this file under the same
21164 # distribution terms that you use for the rest of that program.
21165 #
21166 # GNU Libtool is distributed in the hope that it will be useful, but
21167 # WITHOUT ANY WARRANTY; without even the implied warranty of
21168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21169 # GNU General Public License for more details.
21170 #
21171 # You should have received a copy of the GNU General Public License
21172 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21173
21174
21175 # The names of the tagged configurations supported by this script.
21176 available_tags=''
21177
21178 # Configured defaults for sys_lib_dlsearch_path munging.
21179 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21180
21181 # ### BEGIN LIBTOOL CONFIG
21182
21183 # Which release of libtool.m4 was used?
21184 macro_version=$macro_version
21185 macro_revision=$macro_revision
21186
21187 # Whether or not to build shared libraries.
21188 build_libtool_libs=$enable_shared
21189
21190 # Whether or not to build static libraries.
21191 build_old_libs=$enable_static
21192
21193 # What type of objects to build.
21194 pic_mode=$pic_mode
21195
21196 # Whether or not to optimize for fast installation.
21197 fast_install=$enable_fast_install
21198
21199 # Shared archive member basename,for filename based shared library versioning on AIX.
21200 shared_archive_member_spec=$shared_archive_member_spec
21201
21202 # Shell to use when invoking shell scripts.
21203 SHELL=$lt_SHELL
21204
21205 # An echo program that protects backslashes.
21206 ECHO=$lt_ECHO
21207
21208 # The PATH separator for the build system.
21209 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21210
21211 # The host system.
21212 host_alias=$host_alias
21213 host=$host
21214 host_os=$host_os
21215
21216 # The build system.
21217 build_alias=$build_alias
21218 build=$build
21219 build_os=$build_os
21220
21221 # A sed program that does not truncate output.
21222 SED=$lt_SED
21223
21224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21225 Xsed="\$SED -e 1s/^X//"
21226
21227 # A grep program that handles long lines.
21228 GREP=$lt_GREP
21229
21230 # An ERE matcher.
21231 EGREP=$lt_EGREP
21232
21233 # A literal string matcher.
21234 FGREP=$lt_FGREP
21235
21236 # A BSD- or MS-compatible name lister.
21237 NM=$lt_NM
21238
21239 # Whether we need soft or hard links.
21240 LN_S=$lt_LN_S
21241
21242 # What is the maximum length of a command?
21243 max_cmd_len=$max_cmd_len
21244
21245 # Object file suffix (normally "o").
21246 objext=$ac_objext
21247
21248 # Executable file suffix (normally "").
21249 exeext=$exeext
21250
21251 # whether the shell understands "unset".
21252 lt_unset=$lt_unset
21253
21254 # turn spaces into newlines.
21255 SP2NL=$lt_lt_SP2NL
21256
21257 # turn newlines into spaces.
21258 NL2SP=$lt_lt_NL2SP
21259
21260 # convert \$build file names to \$host format.
21261 to_host_file_cmd=$lt_cv_to_host_file_cmd
21262
21263 # convert \$build files to toolchain format.
21264 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21265
21266 # A file(cmd) program that detects file types.
21267 FILECMD=$lt_FILECMD
21268
21269 # An object symbol dumper.
21270 OBJDUMP=$lt_OBJDUMP
21271
21272 # Method to check whether dependent libraries are shared objects.
21273 deplibs_check_method=$lt_deplibs_check_method
21274
21275 # Command to use when deplibs_check_method = "file_magic".
21276 file_magic_cmd=$lt_file_magic_cmd
21277
21278 # How to find potential files when deplibs_check_method = "file_magic".
21279 file_magic_glob=$lt_file_magic_glob
21280
21281 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21282 want_nocaseglob=$lt_want_nocaseglob
21283
21284 # DLL creation program.
21285 DLLTOOL=$lt_DLLTOOL
21286
21287 # Command to associate shared and link libraries.
21288 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21289
21290 # The archiver.
21291 AR=$lt_AR
21292
21293 # Flags to create an archive (by configure).
21294 lt_ar_flags=$lt_ar_flags
21295
21296 # Flags to create an archive.
21297 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21298
21299 # How to feed a file listing to the archiver.
21300 archiver_list_spec=$lt_archiver_list_spec
21301
21302 # A symbol stripping program.
21303 STRIP=$lt_STRIP
21304
21305 # Commands used to install an old-style archive.
21306 RANLIB=$lt_RANLIB
21307 old_postinstall_cmds=$lt_old_postinstall_cmds
21308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21309
21310 # Whether to use a lock for old archive extraction.
21311 lock_old_archive_extraction=$lock_old_archive_extraction
21312
21313 # A C compiler.
21314 LTCC=$lt_CC
21315
21316 # LTCC compiler flags.
21317 LTCFLAGS=$lt_CFLAGS
21318
21319 # Take the output of nm and produce a listing of raw symbols and C names.
21320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21321
21322 # Transform the output of nm in a proper C declaration.
21323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21324
21325 # Transform the output of nm into a list of symbols to manually relocate.
21326 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21327
21328 # Transform the output of nm in a C name address pair.
21329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21330
21331 # Transform the output of nm in a C name address pair when lib prefix is needed.
21332 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21333
21334 # The name lister interface.
21335 nm_interface=$lt_lt_cv_nm_interface
21336
21337 # Specify filename containing input files for \$NM.
21338 nm_file_list_spec=$lt_nm_file_list_spec
21339
21340 # The root where to search for dependent libraries,and where our libraries should be installed.
21341 lt_sysroot=$lt_sysroot
21342
21343 # Command to truncate a binary pipe.
21344 lt_truncate_bin=$lt_lt_cv_truncate_bin
21345
21346 # The name of the directory that contains temporary libtool files.
21347 objdir=$objdir
21348
21349 # Used to examine libraries when file_magic_cmd begins with "file".
21350 MAGIC_CMD=$MAGIC_CMD
21351
21352 # Must we lock files when doing compilation?
21353 need_locks=$lt_need_locks
21354
21355 # Manifest tool.
21356 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21357
21358 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21359 DSYMUTIL=$lt_DSYMUTIL
21360
21361 # Tool to change global to local symbols on Mac OS X.
21362 NMEDIT=$lt_NMEDIT
21363
21364 # Tool to manipulate fat objects and archives on Mac OS X.
21365 LIPO=$lt_LIPO
21366
21367 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21368 OTOOL=$lt_OTOOL
21369
21370 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21371 OTOOL64=$lt_OTOOL64
21372
21373 # Old archive suffix (normally "a").
21374 libext=$libext
21375
21376 # Shared library suffix (normally ".so").
21377 shrext_cmds=$lt_shrext_cmds
21378
21379 # The commands to extract the exported symbol list from a shared archive.
21380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21381
21382 # Variables whose values should be saved in libtool wrapper scripts and
21383 # restored at link time.
21384 variables_saved_for_relink=$lt_variables_saved_for_relink
21385
21386 # Do we need the "lib" prefix for modules?
21387 need_lib_prefix=$need_lib_prefix
21388
21389 # Do we need a version for libraries?
21390 need_version=$need_version
21391
21392 # Library versioning type.
21393 version_type=$version_type
21394
21395 # Shared library runtime path variable.
21396 runpath_var=$runpath_var
21397
21398 # Shared library path variable.
21399 shlibpath_var=$shlibpath_var
21400
21401 # Is shlibpath searched before the hard-coded library search path?
21402 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21403
21404 # Format of library name prefix.
21405 libname_spec=$lt_libname_spec
21406
21407 # List of archive names. First name is the real one, the rest are links.
21408 # The last name is the one that the linker finds with -lNAME
21409 library_names_spec=$lt_library_names_spec
21410
21411 # The coded name of the library, if different from the real name.
21412 soname_spec=$lt_soname_spec
21413
21414 # Permission mode override for installation of shared libraries.
21415 install_override_mode=$lt_install_override_mode
21416
21417 # Command to use after installation of a shared archive.
21418 postinstall_cmds=$lt_postinstall_cmds
21419
21420 # Command to use after uninstallation of a shared archive.
21421 postuninstall_cmds=$lt_postuninstall_cmds
21422
21423 # Commands used to finish a libtool library installation in a directory.
21424 finish_cmds=$lt_finish_cmds
21425
21426 # As "finish_cmds", except a single script fragment to be evaled but
21427 # not shown.
21428 finish_eval=$lt_finish_eval
21429
21430 # Whether we should hardcode library paths into libraries.
21431 hardcode_into_libs=$hardcode_into_libs
21432
21433 # Compile-time system search path for libraries.
21434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21435
21436 # Detected run-time system search path for libraries.
21437 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21438
21439 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21440 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21441
21442 # Whether dlopen is supported.
21443 dlopen_support=$enable_dlopen
21444
21445 # Whether dlopen of programs is supported.
21446 dlopen_self=$enable_dlopen_self
21447
21448 # Whether dlopen of statically linked programs is supported.
21449 dlopen_self_static=$enable_dlopen_self_static
21450
21451 # Commands to strip libraries.
21452 old_striplib=$lt_old_striplib
21453 striplib=$lt_striplib
21454
21455
21456 # The linker used to build libraries.
21457 LD=$lt_LD
21458
21459 # How to create reloadable object files.
21460 reload_flag=$lt_reload_flag
21461 reload_cmds=$lt_reload_cmds
21462
21463 # Commands used to build an old-style archive.
21464 old_archive_cmds=$lt_old_archive_cmds
21465
21466 # A language specific compiler.
21467 CC=$lt_compiler
21468
21469 # Is the compiler the GNU compiler?
21470 with_gcc=$GCC
21471
21472 # Compiler flag to turn off builtin functions.
21473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21474
21475 # Additional compiler flags for building library objects.
21476 pic_flag=$lt_lt_prog_compiler_pic
21477
21478 # How to pass a linker flag through the compiler.
21479 wl=$lt_lt_prog_compiler_wl
21480
21481 # Compiler flag to prevent dynamic linking.
21482 link_static_flag=$lt_lt_prog_compiler_static
21483
21484 # Does compiler simultaneously support -c and -o options?
21485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21486
21487 # Whether or not to add -lc for building shared libraries.
21488 build_libtool_need_lc=$archive_cmds_need_lc
21489
21490 # Whether or not to disallow shared libs when runtime libs are static.
21491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21492
21493 # Compiler flag to allow reflexive dlopens.
21494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21495
21496 # Compiler flag to generate shared objects directly from archives.
21497 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21498
21499 # Whether the compiler copes with passing no objects directly.
21500 compiler_needs_object=$lt_compiler_needs_object
21501
21502 # Create an old-style archive from a shared archive.
21503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21504
21505 # Create a temporary old-style archive to link instead of a shared archive.
21506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21507
21508 # Commands used to build a shared archive.
21509 archive_cmds=$lt_archive_cmds
21510 archive_expsym_cmds=$lt_archive_expsym_cmds
21511
21512 # Commands used to build a loadable module if different from building
21513 # a shared archive.
21514 module_cmds=$lt_module_cmds
21515 module_expsym_cmds=$lt_module_expsym_cmds
21516
21517 # Whether we are building with GNU ld or not.
21518 with_gnu_ld=$lt_with_gnu_ld
21519
21520 # Flag that allows shared libraries with undefined symbols to be built.
21521 allow_undefined_flag=$lt_allow_undefined_flag
21522
21523 # Flag that enforces no undefined symbols.
21524 no_undefined_flag=$lt_no_undefined_flag
21525
21526 # Flag to hardcode \$libdir into a binary during linking.
21527 # This must work even if \$libdir does not exist
21528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21529
21530 # Whether we need a single "-rpath" flag with a separated argument.
21531 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21532
21533 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21534 # DIR into the resulting binary.
21535 hardcode_direct=$hardcode_direct
21536
21537 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21538 # DIR into the resulting binary and the resulting library dependency is
21539 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21540 # library is relocated.
21541 hardcode_direct_absolute=$hardcode_direct_absolute
21542
21543 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21544 # into the resulting binary.
21545 hardcode_minus_L=$hardcode_minus_L
21546
21547 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21548 # into the resulting binary.
21549 hardcode_shlibpath_var=$hardcode_shlibpath_var
21550
21551 # Set to "yes" if building a shared library automatically hardcodes DIR
21552 # into the library and all subsequent libraries and executables linked
21553 # against it.
21554 hardcode_automatic=$hardcode_automatic
21555
21556 # Set to yes if linker adds runtime paths of dependent libraries
21557 # to runtime path list.
21558 inherit_rpath=$inherit_rpath
21559
21560 # Whether libtool must link a program against all its dependency libraries.
21561 link_all_deplibs=$link_all_deplibs
21562
21563 # Set to "yes" if exported symbols are required.
21564 always_export_symbols=$always_export_symbols
21565
21566 # The commands to list exported symbols.
21567 export_symbols_cmds=$lt_export_symbols_cmds
21568
21569 # Symbols that should not be listed in the preloaded symbols.
21570 exclude_expsyms=$lt_exclude_expsyms
21571
21572 # Symbols that must always be exported.
21573 include_expsyms=$lt_include_expsyms
21574
21575 # Commands necessary for linking programs (against libraries) with templates.
21576 prelink_cmds=$lt_prelink_cmds
21577
21578 # Commands necessary for finishing linking programs.
21579 postlink_cmds=$lt_postlink_cmds
21580
21581 # Specify filename containing input files.
21582 file_list_spec=$lt_file_list_spec
21583
21584 # How to hardcode a shared library path into an executable.
21585 hardcode_action=$hardcode_action
21586
21587 # ### END LIBTOOL CONFIG
21588
21589 _LT_EOF
21590
21591 cat <<'_LT_EOF' >> "$cfgfile"
21592
21593 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21594
21595 # func_munge_path_list VARIABLE PATH
21596 # -----------------------------------
21597 # VARIABLE is name of variable containing _space_ separated list of
21598 # directories to be munged by the contents of PATH, which is string
21599 # having a format:
21600 # "DIR[:DIR]:"
21601 # string "DIR[ DIR]" will be prepended to VARIABLE
21602 # ":DIR[:DIR]"
21603 # string "DIR[ DIR]" will be appended to VARIABLE
21604 # "DIRP[:DIRP]::[DIRA:]DIRA"
21605 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21606 # "DIRA[ DIRA]" will be appended to VARIABLE
21607 # "DIR[:DIR]"
21608 # VARIABLE will be replaced by "DIR[ DIR]"
21609 func_munge_path_list ()
21610 {
21611 case x$2 in
21612 x)
21613 ;;
21614 *:)
21615 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21616 ;;
21617 x:*)
21618 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21619 ;;
21620 *::*)
21621 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21622 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21623 ;;
21624 *)
21625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21626 ;;
21627 esac
21628 }
21629
21630
21631 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21632 func_cc_basename ()
21633 {
21634 for cc_temp in $*""; do
21635 case $cc_temp in
21636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21638 \-*) ;;
21639 *) break;;
21640 esac
21641 done
21642 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21643 }
21644
21645
21646 # ### END FUNCTIONS SHARED WITH CONFIGURE
21647
21648 _LT_EOF
21649
21650 case $host_os in
21651 aix3*)
21652 cat <<\_LT_EOF >> "$cfgfile"
21653 # AIX sometimes has problems with the GCC collect2 program. For some
21654 # reason, if we set the COLLECT_NAMES environment variable, the problems
21655 # vanish in a puff of smoke.
21656 if test set != "${COLLECT_NAMES+set}"; then
21657 COLLECT_NAMES=
21658 export COLLECT_NAMES
21659 fi
21660 _LT_EOF
21661 ;;
21662 esac
21663
21664
21665
21666 ltmain=$ac_aux_dir/ltmain.sh
21667
21668
21669 # We use sed instead of cat because bash on DJGPP gets confused if
21670 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21671 # text mode, it properly converts lines to CR/LF. This bash problem
21672 # is reportedly fixed, but why not run on old versions too?
21673 $SED '$q' "$ltmain" >> "$cfgfile" \
21674 || (rm -f "$cfgfile"; exit 1)
21675
21676 mv -f "$cfgfile" "$ofile" ||
21677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21678 chmod +x "$ofile"
21679
21680 ;;
21681
21682 esac
21683 done # for ac_tag
21684
21685
21686 as_fn_exit 0
21687 _ACEOF
21688 ac_clean_files=$ac_clean_files_save
21689
21690 test $ac_write_fail = 0 ||
21691 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21692
21693
21694 # configure is writing to config.log, and then calls config.status.
21695 # config.status does its own redirection, appending to config.log.
21696 # Unfortunately, on DOS this fails, as config.log is still kept open
21697 # by configure, so config.status won't be able to write to it; its
21698 # output is simply discarded. So we exec the FD to /dev/null,
21699 # effectively closing config.log, so it can be properly (re)opened and
21700 # appended to by config.status. When coming back to configure, we
21701 # need to make the FD available again.
21702 if test "$no_create" != yes; then
21703 ac_cs_success=:
21704 ac_config_status_args=
21705 test "$silent" = yes &&
21706 ac_config_status_args="$ac_config_status_args --quiet"
21707 exec 5>/dev/null
21708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21709 exec 5>>config.log
21710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21711 # would make configure fail if this is the last instruction.
21712 $ac_cs_success || as_fn_exit 1
21713 fi
21714 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21716 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21717 fi
21718
21719
21720