configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXdamage 1.1.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/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/libxdamage/-/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='libXdamage'
624 PACKAGE_TARNAME='libXdamage'
625 PACKAGE_VERSION='1.1.6'
626 PACKAGE_STRING='libXdamage 1.1.6'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/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 XDAMAGE_LIBS
668 XDAMAGE_CFLAGS
669 DAMAGEEXT_VERSION
670 MAN_SUBSTS
671 XORG_MAN_PAGE
672 ADMIN_MAN_DIR
673 DRIVER_MAN_DIR
674 MISC_MAN_DIR
675 FILE_MAN_DIR
676 LIB_MAN_DIR
677 APP_MAN_DIR
678 ADMIN_MAN_SUFFIX
679 DRIVER_MAN_SUFFIX
680 MISC_MAN_SUFFIX
681 FILE_MAN_SUFFIX
682 LIB_MAN_SUFFIX
683 APP_MAN_SUFFIX
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 LIBTOOL
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 CSCOPE
744 ETAGS
745 CTAGS
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL
808 am__quote'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_selective_werror
823 enable_strict_compilation
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 LT_SYS_LIBRARY_PATH
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 XDAMAGE_CFLAGS
838 XDAMAGE_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: \`$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: \`$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libXdamage 1.1.6 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdamage]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libXdamage 1.1.6:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-aix-soname=aix|svr4|both
1490 shared library versioning (aka "SONAME") variant to
1491 provide on AIX, [default=aix].
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1494 compiler's sysroot if not specified).
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 LT_SYS_LIBRARY_PATH
1505 User-defined run-time library search path.
1506 PKG_CONFIG path to pkg-config utility
1507 PKG_CONFIG_PATH
1508 directories to add to pkg-config's search path
1509 PKG_CONFIG_LIBDIR
1510 path overriding pkg-config's built-in search path
1511 XDAMAGE_CFLAGS
1512 C compiler flags for XDAMAGE, overriding pkg-config
1513 XDAMAGE_LIBS
1514 linker flags for XDAMAGE, overriding pkg-config
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/issues>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for configure.gnu first; this name is used for a wrapper for
1566 # Metaconfig's "Configure" on case-insensitive file systems.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 libXdamage configure 1.1.6
1584 generated by GNU Autoconf 2.71
1585
1586 Copyright (C) 2021 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext
1623 then :
1624 ac_retval=0
1625 else $as_nop
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else $as_nop
1668 printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 printf %s "checking for $2... " >&6; }
1692 if eval test \${$3+y}
1693 then :
1694 printf %s "(cached) " >&6
1695 else $as_nop
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"
1702 then :
1703 eval "$3=yes"
1704 else $as_nop
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 printf "%s\n" "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 printf %s "checking for $2... " >&6; }
1724 if eval test \${$3+y}
1725 then :
1726 printf %s "(cached) " >&6
1727 else $as_nop
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below. */
1736
1737 #include <limits.h>
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 ();
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main (void)
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"
1763 then :
1764 eval "$3=yes"
1765 else $as_nop
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1769 conftest$ac_exeext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 printf "%s\n" "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_func
1777
1778 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1779 # ------------------------------------------------------------------
1780 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1781 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1782 ac_fn_check_decl ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 as_decl_name=`echo $2|sed 's/ *(.*//'`
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1787 printf %s "checking whether $as_decl_name is declared... " >&6; }
1788 if eval test \${$3+y}
1789 then :
1790 printf %s "(cached) " >&6
1791 else $as_nop
1792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1793 eval ac_save_FLAGS=\$$6
1794 as_fn_append $6 " $5"
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 int
1799 main (void)
1800 {
1801 #ifndef $as_decl_name
1802 #ifdef __cplusplus
1803 (void) $as_decl_use;
1804 #else
1805 (void) $as_decl_name;
1806 #endif
1807 #endif
1808
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"
1814 then :
1815 eval "$3=yes"
1816 else $as_nop
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 eval $6=\$ac_save_FLAGS
1821
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_check_decl
1829 ac_configure_args_raw=
1830 for ac_arg
1831 do
1832 case $ac_arg in
1833 *\'*)
1834 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 esac
1836 as_fn_append ac_configure_args_raw " '$ac_arg'"
1837 done
1838
1839 case $ac_configure_args_raw in
1840 *$as_nl*)
1841 ac_safe_unquote= ;;
1842 *)
1843 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1844 ac_unsafe_a="$ac_unsafe_z#~"
1845 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1846 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1847 esac
1848
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by libXdamage $as_me 1.1.6, which was
1854 generated by GNU Autoconf 2.71. Invocation command line was
1855
1856 $ $0$ac_configure_args_raw
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 case $as_dir in #(((
1890 '') as_dir=./ ;;
1891 */) ;;
1892 *) as_dir=$as_dir/ ;;
1893 esac
1894 printf "%s\n" "PATH: $as_dir"
1895 done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921 for ac_arg
1922 do
1923 case $ac_arg in
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 continue ;;
1928 *\'*)
1929 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 esac
1931 case $ac_pass in
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933 2)
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1937 else
1938 case $ac_arg in
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945 esac
1946 ;;
1947 -* ) ac_must_keep_next=true ;;
1948 esac
1949 fi
1950 as_fn_append ac_configure_args " '$ac_arg'"
1951 ;;
1952 esac
1953 done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Sanitize IFS.
1965 IFS=" "" $as_nl"
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 printf "%s\n" "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1973 echo
1974 # The following way of writing the cache mishandles newlines in values,
1975 (
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in #(
1979 *${as_nl}*)
1980 case $ac_var in #(
1981 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 esac
1984 case $ac_var in #(
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1988 esac ;;
1989 esac
1990 done
1991 (set) 2>&1 |
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1994 sed -n \
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 ;; #(
1998 *)
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ;;
2001 esac |
2002 sort
2003 )
2004 echo
2005
2006 printf "%s\n" "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 printf "%s\n" "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019
2020 if test -n "$ac_subst_files"; then
2021 printf "%s\n" "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 printf "%s\n" "## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##"
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 printf "%s\n" "$as_me: caught signal $ac_signal"
2046 printf "%s\n" "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051 ' 0
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2056
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2059
2060 printf "%s\n" "/* confdefs.h */" > confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2067
2068 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_files="$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2083 else
2084 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2085 fi
2086
2087 for ac_site_file in $ac_site_files
2088 do
2089 case $ac_site_file in #(
2090 */*) :
2091 ;; #(
2092 *) :
2093 ac_site_file=./$ac_site_file ;;
2094 esac
2095 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2099 . "$ac_site_file" \
2100 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2102 as_fn_error $? "failed to load site script $ac_site_file
2103 See \`config.log' for more details" "$LINENO" 5; }
2104 fi
2105 done
2106
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special files
2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2113 case $cache_file in
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2116 esac
2117 fi
2118 else
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2121 >$cache_file
2122 fi
2123
2124 # Test code for whether the C compiler supports C89 (global declarations)
2125 ac_c_conftest_c89_globals='
2126 /* Does the compiler advertise C89 conformance?
2127 Do not test the value of __STDC__, because some compilers set it to 0
2128 while being otherwise adequately conformant. */
2129 #if !defined __STDC__
2130 # error "Compiler does not advertise C89 conformance"
2131 #endif
2132
2133 #include <stddef.h>
2134 #include <stdarg.h>
2135 struct stat;
2136 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2137 struct buf { int x; };
2138 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140 char **p;
2141 int i;
2142 {
2143 return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147 char *s;
2148 va_list v;
2149 va_start (v,p);
2150 s = g (p, va_arg (v,int));
2151 va_end (v);
2152 return s;
2153 }
2154
2155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2156 function prototypes and stuff, but not \xHH hex character constants.
2157 These do not provoke an error unfortunately, instead are silently treated
2158 as an "x". The following induces an error, until -std is added to get
2159 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2160 array size at least. It is necessary to write \x00 == 0 to get something
2161 that is true only with -std. */
2162 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2163
2164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2165 inside strings and character constants. */
2166 #define FOO(x) '\''x'\''
2167 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2173 int, int);'
2174
2175 # Test code for whether the C compiler supports C89 (body of main).
2176 ac_c_conftest_c89_main='
2177 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2178 '
2179
2180 # Test code for whether the C compiler supports C99 (global declarations)
2181 ac_c_conftest_c99_globals='
2182 // Does the compiler advertise C99 conformance?
2183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2184 # error "Compiler does not advertise C99 conformance"
2185 #endif
2186
2187 #include <stdbool.h>
2188 extern int puts (const char *);
2189 extern int printf (const char *, ...);
2190 extern int dprintf (int, const char *, ...);
2191 extern void *malloc (size_t);
2192
2193 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2194 // dprintf is used instead of fprintf to avoid needing to declare
2195 // FILE and stderr.
2196 #define debug(...) dprintf (2, __VA_ARGS__)
2197 #define showlist(...) puts (#__VA_ARGS__)
2198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2199 static void
2200 test_varargs_macros (void)
2201 {
2202 int x = 1234;
2203 int y = 5678;
2204 debug ("Flag");
2205 debug ("X = %d\n", x);
2206 showlist (The first, second, and third items.);
2207 report (x>y, "x is %d but y is %d", x, y);
2208 }
2209
2210 // Check long long types.
2211 #define BIG64 18446744073709551615ull
2212 #define BIG32 4294967295ul
2213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2214 #if !BIG_OK
2215 #error "your preprocessor is broken"
2216 #endif
2217 #if BIG_OK
2218 #else
2219 #error "your preprocessor is broken"
2220 #endif
2221 static long long int bignum = -9223372036854775807LL;
2222 static unsigned long long int ubignum = BIG64;
2223
2224 struct incomplete_array
2225 {
2226 int datasize;
2227 double data[];
2228 };
2229
2230 struct named_init {
2231 int number;
2232 const wchar_t *name;
2233 double average;
2234 };
2235
2236 typedef const char *ccp;
2237
2238 static inline int
2239 test_restrict (ccp restrict text)
2240 {
2241 // See if C++-style comments work.
2242 // Iterate through items via the restricted pointer.
2243 // Also check for declarations in for loops.
2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245 continue;
2246 return 0;
2247 }
2248
2249 // Check varargs and va_copy.
2250 static bool
2251 test_varargs (const char *format, ...)
2252 {
2253 va_list args;
2254 va_start (args, format);
2255 va_list args_copy;
2256 va_copy (args_copy, args);
2257
2258 const char *str = "";
2259 int number = 0;
2260 float fnumber = 0;
2261
2262 while (*format)
2263 {
2264 switch (*format++)
2265 {
2266 case '\''s'\'': // string
2267 str = va_arg (args_copy, const char *);
2268 break;
2269 case '\''d'\'': // int
2270 number = va_arg (args_copy, int);
2271 break;
2272 case '\''f'\'': // float
2273 fnumber = va_arg (args_copy, double);
2274 break;
2275 default:
2276 break;
2277 }
2278 }
2279 va_end (args_copy);
2280 va_end (args);
2281
2282 return *str && number && fnumber;
2283 }
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2288 // Check bool.
2289 _Bool success = false;
2290 success |= (argc != 0);
2291
2292 // Check restrict.
2293 if (test_restrict ("String literal") == 0)
2294 success = true;
2295 char *restrict newvar = "Another string";
2296
2297 // Check varargs.
2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros ();
2300
2301 // Check flexible array members.
2302 struct incomplete_array *ia =
2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304 ia->datasize = 10;
2305 for (int i = 0; i < ia->datasize; ++i)
2306 ia->data[i] = i * 1.234;
2307
2308 // Check named initializers.
2309 struct named_init ni = {
2310 .number = 34,
2311 .name = L"Test wide string",
2312 .average = 543.34343,
2313 };
2314
2315 ni.number = 58;
2316
2317 int dynamic_array[ni.number];
2318 dynamic_array[0] = argv[0][0];
2319 dynamic_array[ni.number - 1] = 543;
2320
2321 // work around unused variable warnings
2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2323 || dynamic_array[ni.number - 1] != 543);
2324 '
2325
2326 # Test code for whether the C compiler supports C11 (global declarations)
2327 ac_c_conftest_c11_globals='
2328 // Does the compiler advertise C11 conformance?
2329 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330 # error "Compiler does not advertise C11 conformance"
2331 #endif
2332
2333 // Check _Alignas.
2334 char _Alignas (double) aligned_as_double;
2335 char _Alignas (0) no_special_alignment;
2336 extern char aligned_as_int;
2337 char _Alignas (0) _Alignas (int) aligned_as_int;
2338
2339 // Check _Alignof.
2340 enum
2341 {
2342 int_alignment = _Alignof (int),
2343 int_array_alignment = _Alignof (int[100]),
2344 char_alignment = _Alignof (char)
2345 };
2346 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2347
2348 // Check _Noreturn.
2349 int _Noreturn does_not_return (void) { for (;;) continue; }
2350
2351 // Check _Static_assert.
2352 struct test_static_assert
2353 {
2354 int x;
2355 _Static_assert (sizeof (int) <= sizeof (long int),
2356 "_Static_assert does not work in struct");
2357 long int y;
2358 };
2359
2360 // Check UTF-8 literals.
2361 #define u8 syntax error!
2362 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2363
2364 // Check duplicate typedefs.
2365 typedef long *long_ptr;
2366 typedef long int *long_ptr;
2367 typedef long_ptr long_ptr;
2368
2369 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2370 struct anonymous
2371 {
2372 union {
2373 struct { int i; int j; };
2374 struct { int k; long int l; } w;
2375 };
2376 int m;
2377 } v1;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (body of main).
2381 ac_c_conftest_c11_main='
2382 _Static_assert ((offsetof (struct anonymous, i)
2383 == offsetof (struct anonymous, w.k)),
2384 "Anonymous union alignment botch");
2385 v1.i = 2;
2386 v1.w.k = 5;
2387 ok |= v1.i != 5;
2388 '
2389
2390 # Test code for whether the C compiler supports C11 (complete).
2391 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392 ${ac_c_conftest_c99_globals}
2393 ${ac_c_conftest_c11_globals}
2394
2395 int
2396 main (int argc, char **argv)
2397 {
2398 int ok = 0;
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 ${ac_c_conftest_c11_main}
2402 return ok;
2403 }
2404 "
2405
2406 # Test code for whether the C compiler supports C99 (complete).
2407 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408 ${ac_c_conftest_c99_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C89 (complete).
2421 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 return ok;
2429 }
2430 "
2431
2432 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2433 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2434 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2435 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2436 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2437 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2438 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2439 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2440 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2441
2442 # Auxiliary files required by this configure script.
2443 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2444
2445 # Locations in which to look for auxiliary files.
2446 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2447
2448 # Search for a directory containing all of the required auxiliary files,
2449 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2450 # If we don't find one directory that contains all the files we need,
2451 # we report the set of missing files from the *first* directory in
2452 # $ac_aux_dir_candidates and give up.
2453 ac_missing_aux_files=""
2454 ac_first_candidate=:
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 as_found=false
2458 for as_dir in $ac_aux_dir_candidates
2459 do
2460 IFS=$as_save_IFS
2461 case $as_dir in #(((
2462 '') as_dir=./ ;;
2463 */) ;;
2464 *) as_dir=$as_dir/ ;;
2465 esac
2466 as_found=:
2467
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2469 ac_aux_dir_found=yes
2470 ac_install_sh=
2471 for ac_aux in $ac_aux_files
2472 do
2473 # As a special case, if "install-sh" is required, that requirement
2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2475 # and $ac_install_sh is set appropriately for whichever one is found.
2476 if test x"$ac_aux" = x"install-sh"
2477 then
2478 if test -f "${as_dir}install-sh"; then
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2480 ac_install_sh="${as_dir}install-sh -c"
2481 elif test -f "${as_dir}install.sh"; then
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2483 ac_install_sh="${as_dir}install.sh -c"
2484 elif test -f "${as_dir}shtool"; then
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2486 ac_install_sh="${as_dir}shtool install -c"
2487 else
2488 ac_aux_dir_found=no
2489 if $ac_first_candidate; then
2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2491 else
2492 break
2493 fi
2494 fi
2495 else
2496 if test -f "${as_dir}${ac_aux}"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2498 else
2499 ac_aux_dir_found=no
2500 if $ac_first_candidate; then
2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2502 else
2503 break
2504 fi
2505 fi
2506 fi
2507 done
2508 if test "$ac_aux_dir_found" = yes; then
2509 ac_aux_dir="$as_dir"
2510 break
2511 fi
2512 ac_first_candidate=false
2513
2514 as_found=false
2515 done
2516 IFS=$as_save_IFS
2517 if $as_found
2518 then :
2519
2520 else $as_nop
2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2522 fi
2523
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 if test -f "${ac_aux_dir}config.guess"; then
2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2531 fi
2532 if test -f "${ac_aux_dir}config.sub"; then
2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2534 fi
2535 if test -f "$ac_aux_dir/configure"; then
2536 ac_configure="$SHELL ${ac_aux_dir}configure"
2537 fi
2538
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2557 *)
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2570 fi
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2587 fi
2588 done
2589 if $ac_cache_corrupted; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2595 and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609 ac_config_headers="$ac_config_headers config.h"
2610
2611
2612 # Initialize Automake
2613 am__api_version='1.16'
2614
2615
2616
2617 # Find a good install program. We prefer a C program (faster),
2618 # so one script is as good as another. But avoid the broken or
2619 # incompatible versions:
2620 # SysV /etc/install, /usr/sbin/install
2621 # SunOS /usr/etc/install
2622 # IRIX /sbin/install
2623 # AIX /bin/install
2624 # AmigaOS /C/install, which installs bootblocks on floppy discs
2625 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628 # OS/2's system install, which has a completely different semantic
2629 # ./install, which can be erroneously created by make from ./install.sh.
2630 # Reject install programs that cannot install multiple files.
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2632 printf %s "checking for a BSD-compatible install... " >&6; }
2633 if test -z "$INSTALL"; then
2634 if test ${ac_cv_path_install+y}
2635 then :
2636 printf %s "(cached) " >&6
2637 else $as_nop
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 case $as_dir in #(((
2643 '') as_dir=./ ;;
2644 */) ;;
2645 *) as_dir=$as_dir/ ;;
2646 esac
2647 # Account for fact that we put trailing slashes in our PATH walk.
2648 case $as_dir in #((
2649 ./ | /[cC]/* | \
2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652 /usr/ucb/* ) ;;
2653 *)
2654 # OSF1 and SCO ODT 3.0 have their own names for install.
2655 # Don't use installbsd from OSF since it installs stuff as root
2656 # by default.
2657 for ac_prog in ginstall scoinst install; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2660 if test $ac_prog = install &&
2661 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # AIX install. It has an incompatible calling convention.
2663 :
2664 elif test $ac_prog = install &&
2665 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # program-specific install script used by HP pwplus--don't use.
2667 :
2668 else
2669 rm -rf conftest.one conftest.two conftest.dir
2670 echo one > conftest.one
2671 echo two > conftest.two
2672 mkdir conftest.dir
2673 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2674 test -s conftest.one && test -s conftest.two &&
2675 test -s conftest.dir/conftest.one &&
2676 test -s conftest.dir/conftest.two
2677 then
2678 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2679 break 3
2680 fi
2681 fi
2682 fi
2683 done
2684 done
2685 ;;
2686 esac
2687
2688 done
2689 IFS=$as_save_IFS
2690
2691 rm -rf conftest.one conftest.two conftest.dir
2692
2693 fi
2694 if test ${ac_cv_path_install+y}; then
2695 INSTALL=$ac_cv_path_install
2696 else
2697 # As a last resort, use the slow shell script. Don't cache a
2698 # value for INSTALL within a source directory, because that will
2699 # break other packages using the cache if that directory is
2700 # removed, or if the value is a relative name.
2701 INSTALL=$ac_install_sh
2702 fi
2703 fi
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705 printf "%s\n" "$INSTALL" >&6; }
2706
2707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708 # It thinks the first close brace ends the variable substitution.
2709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710
2711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712
2713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2716 printf %s "checking whether build environment is sane... " >&6; }
2717 # Reject unsafe characters in $srcdir or the absolute working directory
2718 # name. Accept space and tab only in the latter.
2719 am_lf='
2720 '
2721 case `pwd` in
2722 *[\\\"\#\$\&\'\`$am_lf]*)
2723 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2724 esac
2725 case $srcdir in
2726 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2727 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2728 esac
2729
2730 # Do 'set' in a subshell so we don't clobber the current shell's
2731 # arguments. Must try -L first in case configure is actually a
2732 # symlink; some systems play weird games with the mod time of symlinks
2733 # (eg FreeBSD returns the mod time of the symlink's containing
2734 # directory).
2735 if (
2736 am_has_slept=no
2737 for am_try in 1 2; do
2738 echo "timestamp, slept: $am_has_slept" > conftest.file
2739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2740 if test "$*" = "X"; then
2741 # -L didn't work.
2742 set X `ls -t "$srcdir/configure" conftest.file`
2743 fi
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" "$LINENO" 5
2753 fi
2754 if test "$2" = conftest.file || test $am_try -eq 2; then
2755 break
2756 fi
2757 # Just in case.
2758 sleep 1
2759 am_has_slept=yes
2760 done
2761 test "$2" = conftest.file
2762 )
2763 then
2764 # Ok.
2765 :
2766 else
2767 as_fn_error $? "newly created file is older than distributed files!
2768 Check your system clock" "$LINENO" 5
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2771 printf "%s\n" "yes" >&6; }
2772 # If we didn't sleep, we still need to ensure time stamps of config.status and
2773 # generated files are strictly newer.
2774 am_sleep_pid=
2775 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2776 ( sleep 1 ) &
2777 am_sleep_pid=$!
2778 fi
2779
2780 rm -f conftest.file
2781
2782 test "$program_prefix" != NONE &&
2783 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2784 # Use a double $ so make ignores it.
2785 test "$program_suffix" != NONE &&
2786 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2787 # Double any \ or $.
2788 # By default was `s,x,x', remove it if useless.
2789 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2790 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2791
2792
2793 # Expand $ac_aux_dir to an absolute path.
2794 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2795
2796
2797 if test x"${MISSING+set}" != xset; then
2798 MISSING="\${SHELL} '$am_aux_dir/missing'"
2799 fi
2800 # Use eval to expand $SHELL
2801 if eval "$MISSING --is-lightweight"; then
2802 am_missing_run="$MISSING "
2803 else
2804 am_missing_run=
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2806 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2807 fi
2808
2809 if test x"${install_sh+set}" != xset; then
2810 case $am_aux_dir in
2811 *\ * | *\ *)
2812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813 *)
2814 install_sh="\${SHELL} $am_aux_dir/install-sh"
2815 esac
2816 fi
2817
2818 # Installed binaries are usually stripped using 'strip' when the user
2819 # run "make install-strip". However 'strip' might not be the right
2820 # tool to use in cross-compilation environments, therefore Automake
2821 # will honor the 'STRIP' environment variable to overrule this program.
2822 if test "$cross_compiling" != no; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}strip; ac_word=$2
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 printf %s "checking for $ac_word... " >&6; }
2828 if test ${ac_cv_prog_STRIP+y}
2829 then :
2830 printf %s "(cached) " >&6
2831 else $as_nop
2832 if test -n "$STRIP"; then
2833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 STRIP=$ac_cv_prog_STRIP
2857 if test -n "$STRIP"; then
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2859 printf "%s\n" "$STRIP" >&6; }
2860 else
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 printf "%s\n" "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$ac_cv_prog_STRIP"; then
2868 ac_ct_STRIP=$STRIP
2869 # Extract the first word of "strip", so it can be a program name with args.
2870 set dummy strip; ac_word=$2
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 printf %s "checking for $ac_word... " >&6; }
2873 if test ${ac_cv_prog_ac_ct_STRIP+y}
2874 then :
2875 printf %s "(cached) " >&6
2876 else $as_nop
2877 if test -n "$ac_ct_STRIP"; then
2878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 case $as_dir in #(((
2885 '') as_dir=./ ;;
2886 */) ;;
2887 *) as_dir=$as_dir/ ;;
2888 esac
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_ac_ct_STRIP="strip"
2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2902 if test -n "$ac_ct_STRIP"; then
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2904 printf "%s\n" "$ac_ct_STRIP" >&6; }
2905 else
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 printf "%s\n" "no" >&6; }
2908 fi
2909
2910 if test "x$ac_ct_STRIP" = x; then
2911 STRIP=":"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919 STRIP=$ac_ct_STRIP
2920 fi
2921 else
2922 STRIP="$ac_cv_prog_STRIP"
2923 fi
2924
2925 fi
2926 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2927
2928
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2930 printf %s "checking for a race-free mkdir -p... " >&6; }
2931 if test -z "$MKDIR_P"; then
2932 if test ${ac_cv_path_mkdir+y}
2933 then :
2934 printf %s "(cached) " >&6
2935 else $as_nop
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2938 do
2939 IFS=$as_save_IFS
2940 case $as_dir in #(((
2941 '') as_dir=./ ;;
2942 */) ;;
2943 *) as_dir=$as_dir/ ;;
2944 esac
2945 for ac_prog in mkdir gmkdir; do
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2948 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2949 'mkdir ('*'coreutils) '* | \
2950 'BusyBox '* | \
2951 'mkdir (fileutils) '4.1*)
2952 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2953 break 3;;
2954 esac
2955 done
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961
2962 test -d ./--version && rmdir ./--version
2963 if test ${ac_cv_path_mkdir+y}; then
2964 MKDIR_P="$ac_cv_path_mkdir -p"
2965 else
2966 # As a last resort, use the slow shell script. Don't cache a
2967 # value for MKDIR_P within a source directory, because that will
2968 # break other packages using the cache if that directory is
2969 # removed, or if the value is a relative name.
2970 MKDIR_P="$ac_install_sh -d"
2971 fi
2972 fi
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2974 printf "%s\n" "$MKDIR_P" >&6; }
2975
2976 for ac_prog in gawk mawk nawk awk
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 printf %s "checking for $ac_word... " >&6; }
2982 if test ${ac_cv_prog_AWK+y}
2983 then :
2984 printf %s "(cached) " >&6
2985 else $as_nop
2986 if test -n "$AWK"; then
2987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 case $as_dir in #(((
2994 '') as_dir=./ ;;
2995 */) ;;
2996 *) as_dir=$as_dir/ ;;
2997 esac
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_AWK="$ac_prog"
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 AWK=$ac_cv_prog_AWK
3011 if test -n "$AWK"; then
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3013 printf "%s\n" "$AWK" >&6; }
3014 else
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 printf "%s\n" "no" >&6; }
3017 fi
3018
3019
3020 test -n "$AWK" && break
3021 done
3022
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3024 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3025 set x ${MAKE-make}
3026 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3027 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else $as_nop
3031 cat >conftest.make <<\_ACEOF
3032 SHELL = /bin/sh
3033 all:
3034 @echo '@@@%%%=$(MAKE)=@@@%%%'
3035 _ACEOF
3036 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3037 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3038 *@@@%%%=?*=@@@%%%*)
3039 eval ac_cv_prog_make_${ac_make}_set=yes;;
3040 *)
3041 eval ac_cv_prog_make_${ac_make}_set=no;;
3042 esac
3043 rm -f conftest.make
3044 fi
3045 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 printf "%s\n" "yes" >&6; }
3048 SET_MAKE=
3049 else
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 printf "%s\n" "no" >&6; }
3052 SET_MAKE="MAKE=${MAKE-make}"
3053 fi
3054
3055 rm -rf .tst 2>/dev/null
3056 mkdir .tst 2>/dev/null
3057 if test -d .tst; then
3058 am__leading_dot=.
3059 else
3060 am__leading_dot=_
3061 fi
3062 rmdir .tst 2>/dev/null
3063
3064 # Check whether --enable-silent-rules was given.
3065 if test ${enable_silent_rules+y}
3066 then :
3067 enableval=$enable_silent_rules;
3068 fi
3069
3070 case $enable_silent_rules in # (((
3071 yes) AM_DEFAULT_VERBOSITY=0;;
3072 no) AM_DEFAULT_VERBOSITY=1;;
3073 *) AM_DEFAULT_VERBOSITY=1;;
3074 esac
3075 am_make=${MAKE-make}
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3077 printf %s "checking whether $am_make supports nested variables... " >&6; }
3078 if test ${am_cv_make_support_nested_variables+y}
3079 then :
3080 printf %s "(cached) " >&6
3081 else $as_nop
3082 if printf "%s\n" 'TRUE=$(BAR$(V))
3083 BAR0=false
3084 BAR1=true
3085 V=1
3086 am__doit:
3087 @$(TRUE)
3088 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3089 am_cv_make_support_nested_variables=yes
3090 else
3091 am_cv_make_support_nested_variables=no
3092 fi
3093 fi
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3095 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3096 if test $am_cv_make_support_nested_variables = yes; then
3097 AM_V='$(V)'
3098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3099 else
3100 AM_V=$AM_DEFAULT_VERBOSITY
3101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3102 fi
3103 AM_BACKSLASH='\'
3104
3105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3107 # is not polluted with repeated "-I."
3108 am__isrc=' -I$(srcdir)'
3109 # test to see if srcdir already configured
3110 if test -f $srcdir/config.status; then
3111 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3112 fi
3113 fi
3114
3115 # test whether we have cygpath
3116 if test -z "$CYGPATH_W"; then
3117 if (cygpath --version) >/dev/null 2>/dev/null; then
3118 CYGPATH_W='cygpath -w'
3119 else
3120 CYGPATH_W=echo
3121 fi
3122 fi
3123
3124
3125 # Define the identity of the package.
3126 PACKAGE='libXdamage'
3127 VERSION='1.1.6'
3128
3129
3130 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3131
3132
3133 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3134
3135 # Some tools Automake needs.
3136
3137 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138
3139
3140 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141
3142
3143 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144
3145
3146 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147
3148
3149 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3150
3151 # For better backward compatibility. To be removed once Automake 1.9.x
3152 # dies out for good. For more background, see:
3153 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3154 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3155 mkdir_p='$(MKDIR_P)'
3156
3157 # We need awk for the "check" target (and possibly the TAP driver). The
3158 # system "awk" is bad on some platforms.
3159 # Always define AMTAR for backward compatibility. Yes, it's still used
3160 # in the wild :-( We should find a proper way to deprecate it ...
3161 AMTAR='$${TAR-tar}'
3162
3163
3164 # We'll loop over all known methods to create a tar archive until one works.
3165 _am_tools='gnutar pax cpio none'
3166
3167 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168
3169
3170
3171
3172
3173 # Variables for tags utilities; see am/tags.am
3174 if test -z "$CTAGS"; then
3175 CTAGS=ctags
3176 fi
3177
3178 if test -z "$ETAGS"; then
3179 ETAGS=etags
3180 fi
3181
3182 if test -z "$CSCOPE"; then
3183 CSCOPE=cscope
3184 fi
3185
3186
3187
3188 # POSIX will say in a future version that running "rm -f" with no argument
3189 # is OK; and we want to be able to make that assumption in our Makefile
3190 # recipes. So use an aggressive probe to check that the usage we want is
3191 # actually supported "in the wild" to an acceptable degree.
3192 # See automake bug#10828.
3193 # To make any issue more visible, cause the running configure to be aborted
3194 # by default if the 'rm' program in use doesn't match our expectations; the
3195 # user can still override this though.
3196 if rm -f && rm -fr && rm -rf; then : OK; else
3197 cat >&2 <<'END'
3198 Oops!
3199
3200 Your 'rm' program seems unable to run without file operands specified
3201 on the command line, even when the '-f' option is present. This is contrary
3202 to the behaviour of most rm programs out there, and not conforming with
3203 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3204
3205 Please tell bug-automake@gnu.org about your system, including the value
3206 of your $PATH and any error possibly output before this message. This
3207 can help us improve future automake versions.
3208
3209 END
3210 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3211 echo 'Configuration will proceed anyway, since you have set the' >&2
3212 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3213 echo >&2
3214 else
3215 cat >&2 <<'END'
3216 Aborting the configuration process, to ensure you take notice of the issue.
3217
3218 You can download and install GNU coreutils to get an 'rm' implementation
3219 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3220
3221 If you want to complete the configuration process using your problematic
3222 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3223 to "yes", and re-run configure.
3224
3225 END
3226 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3227 fi
3228 fi
3229
3230
3231 # Initialize libtool
3232 case `pwd` in
3233 *\ * | *\ *)
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3235 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3236 esac
3237
3238
3239
3240 macro_version='2.4.7'
3241 macro_revision='2.4.7'
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256 ltmain=$ac_aux_dir/ltmain.sh
3257
3258
3259
3260 # Make sure we can run config.sub.
3261 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3262 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3263
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3265 printf %s "checking build system type... " >&6; }
3266 if test ${ac_cv_build+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else $as_nop
3270 ac_build_alias=$build_alias
3271 test "x$ac_build_alias" = x &&
3272 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3273 test "x$ac_build_alias" = x &&
3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3275 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3276 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3277
3278 fi
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3280 printf "%s\n" "$ac_cv_build" >&6; }
3281 case $ac_cv_build in
3282 *-*-*) ;;
3283 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3284 esac
3285 build=$ac_cv_build
3286 ac_save_IFS=$IFS; IFS='-'
3287 set x $ac_cv_build
3288 shift
3289 build_cpu=$1
3290 build_vendor=$2
3291 shift; shift
3292 # Remember, the first character of IFS is used to create $*,
3293 # except with old shells:
3294 build_os=$*
3295 IFS=$ac_save_IFS
3296 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3297
3298
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3300 printf %s "checking host system type... " >&6; }
3301 if test ${ac_cv_host+y}
3302 then :
3303 printf %s "(cached) " >&6
3304 else $as_nop
3305 if test "x$host_alias" = x; then
3306 ac_cv_host=$ac_cv_build
3307 else
3308 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3309 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3310 fi
3311
3312 fi
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3314 printf "%s\n" "$ac_cv_host" >&6; }
3315 case $ac_cv_host in
3316 *-*-*) ;;
3317 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3318 esac
3319 host=$ac_cv_host
3320 ac_save_IFS=$IFS; IFS='-'
3321 set x $ac_cv_host
3322 shift
3323 host_cpu=$1
3324 host_vendor=$2
3325 shift; shift
3326 # Remember, the first character of IFS is used to create $*,
3327 # except with old shells:
3328 host_os=$*
3329 IFS=$ac_save_IFS
3330 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3331
3332
3333 # Backslashify metacharacters that are still active within
3334 # double-quoted strings.
3335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3336
3337 # Same as above, but do not quote variable references.
3338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3339
3340 # Sed substitution to delay expansion of an escaped shell variable in a
3341 # double_quote_subst'ed string.
3342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3343
3344 # Sed substitution to delay expansion of an escaped single quote.
3345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3346
3347 # Sed substitution to avoid accidental globbing in evaled expressions
3348 no_glob_subst='s/\*/\\\*/g'
3349
3350 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3353
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3355 printf %s "checking how to print strings... " >&6; }
3356 # Test print first, because it will be a builtin if present.
3357 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3359 ECHO='print -r --'
3360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3361 ECHO='printf %s\n'
3362 else
3363 # Use this function as a fallback that always works.
3364 func_fallback_echo ()
3365 {
3366 eval 'cat <<_LTECHO_EOF
3367 $1
3368 _LTECHO_EOF'
3369 }
3370 ECHO='func_fallback_echo'
3371 fi
3372
3373 # func_echo_all arg...
3374 # Invoke $ECHO with all args, space-separated.
3375 func_echo_all ()
3376 {
3377 $ECHO ""
3378 }
3379
3380 case $ECHO in
3381 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3382 printf "%s\n" "printf" >&6; } ;;
3383 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3384 printf "%s\n" "print -r" >&6; } ;;
3385 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3386 printf "%s\n" "cat" >&6; } ;;
3387 esac
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411 DEPDIR="${am__leading_dot}deps"
3412
3413 ac_config_commands="$ac_config_commands depfiles"
3414
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3416 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3417 cat > confinc.mk << 'END'
3418 am__doit:
3419 @echo this is the am__doit target >confinc.out
3420 .PHONY: am__doit
3421 END
3422 am__include="#"
3423 am__quote=
3424 # BSD make does it like this.
3425 echo '.include "confinc.mk" # ignored' > confmf.BSD
3426 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3427 echo 'include confinc.mk # ignored' > confmf.GNU
3428 _am_result=no
3429 for s in GNU BSD; do
3430 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3431 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435 case $?:`cat confinc.out 2>/dev/null` in #(
3436 '0:this is the am__doit target') :
3437 case $s in #(
3438 BSD) :
3439 am__include='.include' am__quote='"' ;; #(
3440 *) :
3441 am__include='include' am__quote='' ;;
3442 esac ;; #(
3443 *) :
3444 ;;
3445 esac
3446 if test "$am__include" != "#"; then
3447 _am_result="yes ($s style)"
3448 break
3449 fi
3450 done
3451 rm -f confinc.* confmf.*
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3453 printf "%s\n" "${_am_result}" >&6; }
3454
3455 # Check whether --enable-dependency-tracking was given.
3456 if test ${enable_dependency_tracking+y}
3457 then :
3458 enableval=$enable_dependency_tracking;
3459 fi
3460
3461 if test "x$enable_dependency_tracking" != xno; then
3462 am_depcomp="$ac_aux_dir/depcomp"
3463 AMDEPBACKSLASH='\'
3464 am__nodep='_no'
3465 fi
3466 if test "x$enable_dependency_tracking" != xno; then
3467 AMDEP_TRUE=
3468 AMDEP_FALSE='#'
3469 else
3470 AMDEP_TRUE='#'
3471 AMDEP_FALSE=
3472 fi
3473
3474
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 printf %s "checking for $ac_word... " >&6; }
3485 if test ${ac_cv_prog_CC+y}
3486 then :
3487 printf %s "(cached) " >&6
3488 else $as_nop
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 case $as_dir in #(((
3497 '') as_dir=./ ;;
3498 */) ;;
3499 *) as_dir=$as_dir/ ;;
3500 esac
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 printf "%s\n" "$CC" >&6; }
3517 else
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 printf "%s\n" "no" >&6; }
3520 fi
3521
3522
3523 fi
3524 if test -z "$ac_cv_prog_CC"; then
3525 ac_ct_CC=$CC
3526 # Extract the first word of "gcc", so it can be a program name with args.
3527 set dummy gcc; ac_word=$2
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 printf %s "checking for $ac_word... " >&6; }
3530 if test ${ac_cv_prog_ac_ct_CC+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else $as_nop
3534 if test -n "$ac_ct_CC"; then
3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 case $as_dir in #(((
3542 '') as_dir=./ ;;
3543 */) ;;
3544 *) as_dir=$as_dir/ ;;
3545 esac
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 printf "%s\n" "$ac_ct_CC" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_CC+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else $as_nop
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_CC="${ac_tool_prefix}cc"
3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 printf "%s\n" "$CC" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 fi
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 printf %s "checking for $ac_word... " >&6; }
3633 if test ${ac_cv_prog_CC+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else $as_nop
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 if test $ac_prog_rejected = yes; then
3665 # We found a bogon in the path, so make sure we never use it.
3666 set dummy $ac_cv_prog_CC
3667 shift
3668 if test $# != 0; then
3669 # We chose a different compiler from the bogus one.
3670 # However, it has the same basename, so the bogon will be chosen
3671 # first if we set CC to just the basename; use the full file name.
3672 shift
3673 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3674 fi
3675 fi
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 for ac_prog in cl.exe
3692 do
3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 printf %s "checking for $ac_word... " >&6; }
3697 if test ${ac_cv_prog_CC+y}
3698 then :
3699 printf %s "(cached) " >&6
3700 else $as_nop
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 case $as_dir in #(((
3709 '') as_dir=./ ;;
3710 */) ;;
3711 *) as_dir=$as_dir/ ;;
3712 esac
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 printf "%s\n" "$CC" >&6; }
3729 else
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3732 fi
3733
3734
3735 test -n "$CC" && break
3736 done
3737 fi
3738 if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3741 do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 printf %s "checking for $ac_word... " >&6; }
3746 if test ${ac_cv_prog_ac_ct_CC+y}
3747 then :
3748 printf %s "(cached) " >&6
3749 else $as_nop
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 case $as_dir in #(((
3758 '') as_dir=./ ;;
3759 */) ;;
3760 *) as_dir=$as_dir/ ;;
3761 esac
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_CC="$ac_prog"
3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 printf "%s\n" "$ac_ct_CC" >&6; }
3778 else
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 printf "%s\n" "no" >&6; }
3781 fi
3782
3783
3784 test -n "$ac_ct_CC" && break
3785 done
3786
3787 if test "x$ac_ct_CC" = x; then
3788 CC=""
3789 else
3790 case $cross_compiling:$ac_tool_warned in
3791 yes:)
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 ac_tool_warned=yes ;;
3795 esac
3796 CC=$ac_ct_CC
3797 fi
3798 fi
3799
3800 fi
3801 if test -z "$CC"; then
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}clang; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_CC+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 if test -n "$CC"; then
3812 ac_cv_prog_CC="$CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}clang"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 printf "%s\n" "$CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844
3845 fi
3846 if test -z "$ac_cv_prog_CC"; then
3847 ac_ct_CC=$CC
3848 # Extract the first word of "clang", so it can be a program name with args.
3849 set dummy clang; ac_word=$2
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 printf %s "checking for $ac_word... " >&6; }
3852 if test ${ac_cv_prog_ac_ct_CC+y}
3853 then :
3854 printf %s "(cached) " >&6
3855 else $as_nop
3856 if test -n "$ac_ct_CC"; then
3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 case $as_dir in #(((
3864 '') as_dir=./ ;;
3865 */) ;;
3866 *) as_dir=$as_dir/ ;;
3867 esac
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CC="clang"
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 printf "%s\n" "$ac_ct_CC" >&6; }
3884 else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3887 fi
3888
3889 if test "x$ac_ct_CC" = x; then
3890 CC=""
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898 CC=$ac_ct_CC
3899 fi
3900 else
3901 CC="$ac_cv_prog_CC"
3902 fi
3903
3904 fi
3905
3906
3907 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error $? "no acceptable C compiler found in \$PATH
3910 See \`config.log' for more details" "$LINENO" 5; }
3911
3912 # Provide some information about the compiler.
3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3914 set X $ac_compile
3915 ac_compiler=$2
3916 for ac_option in --version -v -V -qversion -version; do
3917 { { ac_try="$ac_compiler $ac_option >&5"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 printf "%s\n" "$ac_try_echo"; } >&5
3924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3925 ac_status=$?
3926 if test -s conftest.err; then
3927 sed '10a\
3928 ... rest of stderr output deleted ...
3929 10q' conftest.err >conftest.er1
3930 cat conftest.er1 >&5
3931 fi
3932 rm -f conftest.er1 conftest.err
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }
3935 done
3936
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 int
3941 main (void)
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files_save=$ac_clean_files
3949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3950 # Try to create an executable without -o first, disregard a.out.
3951 # It will help us diagnose broken compilers, and finding out an intuition
3952 # of exeext.
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954 printf %s "checking whether the C compiler works... " >&6; }
3955 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3956
3957 # The possible output files:
3958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3959
3960 ac_rmfiles=
3961 for ac_file in $ac_files
3962 do
3963 case $ac_file in
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3965 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3966 esac
3967 done
3968 rm -f $ac_rmfiles
3969
3970 if { { ac_try="$ac_link_default"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 printf "%s\n" "$ac_try_echo"; } >&5
3977 (eval "$ac_link_default") 2>&5
3978 ac_status=$?
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981 then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3985 # so that the user can short-circuit this test for compilers unknown to
3986 # Autoconf.
3987 for ac_file in $ac_files ''
3988 do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
3998 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
4007 break;;
4008 * )
4009 break;;
4010 esac
4011 done
4012 test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
4014 else $as_nop
4015 ac_file=''
4016 fi
4017 if test -z "$ac_file"
4018 then :
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 printf "%s\n" "no" >&6; }
4021 printf "%s\n" "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error 77 "C compiler cannot create executables
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 else $as_nop
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030 printf "%s\n" "yes" >&6; }
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4033 printf %s "checking for C compiler default output file name... " >&6; }
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4035 printf "%s\n" "$ac_file" >&6; }
4036 ac_exeext=$ac_cv_exeext
4037
4038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4039 ac_clean_files=$ac_clean_files_save
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4041 printf %s "checking for suffix of executables... " >&6; }
4042 if { { ac_try="$ac_link"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 printf "%s\n" "$ac_try_echo"; } >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }
4053 then :
4054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4056 # work properly (i.e., refer to `conftest.exe'), while it won't with
4057 # `rm'.
4058 for ac_file in conftest.exe conftest conftest.*; do
4059 test -f "$ac_file" || continue
4060 case $ac_file in
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063 break;;
4064 * ) break;;
4065 esac
4066 done
4067 else $as_nop
4068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4071 See \`config.log' for more details" "$LINENO" 5; }
4072 fi
4073 rm -f conftest conftest$ac_cv_exeext
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4075 printf "%s\n" "$ac_cv_exeext" >&6; }
4076
4077 rm -f conftest.$ac_ext
4078 EXEEXT=$ac_cv_exeext
4079 ac_exeext=$EXEEXT
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <stdio.h>
4083 int
4084 main (void)
4085 {
4086 FILE *f = fopen ("conftest.out", "w");
4087 return ferror (f) || fclose (f) != 0;
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 ac_clean_files="$ac_clean_files conftest.out"
4094 # Check that the compiler produces executables we can run. If not, either
4095 # the compiler is broken, or we cross compile.
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4097 printf %s "checking whether we are cross compiling... " >&6; }
4098 if test "$cross_compiling" != yes; then
4099 { { ac_try="$ac_link"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 printf "%s\n" "$ac_try_echo"; } >&5
4106 (eval "$ac_link") 2>&5
4107 ac_status=$?
4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }
4110 if { ac_try='./conftest$ac_cv_exeext'
4111 { { case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117 (eval "$ac_try") 2>&5
4118 ac_status=$?
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; }; then
4121 cross_compiling=no
4122 else
4123 if test "$cross_compiling" = maybe; then
4124 cross_compiling=yes
4125 else
4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error 77 "cannot run C compiled programs.
4129 If you meant to cross compile, use \`--host'.
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132 fi
4133 fi
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4135 printf "%s\n" "$cross_compiling" >&6; }
4136
4137 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4138 ac_clean_files=$ac_clean_files_save
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4140 printf %s "checking for suffix of object files... " >&6; }
4141 if test ${ac_cv_objext+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else $as_nop
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main (void)
4150 {
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.o conftest.obj
4157 if { { ac_try="$ac_compile"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 printf "%s\n" "$ac_try_echo"; } >&5
4164 (eval "$ac_compile") 2>&5
4165 ac_status=$?
4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 then :
4169 for ac_file in conftest.o conftest.obj conftest.*; do
4170 test -f "$ac_file" || continue;
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4174 break;;
4175 esac
4176 done
4177 else $as_nop
4178 printf "%s\n" "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "cannot compute suffix of object files: cannot compile
4184 See \`config.log' for more details" "$LINENO" 5; }
4185 fi
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 fi
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4189 printf "%s\n" "$ac_cv_objext" >&6; }
4190 OBJEXT=$ac_cv_objext
4191 ac_objext=$OBJEXT
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4193 printf %s "checking whether the compiler supports GNU C... " >&6; }
4194 if test ${ac_cv_c_compiler_gnu+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 int
4202 main (void)
4203 {
4204 #ifndef __GNUC__
4205 choke me
4206 #endif
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_compiler_gnu=yes
4215 else $as_nop
4216 ac_compiler_gnu=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4223 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226 if test $ac_compiler_gnu = yes; then
4227 GCC=yes
4228 else
4229 GCC=
4230 fi
4231 ac_test_CFLAGS=${CFLAGS+y}
4232 ac_save_CFLAGS=$CFLAGS
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4234 printf %s "checking whether $CC accepts -g... " >&6; }
4235 if test ${ac_cv_prog_cc_g+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else $as_nop
4239 ac_save_c_werror_flag=$ac_c_werror_flag
4240 ac_c_werror_flag=yes
4241 ac_cv_prog_cc_g=no
4242 CFLAGS="-g"
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 int
4247 main (void)
4248 {
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"
4255 then :
4256 ac_cv_prog_cc_g=yes
4257 else $as_nop
4258 CFLAGS=""
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main (void)
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"
4271 then :
4272
4273 else $as_nop
4274 ac_c_werror_flag=$ac_save_c_werror_flag
4275 CFLAGS="-g"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278
4279 int
4280 main (void)
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_compile "$LINENO"
4288 then :
4289 ac_cv_prog_cc_g=yes
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4297 fi
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4299 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4300 if test $ac_test_CFLAGS; then
4301 CFLAGS=$ac_save_CFLAGS
4302 elif test $ac_cv_prog_cc_g = yes; then
4303 if test "$GCC" = yes; then
4304 CFLAGS="-g -O2"
4305 else
4306 CFLAGS="-g"
4307 fi
4308 else
4309 if test "$GCC" = yes; then
4310 CFLAGS="-O2"
4311 else
4312 CFLAGS=
4313 fi
4314 fi
4315 ac_prog_cc_stdc=no
4316 if test x$ac_prog_cc_stdc = xno
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4319 printf %s "checking for $CC option to enable C11 features... " >&6; }
4320 if test ${ac_cv_prog_cc_c11+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else $as_nop
4324 ac_cv_prog_cc_c11=no
4325 ac_save_CC=$CC
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 $ac_c_conftest_c11_program
4329 _ACEOF
4330 for ac_arg in '' -std=gnu11
4331 do
4332 CC="$ac_save_CC $ac_arg"
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_cv_prog_cc_c11=$ac_arg
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.beam
4338 test "x$ac_cv_prog_cc_c11" != "xno" && break
4339 done
4340 rm -f conftest.$ac_ext
4341 CC=$ac_save_CC
4342 fi
4343
4344 if test "x$ac_cv_prog_cc_c11" = xno
4345 then :
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347 printf "%s\n" "unsupported" >&6; }
4348 else $as_nop
4349 if test "x$ac_cv_prog_cc_c11" = x
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352 printf "%s\n" "none needed" >&6; }
4353 else $as_nop
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4355 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4356 CC="$CC $ac_cv_prog_cc_c11"
4357 fi
4358 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4359 ac_prog_cc_stdc=c11
4360 fi
4361 fi
4362 if test x$ac_prog_cc_stdc = xno
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4365 printf %s "checking for $CC option to enable C99 features... " >&6; }
4366 if test ${ac_cv_prog_cc_c99+y}
4367 then :
4368 printf %s "(cached) " >&6
4369 else $as_nop
4370 ac_cv_prog_cc_c99=no
4371 ac_save_CC=$CC
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 $ac_c_conftest_c99_program
4375 _ACEOF
4376 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4377 do
4378 CC="$ac_save_CC $ac_arg"
4379 if ac_fn_c_try_compile "$LINENO"
4380 then :
4381 ac_cv_prog_cc_c99=$ac_arg
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.beam
4384 test "x$ac_cv_prog_cc_c99" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4388 fi
4389
4390 if test "x$ac_cv_prog_cc_c99" = xno
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4393 printf "%s\n" "unsupported" >&6; }
4394 else $as_nop
4395 if test "x$ac_cv_prog_cc_c99" = x
4396 then :
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398 printf "%s\n" "none needed" >&6; }
4399 else $as_nop
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4401 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4402 CC="$CC $ac_cv_prog_cc_c99"
4403 fi
4404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4405 ac_prog_cc_stdc=c99
4406 fi
4407 fi
4408 if test x$ac_prog_cc_stdc = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4411 printf %s "checking for $CC option to enable C89 features... " >&6; }
4412 if test ${ac_cv_prog_cc_c89+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else $as_nop
4416 ac_cv_prog_cc_c89=no
4417 ac_save_CC=$CC
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 $ac_c_conftest_c89_program
4421 _ACEOF
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423 do
4424 CC="$ac_save_CC $ac_arg"
4425 if ac_fn_c_try_compile "$LINENO"
4426 then :
4427 ac_cv_prog_cc_c89=$ac_arg
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.beam
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC
4434 fi
4435
4436 if test "x$ac_cv_prog_cc_c89" = xno
4437 then :
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4439 printf "%s\n" "unsupported" >&6; }
4440 else $as_nop
4441 if test "x$ac_cv_prog_cc_c89" = x
4442 then :
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4444 printf "%s\n" "none needed" >&6; }
4445 else $as_nop
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4448 CC="$CC $ac_cv_prog_cc_c89"
4449 fi
4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4451 ac_prog_cc_stdc=c89
4452 fi
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4468 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4469 if test ${am_cv_prog_cc_c_o+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else $as_nop
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main (void)
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 # Make sure it works both with $CC and with simple cc.
4485 # Following AC_PROG_CC_C_O, we do the test twice because some
4486 # compilers refuse to overwrite an existing .o file with -o,
4487 # though they will create one.
4488 am_cv_prog_cc_c_o=yes
4489 for am_i in 1 2; do
4490 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4491 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } \
4495 && test -f conftest2.$ac_objext; then
4496 : OK
4497 else
4498 am_cv_prog_cc_c_o=no
4499 break
4500 fi
4501 done
4502 rm -f core conftest*
4503 unset am_i
4504 fi
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4506 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4507 if test "$am_cv_prog_cc_c_o" != yes; then
4508 # Losing compiler, so override with the script.
4509 # FIXME: It is wrong to rewrite CC.
4510 # But if we don't then we get into trouble of one sort or another.
4511 # A longer-term fix would be to have automake use am__CC in this case,
4512 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4513 CC="$am_aux_dir/compile $CC"
4514 fi
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522 depcc="$CC" am_compiler_list=
4523
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4525 printf %s "checking dependency style of $depcc... " >&6; }
4526 if test ${am_cv_CC_dependencies_compiler_type+y}
4527 then :
4528 printf %s "(cached) " >&6
4529 else $as_nop
4530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4531 # We make a subdir and do the tests there. Otherwise we can end up
4532 # making bogus files that we don't know about and never remove. For
4533 # instance it was reported that on HP-UX the gcc test will end up
4534 # making a dummy file named 'D' -- because '-MD' means "put the output
4535 # in D".
4536 rm -rf conftest.dir
4537 mkdir conftest.dir
4538 # Copy depcomp to subdir because otherwise we won't find it if we're
4539 # using a relative directory.
4540 cp "$am_depcomp" conftest.dir
4541 cd conftest.dir
4542 # We will build objects and dependencies in a subdirectory because
4543 # it helps to detect inapplicable dependency modes. For instance
4544 # both Tru64's cc and ICC support -MD to output dependencies as a
4545 # side effect of compilation, but ICC will put the dependencies in
4546 # the current directory while Tru64 will put them in the object
4547 # directory.
4548 mkdir sub
4549
4550 am_cv_CC_dependencies_compiler_type=none
4551 if test "$am_compiler_list" = ""; then
4552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 fi
4554 am__universal=false
4555 case " $depcc " in #(
4556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4557 esac
4558
4559 for depmode in $am_compiler_list; do
4560 # Setup a source with many dependencies, because some compilers
4561 # like to wrap large dependency lists on column 80 (with \), and
4562 # we should not choose a depcomp mode which is confused by this.
4563 #
4564 # We need to recreate these files for each test, as the compiler may
4565 # overwrite some of them when testing with obscure command lines.
4566 # This happens at least with the AIX C compiler.
4567 : > sub/conftest.c
4568 for i in 1 2 3 4 5 6; do
4569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4570 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4571 # Solaris 10 /bin/sh.
4572 echo '/* dummy */' > sub/conftst$i.h
4573 done
4574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4575
4576 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4577 # mode. It turns out that the SunPro C++ compiler does not properly
4578 # handle '-M -o', and we need to detect this. Also, some Intel
4579 # versions had trouble with output in subdirs.
4580 am__obj=sub/conftest.${OBJEXT-o}
4581 am__minus_obj="-o $am__obj"
4582 case $depmode in
4583 gcc)
4584 # This depmode causes a compiler race in universal mode.
4585 test "$am__universal" = false || continue
4586 ;;
4587 nosideeffect)
4588 # After this tag, mechanisms are not by side-effect, so they'll
4589 # only be used when explicitly requested.
4590 if test "x$enable_dependency_tracking" = xyes; then
4591 continue
4592 else
4593 break
4594 fi
4595 ;;
4596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4597 # This compiler won't grok '-c -o', but also, the minuso test has
4598 # not run yet. These depmodes are late enough in the game, and
4599 # so weak that their functioning should not be impacted.
4600 am__obj=conftest.${OBJEXT-o}
4601 am__minus_obj=
4602 ;;
4603 none) break ;;
4604 esac
4605 if depmode=$depmode \
4606 source=sub/conftest.c object=$am__obj \
4607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4609 >/dev/null 2>conftest.err &&
4610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4614 # icc doesn't choke on unknown options, it will just issue warnings
4615 # or remarks (even with -Werror). So we grep stderr for any message
4616 # that says an option was ignored or not supported.
4617 # When given -MP, icc 7.0 and 7.1 complain thusly:
4618 # icc: Command line warning: ignoring option '-M'; no argument required
4619 # The diagnosis changed in icc 8.0:
4620 # icc: Command line remark: option '-MP' not supported
4621 if (grep 'ignoring option' conftest.err ||
4622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4623 am_cv_CC_dependencies_compiler_type=$depmode
4624 break
4625 fi
4626 fi
4627 done
4628
4629 cd ..
4630 rm -rf conftest.dir
4631 else
4632 am_cv_CC_dependencies_compiler_type=none
4633 fi
4634
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4637 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4638 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4639
4640 if
4641 test "x$enable_dependency_tracking" != xno \
4642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4643 am__fastdepCC_TRUE=
4644 am__fastdepCC_FALSE='#'
4645 else
4646 am__fastdepCC_TRUE='#'
4647 am__fastdepCC_FALSE=
4648 fi
4649
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4652 printf %s "checking for a sed that does not truncate output... " >&6; }
4653 if test ${ac_cv_path_SED+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4658 for ac_i in 1 2 3 4 5 6 7; do
4659 ac_script="$ac_script$as_nl$ac_script"
4660 done
4661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4662 { ac_script=; unset ac_script;}
4663 if test -z "$SED"; then
4664 ac_path_SED_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 case $as_dir in #(((
4671 '') as_dir=./ ;;
4672 */) ;;
4673 *) as_dir=$as_dir/ ;;
4674 esac
4675 for ac_prog in sed gsed
4676 do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4679 as_fn_executable_p "$ac_path_SED" || continue
4680 # Check for GNU ac_path_SED and select it if it is found.
4681 # Check for GNU $ac_path_SED
4682 case `"$ac_path_SED" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4685 *)
4686 ac_count=0
4687 printf %s 0123456789 >"conftest.in"
4688 while :
4689 do
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 printf "%s\n" '' >> "conftest.nl"
4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_SED_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_SED="$ac_path_SED"
4700 ac_path_SED_max=$ac_count
4701 fi
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708 $ac_path_SED_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_SED"; then
4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4715 fi
4716 else
4717 ac_cv_path_SED=$SED
4718 fi
4719
4720 fi
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722 printf "%s\n" "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724 rm -f conftest.sed
4725
4726 test -z "$SED" && SED=sed
4727 Xsed="$SED -e 1s/^X//"
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4740 printf %s "checking for grep that handles long lines and -e... " >&6; }
4741 if test ${ac_cv_path_GREP+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 if test -z "$GREP"; then
4746 ac_path_GREP_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750 do
4751 IFS=$as_save_IFS
4752 case $as_dir in #(((
4753 '') as_dir=./ ;;
4754 */) ;;
4755 *) as_dir=$as_dir/ ;;
4756 esac
4757 for ac_prog in grep ggrep
4758 do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4761 as_fn_executable_p "$ac_path_GREP" || continue
4762 # Check for GNU ac_path_GREP and select it if it is found.
4763 # Check for GNU $ac_path_GREP
4764 case `"$ac_path_GREP" --version 2>&1` in
4765 *GNU*)
4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4767 *)
4768 ac_count=0
4769 printf %s 0123456789 >"conftest.in"
4770 while :
4771 do
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 printf "%s\n" 'GREP' >> "conftest.nl"
4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_GREP="$ac_path_GREP"
4782 ac_path_GREP_max=$ac_count
4783 fi
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 esac
4789
4790 $ac_path_GREP_found && break 3
4791 done
4792 done
4793 done
4794 IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_GREP"; then
4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797 fi
4798 else
4799 ac_cv_path_GREP=$GREP
4800 fi
4801
4802 fi
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4804 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4805 GREP="$ac_cv_path_GREP"
4806
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4809 printf %s "checking for egrep... " >&6; }
4810 if test ${ac_cv_path_EGREP+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else $as_nop
4814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4815 then ac_cv_path_EGREP="$GREP -E"
4816 else
4817 if test -z "$EGREP"; then
4818 ac_path_EGREP_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 do
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_prog in egrep
4830 do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4833 as_fn_executable_p "$ac_path_EGREP" || continue
4834 # Check for GNU ac_path_EGREP and select it if it is found.
4835 # Check for GNU $ac_path_EGREP
4836 case `"$ac_path_EGREP" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4839 *)
4840 ac_count=0
4841 printf %s 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 printf "%s\n" 'EGREP' >> "conftest.nl"
4848 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_EGREP="$ac_path_EGREP"
4854 ac_path_EGREP_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862 $ac_path_EGREP_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_EGREP"; then
4868 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 fi
4870 else
4871 ac_cv_path_EGREP=$EGREP
4872 fi
4873
4874 fi
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4877 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4878 EGREP="$ac_cv_path_EGREP"
4879
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 printf %s "checking for fgrep... " >&6; }
4883 if test ${ac_cv_path_FGREP+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4888 then ac_cv_path_FGREP="$GREP -F"
4889 else
4890 if test -z "$FGREP"; then
4891 ac_path_FGREP_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 do
4896 IFS=$as_save_IFS
4897 case $as_dir in #(((
4898 '') as_dir=./ ;;
4899 */) ;;
4900 *) as_dir=$as_dir/ ;;
4901 esac
4902 for ac_prog in fgrep
4903 do
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4906 as_fn_executable_p "$ac_path_FGREP" || continue
4907 # Check for GNU ac_path_FGREP and select it if it is found.
4908 # Check for GNU $ac_path_FGREP
4909 case `"$ac_path_FGREP" --version 2>&1` in
4910 *GNU*)
4911 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4912 *)
4913 ac_count=0
4914 printf %s 0123456789 >"conftest.in"
4915 while :
4916 do
4917 cat "conftest.in" "conftest.in" >"conftest.tmp"
4918 mv "conftest.tmp" "conftest.in"
4919 cp "conftest.in" "conftest.nl"
4920 printf "%s\n" 'FGREP' >> "conftest.nl"
4921 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4923 as_fn_arith $ac_count + 1 && ac_count=$as_val
4924 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4925 # Best one so far, save it but keep looking for a better one
4926 ac_cv_path_FGREP="$ac_path_FGREP"
4927 ac_path_FGREP_max=$ac_count
4928 fi
4929 # 10*(2^10) chars as input seems more than enough
4930 test $ac_count -gt 10 && break
4931 done
4932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4933 esac
4934
4935 $ac_path_FGREP_found && break 3
4936 done
4937 done
4938 done
4939 IFS=$as_save_IFS
4940 if test -z "$ac_cv_path_FGREP"; then
4941 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942 fi
4943 else
4944 ac_cv_path_FGREP=$FGREP
4945 fi
4946
4947 fi
4948 fi
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4950 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4951 FGREP="$ac_cv_path_FGREP"
4952
4953
4954 test -z "$GREP" && GREP=grep
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 # Check whether --with-gnu-ld was given.
4975 if test ${with_gnu_ld+y}
4976 then :
4977 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4978 else $as_nop
4979 with_gnu_ld=no
4980 fi
4981
4982 ac_prog=ld
4983 if test yes = "$GCC"; then
4984 # Check if gcc -print-prog-name=ld gives a path.
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4986 printf %s "checking for ld used by $CC... " >&6; }
4987 case $host in
4988 *-*-mingw*)
4989 # gcc leaves a trailing carriage return, which upsets mingw
4990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4991 *)
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4993 esac
4994 case $ac_prog in
4995 # Accept absolute paths.
4996 [\\/]* | ?:[\\/]*)
4997 re_direlt='/[^/][^/]*/\.\./'
4998 # Canonicalize the pathname of ld
4999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5002 done
5003 test -z "$LD" && LD=$ac_prog
5004 ;;
5005 "")
5006 # If it fails, then pretend we aren't using GCC.
5007 ac_prog=ld
5008 ;;
5009 *)
5010 # If it is relative, then search for the first ld in PATH.
5011 with_gnu_ld=unknown
5012 ;;
5013 esac
5014 elif test yes = "$with_gnu_ld"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5016 printf %s "checking for GNU ld... " >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5019 printf %s "checking for non-GNU ld... " >&6; }
5020 fi
5021 if test ${lt_cv_path_LD+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else $as_nop
5025 if test -z "$LD"; then
5026 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH; do
5028 IFS=$lt_save_ifs
5029 test -z "$ac_dir" && ac_dir=.
5030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031 lt_cv_path_LD=$ac_dir/$ac_prog
5032 # Check to see if the program is GNU ld. I'd rather use --version,
5033 # but apparently some variants of GNU ld only accept -v.
5034 # Break only if it was the GNU/non-GNU ld that we prefer.
5035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5036 *GNU* | *'with BFD'*)
5037 test no != "$with_gnu_ld" && break
5038 ;;
5039 *)
5040 test yes != "$with_gnu_ld" && break
5041 ;;
5042 esac
5043 fi
5044 done
5045 IFS=$lt_save_ifs
5046 else
5047 lt_cv_path_LD=$LD # Let the user override the test with a path.
5048 fi
5049 fi
5050
5051 LD=$lt_cv_path_LD
5052 if test -n "$LD"; then
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5054 printf "%s\n" "$LD" >&6; }
5055 else
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 printf "%s\n" "no" >&6; }
5058 fi
5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5061 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5062 if test ${lt_cv_prog_gnu_ld+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067 case `$LD -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 lt_cv_prog_gnu_ld=yes
5070 ;;
5071 *)
5072 lt_cv_prog_gnu_ld=no
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5078 with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090 if test ${lt_cv_path_NM+y}
5091 then :
5092 printf %s "(cached) " >&6
5093 else $as_nop
5094 if test -n "$NM"; then
5095 # Let the user override the test.
5096 lt_cv_path_NM=$NM
5097 else
5098 lt_nm_to_check=${ac_tool_prefix}nm
5099 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5100 lt_nm_to_check="$lt_nm_to_check nm"
5101 fi
5102 for lt_tmp_nm in $lt_nm_to_check; do
5103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5105 IFS=$lt_save_ifs
5106 test -z "$ac_dir" && ac_dir=.
5107 tmp_nm=$ac_dir/$lt_tmp_nm
5108 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5109 # Check to see if the nm accepts a BSD-compat flag.
5110 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5111 # nm: unknown option "B" ignored
5112 # Tru64's nm complains that /dev/null is an invalid object file
5113 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5114 case $build_os in
5115 mingw*) lt_bad_file=conftest.nm/nofile ;;
5116 *) lt_bad_file=/dev/null ;;
5117 esac
5118 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5119 *$lt_bad_file* | *'Invalid file or object type'*)
5120 lt_cv_path_NM="$tmp_nm -B"
5121 break 2
5122 ;;
5123 *)
5124 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5125 */dev/null*)
5126 lt_cv_path_NM="$tmp_nm -p"
5127 break 2
5128 ;;
5129 *)
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5132 ;;
5133 esac
5134 ;;
5135 esac
5136 fi
5137 done
5138 IFS=$lt_save_ifs
5139 done
5140 : ${lt_cv_path_NM=no}
5141 fi
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5144 printf "%s\n" "$lt_cv_path_NM" >&6; }
5145 if test no != "$lt_cv_path_NM"; then
5146 NM=$lt_cv_path_NM
5147 else
5148 # Didn't find any BSD compatible name lister, look for dumpbin.
5149 if test -n "$DUMPBIN"; then :
5150 # Let the user override the test.
5151 else
5152 if test -n "$ac_tool_prefix"; then
5153 for ac_prog in dumpbin "link -dump"
5154 do
5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 printf %s "checking for $ac_word... " >&6; }
5159 if test ${ac_cv_prog_DUMPBIN+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else $as_nop
5163 if test -n "$DUMPBIN"; then
5164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 case $as_dir in #(((
5171 '') as_dir=./ ;;
5172 */) ;;
5173 *) as_dir=$as_dir/ ;;
5174 esac
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 DUMPBIN=$ac_cv_prog_DUMPBIN
5188 if test -n "$DUMPBIN"; then
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5190 printf "%s\n" "$DUMPBIN" >&6; }
5191 else
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 printf "%s\n" "no" >&6; }
5194 fi
5195
5196
5197 test -n "$DUMPBIN" && break
5198 done
5199 fi
5200 if test -z "$DUMPBIN"; then
5201 ac_ct_DUMPBIN=$DUMPBIN
5202 for ac_prog in dumpbin "link -dump"
5203 do
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 printf %s "checking for $ac_word... " >&6; }
5208 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5209 then :
5210 printf %s "(cached) " >&6
5211 else $as_nop
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 case $as_dir in #(((
5220 '') as_dir=./ ;;
5221 */) ;;
5222 *) as_dir=$as_dir/ ;;
5223 esac
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5237 if test -n "$ac_ct_DUMPBIN"; then
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5239 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5240 else
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 printf "%s\n" "no" >&6; }
5243 fi
5244
5245
5246 test -n "$ac_ct_DUMPBIN" && break
5247 done
5248
5249 if test "x$ac_ct_DUMPBIN" = x; then
5250 DUMPBIN=":"
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 DUMPBIN=$ac_ct_DUMPBIN
5259 fi
5260 fi
5261
5262 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5263 *COFF*)
5264 DUMPBIN="$DUMPBIN -symbols -headers"
5265 ;;
5266 *)
5267 DUMPBIN=:
5268 ;;
5269 esac
5270 fi
5271
5272 if test : != "$DUMPBIN"; then
5273 NM=$DUMPBIN
5274 fi
5275 fi
5276 test -z "$NM" && NM=nm
5277
5278
5279
5280
5281
5282
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5284 printf %s "checking the name lister ($NM) interface... " >&6; }
5285 if test ${lt_cv_nm_interface+y}
5286 then :
5287 printf %s "(cached) " >&6
5288 else $as_nop
5289 lt_cv_nm_interface="BSD nm"
5290 echo "int some_variable = 0;" > conftest.$ac_ext
5291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5292 (eval "$ac_compile" 2>conftest.err)
5293 cat conftest.err >&5
5294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5296 cat conftest.err >&5
5297 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5298 cat conftest.out >&5
5299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5300 lt_cv_nm_interface="MS dumpbin"
5301 fi
5302 rm -f conftest*
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5305 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5308 printf %s "checking whether ln -s works... " >&6; }
5309 LN_S=$as_ln_s
5310 if test "$LN_S" = "ln -s"; then
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 printf "%s\n" "yes" >&6; }
5313 else
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5315 printf "%s\n" "no, using $LN_S" >&6; }
5316 fi
5317
5318 # find the maximum length of command line arguments
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5320 printf %s "checking the maximum length of command line arguments... " >&6; }
5321 if test ${lt_cv_sys_max_cmd_len+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 i=0
5326 teststring=ABCD
5327
5328 case $build_os in
5329 msdosdjgpp*)
5330 # On DJGPP, this test can blow up pretty badly due to problems in libc
5331 # (any single argument exceeding 2000 bytes causes a buffer overrun
5332 # during glob expansion). Even if it were fixed, the result of this
5333 # check would be larger than it should be.
5334 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5335 ;;
5336
5337 gnu*)
5338 # Under GNU Hurd, this test is not required because there is
5339 # no limit to the length of command line arguments.
5340 # Libtool will interpret -1 as no limit whatsoever
5341 lt_cv_sys_max_cmd_len=-1;
5342 ;;
5343
5344 cygwin* | mingw* | cegcc*)
5345 # On Win9x/ME, this test blows up -- it succeeds, but takes
5346 # about 5 minutes as the teststring grows exponentially.
5347 # Worse, since 9x/ME are not pre-emptively multitasking,
5348 # you end up with a "frozen" computer, even though with patience
5349 # the test eventually succeeds (with a max line length of 256k).
5350 # Instead, let's just punt: use the minimum linelength reported by
5351 # all of the supported platforms: 8192 (on NT/2K/XP).
5352 lt_cv_sys_max_cmd_len=8192;
5353 ;;
5354
5355 mint*)
5356 # On MiNT this can take a long time and run out of memory.
5357 lt_cv_sys_max_cmd_len=8192;
5358 ;;
5359
5360 amigaos*)
5361 # On AmigaOS with pdksh, this test takes hours, literally.
5362 # So we just punt and use a minimum line length of 8192.
5363 lt_cv_sys_max_cmd_len=8192;
5364 ;;
5365
5366 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5367 # This has been around since 386BSD, at least. Likely further.
5368 if test -x /sbin/sysctl; then
5369 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5370 elif test -x /usr/sbin/sysctl; then
5371 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5372 else
5373 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5374 fi
5375 # And add a safety zone
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5378 ;;
5379
5380 interix*)
5381 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5382 lt_cv_sys_max_cmd_len=196608
5383 ;;
5384
5385 os2*)
5386 # The test takes a long time on OS/2.
5387 lt_cv_sys_max_cmd_len=8192
5388 ;;
5389
5390 osf*)
5391 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5392 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5393 # nice to cause kernel panics so lets avoid the loop below.
5394 # First set a reasonable default.
5395 lt_cv_sys_max_cmd_len=16384
5396 #
5397 if test -x /sbin/sysconfig; then
5398 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5399 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5400 esac
5401 fi
5402 ;;
5403 sco3.2v5*)
5404 lt_cv_sys_max_cmd_len=102400
5405 ;;
5406 sysv5* | sco5v6* | sysv4.2uw2*)
5407 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5408 if test -n "$kargmax"; then
5409 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5410 else
5411 lt_cv_sys_max_cmd_len=32768
5412 fi
5413 ;;
5414 *)
5415 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5416 if test -n "$lt_cv_sys_max_cmd_len" && \
5417 test undefined != "$lt_cv_sys_max_cmd_len"; then
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5420 else
5421 # Make teststring a little bigger before we do anything with it.
5422 # a 1K string should be a reasonable start.
5423 for i in 1 2 3 4 5 6 7 8; do
5424 teststring=$teststring$teststring
5425 done
5426 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5427 # If test is not a shell built-in, we'll probably end up computing a
5428 # maximum length that is only half of the actual maximum length, but
5429 # we can't tell.
5430 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5431 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5432 test 17 != "$i" # 1/2 MB should be enough
5433 do
5434 i=`expr $i + 1`
5435 teststring=$teststring$teststring
5436 done
5437 # Only check the string length outside the loop.
5438 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5439 teststring=
5440 # Add a significant safety factor because C++ compilers can tack on
5441 # massive amounts of additional arguments before passing them to the
5442 # linker. It appears as though 1/2 is a usable value.
5443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444 fi
5445 ;;
5446 esac
5447
5448 fi
5449
5450 if test -n "$lt_cv_sys_max_cmd_len"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5452 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5453 else
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5455 printf "%s\n" "none" >&6; }
5456 fi
5457 max_cmd_len=$lt_cv_sys_max_cmd_len
5458
5459
5460
5461
5462
5463
5464 : ${CP="cp -f"}
5465 : ${MV="mv -f"}
5466 : ${RM="rm -f"}
5467
5468 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5469 lt_unset=unset
5470 else
5471 lt_unset=false
5472 fi
5473
5474
5475
5476
5477
5478 # test EBCDIC or ASCII
5479 case `echo X|tr X '\101'` in
5480 A) # ASCII based system
5481 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5482 lt_SP2NL='tr \040 \012'
5483 lt_NL2SP='tr \015\012 \040\040'
5484 ;;
5485 *) # EBCDIC based system
5486 lt_SP2NL='tr \100 \n'
5487 lt_NL2SP='tr \r\n \100\100'
5488 ;;
5489 esac
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5500 printf %s "checking how to convert $build file names to $host format... " >&6; }
5501 if test ${lt_cv_to_host_file_cmd+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 case $host in
5506 *-*-mingw* )
5507 case $build in
5508 *-*-mingw* ) # actually msys
5509 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5510 ;;
5511 *-*-cygwin* )
5512 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5513 ;;
5514 * ) # otherwise, assume *nix
5515 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5516 ;;
5517 esac
5518 ;;
5519 *-*-cygwin* )
5520 case $build in
5521 *-*-mingw* ) # actually msys
5522 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5523 ;;
5524 *-*-cygwin* )
5525 lt_cv_to_host_file_cmd=func_convert_file_noop
5526 ;;
5527 * ) # otherwise, assume *nix
5528 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5529 ;;
5530 esac
5531 ;;
5532 * ) # unhandled hosts (and "normal" native builds)
5533 lt_cv_to_host_file_cmd=func_convert_file_noop
5534 ;;
5535 esac
5536
5537 fi
5538
5539 to_host_file_cmd=$lt_cv_to_host_file_cmd
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5541 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5542
5543
5544
5545
5546
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5548 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5549 if test ${lt_cv_to_tool_file_cmd+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else $as_nop
5553 #assume ordinary cross tools, or native build.
5554 lt_cv_to_tool_file_cmd=func_convert_file_noop
5555 case $host in
5556 *-*-mingw* )
5557 case $build in
5558 *-*-mingw* ) # actually msys
5559 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5560 ;;
5561 esac
5562 ;;
5563 esac
5564
5565 fi
5566
5567 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5569 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5570
5571
5572
5573
5574
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5576 printf %s "checking for $LD option to reload object files... " >&6; }
5577 if test ${lt_cv_ld_reload_flag+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else $as_nop
5581 lt_cv_ld_reload_flag='-r'
5582 fi
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5584 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5585 reload_flag=$lt_cv_ld_reload_flag
5586 case $reload_flag in
5587 "" | " "*) ;;
5588 *) reload_flag=" $reload_flag" ;;
5589 esac
5590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5591 case $host_os in
5592 cygwin* | mingw* | pw32* | cegcc*)
5593 if test yes != "$GCC"; then
5594 reload_cmds=false
5595 fi
5596 ;;
5597 darwin*)
5598 if test yes = "$GCC"; then
5599 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5600 else
5601 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602 fi
5603 ;;
5604 esac
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5616 set dummy ${ac_tool_prefix}file; ac_word=$2
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 printf %s "checking for $ac_word... " >&6; }
5619 if test ${ac_cv_prog_FILECMD+y}
5620 then :
5621 printf %s "(cached) " >&6
5622 else $as_nop
5623 if test -n "$FILECMD"; then
5624 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 case $as_dir in #(((
5631 '') as_dir=./ ;;
5632 */) ;;
5633 *) as_dir=$as_dir/ ;;
5634 esac
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 FILECMD=$ac_cv_prog_FILECMD
5648 if test -n "$FILECMD"; then
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5650 printf "%s\n" "$FILECMD" >&6; }
5651 else
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 printf "%s\n" "no" >&6; }
5654 fi
5655
5656
5657 fi
5658 if test -z "$ac_cv_prog_FILECMD"; then
5659 ac_ct_FILECMD=$FILECMD
5660 # Extract the first word of "file", so it can be a program name with args.
5661 set dummy file; ac_word=$2
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 printf %s "checking for $ac_word... " >&6; }
5664 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else $as_nop
5668 if test -n "$ac_ct_FILECMD"; then
5669 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 case $as_dir in #(((
5676 '') as_dir=./ ;;
5677 */) ;;
5678 *) as_dir=$as_dir/ ;;
5679 esac
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_ac_ct_FILECMD="file"
5683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5693 if test -n "$ac_ct_FILECMD"; then
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5695 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5696 else
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 printf "%s\n" "no" >&6; }
5699 fi
5700
5701 if test "x$ac_ct_FILECMD" = x; then
5702 FILECMD=":"
5703 else
5704 case $cross_compiling:$ac_tool_warned in
5705 yes:)
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710 FILECMD=$ac_ct_FILECMD
5711 fi
5712 else
5713 FILECMD="$ac_cv_prog_FILECMD"
5714 fi
5715
5716
5717
5718
5719
5720
5721
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 printf %s "checking for $ac_word... " >&6; }
5727 if test ${ac_cv_prog_OBJDUMP+y}
5728 then :
5729 printf %s "(cached) " >&6
5730 else $as_nop
5731 if test -n "$OBJDUMP"; then
5732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 case $as_dir in #(((
5739 '') as_dir=./ ;;
5740 */) ;;
5741 *) as_dir=$as_dir/ ;;
5742 esac
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 OBJDUMP=$ac_cv_prog_OBJDUMP
5756 if test -n "$OBJDUMP"; then
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5758 printf "%s\n" "$OBJDUMP" >&6; }
5759 else
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 printf "%s\n" "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_OBJDUMP"; then
5767 ac_ct_OBJDUMP=$OBJDUMP
5768 # Extract the first word of "objdump", so it can be a program name with args.
5769 set dummy objdump; ac_word=$2
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 printf %s "checking for $ac_word... " >&6; }
5772 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else $as_nop
5776 if test -n "$ac_ct_OBJDUMP"; then
5777 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 case $as_dir in #(((
5784 '') as_dir=./ ;;
5785 */) ;;
5786 *) as_dir=$as_dir/ ;;
5787 esac
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5801 if test -n "$ac_ct_OBJDUMP"; then
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5803 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5804 else
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 printf "%s\n" "no" >&6; }
5807 fi
5808
5809 if test "x$ac_ct_OBJDUMP" = x; then
5810 OBJDUMP="false"
5811 else
5812 case $cross_compiling:$ac_tool_warned in
5813 yes:)
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816 ac_tool_warned=yes ;;
5817 esac
5818 OBJDUMP=$ac_ct_OBJDUMP
5819 fi
5820 else
5821 OBJDUMP="$ac_cv_prog_OBJDUMP"
5822 fi
5823
5824 test -z "$OBJDUMP" && OBJDUMP=objdump
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5835 printf %s "checking how to recognize dependent libraries... " >&6; }
5836 if test ${lt_cv_deplibs_check_method+y}
5837 then :
5838 printf %s "(cached) " >&6
5839 else $as_nop
5840 lt_cv_file_magic_cmd='$MAGIC_CMD'
5841 lt_cv_file_magic_test_file=
5842 lt_cv_deplibs_check_method='unknown'
5843 # Need to set the preceding variable on all platforms that support
5844 # interlibrary dependencies.
5845 # 'none' -- dependencies not supported.
5846 # 'unknown' -- same as none, but documents that we really don't know.
5847 # 'pass_all' -- all dependencies passed with no checks.
5848 # 'test_compile' -- check by making test program.
5849 # 'file_magic [[regex]]' -- check by looking for files in library path
5850 # that responds to the $file_magic_cmd with a given extended regex.
5851 # If you have 'file' or equivalent on your system and you're not sure
5852 # whether 'pass_all' will *always* work, you probably want this one.
5853
5854 case $host_os in
5855 aix[4-9]*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 beos*)
5860 lt_cv_deplibs_check_method=pass_all
5861 ;;
5862
5863 bsdi[45]*)
5864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5865 lt_cv_file_magic_cmd='$FILECMD -L'
5866 lt_cv_file_magic_test_file=/shlib/libc.so
5867 ;;
5868
5869 cygwin*)
5870 # func_win32_libid is a shell function defined in ltmain.sh
5871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5872 lt_cv_file_magic_cmd='func_win32_libid'
5873 ;;
5874
5875 mingw* | pw32*)
5876 # Base MSYS/MinGW do not provide the 'file' command needed by
5877 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5878 # unless we find 'file', for example because we are cross-compiling.
5879 if ( file / ) >/dev/null 2>&1; then
5880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5881 lt_cv_file_magic_cmd='func_win32_libid'
5882 else
5883 # Keep this pattern in sync with the one in func_win32_libid.
5884 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5885 lt_cv_file_magic_cmd='$OBJDUMP -f'
5886 fi
5887 ;;
5888
5889 cegcc*)
5890 # use the weaker test based on 'objdump'. See mingw*.
5891 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5892 lt_cv_file_magic_cmd='$OBJDUMP -f'
5893 ;;
5894
5895 darwin* | rhapsody*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898
5899 freebsd* | dragonfly* | midnightbsd*)
5900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5901 case $host_cpu in
5902 i*86 )
5903 # Not sure whether the presence of OpenBSD here was a mistake.
5904 # Let's accept both of them until this is cleared up.
5905 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5906 lt_cv_file_magic_cmd=$FILECMD
5907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5908 ;;
5909 esac
5910 else
5911 lt_cv_deplibs_check_method=pass_all
5912 fi
5913 ;;
5914
5915 haiku*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919 hpux10.20* | hpux11*)
5920 lt_cv_file_magic_cmd=$FILECMD
5921 case $host_cpu in
5922 ia64*)
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 ;;
5926 hppa*64*)
5927 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]'
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 ;;
5930 *)
5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5933 ;;
5934 esac
5935 ;;
5936
5937 interix[3-9]*)
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940 ;;
5941
5942 irix5* | irix6* | nonstopux*)
5943 case $LD in
5944 *-32|*"-32 ") libmagic=32-bit;;
5945 *-n32|*"-n32 ") libmagic=N32;;
5946 *-64|*"-64 ") libmagic=64-bit;;
5947 *) libmagic=never-match;;
5948 esac
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952 # This must be glibc/ELF.
5953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956
5957 netbsd*)
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 else
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962 fi
5963 ;;
5964
5965 newos6*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967 lt_cv_file_magic_cmd=$FILECMD
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5969 ;;
5970
5971 *nto* | *qnx*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 openbsd* | bitrig*)
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5980 fi
5981 ;;
5982
5983 osf3* | osf4* | osf5*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987 rdos*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991 solaris*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999 sysv4 | sysv4.3*)
6000 case $host_vendor in
6001 motorola)
6002 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]'
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 ;;
6005 ncr)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008 sequent)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 ;;
6012 sni)
6013 lt_cv_file_magic_cmd='/bin/file'
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015 lt_cv_file_magic_test_file=/lib/libc.so
6016 ;;
6017 siemens)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020 pc)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023 esac
6024 ;;
6025
6026 tpf*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029 os2*)
6030 lt_cv_deplibs_check_method=pass_all
6031 ;;
6032 esac
6033
6034 fi
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6036 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6037
6038 file_magic_glob=
6039 want_nocaseglob=no
6040 if test "$build" = "$host"; then
6041 case $host_os in
6042 mingw* | pw32*)
6043 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6044 want_nocaseglob=yes
6045 else
6046 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6047 fi
6048 ;;
6049 esac
6050 fi
6051
6052 file_magic_cmd=$lt_cv_file_magic_cmd
6053 deplibs_check_method=$lt_cv_deplibs_check_method
6054 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_prog_DLLTOOL+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else $as_nop
6086 if test -n "$DLLTOOL"; then
6087 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 case $as_dir in #(((
6094 '') as_dir=./ ;;
6095 */) ;;
6096 *) as_dir=$as_dir/ ;;
6097 esac
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 DLLTOOL=$ac_cv_prog_DLLTOOL
6111 if test -n "$DLLTOOL"; then
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6113 printf "%s\n" "$DLLTOOL" >&6; }
6114 else
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 printf "%s\n" "no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_DLLTOOL"; then
6122 ac_ct_DLLTOOL=$DLLTOOL
6123 # Extract the first word of "dlltool", so it can be a program name with args.
6124 set dummy dlltool; ac_word=$2
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 printf %s "checking for $ac_word... " >&6; }
6127 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6128 then :
6129 printf %s "(cached) " >&6
6130 else $as_nop
6131 if test -n "$ac_ct_DLLTOOL"; then
6132 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 case $as_dir in #(((
6139 '') as_dir=./ ;;
6140 */) ;;
6141 *) as_dir=$as_dir/ ;;
6142 esac
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6156 if test -n "$ac_ct_DLLTOOL"; then
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6158 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6159 else
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 printf "%s\n" "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_DLLTOOL" = x; then
6165 DLLTOOL="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 DLLTOOL=$ac_ct_DLLTOOL
6174 fi
6175 else
6176 DLLTOOL="$ac_cv_prog_DLLTOOL"
6177 fi
6178
6179 test -z "$DLLTOOL" && DLLTOOL=dlltool
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6191 printf %s "checking how to associate runtime and link libraries... " >&6; }
6192 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 lt_cv_sharedlib_from_linklib_cmd='unknown'
6197
6198 case $host_os in
6199 cygwin* | mingw* | pw32* | cegcc*)
6200 # two different shell functions defined in ltmain.sh;
6201 # decide which one to use based on capabilities of $DLLTOOL
6202 case `$DLLTOOL --help 2>&1` in
6203 *--identify-strict*)
6204 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6205 ;;
6206 *)
6207 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6208 ;;
6209 esac
6210 ;;
6211 *)
6212 # fallback: assume linklib IS sharedlib
6213 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6214 ;;
6215 esac
6216
6217 fi
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6219 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6220 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6221 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6222
6223
6224
6225
6226
6227
6228
6229
6230 if test -n "$ac_tool_prefix"; then
6231 for ac_prog in ar
6232 do
6233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 printf %s "checking for $ac_word... " >&6; }
6237 if test ${ac_cv_prog_AR+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else $as_nop
6241 if test -n "$AR"; then
6242 ac_cv_prog_AR="$AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 case $as_dir in #(((
6249 '') as_dir=./ ;;
6250 */) ;;
6251 *) as_dir=$as_dir/ ;;
6252 esac
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 AR=$ac_cv_prog_AR
6266 if test -n "$AR"; then
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6268 printf "%s\n" "$AR" >&6; }
6269 else
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 printf "%s\n" "no" >&6; }
6272 fi
6273
6274
6275 test -n "$AR" && break
6276 done
6277 fi
6278 if test -z "$AR"; then
6279 ac_ct_AR=$AR
6280 for ac_prog in ar
6281 do
6282 # Extract the first word of "$ac_prog", so it can be a program name with args.
6283 set dummy $ac_prog; ac_word=$2
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 printf %s "checking for $ac_word... " >&6; }
6286 if test ${ac_cv_prog_ac_ct_AR+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else $as_nop
6290 if test -n "$ac_ct_AR"; then
6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 case $as_dir in #(((
6298 '') as_dir=./ ;;
6299 */) ;;
6300 *) as_dir=$as_dir/ ;;
6301 esac
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_AR="$ac_prog"
6305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6315 if test -n "$ac_ct_AR"; then
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6317 printf "%s\n" "$ac_ct_AR" >&6; }
6318 else
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 printf "%s\n" "no" >&6; }
6321 fi
6322
6323
6324 test -n "$ac_ct_AR" && break
6325 done
6326
6327 if test "x$ac_ct_AR" = x; then
6328 AR="false"
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 AR=$ac_ct_AR
6337 fi
6338 fi
6339
6340 : ${AR=ar}
6341
6342
6343
6344
6345
6346
6347 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6348 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6349 # higher priority because thats what people were doing historically (setting
6350 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6351 # variable obsoleted/removed.
6352
6353 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6354 lt_ar_flags=$AR_FLAGS
6355
6356
6357
6358
6359
6360
6361 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6362 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6363
6364
6365
6366
6367
6368
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6370 printf %s "checking for archiver @FILE support... " >&6; }
6371 if test ${lt_cv_ar_at_file+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else $as_nop
6375 lt_cv_ar_at_file=no
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378
6379 int
6380 main (void)
6381 {
6382
6383 ;
6384 return 0;
6385 }
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"
6388 then :
6389 echo conftest.$ac_objext > conftest.lst
6390 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6392 (eval $lt_ar_try) 2>&5
6393 ac_status=$?
6394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; }
6396 if test 0 -eq "$ac_status"; then
6397 # Ensure the archiver fails upon bogus file names.
6398 rm -f conftest.$ac_objext libconftest.a
6399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6400 (eval $lt_ar_try) 2>&5
6401 ac_status=$?
6402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }
6404 if test 0 -ne "$ac_status"; then
6405 lt_cv_ar_at_file=@
6406 fi
6407 fi
6408 rm -f conftest.* libconftest.a
6409
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6412
6413 fi
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6415 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6416
6417 if test no = "$lt_cv_ar_at_file"; then
6418 archiver_list_spec=
6419 else
6420 archiver_list_spec=$lt_cv_ar_at_file
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}strip; ac_word=$2
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 printf %s "checking for $ac_word... " >&6; }
6434 if test ${ac_cv_prog_STRIP+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else $as_nop
6438 if test -n "$STRIP"; then
6439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 case $as_dir in #(((
6446 '') as_dir=./ ;;
6447 */) ;;
6448 *) as_dir=$as_dir/ ;;
6449 esac
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 STRIP=$ac_cv_prog_STRIP
6463 if test -n "$STRIP"; then
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6465 printf "%s\n" "$STRIP" >&6; }
6466 else
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6469 fi
6470
6471
6472 fi
6473 if test -z "$ac_cv_prog_STRIP"; then
6474 ac_ct_STRIP=$STRIP
6475 # Extract the first word of "strip", so it can be a program name with args.
6476 set dummy strip; ac_word=$2
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 printf %s "checking for $ac_word... " >&6; }
6479 if test ${ac_cv_prog_ac_ct_STRIP+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else $as_nop
6483 if test -n "$ac_ct_STRIP"; then
6484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 case $as_dir in #(((
6491 '') as_dir=./ ;;
6492 */) ;;
6493 *) as_dir=$as_dir/ ;;
6494 esac
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_ac_ct_STRIP="strip"
6498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6508 if test -n "$ac_ct_STRIP"; then
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6510 printf "%s\n" "$ac_ct_STRIP" >&6; }
6511 else
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 printf "%s\n" "no" >&6; }
6514 fi
6515
6516 if test "x$ac_ct_STRIP" = x; then
6517 STRIP=":"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 STRIP=$ac_ct_STRIP
6526 fi
6527 else
6528 STRIP="$ac_cv_prog_STRIP"
6529 fi
6530
6531 test -z "$STRIP" && STRIP=:
6532
6533
6534
6535
6536
6537
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_RANLIB+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else $as_nop
6547 if test -n "$RANLIB"; then
6548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 RANLIB=$ac_cv_prog_RANLIB
6572 if test -n "$RANLIB"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574 printf "%s\n" "$RANLIB" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583 ac_ct_RANLIB=$RANLIB
6584 # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib; ac_word=$2
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 printf %s "checking for $ac_word... " >&6; }
6588 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 if test -n "$ac_ct_RANLIB"; then
6593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 case $as_dir in #(((
6600 '') as_dir=./ ;;
6601 */) ;;
6602 *) as_dir=$as_dir/ ;;
6603 esac
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6620 else
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 printf "%s\n" "no" >&6; }
6623 fi
6624
6625 if test "x$ac_ct_RANLIB" = x; then
6626 RANLIB=":"
6627 else
6628 case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634 RANLIB=$ac_ct_RANLIB
6635 fi
6636 else
6637 RANLIB="$ac_cv_prog_RANLIB"
6638 fi
6639
6640 test -z "$RANLIB" && RANLIB=:
6641
6642
6643
6644
6645
6646
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6651
6652 if test -n "$RANLIB"; then
6653 case $host_os in
6654 bitrig* | openbsd*)
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6656 ;;
6657 *)
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6659 ;;
6660 esac
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6662 fi
6663
6664 case $host_os in
6665 darwin*)
6666 lock_old_archive_extraction=yes ;;
6667 *)
6668 lock_old_archive_extraction=no ;;
6669 esac
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 # If no C compiler was specified, use CC.
6710 LTCC=${LTCC-"$CC"}
6711
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6714
6715 # Allow CC to be a program name with arguments.
6716 compiler=$CC
6717
6718
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6722 if test ${lt_cv_sys_global_symbol_pipe+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else $as_nop
6726
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6732
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735
6736 # Define system-specific variables.
6737 case $host_os in
6738 aix*)
6739 symcode='[BCDT]'
6740 ;;
6741 cygwin* | mingw* | pw32* | cegcc*)
6742 symcode='[ABCDGISTW]'
6743 ;;
6744 hpux*)
6745 if test ia64 = "$host_cpu"; then
6746 symcode='[ABCDEGRST]'
6747 fi
6748 ;;
6749 irix* | nonstopux*)
6750 symcode='[BCDEGRST]'
6751 ;;
6752 osf*)
6753 symcode='[BCDEGQRST]'
6754 ;;
6755 solaris*)
6756 symcode='[BDRT]'
6757 ;;
6758 sco3.2v5*)
6759 symcode='[DT]'
6760 ;;
6761 sysv4.2uw2*)
6762 symcode='[DT]'
6763 ;;
6764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6765 symcode='[ABDT]'
6766 ;;
6767 sysv4)
6768 symcode='[DFNSTU]'
6769 ;;
6770 esac
6771
6772 # If we're using GNU nm, then use its standard symbol codes.
6773 case `$NM -V 2>&1` in
6774 *GNU* | *'with BFD'*)
6775 symcode='[ABCDGIRSTW]' ;;
6776 esac
6777
6778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6779 # Gets list of data symbols to import.
6780 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6781 # Adjust the below global symbol transforms to fixup imported variables.
6782 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6783 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6784 lt_c_name_lib_hook="\
6785 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6786 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6787 else
6788 # Disable hooks by default.
6789 lt_cv_sys_global_symbol_to_import=
6790 lt_cdecl_hook=
6791 lt_c_name_hook=
6792 lt_c_name_lib_hook=
6793 fi
6794
6795 # Transform an extracted symbol line into a proper C declaration.
6796 # Some systems (esp. on ia64) link data and code symbols differently,
6797 # so use this general approach.
6798 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6799 $lt_cdecl_hook\
6800 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6801 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6802
6803 # Transform an extracted symbol line into symbol name and symbol address
6804 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6805 $lt_c_name_hook\
6806 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6807 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6808
6809 # Transform an extracted symbol line into symbol name with lib prefix and
6810 # symbol address.
6811 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6812 $lt_c_name_lib_hook\
6813 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6814 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6815 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6816
6817 # Handle CRLF in mingw tool chain
6818 opt_cr=
6819 case $build_os in
6820 mingw*)
6821 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6822 ;;
6823 esac
6824
6825 # Try without a prefix underscore, then with it.
6826 for ac_symprfx in "" "_"; do
6827
6828 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6829 symxfrm="\\1 $ac_symprfx\\2 \\2"
6830
6831 # Write the raw and C identifiers.
6832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6833 # Fake it for dumpbin and say T for any non-static function,
6834 # D for any global variable and I for any imported variable.
6835 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6836 # which start with @ or ?.
6837 lt_cv_sys_global_symbol_pipe="$AWK '"\
6838 " {last_section=section; section=\$ 3};"\
6839 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6841 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6842 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6843 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6844 " \$ 0!~/External *\|/{next};"\
6845 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6846 " {if(hide[section]) next};"\
6847 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6848 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6849 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6850 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6851 " ' prfx=^$ac_symprfx"
6852 else
6853 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6854 fi
6855 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6856
6857 # Check to see that the pipe works correctly.
6858 pipe_works=no
6859
6860 rm -f conftest*
6861 cat > conftest.$ac_ext <<_LT_EOF
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865 char nm_test_var;
6866 void nm_test_func(void);
6867 void nm_test_func(void){}
6868 #ifdef __cplusplus
6869 }
6870 #endif
6871 int main(){nm_test_var='a';nm_test_func();return(0);}
6872 _LT_EOF
6873
6874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875 (eval $ac_compile) 2>&5
6876 ac_status=$?
6877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878 test $ac_status = 0; }; then
6879 # Now try to grab the symbols.
6880 nlist=conftest.nm
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6882 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6883 ac_status=$?
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; } && test -s "$nlist"; then
6886 # Try sorting and uniquifying the output.
6887 if sort "$nlist" | uniq > "$nlist"T; then
6888 mv -f "$nlist"T "$nlist"
6889 else
6890 rm -f "$nlist"T
6891 fi
6892
6893 # Make sure that we snagged all the symbols we need.
6894 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6895 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6896 cat <<_LT_EOF > conftest.$ac_ext
6897 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6898 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6899 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6900 relocations are performed -- see ld's documentation on pseudo-relocs. */
6901 # define LT_DLSYM_CONST
6902 #elif defined __osf__
6903 /* This system does not cope well with relocations in const data. */
6904 # define LT_DLSYM_CONST
6905 #else
6906 # define LT_DLSYM_CONST const
6907 #endif
6908
6909 #ifdef __cplusplus
6910 extern "C" {
6911 #endif
6912
6913 _LT_EOF
6914 # Now generate the symbol file.
6915 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6916
6917 cat <<_LT_EOF >> conftest.$ac_ext
6918
6919 /* The mapping between symbol names and symbols. */
6920 LT_DLSYM_CONST struct {
6921 const char *name;
6922 void *address;
6923 }
6924 lt__PROGRAM__LTX_preloaded_symbols[] =
6925 {
6926 { "@PROGRAM@", (void *) 0 },
6927 _LT_EOF
6928 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6929 cat <<\_LT_EOF >> conftest.$ac_ext
6930 {0, (void *) 0}
6931 };
6932
6933 /* This works around a problem in FreeBSD linker */
6934 #ifdef FREEBSD_WORKAROUND
6935 static const void *lt_preloaded_setup() {
6936 return lt__PROGRAM__LTX_preloaded_symbols;
6937 }
6938 #endif
6939
6940 #ifdef __cplusplus
6941 }
6942 #endif
6943 _LT_EOF
6944 # Now try linking the two files.
6945 mv conftest.$ac_objext conftstm.$ac_objext
6946 lt_globsym_save_LIBS=$LIBS
6947 lt_globsym_save_CFLAGS=$CFLAGS
6948 LIBS=conftstm.$ac_objext
6949 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6951 (eval $ac_link) 2>&5
6952 ac_status=$?
6953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6955 pipe_works=yes
6956 fi
6957 LIBS=$lt_globsym_save_LIBS
6958 CFLAGS=$lt_globsym_save_CFLAGS
6959 else
6960 echo "cannot find nm_test_func in $nlist" >&5
6961 fi
6962 else
6963 echo "cannot find nm_test_var in $nlist" >&5
6964 fi
6965 else
6966 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6967 fi
6968 else
6969 echo "$progname: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 fi
6972 rm -rf conftest* conftst*
6973
6974 # Do not use the global_symbol_pipe unless it works.
6975 if test yes = "$pipe_works"; then
6976 break
6977 else
6978 lt_cv_sys_global_symbol_pipe=
6979 fi
6980 done
6981
6982 fi
6983
6984 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6985 lt_cv_sys_global_symbol_to_cdecl=
6986 fi
6987 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6989 printf "%s\n" "failed" >&6; }
6990 else
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6992 printf "%s\n" "ok" >&6; }
6993 fi
6994
6995 # Response file support.
6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997 nm_file_list_spec='@'
6998 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6999 nm_file_list_spec='@'
7000 fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7039 printf %s "checking for sysroot... " >&6; }
7040
7041 # Check whether --with-sysroot was given.
7042 if test ${with_sysroot+y}
7043 then :
7044 withval=$with_sysroot;
7045 else $as_nop
7046 with_sysroot=no
7047 fi
7048
7049
7050 lt_sysroot=
7051 case $with_sysroot in #(
7052 yes)
7053 if test yes = "$GCC"; then
7054 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7055 fi
7056 ;; #(
7057 /*)
7058 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7059 ;; #(
7060 no|'')
7061 ;; #(
7062 *)
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7064 printf "%s\n" "$with_sysroot" >&6; }
7065 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7066 ;;
7067 esac
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7070 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7071
7072
7073
7074
7075
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7077 printf %s "checking for a working dd... " >&6; }
7078 if test ${ac_cv_path_lt_DD+y}
7079 then :
7080 printf %s "(cached) " >&6
7081 else $as_nop
7082 printf 0123456789abcdef0123456789abcdef >conftest.i
7083 cat conftest.i conftest.i >conftest2.i
7084 : ${lt_DD:=$DD}
7085 if test -z "$lt_DD"; then
7086 ac_path_lt_DD_found=false
7087 # Loop through the user's path and test for each of PROGNAME-LIST
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091 IFS=$as_save_IFS
7092 case $as_dir in #(((
7093 '') as_dir=./ ;;
7094 */) ;;
7095 *) as_dir=$as_dir/ ;;
7096 esac
7097 for ac_prog in dd
7098 do
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7101 as_fn_executable_p "$ac_path_lt_DD" || continue
7102 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7103 cmp -s conftest.i conftest.out \
7104 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7105 fi
7106 $ac_path_lt_DD_found && break 3
7107 done
7108 done
7109 done
7110 IFS=$as_save_IFS
7111 if test -z "$ac_cv_path_lt_DD"; then
7112 :
7113 fi
7114 else
7115 ac_cv_path_lt_DD=$lt_DD
7116 fi
7117
7118 rm -f conftest.i conftest2.i conftest.out
7119 fi
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7121 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7122
7123
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7125 printf %s "checking how to truncate binary pipes... " >&6; }
7126 if test ${lt_cv_truncate_bin+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else $as_nop
7130 printf 0123456789abcdef0123456789abcdef >conftest.i
7131 cat conftest.i conftest.i >conftest2.i
7132 lt_cv_truncate_bin=
7133 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7134 cmp -s conftest.i conftest.out \
7135 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7136 fi
7137 rm -f conftest.i conftest2.i conftest.out
7138 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7139 fi
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7141 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7142
7143
7144
7145
7146
7147
7148
7149 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7150 func_cc_basename ()
7151 {
7152 for cc_temp in $*""; do
7153 case $cc_temp in
7154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7156 \-*) ;;
7157 *) break;;
7158 esac
7159 done
7160 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7161 }
7162
7163 # Check whether --enable-libtool-lock was given.
7164 if test ${enable_libtool_lock+y}
7165 then :
7166 enableval=$enable_libtool_lock;
7167 fi
7168
7169 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7170
7171 # Some flags need to be propagated to the compiler or linker for good
7172 # libtool support.
7173 case $host in
7174 ia64-*-hpux*)
7175 # Find out what ABI is being produced by ac_compile, and set mode
7176 # options accordingly.
7177 echo 'int i;' > conftest.$ac_ext
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7179 (eval $ac_compile) 2>&5
7180 ac_status=$?
7181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }; then
7183 case `$FILECMD conftest.$ac_objext` in
7184 *ELF-32*)
7185 HPUX_IA64_MODE=32
7186 ;;
7187 *ELF-64*)
7188 HPUX_IA64_MODE=64
7189 ;;
7190 esac
7191 fi
7192 rm -rf conftest*
7193 ;;
7194 *-*-irix6*)
7195 # Find out what ABI is being produced by ac_compile, and set linker
7196 # options accordingly.
7197 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199 (eval $ac_compile) 2>&5
7200 ac_status=$?
7201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; }; then
7203 if test yes = "$lt_cv_prog_gnu_ld"; then
7204 case `$FILECMD conftest.$ac_objext` in
7205 *32-bit*)
7206 LD="${LD-ld} -melf32bsmip"
7207 ;;
7208 *N32*)
7209 LD="${LD-ld} -melf32bmipn32"
7210 ;;
7211 *64-bit*)
7212 LD="${LD-ld} -melf64bmip"
7213 ;;
7214 esac
7215 else
7216 case `$FILECMD conftest.$ac_objext` in
7217 *32-bit*)
7218 LD="${LD-ld} -32"
7219 ;;
7220 *N32*)
7221 LD="${LD-ld} -n32"
7222 ;;
7223 *64-bit*)
7224 LD="${LD-ld} -64"
7225 ;;
7226 esac
7227 fi
7228 fi
7229 rm -rf conftest*
7230 ;;
7231
7232 mips64*-*linux*)
7233 # Find out what ABI is being produced by ac_compile, and set linker
7234 # options accordingly.
7235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237 (eval $ac_compile) 2>&5
7238 ac_status=$?
7239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; }; then
7241 emul=elf
7242 case `$FILECMD conftest.$ac_objext` in
7243 *32-bit*)
7244 emul="${emul}32"
7245 ;;
7246 *64-bit*)
7247 emul="${emul}64"
7248 ;;
7249 esac
7250 case `$FILECMD conftest.$ac_objext` in
7251 *MSB*)
7252 emul="${emul}btsmip"
7253 ;;
7254 *LSB*)
7255 emul="${emul}ltsmip"
7256 ;;
7257 esac
7258 case `$FILECMD conftest.$ac_objext` in
7259 *N32*)
7260 emul="${emul}n32"
7261 ;;
7262 esac
7263 LD="${LD-ld} -m $emul"
7264 fi
7265 rm -rf conftest*
7266 ;;
7267
7268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7270 # Find out what ABI is being produced by ac_compile, and set linker
7271 # options accordingly. Note that the listed cases only cover the
7272 # situations where additional linker options are needed (such as when
7273 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7274 # vice versa); the common cases where no linker options are needed do
7275 # not appear in the list.
7276 echo 'int i;' > conftest.$ac_ext
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 case `$FILECMD conftest.o` in
7283 *32-bit*)
7284 case $host in
7285 x86_64-*kfreebsd*-gnu)
7286 LD="${LD-ld} -m elf_i386_fbsd"
7287 ;;
7288 x86_64-*linux*)
7289 case `$FILECMD conftest.o` in
7290 *x86-64*)
7291 LD="${LD-ld} -m elf32_x86_64"
7292 ;;
7293 *)
7294 LD="${LD-ld} -m elf_i386"
7295 ;;
7296 esac
7297 ;;
7298 powerpc64le-*linux*)
7299 LD="${LD-ld} -m elf32lppclinux"
7300 ;;
7301 powerpc64-*linux*)
7302 LD="${LD-ld} -m elf32ppclinux"
7303 ;;
7304 s390x-*linux*)
7305 LD="${LD-ld} -m elf_s390"
7306 ;;
7307 sparc64-*linux*)
7308 LD="${LD-ld} -m elf32_sparc"
7309 ;;
7310 esac
7311 ;;
7312 *64-bit*)
7313 case $host in
7314 x86_64-*kfreebsd*-gnu)
7315 LD="${LD-ld} -m elf_x86_64_fbsd"
7316 ;;
7317 x86_64-*linux*)
7318 LD="${LD-ld} -m elf_x86_64"
7319 ;;
7320 powerpcle-*linux*)
7321 LD="${LD-ld} -m elf64lppc"
7322 ;;
7323 powerpc-*linux*)
7324 LD="${LD-ld} -m elf64ppc"
7325 ;;
7326 s390*-*linux*|s390*-*tpf*)
7327 LD="${LD-ld} -m elf64_s390"
7328 ;;
7329 sparc*-*linux*)
7330 LD="${LD-ld} -m elf64_sparc"
7331 ;;
7332 esac
7333 ;;
7334 esac
7335 fi
7336 rm -rf conftest*
7337 ;;
7338
7339 *-*-sco3.2v5*)
7340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7341 SAVE_CFLAGS=$CFLAGS
7342 CFLAGS="$CFLAGS -belf"
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7344 printf %s "checking whether the C compiler needs -belf... " >&6; }
7345 if test ${lt_cv_cc_needs_belf+y}
7346 then :
7347 printf %s "(cached) " >&6
7348 else $as_nop
7349 ac_ext=c
7350 ac_cpp='$CPP $CPPFLAGS'
7351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357
7358 int
7359 main (void)
7360 {
7361
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_link "$LINENO"
7367 then :
7368 lt_cv_cc_needs_belf=yes
7369 else $as_nop
7370 lt_cv_cc_needs_belf=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7373 conftest$ac_exeext conftest.$ac_ext
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 fi
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7382 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7383 if test yes != "$lt_cv_cc_needs_belf"; then
7384 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7385 CFLAGS=$SAVE_CFLAGS
7386 fi
7387 ;;
7388 *-*solaris*)
7389 # Find out what ABI is being produced by ac_compile, and set linker
7390 # options accordingly.
7391 echo 'int i;' > conftest.$ac_ext
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 case `$FILECMD conftest.o` in
7398 *64-bit*)
7399 case $lt_cv_prog_gnu_ld in
7400 yes*)
7401 case $host in
7402 i?86-*-solaris*|x86_64-*-solaris*)
7403 LD="${LD-ld} -m elf_x86_64"
7404 ;;
7405 sparc*-*-solaris*)
7406 LD="${LD-ld} -m elf64_sparc"
7407 ;;
7408 esac
7409 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7410 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7411 LD=${LD-ld}_sol2
7412 fi
7413 ;;
7414 *)
7415 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7416 LD="${LD-ld} -64"
7417 fi
7418 ;;
7419 esac
7420 ;;
7421 esac
7422 fi
7423 rm -rf conftest*
7424 ;;
7425 esac
7426
7427 need_locks=$enable_libtool_lock
7428
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}mt; ac_word=$2
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 printf %s "checking for $ac_word... " >&6; }
7434 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7435 then :
7436 printf %s "(cached) " >&6
7437 else $as_nop
7438 if test -n "$MANIFEST_TOOL"; then
7439 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 case $as_dir in #(((
7446 '') as_dir=./ ;;
7447 */) ;;
7448 *) as_dir=$as_dir/ ;;
7449 esac
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7463 if test -n "$MANIFEST_TOOL"; then
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7465 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7466 else
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 printf "%s\n" "no" >&6; }
7469 fi
7470
7471
7472 fi
7473 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7474 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7475 # Extract the first word of "mt", so it can be a program name with args.
7476 set dummy mt; ac_word=$2
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 printf %s "checking for $ac_word... " >&6; }
7479 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7480 then :
7481 printf %s "(cached) " >&6
7482 else $as_nop
7483 if test -n "$ac_ct_MANIFEST_TOOL"; then
7484 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489 IFS=$as_save_IFS
7490 case $as_dir in #(((
7491 '') as_dir=./ ;;
7492 */) ;;
7493 *) as_dir=$as_dir/ ;;
7494 esac
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7508 if test -n "$ac_ct_MANIFEST_TOOL"; then
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7510 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7511 else
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 printf "%s\n" "no" >&6; }
7514 fi
7515
7516 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7517 MANIFEST_TOOL=":"
7518 else
7519 case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7524 esac
7525 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7526 fi
7527 else
7528 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7529 fi
7530
7531 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7533 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7534 if test ${lt_cv_path_mainfest_tool+y}
7535 then :
7536 printf %s "(cached) " >&6
7537 else $as_nop
7538 lt_cv_path_mainfest_tool=no
7539 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7540 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7541 cat conftest.err >&5
7542 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7543 lt_cv_path_mainfest_tool=yes
7544 fi
7545 rm -f conftest*
7546 fi
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7548 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7549 if test yes != "$lt_cv_path_mainfest_tool"; then
7550 MANIFEST_TOOL=:
7551 fi
7552
7553
7554
7555
7556
7557
7558 case $host_os in
7559 rhapsody* | darwin*)
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 printf %s "checking for $ac_word... " >&6; }
7565 if test ${ac_cv_prog_DSYMUTIL+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else $as_nop
7569 if test -n "$DSYMUTIL"; then
7570 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 case $as_dir in #(((
7577 '') as_dir=./ ;;
7578 */) ;;
7579 *) as_dir=$as_dir/ ;;
7580 esac
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7594 if test -n "$DSYMUTIL"; then
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7596 printf "%s\n" "$DSYMUTIL" >&6; }
7597 else
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 printf "%s\n" "no" >&6; }
7600 fi
7601
7602
7603 fi
7604 if test -z "$ac_cv_prog_DSYMUTIL"; then
7605 ac_ct_DSYMUTIL=$DSYMUTIL
7606 # Extract the first word of "dsymutil", so it can be a program name with args.
7607 set dummy dsymutil; ac_word=$2
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 printf %s "checking for $ac_word... " >&6; }
7610 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7611 then :
7612 printf %s "(cached) " >&6
7613 else $as_nop
7614 if test -n "$ac_ct_DSYMUTIL"; then
7615 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 case $as_dir in #(((
7622 '') as_dir=./ ;;
7623 */) ;;
7624 *) as_dir=$as_dir/ ;;
7625 esac
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7639 if test -n "$ac_ct_DSYMUTIL"; then
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7641 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7642 else
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 printf "%s\n" "no" >&6; }
7645 fi
7646
7647 if test "x$ac_ct_DSYMUTIL" = x; then
7648 DSYMUTIL=":"
7649 else
7650 case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7655 esac
7656 DSYMUTIL=$ac_ct_DSYMUTIL
7657 fi
7658 else
7659 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7660 fi
7661
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7664 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 printf %s "checking for $ac_word... " >&6; }
7667 if test ${ac_cv_prog_NMEDIT+y}
7668 then :
7669 printf %s "(cached) " >&6
7670 else $as_nop
7671 if test -n "$NMEDIT"; then
7672 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 case $as_dir in #(((
7679 '') as_dir=./ ;;
7680 */) ;;
7681 *) as_dir=$as_dir/ ;;
7682 esac
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 NMEDIT=$ac_cv_prog_NMEDIT
7696 if test -n "$NMEDIT"; then
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7698 printf "%s\n" "$NMEDIT" >&6; }
7699 else
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 printf "%s\n" "no" >&6; }
7702 fi
7703
7704
7705 fi
7706 if test -z "$ac_cv_prog_NMEDIT"; then
7707 ac_ct_NMEDIT=$NMEDIT
7708 # Extract the first word of "nmedit", so it can be a program name with args.
7709 set dummy nmedit; ac_word=$2
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s "checking for $ac_word... " >&6; }
7712 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else $as_nop
7716 if test -n "$ac_ct_NMEDIT"; then
7717 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 case $as_dir in #(((
7724 '') as_dir=./ ;;
7725 */) ;;
7726 *) as_dir=$as_dir/ ;;
7727 esac
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7741 if test -n "$ac_ct_NMEDIT"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7743 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 printf "%s\n" "no" >&6; }
7747 fi
7748
7749 if test "x$ac_ct_NMEDIT" = x; then
7750 NMEDIT=":"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758 NMEDIT=$ac_ct_NMEDIT
7759 fi
7760 else
7761 NMEDIT="$ac_cv_prog_NMEDIT"
7762 fi
7763
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 printf %s "checking for $ac_word... " >&6; }
7769 if test ${ac_cv_prog_LIPO+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 if test -n "$LIPO"; then
7774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 case $as_dir in #(((
7781 '') as_dir=./ ;;
7782 */) ;;
7783 *) as_dir=$as_dir/ ;;
7784 esac
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 LIPO=$ac_cv_prog_LIPO
7798 if test -n "$LIPO"; then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7800 printf "%s\n" "$LIPO" >&6; }
7801 else
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 printf "%s\n" "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_LIPO"; then
7809 ac_ct_LIPO=$LIPO
7810 # Extract the first word of "lipo", so it can be a program name with args.
7811 set dummy lipo; ac_word=$2
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 printf %s "checking for $ac_word... " >&6; }
7814 if test ${ac_cv_prog_ac_ct_LIPO+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else $as_nop
7818 if test -n "$ac_ct_LIPO"; then
7819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 case $as_dir in #(((
7826 '') as_dir=./ ;;
7827 */) ;;
7828 *) as_dir=$as_dir/ ;;
7829 esac
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_ac_ct_LIPO="lipo"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7843 if test -n "$ac_ct_LIPO"; then
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7845 printf "%s\n" "$ac_ct_LIPO" >&6; }
7846 else
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 printf "%s\n" "no" >&6; }
7849 fi
7850
7851 if test "x$ac_ct_LIPO" = x; then
7852 LIPO=":"
7853 else
7854 case $cross_compiling:$ac_tool_warned in
7855 yes:)
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858 ac_tool_warned=yes ;;
7859 esac
7860 LIPO=$ac_ct_LIPO
7861 fi
7862 else
7863 LIPO="$ac_cv_prog_LIPO"
7864 fi
7865
7866 if test -n "$ac_tool_prefix"; then
7867 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7868 set dummy ${ac_tool_prefix}otool; ac_word=$2
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 printf %s "checking for $ac_word... " >&6; }
7871 if test ${ac_cv_prog_OTOOL+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 if test -n "$OTOOL"; then
7876 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 case $as_dir in #(((
7883 '') as_dir=./ ;;
7884 */) ;;
7885 *) as_dir=$as_dir/ ;;
7886 esac
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 OTOOL=$ac_cv_prog_OTOOL
7900 if test -n "$OTOOL"; then
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7902 printf "%s\n" "$OTOOL" >&6; }
7903 else
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 printf "%s\n" "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_OTOOL"; then
7911 ac_ct_OTOOL=$OTOOL
7912 # Extract the first word of "otool", so it can be a program name with args.
7913 set dummy otool; ac_word=$2
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 printf %s "checking for $ac_word... " >&6; }
7916 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7917 then :
7918 printf %s "(cached) " >&6
7919 else $as_nop
7920 if test -n "$ac_ct_OTOOL"; then
7921 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 case $as_dir in #(((
7928 '') as_dir=./ ;;
7929 */) ;;
7930 *) as_dir=$as_dir/ ;;
7931 esac
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_OTOOL="otool"
7935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7945 if test -n "$ac_ct_OTOOL"; then
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7947 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7948 else
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 printf "%s\n" "no" >&6; }
7951 fi
7952
7953 if test "x$ac_ct_OTOOL" = x; then
7954 OTOOL=":"
7955 else
7956 case $cross_compiling:$ac_tool_warned in
7957 yes:)
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7961 esac
7962 OTOOL=$ac_ct_OTOOL
7963 fi
7964 else
7965 OTOOL="$ac_cv_prog_OTOOL"
7966 fi
7967
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 printf %s "checking for $ac_word... " >&6; }
7973 if test ${ac_cv_prog_OTOOL64+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else $as_nop
7977 if test -n "$OTOOL64"; then
7978 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 case $as_dir in #(((
7985 '') as_dir=./ ;;
7986 */) ;;
7987 *) as_dir=$as_dir/ ;;
7988 esac
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 OTOOL64=$ac_cv_prog_OTOOL64
8002 if test -n "$OTOOL64"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8004 printf "%s\n" "$OTOOL64" >&6; }
8005 else
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 printf "%s\n" "no" >&6; }
8008 fi
8009
8010
8011 fi
8012 if test -z "$ac_cv_prog_OTOOL64"; then
8013 ac_ct_OTOOL64=$OTOOL64
8014 # Extract the first word of "otool64", so it can be a program name with args.
8015 set dummy otool64; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 if test -n "$ac_ct_OTOOL64"; then
8023 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_OTOOL64="otool64"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8047 if test -n "$ac_ct_OTOOL64"; then
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8049 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8050 else
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 printf "%s\n" "no" >&6; }
8053 fi
8054
8055 if test "x$ac_ct_OTOOL64" = x; then
8056 OTOOL64=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 OTOOL64=$ac_ct_OTOOL64
8065 fi
8066 else
8067 OTOOL64="$ac_cv_prog_OTOOL64"
8068 fi
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8097 printf %s "checking for -single_module linker flag... " >&6; }
8098 if test ${lt_cv_apple_cc_single_mod+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else $as_nop
8102 lt_cv_apple_cc_single_mod=no
8103 if test -z "$LT_MULTI_MODULE"; then
8104 # By default we will add the -single_module flag. You can override
8105 # by either setting the environment variable LT_MULTI_MODULE
8106 # non-empty at configure time, or by adding -multi_module to the
8107 # link flags.
8108 rm -rf libconftest.dylib*
8109 echo "int foo(void){return 1;}" > conftest.c
8110 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111 -dynamiclib -Wl,-single_module conftest.c" >&5
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8114 _lt_result=$?
8115 # If there is a non-empty error log, and "single_module"
8116 # appears in it, assume the flag caused a linker warning
8117 if test -s conftest.err && $GREP single_module conftest.err; then
8118 cat conftest.err >&5
8119 # Otherwise, if the output was created with a 0 exit code from
8120 # the compiler, it worked.
8121 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8122 lt_cv_apple_cc_single_mod=yes
8123 else
8124 cat conftest.err >&5
8125 fi
8126 rm -rf libconftest.dylib*
8127 rm -f conftest.*
8128 fi
8129 fi
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8131 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8132
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8134 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8135 if test ${lt_cv_ld_exported_symbols_list+y}
8136 then :
8137 printf %s "(cached) " >&6
8138 else $as_nop
8139 lt_cv_ld_exported_symbols_list=no
8140 save_LDFLAGS=$LDFLAGS
8141 echo "_main" > conftest.sym
8142 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145
8146 int
8147 main (void)
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"
8155 then :
8156 lt_cv_ld_exported_symbols_list=yes
8157 else $as_nop
8158 lt_cv_ld_exported_symbols_list=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LDFLAGS=$save_LDFLAGS
8163
8164 fi
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8166 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8167
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8169 printf %s "checking for -force_load linker flag... " >&6; }
8170 if test ${lt_cv_ld_force_load+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else $as_nop
8174 lt_cv_ld_force_load=no
8175 cat > conftest.c << _LT_EOF
8176 int forced_loaded() { return 2;}
8177 _LT_EOF
8178 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8181 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8182 echo "$RANLIB libconftest.a" >&5
8183 $RANLIB libconftest.a 2>&5
8184 cat > conftest.c << _LT_EOF
8185 int main() { return 0;}
8186 _LT_EOF
8187 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8188 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8189 _lt_result=$?
8190 if test -s conftest.err && $GREP force_load conftest.err; then
8191 cat conftest.err >&5
8192 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8193 lt_cv_ld_force_load=yes
8194 else
8195 cat conftest.err >&5
8196 fi
8197 rm -f conftest.err libconftest.a conftest conftest.c
8198 rm -rf conftest.dSYM
8199
8200 fi
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8202 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8203 case $host_os in
8204 rhapsody* | darwin1.[012])
8205 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8206 darwin1.*)
8207 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8208 darwin*)
8209 case $MACOSX_DEPLOYMENT_TARGET,$host in
8210 10.[012],*|,*powerpc*-darwin[5-8]*)
8211 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8212 *)
8213 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8214 esac
8215 ;;
8216 esac
8217 if test yes = "$lt_cv_apple_cc_single_mod"; then
8218 _lt_dar_single_mod='$single_module'
8219 fi
8220 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8221 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8222 else
8223 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8224 fi
8225 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8226 _lt_dsymutil='~$DSYMUTIL $lib || :'
8227 else
8228 _lt_dsymutil=
8229 fi
8230 ;;
8231 esac
8232
8233 # func_munge_path_list VARIABLE PATH
8234 # -----------------------------------
8235 # VARIABLE is name of variable containing _space_ separated list of
8236 # directories to be munged by the contents of PATH, which is string
8237 # having a format:
8238 # "DIR[:DIR]:"
8239 # string "DIR[ DIR]" will be prepended to VARIABLE
8240 # ":DIR[:DIR]"
8241 # string "DIR[ DIR]" will be appended to VARIABLE
8242 # "DIRP[:DIRP]::[DIRA:]DIRA"
8243 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8244 # "DIRA[ DIRA]" will be appended to VARIABLE
8245 # "DIR[:DIR]"
8246 # VARIABLE will be replaced by "DIR[ DIR]"
8247 func_munge_path_list ()
8248 {
8249 case x$2 in
8250 x)
8251 ;;
8252 *:)
8253 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8254 ;;
8255 x:*)
8256 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8257 ;;
8258 *::*)
8259 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8260 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8261 ;;
8262 *)
8263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8264 ;;
8265 esac
8266 }
8267
8268 ac_header= ac_cache=
8269 for ac_item in $ac_header_c_list
8270 do
8271 if test $ac_cache; then
8272 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8273 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8274 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8275 fi
8276 ac_header= ac_cache=
8277 elif test $ac_header; then
8278 ac_cache=$ac_item
8279 else
8280 ac_header=$ac_item
8281 fi
8282 done
8283
8284
8285
8286
8287
8288
8289
8290
8291 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8292 then :
8293
8294 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8295
8296 fi
8297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8298 "
8299 if test "x$ac_cv_header_dlfcn_h" = xyes
8300 then :
8301 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8302
8303 fi
8304
8305
8306
8307
8308
8309 # Set options
8310
8311
8312
8313 enable_dlopen=no
8314
8315
8316 enable_win32_dll=no
8317
8318
8319 # Check whether --enable-shared was given.
8320 if test ${enable_shared+y}
8321 then :
8322 enableval=$enable_shared; p=${PACKAGE-default}
8323 case $enableval in
8324 yes) enable_shared=yes ;;
8325 no) enable_shared=no ;;
8326 *)
8327 enable_shared=no
8328 # Look at the argument we got. We use all the common list separators.
8329 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8330 for pkg in $enableval; do
8331 IFS=$lt_save_ifs
8332 if test "X$pkg" = "X$p"; then
8333 enable_shared=yes
8334 fi
8335 done
8336 IFS=$lt_save_ifs
8337 ;;
8338 esac
8339 else $as_nop
8340 enable_shared=yes
8341 fi
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351 # Check whether --enable-static was given.
8352 if test ${enable_static+y}
8353 then :
8354 enableval=$enable_static; p=${PACKAGE-default}
8355 case $enableval in
8356 yes) enable_static=yes ;;
8357 no) enable_static=no ;;
8358 *)
8359 enable_static=no
8360 # Look at the argument we got. We use all the common list separators.
8361 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8362 for pkg in $enableval; do
8363 IFS=$lt_save_ifs
8364 if test "X$pkg" = "X$p"; then
8365 enable_static=yes
8366 fi
8367 done
8368 IFS=$lt_save_ifs
8369 ;;
8370 esac
8371 else $as_nop
8372 enable_static=yes
8373 fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 # Check whether --with-pic was given.
8385 if test ${with_pic+y}
8386 then :
8387 withval=$with_pic; lt_p=${PACKAGE-default}
8388 case $withval in
8389 yes|no) pic_mode=$withval ;;
8390 *)
8391 pic_mode=default
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8394 for lt_pkg in $withval; do
8395 IFS=$lt_save_ifs
8396 if test "X$lt_pkg" = "X$lt_p"; then
8397 pic_mode=yes
8398 fi
8399 done
8400 IFS=$lt_save_ifs
8401 ;;
8402 esac
8403 else $as_nop
8404 pic_mode=default
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413
8414 # Check whether --enable-fast-install was given.
8415 if test ${enable_fast_install+y}
8416 then :
8417 enableval=$enable_fast_install; p=${PACKAGE-default}
8418 case $enableval in
8419 yes) enable_fast_install=yes ;;
8420 no) enable_fast_install=no ;;
8421 *)
8422 enable_fast_install=no
8423 # Look at the argument we got. We use all the common list separators.
8424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8425 for pkg in $enableval; do
8426 IFS=$lt_save_ifs
8427 if test "X$pkg" = "X$p"; then
8428 enable_fast_install=yes
8429 fi
8430 done
8431 IFS=$lt_save_ifs
8432 ;;
8433 esac
8434 else $as_nop
8435 enable_fast_install=yes
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444
8445 shared_archive_member_spec=
8446 case $host,$enable_shared in
8447 power*-*-aix[5-9]*,yes)
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8449 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8450
8451 # Check whether --with-aix-soname was given.
8452 if test ${with_aix_soname+y}
8453 then :
8454 withval=$with_aix_soname; case $withval in
8455 aix|svr4|both)
8456 ;;
8457 *)
8458 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8459 ;;
8460 esac
8461 lt_cv_with_aix_soname=$with_aix_soname
8462 else $as_nop
8463 if test ${lt_cv_with_aix_soname+y}
8464 then :
8465 printf %s "(cached) " >&6
8466 else $as_nop
8467 lt_cv_with_aix_soname=aix
8468 fi
8469
8470 with_aix_soname=$lt_cv_with_aix_soname
8471 fi
8472
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8474 printf "%s\n" "$with_aix_soname" >&6; }
8475 if test aix != "$with_aix_soname"; then
8476 # For the AIX way of multilib, we name the shared archive member
8477 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8478 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8479 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8480 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8481 if test 64 = "${OBJECT_MODE-32}"; then
8482 shared_archive_member_spec=shr_64
8483 else
8484 shared_archive_member_spec=shr
8485 fi
8486 fi
8487 ;;
8488 *)
8489 with_aix_soname=aix
8490 ;;
8491 esac
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 # This can be used to rebuild libtool when needed
8503 LIBTOOL_DEPS=$ltmain
8504
8505 # Always use our own libtool.
8506 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537 test -z "$LN_S" && LN_S="ln -s"
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552 if test -n "${ZSH_VERSION+set}"; then
8553 setopt NO_GLOB_SUBST
8554 fi
8555
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8557 printf %s "checking for objdir... " >&6; }
8558 if test ${lt_cv_objdir+y}
8559 then :
8560 printf %s "(cached) " >&6
8561 else $as_nop
8562 rm -f .libs 2>/dev/null
8563 mkdir .libs 2>/dev/null
8564 if test -d .libs; then
8565 lt_cv_objdir=.libs
8566 else
8567 # MS-DOS does not allow filenames that begin with a dot.
8568 lt_cv_objdir=_libs
8569 fi
8570 rmdir .libs 2>/dev/null
8571 fi
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8573 printf "%s\n" "$lt_cv_objdir" >&6; }
8574 objdir=$lt_cv_objdir
8575
8576
8577
8578
8579
8580 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8581
8582
8583
8584
8585 case $host_os in
8586 aix3*)
8587 # AIX sometimes has problems with the GCC collect2 program. For some
8588 # reason, if we set the COLLECT_NAMES environment variable, the problems
8589 # vanish in a puff of smoke.
8590 if test set != "${COLLECT_NAMES+set}"; then
8591 COLLECT_NAMES=
8592 export COLLECT_NAMES
8593 fi
8594 ;;
8595 esac
8596
8597 # Global variables:
8598 ofile=libtool
8599 can_build_shared=yes
8600
8601 # All known linkers require a '.a' archive for static linking (except MSVC and
8602 # ICC, which need '.lib').
8603 libext=a
8604
8605 with_gnu_ld=$lt_cv_prog_gnu_ld
8606
8607 old_CC=$CC
8608 old_CFLAGS=$CFLAGS
8609
8610 # Set sane defaults for various variables
8611 test -z "$CC" && CC=cc
8612 test -z "$LTCC" && LTCC=$CC
8613 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8614 test -z "$LD" && LD=ld
8615 test -z "$ac_objext" && ac_objext=o
8616
8617 func_cc_basename $compiler
8618 cc_basename=$func_cc_basename_result
8619
8620
8621 # Only perform the check for file, if the check method requires it
8622 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8623 case $deplibs_check_method in
8624 file_magic*)
8625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8627 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8628 if test ${lt_cv_path_MAGIC_CMD+y}
8629 then :
8630 printf %s "(cached) " >&6
8631 else $as_nop
8632 case $MAGIC_CMD in
8633 [\\/*] | ?:[\\/]*)
8634 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8635 ;;
8636 *)
8637 lt_save_MAGIC_CMD=$MAGIC_CMD
8638 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8640 for ac_dir in $ac_dummy; do
8641 IFS=$lt_save_ifs
8642 test -z "$ac_dir" && ac_dir=.
8643 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8644 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8645 if test -n "$file_magic_test_file"; then
8646 case $deplibs_check_method in
8647 "file_magic "*)
8648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8649 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8651 $EGREP "$file_magic_regex" > /dev/null; then
8652 :
8653 else
8654 cat <<_LT_EOF 1>&2
8655
8656 *** Warning: the command libtool uses to detect shared libraries,
8657 *** $file_magic_cmd, produces output that libtool cannot recognize.
8658 *** The result is that libtool may fail to recognize shared libraries
8659 *** as such. This will affect the creation of libtool libraries that
8660 *** depend on shared libraries, but programs linked with such libtool
8661 *** libraries will work regardless of this problem. Nevertheless, you
8662 *** may want to report the problem to your system manager and/or to
8663 *** bug-libtool@gnu.org
8664
8665 _LT_EOF
8666 fi ;;
8667 esac
8668 fi
8669 break
8670 fi
8671 done
8672 IFS=$lt_save_ifs
8673 MAGIC_CMD=$lt_save_MAGIC_CMD
8674 ;;
8675 esac
8676 fi
8677
8678 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8679 if test -n "$MAGIC_CMD"; then
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8681 printf "%s\n" "$MAGIC_CMD" >&6; }
8682 else
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 printf "%s\n" "no" >&6; }
8685 fi
8686
8687
8688
8689
8690
8691 if test -z "$lt_cv_path_MAGIC_CMD"; then
8692 if test -n "$ac_tool_prefix"; then
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8694 printf %s "checking for file... " >&6; }
8695 if test ${lt_cv_path_MAGIC_CMD+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else $as_nop
8699 case $MAGIC_CMD in
8700 [\\/*] | ?:[\\/]*)
8701 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8702 ;;
8703 *)
8704 lt_save_MAGIC_CMD=$MAGIC_CMD
8705 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8707 for ac_dir in $ac_dummy; do
8708 IFS=$lt_save_ifs
8709 test -z "$ac_dir" && ac_dir=.
8710 if test -f "$ac_dir/file"; then
8711 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8712 if test -n "$file_magic_test_file"; then
8713 case $deplibs_check_method in
8714 "file_magic "*)
8715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8716 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8718 $EGREP "$file_magic_regex" > /dev/null; then
8719 :
8720 else
8721 cat <<_LT_EOF 1>&2
8722
8723 *** Warning: the command libtool uses to detect shared libraries,
8724 *** $file_magic_cmd, produces output that libtool cannot recognize.
8725 *** The result is that libtool may fail to recognize shared libraries
8726 *** as such. This will affect the creation of libtool libraries that
8727 *** depend on shared libraries, but programs linked with such libtool
8728 *** libraries will work regardless of this problem. Nevertheless, you
8729 *** may want to report the problem to your system manager and/or to
8730 *** bug-libtool@gnu.org
8731
8732 _LT_EOF
8733 fi ;;
8734 esac
8735 fi
8736 break
8737 fi
8738 done
8739 IFS=$lt_save_ifs
8740 MAGIC_CMD=$lt_save_MAGIC_CMD
8741 ;;
8742 esac
8743 fi
8744
8745 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8746 if test -n "$MAGIC_CMD"; then
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8748 printf "%s\n" "$MAGIC_CMD" >&6; }
8749 else
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 printf "%s\n" "no" >&6; }
8752 fi
8753
8754
8755 else
8756 MAGIC_CMD=:
8757 fi
8758 fi
8759
8760 fi
8761 ;;
8762 esac
8763
8764 # Use C for the default configuration in the libtool script
8765
8766 lt_save_CC=$CC
8767 ac_ext=c
8768 ac_cpp='$CPP $CPPFLAGS'
8769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8772
8773
8774 # Source file extension for C test sources.
8775 ac_ext=c
8776
8777 # Object file extension for compiled C test sources.
8778 objext=o
8779 objext=$objext
8780
8781 # Code to be used in simple compile tests
8782 lt_simple_compile_test_code="int some_variable = 0;"
8783
8784 # Code to be used in simple link tests
8785 lt_simple_link_test_code='int main(){return(0);}'
8786
8787
8788
8789
8790
8791
8792
8793 # If no C compiler was specified, use CC.
8794 LTCC=${LTCC-"$CC"}
8795
8796 # If no C compiler flags were specified, use CFLAGS.
8797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8798
8799 # Allow CC to be a program name with arguments.
8800 compiler=$CC
8801
8802 # Save the default compiler, since it gets overwritten when the other
8803 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8804 compiler_DEFAULT=$CC
8805
8806 # save warnings/boilerplate of simple test code
8807 ac_outfile=conftest.$ac_objext
8808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8810 _lt_compiler_boilerplate=`cat conftest.err`
8811 $RM conftest*
8812
8813 ac_outfile=conftest.$ac_objext
8814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8816 _lt_linker_boilerplate=`cat conftest.err`
8817 $RM -r conftest*
8818
8819
8820 if test -n "$compiler"; then
8821
8822 lt_prog_compiler_no_builtin_flag=
8823
8824 if test yes = "$GCC"; then
8825 case $cc_basename in
8826 nvcc*)
8827 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8828 *)
8829 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8830 esac
8831
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8833 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8834 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8835 then :
8836 printf %s "(cached) " >&6
8837 else $as_nop
8838 lt_cv_prog_compiler_rtti_exceptions=no
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8841 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 # The option is referenced via a variable to avoid confusing sed.
8847 lt_compile=`echo "$ac_compile" | $SED \
8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850 -e 's:$: $lt_compiler_flag:'`
8851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8852 (eval "$lt_compile" 2>conftest.err)
8853 ac_status=$?
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 if (exit $ac_status) && test -s "$ac_outfile"; then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings other than the usual output.
8859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8862 lt_cv_prog_compiler_rtti_exceptions=yes
8863 fi
8864 fi
8865 $RM conftest*
8866
8867 fi
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8869 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8870
8871 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8873 else
8874 :
8875 fi
8876
8877 fi
8878
8879
8880
8881
8882
8883
8884 lt_prog_compiler_wl=
8885 lt_prog_compiler_pic=
8886 lt_prog_compiler_static=
8887
8888
8889 if test yes = "$GCC"; then
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_static='-static'
8892
8893 case $host_os in
8894 aix*)
8895 # All AIX code is PIC.
8896 if test ia64 = "$host_cpu"; then
8897 # AIX 5 now supports IA64 processor
8898 lt_prog_compiler_static='-Bstatic'
8899 fi
8900 lt_prog_compiler_pic='-fPIC'
8901 ;;
8902
8903 amigaos*)
8904 case $host_cpu in
8905 powerpc)
8906 # see comment about AmigaOS4 .so support
8907 lt_prog_compiler_pic='-fPIC'
8908 ;;
8909 m68k)
8910 # FIXME: we need at least 68020 code to build shared libraries, but
8911 # adding the '-m68020' flag to GCC prevents building anything better,
8912 # like '-m68040'.
8913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8914 ;;
8915 esac
8916 ;;
8917
8918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8919 # PIC is the default for these OSes.
8920 ;;
8921
8922 mingw* | cygwin* | pw32* | os2* | cegcc*)
8923 # This hack is so that the source file can tell whether it is being
8924 # built for inclusion in a dll (and should export symbols for example).
8925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8926 # (--disable-auto-import) libraries
8927 lt_prog_compiler_pic='-DDLL_EXPORT'
8928 case $host_os in
8929 os2*)
8930 lt_prog_compiler_static='$wl-static'
8931 ;;
8932 esac
8933 ;;
8934
8935 darwin* | rhapsody*)
8936 # PIC is the default on this platform
8937 # Common symbols not allowed in MH_DYLIB files
8938 lt_prog_compiler_pic='-fno-common'
8939 ;;
8940
8941 haiku*)
8942 # PIC is the default for Haiku.
8943 # The "-static" flag exists, but is broken.
8944 lt_prog_compiler_static=
8945 ;;
8946
8947 hpux*)
8948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8950 # sets the default TLS model and affects inlining.
8951 case $host_cpu in
8952 hppa*64*)
8953 # +Z the default
8954 ;;
8955 *)
8956 lt_prog_compiler_pic='-fPIC'
8957 ;;
8958 esac
8959 ;;
8960
8961 interix[3-9]*)
8962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8963 # Instead, we relocate shared libraries at runtime.
8964 ;;
8965
8966 msdosdjgpp*)
8967 # Just because we use GCC doesn't mean we suddenly get shared libraries
8968 # on systems that don't support them.
8969 lt_prog_compiler_can_build_shared=no
8970 enable_shared=no
8971 ;;
8972
8973 *nto* | *qnx*)
8974 # QNX uses GNU C++, but need to define -shared option too, otherwise
8975 # it will coredump.
8976 lt_prog_compiler_pic='-fPIC -shared'
8977 ;;
8978
8979 sysv4*MP*)
8980 if test -d /usr/nec; then
8981 lt_prog_compiler_pic=-Kconform_pic
8982 fi
8983 ;;
8984
8985 *)
8986 lt_prog_compiler_pic='-fPIC'
8987 ;;
8988 esac
8989
8990 case $cc_basename in
8991 nvcc*) # Cuda Compiler Driver 2.2
8992 lt_prog_compiler_wl='-Xlinker '
8993 if test -n "$lt_prog_compiler_pic"; then
8994 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8995 fi
8996 ;;
8997 esac
8998 else
8999 # PORTME Check for flag to pass linker flags through the system compiler.
9000 case $host_os in
9001 aix*)
9002 lt_prog_compiler_wl='-Wl,'
9003 if test ia64 = "$host_cpu"; then
9004 # AIX 5 now supports IA64 processor
9005 lt_prog_compiler_static='-Bstatic'
9006 else
9007 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9008 fi
9009 ;;
9010
9011 darwin* | rhapsody*)
9012 # PIC is the default on this platform
9013 # Common symbols not allowed in MH_DYLIB files
9014 lt_prog_compiler_pic='-fno-common'
9015 case $cc_basename in
9016 nagfor*)
9017 # NAG Fortran compiler
9018 lt_prog_compiler_wl='-Wl,-Wl,,'
9019 lt_prog_compiler_pic='-PIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022 esac
9023 ;;
9024
9025 mingw* | cygwin* | pw32* | os2* | cegcc*)
9026 # This hack is so that the source file can tell whether it is being
9027 # built for inclusion in a dll (and should export symbols for example).
9028 lt_prog_compiler_pic='-DDLL_EXPORT'
9029 case $host_os in
9030 os2*)
9031 lt_prog_compiler_static='$wl-static'
9032 ;;
9033 esac
9034 ;;
9035
9036 hpux9* | hpux10* | hpux11*)
9037 lt_prog_compiler_wl='-Wl,'
9038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9039 # not for PA HP-UX.
9040 case $host_cpu in
9041 hppa*64*|ia64*)
9042 # +Z the default
9043 ;;
9044 *)
9045 lt_prog_compiler_pic='+Z'
9046 ;;
9047 esac
9048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9049 lt_prog_compiler_static='$wl-a ${wl}archive'
9050 ;;
9051
9052 irix5* | irix6* | nonstopux*)
9053 lt_prog_compiler_wl='-Wl,'
9054 # PIC (with -KPIC) is the default.
9055 lt_prog_compiler_static='-non_shared'
9056 ;;
9057
9058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9059 case $cc_basename in
9060 # old Intel for x86_64, which still supported -KPIC.
9061 ecc*)
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='-KPIC'
9064 lt_prog_compiler_static='-static'
9065 ;;
9066 # icc used to be incompatible with GCC.
9067 # ICC 10 doesn't accept -KPIC any more.
9068 icc* | ifort*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='-fPIC'
9071 lt_prog_compiler_static='-static'
9072 ;;
9073 # Lahey Fortran 8.1.
9074 lf95*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='--shared'
9077 lt_prog_compiler_static='--static'
9078 ;;
9079 nagfor*)
9080 # NAG Fortran compiler
9081 lt_prog_compiler_wl='-Wl,-Wl,,'
9082 lt_prog_compiler_pic='-PIC'
9083 lt_prog_compiler_static='-Bstatic'
9084 ;;
9085 tcc*)
9086 # Fabrice Bellard et al's Tiny C Compiler
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_pic='-fPIC'
9089 lt_prog_compiler_static='-static'
9090 ;;
9091 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9092 # Portland Group compilers (*not* the Pentium gcc compiler,
9093 # which looks to be a dead project)
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-fpic'
9096 lt_prog_compiler_static='-Bstatic'
9097 ;;
9098 ccc*)
9099 lt_prog_compiler_wl='-Wl,'
9100 # All Alpha code is PIC.
9101 lt_prog_compiler_static='-non_shared'
9102 ;;
9103 xl* | bgxl* | bgf* | mpixl*)
9104 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='-qpic'
9107 lt_prog_compiler_static='-qstaticlink'
9108 ;;
9109 *)
9110 case `$CC -V 2>&1 | $SED 5q` in
9111 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9112 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9113 lt_prog_compiler_pic='-KPIC'
9114 lt_prog_compiler_static='-Bstatic'
9115 lt_prog_compiler_wl=''
9116 ;;
9117 *Sun\ F* | *Sun*Fortran*)
9118 lt_prog_compiler_pic='-KPIC'
9119 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_wl='-Qoption ld '
9121 ;;
9122 *Sun\ C*)
9123 # Sun C 5.9
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 lt_prog_compiler_wl='-Wl,'
9127 ;;
9128 *Intel*\ [CF]*Compiler*)
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='-fPIC'
9131 lt_prog_compiler_static='-static'
9132 ;;
9133 *Portland\ Group*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-fpic'
9136 lt_prog_compiler_static='-Bstatic'
9137 ;;
9138 esac
9139 ;;
9140 esac
9141 ;;
9142
9143 newsos6)
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147
9148 *nto* | *qnx*)
9149 # QNX uses GNU C++, but need to define -shared option too, otherwise
9150 # it will coredump.
9151 lt_prog_compiler_pic='-fPIC -shared'
9152 ;;
9153
9154 osf3* | osf4* | osf5*)
9155 lt_prog_compiler_wl='-Wl,'
9156 # All OSF/1 code is PIC.
9157 lt_prog_compiler_static='-non_shared'
9158 ;;
9159
9160 rdos*)
9161 lt_prog_compiler_static='-non_shared'
9162 ;;
9163
9164 solaris*)
9165 lt_prog_compiler_pic='-KPIC'
9166 lt_prog_compiler_static='-Bstatic'
9167 case $cc_basename in
9168 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9169 lt_prog_compiler_wl='-Qoption ld ';;
9170 *)
9171 lt_prog_compiler_wl='-Wl,';;
9172 esac
9173 ;;
9174
9175 sunos4*)
9176 lt_prog_compiler_wl='-Qoption ld '
9177 lt_prog_compiler_pic='-PIC'
9178 lt_prog_compiler_static='-Bstatic'
9179 ;;
9180
9181 sysv4 | sysv4.2uw2* | sysv4.3*)
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-KPIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 ;;
9186
9187 sysv4*MP*)
9188 if test -d /usr/nec; then
9189 lt_prog_compiler_pic='-Kconform_pic'
9190 lt_prog_compiler_static='-Bstatic'
9191 fi
9192 ;;
9193
9194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-KPIC'
9197 lt_prog_compiler_static='-Bstatic'
9198 ;;
9199
9200 unicos*)
9201 lt_prog_compiler_wl='-Wl,'
9202 lt_prog_compiler_can_build_shared=no
9203 ;;
9204
9205 uts4*)
9206 lt_prog_compiler_pic='-pic'
9207 lt_prog_compiler_static='-Bstatic'
9208 ;;
9209
9210 *)
9211 lt_prog_compiler_can_build_shared=no
9212 ;;
9213 esac
9214 fi
9215
9216 case $host_os in
9217 # For platforms that do not support PIC, -DPIC is meaningless:
9218 *djgpp*)
9219 lt_prog_compiler_pic=
9220 ;;
9221 *)
9222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9223 ;;
9224 esac
9225
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9227 printf %s "checking for $compiler option to produce PIC... " >&6; }
9228 if test ${lt_cv_prog_compiler_pic+y}
9229 then :
9230 printf %s "(cached) " >&6
9231 else $as_nop
9232 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9233 fi
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9235 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9236 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9237
9238 #
9239 # Check to make sure the PIC flag actually works.
9240 #
9241 if test -n "$lt_prog_compiler_pic"; then
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9243 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9244 if test ${lt_cv_prog_compiler_pic_works+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else $as_nop
9248 lt_cv_prog_compiler_pic_works=no
9249 ac_outfile=conftest.$ac_objext
9250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9252 # Insert the option either (1) after the last *FLAGS variable, or
9253 # (2) before a word containing "conftest.", or (3) at the end.
9254 # Note that $ac_compile itself does not contain backslashes and begins
9255 # with a dollar sign (not a hyphen), so the echo should work correctly.
9256 # The option is referenced via a variable to avoid confusing sed.
9257 lt_compile=`echo "$ac_compile" | $SED \
9258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9260 -e 's:$: $lt_compiler_flag:'`
9261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9262 (eval "$lt_compile" 2>conftest.err)
9263 ac_status=$?
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 if (exit $ac_status) && test -s "$ac_outfile"; then
9267 # The compiler can only warn and ignore the option if not recognized
9268 # So say no if there are warnings other than the usual output.
9269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_pic_works=yes
9273 fi
9274 fi
9275 $RM conftest*
9276
9277 fi
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9279 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9280
9281 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9282 case $lt_prog_compiler_pic in
9283 "" | " "*) ;;
9284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9285 esac
9286 else
9287 lt_prog_compiler_pic=
9288 lt_prog_compiler_can_build_shared=no
9289 fi
9290
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 #
9304 # Check to make sure the static flag actually works.
9305 #
9306 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9308 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9309 if test ${lt_cv_prog_compiler_static_works+y}
9310 then :
9311 printf %s "(cached) " >&6
9312 else $as_nop
9313 lt_cv_prog_compiler_static_works=no
9314 save_LDFLAGS=$LDFLAGS
9315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9318 # The linker can only warn and ignore the option if not recognized
9319 # So say no if there are warnings
9320 if test -s conftest.err; then
9321 # Append any errors to the config.log.
9322 cat conftest.err 1>&5
9323 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9325 if diff conftest.exp conftest.er2 >/dev/null; then
9326 lt_cv_prog_compiler_static_works=yes
9327 fi
9328 else
9329 lt_cv_prog_compiler_static_works=yes
9330 fi
9331 fi
9332 $RM -r conftest*
9333 LDFLAGS=$save_LDFLAGS
9334
9335 fi
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9337 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9338
9339 if test yes = "$lt_cv_prog_compiler_static_works"; then
9340 :
9341 else
9342 lt_prog_compiler_static=
9343 fi
9344
9345
9346
9347
9348
9349
9350
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9352 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9353 if test ${lt_cv_prog_compiler_c_o+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else $as_nop
9357 lt_cv_prog_compiler_c_o=no
9358 $RM -r conftest 2>/dev/null
9359 mkdir conftest
9360 cd conftest
9361 mkdir out
9362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364 lt_compiler_flag="-o out/conftest2.$ac_objext"
9365 # Insert the option either (1) after the last *FLAGS variable, or
9366 # (2) before a word containing "conftest.", or (3) at the end.
9367 # Note that $ac_compile itself does not contain backslashes and begins
9368 # with a dollar sign (not a hyphen), so the echo should work correctly.
9369 lt_compile=`echo "$ac_compile" | $SED \
9370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372 -e 's:$: $lt_compiler_flag:'`
9373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374 (eval "$lt_compile" 2>out/conftest.err)
9375 ac_status=$?
9376 cat out/conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379 then
9380 # The compiler can only warn and ignore the option if not recognized
9381 # So say no if there are warnings
9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_c_o=yes
9386 fi
9387 fi
9388 chmod u+w . 2>&5
9389 $RM conftest*
9390 # SGI C++ compiler will create directory out/ii_files/ for
9391 # template instantiation
9392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393 $RM out/* && rmdir out
9394 cd ..
9395 $RM -r conftest
9396 $RM conftest*
9397
9398 fi
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9401
9402
9403
9404
9405
9406
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9408 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9409 if test ${lt_cv_prog_compiler_c_o+y}
9410 then :
9411 printf %s "(cached) " >&6
9412 else $as_nop
9413 lt_cv_prog_compiler_c_o=no
9414 $RM -r conftest 2>/dev/null
9415 mkdir conftest
9416 cd conftest
9417 mkdir out
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
9420 lt_compiler_flag="-o out/conftest2.$ac_objext"
9421 # Insert the option either (1) after the last *FLAGS variable, or
9422 # (2) before a word containing "conftest.", or (3) at the end.
9423 # Note that $ac_compile itself does not contain backslashes and begins
9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
9425 lt_compile=`echo "$ac_compile" | $SED \
9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428 -e 's:$: $lt_compiler_flag:'`
9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9430 (eval "$lt_compile" 2>out/conftest.err)
9431 ac_status=$?
9432 cat out/conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9435 then
9436 # The compiler can only warn and ignore the option if not recognized
9437 # So say no if there are warnings
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler_c_o=yes
9442 fi
9443 fi
9444 chmod u+w . 2>&5
9445 $RM conftest*
9446 # SGI C++ compiler will create directory out/ii_files/ for
9447 # template instantiation
9448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9449 $RM out/* && rmdir out
9450 cd ..
9451 $RM -r conftest
9452 $RM conftest*
9453
9454 fi
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9456 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9457
9458
9459
9460
9461 hard_links=nottested
9462 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9463 # do not overwrite the value of need_locks provided by the user
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9465 printf %s "checking if we can lock with hard links... " >&6; }
9466 hard_links=yes
9467 $RM conftest*
9468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9469 touch conftest.a
9470 ln conftest.a conftest.b 2>&5 || hard_links=no
9471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9473 printf "%s\n" "$hard_links" >&6; }
9474 if test no = "$hard_links"; then
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9476 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9477 need_locks=warn
9478 fi
9479 else
9480 need_locks=no
9481 fi
9482
9483
9484
9485
9486
9487
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9489 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9490
9491 runpath_var=
9492 allow_undefined_flag=
9493 always_export_symbols=no
9494 archive_cmds=
9495 archive_expsym_cmds=
9496 compiler_needs_object=no
9497 enable_shared_with_static_runtimes=no
9498 export_dynamic_flag_spec=
9499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9500 hardcode_automatic=no
9501 hardcode_direct=no
9502 hardcode_direct_absolute=no
9503 hardcode_libdir_flag_spec=
9504 hardcode_libdir_separator=
9505 hardcode_minus_L=no
9506 hardcode_shlibpath_var=unsupported
9507 inherit_rpath=no
9508 link_all_deplibs=unknown
9509 module_cmds=
9510 module_expsym_cmds=
9511 old_archive_from_new_cmds=
9512 old_archive_from_expsyms_cmds=
9513 thread_safe_flag_spec=
9514 whole_archive_flag_spec=
9515 # include_expsyms should be a list of space-separated symbols to be *always*
9516 # included in the symbol list
9517 include_expsyms=
9518 # exclude_expsyms can be an extended regexp of symbols to exclude
9519 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9520 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9521 # as well as any symbol that contains 'd'.
9522 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9524 # platforms (ab)use it in PIC code, but their linkers get confused if
9525 # the symbol is explicitly referenced. Since portable code cannot
9526 # rely on this symbol name, it's probably fine to never include it in
9527 # preloaded symbol tables.
9528 # Exclude shared library initialization/finalization symbols.
9529 extract_expsyms_cmds=
9530
9531 case $host_os in
9532 cygwin* | mingw* | pw32* | cegcc*)
9533 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9534 # When not using gcc, we currently assume that we are using
9535 # Microsoft Visual C++ or Intel C++ Compiler.
9536 if test yes != "$GCC"; then
9537 with_gnu_ld=no
9538 fi
9539 ;;
9540 interix*)
9541 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9542 with_gnu_ld=yes
9543 ;;
9544 openbsd* | bitrig*)
9545 with_gnu_ld=no
9546 ;;
9547 esac
9548
9549 ld_shlibs=yes
9550
9551 # On some targets, GNU ld is compatible enough with the native linker
9552 # that we're better off using the native interface for both.
9553 lt_use_gnu_ld_interface=no
9554 if test yes = "$with_gnu_ld"; then
9555 case $host_os in
9556 aix*)
9557 # The AIX port of GNU ld has always aspired to compatibility
9558 # with the native linker. However, as the warning in the GNU ld
9559 # block says, versions before 2.19.5* couldn't really create working
9560 # shared libraries, regardless of the interface used.
9561 case `$LD -v 2>&1` in
9562 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9563 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9564 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9565 *)
9566 lt_use_gnu_ld_interface=yes
9567 ;;
9568 esac
9569 ;;
9570 *)
9571 lt_use_gnu_ld_interface=yes
9572 ;;
9573 esac
9574 fi
9575
9576 if test yes = "$lt_use_gnu_ld_interface"; then
9577 # If archive_cmds runs LD, not CC, wlarc should be empty
9578 wlarc='$wl'
9579
9580 # Set some defaults for GNU ld with shared library support. These
9581 # are reset later if shared libraries are not supported. Putting them
9582 # here allows them to be overridden if necessary.
9583 runpath_var=LD_RUN_PATH
9584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9585 export_dynamic_flag_spec='$wl--export-dynamic'
9586 # ancient GNU ld didn't support --whole-archive et. al.
9587 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9588 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9589 else
9590 whole_archive_flag_spec=
9591 fi
9592 supports_anon_versioning=no
9593 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9594 *GNU\ gold*) supports_anon_versioning=yes ;;
9595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9598 *\ 2.11.*) ;; # other 2.11 versions
9599 *) supports_anon_versioning=yes ;;
9600 esac
9601
9602 # See if GNU ld supports shared libraries.
9603 case $host_os in
9604 aix[3-9]*)
9605 # On AIX/PPC, the GNU linker is very broken
9606 if test ia64 != "$host_cpu"; then
9607 ld_shlibs=no
9608 cat <<_LT_EOF 1>&2
9609
9610 *** Warning: the GNU linker, at least up to release 2.19, is reported
9611 *** to be unable to reliably create shared libraries on AIX.
9612 *** Therefore, libtool is disabling shared libraries support. If you
9613 *** really care for shared libraries, you may want to install binutils
9614 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9615 *** You will then need to restart the configuration process.
9616
9617 _LT_EOF
9618 fi
9619 ;;
9620
9621 amigaos*)
9622 case $host_cpu in
9623 powerpc)
9624 # see comment about AmigaOS4 .so support
9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9626 archive_expsym_cmds=''
9627 ;;
9628 m68k)
9629 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)'
9630 hardcode_libdir_flag_spec='-L$libdir'
9631 hardcode_minus_L=yes
9632 ;;
9633 esac
9634 ;;
9635
9636 beos*)
9637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9638 allow_undefined_flag=unsupported
9639 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9640 # support --undefined. This deserves some investigation. FIXME
9641 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642 else
9643 ld_shlibs=no
9644 fi
9645 ;;
9646
9647 cygwin* | mingw* | pw32* | cegcc*)
9648 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9649 # as there is no search path for DLLs.
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 export_dynamic_flag_spec='$wl--export-all-symbols'
9652 allow_undefined_flag=unsupported
9653 always_export_symbols=no
9654 enable_shared_with_static_runtimes=yes
9655 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'
9656 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9657
9658 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9660 # If the export-symbols file already is a .def file, use it as
9661 # is; otherwise, prepend EXPORTS...
9662 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9663 cp $export_symbols $output_objdir/$soname.def;
9664 else
9665 echo EXPORTS > $output_objdir/$soname.def;
9666 cat $export_symbols >> $output_objdir/$soname.def;
9667 fi~
9668 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9669 else
9670 ld_shlibs=no
9671 fi
9672 ;;
9673
9674 haiku*)
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9676 link_all_deplibs=yes
9677 ;;
9678
9679 os2*)
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_minus_L=yes
9682 allow_undefined_flag=unsupported
9683 shrext_cmds=.dll
9684 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9687 $ECHO EXPORTS >> $output_objdir/$libname.def~
9688 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9690 emximp -o $lib $output_objdir/$libname.def'
9691 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9694 $ECHO EXPORTS >> $output_objdir/$libname.def~
9695 prefix_cmds="$SED"~
9696 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9697 prefix_cmds="$prefix_cmds -e 1d";
9698 fi~
9699 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9700 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9701 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9702 emximp -o $lib $output_objdir/$libname.def'
9703 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9704 enable_shared_with_static_runtimes=yes
9705 file_list_spec='@'
9706 ;;
9707
9708 interix[3-9]*)
9709 hardcode_direct=no
9710 hardcode_shlibpath_var=no
9711 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9712 export_dynamic_flag_spec='$wl-E'
9713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9714 # Instead, shared libraries are loaded at an image base (0x10000000 by
9715 # default) and relocated if they conflict, which is a slow very memory
9716 # consuming and fragmenting process. To avoid this, we pick a random,
9717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9720 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'
9721 ;;
9722
9723 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9724 tmp_diet=no
9725 if test linux-dietlibc = "$host_os"; then
9726 case $cc_basename in
9727 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9728 esac
9729 fi
9730 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9731 && test no = "$tmp_diet"
9732 then
9733 tmp_addflag=' $pic_flag'
9734 tmp_sharedflag='-shared'
9735 case $cc_basename,$host_cpu in
9736 pgcc*) # Portland Group C compiler
9737 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'
9738 tmp_addflag=' $pic_flag'
9739 ;;
9740 pgf77* | pgf90* | pgf95* | pgfortran*)
9741 # Portland Group f77 and f90 compilers
9742 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'
9743 tmp_addflag=' $pic_flag -Mnomain' ;;
9744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9745 tmp_addflag=' -i_dynamic' ;;
9746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9747 tmp_addflag=' -i_dynamic -nofor_main' ;;
9748 ifc* | ifort*) # Intel Fortran compiler
9749 tmp_addflag=' -nofor_main' ;;
9750 lf95*) # Lahey Fortran 8.1
9751 whole_archive_flag_spec=
9752 tmp_sharedflag='--shared' ;;
9753 nagfor*) # NAGFOR 5.3
9754 tmp_sharedflag='-Wl,-shared' ;;
9755 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9756 tmp_sharedflag='-qmkshrobj'
9757 tmp_addflag= ;;
9758 nvcc*) # Cuda Compiler Driver 2.2
9759 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'
9760 compiler_needs_object=yes
9761 ;;
9762 esac
9763 case `$CC -V 2>&1 | $SED 5q` in
9764 *Sun\ C*) # Sun C 5.9
9765 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'
9766 compiler_needs_object=yes
9767 tmp_sharedflag='-G' ;;
9768 *Sun\ F*) # Sun Fortran 8.3
9769 tmp_sharedflag='-G' ;;
9770 esac
9771 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9772
9773 if test yes = "$supports_anon_versioning"; then
9774 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9775 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9776 echo "local: *; };" >> $output_objdir/$libname.ver~
9777 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9778 fi
9779
9780 case $cc_basename in
9781 tcc*)
9782 export_dynamic_flag_spec='-rdynamic'
9783 ;;
9784 xlf* | bgf* | bgxlf* | mpixlf*)
9785 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9786 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9787 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9788 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9789 if test yes = "$supports_anon_versioning"; then
9790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9791 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9792 echo "local: *; };" >> $output_objdir/$libname.ver~
9793 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9794 fi
9795 ;;
9796 esac
9797 else
9798 ld_shlibs=no
9799 fi
9800 ;;
9801
9802 netbsd*)
9803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9805 wlarc=
9806 else
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9809 fi
9810 ;;
9811
9812 solaris*)
9813 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9814 ld_shlibs=no
9815 cat <<_LT_EOF 1>&2
9816
9817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9818 *** create shared libraries on Solaris systems. Therefore, libtool
9819 *** is disabling shared libraries support. We urge you to upgrade GNU
9820 *** binutils to release 2.9.1 or newer. Another option is to modify
9821 *** your PATH or compiler configuration so that the native linker is
9822 *** used, and then restart.
9823
9824 _LT_EOF
9825 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832
9833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9834 case `$LD -v 2>&1` in
9835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9836 ld_shlibs=no
9837 cat <<_LT_EOF 1>&2
9838
9839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9840 *** reliably create shared libraries on SCO systems. Therefore, libtool
9841 *** is disabling shared libraries support. We urge you to upgrade GNU
9842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9843 *** your PATH or compiler configuration so that the native linker is
9844 *** used, and then restart.
9845
9846 _LT_EOF
9847 ;;
9848 *)
9849 # For security reasons, it is highly recommended that you always
9850 # use absolute paths for naming shared libraries, and exclude the
9851 # DT_RUNPATH tag from executables and libraries. But doing so
9852 # requires that you compile everything twice, which is a pain.
9853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9857 else
9858 ld_shlibs=no
9859 fi
9860 ;;
9861 esac
9862 ;;
9863
9864 sunos4*)
9865 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866 wlarc=
9867 hardcode_direct=yes
9868 hardcode_shlibpath_var=no
9869 ;;
9870
9871 *)
9872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9875 else
9876 ld_shlibs=no
9877 fi
9878 ;;
9879 esac
9880
9881 if test no = "$ld_shlibs"; then
9882 runpath_var=
9883 hardcode_libdir_flag_spec=
9884 export_dynamic_flag_spec=
9885 whole_archive_flag_spec=
9886 fi
9887 else
9888 # PORTME fill in a description of your system's linker (not GNU ld)
9889 case $host_os in
9890 aix3*)
9891 allow_undefined_flag=unsupported
9892 always_export_symbols=yes
9893 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'
9894 # Note: this linker hardcodes the directories in LIBPATH if there
9895 # are no directories specified by -L.
9896 hardcode_minus_L=yes
9897 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9898 # Neither direct hardcoding nor static linking is supported with a
9899 # broken collect2.
9900 hardcode_direct=unsupported
9901 fi
9902 ;;
9903
9904 aix[4-9]*)
9905 if test ia64 = "$host_cpu"; then
9906 # On IA64, the linker does run time linking by default, so we don't
9907 # have to do anything special.
9908 aix_use_runtimelinking=no
9909 exp_sym_flag='-Bexport'
9910 no_entry_flag=
9911 else
9912 # If we're using GNU nm, then we don't want the "-C" option.
9913 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9914 # Without the "-l" option, or with the "-B" option, AIX nm treats
9915 # weak defined symbols like other global defined symbols, whereas
9916 # GNU nm marks them as "W".
9917 # While the 'weak' keyword is ignored in the Export File, we need
9918 # it in the Import File for the 'aix-soname' feature, so we have
9919 # to replace the "-B" option with "-P" for AIX nm.
9920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9921 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'
9922 else
9923 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'
9924 fi
9925 aix_use_runtimelinking=no
9926
9927 # Test if we are trying to use run time linking or normal
9928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9929 # have runtime linking enabled, and use it for executables.
9930 # For shared libraries, we enable/disable runtime linking
9931 # depending on the kind of the shared library created -
9932 # when "with_aix_soname,aix_use_runtimelinking" is:
9933 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9934 # "aix,yes" lib.so shared, rtl:yes, for executables
9935 # lib.a static archive
9936 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9937 # lib.a(lib.so.V) shared, rtl:no, for executables
9938 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9939 # lib.a(lib.so.V) shared, rtl:no
9940 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9941 # lib.a static archive
9942 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9943 for ld_flag in $LDFLAGS; do
9944 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9945 aix_use_runtimelinking=yes
9946 break
9947 fi
9948 done
9949 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9950 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9951 # so we don't have lib.a shared libs to link our executables.
9952 # We have to force runtime linking in this case.
9953 aix_use_runtimelinking=yes
9954 LDFLAGS="$LDFLAGS -Wl,-brtl"
9955 fi
9956 ;;
9957 esac
9958
9959 exp_sym_flag='-bexport'
9960 no_entry_flag='-bnoentry'
9961 fi
9962
9963 # When large executables or shared objects are built, AIX ld can
9964 # have problems creating the table of contents. If linking a library
9965 # or program results in "error TOC overflow" add -mminimal-toc to
9966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9968
9969 archive_cmds=''
9970 hardcode_direct=yes
9971 hardcode_direct_absolute=yes
9972 hardcode_libdir_separator=':'
9973 link_all_deplibs=yes
9974 file_list_spec='$wl-f,'
9975 case $with_aix_soname,$aix_use_runtimelinking in
9976 aix,*) ;; # traditional, no import file
9977 svr4,* | *,yes) # use import file
9978 # The Import File defines what to hardcode.
9979 hardcode_direct=no
9980 hardcode_direct_absolute=no
9981 ;;
9982 esac
9983
9984 if test yes = "$GCC"; then
9985 case $host_os in aix4.[012]|aix4.[012].*)
9986 # We only want to do this on AIX 4.2 and lower, the check
9987 # below for broken collect2 doesn't work under 4.3+
9988 collect2name=`$CC -print-prog-name=collect2`
9989 if test -f "$collect2name" &&
9990 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9991 then
9992 # We have reworked collect2
9993 :
9994 else
9995 # We have old collect2
9996 hardcode_direct=unsupported
9997 # It fails to find uninstalled libraries when the uninstalled
9998 # path is not listed in the libpath. Setting hardcode_minus_L
9999 # to unsupported forces relinking
10000 hardcode_minus_L=yes
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_libdir_separator=
10003 fi
10004 ;;
10005 esac
10006 shared_flag='-shared'
10007 if test yes = "$aix_use_runtimelinking"; then
10008 shared_flag="$shared_flag "'$wl-G'
10009 fi
10010 # Need to ensure runtime linking is disabled for the traditional
10011 # shared library, or the linker may eventually find shared libraries
10012 # /with/ Import File - we do not want to mix them.
10013 shared_flag_aix='-shared'
10014 shared_flag_svr4='-shared $wl-G'
10015 else
10016 # not using gcc
10017 if test ia64 = "$host_cpu"; then
10018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10019 # chokes on -Wl,-G. The following line is correct:
10020 shared_flag='-G'
10021 else
10022 if test yes = "$aix_use_runtimelinking"; then
10023 shared_flag='$wl-G'
10024 else
10025 shared_flag='$wl-bM:SRE'
10026 fi
10027 shared_flag_aix='$wl-bM:SRE'
10028 shared_flag_svr4='$wl-G'
10029 fi
10030 fi
10031
10032 export_dynamic_flag_spec='$wl-bexpall'
10033 # It seems that -bexpall does not export symbols beginning with
10034 # underscore (_), so it is better to generate a list of symbols to export.
10035 always_export_symbols=yes
10036 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10037 # Warning - without using the other runtime loading flags (-brtl),
10038 # -berok will link without error, but may produce a broken library.
10039 allow_undefined_flag='-berok'
10040 # Determine the default libpath from the value encoded in an
10041 # empty executable.
10042 if test set = "${lt_cv_aix_libpath+set}"; then
10043 aix_libpath=$lt_cv_aix_libpath
10044 else
10045 if test ${lt_cv_aix_libpath_+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else $as_nop
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051
10052 int
10053 main (void)
10054 {
10055
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 if ac_fn_c_try_link "$LINENO"
10061 then :
10062
10063 lt_aix_libpath_sed='
10064 /Import File Strings/,/^$/ {
10065 /^0/ {
10066 s/^0 *\([^ ]*\) *$/\1/
10067 p
10068 }
10069 }'
10070 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071 # Check for a 64-bit object if we didn't find anything.
10072 if test -z "$lt_cv_aix_libpath_"; then
10073 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10074 fi
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077 conftest$ac_exeext conftest.$ac_ext
10078 if test -z "$lt_cv_aix_libpath_"; then
10079 lt_cv_aix_libpath_=/usr/lib:/lib
10080 fi
10081
10082 fi
10083
10084 aix_libpath=$lt_cv_aix_libpath_
10085 fi
10086
10087 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10088 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
10089 else
10090 if test ia64 = "$host_cpu"; then
10091 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10092 allow_undefined_flag="-z nodefs"
10093 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"
10094 else
10095 # Determine the default libpath from the value encoded in an
10096 # empty executable.
10097 if test set = "${lt_cv_aix_libpath+set}"; then
10098 aix_libpath=$lt_cv_aix_libpath
10099 else
10100 if test ${lt_cv_aix_libpath_+y}
10101 then :
10102 printf %s "(cached) " >&6
10103 else $as_nop
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106
10107 int
10108 main (void)
10109 {
10110
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_c_try_link "$LINENO"
10116 then :
10117
10118 lt_aix_libpath_sed='
10119 /Import File Strings/,/^$/ {
10120 /^0/ {
10121 s/^0 *\([^ ]*\) *$/\1/
10122 p
10123 }
10124 }'
10125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126 # Check for a 64-bit object if we didn't find anything.
10127 if test -z "$lt_cv_aix_libpath_"; then
10128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10129 fi
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10132 conftest$ac_exeext conftest.$ac_ext
10133 if test -z "$lt_cv_aix_libpath_"; then
10134 lt_cv_aix_libpath_=/usr/lib:/lib
10135 fi
10136
10137 fi
10138
10139 aix_libpath=$lt_cv_aix_libpath_
10140 fi
10141
10142 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10143 # Warning - without using the other run time loading flags,
10144 # -berok will link without error, but may produce a broken library.
10145 no_undefined_flag=' $wl-bernotok'
10146 allow_undefined_flag=' $wl-berok'
10147 if test yes = "$with_gnu_ld"; then
10148 # We only use this code for GNU lds that support --whole-archive.
10149 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10150 else
10151 # Exported symbols can be pulled into shared objects from archives
10152 whole_archive_flag_spec='$convenience'
10153 fi
10154 archive_cmds_need_lc=yes
10155 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10156 # -brtl affects multiple linker settings, -berok does not and is overridden later
10157 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10158 if test svr4 != "$with_aix_soname"; then
10159 # This is similar to how AIX traditionally builds its shared libraries.
10160 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'
10161 fi
10162 if test aix != "$with_aix_soname"; then
10163 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'
10164 else
10165 # used by -dlpreopen to get the symbols
10166 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10167 fi
10168 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10169 fi
10170 fi
10171 ;;
10172
10173 amigaos*)
10174 case $host_cpu in
10175 powerpc)
10176 # see comment about AmigaOS4 .so support
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10178 archive_expsym_cmds=''
10179 ;;
10180 m68k)
10181 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)'
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_minus_L=yes
10184 ;;
10185 esac
10186 ;;
10187
10188 bsdi[45]*)
10189 export_dynamic_flag_spec=-rdynamic
10190 ;;
10191
10192 cygwin* | mingw* | pw32* | cegcc*)
10193 # When not using gcc, we currently assume that we are using
10194 # Microsoft Visual C++ or Intel C++ Compiler.
10195 # hardcode_libdir_flag_spec is actually meaningless, as there is
10196 # no search path for DLLs.
10197 case $cc_basename in
10198 cl* | icl*)
10199 # Native MSVC or ICC
10200 hardcode_libdir_flag_spec=' '
10201 allow_undefined_flag=unsupported
10202 always_export_symbols=yes
10203 file_list_spec='@'
10204 # Tell ltmain to make .lib files, not .a files.
10205 libext=lib
10206 # Tell ltmain to make .dll files, not .so files.
10207 shrext_cmds=.dll
10208 # FIXME: Setting linknames here is a bad hack.
10209 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10210 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10211 cp "$export_symbols" "$output_objdir/$soname.def";
10212 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10213 else
10214 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10215 fi~
10216 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10217 linknames='
10218 # The linker will not automatically build a static lib if we build a DLL.
10219 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10220 enable_shared_with_static_runtimes=yes
10221 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10223 # Don't use ranlib
10224 old_postinstall_cmds='chmod 644 $oldlib'
10225 postlink_cmds='lt_outputfile="@OUTPUT@"~
10226 lt_tool_outputfile="@TOOL_OUTPUT@"~
10227 case $lt_outputfile in
10228 *.exe|*.EXE) ;;
10229 *)
10230 lt_outputfile=$lt_outputfile.exe
10231 lt_tool_outputfile=$lt_tool_outputfile.exe
10232 ;;
10233 esac~
10234 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10235 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10236 $RM "$lt_outputfile.manifest";
10237 fi'
10238 ;;
10239 *)
10240 # Assume MSVC and ICC wrapper
10241 hardcode_libdir_flag_spec=' '
10242 allow_undefined_flag=unsupported
10243 # Tell ltmain to make .lib files, not .a files.
10244 libext=lib
10245 # Tell ltmain to make .dll files, not .so files.
10246 shrext_cmds=.dll
10247 # FIXME: Setting linknames here is a bad hack.
10248 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10249 # The linker will automatically build a .lib file if we build a DLL.
10250 old_archive_from_new_cmds='true'
10251 # FIXME: Should let the user specify the lib program.
10252 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10253 enable_shared_with_static_runtimes=yes
10254 ;;
10255 esac
10256 ;;
10257
10258 darwin* | rhapsody*)
10259
10260
10261 archive_cmds_need_lc=no
10262 hardcode_direct=no
10263 hardcode_automatic=yes
10264 hardcode_shlibpath_var=unsupported
10265 if test yes = "$lt_cv_ld_force_load"; then
10266 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\"`'
10267
10268 else
10269 whole_archive_flag_spec=''
10270 fi
10271 link_all_deplibs=yes
10272 allow_undefined_flag=$_lt_dar_allow_undefined
10273 case $cc_basename in
10274 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10275 *) _lt_dar_can_shared=$GCC ;;
10276 esac
10277 if test yes = "$_lt_dar_can_shared"; then
10278 output_verbose_link_cmd=func_echo_all
10279 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10280 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10281 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"
10282 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"
10283
10284 else
10285 ld_shlibs=no
10286 fi
10287
10288 ;;
10289
10290 dgux*)
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_shlibpath_var=no
10294 ;;
10295
10296 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10297 # support. Future versions do this automatically, but an explicit c++rt0.o
10298 # does not break anything, and helps significantly (at the cost of a little
10299 # extra space).
10300 freebsd2.2*)
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10302 hardcode_libdir_flag_spec='-R$libdir'
10303 hardcode_direct=yes
10304 hardcode_shlibpath_var=no
10305 ;;
10306
10307 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10308 freebsd2.*)
10309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10310 hardcode_direct=yes
10311 hardcode_minus_L=yes
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10316 freebsd* | dragonfly* | midnightbsd*)
10317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10318 hardcode_libdir_flag_spec='-R$libdir'
10319 hardcode_direct=yes
10320 hardcode_shlibpath_var=no
10321 ;;
10322
10323 hpux9*)
10324 if test yes = "$GCC"; then
10325 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'
10326 else
10327 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'
10328 fi
10329 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10330 hardcode_libdir_separator=:
10331 hardcode_direct=yes
10332
10333 # hardcode_minus_L: Not really in the search PATH,
10334 # but as the default location of the library.
10335 hardcode_minus_L=yes
10336 export_dynamic_flag_spec='$wl-E'
10337 ;;
10338
10339 hpux10*)
10340 if test yes,no = "$GCC,$with_gnu_ld"; then
10341 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10344 fi
10345 if test no = "$with_gnu_ld"; then
10346 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347 hardcode_libdir_separator=:
10348 hardcode_direct=yes
10349 hardcode_direct_absolute=yes
10350 export_dynamic_flag_spec='$wl-E'
10351 # hardcode_minus_L: Not really in the search PATH,
10352 # but as the default location of the library.
10353 hardcode_minus_L=yes
10354 fi
10355 ;;
10356
10357 hpux11*)
10358 if test yes,no = "$GCC,$with_gnu_ld"; then
10359 case $host_cpu in
10360 hppa*64*)
10361 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 ;;
10363 ia64*)
10364 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10365 ;;
10366 *)
10367 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368 ;;
10369 esac
10370 else
10371 case $host_cpu in
10372 hppa*64*)
10373 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 ;;
10375 ia64*)
10376 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10377 ;;
10378 *)
10379
10380 # Older versions of the 11.00 compiler do not understand -b yet
10381 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10383 printf %s "checking if $CC understands -b... " >&6; }
10384 if test ${lt_cv_prog_compiler__b+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else $as_nop
10388 lt_cv_prog_compiler__b=no
10389 save_LDFLAGS=$LDFLAGS
10390 LDFLAGS="$LDFLAGS -b"
10391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10393 # The linker can only warn and ignore the option if not recognized
10394 # So say no if there are warnings
10395 if test -s conftest.err; then
10396 # Append any errors to the config.log.
10397 cat conftest.err 1>&5
10398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10400 if diff conftest.exp conftest.er2 >/dev/null; then
10401 lt_cv_prog_compiler__b=yes
10402 fi
10403 else
10404 lt_cv_prog_compiler__b=yes
10405 fi
10406 fi
10407 $RM -r conftest*
10408 LDFLAGS=$save_LDFLAGS
10409
10410 fi
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10412 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10413
10414 if test yes = "$lt_cv_prog_compiler__b"; then
10415 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10416 else
10417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10418 fi
10419
10420 ;;
10421 esac
10422 fi
10423 if test no = "$with_gnu_ld"; then
10424 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10425 hardcode_libdir_separator=:
10426
10427 case $host_cpu in
10428 hppa*64*|ia64*)
10429 hardcode_direct=no
10430 hardcode_shlibpath_var=no
10431 ;;
10432 *)
10433 hardcode_direct=yes
10434 hardcode_direct_absolute=yes
10435 export_dynamic_flag_spec='$wl-E'
10436
10437 # hardcode_minus_L: Not really in the search PATH,
10438 # but as the default location of the library.
10439 hardcode_minus_L=yes
10440 ;;
10441 esac
10442 fi
10443 ;;
10444
10445 irix5* | irix6* | nonstopux*)
10446 if test yes = "$GCC"; then
10447 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'
10448 # Try to use the -exported_symbol ld option, if it does not
10449 # work, assume that -exports_file does not work either and
10450 # implicitly export all symbols.
10451 # This should be the same for all languages, so no per-tag cache variable.
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10453 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10454 if test ${lt_cv_irix_exported_symbol+y}
10455 then :
10456 printf %s "(cached) " >&6
10457 else $as_nop
10458 save_LDFLAGS=$LDFLAGS
10459 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int foo (void) { return 0; }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"
10465 then :
10466 lt_cv_irix_exported_symbol=yes
10467 else $as_nop
10468 lt_cv_irix_exported_symbol=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LDFLAGS=$save_LDFLAGS
10473 fi
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10475 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10476 if test yes = "$lt_cv_irix_exported_symbol"; then
10477 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'
10478 fi
10479 else
10480 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'
10481 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'
10482 fi
10483 archive_cmds_need_lc='no'
10484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10485 hardcode_libdir_separator=:
10486 inherit_rpath=yes
10487 link_all_deplibs=yes
10488 ;;
10489
10490 linux*)
10491 case $cc_basename in
10492 tcc*)
10493 # Fabrice Bellard et al's Tiny C Compiler
10494 ld_shlibs=yes
10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496 ;;
10497 esac
10498 ;;
10499
10500 netbsd*)
10501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10503 else
10504 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10505 fi
10506 hardcode_libdir_flag_spec='-R$libdir'
10507 hardcode_direct=yes
10508 hardcode_shlibpath_var=no
10509 ;;
10510
10511 newsos6)
10512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_direct=yes
10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515 hardcode_libdir_separator=:
10516 hardcode_shlibpath_var=no
10517 ;;
10518
10519 *nto* | *qnx*)
10520 ;;
10521
10522 openbsd* | bitrig*)
10523 if test -f /usr/libexec/ld.so; then
10524 hardcode_direct=yes
10525 hardcode_shlibpath_var=no
10526 hardcode_direct_absolute=yes
10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10530 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10531 export_dynamic_flag_spec='$wl-E'
10532 else
10533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10535 fi
10536 else
10537 ld_shlibs=no
10538 fi
10539 ;;
10540
10541 os2*)
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 hardcode_minus_L=yes
10544 allow_undefined_flag=unsupported
10545 shrext_cmds=.dll
10546 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10547 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10548 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10549 $ECHO EXPORTS >> $output_objdir/$libname.def~
10550 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10551 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10552 emximp -o $lib $output_objdir/$libname.def'
10553 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10554 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10555 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10556 $ECHO EXPORTS >> $output_objdir/$libname.def~
10557 prefix_cmds="$SED"~
10558 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10559 prefix_cmds="$prefix_cmds -e 1d";
10560 fi~
10561 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10562 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10563 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10564 emximp -o $lib $output_objdir/$libname.def'
10565 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10566 enable_shared_with_static_runtimes=yes
10567 file_list_spec='@'
10568 ;;
10569
10570 osf3*)
10571 if test yes = "$GCC"; then
10572 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10573 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'
10574 else
10575 allow_undefined_flag=' -expect_unresolved \*'
10576 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'
10577 fi
10578 archive_cmds_need_lc='no'
10579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10580 hardcode_libdir_separator=:
10581 ;;
10582
10583 osf4* | osf5*) # as osf3* with the addition of -msym flag
10584 if test yes = "$GCC"; then
10585 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10586 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'
10587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10588 else
10589 allow_undefined_flag=' -expect_unresolved \*'
10590 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'
10591 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~
10592 $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'
10593
10594 # Both c and cxx compiler support -rpath directly
10595 hardcode_libdir_flag_spec='-rpath $libdir'
10596 fi
10597 archive_cmds_need_lc='no'
10598 hardcode_libdir_separator=:
10599 ;;
10600
10601 solaris*)
10602 no_undefined_flag=' -z defs'
10603 if test yes = "$GCC"; then
10604 wlarc='$wl'
10605 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10607 $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'
10608 else
10609 case `$CC -V 2>&1` in
10610 *"Compilers 5.0"*)
10611 wlarc=''
10612 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10614 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10615 ;;
10616 *)
10617 wlarc='$wl'
10618 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10621 ;;
10622 esac
10623 fi
10624 hardcode_libdir_flag_spec='-R$libdir'
10625 hardcode_shlibpath_var=no
10626 case $host_os in
10627 solaris2.[0-5] | solaris2.[0-5].*) ;;
10628 *)
10629 # The compiler driver will combine and reorder linker options,
10630 # but understands '-z linker_flag'. GCC discards it without '$wl',
10631 # but is careful enough not to reorder.
10632 # Supported since Solaris 2.6 (maybe 2.5.1?)
10633 if test yes = "$GCC"; then
10634 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10635 else
10636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10637 fi
10638 ;;
10639 esac
10640 link_all_deplibs=yes
10641 ;;
10642
10643 sunos4*)
10644 if test sequent = "$host_vendor"; then
10645 # Use $CC to link under sequent, because it throws in some extra .o
10646 # files that make .init and .fini sections work.
10647 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10648 else
10649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10650 fi
10651 hardcode_libdir_flag_spec='-L$libdir'
10652 hardcode_direct=yes
10653 hardcode_minus_L=yes
10654 hardcode_shlibpath_var=no
10655 ;;
10656
10657 sysv4)
10658 case $host_vendor in
10659 sni)
10660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661 hardcode_direct=yes # is this really true???
10662 ;;
10663 siemens)
10664 ## LD is ld it makes a PLAMLIB
10665 ## CC just makes a GrossModule.
10666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10667 reload_cmds='$CC -r -o $output$reload_objs'
10668 hardcode_direct=no
10669 ;;
10670 motorola)
10671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10673 ;;
10674 esac
10675 runpath_var='LD_RUN_PATH'
10676 hardcode_shlibpath_var=no
10677 ;;
10678
10679 sysv4.3*)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_shlibpath_var=no
10682 export_dynamic_flag_spec='-Bexport'
10683 ;;
10684
10685 sysv4*MP*)
10686 if test -d /usr/nec; then
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_shlibpath_var=no
10689 runpath_var=LD_RUN_PATH
10690 hardcode_runpath_var=yes
10691 ld_shlibs=yes
10692 fi
10693 ;;
10694
10695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10696 no_undefined_flag='$wl-z,text'
10697 archive_cmds_need_lc=no
10698 hardcode_shlibpath_var=no
10699 runpath_var='LD_RUN_PATH'
10700
10701 if test yes = "$GCC"; then
10702 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704 else
10705 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 fi
10708 ;;
10709
10710 sysv5* | sco3.2v5* | sco5v6*)
10711 # Note: We CANNOT use -z defs as we might desire, because we do not
10712 # link with -lc, and that would cause any symbols used from libc to
10713 # always be unresolved, which means just about no library would
10714 # ever link correctly. If we're not using GNU ld we use -z text
10715 # though, which does catch some bad symbols but isn't as heavy-handed
10716 # as -z defs.
10717 no_undefined_flag='$wl-z,text'
10718 allow_undefined_flag='$wl-z,nodefs'
10719 archive_cmds_need_lc=no
10720 hardcode_shlibpath_var=no
10721 hardcode_libdir_flag_spec='$wl-R,$libdir'
10722 hardcode_libdir_separator=':'
10723 link_all_deplibs=yes
10724 export_dynamic_flag_spec='$wl-Bexport'
10725 runpath_var='LD_RUN_PATH'
10726
10727 if test yes = "$GCC"; then
10728 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 else
10731 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 fi
10734 ;;
10735
10736 uts4*)
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_libdir_flag_spec='-L$libdir'
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 *)
10743 ld_shlibs=no
10744 ;;
10745 esac
10746
10747 if test sni = "$host_vendor"; then
10748 case $host in
10749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10750 export_dynamic_flag_spec='$wl-Blargedynsym'
10751 ;;
10752 esac
10753 fi
10754 fi
10755
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10757 printf "%s\n" "$ld_shlibs" >&6; }
10758 test no = "$ld_shlibs" && can_build_shared=no
10759
10760 with_gnu_ld=$with_gnu_ld
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 #
10777 # Do we need to explicitly link libc?
10778 #
10779 case "x$archive_cmds_need_lc" in
10780 x|xyes)
10781 # Assume -lc should be added
10782 archive_cmds_need_lc=yes
10783
10784 if test yes,yes = "$GCC,$enable_shared"; then
10785 case $archive_cmds in
10786 *'~'*)
10787 # FIXME: we may have to deal with multi-command sequences.
10788 ;;
10789 '$CC '*)
10790 # Test whether the compiler implicitly links with -lc since on some
10791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10792 # to ld, don't add -lc before -lgcc.
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10794 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10795 if test ${lt_cv_archive_cmds_need_lc+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else $as_nop
10799 $RM conftest*
10800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10801
10802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10803 (eval $ac_compile) 2>&5
10804 ac_status=$?
10805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; } 2>conftest.err; then
10807 soname=conftest
10808 lib=conftest
10809 libobjs=conftest.$ac_objext
10810 deplibs=
10811 wl=$lt_prog_compiler_wl
10812 pic_flag=$lt_prog_compiler_pic
10813 compiler_flags=-v
10814 linker_flags=-v
10815 verstring=
10816 output_objdir=.
10817 libname=conftest
10818 lt_save_allow_undefined_flag=$allow_undefined_flag
10819 allow_undefined_flag=
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10821 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10822 ac_status=$?
10823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; }
10825 then
10826 lt_cv_archive_cmds_need_lc=no
10827 else
10828 lt_cv_archive_cmds_need_lc=yes
10829 fi
10830 allow_undefined_flag=$lt_save_allow_undefined_flag
10831 else
10832 cat conftest.err 1>&5
10833 fi
10834 $RM conftest*
10835
10836 fi
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10838 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10839 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10840 ;;
10841 esac
10842 fi
10843 ;;
10844 esac
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10998 printf %s "checking dynamic linker characteristics... " >&6; }
10999
11000 if test yes = "$GCC"; then
11001 case $host_os in
11002 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11003 *) lt_awk_arg='/^libraries:/' ;;
11004 esac
11005 case $host_os in
11006 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11007 *) lt_sed_strip_eq='s|=/|/|g' ;;
11008 esac
11009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11010 case $lt_search_path_spec in
11011 *\;*)
11012 # if the path contains ";" then we assume it to be the separator
11013 # otherwise default to the standard path separator (i.e. ":") - it is
11014 # assumed that no part of a normal pathname contains ";" but that should
11015 # okay in the real world where ";" in dirpaths is itself problematic.
11016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11017 ;;
11018 *)
11019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11020 ;;
11021 esac
11022 # Ok, now we have the path, separated by spaces, we can step through it
11023 # and add multilib dir if necessary...
11024 lt_tmp_lt_search_path_spec=
11025 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11026 # ...but if some path component already ends with the multilib dir we assume
11027 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11028 case "$lt_multi_os_dir; $lt_search_path_spec " in
11029 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11030 lt_multi_os_dir=
11031 ;;
11032 esac
11033 for lt_sys_path in $lt_search_path_spec; do
11034 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11036 elif test -n "$lt_multi_os_dir"; then
11037 test -d "$lt_sys_path" && \
11038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11039 fi
11040 done
11041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11042 BEGIN {RS = " "; FS = "/|\n";} {
11043 lt_foo = "";
11044 lt_count = 0;
11045 for (lt_i = NF; lt_i > 0; lt_i--) {
11046 if ($lt_i != "" && $lt_i != ".") {
11047 if ($lt_i == "..") {
11048 lt_count++;
11049 } else {
11050 if (lt_count == 0) {
11051 lt_foo = "/" $lt_i lt_foo;
11052 } else {
11053 lt_count--;
11054 }
11055 }
11056 }
11057 }
11058 if (lt_foo != "") { lt_freq[lt_foo]++; }
11059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11060 }'`
11061 # AWK program above erroneously prepends '/' to C:/dos/paths
11062 # for these hosts.
11063 case $host_os in
11064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11065 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11066 esac
11067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11068 else
11069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11070 fi
11071 library_names_spec=
11072 libname_spec='lib$name'
11073 soname_spec=
11074 shrext_cmds=.so
11075 postinstall_cmds=
11076 postuninstall_cmds=
11077 finish_cmds=
11078 finish_eval=
11079 shlibpath_var=
11080 shlibpath_overrides_runpath=unknown
11081 version_type=none
11082 dynamic_linker="$host_os ld.so"
11083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11084 need_lib_prefix=unknown
11085 hardcode_into_libs=no
11086
11087 # when you set need_version to no, make sure it does not cause -set_version
11088 # flags to be left without arguments
11089 need_version=unknown
11090
11091
11092
11093 case $host_os in
11094 aix3*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11097 shlibpath_var=LIBPATH
11098
11099 # AIX 3 has no versioning support, so we append a major version to the name.
11100 soname_spec='$libname$release$shared_ext$major'
11101 ;;
11102
11103 aix[4-9]*)
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 need_lib_prefix=no
11106 need_version=no
11107 hardcode_into_libs=yes
11108 if test ia64 = "$host_cpu"; then
11109 # AIX 5 supports IA64
11110 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 else
11113 # With GCC up to 2.95.x, collect2 would create an import file
11114 # for dependence libraries. The import file would start with
11115 # the line '#! .'. This would cause the generated library to
11116 # depend on '.', always an invalid library. This was fixed in
11117 # development snapshots of GCC prior to 3.0.
11118 case $host_os in
11119 aix4 | aix4.[01] | aix4.[01].*)
11120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11121 echo ' yes '
11122 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11123 :
11124 else
11125 can_build_shared=no
11126 fi
11127 ;;
11128 esac
11129 # Using Import Files as archive members, it is possible to support
11130 # filename-based versioning of shared library archives on AIX. While
11131 # this would work for both with and without runtime linking, it will
11132 # prevent static linking of such archives. So we do filename-based
11133 # shared library versioning with .so extension only, which is used
11134 # when both runtime linking and shared linking is enabled.
11135 # Unfortunately, runtime linking may impact performance, so we do
11136 # not want this to be the default eventually. Also, we use the
11137 # versioned .so libs for executables only if there is the -brtl
11138 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11139 # To allow for filename-based versioning support, we need to create
11140 # libNAME.so.V as an archive file, containing:
11141 # *) an Import File, referring to the versioned filename of the
11142 # archive as well as the shared archive member, telling the
11143 # bitwidth (32 or 64) of that shared object, and providing the
11144 # list of exported symbols of that shared object, eventually
11145 # decorated with the 'weak' keyword
11146 # *) the shared object with the F_LOADONLY flag set, to really avoid
11147 # it being seen by the linker.
11148 # At run time we better use the real file rather than another symlink,
11149 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11150
11151 case $with_aix_soname,$aix_use_runtimelinking in
11152 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11153 # soname into executable. Probably we can add versioning support to
11154 # collect2, so additional links can be useful in future.
11155 aix,yes) # traditional libtool
11156 dynamic_linker='AIX unversionable lib.so'
11157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158 # instead of lib<name>.a to let people know that these are not
11159 # typical AIX shared libraries.
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 ;;
11162 aix,no) # traditional AIX only
11163 dynamic_linker='AIX lib.a(lib.so.V)'
11164 # We preserve .a as extension for shared libraries through AIX4.2
11165 # and later when we are not doing run time linking.
11166 library_names_spec='$libname$release.a $libname.a'
11167 soname_spec='$libname$release$shared_ext$major'
11168 ;;
11169 svr4,*) # full svr4 only
11170 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11171 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11172 # We do not specify a path in Import Files, so LIBPATH fires.
11173 shlibpath_overrides_runpath=yes
11174 ;;
11175 *,yes) # both, prefer svr4
11176 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11177 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11178 # unpreferred sharedlib libNAME.a needs extra handling
11179 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"'
11180 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"'
11181 # We do not specify a path in Import Files, so LIBPATH fires.
11182 shlibpath_overrides_runpath=yes
11183 ;;
11184 *,no) # both, prefer aix
11185 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11186 library_names_spec='$libname$release.a $libname.a'
11187 soname_spec='$libname$release$shared_ext$major'
11188 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11189 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)'
11190 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"'
11191 ;;
11192 esac
11193 shlibpath_var=LIBPATH
11194 fi
11195 ;;
11196
11197 amigaos*)
11198 case $host_cpu in
11199 powerpc)
11200 # Since July 2007 AmigaOS4 officially supports .so libraries.
11201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203 ;;
11204 m68k)
11205 library_names_spec='$libname.ixlibrary $libname.a'
11206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11207 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'
11208 ;;
11209 esac
11210 ;;
11211
11212 beos*)
11213 library_names_spec='$libname$shared_ext'
11214 dynamic_linker="$host_os ld.so"
11215 shlibpath_var=LIBRARY_PATH
11216 ;;
11217
11218 bsdi[45]*)
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 need_version=no
11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222 soname_spec='$libname$release$shared_ext$major'
11223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11227 # the default ld.so.conf also contains /usr/contrib/lib and
11228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11229 # libtool to hard-code these into programs
11230 ;;
11231
11232 cygwin* | mingw* | pw32* | cegcc*)
11233 version_type=windows
11234 shrext_cmds=.dll
11235 need_version=no
11236 need_lib_prefix=no
11237
11238 case $GCC,$cc_basename in
11239 yes,*)
11240 # gcc
11241 library_names_spec='$libname.dll.a'
11242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11243 postinstall_cmds='base_file=`basename \$file`~
11244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11245 dldir=$destdir/`dirname \$dlpath`~
11246 test -d \$dldir || mkdir -p \$dldir~
11247 $install_prog $dir/$dlname \$dldir/$dlname~
11248 chmod a+x \$dldir/$dlname~
11249 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11250 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11251 fi'
11252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11253 dlpath=$dir/\$dldll~
11254 $RM \$dlpath'
11255 shlibpath_overrides_runpath=yes
11256
11257 case $host_os in
11258 cygwin*)
11259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11260 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11261
11262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11263 ;;
11264 mingw* | cegcc*)
11265 # MinGW DLLs use traditional 'lib' prefix
11266 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11267 ;;
11268 pw32*)
11269 # pw32 DLLs use 'pw' prefix rather than 'lib'
11270 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11271 ;;
11272 esac
11273 dynamic_linker='Win32 ld.exe'
11274 ;;
11275
11276 *,cl* | *,icl*)
11277 # Native MSVC or ICC
11278 libname_spec='$name'
11279 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11280 library_names_spec='$libname.dll.lib'
11281
11282 case $build_os in
11283 mingw*)
11284 sys_lib_search_path_spec=
11285 lt_save_ifs=$IFS
11286 IFS=';'
11287 for lt_path in $LIB
11288 do
11289 IFS=$lt_save_ifs
11290 # Let DOS variable expansion print the short 8.3 style file name.
11291 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11292 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11293 done
11294 IFS=$lt_save_ifs
11295 # Convert to MSYS style.
11296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11297 ;;
11298 cygwin*)
11299 # Convert to unix form, then to dos form, then back to unix form
11300 # but this time dos style (no spaces!) so that the unix form looks
11301 # like /cygdrive/c/PROGRA~1:/cygdr...
11302 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11303 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11304 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11305 ;;
11306 *)
11307 sys_lib_search_path_spec=$LIB
11308 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11309 # It is most probably a Windows format PATH.
11310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11311 else
11312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11313 fi
11314 # FIXME: find the short name or the path components, as spaces are
11315 # common. (e.g. "Program Files" -> "PROGRA~1")
11316 ;;
11317 esac
11318
11319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11320 postinstall_cmds='base_file=`basename \$file`~
11321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11322 dldir=$destdir/`dirname \$dlpath`~
11323 test -d \$dldir || mkdir -p \$dldir~
11324 $install_prog $dir/$dlname \$dldir/$dlname'
11325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11326 dlpath=$dir/\$dldll~
11327 $RM \$dlpath'
11328 shlibpath_overrides_runpath=yes
11329 dynamic_linker='Win32 link.exe'
11330 ;;
11331
11332 *)
11333 # Assume MSVC and ICC wrapper
11334 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11335 dynamic_linker='Win32 ld.exe'
11336 ;;
11337 esac
11338 # FIXME: first we should search . and the directory the executable is in
11339 shlibpath_var=PATH
11340 ;;
11341
11342 darwin* | rhapsody*)
11343 dynamic_linker="$host_os dyld"
11344 version_type=darwin
11345 need_lib_prefix=no
11346 need_version=no
11347 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11348 soname_spec='$libname$release$major$shared_ext'
11349 shlibpath_overrides_runpath=yes
11350 shlibpath_var=DYLD_LIBRARY_PATH
11351 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11352
11353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11355 ;;
11356
11357 dgux*)
11358 version_type=linux # correct to gnu/linux during the next big refactor
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362 soname_spec='$libname$release$shared_ext$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 ;;
11365
11366 freebsd* | dragonfly* | midnightbsd*)
11367 # DragonFly does not have aout. When/if they implement a new
11368 # versioning mechanism, adjust this.
11369 if test -x /usr/bin/objformat; then
11370 objformat=`/usr/bin/objformat`
11371 else
11372 case $host_os in
11373 freebsd[23].*) objformat=aout ;;
11374 *) objformat=elf ;;
11375 esac
11376 fi
11377 version_type=freebsd-$objformat
11378 case $version_type in
11379 freebsd-elf*)
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 soname_spec='$libname$release$shared_ext$major'
11382 need_version=no
11383 need_lib_prefix=no
11384 ;;
11385 freebsd-*)
11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11387 need_version=yes
11388 ;;
11389 esac
11390 shlibpath_var=LD_LIBRARY_PATH
11391 case $host_os in
11392 freebsd2.*)
11393 shlibpath_overrides_runpath=yes
11394 ;;
11395 freebsd3.[01]* | freebsdelf3.[01]*)
11396 shlibpath_overrides_runpath=yes
11397 hardcode_into_libs=yes
11398 ;;
11399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11401 shlibpath_overrides_runpath=no
11402 hardcode_into_libs=yes
11403 ;;
11404 *) # from 4.6 on, and DragonFly
11405 shlibpath_overrides_runpath=yes
11406 hardcode_into_libs=yes
11407 ;;
11408 esac
11409 ;;
11410
11411 haiku*)
11412 version_type=linux # correct to gnu/linux during the next big refactor
11413 need_lib_prefix=no
11414 need_version=no
11415 dynamic_linker="$host_os runtime_loader"
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417 soname_spec='$libname$release$shared_ext$major'
11418 shlibpath_var=LIBRARY_PATH
11419 shlibpath_overrides_runpath=no
11420 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11421 hardcode_into_libs=yes
11422 ;;
11423
11424 hpux9* | hpux10* | hpux11*)
11425 # Give a soname corresponding to the major version so that dld.sl refuses to
11426 # link against other versions.
11427 version_type=sunos
11428 need_lib_prefix=no
11429 need_version=no
11430 case $host_cpu in
11431 ia64*)
11432 shrext_cmds='.so'
11433 hardcode_into_libs=yes
11434 dynamic_linker="$host_os dld.so"
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 soname_spec='$libname$release$shared_ext$major'
11439 if test 32 = "$HPUX_IA64_MODE"; then
11440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11441 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11442 else
11443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11444 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11445 fi
11446 ;;
11447 hppa*64*)
11448 shrext_cmds='.sl'
11449 hardcode_into_libs=yes
11450 dynamic_linker="$host_os dld.sl"
11451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11454 soname_spec='$libname$release$shared_ext$major'
11455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11457 ;;
11458 *)
11459 shrext_cmds='.sl'
11460 dynamic_linker="$host_os dld.sl"
11461 shlibpath_var=SHLIB_PATH
11462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 soname_spec='$libname$release$shared_ext$major'
11465 ;;
11466 esac
11467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11468 postinstall_cmds='chmod 555 $lib'
11469 # or fails outright, so override atomically:
11470 install_override_mode=555
11471 ;;
11472
11473 interix[3-9]*)
11474 version_type=linux # correct to gnu/linux during the next big refactor
11475 need_lib_prefix=no
11476 need_version=no
11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478 soname_spec='$libname$release$shared_ext$major'
11479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 ;;
11484
11485 irix5* | irix6* | nonstopux*)
11486 case $host_os in
11487 nonstopux*) version_type=nonstopux ;;
11488 *)
11489 if test yes = "$lt_cv_prog_gnu_ld"; then
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 else
11492 version_type=irix
11493 fi ;;
11494 esac
11495 need_lib_prefix=no
11496 need_version=no
11497 soname_spec='$libname$release$shared_ext$major'
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11499 case $host_os in
11500 irix5* | nonstopux*)
11501 libsuff= shlibsuff=
11502 ;;
11503 *)
11504 case $LD in # libtool.m4 will add one of these switches to LD
11505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11506 libsuff= shlibsuff= libmagic=32-bit;;
11507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11508 libsuff=32 shlibsuff=N32 libmagic=N32;;
11509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11511 *) libsuff= shlibsuff= libmagic=never-match;;
11512 esac
11513 ;;
11514 esac
11515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11516 shlibpath_overrides_runpath=no
11517 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11518 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11519 hardcode_into_libs=yes
11520 ;;
11521
11522 # No shared lib support for Linux oldld, aout, or coff.
11523 linux*oldld* | linux*aout* | linux*coff*)
11524 dynamic_linker=no
11525 ;;
11526
11527 linux*android*)
11528 version_type=none # Android doesn't support versioned libraries.
11529 need_lib_prefix=no
11530 need_version=no
11531 library_names_spec='$libname$release$shared_ext'
11532 soname_spec='$libname$release$shared_ext'
11533 finish_cmds=
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536
11537 # This implies no fast_install, which is unacceptable.
11538 # Some rework will be needed to allow for fast_install
11539 # before this can be enabled.
11540 hardcode_into_libs=yes
11541
11542 dynamic_linker='Android linker'
11543 # Don't embed -rpath directories since the linker doesn't support them.
11544 hardcode_libdir_flag_spec='-L$libdir'
11545 ;;
11546
11547 # This must be glibc/ELF.
11548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11549 version_type=linux # correct to gnu/linux during the next big refactor
11550 need_lib_prefix=no
11551 need_version=no
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553 soname_spec='$libname$release$shared_ext$major'
11554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=no
11557
11558 # Some binutils ld are patched to set DT_RUNPATH
11559 if test ${lt_cv_shlibpath_overrides_runpath+y}
11560 then :
11561 printf %s "(cached) " >&6
11562 else $as_nop
11563 lt_cv_shlibpath_overrides_runpath=no
11564 save_LDFLAGS=$LDFLAGS
11565 save_libdir=$libdir
11566 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11567 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 int
11572 main (void)
11573 {
11574
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"
11580 then :
11581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11582 then :
11583 lt_cv_shlibpath_overrides_runpath=yes
11584 fi
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LDFLAGS=$save_LDFLAGS
11589 libdir=$save_libdir
11590
11591 fi
11592
11593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11594
11595 # This implies no fast_install, which is unacceptable.
11596 # Some rework will be needed to allow for fast_install
11597 # before this can be enabled.
11598 hardcode_into_libs=yes
11599
11600 # Ideally, we could use ldconfig to report *all* directores which are
11601 # searched for libraries, however this is still not possible. Aside from not
11602 # being certain /sbin/ldconfig is available, command
11603 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11604 # even though it is searched at run-time. Try to do the best guess by
11605 # appending ld.so.conf contents (and includes) to the search path.
11606 if test -f /etc/ld.so.conf; then
11607 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' ' '`
11608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11609 fi
11610
11611 # We used to test for /lib/ld.so.1 and disable shared libraries on
11612 # powerpc, because MkLinux only supported shared libraries with the
11613 # GNU dynamic linker. Since this was broken with cross compilers,
11614 # most powerpc-linux boxes support dynamic linking these days and
11615 # people can always --disable-shared, the test was removed, and we
11616 # assume the GNU/Linux dynamic linker is in use.
11617 dynamic_linker='GNU/Linux ld.so'
11618 ;;
11619
11620 netbsd*)
11621 version_type=sunos
11622 need_lib_prefix=no
11623 need_version=no
11624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11627 dynamic_linker='NetBSD (a.out) ld.so'
11628 else
11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11630 soname_spec='$libname$release$shared_ext$major'
11631 dynamic_linker='NetBSD ld.elf_so'
11632 fi
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes
11635 hardcode_into_libs=yes
11636 ;;
11637
11638 newsos6)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 ;;
11644
11645 *nto* | *qnx*)
11646 version_type=qnx
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650 soname_spec='$libname$release$shared_ext$major'
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=no
11653 hardcode_into_libs=yes
11654 dynamic_linker='ldqnx.so'
11655 ;;
11656
11657 openbsd* | bitrig*)
11658 version_type=sunos
11659 sys_lib_dlsearch_path_spec=/usr/lib
11660 need_lib_prefix=no
11661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11662 need_version=no
11663 else
11664 need_version=yes
11665 fi
11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=yes
11670 ;;
11671
11672 os2*)
11673 libname_spec='$name'
11674 version_type=windows
11675 shrext_cmds=.dll
11676 need_version=no
11677 need_lib_prefix=no
11678 # OS/2 can only load a DLL with a base name of 8 characters or less.
11679 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11680 v=$($ECHO $release$versuffix | tr -d .-);
11681 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11682 $ECHO $n$v`$shared_ext'
11683 library_names_spec='${libname}_dll.$libext'
11684 dynamic_linker='OS/2 ld.exe'
11685 shlibpath_var=BEGINLIBPATH
11686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11688 postinstall_cmds='base_file=`basename \$file`~
11689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11690 dldir=$destdir/`dirname \$dlpath`~
11691 test -d \$dldir || mkdir -p \$dldir~
11692 $install_prog $dir/$dlname \$dldir/$dlname~
11693 chmod a+x \$dldir/$dlname~
11694 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11695 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11696 fi'
11697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11698 dlpath=$dir/\$dldll~
11699 $RM \$dlpath'
11700 ;;
11701
11702 osf3* | osf4* | osf5*)
11703 version_type=osf
11704 need_lib_prefix=no
11705 need_version=no
11706 soname_spec='$libname$release$shared_ext$major'
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11711 ;;
11712
11713 rdos*)
11714 dynamic_linker=no
11715 ;;
11716
11717 solaris*)
11718 version_type=linux # correct to gnu/linux during the next big refactor
11719 need_lib_prefix=no
11720 need_version=no
11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11722 soname_spec='$libname$release$shared_ext$major'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=yes
11725 hardcode_into_libs=yes
11726 # ldd complains unless libraries are executable
11727 postinstall_cmds='chmod +x $lib'
11728 ;;
11729
11730 sunos4*)
11731 version_type=sunos
11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=yes
11736 if test yes = "$with_gnu_ld"; then
11737 need_lib_prefix=no
11738 fi
11739 need_version=yes
11740 ;;
11741
11742 sysv4 | sysv4.3*)
11743 version_type=linux # correct to gnu/linux during the next big refactor
11744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745 soname_spec='$libname$release$shared_ext$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 case $host_vendor in
11748 sni)
11749 shlibpath_overrides_runpath=no
11750 need_lib_prefix=no
11751 runpath_var=LD_RUN_PATH
11752 ;;
11753 siemens)
11754 need_lib_prefix=no
11755 ;;
11756 motorola)
11757 need_lib_prefix=no
11758 need_version=no
11759 shlibpath_overrides_runpath=no
11760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11761 ;;
11762 esac
11763 ;;
11764
11765 sysv4*MP*)
11766 if test -d /usr/nec; then
11767 version_type=linux # correct to gnu/linux during the next big refactor
11768 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11769 soname_spec='$libname$shared_ext.$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 fi
11772 ;;
11773
11774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11775 version_type=sco
11776 need_lib_prefix=no
11777 need_version=no
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11779 soname_spec='$libname$release$shared_ext$major'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 hardcode_into_libs=yes
11783 if test yes = "$with_gnu_ld"; then
11784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11785 else
11786 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11787 case $host_os in
11788 sco3.2v5*)
11789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11790 ;;
11791 esac
11792 fi
11793 sys_lib_dlsearch_path_spec='/usr/lib'
11794 ;;
11795
11796 tpf*)
11797 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11798 version_type=linux # correct to gnu/linux during the next big refactor
11799 need_lib_prefix=no
11800 need_version=no
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 ;;
11806
11807 uts4*)
11808 version_type=linux # correct to gnu/linux during the next big refactor
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810 soname_spec='$libname$release$shared_ext$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 ;;
11813
11814 *)
11815 dynamic_linker=no
11816 ;;
11817 esac
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11819 printf "%s\n" "$dynamic_linker" >&6; }
11820 test no = "$dynamic_linker" && can_build_shared=no
11821
11822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11823 if test yes = "$GCC"; then
11824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11825 fi
11826
11827 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11828 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11829 fi
11830
11831 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11832 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11833 fi
11834
11835 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11836 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11837
11838 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11839 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11840
11841 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11842 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11941 printf %s "checking how to hardcode library paths into programs... " >&6; }
11942 hardcode_action=
11943 if test -n "$hardcode_libdir_flag_spec" ||
11944 test -n "$runpath_var" ||
11945 test yes = "$hardcode_automatic"; then
11946
11947 # We can hardcode non-existent directories.
11948 if test no != "$hardcode_direct" &&
11949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11950 # have to relink, otherwise we might link with an installed library
11951 # when we should be linking with a yet-to-be-installed one
11952 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11953 test no != "$hardcode_minus_L"; then
11954 # Linking always hardcodes the temporary library directory.
11955 hardcode_action=relink
11956 else
11957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11958 hardcode_action=immediate
11959 fi
11960 else
11961 # We cannot hardcode anything, or else we can only hardcode existing
11962 # directories.
11963 hardcode_action=unsupported
11964 fi
11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11966 printf "%s\n" "$hardcode_action" >&6; }
11967
11968 if test relink = "$hardcode_action" ||
11969 test yes = "$inherit_rpath"; then
11970 # Fast installation is not supported
11971 enable_fast_install=no
11972 elif test yes = "$shlibpath_overrides_runpath" ||
11973 test no = "$enable_shared"; then
11974 # Fast installation is not necessary
11975 enable_fast_install=needless
11976 fi
11977
11978
11979
11980
11981
11982
11983 if test yes != "$enable_dlopen"; then
11984 enable_dlopen=unknown
11985 enable_dlopen_self=unknown
11986 enable_dlopen_self_static=unknown
11987 else
11988 lt_cv_dlopen=no
11989 lt_cv_dlopen_libs=
11990
11991 case $host_os in
11992 beos*)
11993 lt_cv_dlopen=load_add_on
11994 lt_cv_dlopen_libs=
11995 lt_cv_dlopen_self=yes
11996 ;;
11997
11998 mingw* | pw32* | cegcc*)
11999 lt_cv_dlopen=LoadLibrary
12000 lt_cv_dlopen_libs=
12001 ;;
12002
12003 cygwin*)
12004 lt_cv_dlopen=dlopen
12005 lt_cv_dlopen_libs=
12006 ;;
12007
12008 darwin*)
12009 # if libdl is installed we need to link against it
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12011 printf %s "checking for dlopen in -ldl... " >&6; }
12012 if test ${ac_cv_lib_dl_dlopen+y}
12013 then :
12014 printf %s "(cached) " >&6
12015 else $as_nop
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-ldl $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 char dlopen ();
12025 int
12026 main (void)
12027 {
12028 return dlopen ();
12029 ;
12030 return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"
12034 then :
12035 ac_cv_lib_dl_dlopen=yes
12036 else $as_nop
12037 ac_cv_lib_dl_dlopen=no
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12040 conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12042 fi
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12044 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12045 if test "x$ac_cv_lib_dl_dlopen" = xyes
12046 then :
12047 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12048 else $as_nop
12049
12050 lt_cv_dlopen=dyld
12051 lt_cv_dlopen_libs=
12052 lt_cv_dlopen_self=yes
12053
12054 fi
12055
12056 ;;
12057
12058 tpf*)
12059 # Don't try to run any link tests for TPF. We know it's impossible
12060 # because TPF is a cross-compiler, and we know how we open DSOs.
12061 lt_cv_dlopen=dlopen
12062 lt_cv_dlopen_libs=
12063 lt_cv_dlopen_self=no
12064 ;;
12065
12066 *)
12067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12068 if test "x$ac_cv_func_shl_load" = xyes
12069 then :
12070 lt_cv_dlopen=shl_load
12071 else $as_nop
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12073 printf %s "checking for shl_load in -ldld... " >&6; }
12074 if test ${ac_cv_lib_dld_shl_load+y}
12075 then :
12076 printf %s "(cached) " >&6
12077 else $as_nop
12078 ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-ldld $LIBS"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086 char shl_load ();
12087 int
12088 main (void)
12089 {
12090 return shl_load ();
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 if ac_fn_c_try_link "$LINENO"
12096 then :
12097 ac_cv_lib_dld_shl_load=yes
12098 else $as_nop
12099 ac_cv_lib_dld_shl_load=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12104 fi
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12106 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12107 if test "x$ac_cv_lib_dld_shl_load" = xyes
12108 then :
12109 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12110 else $as_nop
12111 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12112 if test "x$ac_cv_func_dlopen" = xyes
12113 then :
12114 lt_cv_dlopen=dlopen
12115 else $as_nop
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12117 printf %s "checking for dlopen in -ldl... " >&6; }
12118 if test ${ac_cv_lib_dl_dlopen+y}
12119 then :
12120 printf %s "(cached) " >&6
12121 else $as_nop
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-ldl $LIBS"
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 char dlopen ();
12131 int
12132 main (void)
12133 {
12134 return dlopen ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"
12140 then :
12141 ac_cv_lib_dl_dlopen=yes
12142 else $as_nop
12143 ac_cv_lib_dl_dlopen=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12150 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12151 if test "x$ac_cv_lib_dl_dlopen" = xyes
12152 then :
12153 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12154 else $as_nop
12155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12156 printf %s "checking for dlopen in -lsvld... " >&6; }
12157 if test ${ac_cv_lib_svld_dlopen+y}
12158 then :
12159 printf %s "(cached) " >&6
12160 else $as_nop
12161 ac_check_lib_save_LIBS=$LIBS
12162 LIBS="-lsvld $LIBS"
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12169 char dlopen ();
12170 int
12171 main (void)
12172 {
12173 return dlopen ();
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"
12179 then :
12180 ac_cv_lib_svld_dlopen=yes
12181 else $as_nop
12182 ac_cv_lib_svld_dlopen=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12189 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12190 if test "x$ac_cv_lib_svld_dlopen" = xyes
12191 then :
12192 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12193 else $as_nop
12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12195 printf %s "checking for dld_link in -ldld... " >&6; }
12196 if test ${ac_cv_lib_dld_dld_link+y}
12197 then :
12198 printf %s "(cached) " >&6
12199 else $as_nop
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-ldld $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 char dld_link ();
12209 int
12210 main (void)
12211 {
12212 return dld_link ();
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"
12218 then :
12219 ac_cv_lib_dld_dld_link=yes
12220 else $as_nop
12221 ac_cv_lib_dld_dld_link=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12228 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12229 if test "x$ac_cv_lib_dld_dld_link" = xyes
12230 then :
12231 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12232 fi
12233
12234
12235 fi
12236
12237
12238 fi
12239
12240
12241 fi
12242
12243
12244 fi
12245
12246
12247 fi
12248
12249 ;;
12250 esac
12251
12252 if test no = "$lt_cv_dlopen"; then
12253 enable_dlopen=no
12254 else
12255 enable_dlopen=yes
12256 fi
12257
12258 case $lt_cv_dlopen in
12259 dlopen)
12260 save_CPPFLAGS=$CPPFLAGS
12261 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12262
12263 save_LDFLAGS=$LDFLAGS
12264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12265
12266 save_LIBS=$LIBS
12267 LIBS="$lt_cv_dlopen_libs $LIBS"
12268
12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12270 printf %s "checking whether a program can dlopen itself... " >&6; }
12271 if test ${lt_cv_dlopen_self+y}
12272 then :
12273 printf %s "(cached) " >&6
12274 else $as_nop
12275 if test yes = "$cross_compiling"; then :
12276 lt_cv_dlopen_self=cross
12277 else
12278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279 lt_status=$lt_dlunknown
12280 cat > conftest.$ac_ext <<_LT_EOF
12281 #line $LINENO "configure"
12282 #include "confdefs.h"
12283
12284 #if HAVE_DLFCN_H
12285 #include <dlfcn.h>
12286 #endif
12287
12288 #include <stdio.h>
12289
12290 #ifdef RTLD_GLOBAL
12291 # define LT_DLGLOBAL RTLD_GLOBAL
12292 #else
12293 # ifdef DL_GLOBAL
12294 # define LT_DLGLOBAL DL_GLOBAL
12295 # else
12296 # define LT_DLGLOBAL 0
12297 # endif
12298 #endif
12299
12300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301 find out it does not work in some platform. */
12302 #ifndef LT_DLLAZY_OR_NOW
12303 # ifdef RTLD_LAZY
12304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12305 # else
12306 # ifdef DL_LAZY
12307 # define LT_DLLAZY_OR_NOW DL_LAZY
12308 # else
12309 # ifdef RTLD_NOW
12310 # define LT_DLLAZY_OR_NOW RTLD_NOW
12311 # else
12312 # ifdef DL_NOW
12313 # define LT_DLLAZY_OR_NOW DL_NOW
12314 # else
12315 # define LT_DLLAZY_OR_NOW 0
12316 # endif
12317 # endif
12318 # endif
12319 # endif
12320 #endif
12321
12322 /* When -fvisibility=hidden is used, assume the code has been annotated
12323 correspondingly for the symbols needed. */
12324 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12325 int fnord () __attribute__((visibility("default")));
12326 #endif
12327
12328 int fnord () { return 42; }
12329 int main ()
12330 {
12331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12332 int status = $lt_dlunknown;
12333
12334 if (self)
12335 {
12336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12337 else
12338 {
12339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12340 else puts (dlerror ());
12341 }
12342 /* dlclose (self); */
12343 }
12344 else
12345 puts (dlerror ());
12346
12347 return status;
12348 }
12349 _LT_EOF
12350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12351 (eval $ac_link) 2>&5
12352 ac_status=$?
12353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12354 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12355 (./conftest; exit; ) >&5 2>/dev/null
12356 lt_status=$?
12357 case x$lt_status in
12358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12361 esac
12362 else :
12363 # compilation failed
12364 lt_cv_dlopen_self=no
12365 fi
12366 fi
12367 rm -fr conftest*
12368
12369
12370 fi
12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12372 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12373
12374 if test yes = "$lt_cv_dlopen_self"; then
12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12377 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12378 if test ${lt_cv_dlopen_self_static+y}
12379 then :
12380 printf %s "(cached) " >&6
12381 else $as_nop
12382 if test yes = "$cross_compiling"; then :
12383 lt_cv_dlopen_self_static=cross
12384 else
12385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12386 lt_status=$lt_dlunknown
12387 cat > conftest.$ac_ext <<_LT_EOF
12388 #line $LINENO "configure"
12389 #include "confdefs.h"
12390
12391 #if HAVE_DLFCN_H
12392 #include <dlfcn.h>
12393 #endif
12394
12395 #include <stdio.h>
12396
12397 #ifdef RTLD_GLOBAL
12398 # define LT_DLGLOBAL RTLD_GLOBAL
12399 #else
12400 # ifdef DL_GLOBAL
12401 # define LT_DLGLOBAL DL_GLOBAL
12402 # else
12403 # define LT_DLGLOBAL 0
12404 # endif
12405 #endif
12406
12407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12408 find out it does not work in some platform. */
12409 #ifndef LT_DLLAZY_OR_NOW
12410 # ifdef RTLD_LAZY
12411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12412 # else
12413 # ifdef DL_LAZY
12414 # define LT_DLLAZY_OR_NOW DL_LAZY
12415 # else
12416 # ifdef RTLD_NOW
12417 # define LT_DLLAZY_OR_NOW RTLD_NOW
12418 # else
12419 # ifdef DL_NOW
12420 # define LT_DLLAZY_OR_NOW DL_NOW
12421 # else
12422 # define LT_DLLAZY_OR_NOW 0
12423 # endif
12424 # endif
12425 # endif
12426 # endif
12427 #endif
12428
12429 /* When -fvisibility=hidden is used, assume the code has been annotated
12430 correspondingly for the symbols needed. */
12431 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12432 int fnord () __attribute__((visibility("default")));
12433 #endif
12434
12435 int fnord () { return 42; }
12436 int main ()
12437 {
12438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12439 int status = $lt_dlunknown;
12440
12441 if (self)
12442 {
12443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12444 else
12445 {
12446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447 else puts (dlerror ());
12448 }
12449 /* dlclose (self); */
12450 }
12451 else
12452 puts (dlerror ());
12453
12454 return status;
12455 }
12456 _LT_EOF
12457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12458 (eval $ac_link) 2>&5
12459 ac_status=$?
12460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12461 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12462 (./conftest; exit; ) >&5 2>/dev/null
12463 lt_status=$?
12464 case x$lt_status in
12465 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12468 esac
12469 else :
12470 # compilation failed
12471 lt_cv_dlopen_self_static=no
12472 fi
12473 fi
12474 rm -fr conftest*
12475
12476
12477 fi
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12479 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12480 fi
12481
12482 CPPFLAGS=$save_CPPFLAGS
12483 LDFLAGS=$save_LDFLAGS
12484 LIBS=$save_LIBS
12485 ;;
12486 esac
12487
12488 case $lt_cv_dlopen_self in
12489 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12490 *) enable_dlopen_self=unknown ;;
12491 esac
12492
12493 case $lt_cv_dlopen_self_static in
12494 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12495 *) enable_dlopen_self_static=unknown ;;
12496 esac
12497 fi
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515 striplib=
12516 old_striplib=
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12518 printf %s "checking whether stripping libraries is possible... " >&6; }
12519 if test -z "$STRIP"; then
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 printf "%s\n" "no" >&6; }
12522 else
12523 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12524 old_striplib="$STRIP --strip-debug"
12525 striplib="$STRIP --strip-unneeded"
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12527 printf "%s\n" "yes" >&6; }
12528 else
12529 case $host_os in
12530 darwin*)
12531 # FIXME - insert some real tests, host_os isn't really good enough
12532 striplib="$STRIP -x"
12533 old_striplib="$STRIP -S"
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12535 printf "%s\n" "yes" >&6; }
12536 ;;
12537 freebsd*)
12538 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12539 old_striplib="$STRIP --strip-debug"
12540 striplib="$STRIP --strip-unneeded"
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542 printf "%s\n" "yes" >&6; }
12543 else
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 printf "%s\n" "no" >&6; }
12546 fi
12547 ;;
12548 *)
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 printf "%s\n" "no" >&6; }
12551 ;;
12552 esac
12553 fi
12554 fi
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567 # Report what library types will actually be built
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12569 printf %s "checking if libtool supports shared libraries... " >&6; }
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12571 printf "%s\n" "$can_build_shared" >&6; }
12572
12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12574 printf %s "checking whether to build shared libraries... " >&6; }
12575 test no = "$can_build_shared" && enable_shared=no
12576
12577 # On AIX, shared libraries and static libraries use the same namespace, and
12578 # are all built from PIC.
12579 case $host_os in
12580 aix3*)
12581 test yes = "$enable_shared" && enable_static=no
12582 if test -n "$RANLIB"; then
12583 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12584 postinstall_cmds='$RANLIB $lib'
12585 fi
12586 ;;
12587
12588 aix[4-9]*)
12589 if test ia64 != "$host_cpu"; then
12590 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12591 yes,aix,yes) ;; # shared object as lib.so file only
12592 yes,svr4,*) ;; # shared object as lib.so archive member only
12593 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12594 esac
12595 fi
12596 ;;
12597 esac
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12599 printf "%s\n" "$enable_shared" >&6; }
12600
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12602 printf %s "checking whether to build static libraries... " >&6; }
12603 # Make sure either enable_shared or enable_static is yes.
12604 test yes = "$enable_shared" || enable_static=yes
12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12606 printf "%s\n" "$enable_static" >&6; }
12607
12608
12609
12610
12611 fi
12612 ac_ext=c
12613 ac_cpp='$CPP $CPPFLAGS'
12614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617
12618 CC=$lt_save_CC
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634 ac_config_commands="$ac_config_commands libtool"
12635
12636
12637
12638
12639 # Only expand once:
12640
12641
12642
12643 # Require X.Org macros 1.8 or later
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12657 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12658 if test ${ac_cv_c_undeclared_builtin_options+y}
12659 then :
12660 printf %s "(cached) " >&6
12661 else $as_nop
12662 ac_save_CFLAGS=$CFLAGS
12663 ac_cv_c_undeclared_builtin_options='cannot detect'
12664 for ac_arg in '' -fno-builtin; do
12665 CFLAGS="$ac_save_CFLAGS $ac_arg"
12666 # This test program should *not* compile successfully.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669
12670 int
12671 main (void)
12672 {
12673 (void) strchr;
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 if ac_fn_c_try_compile "$LINENO"
12679 then :
12680
12681 else $as_nop
12682 # This test program should compile successfully.
12683 # No library function is consistently available on
12684 # freestanding implementations, so test against a dummy
12685 # declaration. Include always-available headers on the
12686 # off chance that they somehow elicit warnings.
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689 #include <float.h>
12690 #include <limits.h>
12691 #include <stdarg.h>
12692 #include <stddef.h>
12693 extern void ac_decl (int, char *);
12694
12695 int
12696 main (void)
12697 {
12698 (void) ac_decl (0, (char *) 0);
12699 (void) ac_decl;
12700
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_compile "$LINENO"
12706 then :
12707 if test x"$ac_arg" = x
12708 then :
12709 ac_cv_c_undeclared_builtin_options='none needed'
12710 else $as_nop
12711 ac_cv_c_undeclared_builtin_options=$ac_arg
12712 fi
12713 break
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12718 done
12719 CFLAGS=$ac_save_CFLAGS
12720
12721 fi
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12723 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12724 case $ac_cv_c_undeclared_builtin_options in #(
12725 'cannot detect') :
12726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12728 as_fn_error $? "cannot make $CC report undeclared builtins
12729 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12730 'none needed') :
12731 ac_c_undeclared_builtin_options='' ;; #(
12732 *) :
12733 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12734 esac
12735
12736
12737
12738
12739
12740 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12741 if test "x$ac_cv_have_decl___clang__" = xyes
12742 then :
12743 CLANGCC="yes"
12744 else $as_nop
12745 CLANGCC="no"
12746 fi
12747 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12748 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12749 then :
12750 INTELCC="yes"
12751 else $as_nop
12752 INTELCC="no"
12753 fi
12754 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12755 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12756 then :
12757 SUNCC="yes"
12758 else $as_nop
12759 SUNCC="no"
12760 fi
12761
12762
12763
12764
12765
12766
12767
12768
12769 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12770 if test -n "$ac_tool_prefix"; then
12771 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12772 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 printf %s "checking for $ac_word... " >&6; }
12775 if test ${ac_cv_path_PKG_CONFIG+y}
12776 then :
12777 printf %s "(cached) " >&6
12778 else $as_nop
12779 case $PKG_CONFIG in
12780 [\\/]* | ?:[\\/]*)
12781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12782 ;;
12783 *)
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 case $as_dir in #(((
12789 '') as_dir=./ ;;
12790 */) ;;
12791 *) as_dir=$as_dir/ ;;
12792 esac
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12795 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12797 break 2
12798 fi
12799 done
12800 done
12801 IFS=$as_save_IFS
12802
12803 ;;
12804 esac
12805 fi
12806 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12807 if test -n "$PKG_CONFIG"; then
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12809 printf "%s\n" "$PKG_CONFIG" >&6; }
12810 else
12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 printf "%s\n" "no" >&6; }
12813 fi
12814
12815
12816 fi
12817 if test -z "$ac_cv_path_PKG_CONFIG"; then
12818 ac_pt_PKG_CONFIG=$PKG_CONFIG
12819 # Extract the first word of "pkg-config", so it can be a program name with args.
12820 set dummy pkg-config; ac_word=$2
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 printf %s "checking for $ac_word... " >&6; }
12823 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12824 then :
12825 printf %s "(cached) " >&6
12826 else $as_nop
12827 case $ac_pt_PKG_CONFIG in
12828 [\\/]* | ?:[\\/]*)
12829 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12830 ;;
12831 *)
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835 IFS=$as_save_IFS
12836 case $as_dir in #(((
12837 '') as_dir=./ ;;
12838 */) ;;
12839 *) as_dir=$as_dir/ ;;
12840 esac
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12843 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 ;;
12852 esac
12853 fi
12854 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12855 if test -n "$ac_pt_PKG_CONFIG"; then
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12857 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12858 else
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 printf "%s\n" "no" >&6; }
12861 fi
12862
12863 if test "x$ac_pt_PKG_CONFIG" = x; then
12864 PKG_CONFIG=""
12865 else
12866 case $cross_compiling:$ac_tool_warned in
12867 yes:)
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870 ac_tool_warned=yes ;;
12871 esac
12872 PKG_CONFIG=$ac_pt_PKG_CONFIG
12873 fi
12874 else
12875 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12876 fi
12877
12878 fi
12879 if test -n "$PKG_CONFIG"; then
12880 _pkg_min_version=0.9.0
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12882 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12883 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 printf "%s\n" "yes" >&6; }
12886 else
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 printf "%s\n" "no" >&6; }
12889 PKG_CONFIG=""
12890 fi
12891 fi
12892
12893
12894
12895
12896
12897 # Check whether --enable-selective-werror was given.
12898 if test ${enable_selective_werror+y}
12899 then :
12900 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12901 else $as_nop
12902 SELECTIVE_WERROR=yes
12903 fi
12904
12905
12906
12907
12908
12909 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12910 if test "x$SUNCC" = "xyes"; then
12911 BASE_CFLAGS="-v"
12912 else
12913 BASE_CFLAGS=""
12914 fi
12915
12916 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930 xorg_testset_save_CFLAGS="$CFLAGS"
12931
12932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12937 then :
12938 printf %s "(cached) " >&6
12939 else $as_nop
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 int i;
12943 _ACEOF
12944 if ac_fn_c_try_compile "$LINENO"
12945 then :
12946 xorg_cv_cc_flag_unknown_warning_option=yes
12947 else $as_nop
12948 xorg_cv_cc_flag_unknown_warning_option=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12951 fi
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12955 CFLAGS="$xorg_testset_save_CFLAGS"
12956 fi
12957
12958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12961 fi
12962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12966 then :
12967 printf %s "(cached) " >&6
12968 else $as_nop
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971 int i;
12972 _ACEOF
12973 if ac_fn_c_try_compile "$LINENO"
12974 then :
12975 xorg_cv_cc_flag_unused_command_line_argument=yes
12976 else $as_nop
12977 xorg_cv_cc_flag_unused_command_line_argument=no
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12980 fi
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12984 CFLAGS="$xorg_testset_save_CFLAGS"
12985 fi
12986
12987 found="no"
12988
12989 if test $found = "no" ; then
12990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12992 fi
12993
12994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12996 fi
12997
12998 CFLAGS="$CFLAGS -Wall"
12999
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13001 printf %s "checking if $CC supports -Wall... " >&6; }
13002 cacheid=xorg_cv_cc_flag__Wall
13003 if eval test \${$cacheid+y}
13004 then :
13005 printf %s "(cached) " >&6
13006 else $as_nop
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 int i;
13010 int
13011 main (void)
13012 {
13013
13014 ;
13015 return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_link "$LINENO"
13019 then :
13020 eval $cacheid=yes
13021 else $as_nop
13022 eval $cacheid=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13025 conftest$ac_exeext conftest.$ac_ext
13026 fi
13027
13028
13029 CFLAGS="$xorg_testset_save_CFLAGS"
13030
13031 eval supported=\$$cacheid
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13033 printf "%s\n" "$supported" >&6; }
13034 if test "$supported" = "yes" ; then
13035 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13036 found="yes"
13037 fi
13038 fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054 xorg_testset_save_CFLAGS="$CFLAGS"
13055
13056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13059 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13060 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13061 then :
13062 printf %s "(cached) " >&6
13063 else $as_nop
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066 int i;
13067 _ACEOF
13068 if ac_fn_c_try_compile "$LINENO"
13069 then :
13070 xorg_cv_cc_flag_unknown_warning_option=yes
13071 else $as_nop
13072 xorg_cv_cc_flag_unknown_warning_option=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13075 fi
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13079 CFLAGS="$xorg_testset_save_CFLAGS"
13080 fi
13081
13082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13085 fi
13086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13090 then :
13091 printf %s "(cached) " >&6
13092 else $as_nop
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 int i;
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"
13098 then :
13099 xorg_cv_cc_flag_unused_command_line_argument=yes
13100 else $as_nop
13101 xorg_cv_cc_flag_unused_command_line_argument=no
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13104 fi
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13108 CFLAGS="$xorg_testset_save_CFLAGS"
13109 fi
13110
13111 found="no"
13112
13113 if test $found = "no" ; then
13114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13116 fi
13117
13118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13120 fi
13121
13122 CFLAGS="$CFLAGS -Wpointer-arith"
13123
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13125 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13126 cacheid=xorg_cv_cc_flag__Wpointer_arith
13127 if eval test \${$cacheid+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else $as_nop
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 int i;
13134 int
13135 main (void)
13136 {
13137
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"
13143 then :
13144 eval $cacheid=yes
13145 else $as_nop
13146 eval $cacheid=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13149 conftest$ac_exeext conftest.$ac_ext
13150 fi
13151
13152
13153 CFLAGS="$xorg_testset_save_CFLAGS"
13154
13155 eval supported=\$$cacheid
13156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13157 printf "%s\n" "$supported" >&6; }
13158 if test "$supported" = "yes" ; then
13159 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13160 found="yes"
13161 fi
13162 fi
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178 xorg_testset_save_CFLAGS="$CFLAGS"
13179
13180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13184 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13185 then :
13186 printf %s "(cached) " >&6
13187 else $as_nop
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190 int i;
13191 _ACEOF
13192 if ac_fn_c_try_compile "$LINENO"
13193 then :
13194 xorg_cv_cc_flag_unknown_warning_option=yes
13195 else $as_nop
13196 xorg_cv_cc_flag_unknown_warning_option=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13199 fi
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13201 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13203 CFLAGS="$xorg_testset_save_CFLAGS"
13204 fi
13205
13206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13209 fi
13210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13214 then :
13215 printf %s "(cached) " >&6
13216 else $as_nop
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 int i;
13220 _ACEOF
13221 if ac_fn_c_try_compile "$LINENO"
13222 then :
13223 xorg_cv_cc_flag_unused_command_line_argument=yes
13224 else $as_nop
13225 xorg_cv_cc_flag_unused_command_line_argument=no
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13228 fi
13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13230 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13232 CFLAGS="$xorg_testset_save_CFLAGS"
13233 fi
13234
13235 found="no"
13236
13237 if test $found = "no" ; then
13238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13240 fi
13241
13242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13244 fi
13245
13246 CFLAGS="$CFLAGS -Wmissing-declarations"
13247
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13249 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13250 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13251 if eval test \${$cacheid+y}
13252 then :
13253 printf %s "(cached) " >&6
13254 else $as_nop
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 int i;
13258 int
13259 main (void)
13260 {
13261
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"
13267 then :
13268 eval $cacheid=yes
13269 else $as_nop
13270 eval $cacheid=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13273 conftest$ac_exeext conftest.$ac_ext
13274 fi
13275
13276
13277 CFLAGS="$xorg_testset_save_CFLAGS"
13278
13279 eval supported=\$$cacheid
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13281 printf "%s\n" "$supported" >&6; }
13282 if test "$supported" = "yes" ; then
13283 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13284 found="yes"
13285 fi
13286 fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302 xorg_testset_save_CFLAGS="$CFLAGS"
13303
13304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13309 then :
13310 printf %s "(cached) " >&6
13311 else $as_nop
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 int i;
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"
13317 then :
13318 xorg_cv_cc_flag_unknown_warning_option=yes
13319 else $as_nop
13320 xorg_cv_cc_flag_unknown_warning_option=no
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13323 fi
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13327 CFLAGS="$xorg_testset_save_CFLAGS"
13328 fi
13329
13330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13333 fi
13334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13338 then :
13339 printf %s "(cached) " >&6
13340 else $as_nop
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 int i;
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"
13346 then :
13347 xorg_cv_cc_flag_unused_command_line_argument=yes
13348 else $as_nop
13349 xorg_cv_cc_flag_unused_command_line_argument=no
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13352 fi
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13354 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13356 CFLAGS="$xorg_testset_save_CFLAGS"
13357 fi
13358
13359 found="no"
13360
13361 if test $found = "no" ; then
13362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13364 fi
13365
13366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13368 fi
13369
13370 CFLAGS="$CFLAGS -Wformat=2"
13371
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13373 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13374 cacheid=xorg_cv_cc_flag__Wformat_2
13375 if eval test \${$cacheid+y}
13376 then :
13377 printf %s "(cached) " >&6
13378 else $as_nop
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 int i;
13382 int
13383 main (void)
13384 {
13385
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 eval $cacheid=yes
13393 else $as_nop
13394 eval $cacheid=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13397 conftest$ac_exeext conftest.$ac_ext
13398 fi
13399
13400
13401 CFLAGS="$xorg_testset_save_CFLAGS"
13402
13403 eval supported=\$$cacheid
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13405 printf "%s\n" "$supported" >&6; }
13406 if test "$supported" = "yes" ; then
13407 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13408 found="yes"
13409 fi
13410 fi
13411
13412 if test $found = "no" ; then
13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415 fi
13416
13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419 fi
13420
13421 CFLAGS="$CFLAGS -Wformat"
13422
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13424 printf %s "checking if $CC supports -Wformat... " >&6; }
13425 cacheid=xorg_cv_cc_flag__Wformat
13426 if eval test \${$cacheid+y}
13427 then :
13428 printf %s "(cached) " >&6
13429 else $as_nop
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 int i;
13433 int
13434 main (void)
13435 {
13436
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"
13442 then :
13443 eval $cacheid=yes
13444 else $as_nop
13445 eval $cacheid=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13448 conftest$ac_exeext conftest.$ac_ext
13449 fi
13450
13451
13452 CFLAGS="$xorg_testset_save_CFLAGS"
13453
13454 eval supported=\$$cacheid
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13456 printf "%s\n" "$supported" >&6; }
13457 if test "$supported" = "yes" ; then
13458 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13459 found="yes"
13460 fi
13461 fi
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479 xorg_testset_save_CFLAGS="$CFLAGS"
13480
13481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13484 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13485 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13486 then :
13487 printf %s "(cached) " >&6
13488 else $as_nop
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 int i;
13492 _ACEOF
13493 if ac_fn_c_try_compile "$LINENO"
13494 then :
13495 xorg_cv_cc_flag_unknown_warning_option=yes
13496 else $as_nop
13497 xorg_cv_cc_flag_unknown_warning_option=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13500 fi
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505 fi
13506
13507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510 fi
13511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13515 then :
13516 printf %s "(cached) " >&6
13517 else $as_nop
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 int i;
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"
13523 then :
13524 xorg_cv_cc_flag_unused_command_line_argument=yes
13525 else $as_nop
13526 xorg_cv_cc_flag_unused_command_line_argument=no
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13529 fi
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13533 CFLAGS="$xorg_testset_save_CFLAGS"
13534 fi
13535
13536 found="no"
13537
13538 if test $found = "no" ; then
13539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13541 fi
13542
13543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13545 fi
13546
13547 CFLAGS="$CFLAGS -Wstrict-prototypes"
13548
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13550 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13551 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13552 if eval test \${$cacheid+y}
13553 then :
13554 printf %s "(cached) " >&6
13555 else $as_nop
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 int i;
13559 int
13560 main (void)
13561 {
13562
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_link "$LINENO"
13568 then :
13569 eval $cacheid=yes
13570 else $as_nop
13571 eval $cacheid=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13574 conftest$ac_exeext conftest.$ac_ext
13575 fi
13576
13577
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13579
13580 eval supported=\$$cacheid
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13582 printf "%s\n" "$supported" >&6; }
13583 if test "$supported" = "yes" ; then
13584 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13585 found="yes"
13586 fi
13587 fi
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603 xorg_testset_save_CFLAGS="$CFLAGS"
13604
13605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13609 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13610 then :
13611 printf %s "(cached) " >&6
13612 else $as_nop
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 int i;
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"
13618 then :
13619 xorg_cv_cc_flag_unknown_warning_option=yes
13620 else $as_nop
13621 xorg_cv_cc_flag_unknown_warning_option=no
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13624 fi
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13628 CFLAGS="$xorg_testset_save_CFLAGS"
13629 fi
13630
13631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13634 fi
13635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13639 then :
13640 printf %s "(cached) " >&6
13641 else $as_nop
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 int i;
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"
13647 then :
13648 xorg_cv_cc_flag_unused_command_line_argument=yes
13649 else $as_nop
13650 xorg_cv_cc_flag_unused_command_line_argument=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13653 fi
13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13657 CFLAGS="$xorg_testset_save_CFLAGS"
13658 fi
13659
13660 found="no"
13661
13662 if test $found = "no" ; then
13663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665 fi
13666
13667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13669 fi
13670
13671 CFLAGS="$CFLAGS -Wmissing-prototypes"
13672
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13674 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13675 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13676 if eval test \${$cacheid+y}
13677 then :
13678 printf %s "(cached) " >&6
13679 else $as_nop
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int i;
13683 int
13684 main (void)
13685 {
13686
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"
13692 then :
13693 eval $cacheid=yes
13694 else $as_nop
13695 eval $cacheid=no
13696 fi
13697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13698 conftest$ac_exeext conftest.$ac_ext
13699 fi
13700
13701
13702 CFLAGS="$xorg_testset_save_CFLAGS"
13703
13704 eval supported=\$$cacheid
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13706 printf "%s\n" "$supported" >&6; }
13707 if test "$supported" = "yes" ; then
13708 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13709 found="yes"
13710 fi
13711 fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727 xorg_testset_save_CFLAGS="$CFLAGS"
13728
13729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13733 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13734 then :
13735 printf %s "(cached) " >&6
13736 else $as_nop
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 int i;
13740 _ACEOF
13741 if ac_fn_c_try_compile "$LINENO"
13742 then :
13743 xorg_cv_cc_flag_unknown_warning_option=yes
13744 else $as_nop
13745 xorg_cv_cc_flag_unknown_warning_option=no
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13748 fi
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13752 CFLAGS="$xorg_testset_save_CFLAGS"
13753 fi
13754
13755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758 fi
13759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13763 then :
13764 printf %s "(cached) " >&6
13765 else $as_nop
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 int i;
13769 _ACEOF
13770 if ac_fn_c_try_compile "$LINENO"
13771 then :
13772 xorg_cv_cc_flag_unused_command_line_argument=yes
13773 else $as_nop
13774 xorg_cv_cc_flag_unused_command_line_argument=no
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13777 fi
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13779 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13781 CFLAGS="$xorg_testset_save_CFLAGS"
13782 fi
13783
13784 found="no"
13785
13786 if test $found = "no" ; then
13787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13789 fi
13790
13791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13793 fi
13794
13795 CFLAGS="$CFLAGS -Wnested-externs"
13796
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13798 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13799 cacheid=xorg_cv_cc_flag__Wnested_externs
13800 if eval test \${$cacheid+y}
13801 then :
13802 printf %s "(cached) " >&6
13803 else $as_nop
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 int i;
13807 int
13808 main (void)
13809 {
13810
13811 ;
13812 return 0;
13813 }
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"
13816 then :
13817 eval $cacheid=yes
13818 else $as_nop
13819 eval $cacheid=no
13820 fi
13821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13822 conftest$ac_exeext conftest.$ac_ext
13823 fi
13824
13825
13826 CFLAGS="$xorg_testset_save_CFLAGS"
13827
13828 eval supported=\$$cacheid
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13830 printf "%s\n" "$supported" >&6; }
13831 if test "$supported" = "yes" ; then
13832 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13833 found="yes"
13834 fi
13835 fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851 xorg_testset_save_CFLAGS="$CFLAGS"
13852
13853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13856 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13857 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13858 then :
13859 printf %s "(cached) " >&6
13860 else $as_nop
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 int i;
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"
13866 then :
13867 xorg_cv_cc_flag_unknown_warning_option=yes
13868 else $as_nop
13869 xorg_cv_cc_flag_unknown_warning_option=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13872 fi
13873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13876 CFLAGS="$xorg_testset_save_CFLAGS"
13877 fi
13878
13879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13882 fi
13883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13887 then :
13888 printf %s "(cached) " >&6
13889 else $as_nop
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 int i;
13893 _ACEOF
13894 if ac_fn_c_try_compile "$LINENO"
13895 then :
13896 xorg_cv_cc_flag_unused_command_line_argument=yes
13897 else $as_nop
13898 xorg_cv_cc_flag_unused_command_line_argument=no
13899 fi
13900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13901 fi
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13903 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13905 CFLAGS="$xorg_testset_save_CFLAGS"
13906 fi
13907
13908 found="no"
13909
13910 if test $found = "no" ; then
13911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13913 fi
13914
13915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13917 fi
13918
13919 CFLAGS="$CFLAGS -Wbad-function-cast"
13920
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13922 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13923 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13924 if eval test \${$cacheid+y}
13925 then :
13926 printf %s "(cached) " >&6
13927 else $as_nop
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 int i;
13931 int
13932 main (void)
13933 {
13934
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"
13940 then :
13941 eval $cacheid=yes
13942 else $as_nop
13943 eval $cacheid=no
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13946 conftest$ac_exeext conftest.$ac_ext
13947 fi
13948
13949
13950 CFLAGS="$xorg_testset_save_CFLAGS"
13951
13952 eval supported=\$$cacheid
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13954 printf "%s\n" "$supported" >&6; }
13955 if test "$supported" = "yes" ; then
13956 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13957 found="yes"
13958 fi
13959 fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975 xorg_testset_save_CFLAGS="$CFLAGS"
13976
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13980 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13981 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13982 then :
13983 printf %s "(cached) " >&6
13984 else $as_nop
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 int i;
13988 _ACEOF
13989 if ac_fn_c_try_compile "$LINENO"
13990 then :
13991 xorg_cv_cc_flag_unknown_warning_option=yes
13992 else $as_nop
13993 xorg_cv_cc_flag_unknown_warning_option=no
13994 fi
13995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13996 fi
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13998 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14000 CFLAGS="$xorg_testset_save_CFLAGS"
14001 fi
14002
14003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14006 fi
14007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14011 then :
14012 printf %s "(cached) " >&6
14013 else $as_nop
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14016 int i;
14017 _ACEOF
14018 if ac_fn_c_try_compile "$LINENO"
14019 then :
14020 xorg_cv_cc_flag_unused_command_line_argument=yes
14021 else $as_nop
14022 xorg_cv_cc_flag_unused_command_line_argument=no
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14025 fi
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14027 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14029 CFLAGS="$xorg_testset_save_CFLAGS"
14030 fi
14031
14032 found="no"
14033
14034 if test $found = "no" ; then
14035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14037 fi
14038
14039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14041 fi
14042
14043 CFLAGS="$CFLAGS -Wold-style-definition"
14044
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14046 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14047 cacheid=xorg_cv_cc_flag__Wold_style_definition
14048 if eval test \${$cacheid+y}
14049 then :
14050 printf %s "(cached) " >&6
14051 else $as_nop
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 int i;
14055 int
14056 main (void)
14057 {
14058
14059 ;
14060 return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_link "$LINENO"
14064 then :
14065 eval $cacheid=yes
14066 else $as_nop
14067 eval $cacheid=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14070 conftest$ac_exeext conftest.$ac_ext
14071 fi
14072
14073
14074 CFLAGS="$xorg_testset_save_CFLAGS"
14075
14076 eval supported=\$$cacheid
14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14078 printf "%s\n" "$supported" >&6; }
14079 if test "$supported" = "yes" ; then
14080 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14081 found="yes"
14082 fi
14083 fi
14084
14085 if test $found = "no" ; then
14086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088 fi
14089
14090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092 fi
14093
14094 CFLAGS="$CFLAGS -fd"
14095
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14097 printf %s "checking if $CC supports -fd... " >&6; }
14098 cacheid=xorg_cv_cc_flag__fd
14099 if eval test \${$cacheid+y}
14100 then :
14101 printf %s "(cached) " >&6
14102 else $as_nop
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105 int i;
14106 int
14107 main (void)
14108 {
14109
14110 ;
14111 return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"
14115 then :
14116 eval $cacheid=yes
14117 else $as_nop
14118 eval $cacheid=no
14119 fi
14120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14121 conftest$ac_exeext conftest.$ac_ext
14122 fi
14123
14124
14125 CFLAGS="$xorg_testset_save_CFLAGS"
14126
14127 eval supported=\$$cacheid
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14129 printf "%s\n" "$supported" >&6; }
14130 if test "$supported" = "yes" ; then
14131 BASE_CFLAGS="$BASE_CFLAGS -fd"
14132 found="yes"
14133 fi
14134 fi
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150 xorg_testset_save_CFLAGS="$CFLAGS"
14151
14152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14157 then :
14158 printf %s "(cached) " >&6
14159 else $as_nop
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 int i;
14163 _ACEOF
14164 if ac_fn_c_try_compile "$LINENO"
14165 then :
14166 xorg_cv_cc_flag_unknown_warning_option=yes
14167 else $as_nop
14168 xorg_cv_cc_flag_unknown_warning_option=no
14169 fi
14170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14171 fi
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14173 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14175 CFLAGS="$xorg_testset_save_CFLAGS"
14176 fi
14177
14178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181 fi
14182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14186 then :
14187 printf %s "(cached) " >&6
14188 else $as_nop
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 int i;
14192 _ACEOF
14193 if ac_fn_c_try_compile "$LINENO"
14194 then :
14195 xorg_cv_cc_flag_unused_command_line_argument=yes
14196 else $as_nop
14197 xorg_cv_cc_flag_unused_command_line_argument=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14200 fi
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14204 CFLAGS="$xorg_testset_save_CFLAGS"
14205 fi
14206
14207 found="no"
14208
14209 if test $found = "no" ; then
14210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14212 fi
14213
14214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14216 fi
14217
14218 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14219
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14221 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14222 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14223 if eval test \${$cacheid+y}
14224 then :
14225 printf %s "(cached) " >&6
14226 else $as_nop
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 int i;
14230 int
14231 main (void)
14232 {
14233
14234 ;
14235 return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_link "$LINENO"
14239 then :
14240 eval $cacheid=yes
14241 else $as_nop
14242 eval $cacheid=no
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14245 conftest$ac_exeext conftest.$ac_ext
14246 fi
14247
14248
14249 CFLAGS="$xorg_testset_save_CFLAGS"
14250
14251 eval supported=\$$cacheid
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14253 printf "%s\n" "$supported" >&6; }
14254 if test "$supported" = "yes" ; then
14255 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14256 found="yes"
14257 fi
14258 fi
14259
14260
14261
14262
14263
14264 # This chunk adds additional warnings that could catch undesired effects.
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278 xorg_testset_save_CFLAGS="$CFLAGS"
14279
14280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14284 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14285 then :
14286 printf %s "(cached) " >&6
14287 else $as_nop
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 int i;
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"
14293 then :
14294 xorg_cv_cc_flag_unknown_warning_option=yes
14295 else $as_nop
14296 xorg_cv_cc_flag_unknown_warning_option=no
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14299 fi
14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14303 CFLAGS="$xorg_testset_save_CFLAGS"
14304 fi
14305
14306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309 fi
14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14314 then :
14315 printf %s "(cached) " >&6
14316 else $as_nop
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 int i;
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"
14322 then :
14323 xorg_cv_cc_flag_unused_command_line_argument=yes
14324 else $as_nop
14325 xorg_cv_cc_flag_unused_command_line_argument=no
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14328 fi
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14332 CFLAGS="$xorg_testset_save_CFLAGS"
14333 fi
14334
14335 found="no"
14336
14337 if test $found = "no" ; then
14338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14340 fi
14341
14342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14344 fi
14345
14346 CFLAGS="$CFLAGS -Wunused"
14347
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14349 printf %s "checking if $CC supports -Wunused... " >&6; }
14350 cacheid=xorg_cv_cc_flag__Wunused
14351 if eval test \${$cacheid+y}
14352 then :
14353 printf %s "(cached) " >&6
14354 else $as_nop
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 int i;
14358 int
14359 main (void)
14360 {
14361
14362 ;
14363 return 0;
14364 }
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"
14367 then :
14368 eval $cacheid=yes
14369 else $as_nop
14370 eval $cacheid=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14373 conftest$ac_exeext conftest.$ac_ext
14374 fi
14375
14376
14377 CFLAGS="$xorg_testset_save_CFLAGS"
14378
14379 eval supported=\$$cacheid
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14381 printf "%s\n" "$supported" >&6; }
14382 if test "$supported" = "yes" ; then
14383 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14384 found="yes"
14385 fi
14386 fi
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 xorg_testset_save_CFLAGS="$CFLAGS"
14403
14404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14409 then :
14410 printf %s "(cached) " >&6
14411 else $as_nop
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 int i;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"
14417 then :
14418 xorg_cv_cc_flag_unknown_warning_option=yes
14419 else $as_nop
14420 xorg_cv_cc_flag_unknown_warning_option=no
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14423 fi
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14428 fi
14429
14430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 fi
14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14438 then :
14439 printf %s "(cached) " >&6
14440 else $as_nop
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 int i;
14444 _ACEOF
14445 if ac_fn_c_try_compile "$LINENO"
14446 then :
14447 xorg_cv_cc_flag_unused_command_line_argument=yes
14448 else $as_nop
14449 xorg_cv_cc_flag_unused_command_line_argument=no
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14452 fi
14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14456 CFLAGS="$xorg_testset_save_CFLAGS"
14457 fi
14458
14459 found="no"
14460
14461 if test $found = "no" ; then
14462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464 fi
14465
14466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14468 fi
14469
14470 CFLAGS="$CFLAGS -Wuninitialized"
14471
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14473 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14474 cacheid=xorg_cv_cc_flag__Wuninitialized
14475 if eval test \${$cacheid+y}
14476 then :
14477 printf %s "(cached) " >&6
14478 else $as_nop
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 int i;
14482 int
14483 main (void)
14484 {
14485
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"
14491 then :
14492 eval $cacheid=yes
14493 else $as_nop
14494 eval $cacheid=no
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497 conftest$ac_exeext conftest.$ac_ext
14498 fi
14499
14500
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502
14503 eval supported=\$$cacheid
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14505 printf "%s\n" "$supported" >&6; }
14506 if test "$supported" = "yes" ; then
14507 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14508 found="yes"
14509 fi
14510 fi
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526 xorg_testset_save_CFLAGS="$CFLAGS"
14527
14528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else $as_nop
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 int i;
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"
14541 then :
14542 xorg_cv_cc_flag_unknown_warning_option=yes
14543 else $as_nop
14544 xorg_cv_cc_flag_unknown_warning_option=no
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547 fi
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14549 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14551 CFLAGS="$xorg_testset_save_CFLAGS"
14552 fi
14553
14554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14557 fi
14558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14560 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14561 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14562 then :
14563 printf %s "(cached) " >&6
14564 else $as_nop
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 int i;
14568 _ACEOF
14569 if ac_fn_c_try_compile "$LINENO"
14570 then :
14571 xorg_cv_cc_flag_unused_command_line_argument=yes
14572 else $as_nop
14573 xorg_cv_cc_flag_unused_command_line_argument=no
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14576 fi
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14580 CFLAGS="$xorg_testset_save_CFLAGS"
14581 fi
14582
14583 found="no"
14584
14585 if test $found = "no" ; then
14586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14588 fi
14589
14590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14592 fi
14593
14594 CFLAGS="$CFLAGS -Wshadow"
14595
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14597 printf %s "checking if $CC supports -Wshadow... " >&6; }
14598 cacheid=xorg_cv_cc_flag__Wshadow
14599 if eval test \${$cacheid+y}
14600 then :
14601 printf %s "(cached) " >&6
14602 else $as_nop
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 int i;
14606 int
14607 main (void)
14608 {
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"
14615 then :
14616 eval $cacheid=yes
14617 else $as_nop
14618 eval $cacheid=no
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14621 conftest$ac_exeext conftest.$ac_ext
14622 fi
14623
14624
14625 CFLAGS="$xorg_testset_save_CFLAGS"
14626
14627 eval supported=\$$cacheid
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14629 printf "%s\n" "$supported" >&6; }
14630 if test "$supported" = "yes" ; then
14631 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14632 found="yes"
14633 fi
14634 fi
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 xorg_testset_save_CFLAGS="$CFLAGS"
14651
14652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14656 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14657 then :
14658 printf %s "(cached) " >&6
14659 else $as_nop
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 int i;
14663 _ACEOF
14664 if ac_fn_c_try_compile "$LINENO"
14665 then :
14666 xorg_cv_cc_flag_unknown_warning_option=yes
14667 else $as_nop
14668 xorg_cv_cc_flag_unknown_warning_option=no
14669 fi
14670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14671 fi
14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14673 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14675 CFLAGS="$xorg_testset_save_CFLAGS"
14676 fi
14677
14678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14681 fi
14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14684 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14685 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14686 then :
14687 printf %s "(cached) " >&6
14688 else $as_nop
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 int i;
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"
14694 then :
14695 xorg_cv_cc_flag_unused_command_line_argument=yes
14696 else $as_nop
14697 xorg_cv_cc_flag_unused_command_line_argument=no
14698 fi
14699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14700 fi
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14704 CFLAGS="$xorg_testset_save_CFLAGS"
14705 fi
14706
14707 found="no"
14708
14709 if test $found = "no" ; then
14710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14712 fi
14713
14714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14716 fi
14717
14718 CFLAGS="$CFLAGS -Wmissing-noreturn"
14719
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14721 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14722 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14723 if eval test \${$cacheid+y}
14724 then :
14725 printf %s "(cached) " >&6
14726 else $as_nop
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 int i;
14730 int
14731 main (void)
14732 {
14733
14734 ;
14735 return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_c_try_link "$LINENO"
14739 then :
14740 eval $cacheid=yes
14741 else $as_nop
14742 eval $cacheid=no
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14745 conftest$ac_exeext conftest.$ac_ext
14746 fi
14747
14748
14749 CFLAGS="$xorg_testset_save_CFLAGS"
14750
14751 eval supported=\$$cacheid
14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14753 printf "%s\n" "$supported" >&6; }
14754 if test "$supported" = "yes" ; then
14755 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14756 found="yes"
14757 fi
14758 fi
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774 xorg_testset_save_CFLAGS="$CFLAGS"
14775
14776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14780 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14781 then :
14782 printf %s "(cached) " >&6
14783 else $as_nop
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 int i;
14787 _ACEOF
14788 if ac_fn_c_try_compile "$LINENO"
14789 then :
14790 xorg_cv_cc_flag_unknown_warning_option=yes
14791 else $as_nop
14792 xorg_cv_cc_flag_unknown_warning_option=no
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795 fi
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14797 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14799 CFLAGS="$xorg_testset_save_CFLAGS"
14800 fi
14801
14802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805 fi
14806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14808 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14809 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14810 then :
14811 printf %s "(cached) " >&6
14812 else $as_nop
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 int i;
14816 _ACEOF
14817 if ac_fn_c_try_compile "$LINENO"
14818 then :
14819 xorg_cv_cc_flag_unused_command_line_argument=yes
14820 else $as_nop
14821 xorg_cv_cc_flag_unused_command_line_argument=no
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14824 fi
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14826 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14828 CFLAGS="$xorg_testset_save_CFLAGS"
14829 fi
14830
14831 found="no"
14832
14833 if test $found = "no" ; then
14834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836 fi
14837
14838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840 fi
14841
14842 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14843
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14845 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14846 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14847 if eval test \${$cacheid+y}
14848 then :
14849 printf %s "(cached) " >&6
14850 else $as_nop
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 int i;
14854 int
14855 main (void)
14856 {
14857
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"
14863 then :
14864 eval $cacheid=yes
14865 else $as_nop
14866 eval $cacheid=no
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14869 conftest$ac_exeext conftest.$ac_ext
14870 fi
14871
14872
14873 CFLAGS="$xorg_testset_save_CFLAGS"
14874
14875 eval supported=\$$cacheid
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14877 printf "%s\n" "$supported" >&6; }
14878 if test "$supported" = "yes" ; then
14879 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14880 found="yes"
14881 fi
14882 fi
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898 xorg_testset_save_CFLAGS="$CFLAGS"
14899
14900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14905 then :
14906 printf %s "(cached) " >&6
14907 else $as_nop
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 int i;
14911 _ACEOF
14912 if ac_fn_c_try_compile "$LINENO"
14913 then :
14914 xorg_cv_cc_flag_unknown_warning_option=yes
14915 else $as_nop
14916 xorg_cv_cc_flag_unknown_warning_option=no
14917 fi
14918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14919 fi
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14923 CFLAGS="$xorg_testset_save_CFLAGS"
14924 fi
14925
14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929 fi
14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14934 then :
14935 printf %s "(cached) " >&6
14936 else $as_nop
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 int i;
14940 _ACEOF
14941 if ac_fn_c_try_compile "$LINENO"
14942 then :
14943 xorg_cv_cc_flag_unused_command_line_argument=yes
14944 else $as_nop
14945 xorg_cv_cc_flag_unused_command_line_argument=no
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14948 fi
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14952 CFLAGS="$xorg_testset_save_CFLAGS"
14953 fi
14954
14955 found="no"
14956
14957 if test $found = "no" ; then
14958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960 fi
14961
14962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14964 fi
14965
14966 CFLAGS="$CFLAGS -Wredundant-decls"
14967
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14969 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14970 cacheid=xorg_cv_cc_flag__Wredundant_decls
14971 if eval test \${$cacheid+y}
14972 then :
14973 printf %s "(cached) " >&6
14974 else $as_nop
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 int
14979 main (void)
14980 {
14981
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 if ac_fn_c_try_link "$LINENO"
14987 then :
14988 eval $cacheid=yes
14989 else $as_nop
14990 eval $cacheid=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14993 conftest$ac_exeext conftest.$ac_ext
14994 fi
14995
14996
14997 CFLAGS="$xorg_testset_save_CFLAGS"
14998
14999 eval supported=\$$cacheid
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15001 printf "%s\n" "$supported" >&6; }
15002 if test "$supported" = "yes" ; then
15003 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15004 found="yes"
15005 fi
15006 fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022 xorg_testset_save_CFLAGS="$CFLAGS"
15023
15024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15029 then :
15030 printf %s "(cached) " >&6
15031 else $as_nop
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 int i;
15035 _ACEOF
15036 if ac_fn_c_try_compile "$LINENO"
15037 then :
15038 xorg_cv_cc_flag_unknown_warning_option=yes
15039 else $as_nop
15040 xorg_cv_cc_flag_unknown_warning_option=no
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15043 fi
15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15047 CFLAGS="$xorg_testset_save_CFLAGS"
15048 fi
15049
15050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053 fi
15054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15058 then :
15059 printf %s "(cached) " >&6
15060 else $as_nop
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063 int i;
15064 _ACEOF
15065 if ac_fn_c_try_compile "$LINENO"
15066 then :
15067 xorg_cv_cc_flag_unused_command_line_argument=yes
15068 else $as_nop
15069 xorg_cv_cc_flag_unused_command_line_argument=no
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15072 fi
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15076 CFLAGS="$xorg_testset_save_CFLAGS"
15077 fi
15078
15079 found="no"
15080
15081 if test $found = "no" ; then
15082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084 fi
15085
15086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15088 fi
15089
15090 CFLAGS="$CFLAGS -Wlogical-op"
15091
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15093 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15094 cacheid=xorg_cv_cc_flag__Wlogical_op
15095 if eval test \${$cacheid+y}
15096 then :
15097 printf %s "(cached) " >&6
15098 else $as_nop
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101 int i;
15102 int
15103 main (void)
15104 {
15105
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"
15111 then :
15112 eval $cacheid=yes
15113 else $as_nop
15114 eval $cacheid=no
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15117 conftest$ac_exeext conftest.$ac_ext
15118 fi
15119
15120
15121 CFLAGS="$xorg_testset_save_CFLAGS"
15122
15123 eval supported=\$$cacheid
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15125 printf "%s\n" "$supported" >&6; }
15126 if test "$supported" = "yes" ; then
15127 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15128 found="yes"
15129 fi
15130 fi
15131
15132
15133
15134 # These are currently disabled because they are noisy. They will be enabled
15135 # in the future once the codebase is sufficiently modernized to silence
15136 # them. For now, I don't want them to drown out the other warnings.
15137 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15138 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15139 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15140
15141 # Turn some warnings into errors, so we don't accidently get successful builds
15142 # when there are problems that should be fixed.
15143
15144 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158 xorg_testset_save_CFLAGS="$CFLAGS"
15159
15160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15165 then :
15166 printf %s "(cached) " >&6
15167 else $as_nop
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 int i;
15171 _ACEOF
15172 if ac_fn_c_try_compile "$LINENO"
15173 then :
15174 xorg_cv_cc_flag_unknown_warning_option=yes
15175 else $as_nop
15176 xorg_cv_cc_flag_unknown_warning_option=no
15177 fi
15178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15179 fi
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15183 CFLAGS="$xorg_testset_save_CFLAGS"
15184 fi
15185
15186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15189 fi
15190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15194 then :
15195 printf %s "(cached) " >&6
15196 else $as_nop
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 int i;
15200 _ACEOF
15201 if ac_fn_c_try_compile "$LINENO"
15202 then :
15203 xorg_cv_cc_flag_unused_command_line_argument=yes
15204 else $as_nop
15205 xorg_cv_cc_flag_unused_command_line_argument=no
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15208 fi
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15212 CFLAGS="$xorg_testset_save_CFLAGS"
15213 fi
15214
15215 found="no"
15216
15217 if test $found = "no" ; then
15218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15220 fi
15221
15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15224 fi
15225
15226 CFLAGS="$CFLAGS -Werror=implicit"
15227
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15229 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15230 cacheid=xorg_cv_cc_flag__Werror_implicit
15231 if eval test \${$cacheid+y}
15232 then :
15233 printf %s "(cached) " >&6
15234 else $as_nop
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 int i;
15238 int
15239 main (void)
15240 {
15241
15242 ;
15243 return 0;
15244 }
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"
15247 then :
15248 eval $cacheid=yes
15249 else $as_nop
15250 eval $cacheid=no
15251 fi
15252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15253 conftest$ac_exeext conftest.$ac_ext
15254 fi
15255
15256
15257 CFLAGS="$xorg_testset_save_CFLAGS"
15258
15259 eval supported=\$$cacheid
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15261 printf "%s\n" "$supported" >&6; }
15262 if test "$supported" = "yes" ; then
15263 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15264 found="yes"
15265 fi
15266 fi
15267
15268 if test $found = "no" ; then
15269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271 fi
15272
15273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15275 fi
15276
15277 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15278
15279 { 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
15280 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15281 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15282 if eval test \${$cacheid+y}
15283 then :
15284 printf %s "(cached) " >&6
15285 else $as_nop
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 int i;
15289 int
15290 main (void)
15291 {
15292
15293 ;
15294 return 0;
15295 }
15296 _ACEOF
15297 if ac_fn_c_try_link "$LINENO"
15298 then :
15299 eval $cacheid=yes
15300 else $as_nop
15301 eval $cacheid=no
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15304 conftest$ac_exeext conftest.$ac_ext
15305 fi
15306
15307
15308 CFLAGS="$xorg_testset_save_CFLAGS"
15309
15310 eval supported=\$$cacheid
15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15312 printf "%s\n" "$supported" >&6; }
15313 if test "$supported" = "yes" ; then
15314 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15315 found="yes"
15316 fi
15317 fi
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333 xorg_testset_save_CFLAGS="$CFLAGS"
15334
15335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15338 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15339 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15340 then :
15341 printf %s "(cached) " >&6
15342 else $as_nop
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 int i;
15346 _ACEOF
15347 if ac_fn_c_try_compile "$LINENO"
15348 then :
15349 xorg_cv_cc_flag_unknown_warning_option=yes
15350 else $as_nop
15351 xorg_cv_cc_flag_unknown_warning_option=no
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15354 fi
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15358 CFLAGS="$xorg_testset_save_CFLAGS"
15359 fi
15360
15361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364 fi
15365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15369 then :
15370 printf %s "(cached) " >&6
15371 else $as_nop
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374 int i;
15375 _ACEOF
15376 if ac_fn_c_try_compile "$LINENO"
15377 then :
15378 xorg_cv_cc_flag_unused_command_line_argument=yes
15379 else $as_nop
15380 xorg_cv_cc_flag_unused_command_line_argument=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15383 fi
15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15387 CFLAGS="$xorg_testset_save_CFLAGS"
15388 fi
15389
15390 found="no"
15391
15392 if test $found = "no" ; then
15393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15395 fi
15396
15397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15399 fi
15400
15401 CFLAGS="$CFLAGS -Werror=nonnull"
15402
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15404 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15405 cacheid=xorg_cv_cc_flag__Werror_nonnull
15406 if eval test \${$cacheid+y}
15407 then :
15408 printf %s "(cached) " >&6
15409 else $as_nop
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 int
15414 main (void)
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"
15422 then :
15423 eval $cacheid=yes
15424 else $as_nop
15425 eval $cacheid=no
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15428 conftest$ac_exeext conftest.$ac_ext
15429 fi
15430
15431
15432 CFLAGS="$xorg_testset_save_CFLAGS"
15433
15434 eval supported=\$$cacheid
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15436 printf "%s\n" "$supported" >&6; }
15437 if test "$supported" = "yes" ; then
15438 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15439 found="yes"
15440 fi
15441 fi
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457 xorg_testset_save_CFLAGS="$CFLAGS"
15458
15459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15464 then :
15465 printf %s "(cached) " >&6
15466 else $as_nop
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15469 int i;
15470 _ACEOF
15471 if ac_fn_c_try_compile "$LINENO"
15472 then :
15473 xorg_cv_cc_flag_unknown_warning_option=yes
15474 else $as_nop
15475 xorg_cv_cc_flag_unknown_warning_option=no
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15478 fi
15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15482 CFLAGS="$xorg_testset_save_CFLAGS"
15483 fi
15484
15485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488 fi
15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15493 then :
15494 printf %s "(cached) " >&6
15495 else $as_nop
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 int i;
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"
15501 then :
15502 xorg_cv_cc_flag_unused_command_line_argument=yes
15503 else $as_nop
15504 xorg_cv_cc_flag_unused_command_line_argument=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15507 fi
15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15511 CFLAGS="$xorg_testset_save_CFLAGS"
15512 fi
15513
15514 found="no"
15515
15516 if test $found = "no" ; then
15517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15519 fi
15520
15521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15523 fi
15524
15525 CFLAGS="$CFLAGS -Werror=init-self"
15526
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15528 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15529 cacheid=xorg_cv_cc_flag__Werror_init_self
15530 if eval test \${$cacheid+y}
15531 then :
15532 printf %s "(cached) " >&6
15533 else $as_nop
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536 int i;
15537 int
15538 main (void)
15539 {
15540
15541 ;
15542 return 0;
15543 }
15544 _ACEOF
15545 if ac_fn_c_try_link "$LINENO"
15546 then :
15547 eval $cacheid=yes
15548 else $as_nop
15549 eval $cacheid=no
15550 fi
15551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15552 conftest$ac_exeext conftest.$ac_ext
15553 fi
15554
15555
15556 CFLAGS="$xorg_testset_save_CFLAGS"
15557
15558 eval supported=\$$cacheid
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15560 printf "%s\n" "$supported" >&6; }
15561 if test "$supported" = "yes" ; then
15562 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15563 found="yes"
15564 fi
15565 fi
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581 xorg_testset_save_CFLAGS="$CFLAGS"
15582
15583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15588 then :
15589 printf %s "(cached) " >&6
15590 else $as_nop
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 int i;
15594 _ACEOF
15595 if ac_fn_c_try_compile "$LINENO"
15596 then :
15597 xorg_cv_cc_flag_unknown_warning_option=yes
15598 else $as_nop
15599 xorg_cv_cc_flag_unknown_warning_option=no
15600 fi
15601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15602 fi
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15606 CFLAGS="$xorg_testset_save_CFLAGS"
15607 fi
15608
15609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612 fi
15613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15617 then :
15618 printf %s "(cached) " >&6
15619 else $as_nop
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 int i;
15623 _ACEOF
15624 if ac_fn_c_try_compile "$LINENO"
15625 then :
15626 xorg_cv_cc_flag_unused_command_line_argument=yes
15627 else $as_nop
15628 xorg_cv_cc_flag_unused_command_line_argument=no
15629 fi
15630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15631 fi
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15635 CFLAGS="$xorg_testset_save_CFLAGS"
15636 fi
15637
15638 found="no"
15639
15640 if test $found = "no" ; then
15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15643 fi
15644
15645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15647 fi
15648
15649 CFLAGS="$CFLAGS -Werror=main"
15650
15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15652 printf %s "checking if $CC supports -Werror=main... " >&6; }
15653 cacheid=xorg_cv_cc_flag__Werror_main
15654 if eval test \${$cacheid+y}
15655 then :
15656 printf %s "(cached) " >&6
15657 else $as_nop
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 int i;
15661 int
15662 main (void)
15663 {
15664
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 if ac_fn_c_try_link "$LINENO"
15670 then :
15671 eval $cacheid=yes
15672 else $as_nop
15673 eval $cacheid=no
15674 fi
15675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15676 conftest$ac_exeext conftest.$ac_ext
15677 fi
15678
15679
15680 CFLAGS="$xorg_testset_save_CFLAGS"
15681
15682 eval supported=\$$cacheid
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15684 printf "%s\n" "$supported" >&6; }
15685 if test "$supported" = "yes" ; then
15686 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15687 found="yes"
15688 fi
15689 fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705 xorg_testset_save_CFLAGS="$CFLAGS"
15706
15707 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15710 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15711 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15712 then :
15713 printf %s "(cached) " >&6
15714 else $as_nop
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717 int i;
15718 _ACEOF
15719 if ac_fn_c_try_compile "$LINENO"
15720 then :
15721 xorg_cv_cc_flag_unknown_warning_option=yes
15722 else $as_nop
15723 xorg_cv_cc_flag_unknown_warning_option=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15726 fi
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15731 fi
15732
15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736 fi
15737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15741 then :
15742 printf %s "(cached) " >&6
15743 else $as_nop
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746 int i;
15747 _ACEOF
15748 if ac_fn_c_try_compile "$LINENO"
15749 then :
15750 xorg_cv_cc_flag_unused_command_line_argument=yes
15751 else $as_nop
15752 xorg_cv_cc_flag_unused_command_line_argument=no
15753 fi
15754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15755 fi
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15757 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15759 CFLAGS="$xorg_testset_save_CFLAGS"
15760 fi
15761
15762 found="no"
15763
15764 if test $found = "no" ; then
15765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15767 fi
15768
15769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15771 fi
15772
15773 CFLAGS="$CFLAGS -Werror=missing-braces"
15774
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15776 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15777 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15778 if eval test \${$cacheid+y}
15779 then :
15780 printf %s "(cached) " >&6
15781 else $as_nop
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 int i;
15785 int
15786 main (void)
15787 {
15788
15789 ;
15790 return 0;
15791 }
15792 _ACEOF
15793 if ac_fn_c_try_link "$LINENO"
15794 then :
15795 eval $cacheid=yes
15796 else $as_nop
15797 eval $cacheid=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15800 conftest$ac_exeext conftest.$ac_ext
15801 fi
15802
15803
15804 CFLAGS="$xorg_testset_save_CFLAGS"
15805
15806 eval supported=\$$cacheid
15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15808 printf "%s\n" "$supported" >&6; }
15809 if test "$supported" = "yes" ; then
15810 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15811 found="yes"
15812 fi
15813 fi
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829 xorg_testset_save_CFLAGS="$CFLAGS"
15830
15831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15835 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15836 then :
15837 printf %s "(cached) " >&6
15838 else $as_nop
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 int i;
15842 _ACEOF
15843 if ac_fn_c_try_compile "$LINENO"
15844 then :
15845 xorg_cv_cc_flag_unknown_warning_option=yes
15846 else $as_nop
15847 xorg_cv_cc_flag_unknown_warning_option=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15850 fi
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15854 CFLAGS="$xorg_testset_save_CFLAGS"
15855 fi
15856
15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15860 fi
15861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15865 then :
15866 printf %s "(cached) " >&6
15867 else $as_nop
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 int i;
15871 _ACEOF
15872 if ac_fn_c_try_compile "$LINENO"
15873 then :
15874 xorg_cv_cc_flag_unused_command_line_argument=yes
15875 else $as_nop
15876 xorg_cv_cc_flag_unused_command_line_argument=no
15877 fi
15878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15879 fi
15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15883 CFLAGS="$xorg_testset_save_CFLAGS"
15884 fi
15885
15886 found="no"
15887
15888 if test $found = "no" ; then
15889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891 fi
15892
15893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15895 fi
15896
15897 CFLAGS="$CFLAGS -Werror=sequence-point"
15898
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15900 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15901 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15902 if eval test \${$cacheid+y}
15903 then :
15904 printf %s "(cached) " >&6
15905 else $as_nop
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908 int i;
15909 int
15910 main (void)
15911 {
15912
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"
15918 then :
15919 eval $cacheid=yes
15920 else $as_nop
15921 eval $cacheid=no
15922 fi
15923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15924 conftest$ac_exeext conftest.$ac_ext
15925 fi
15926
15927
15928 CFLAGS="$xorg_testset_save_CFLAGS"
15929
15930 eval supported=\$$cacheid
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15932 printf "%s\n" "$supported" >&6; }
15933 if test "$supported" = "yes" ; then
15934 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15935 found="yes"
15936 fi
15937 fi
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953 xorg_testset_save_CFLAGS="$CFLAGS"
15954
15955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15960 then :
15961 printf %s "(cached) " >&6
15962 else $as_nop
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 int i;
15966 _ACEOF
15967 if ac_fn_c_try_compile "$LINENO"
15968 then :
15969 xorg_cv_cc_flag_unknown_warning_option=yes
15970 else $as_nop
15971 xorg_cv_cc_flag_unknown_warning_option=no
15972 fi
15973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15974 fi
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15978 CFLAGS="$xorg_testset_save_CFLAGS"
15979 fi
15980
15981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15984 fi
15985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15989 then :
15990 printf %s "(cached) " >&6
15991 else $as_nop
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15994 int i;
15995 _ACEOF
15996 if ac_fn_c_try_compile "$LINENO"
15997 then :
15998 xorg_cv_cc_flag_unused_command_line_argument=yes
15999 else $as_nop
16000 xorg_cv_cc_flag_unused_command_line_argument=no
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16003 fi
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16007 CFLAGS="$xorg_testset_save_CFLAGS"
16008 fi
16009
16010 found="no"
16011
16012 if test $found = "no" ; then
16013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015 fi
16016
16017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019 fi
16020
16021 CFLAGS="$CFLAGS -Werror=return-type"
16022
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16024 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16025 cacheid=xorg_cv_cc_flag__Werror_return_type
16026 if eval test \${$cacheid+y}
16027 then :
16028 printf %s "(cached) " >&6
16029 else $as_nop
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 int i;
16033 int
16034 main (void)
16035 {
16036
16037 ;
16038 return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_link "$LINENO"
16042 then :
16043 eval $cacheid=yes
16044 else $as_nop
16045 eval $cacheid=no
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16048 conftest$ac_exeext conftest.$ac_ext
16049 fi
16050
16051
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16053
16054 eval supported=\$$cacheid
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16056 printf "%s\n" "$supported" >&6; }
16057 if test "$supported" = "yes" ; then
16058 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16059 found="yes"
16060 fi
16061 fi
16062
16063 if test $found = "no" ; then
16064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066 fi
16067
16068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070 fi
16071
16072 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16073
16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16075 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16076 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16077 if eval test \${$cacheid+y}
16078 then :
16079 printf %s "(cached) " >&6
16080 else $as_nop
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 int i;
16084 int
16085 main (void)
16086 {
16087
16088 ;
16089 return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"
16093 then :
16094 eval $cacheid=yes
16095 else $as_nop
16096 eval $cacheid=no
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16099 conftest$ac_exeext conftest.$ac_ext
16100 fi
16101
16102
16103 CFLAGS="$xorg_testset_save_CFLAGS"
16104
16105 eval supported=\$$cacheid
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16107 printf "%s\n" "$supported" >&6; }
16108 if test "$supported" = "yes" ; then
16109 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16110 found="yes"
16111 fi
16112 fi
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128 xorg_testset_save_CFLAGS="$CFLAGS"
16129
16130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16135 then :
16136 printf %s "(cached) " >&6
16137 else $as_nop
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16140 int i;
16141 _ACEOF
16142 if ac_fn_c_try_compile "$LINENO"
16143 then :
16144 xorg_cv_cc_flag_unknown_warning_option=yes
16145 else $as_nop
16146 xorg_cv_cc_flag_unknown_warning_option=no
16147 fi
16148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16149 fi
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16153 CFLAGS="$xorg_testset_save_CFLAGS"
16154 fi
16155
16156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16159 fi
16160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16163 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16164 then :
16165 printf %s "(cached) " >&6
16166 else $as_nop
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 int i;
16170 _ACEOF
16171 if ac_fn_c_try_compile "$LINENO"
16172 then :
16173 xorg_cv_cc_flag_unused_command_line_argument=yes
16174 else $as_nop
16175 xorg_cv_cc_flag_unused_command_line_argument=no
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16178 fi
16179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16182 CFLAGS="$xorg_testset_save_CFLAGS"
16183 fi
16184
16185 found="no"
16186
16187 if test $found = "no" ; then
16188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16190 fi
16191
16192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16194 fi
16195
16196 CFLAGS="$CFLAGS -Werror=trigraphs"
16197
16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16199 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16200 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16201 if eval test \${$cacheid+y}
16202 then :
16203 printf %s "(cached) " >&6
16204 else $as_nop
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int i;
16208 int
16209 main (void)
16210 {
16211
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"
16217 then :
16218 eval $cacheid=yes
16219 else $as_nop
16220 eval $cacheid=no
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16223 conftest$ac_exeext conftest.$ac_ext
16224 fi
16225
16226
16227 CFLAGS="$xorg_testset_save_CFLAGS"
16228
16229 eval supported=\$$cacheid
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16231 printf "%s\n" "$supported" >&6; }
16232 if test "$supported" = "yes" ; then
16233 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16234 found="yes"
16235 fi
16236 fi
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252 xorg_testset_save_CFLAGS="$CFLAGS"
16253
16254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16257 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16258 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16259 then :
16260 printf %s "(cached) " >&6
16261 else $as_nop
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 int i;
16265 _ACEOF
16266 if ac_fn_c_try_compile "$LINENO"
16267 then :
16268 xorg_cv_cc_flag_unknown_warning_option=yes
16269 else $as_nop
16270 xorg_cv_cc_flag_unknown_warning_option=no
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16273 fi
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16275 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16277 CFLAGS="$xorg_testset_save_CFLAGS"
16278 fi
16279
16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283 fi
16284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16286 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16287 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16288 then :
16289 printf %s "(cached) " >&6
16290 else $as_nop
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16293 int i;
16294 _ACEOF
16295 if ac_fn_c_try_compile "$LINENO"
16296 then :
16297 xorg_cv_cc_flag_unused_command_line_argument=yes
16298 else $as_nop
16299 xorg_cv_cc_flag_unused_command_line_argument=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16302 fi
16303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16304 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16306 CFLAGS="$xorg_testset_save_CFLAGS"
16307 fi
16308
16309 found="no"
16310
16311 if test $found = "no" ; then
16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314 fi
16315
16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318 fi
16319
16320 CFLAGS="$CFLAGS -Werror=array-bounds"
16321
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16323 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16324 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16325 if eval test \${$cacheid+y}
16326 then :
16327 printf %s "(cached) " >&6
16328 else $as_nop
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331 int i;
16332 int
16333 main (void)
16334 {
16335
16336 ;
16337 return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"
16341 then :
16342 eval $cacheid=yes
16343 else $as_nop
16344 eval $cacheid=no
16345 fi
16346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16347 conftest$ac_exeext conftest.$ac_ext
16348 fi
16349
16350
16351 CFLAGS="$xorg_testset_save_CFLAGS"
16352
16353 eval supported=\$$cacheid
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16355 printf "%s\n" "$supported" >&6; }
16356 if test "$supported" = "yes" ; then
16357 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16358 found="yes"
16359 fi
16360 fi
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376 xorg_testset_save_CFLAGS="$CFLAGS"
16377
16378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16382 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16383 then :
16384 printf %s "(cached) " >&6
16385 else $as_nop
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 int i;
16389 _ACEOF
16390 if ac_fn_c_try_compile "$LINENO"
16391 then :
16392 xorg_cv_cc_flag_unknown_warning_option=yes
16393 else $as_nop
16394 xorg_cv_cc_flag_unknown_warning_option=no
16395 fi
16396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16397 fi
16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16399 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16401 CFLAGS="$xorg_testset_save_CFLAGS"
16402 fi
16403
16404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16407 fi
16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16410 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16411 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16412 then :
16413 printf %s "(cached) " >&6
16414 else $as_nop
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 int i;
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"
16420 then :
16421 xorg_cv_cc_flag_unused_command_line_argument=yes
16422 else $as_nop
16423 xorg_cv_cc_flag_unused_command_line_argument=no
16424 fi
16425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16426 fi
16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16428 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16430 CFLAGS="$xorg_testset_save_CFLAGS"
16431 fi
16432
16433 found="no"
16434
16435 if test $found = "no" ; then
16436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438 fi
16439
16440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16442 fi
16443
16444 CFLAGS="$CFLAGS -Werror=write-strings"
16445
16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16447 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16448 cacheid=xorg_cv_cc_flag__Werror_write_strings
16449 if eval test \${$cacheid+y}
16450 then :
16451 printf %s "(cached) " >&6
16452 else $as_nop
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 int i;
16456 int
16457 main (void)
16458 {
16459
16460 ;
16461 return 0;
16462 }
16463 _ACEOF
16464 if ac_fn_c_try_link "$LINENO"
16465 then :
16466 eval $cacheid=yes
16467 else $as_nop
16468 eval $cacheid=no
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16471 conftest$ac_exeext conftest.$ac_ext
16472 fi
16473
16474
16475 CFLAGS="$xorg_testset_save_CFLAGS"
16476
16477 eval supported=\$$cacheid
16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16479 printf "%s\n" "$supported" >&6; }
16480 if test "$supported" = "yes" ; then
16481 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16482 found="yes"
16483 fi
16484 fi
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500 xorg_testset_save_CFLAGS="$CFLAGS"
16501
16502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16507 then :
16508 printf %s "(cached) " >&6
16509 else $as_nop
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"
16515 then :
16516 xorg_cv_cc_flag_unknown_warning_option=yes
16517 else $as_nop
16518 xorg_cv_cc_flag_unknown_warning_option=no
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16521 fi
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16525 CFLAGS="$xorg_testset_save_CFLAGS"
16526 fi
16527
16528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531 fi
16532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16536 then :
16537 printf %s "(cached) " >&6
16538 else $as_nop
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 int i;
16542 _ACEOF
16543 if ac_fn_c_try_compile "$LINENO"
16544 then :
16545 xorg_cv_cc_flag_unused_command_line_argument=yes
16546 else $as_nop
16547 xorg_cv_cc_flag_unused_command_line_argument=no
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16550 fi
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16554 CFLAGS="$xorg_testset_save_CFLAGS"
16555 fi
16556
16557 found="no"
16558
16559 if test $found = "no" ; then
16560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16562 fi
16563
16564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16566 fi
16567
16568 CFLAGS="$CFLAGS -Werror=address"
16569
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16571 printf %s "checking if $CC supports -Werror=address... " >&6; }
16572 cacheid=xorg_cv_cc_flag__Werror_address
16573 if eval test \${$cacheid+y}
16574 then :
16575 printf %s "(cached) " >&6
16576 else $as_nop
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16579 int i;
16580 int
16581 main (void)
16582 {
16583
16584 ;
16585 return 0;
16586 }
16587 _ACEOF
16588 if ac_fn_c_try_link "$LINENO"
16589 then :
16590 eval $cacheid=yes
16591 else $as_nop
16592 eval $cacheid=no
16593 fi
16594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16595 conftest$ac_exeext conftest.$ac_ext
16596 fi
16597
16598
16599 CFLAGS="$xorg_testset_save_CFLAGS"
16600
16601 eval supported=\$$cacheid
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16603 printf "%s\n" "$supported" >&6; }
16604 if test "$supported" = "yes" ; then
16605 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16606 found="yes"
16607 fi
16608 fi
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624 xorg_testset_save_CFLAGS="$CFLAGS"
16625
16626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16631 then :
16632 printf %s "(cached) " >&6
16633 else $as_nop
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 int i;
16637 _ACEOF
16638 if ac_fn_c_try_compile "$LINENO"
16639 then :
16640 xorg_cv_cc_flag_unknown_warning_option=yes
16641 else $as_nop
16642 xorg_cv_cc_flag_unknown_warning_option=no
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16645 fi
16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16649 CFLAGS="$xorg_testset_save_CFLAGS"
16650 fi
16651
16652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16655 fi
16656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16660 then :
16661 printf %s "(cached) " >&6
16662 else $as_nop
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int i;
16666 _ACEOF
16667 if ac_fn_c_try_compile "$LINENO"
16668 then :
16669 xorg_cv_cc_flag_unused_command_line_argument=yes
16670 else $as_nop
16671 xorg_cv_cc_flag_unused_command_line_argument=no
16672 fi
16673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16674 fi
16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16678 CFLAGS="$xorg_testset_save_CFLAGS"
16679 fi
16680
16681 found="no"
16682
16683 if test $found = "no" ; then
16684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686 fi
16687
16688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16690 fi
16691
16692 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16693
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16695 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16696 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16697 if eval test \${$cacheid+y}
16698 then :
16699 printf %s "(cached) " >&6
16700 else $as_nop
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int i;
16704 int
16705 main (void)
16706 {
16707
16708 ;
16709 return 0;
16710 }
16711 _ACEOF
16712 if ac_fn_c_try_link "$LINENO"
16713 then :
16714 eval $cacheid=yes
16715 else $as_nop
16716 eval $cacheid=no
16717 fi
16718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16719 conftest$ac_exeext conftest.$ac_ext
16720 fi
16721
16722
16723 CFLAGS="$xorg_testset_save_CFLAGS"
16724
16725 eval supported=\$$cacheid
16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16727 printf "%s\n" "$supported" >&6; }
16728 if test "$supported" = "yes" ; then
16729 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16730 found="yes"
16731 fi
16732 fi
16733
16734 if test $found = "no" ; then
16735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16737 fi
16738
16739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741 fi
16742
16743 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16744
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16746 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16747 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16748 if eval test \${$cacheid+y}
16749 then :
16750 printf %s "(cached) " >&6
16751 else $as_nop
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16754 int i;
16755 int
16756 main (void)
16757 {
16758
16759 ;
16760 return 0;
16761 }
16762 _ACEOF
16763 if ac_fn_c_try_link "$LINENO"
16764 then :
16765 eval $cacheid=yes
16766 else $as_nop
16767 eval $cacheid=no
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16770 conftest$ac_exeext conftest.$ac_ext
16771 fi
16772
16773
16774 CFLAGS="$xorg_testset_save_CFLAGS"
16775
16776 eval supported=\$$cacheid
16777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16778 printf "%s\n" "$supported" >&6; }
16779 if test "$supported" = "yes" ; then
16780 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16781 found="yes"
16782 fi
16783 fi
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799 xorg_testset_save_CFLAGS="$CFLAGS"
16800
16801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16804 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16805 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16806 then :
16807 printf %s "(cached) " >&6
16808 else $as_nop
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 int i;
16812 _ACEOF
16813 if ac_fn_c_try_compile "$LINENO"
16814 then :
16815 xorg_cv_cc_flag_unknown_warning_option=yes
16816 else $as_nop
16817 xorg_cv_cc_flag_unknown_warning_option=no
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16820 fi
16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16822 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16824 CFLAGS="$xorg_testset_save_CFLAGS"
16825 fi
16826
16827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16830 fi
16831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16833 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16834 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16835 then :
16836 printf %s "(cached) " >&6
16837 else $as_nop
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 int i;
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"
16843 then :
16844 xorg_cv_cc_flag_unused_command_line_argument=yes
16845 else $as_nop
16846 xorg_cv_cc_flag_unused_command_line_argument=no
16847 fi
16848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16849 fi
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16851 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16853 CFLAGS="$xorg_testset_save_CFLAGS"
16854 fi
16855
16856 found="no"
16857
16858 if test $found = "no" ; then
16859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16865 fi
16866
16867 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16868
16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16870 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16871 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16872 if eval test \${$cacheid+y}
16873 then :
16874 printf %s "(cached) " >&6
16875 else $as_nop
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16878 int i;
16879 int
16880 main (void)
16881 {
16882
16883 ;
16884 return 0;
16885 }
16886 _ACEOF
16887 if ac_fn_c_try_link "$LINENO"
16888 then :
16889 eval $cacheid=yes
16890 else $as_nop
16891 eval $cacheid=no
16892 fi
16893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16894 conftest$ac_exeext conftest.$ac_ext
16895 fi
16896
16897
16898 CFLAGS="$xorg_testset_save_CFLAGS"
16899
16900 eval supported=\$$cacheid
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16902 printf "%s\n" "$supported" >&6; }
16903 if test "$supported" = "yes" ; then
16904 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16905 found="yes"
16906 fi
16907 fi
16908
16909 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16910 else
16911 { 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
16912 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;}
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926 xorg_testset_save_CFLAGS="$CFLAGS"
16927
16928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16933 then :
16934 printf %s "(cached) " >&6
16935 else $as_nop
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16938 int i;
16939 _ACEOF
16940 if ac_fn_c_try_compile "$LINENO"
16941 then :
16942 xorg_cv_cc_flag_unknown_warning_option=yes
16943 else $as_nop
16944 xorg_cv_cc_flag_unknown_warning_option=no
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16947 fi
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16951 CFLAGS="$xorg_testset_save_CFLAGS"
16952 fi
16953
16954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16957 fi
16958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16962 then :
16963 printf %s "(cached) " >&6
16964 else $as_nop
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16967 int i;
16968 _ACEOF
16969 if ac_fn_c_try_compile "$LINENO"
16970 then :
16971 xorg_cv_cc_flag_unused_command_line_argument=yes
16972 else $as_nop
16973 xorg_cv_cc_flag_unused_command_line_argument=no
16974 fi
16975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16976 fi
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16980 CFLAGS="$xorg_testset_save_CFLAGS"
16981 fi
16982
16983 found="no"
16984
16985 if test $found = "no" ; then
16986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988 fi
16989
16990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16992 fi
16993
16994 CFLAGS="$CFLAGS -Wimplicit"
16995
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16997 printf %s "checking if $CC supports -Wimplicit... " >&6; }
16998 cacheid=xorg_cv_cc_flag__Wimplicit
16999 if eval test \${$cacheid+y}
17000 then :
17001 printf %s "(cached) " >&6
17002 else $as_nop
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 int i;
17006 int
17007 main (void)
17008 {
17009
17010 ;
17011 return 0;
17012 }
17013 _ACEOF
17014 if ac_fn_c_try_link "$LINENO"
17015 then :
17016 eval $cacheid=yes
17017 else $as_nop
17018 eval $cacheid=no
17019 fi
17020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17021 conftest$ac_exeext conftest.$ac_ext
17022 fi
17023
17024
17025 CFLAGS="$xorg_testset_save_CFLAGS"
17026
17027 eval supported=\$$cacheid
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17029 printf "%s\n" "$supported" >&6; }
17030 if test "$supported" = "yes" ; then
17031 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17032 found="yes"
17033 fi
17034 fi
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050 xorg_testset_save_CFLAGS="$CFLAGS"
17051
17052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17057 then :
17058 printf %s "(cached) " >&6
17059 else $as_nop
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 int i;
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"
17065 then :
17066 xorg_cv_cc_flag_unknown_warning_option=yes
17067 else $as_nop
17068 xorg_cv_cc_flag_unknown_warning_option=no
17069 fi
17070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17071 fi
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17075 CFLAGS="$xorg_testset_save_CFLAGS"
17076 fi
17077
17078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081 fi
17082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17086 then :
17087 printf %s "(cached) " >&6
17088 else $as_nop
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 int i;
17092 _ACEOF
17093 if ac_fn_c_try_compile "$LINENO"
17094 then :
17095 xorg_cv_cc_flag_unused_command_line_argument=yes
17096 else $as_nop
17097 xorg_cv_cc_flag_unused_command_line_argument=no
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17100 fi
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17104 CFLAGS="$xorg_testset_save_CFLAGS"
17105 fi
17106
17107 found="no"
17108
17109 if test $found = "no" ; then
17110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112 fi
17113
17114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17116 fi
17117
17118 CFLAGS="$CFLAGS -Wnonnull"
17119
17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17121 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17122 cacheid=xorg_cv_cc_flag__Wnonnull
17123 if eval test \${$cacheid+y}
17124 then :
17125 printf %s "(cached) " >&6
17126 else $as_nop
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int i;
17130 int
17131 main (void)
17132 {
17133
17134 ;
17135 return 0;
17136 }
17137 _ACEOF
17138 if ac_fn_c_try_link "$LINENO"
17139 then :
17140 eval $cacheid=yes
17141 else $as_nop
17142 eval $cacheid=no
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17145 conftest$ac_exeext conftest.$ac_ext
17146 fi
17147
17148
17149 CFLAGS="$xorg_testset_save_CFLAGS"
17150
17151 eval supported=\$$cacheid
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17153 printf "%s\n" "$supported" >&6; }
17154 if test "$supported" = "yes" ; then
17155 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17156 found="yes"
17157 fi
17158 fi
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174 xorg_testset_save_CFLAGS="$CFLAGS"
17175
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17181 then :
17182 printf %s "(cached) " >&6
17183 else $as_nop
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17186 int i;
17187 _ACEOF
17188 if ac_fn_c_try_compile "$LINENO"
17189 then :
17190 xorg_cv_cc_flag_unknown_warning_option=yes
17191 else $as_nop
17192 xorg_cv_cc_flag_unknown_warning_option=no
17193 fi
17194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17195 fi
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17199 CFLAGS="$xorg_testset_save_CFLAGS"
17200 fi
17201
17202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17205 fi
17206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17210 then :
17211 printf %s "(cached) " >&6
17212 else $as_nop
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215 int i;
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"
17218 then :
17219 xorg_cv_cc_flag_unused_command_line_argument=yes
17220 else $as_nop
17221 xorg_cv_cc_flag_unused_command_line_argument=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17224 fi
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17228 CFLAGS="$xorg_testset_save_CFLAGS"
17229 fi
17230
17231 found="no"
17232
17233 if test $found = "no" ; then
17234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236 fi
17237
17238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240 fi
17241
17242 CFLAGS="$CFLAGS -Winit-self"
17243
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17245 printf %s "checking if $CC supports -Winit-self... " >&6; }
17246 cacheid=xorg_cv_cc_flag__Winit_self
17247 if eval test \${$cacheid+y}
17248 then :
17249 printf %s "(cached) " >&6
17250 else $as_nop
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 int i;
17254 int
17255 main (void)
17256 {
17257
17258 ;
17259 return 0;
17260 }
17261 _ACEOF
17262 if ac_fn_c_try_link "$LINENO"
17263 then :
17264 eval $cacheid=yes
17265 else $as_nop
17266 eval $cacheid=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17269 conftest$ac_exeext conftest.$ac_ext
17270 fi
17271
17272
17273 CFLAGS="$xorg_testset_save_CFLAGS"
17274
17275 eval supported=\$$cacheid
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17277 printf "%s\n" "$supported" >&6; }
17278 if test "$supported" = "yes" ; then
17279 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17280 found="yes"
17281 fi
17282 fi
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298 xorg_testset_save_CFLAGS="$CFLAGS"
17299
17300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17303 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17304 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17305 then :
17306 printf %s "(cached) " >&6
17307 else $as_nop
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 int i;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"
17313 then :
17314 xorg_cv_cc_flag_unknown_warning_option=yes
17315 else $as_nop
17316 xorg_cv_cc_flag_unknown_warning_option=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17319 fi
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17323 CFLAGS="$xorg_testset_save_CFLAGS"
17324 fi
17325
17326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17329 fi
17330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17334 then :
17335 printf %s "(cached) " >&6
17336 else $as_nop
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339 int i;
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"
17342 then :
17343 xorg_cv_cc_flag_unused_command_line_argument=yes
17344 else $as_nop
17345 xorg_cv_cc_flag_unused_command_line_argument=no
17346 fi
17347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17348 fi
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17352 CFLAGS="$xorg_testset_save_CFLAGS"
17353 fi
17354
17355 found="no"
17356
17357 if test $found = "no" ; then
17358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17360 fi
17361
17362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17364 fi
17365
17366 CFLAGS="$CFLAGS -Wmain"
17367
17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17369 printf %s "checking if $CC supports -Wmain... " >&6; }
17370 cacheid=xorg_cv_cc_flag__Wmain
17371 if eval test \${$cacheid+y}
17372 then :
17373 printf %s "(cached) " >&6
17374 else $as_nop
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 int i;
17378 int
17379 main (void)
17380 {
17381
17382 ;
17383 return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_c_try_link "$LINENO"
17387 then :
17388 eval $cacheid=yes
17389 else $as_nop
17390 eval $cacheid=no
17391 fi
17392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17393 conftest$ac_exeext conftest.$ac_ext
17394 fi
17395
17396
17397 CFLAGS="$xorg_testset_save_CFLAGS"
17398
17399 eval supported=\$$cacheid
17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17401 printf "%s\n" "$supported" >&6; }
17402 if test "$supported" = "yes" ; then
17403 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17404 found="yes"
17405 fi
17406 fi
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422 xorg_testset_save_CFLAGS="$CFLAGS"
17423
17424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17428 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17429 then :
17430 printf %s "(cached) " >&6
17431 else $as_nop
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17434 int i;
17435 _ACEOF
17436 if ac_fn_c_try_compile "$LINENO"
17437 then :
17438 xorg_cv_cc_flag_unknown_warning_option=yes
17439 else $as_nop
17440 xorg_cv_cc_flag_unknown_warning_option=no
17441 fi
17442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17443 fi
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17445 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17447 CFLAGS="$xorg_testset_save_CFLAGS"
17448 fi
17449
17450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17453 fi
17454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17458 then :
17459 printf %s "(cached) " >&6
17460 else $as_nop
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 int i;
17464 _ACEOF
17465 if ac_fn_c_try_compile "$LINENO"
17466 then :
17467 xorg_cv_cc_flag_unused_command_line_argument=yes
17468 else $as_nop
17469 xorg_cv_cc_flag_unused_command_line_argument=no
17470 fi
17471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17472 fi
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17476 CFLAGS="$xorg_testset_save_CFLAGS"
17477 fi
17478
17479 found="no"
17480
17481 if test $found = "no" ; then
17482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17484 fi
17485
17486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17488 fi
17489
17490 CFLAGS="$CFLAGS -Wmissing-braces"
17491
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17493 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17494 cacheid=xorg_cv_cc_flag__Wmissing_braces
17495 if eval test \${$cacheid+y}
17496 then :
17497 printf %s "(cached) " >&6
17498 else $as_nop
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 int
17503 main (void)
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"
17511 then :
17512 eval $cacheid=yes
17513 else $as_nop
17514 eval $cacheid=no
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17517 conftest$ac_exeext conftest.$ac_ext
17518 fi
17519
17520
17521 CFLAGS="$xorg_testset_save_CFLAGS"
17522
17523 eval supported=\$$cacheid
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17525 printf "%s\n" "$supported" >&6; }
17526 if test "$supported" = "yes" ; then
17527 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17528 found="yes"
17529 fi
17530 fi
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546 xorg_testset_save_CFLAGS="$CFLAGS"
17547
17548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17552 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17553 then :
17554 printf %s "(cached) " >&6
17555 else $as_nop
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17558 int i;
17559 _ACEOF
17560 if ac_fn_c_try_compile "$LINENO"
17561 then :
17562 xorg_cv_cc_flag_unknown_warning_option=yes
17563 else $as_nop
17564 xorg_cv_cc_flag_unknown_warning_option=no
17565 fi
17566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17567 fi
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17569 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17571 CFLAGS="$xorg_testset_save_CFLAGS"
17572 fi
17573
17574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17577 fi
17578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17580 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17581 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17582 then :
17583 printf %s "(cached) " >&6
17584 else $as_nop
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17587 int i;
17588 _ACEOF
17589 if ac_fn_c_try_compile "$LINENO"
17590 then :
17591 xorg_cv_cc_flag_unused_command_line_argument=yes
17592 else $as_nop
17593 xorg_cv_cc_flag_unused_command_line_argument=no
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17596 fi
17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17598 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17600 CFLAGS="$xorg_testset_save_CFLAGS"
17601 fi
17602
17603 found="no"
17604
17605 if test $found = "no" ; then
17606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17608 fi
17609
17610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17612 fi
17613
17614 CFLAGS="$CFLAGS -Wsequence-point"
17615
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17617 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17618 cacheid=xorg_cv_cc_flag__Wsequence_point
17619 if eval test \${$cacheid+y}
17620 then :
17621 printf %s "(cached) " >&6
17622 else $as_nop
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 int i;
17626 int
17627 main (void)
17628 {
17629
17630 ;
17631 return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"
17635 then :
17636 eval $cacheid=yes
17637 else $as_nop
17638 eval $cacheid=no
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17641 conftest$ac_exeext conftest.$ac_ext
17642 fi
17643
17644
17645 CFLAGS="$xorg_testset_save_CFLAGS"
17646
17647 eval supported=\$$cacheid
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17649 printf "%s\n" "$supported" >&6; }
17650 if test "$supported" = "yes" ; then
17651 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17652 found="yes"
17653 fi
17654 fi
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670 xorg_testset_save_CFLAGS="$CFLAGS"
17671
17672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17677 then :
17678 printf %s "(cached) " >&6
17679 else $as_nop
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 int i;
17683 _ACEOF
17684 if ac_fn_c_try_compile "$LINENO"
17685 then :
17686 xorg_cv_cc_flag_unknown_warning_option=yes
17687 else $as_nop
17688 xorg_cv_cc_flag_unknown_warning_option=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17691 fi
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17695 CFLAGS="$xorg_testset_save_CFLAGS"
17696 fi
17697
17698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701 fi
17702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17706 then :
17707 printf %s "(cached) " >&6
17708 else $as_nop
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 int i;
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"
17714 then :
17715 xorg_cv_cc_flag_unused_command_line_argument=yes
17716 else $as_nop
17717 xorg_cv_cc_flag_unused_command_line_argument=no
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17720 fi
17721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17724 CFLAGS="$xorg_testset_save_CFLAGS"
17725 fi
17726
17727 found="no"
17728
17729 if test $found = "no" ; then
17730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17732 fi
17733
17734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17736 fi
17737
17738 CFLAGS="$CFLAGS -Wreturn-type"
17739
17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17741 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17742 cacheid=xorg_cv_cc_flag__Wreturn_type
17743 if eval test \${$cacheid+y}
17744 then :
17745 printf %s "(cached) " >&6
17746 else $as_nop
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17749 int i;
17750 int
17751 main (void)
17752 {
17753
17754 ;
17755 return 0;
17756 }
17757 _ACEOF
17758 if ac_fn_c_try_link "$LINENO"
17759 then :
17760 eval $cacheid=yes
17761 else $as_nop
17762 eval $cacheid=no
17763 fi
17764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17765 conftest$ac_exeext conftest.$ac_ext
17766 fi
17767
17768
17769 CFLAGS="$xorg_testset_save_CFLAGS"
17770
17771 eval supported=\$$cacheid
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17773 printf "%s\n" "$supported" >&6; }
17774 if test "$supported" = "yes" ; then
17775 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17776 found="yes"
17777 fi
17778 fi
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794 xorg_testset_save_CFLAGS="$CFLAGS"
17795
17796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17799 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17800 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17801 then :
17802 printf %s "(cached) " >&6
17803 else $as_nop
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17806 int i;
17807 _ACEOF
17808 if ac_fn_c_try_compile "$LINENO"
17809 then :
17810 xorg_cv_cc_flag_unknown_warning_option=yes
17811 else $as_nop
17812 xorg_cv_cc_flag_unknown_warning_option=no
17813 fi
17814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17815 fi
17816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17817 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17819 CFLAGS="$xorg_testset_save_CFLAGS"
17820 fi
17821
17822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17825 fi
17826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17830 then :
17831 printf %s "(cached) " >&6
17832 else $as_nop
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835 int i;
17836 _ACEOF
17837 if ac_fn_c_try_compile "$LINENO"
17838 then :
17839 xorg_cv_cc_flag_unused_command_line_argument=yes
17840 else $as_nop
17841 xorg_cv_cc_flag_unused_command_line_argument=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17844 fi
17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17848 CFLAGS="$xorg_testset_save_CFLAGS"
17849 fi
17850
17851 found="no"
17852
17853 if test $found = "no" ; then
17854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17856 fi
17857
17858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17860 fi
17861
17862 CFLAGS="$CFLAGS -Wtrigraphs"
17863
17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17865 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17866 cacheid=xorg_cv_cc_flag__Wtrigraphs
17867 if eval test \${$cacheid+y}
17868 then :
17869 printf %s "(cached) " >&6
17870 else $as_nop
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 int i;
17874 int
17875 main (void)
17876 {
17877
17878 ;
17879 return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"
17883 then :
17884 eval $cacheid=yes
17885 else $as_nop
17886 eval $cacheid=no
17887 fi
17888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17889 conftest$ac_exeext conftest.$ac_ext
17890 fi
17891
17892
17893 CFLAGS="$xorg_testset_save_CFLAGS"
17894
17895 eval supported=\$$cacheid
17896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17897 printf "%s\n" "$supported" >&6; }
17898 if test "$supported" = "yes" ; then
17899 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17900 found="yes"
17901 fi
17902 fi
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918 xorg_testset_save_CFLAGS="$CFLAGS"
17919
17920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17925 then :
17926 printf %s "(cached) " >&6
17927 else $as_nop
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17930 int i;
17931 _ACEOF
17932 if ac_fn_c_try_compile "$LINENO"
17933 then :
17934 xorg_cv_cc_flag_unknown_warning_option=yes
17935 else $as_nop
17936 xorg_cv_cc_flag_unknown_warning_option=no
17937 fi
17938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17939 fi
17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17943 CFLAGS="$xorg_testset_save_CFLAGS"
17944 fi
17945
17946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949 fi
17950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17954 then :
17955 printf %s "(cached) " >&6
17956 else $as_nop
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959 int i;
17960 _ACEOF
17961 if ac_fn_c_try_compile "$LINENO"
17962 then :
17963 xorg_cv_cc_flag_unused_command_line_argument=yes
17964 else $as_nop
17965 xorg_cv_cc_flag_unused_command_line_argument=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17968 fi
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17970 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17972 CFLAGS="$xorg_testset_save_CFLAGS"
17973 fi
17974
17975 found="no"
17976
17977 if test $found = "no" ; then
17978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17980 fi
17981
17982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17984 fi
17985
17986 CFLAGS="$CFLAGS -Warray-bounds"
17987
17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17989 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17990 cacheid=xorg_cv_cc_flag__Warray_bounds
17991 if eval test \${$cacheid+y}
17992 then :
17993 printf %s "(cached) " >&6
17994 else $as_nop
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 int i;
17998 int
17999 main (void)
18000 {
18001
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_c_try_link "$LINENO"
18007 then :
18008 eval $cacheid=yes
18009 else $as_nop
18010 eval $cacheid=no
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18013 conftest$ac_exeext conftest.$ac_ext
18014 fi
18015
18016
18017 CFLAGS="$xorg_testset_save_CFLAGS"
18018
18019 eval supported=\$$cacheid
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18021 printf "%s\n" "$supported" >&6; }
18022 if test "$supported" = "yes" ; then
18023 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18024 found="yes"
18025 fi
18026 fi
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042 xorg_testset_save_CFLAGS="$CFLAGS"
18043
18044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18049 then :
18050 printf %s "(cached) " >&6
18051 else $as_nop
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18054 int i;
18055 _ACEOF
18056 if ac_fn_c_try_compile "$LINENO"
18057 then :
18058 xorg_cv_cc_flag_unknown_warning_option=yes
18059 else $as_nop
18060 xorg_cv_cc_flag_unknown_warning_option=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18063 fi
18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18067 CFLAGS="$xorg_testset_save_CFLAGS"
18068 fi
18069
18070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073 fi
18074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18078 then :
18079 printf %s "(cached) " >&6
18080 else $as_nop
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 int i;
18084 _ACEOF
18085 if ac_fn_c_try_compile "$LINENO"
18086 then :
18087 xorg_cv_cc_flag_unused_command_line_argument=yes
18088 else $as_nop
18089 xorg_cv_cc_flag_unused_command_line_argument=no
18090 fi
18091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18092 fi
18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18094 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18096 CFLAGS="$xorg_testset_save_CFLAGS"
18097 fi
18098
18099 found="no"
18100
18101 if test $found = "no" ; then
18102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18104 fi
18105
18106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18108 fi
18109
18110 CFLAGS="$CFLAGS -Wwrite-strings"
18111
18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18113 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18114 cacheid=xorg_cv_cc_flag__Wwrite_strings
18115 if eval test \${$cacheid+y}
18116 then :
18117 printf %s "(cached) " >&6
18118 else $as_nop
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 int i;
18122 int
18123 main (void)
18124 {
18125
18126 ;
18127 return 0;
18128 }
18129 _ACEOF
18130 if ac_fn_c_try_link "$LINENO"
18131 then :
18132 eval $cacheid=yes
18133 else $as_nop
18134 eval $cacheid=no
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18137 conftest$ac_exeext conftest.$ac_ext
18138 fi
18139
18140
18141 CFLAGS="$xorg_testset_save_CFLAGS"
18142
18143 eval supported=\$$cacheid
18144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18145 printf "%s\n" "$supported" >&6; }
18146 if test "$supported" = "yes" ; then
18147 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18148 found="yes"
18149 fi
18150 fi
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166 xorg_testset_save_CFLAGS="$CFLAGS"
18167
18168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18172 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18173 then :
18174 printf %s "(cached) " >&6
18175 else $as_nop
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18178 int i;
18179 _ACEOF
18180 if ac_fn_c_try_compile "$LINENO"
18181 then :
18182 xorg_cv_cc_flag_unknown_warning_option=yes
18183 else $as_nop
18184 xorg_cv_cc_flag_unknown_warning_option=no
18185 fi
18186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18187 fi
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18191 CFLAGS="$xorg_testset_save_CFLAGS"
18192 fi
18193
18194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18197 fi
18198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18202 then :
18203 printf %s "(cached) " >&6
18204 else $as_nop
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207 int i;
18208 _ACEOF
18209 if ac_fn_c_try_compile "$LINENO"
18210 then :
18211 xorg_cv_cc_flag_unused_command_line_argument=yes
18212 else $as_nop
18213 xorg_cv_cc_flag_unused_command_line_argument=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18216 fi
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18220 CFLAGS="$xorg_testset_save_CFLAGS"
18221 fi
18222
18223 found="no"
18224
18225 if test $found = "no" ; then
18226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18228 fi
18229
18230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18232 fi
18233
18234 CFLAGS="$CFLAGS -Waddress"
18235
18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18237 printf %s "checking if $CC supports -Waddress... " >&6; }
18238 cacheid=xorg_cv_cc_flag__Waddress
18239 if eval test \${$cacheid+y}
18240 then :
18241 printf %s "(cached) " >&6
18242 else $as_nop
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245 int i;
18246 int
18247 main (void)
18248 {
18249
18250 ;
18251 return 0;
18252 }
18253 _ACEOF
18254 if ac_fn_c_try_link "$LINENO"
18255 then :
18256 eval $cacheid=yes
18257 else $as_nop
18258 eval $cacheid=no
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18261 conftest$ac_exeext conftest.$ac_ext
18262 fi
18263
18264
18265 CFLAGS="$xorg_testset_save_CFLAGS"
18266
18267 eval supported=\$$cacheid
18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18269 printf "%s\n" "$supported" >&6; }
18270 if test "$supported" = "yes" ; then
18271 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18272 found="yes"
18273 fi
18274 fi
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290 xorg_testset_save_CFLAGS="$CFLAGS"
18291
18292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18297 then :
18298 printf %s "(cached) " >&6
18299 else $as_nop
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18302 int i;
18303 _ACEOF
18304 if ac_fn_c_try_compile "$LINENO"
18305 then :
18306 xorg_cv_cc_flag_unknown_warning_option=yes
18307 else $as_nop
18308 xorg_cv_cc_flag_unknown_warning_option=no
18309 fi
18310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18311 fi
18312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18315 CFLAGS="$xorg_testset_save_CFLAGS"
18316 fi
18317
18318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18321 fi
18322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18326 then :
18327 printf %s "(cached) " >&6
18328 else $as_nop
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18331 int i;
18332 _ACEOF
18333 if ac_fn_c_try_compile "$LINENO"
18334 then :
18335 xorg_cv_cc_flag_unused_command_line_argument=yes
18336 else $as_nop
18337 xorg_cv_cc_flag_unused_command_line_argument=no
18338 fi
18339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18340 fi
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18344 CFLAGS="$xorg_testset_save_CFLAGS"
18345 fi
18346
18347 found="no"
18348
18349 if test $found = "no" ; then
18350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18352 fi
18353
18354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18356 fi
18357
18358 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18359
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18361 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18362 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18363 if eval test \${$cacheid+y}
18364 then :
18365 printf %s "(cached) " >&6
18366 else $as_nop
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369 int i;
18370 int
18371 main (void)
18372 {
18373
18374 ;
18375 return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_link "$LINENO"
18379 then :
18380 eval $cacheid=yes
18381 else $as_nop
18382 eval $cacheid=no
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18385 conftest$ac_exeext conftest.$ac_ext
18386 fi
18387
18388
18389 CFLAGS="$xorg_testset_save_CFLAGS"
18390
18391 eval supported=\$$cacheid
18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18393 printf "%s\n" "$supported" >&6; }
18394 if test "$supported" = "yes" ; then
18395 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18396 found="yes"
18397 fi
18398 fi
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414 xorg_testset_save_CFLAGS="$CFLAGS"
18415
18416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18420 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18421 then :
18422 printf %s "(cached) " >&6
18423 else $as_nop
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426 int i;
18427 _ACEOF
18428 if ac_fn_c_try_compile "$LINENO"
18429 then :
18430 xorg_cv_cc_flag_unknown_warning_option=yes
18431 else $as_nop
18432 xorg_cv_cc_flag_unknown_warning_option=no
18433 fi
18434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18435 fi
18436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18437 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18439 CFLAGS="$xorg_testset_save_CFLAGS"
18440 fi
18441
18442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18445 fi
18446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18450 then :
18451 printf %s "(cached) " >&6
18452 else $as_nop
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18455 int i;
18456 _ACEOF
18457 if ac_fn_c_try_compile "$LINENO"
18458 then :
18459 xorg_cv_cc_flag_unused_command_line_argument=yes
18460 else $as_nop
18461 xorg_cv_cc_flag_unused_command_line_argument=no
18462 fi
18463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18464 fi
18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18468 CFLAGS="$xorg_testset_save_CFLAGS"
18469 fi
18470
18471 found="no"
18472
18473 if test $found = "no" ; then
18474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18476 fi
18477
18478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18480 fi
18481
18482 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18483
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18485 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18486 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18487 if eval test \${$cacheid+y}
18488 then :
18489 printf %s "(cached) " >&6
18490 else $as_nop
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18493 int i;
18494 int
18495 main (void)
18496 {
18497
18498 ;
18499 return 0;
18500 }
18501 _ACEOF
18502 if ac_fn_c_try_link "$LINENO"
18503 then :
18504 eval $cacheid=yes
18505 else $as_nop
18506 eval $cacheid=no
18507 fi
18508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18509 conftest$ac_exeext conftest.$ac_ext
18510 fi
18511
18512
18513 CFLAGS="$xorg_testset_save_CFLAGS"
18514
18515 eval supported=\$$cacheid
18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18517 printf "%s\n" "$supported" >&6; }
18518 if test "$supported" = "yes" ; then
18519 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18520 found="yes"
18521 fi
18522 fi
18523
18524
18525 fi
18526
18527
18528
18529
18530
18531
18532
18533 CWARNFLAGS="$BASE_CFLAGS"
18534 if test "x$GCC" = xyes ; then
18535 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18536 fi
18537
18538
18539
18540
18541
18542
18543
18544
18545 # Check whether --enable-strict-compilation was given.
18546 if test ${enable_strict_compilation+y}
18547 then :
18548 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18549 else $as_nop
18550 STRICT_COMPILE=no
18551 fi
18552
18553
18554
18555
18556
18557
18558 STRICT_CFLAGS=""
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572 xorg_testset_save_CFLAGS="$CFLAGS"
18573
18574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18579 then :
18580 printf %s "(cached) " >&6
18581 else $as_nop
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 int i;
18585 _ACEOF
18586 if ac_fn_c_try_compile "$LINENO"
18587 then :
18588 xorg_cv_cc_flag_unknown_warning_option=yes
18589 else $as_nop
18590 xorg_cv_cc_flag_unknown_warning_option=no
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18593 fi
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18597 CFLAGS="$xorg_testset_save_CFLAGS"
18598 fi
18599
18600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18603 fi
18604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18608 then :
18609 printf %s "(cached) " >&6
18610 else $as_nop
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18613 int i;
18614 _ACEOF
18615 if ac_fn_c_try_compile "$LINENO"
18616 then :
18617 xorg_cv_cc_flag_unused_command_line_argument=yes
18618 else $as_nop
18619 xorg_cv_cc_flag_unused_command_line_argument=no
18620 fi
18621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18622 fi
18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18624 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18626 CFLAGS="$xorg_testset_save_CFLAGS"
18627 fi
18628
18629 found="no"
18630
18631 if test $found = "no" ; then
18632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18634 fi
18635
18636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18638 fi
18639
18640 CFLAGS="$CFLAGS -pedantic"
18641
18642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18643 printf %s "checking if $CC supports -pedantic... " >&6; }
18644 cacheid=xorg_cv_cc_flag__pedantic
18645 if eval test \${$cacheid+y}
18646 then :
18647 printf %s "(cached) " >&6
18648 else $as_nop
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18651 int i;
18652 int
18653 main (void)
18654 {
18655
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_c_try_link "$LINENO"
18661 then :
18662 eval $cacheid=yes
18663 else $as_nop
18664 eval $cacheid=no
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18667 conftest$ac_exeext conftest.$ac_ext
18668 fi
18669
18670
18671 CFLAGS="$xorg_testset_save_CFLAGS"
18672
18673 eval supported=\$$cacheid
18674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18675 printf "%s\n" "$supported" >&6; }
18676 if test "$supported" = "yes" ; then
18677 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18678 found="yes"
18679 fi
18680 fi
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696 xorg_testset_save_CFLAGS="$CFLAGS"
18697
18698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18703 then :
18704 printf %s "(cached) " >&6
18705 else $as_nop
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708 int i;
18709 _ACEOF
18710 if ac_fn_c_try_compile "$LINENO"
18711 then :
18712 xorg_cv_cc_flag_unknown_warning_option=yes
18713 else $as_nop
18714 xorg_cv_cc_flag_unknown_warning_option=no
18715 fi
18716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18717 fi
18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18721 CFLAGS="$xorg_testset_save_CFLAGS"
18722 fi
18723
18724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18727 fi
18728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18732 then :
18733 printf %s "(cached) " >&6
18734 else $as_nop
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18737 int i;
18738 _ACEOF
18739 if ac_fn_c_try_compile "$LINENO"
18740 then :
18741 xorg_cv_cc_flag_unused_command_line_argument=yes
18742 else $as_nop
18743 xorg_cv_cc_flag_unused_command_line_argument=no
18744 fi
18745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18746 fi
18747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18750 CFLAGS="$xorg_testset_save_CFLAGS"
18751 fi
18752
18753 found="no"
18754
18755 if test $found = "no" ; then
18756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18758 fi
18759
18760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18762 fi
18763
18764 CFLAGS="$CFLAGS -Werror"
18765
18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18767 printf %s "checking if $CC supports -Werror... " >&6; }
18768 cacheid=xorg_cv_cc_flag__Werror
18769 if eval test \${$cacheid+y}
18770 then :
18771 printf %s "(cached) " >&6
18772 else $as_nop
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18775 int i;
18776 int
18777 main (void)
18778 {
18779
18780 ;
18781 return 0;
18782 }
18783 _ACEOF
18784 if ac_fn_c_try_link "$LINENO"
18785 then :
18786 eval $cacheid=yes
18787 else $as_nop
18788 eval $cacheid=no
18789 fi
18790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18791 conftest$ac_exeext conftest.$ac_ext
18792 fi
18793
18794
18795 CFLAGS="$xorg_testset_save_CFLAGS"
18796
18797 eval supported=\$$cacheid
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18799 printf "%s\n" "$supported" >&6; }
18800 if test "$supported" = "yes" ; then
18801 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18802 found="yes"
18803 fi
18804 fi
18805
18806 if test $found = "no" ; then
18807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18809 fi
18810
18811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18813 fi
18814
18815 CFLAGS="$CFLAGS -errwarn"
18816
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18818 printf %s "checking if $CC supports -errwarn... " >&6; }
18819 cacheid=xorg_cv_cc_flag__errwarn
18820 if eval test \${$cacheid+y}
18821 then :
18822 printf %s "(cached) " >&6
18823 else $as_nop
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826 int i;
18827 int
18828 main (void)
18829 {
18830
18831 ;
18832 return 0;
18833 }
18834 _ACEOF
18835 if ac_fn_c_try_link "$LINENO"
18836 then :
18837 eval $cacheid=yes
18838 else $as_nop
18839 eval $cacheid=no
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18842 conftest$ac_exeext conftest.$ac_ext
18843 fi
18844
18845
18846 CFLAGS="$xorg_testset_save_CFLAGS"
18847
18848 eval supported=\$$cacheid
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18850 printf "%s\n" "$supported" >&6; }
18851 if test "$supported" = "yes" ; then
18852 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18853 found="yes"
18854 fi
18855 fi
18856
18857
18858
18859 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18860 # activate it with -Werror, so we add it here explicitly.
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874 xorg_testset_save_CFLAGS="$CFLAGS"
18875
18876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18879 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18880 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18881 then :
18882 printf %s "(cached) " >&6
18883 else $as_nop
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18886 int i;
18887 _ACEOF
18888 if ac_fn_c_try_compile "$LINENO"
18889 then :
18890 xorg_cv_cc_flag_unknown_warning_option=yes
18891 else $as_nop
18892 xorg_cv_cc_flag_unknown_warning_option=no
18893 fi
18894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18895 fi
18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18899 CFLAGS="$xorg_testset_save_CFLAGS"
18900 fi
18901
18902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18905 fi
18906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18910 then :
18911 printf %s "(cached) " >&6
18912 else $as_nop
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18915 int i;
18916 _ACEOF
18917 if ac_fn_c_try_compile "$LINENO"
18918 then :
18919 xorg_cv_cc_flag_unused_command_line_argument=yes
18920 else $as_nop
18921 xorg_cv_cc_flag_unused_command_line_argument=no
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18924 fi
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18928 CFLAGS="$xorg_testset_save_CFLAGS"
18929 fi
18930
18931 found="no"
18932
18933 if test $found = "no" ; then
18934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18936 fi
18937
18938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18940 fi
18941
18942 CFLAGS="$CFLAGS -Werror=attributes"
18943
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18945 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18946 cacheid=xorg_cv_cc_flag__Werror_attributes
18947 if eval test \${$cacheid+y}
18948 then :
18949 printf %s "(cached) " >&6
18950 else $as_nop
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953 int i;
18954 int
18955 main (void)
18956 {
18957
18958 ;
18959 return 0;
18960 }
18961 _ACEOF
18962 if ac_fn_c_try_link "$LINENO"
18963 then :
18964 eval $cacheid=yes
18965 else $as_nop
18966 eval $cacheid=no
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18969 conftest$ac_exeext conftest.$ac_ext
18970 fi
18971
18972
18973 CFLAGS="$xorg_testset_save_CFLAGS"
18974
18975 eval supported=\$$cacheid
18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18977 printf "%s\n" "$supported" >&6; }
18978 if test "$supported" = "yes" ; then
18979 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18980 found="yes"
18981 fi
18982 fi
18983
18984
18985
18986 if test "x$STRICT_COMPILE" = "xyes"; then
18987 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18988 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18989 fi
18990
18991
18992
18993
18994
18995
18996 cat >>confdefs.h <<_ACEOF
18997 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18998 _ACEOF
18999
19000 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19001 if test "x$PVM" = "x"; then
19002 PVM="0"
19003 fi
19004
19005 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19006
19007 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19008 if test "x$PVP" = "x"; then
19009 PVP="0"
19010 fi
19011
19012 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19013
19014
19015
19016 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19017 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19018 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19019 touch \$(top_srcdir)/ChangeLog; \
19020 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19021
19022
19023
19024
19025 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19026 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19027 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19028 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19029 touch \$(top_srcdir)/INSTALL; \
19030 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19031
19032
19033
19034
19035
19036
19037 case $host_os in
19038 solaris*)
19039 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19040 # check for a man page file found in later versions that use
19041 # traditional section numbers instead
19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19043 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19044 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19045 then :
19046 printf %s "(cached) " >&6
19047 else $as_nop
19048 test "$cross_compiling" = yes &&
19049 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19050 if test -r "/usr/share/man/man7/attributes.7"; then
19051 ac_cv_file__usr_share_man_man7_attributes_7=yes
19052 else
19053 ac_cv_file__usr_share_man_man7_attributes_7=no
19054 fi
19055 fi
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19057 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19058 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19059 then :
19060 SYSV_MAN_SECTIONS=false
19061 else $as_nop
19062 SYSV_MAN_SECTIONS=true
19063 fi
19064
19065 ;;
19066 *) SYSV_MAN_SECTIONS=false ;;
19067 esac
19068
19069 if test x$APP_MAN_SUFFIX = x ; then
19070 APP_MAN_SUFFIX=1
19071 fi
19072 if test x$APP_MAN_DIR = x ; then
19073 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19074 fi
19075
19076 if test x$LIB_MAN_SUFFIX = x ; then
19077 LIB_MAN_SUFFIX=3
19078 fi
19079 if test x$LIB_MAN_DIR = x ; then
19080 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19081 fi
19082
19083 if test x$FILE_MAN_SUFFIX = x ; then
19084 case $SYSV_MAN_SECTIONS in
19085 true) FILE_MAN_SUFFIX=4 ;;
19086 *) FILE_MAN_SUFFIX=5 ;;
19087 esac
19088 fi
19089 if test x$FILE_MAN_DIR = x ; then
19090 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19091 fi
19092
19093 if test x$MISC_MAN_SUFFIX = x ; then
19094 case $SYSV_MAN_SECTIONS in
19095 true) MISC_MAN_SUFFIX=5 ;;
19096 *) MISC_MAN_SUFFIX=7 ;;
19097 esac
19098 fi
19099 if test x$MISC_MAN_DIR = x ; then
19100 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19101 fi
19102
19103 if test x$DRIVER_MAN_SUFFIX = x ; then
19104 case $SYSV_MAN_SECTIONS in
19105 true) DRIVER_MAN_SUFFIX=7 ;;
19106 *) DRIVER_MAN_SUFFIX=4 ;;
19107 esac
19108 fi
19109 if test x$DRIVER_MAN_DIR = x ; then
19110 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19111 fi
19112
19113 if test x$ADMIN_MAN_SUFFIX = x ; then
19114 case $SYSV_MAN_SECTIONS in
19115 true) ADMIN_MAN_SUFFIX=1m ;;
19116 *) ADMIN_MAN_SUFFIX=8 ;;
19117 esac
19118 fi
19119 if test x$ADMIN_MAN_DIR = x ; then
19120 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19121 fi
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137 XORG_MAN_PAGE="X Version 11"
19138
19139 MAN_SUBSTS="\
19140 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19141 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19142 -e 's|__xservername__|Xorg|g' \
19143 -e 's|__xconfigfile__|xorg.conf|g' \
19144 -e 's|__projectroot__|\$(prefix)|g' \
19145 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19146 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19147 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19148 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19149 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19150 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19151 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19152
19153
19154
19155 # Check whether --enable-silent-rules was given.
19156 if test ${enable_silent_rules+y}
19157 then :
19158 enableval=$enable_silent_rules;
19159 fi
19160
19161 case $enable_silent_rules in # (((
19162 yes) AM_DEFAULT_VERBOSITY=0;;
19163 no) AM_DEFAULT_VERBOSITY=1;;
19164 *) AM_DEFAULT_VERBOSITY=0;;
19165 esac
19166 am_make=${MAKE-make}
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19168 printf %s "checking whether $am_make supports nested variables... " >&6; }
19169 if test ${am_cv_make_support_nested_variables+y}
19170 then :
19171 printf %s "(cached) " >&6
19172 else $as_nop
19173 if printf "%s\n" 'TRUE=$(BAR$(V))
19174 BAR0=false
19175 BAR1=true
19176 V=1
19177 am__doit:
19178 @$(TRUE)
19179 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19180 am_cv_make_support_nested_variables=yes
19181 else
19182 am_cv_make_support_nested_variables=no
19183 fi
19184 fi
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19186 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19187 if test $am_cv_make_support_nested_variables = yes; then
19188 AM_V='$(V)'
19189 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19190 else
19191 AM_V=$AM_DEFAULT_VERBOSITY
19192 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19193 fi
19194 AM_BACKSLASH='\'
19195
19196
19197
19198 # Check damageext configuration, strip extra digits from package version to
19199 # find the required protocol version
19200 DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19201
19202
19203 # Obtain compiler/linker options for dependencies
19204
19205 pkg_failed=no
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5
19207 printf %s "checking for XDAMAGE... " >&6; }
19208
19209 if test -n "$XDAMAGE_CFLAGS"; then
19210 pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
19211 elif test -n "$PKG_CONFIG"; then
19212 if test -n "$PKG_CONFIG" && \
19213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22\""; } >&5
19214 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22") 2>&5
19215 ac_status=$?
19216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19217 test $ac_status = 0; }; then
19218 pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>/dev/null`
19219 test "x$?" != "x0" && pkg_failed=yes
19220 else
19221 pkg_failed=yes
19222 fi
19223 else
19224 pkg_failed=untried
19225 fi
19226 if test -n "$XDAMAGE_LIBS"; then
19227 pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
19228 elif test -n "$PKG_CONFIG"; then
19229 if test -n "$PKG_CONFIG" && \
19230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22\""; } >&5
19231 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22") 2>&5
19232 ac_status=$?
19233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234 test $ac_status = 0; }; then
19235 pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>/dev/null`
19236 test "x$?" != "x0" && pkg_failed=yes
19237 else
19238 pkg_failed=yes
19239 fi
19240 else
19241 pkg_failed=untried
19242 fi
19243
19244
19245
19246 if test $pkg_failed = yes; then
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248 printf "%s\n" "no" >&6; }
19249
19250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19251 _pkg_short_errors_supported=yes
19252 else
19253 _pkg_short_errors_supported=no
19254 fi
19255 if test $_pkg_short_errors_supported = yes; then
19256 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>&1`
19257 else
19258 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>&1`
19259 fi
19260 # Put the nasty error message in config.log where it belongs
19261 echo "$XDAMAGE_PKG_ERRORS" >&5
19262
19263 as_fn_error $? "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22) were not met:
19264
19265 $XDAMAGE_PKG_ERRORS
19266
19267 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19268 installed software in a non-standard prefix.
19269
19270 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
19271 and XDAMAGE_LIBS to avoid the need to call pkg-config.
19272 See the pkg-config man page for more details." "$LINENO" 5
19273 elif test $pkg_failed = untried; then
19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 printf "%s\n" "no" >&6; }
19276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19277 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19278 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19279 is in your PATH or set the PKG_CONFIG environment variable to the full
19280 path to pkg-config.
19281
19282 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
19283 and XDAMAGE_LIBS to avoid the need to call pkg-config.
19284 See the pkg-config man page for more details.
19285
19286 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19287 See \`config.log' for more details" "$LINENO" 5; }
19288 else
19289 XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
19290 XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292 printf "%s\n" "yes" >&6; }
19293
19294 fi
19295
19296 ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
19297
19298 cat >confcache <<\_ACEOF
19299 # This file is a shell script that caches the results of configure
19300 # tests run on this system so they can be shared between configure
19301 # scripts and configure runs, see configure's option --config-cache.
19302 # It is not useful on other systems. If it contains results you don't
19303 # want to keep, you may remove or edit it.
19304 #
19305 # config.status only pays attention to the cache file if you give it
19306 # the --recheck option to rerun configure.
19307 #
19308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19310 # following values.
19311
19312 _ACEOF
19313
19314 # The following way of writing the cache mishandles newlines in values,
19315 # but we know of no workaround that is simple, portable, and efficient.
19316 # So, we kill variables containing newlines.
19317 # Ultrix sh set writes to stderr and can't be redirected directly,
19318 # and sets the high bit in the cache file unless we assign to the vars.
19319 (
19320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19321 eval ac_val=\$$ac_var
19322 case $ac_val in #(
19323 *${as_nl}*)
19324 case $ac_var in #(
19325 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19326 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19327 esac
19328 case $ac_var in #(
19329 _ | IFS | as_nl) ;; #(
19330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19331 *) { eval $ac_var=; unset $ac_var;} ;;
19332 esac ;;
19333 esac
19334 done
19335
19336 (set) 2>&1 |
19337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19338 *${as_nl}ac_space=\ *)
19339 # `set' does not quote correctly, so add quotes: double-quote
19340 # substitution turns \\\\ into \\, and sed turns \\ into \.
19341 sed -n \
19342 "s/'/'\\\\''/g;
19343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19344 ;; #(
19345 *)
19346 # `set' quotes correctly as required by POSIX, so do not add quotes.
19347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19348 ;;
19349 esac |
19350 sort
19351 ) |
19352 sed '
19353 /^ac_cv_env_/b end
19354 t clear
19355 :clear
19356 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19357 t end
19358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19359 :end' >>confcache
19360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19361 if test -w "$cache_file"; then
19362 if test "x$cache_file" != "x/dev/null"; then
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19364 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19365 if test ! -f "$cache_file" || test -h "$cache_file"; then
19366 cat confcache >"$cache_file"
19367 else
19368 case $cache_file in #(
19369 */* | ?:*)
19370 mv -f confcache "$cache_file"$$ &&
19371 mv -f "$cache_file"$$ "$cache_file" ;; #(
19372 *)
19373 mv -f confcache "$cache_file" ;;
19374 esac
19375 fi
19376 fi
19377 else
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19379 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19380 fi
19381 fi
19382 rm -f confcache
19383
19384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19385 # Let make expand exec_prefix.
19386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19387
19388 DEFS=-DHAVE_CONFIG_H
19389
19390 ac_libobjs=
19391 ac_ltlibobjs=
19392 U=
19393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19394 # 1. Remove the extension, and $U if already installed.
19395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19396 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19398 # will be set to the directory where LIBOBJS objects are built.
19399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19401 done
19402 LIBOBJS=$ac_libobjs
19403
19404 LTLIBOBJS=$ac_ltlibobjs
19405
19406
19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19408 printf %s "checking that generated files are newer than configure... " >&6; }
19409 if test -n "$am_sleep_pid"; then
19410 # Hide warnings about reused PIDs.
19411 wait $am_sleep_pid 2>/dev/null
19412 fi
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19414 printf "%s\n" "done" >&6; }
19415 if test -n "$EXEEXT"; then
19416 am__EXEEXT_TRUE=
19417 am__EXEEXT_FALSE='#'
19418 else
19419 am__EXEEXT_TRUE='#'
19420 am__EXEEXT_FALSE=
19421 fi
19422
19423 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19424 as_fn_error $? "conditional \"AMDEP\" was never defined.
19425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19426 fi
19427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19428 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19430 fi
19431
19432 : "${CONFIG_STATUS=./config.status}"
19433 ac_write_fail=0
19434 ac_clean_files_save=$ac_clean_files
19435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19437 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19438 as_write_fail=0
19439 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19440 #! $SHELL
19441 # Generated by $as_me.
19442 # Run this file to recreate the current configuration.
19443 # Compiler output produced by configure, useful for debugging
19444 # configure, is in config.log if it exists.
19445
19446 debug=false
19447 ac_cs_recheck=false
19448 ac_cs_silent=false
19449
19450 SHELL=\${CONFIG_SHELL-$SHELL}
19451 export SHELL
19452 _ASEOF
19453 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19454 ## -------------------- ##
19455 ## M4sh Initialization. ##
19456 ## -------------------- ##
19457
19458 # Be more Bourne compatible
19459 DUALCASE=1; export DUALCASE # for MKS sh
19460 as_nop=:
19461 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19462 then :
19463 emulate sh
19464 NULLCMD=:
19465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19466 # is contrary to our usage. Disable this feature.
19467 alias -g '${1+"$@"}'='"$@"'
19468 setopt NO_GLOB_SUBST
19469 else $as_nop
19470 case `(set -o) 2>/dev/null` in #(
19471 *posix*) :
19472 set -o posix ;; #(
19473 *) :
19474 ;;
19475 esac
19476 fi
19477
19478
19479
19480 # Reset variables that may have inherited troublesome values from
19481 # the environment.
19482
19483 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19484 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19485 # side effect of setting IFS to empty, thus disabling word splitting.)
19486 # Quoting is to prevent editors from complaining about space-tab.
19487 as_nl='
19488 '
19489 export as_nl
19490 IFS=" "" $as_nl"
19491
19492 PS1='$ '
19493 PS2='> '
19494 PS4='+ '
19495
19496 # Ensure predictable behavior from utilities with locale-dependent output.
19497 LC_ALL=C
19498 export LC_ALL
19499 LANGUAGE=C
19500 export LANGUAGE
19501
19502 # We cannot yet rely on "unset" to work, but we need these variables
19503 # to be unset--not just set to an empty or harmless value--now, to
19504 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19505 # also avoids known problems related to "unset" and subshell syntax
19506 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19507 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19508 do eval test \${$as_var+y} \
19509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19510 done
19511
19512 # Ensure that fds 0, 1, and 2 are open.
19513 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19514 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19515 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19516
19517 # The user is always right.
19518 if ${PATH_SEPARATOR+false} :; then
19519 PATH_SEPARATOR=:
19520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19522 PATH_SEPARATOR=';'
19523 }
19524 fi
19525
19526
19527 # Find who we are. Look in the path if we contain no directory separator.
19528 as_myself=
19529 case $0 in #((
19530 *[\\/]* ) as_myself=$0 ;;
19531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19533 do
19534 IFS=$as_save_IFS
19535 case $as_dir in #(((
19536 '') as_dir=./ ;;
19537 */) ;;
19538 *) as_dir=$as_dir/ ;;
19539 esac
19540 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19541 done
19542 IFS=$as_save_IFS
19543
19544 ;;
19545 esac
19546 # We did not find ourselves, most probably we were run as `sh COMMAND'
19547 # in which case we are not to be found in the path.
19548 if test "x$as_myself" = x; then
19549 as_myself=$0
19550 fi
19551 if test ! -f "$as_myself"; then
19552 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19553 exit 1
19554 fi
19555
19556
19557
19558 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19559 # ----------------------------------------
19560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19562 # script with STATUS, using 1 if that was 0.
19563 as_fn_error ()
19564 {
19565 as_status=$1; test $as_status -eq 0 && as_status=1
19566 if test "$4"; then
19567 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19569 fi
19570 printf "%s\n" "$as_me: error: $2" >&2
19571 as_fn_exit $as_status
19572 } # as_fn_error
19573
19574
19575
19576 # as_fn_set_status STATUS
19577 # -----------------------
19578 # Set $? to STATUS, without forking.
19579 as_fn_set_status ()
19580 {
19581 return $1
19582 } # as_fn_set_status
19583
19584 # as_fn_exit STATUS
19585 # -----------------
19586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19587 as_fn_exit ()
19588 {
19589 set +e
19590 as_fn_set_status $1
19591 exit $1
19592 } # as_fn_exit
19593
19594 # as_fn_unset VAR
19595 # ---------------
19596 # Portably unset VAR.
19597 as_fn_unset ()
19598 {
19599 { eval $1=; unset $1;}
19600 }
19601 as_unset=as_fn_unset
19602
19603 # as_fn_append VAR VALUE
19604 # ----------------------
19605 # Append the text in VALUE to the end of the definition contained in VAR. Take
19606 # advantage of any shell optimizations that allow amortized linear growth over
19607 # repeated appends, instead of the typical quadratic growth present in naive
19608 # implementations.
19609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19610 then :
19611 eval 'as_fn_append ()
19612 {
19613 eval $1+=\$2
19614 }'
19615 else $as_nop
19616 as_fn_append ()
19617 {
19618 eval $1=\$$1\$2
19619 }
19620 fi # as_fn_append
19621
19622 # as_fn_arith ARG...
19623 # ------------------
19624 # Perform arithmetic evaluation on the ARGs, and store the result in the
19625 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19626 # must be portable across $(()) and expr.
19627 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19628 then :
19629 eval 'as_fn_arith ()
19630 {
19631 as_val=$(( $* ))
19632 }'
19633 else $as_nop
19634 as_fn_arith ()
19635 {
19636 as_val=`expr "$@" || test $? -eq 1`
19637 }
19638 fi # as_fn_arith
19639
19640
19641 if expr a : '\(a\)' >/dev/null 2>&1 &&
19642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19643 as_expr=expr
19644 else
19645 as_expr=false
19646 fi
19647
19648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19649 as_basename=basename
19650 else
19651 as_basename=false
19652 fi
19653
19654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19655 as_dirname=dirname
19656 else
19657 as_dirname=false
19658 fi
19659
19660 as_me=`$as_basename -- "$0" ||
19661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19662 X"$0" : 'X\(//\)$' \| \
19663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19664 printf "%s\n" X/"$0" |
19665 sed '/^.*\/\([^/][^/]*\)\/*$/{
19666 s//\1/
19667 q
19668 }
19669 /^X\/\(\/\/\)$/{
19670 s//\1/
19671 q
19672 }
19673 /^X\/\(\/\).*/{
19674 s//\1/
19675 q
19676 }
19677 s/.*/./; q'`
19678
19679 # Avoid depending upon Character Ranges.
19680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19683 as_cr_digits='0123456789'
19684 as_cr_alnum=$as_cr_Letters$as_cr_digits
19685
19686
19687 # Determine whether it's possible to make 'echo' print without a newline.
19688 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19689 # for compatibility with existing Makefiles.
19690 ECHO_C= ECHO_N= ECHO_T=
19691 case `echo -n x` in #(((((
19692 -n*)
19693 case `echo 'xy\c'` in
19694 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19695 xy) ECHO_C='\c';;
19696 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19697 ECHO_T=' ';;
19698 esac;;
19699 *)
19700 ECHO_N='-n';;
19701 esac
19702
19703 # For backward compatibility with old third-party macros, we provide
19704 # the shell variables $as_echo and $as_echo_n. New code should use
19705 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19706 as_echo='printf %s\n'
19707 as_echo_n='printf %s'
19708
19709 rm -f conf$$ conf$$.exe conf$$.file
19710 if test -d conf$$.dir; then
19711 rm -f conf$$.dir/conf$$.file
19712 else
19713 rm -f conf$$.dir
19714 mkdir conf$$.dir 2>/dev/null
19715 fi
19716 if (echo >conf$$.file) 2>/dev/null; then
19717 if ln -s conf$$.file conf$$ 2>/dev/null; then
19718 as_ln_s='ln -s'
19719 # ... but there are two gotchas:
19720 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19721 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19722 # In both cases, we have to default to `cp -pR'.
19723 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19724 as_ln_s='cp -pR'
19725 elif ln conf$$.file conf$$ 2>/dev/null; then
19726 as_ln_s=ln
19727 else
19728 as_ln_s='cp -pR'
19729 fi
19730 else
19731 as_ln_s='cp -pR'
19732 fi
19733 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19734 rmdir conf$$.dir 2>/dev/null
19735
19736
19737 # as_fn_mkdir_p
19738 # -------------
19739 # Create "$as_dir" as a directory, including parents if necessary.
19740 as_fn_mkdir_p ()
19741 {
19742
19743 case $as_dir in #(
19744 -*) as_dir=./$as_dir;;
19745 esac
19746 test -d "$as_dir" || eval $as_mkdir_p || {
19747 as_dirs=
19748 while :; do
19749 case $as_dir in #(
19750 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19751 *) as_qdir=$as_dir;;
19752 esac
19753 as_dirs="'$as_qdir' $as_dirs"
19754 as_dir=`$as_dirname -- "$as_dir" ||
19755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19756 X"$as_dir" : 'X\(//\)[^/]' \| \
19757 X"$as_dir" : 'X\(//\)$' \| \
19758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19759 printf "%s\n" X"$as_dir" |
19760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19761 s//\1/
19762 q
19763 }
19764 /^X\(\/\/\)[^/].*/{
19765 s//\1/
19766 q
19767 }
19768 /^X\(\/\/\)$/{
19769 s//\1/
19770 q
19771 }
19772 /^X\(\/\).*/{
19773 s//\1/
19774 q
19775 }
19776 s/.*/./; q'`
19777 test -d "$as_dir" && break
19778 done
19779 test -z "$as_dirs" || eval "mkdir $as_dirs"
19780 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19781
19782
19783 } # as_fn_mkdir_p
19784 if mkdir -p . 2>/dev/null; then
19785 as_mkdir_p='mkdir -p "$as_dir"'
19786 else
19787 test -d ./-p && rmdir ./-p
19788 as_mkdir_p=false
19789 fi
19790
19791
19792 # as_fn_executable_p FILE
19793 # -----------------------
19794 # Test if FILE is an executable regular file.
19795 as_fn_executable_p ()
19796 {
19797 test -f "$1" && test -x "$1"
19798 } # as_fn_executable_p
19799 as_test_x='test -x'
19800 as_executable_p=as_fn_executable_p
19801
19802 # Sed expression to map a string onto a valid CPP name.
19803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19804
19805 # Sed expression to map a string onto a valid variable name.
19806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19807
19808
19809 exec 6>&1
19810 ## ----------------------------------- ##
19811 ## Main body of $CONFIG_STATUS script. ##
19812 ## ----------------------------------- ##
19813 _ASEOF
19814 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19815
19816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19817 # Save the log message, to keep $0 and so on meaningful, and to
19818 # report actual input values of CONFIG_FILES etc. instead of their
19819 # values after options handling.
19820 ac_log="
19821 This file was extended by libXdamage $as_me 1.1.6, which was
19822 generated by GNU Autoconf 2.71. Invocation command line was
19823
19824 CONFIG_FILES = $CONFIG_FILES
19825 CONFIG_HEADERS = $CONFIG_HEADERS
19826 CONFIG_LINKS = $CONFIG_LINKS
19827 CONFIG_COMMANDS = $CONFIG_COMMANDS
19828 $ $0 $@
19829
19830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19831 "
19832
19833 _ACEOF
19834
19835 case $ac_config_files in *"
19836 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19837 esac
19838
19839 case $ac_config_headers in *"
19840 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19841 esac
19842
19843
19844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19845 # Files that config.status was made for.
19846 config_files="$ac_config_files"
19847 config_headers="$ac_config_headers"
19848 config_commands="$ac_config_commands"
19849
19850 _ACEOF
19851
19852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853 ac_cs_usage="\
19854 \`$as_me' instantiates files and other configuration actions
19855 from templates according to the current configuration. Unless the files
19856 and actions are specified as TAGs, all are instantiated by default.
19857
19858 Usage: $0 [OPTION]... [TAG]...
19859
19860 -h, --help print this help, then exit
19861 -V, --version print version number and configuration settings, then exit
19862 --config print configuration, then exit
19863 -q, --quiet, --silent
19864 do not print progress messages
19865 -d, --debug don't remove temporary files
19866 --recheck update $as_me by reconfiguring in the same conditions
19867 --file=FILE[:TEMPLATE]
19868 instantiate the configuration file FILE
19869 --header=FILE[:TEMPLATE]
19870 instantiate the configuration header FILE
19871
19872 Configuration files:
19873 $config_files
19874
19875 Configuration headers:
19876 $config_headers
19877
19878 Configuration commands:
19879 $config_commands
19880
19881 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/issues>."
19882
19883 _ACEOF
19884 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19885 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19887 ac_cs_config='$ac_cs_config_escaped'
19888 ac_cs_version="\\
19889 libXdamage config.status 1.1.6
19890 configured by $0, generated by GNU Autoconf 2.71,
19891 with options \\"\$ac_cs_config\\"
19892
19893 Copyright (C) 2021 Free Software Foundation, Inc.
19894 This config.status script is free software; the Free Software Foundation
19895 gives unlimited permission to copy, distribute and modify it."
19896
19897 ac_pwd='$ac_pwd'
19898 srcdir='$srcdir'
19899 INSTALL='$INSTALL'
19900 MKDIR_P='$MKDIR_P'
19901 AWK='$AWK'
19902 test -n "\$AWK" || AWK=awk
19903 _ACEOF
19904
19905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906 # The default lists apply if the user does not specify any file.
19907 ac_need_defaults=:
19908 while test $# != 0
19909 do
19910 case $1 in
19911 --*=?*)
19912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19914 ac_shift=:
19915 ;;
19916 --*=)
19917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19918 ac_optarg=
19919 ac_shift=:
19920 ;;
19921 *)
19922 ac_option=$1
19923 ac_optarg=$2
19924 ac_shift=shift
19925 ;;
19926 esac
19927
19928 case $ac_option in
19929 # Handling of the options.
19930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19931 ac_cs_recheck=: ;;
19932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19933 printf "%s\n" "$ac_cs_version"; exit ;;
19934 --config | --confi | --conf | --con | --co | --c )
19935 printf "%s\n" "$ac_cs_config"; exit ;;
19936 --debug | --debu | --deb | --de | --d | -d )
19937 debug=: ;;
19938 --file | --fil | --fi | --f )
19939 $ac_shift
19940 case $ac_optarg in
19941 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19942 '') as_fn_error $? "missing file argument" ;;
19943 esac
19944 as_fn_append CONFIG_FILES " '$ac_optarg'"
19945 ac_need_defaults=false;;
19946 --header | --heade | --head | --hea )
19947 $ac_shift
19948 case $ac_optarg in
19949 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19950 esac
19951 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19952 ac_need_defaults=false;;
19953 --he | --h)
19954 # Conflict between --help and --header
19955 as_fn_error $? "ambiguous option: \`$1'
19956 Try \`$0 --help' for more information.";;
19957 --help | --hel | -h )
19958 printf "%s\n" "$ac_cs_usage"; exit ;;
19959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19961 ac_cs_silent=: ;;
19962
19963 # This is an error.
19964 -*) as_fn_error $? "unrecognized option: \`$1'
19965 Try \`$0 --help' for more information." ;;
19966
19967 *) as_fn_append ac_config_targets " $1"
19968 ac_need_defaults=false ;;
19969
19970 esac
19971 shift
19972 done
19973
19974 ac_configure_extra_args=
19975
19976 if $ac_cs_silent; then
19977 exec 6>/dev/null
19978 ac_configure_extra_args="$ac_configure_extra_args --silent"
19979 fi
19980
19981 _ACEOF
19982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19983 if \$ac_cs_recheck; then
19984 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19985 shift
19986 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19987 CONFIG_SHELL='$SHELL'
19988 export CONFIG_SHELL
19989 exec "\$@"
19990 fi
19991
19992 _ACEOF
19993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19994 exec 5>>config.log
19995 {
19996 echo
19997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19998 ## Running $as_me. ##
19999 _ASBOX
20000 printf "%s\n" "$ac_log"
20001 } >&5
20002
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20005 #
20006 # INIT-COMMANDS
20007 #
20008 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20009
20010
20011 # The HP-UX ksh and POSIX shell print the target directory to stdout
20012 # if CDPATH is set.
20013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20014
20015 sed_quote_subst='$sed_quote_subst'
20016 double_quote_subst='$double_quote_subst'
20017 delay_variable_subst='$delay_variable_subst'
20018 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20019 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20020 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20021 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20022 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20023 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20024 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20025 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20026 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20027 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20028 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20029 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20030 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20031 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20032 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20033 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20034 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20035 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20036 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20037 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20038 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20039 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20040 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20041 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20042 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20043 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20044 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20045 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20046 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20047 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20048 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20049 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20050 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20051 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20052 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20053 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20054 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20055 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20056 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20057 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20058 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20059 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20060 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20061 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20062 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20063 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20064 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20065 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20066 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20067 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20068 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20069 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20070 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20071 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20072 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20073 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20074 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20076 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20078 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"`'
20079 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20080 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20081 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20082 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20083 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20084 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20085 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20086 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20087 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20088 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20089 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20090 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20091 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20092 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20093 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20094 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20095 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20096 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20097 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20098 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20099 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20100 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20101 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20102 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20103 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20104 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20105 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20106 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20107 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20108 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20109 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20110 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20111 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20112 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20113 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20114 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20115 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20116 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20117 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20118 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20119 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20120 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20121 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20122 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20123 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20124 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20125 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20126 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20127 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20128 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20129 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20130 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20131 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20132 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20133 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20134 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20135 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20136 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20137 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20138 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20139 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20140 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20141 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20142 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20143 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20144 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20145 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20146 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20147 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20148 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20149 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20150 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20151 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20152 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20153 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20154 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20155
20156 LTCC='$LTCC'
20157 LTCFLAGS='$LTCFLAGS'
20158 compiler='$compiler_DEFAULT'
20159
20160 # A function that is used when there is no print builtin or printf.
20161 func_fallback_echo ()
20162 {
20163 eval 'cat <<_LTECHO_EOF
20164 \$1
20165 _LTECHO_EOF'
20166 }
20167
20168 # Quote evaled strings.
20169 for var in SHELL \
20170 ECHO \
20171 PATH_SEPARATOR \
20172 SED \
20173 GREP \
20174 EGREP \
20175 FGREP \
20176 LD \
20177 NM \
20178 LN_S \
20179 lt_SP2NL \
20180 lt_NL2SP \
20181 reload_flag \
20182 FILECMD \
20183 OBJDUMP \
20184 deplibs_check_method \
20185 file_magic_cmd \
20186 file_magic_glob \
20187 want_nocaseglob \
20188 DLLTOOL \
20189 sharedlib_from_linklib_cmd \
20190 AR \
20191 archiver_list_spec \
20192 STRIP \
20193 RANLIB \
20194 CC \
20195 CFLAGS \
20196 compiler \
20197 lt_cv_sys_global_symbol_pipe \
20198 lt_cv_sys_global_symbol_to_cdecl \
20199 lt_cv_sys_global_symbol_to_import \
20200 lt_cv_sys_global_symbol_to_c_name_address \
20201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20202 lt_cv_nm_interface \
20203 nm_file_list_spec \
20204 lt_cv_truncate_bin \
20205 lt_prog_compiler_no_builtin_flag \
20206 lt_prog_compiler_pic \
20207 lt_prog_compiler_wl \
20208 lt_prog_compiler_static \
20209 lt_cv_prog_compiler_c_o \
20210 need_locks \
20211 MANIFEST_TOOL \
20212 DSYMUTIL \
20213 NMEDIT \
20214 LIPO \
20215 OTOOL \
20216 OTOOL64 \
20217 shrext_cmds \
20218 export_dynamic_flag_spec \
20219 whole_archive_flag_spec \
20220 compiler_needs_object \
20221 with_gnu_ld \
20222 allow_undefined_flag \
20223 no_undefined_flag \
20224 hardcode_libdir_flag_spec \
20225 hardcode_libdir_separator \
20226 exclude_expsyms \
20227 include_expsyms \
20228 file_list_spec \
20229 variables_saved_for_relink \
20230 libname_spec \
20231 library_names_spec \
20232 soname_spec \
20233 install_override_mode \
20234 finish_eval \
20235 old_striplib \
20236 striplib; do
20237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20238 *[\\\\\\\`\\"\\\$]*)
20239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20240 ;;
20241 *)
20242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20243 ;;
20244 esac
20245 done
20246
20247 # Double-quote double-evaled strings.
20248 for var in reload_cmds \
20249 old_postinstall_cmds \
20250 old_postuninstall_cmds \
20251 old_archive_cmds \
20252 extract_expsyms_cmds \
20253 old_archive_from_new_cmds \
20254 old_archive_from_expsyms_cmds \
20255 archive_cmds \
20256 archive_expsym_cmds \
20257 module_cmds \
20258 module_expsym_cmds \
20259 export_symbols_cmds \
20260 prelink_cmds \
20261 postlink_cmds \
20262 postinstall_cmds \
20263 postuninstall_cmds \
20264 finish_cmds \
20265 sys_lib_search_path_spec \
20266 configure_time_dlsearch_path \
20267 configure_time_lt_sys_library_path; do
20268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20269 *[\\\\\\\`\\"\\\$]*)
20270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20271 ;;
20272 *)
20273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20274 ;;
20275 esac
20276 done
20277
20278 ac_aux_dir='$ac_aux_dir'
20279
20280 # See if we are running on zsh, and set the options that allow our
20281 # commands through without removal of \ escapes INIT.
20282 if test -n "\${ZSH_VERSION+set}"; then
20283 setopt NO_GLOB_SUBST
20284 fi
20285
20286
20287 PACKAGE='$PACKAGE'
20288 VERSION='$VERSION'
20289 RM='$RM'
20290 ofile='$ofile'
20291
20292
20293
20294
20295 _ACEOF
20296
20297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20298
20299 # Handling of arguments.
20300 for ac_config_target in $ac_config_targets
20301 do
20302 case $ac_config_target in
20303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20304 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20305 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20307 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20308 "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
20309
20310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20311 esac
20312 done
20313
20314
20315 # If the user did not use the arguments to specify the items to instantiate,
20316 # then the envvar interface is used. Set only those that are not.
20317 # We use the long form for the default assignment because of an extremely
20318 # bizarre bug on SunOS 4.1.3.
20319 if $ac_need_defaults; then
20320 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20321 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20322 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20323 fi
20324
20325 # Have a temporary directory for convenience. Make it in the build tree
20326 # simply because there is no reason against having it here, and in addition,
20327 # creating and moving files from /tmp can sometimes cause problems.
20328 # Hook for its removal unless debugging.
20329 # Note that there is a small window in which the directory will not be cleaned:
20330 # after its creation but before its name has been assigned to `$tmp'.
20331 $debug ||
20332 {
20333 tmp= ac_tmp=
20334 trap 'exit_status=$?
20335 : "${ac_tmp:=$tmp}"
20336 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20337 ' 0
20338 trap 'as_fn_exit 1' 1 2 13 15
20339 }
20340 # Create a (secure) tmp directory for tmp files.
20341
20342 {
20343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20344 test -d "$tmp"
20345 } ||
20346 {
20347 tmp=./conf$$-$RANDOM
20348 (umask 077 && mkdir "$tmp")
20349 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20350 ac_tmp=$tmp
20351
20352 # Set up the scripts for CONFIG_FILES section.
20353 # No need to generate them if there are no CONFIG_FILES.
20354 # This happens for instance with `./config.status config.h'.
20355 if test -n "$CONFIG_FILES"; then
20356
20357
20358 ac_cr=`echo X | tr X '\015'`
20359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20360 # But we know of no other shell where ac_cr would be empty at this
20361 # point, so we can use a bashism as a fallback.
20362 if test "x$ac_cr" = x; then
20363 eval ac_cr=\$\'\\r\'
20364 fi
20365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20367 ac_cs_awk_cr='\\r'
20368 else
20369 ac_cs_awk_cr=$ac_cr
20370 fi
20371
20372 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20373 _ACEOF
20374
20375
20376 {
20377 echo "cat >conf$$subs.awk <<_ACEOF" &&
20378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20379 echo "_ACEOF"
20380 } >conf$$subs.sh ||
20381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20383 ac_delim='%!_!# '
20384 for ac_last_try in false false false false false :; do
20385 . ./conf$$subs.sh ||
20386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20387
20388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20389 if test $ac_delim_n = $ac_delim_num; then
20390 break
20391 elif $ac_last_try; then
20392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20393 else
20394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20395 fi
20396 done
20397 rm -f conf$$subs.sh
20398
20399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20400 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20401 _ACEOF
20402 sed -n '
20403 h
20404 s/^/S["/; s/!.*/"]=/
20405 p
20406 g
20407 s/^[^!]*!//
20408 :repl
20409 t repl
20410 s/'"$ac_delim"'$//
20411 t delim
20412 :nl
20413 h
20414 s/\(.\{148\}\)..*/\1/
20415 t more1
20416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20417 p
20418 n
20419 b repl
20420 :more1
20421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20422 p
20423 g
20424 s/.\{148\}//
20425 t nl
20426 :delim
20427 h
20428 s/\(.\{148\}\)..*/\1/
20429 t more2
20430 s/["\\]/\\&/g; s/^/"/; s/$/"/
20431 p
20432 b
20433 :more2
20434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20435 p
20436 g
20437 s/.\{148\}//
20438 t delim
20439 ' <conf$$subs.awk | sed '
20440 /^[^""]/{
20441 N
20442 s/\n//
20443 }
20444 ' >>$CONFIG_STATUS || ac_write_fail=1
20445 rm -f conf$$subs.awk
20446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20447 _ACAWK
20448 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20449 for (key in S) S_is_set[key] = 1
20450 FS = ""
20451
20452 }
20453 {
20454 line = $ 0
20455 nfields = split(line, field, "@")
20456 substed = 0
20457 len = length(field[1])
20458 for (i = 2; i < nfields; i++) {
20459 key = field[i]
20460 keylen = length(key)
20461 if (S_is_set[key]) {
20462 value = S[key]
20463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20464 len += length(value) + length(field[++i])
20465 substed = 1
20466 } else
20467 len += 1 + keylen
20468 }
20469
20470 print line
20471 }
20472
20473 _ACAWK
20474 _ACEOF
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20477 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20478 else
20479 cat
20480 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20481 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20482 _ACEOF
20483
20484 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20485 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20486 # trailing colons and then remove the whole line if VPATH becomes empty
20487 # (actually we leave an empty line to preserve line numbers).
20488 if test "x$srcdir" = x.; then
20489 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20490 h
20491 s///
20492 s/^/:/
20493 s/[ ]*$/:/
20494 s/:\$(srcdir):/:/g
20495 s/:\${srcdir}:/:/g
20496 s/:@srcdir@:/:/g
20497 s/^:*//
20498 s/:*$//
20499 x
20500 s/\(=[ ]*\).*/\1/
20501 G
20502 s/\n//
20503 s/^[^=]*=[ ]*$//
20504 }'
20505 fi
20506
20507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20508 fi # test -n "$CONFIG_FILES"
20509
20510 # Set up the scripts for CONFIG_HEADERS section.
20511 # No need to generate them if there are no CONFIG_HEADERS.
20512 # This happens for instance with `./config.status Makefile'.
20513 if test -n "$CONFIG_HEADERS"; then
20514 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20515 BEGIN {
20516 _ACEOF
20517
20518 # Transform confdefs.h into an awk script `defines.awk', embedded as
20519 # here-document in config.status, that substitutes the proper values into
20520 # config.h.in to produce config.h.
20521
20522 # Create a delimiter string that does not exist in confdefs.h, to ease
20523 # handling of long lines.
20524 ac_delim='%!_!# '
20525 for ac_last_try in false false :; do
20526 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20527 if test -z "$ac_tt"; then
20528 break
20529 elif $ac_last_try; then
20530 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20531 else
20532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20533 fi
20534 done
20535
20536 # For the awk script, D is an array of macro values keyed by name,
20537 # likewise P contains macro parameters if any. Preserve backslash
20538 # newline sequences.
20539
20540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20541 sed -n '
20542 s/.\{148\}/&'"$ac_delim"'/g
20543 t rset
20544 :rset
20545 s/^[ ]*#[ ]*define[ ][ ]*/ /
20546 t def
20547 d
20548 :def
20549 s/\\$//
20550 t bsnl
20551 s/["\\]/\\&/g
20552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20553 D["\1"]=" \3"/p
20554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20555 d
20556 :bsnl
20557 s/["\\]/\\&/g
20558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20559 D["\1"]=" \3\\\\\\n"\\/p
20560 t cont
20561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20562 t cont
20563 d
20564 :cont
20565 n
20566 s/.\{148\}/&'"$ac_delim"'/g
20567 t clear
20568 :clear
20569 s/\\$//
20570 t bsnlc
20571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20572 d
20573 :bsnlc
20574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20575 b cont
20576 ' <confdefs.h | sed '
20577 s/'"$ac_delim"'/"\\\
20578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20579
20580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20581 for (key in D) D_is_set[key] = 1
20582 FS = ""
20583 }
20584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20585 line = \$ 0
20586 split(line, arg, " ")
20587 if (arg[1] == "#") {
20588 defundef = arg[2]
20589 mac1 = arg[3]
20590 } else {
20591 defundef = substr(arg[1], 2)
20592 mac1 = arg[2]
20593 }
20594 split(mac1, mac2, "(") #)
20595 macro = mac2[1]
20596 prefix = substr(line, 1, index(line, defundef) - 1)
20597 if (D_is_set[macro]) {
20598 # Preserve the white space surrounding the "#".
20599 print prefix "define", macro P[macro] D[macro]
20600 next
20601 } else {
20602 # Replace #undef with comments. This is necessary, for example,
20603 # in the case of _POSIX_SOURCE, which is predefined and required
20604 # on some systems where configure will not decide to define it.
20605 if (defundef == "undef") {
20606 print "/*", prefix defundef, macro, "*/"
20607 next
20608 }
20609 }
20610 }
20611 { print }
20612 _ACAWK
20613 _ACEOF
20614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20615 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20616 fi # test -n "$CONFIG_HEADERS"
20617
20618
20619 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20620 shift
20621 for ac_tag
20622 do
20623 case $ac_tag in
20624 :[FHLC]) ac_mode=$ac_tag; continue;;
20625 esac
20626 case $ac_mode$ac_tag in
20627 :[FHL]*:*);;
20628 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20629 :[FH]-) ac_tag=-:-;;
20630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20631 esac
20632 ac_save_IFS=$IFS
20633 IFS=:
20634 set x $ac_tag
20635 IFS=$ac_save_IFS
20636 shift
20637 ac_file=$1
20638 shift
20639
20640 case $ac_mode in
20641 :L) ac_source=$1;;
20642 :[FH])
20643 ac_file_inputs=
20644 for ac_f
20645 do
20646 case $ac_f in
20647 -) ac_f="$ac_tmp/stdin";;
20648 *) # Look for the file first in the build tree, then in the source tree
20649 # (if the path is not absolute). The absolute path cannot be DOS-style,
20650 # because $ac_f cannot contain `:'.
20651 test -f "$ac_f" ||
20652 case $ac_f in
20653 [\\/$]*) false;;
20654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20655 esac ||
20656 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20657 esac
20658 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20659 as_fn_append ac_file_inputs " '$ac_f'"
20660 done
20661
20662 # Let's still pretend it is `configure' which instantiates (i.e., don't
20663 # use $as_me), people would be surprised to read:
20664 # /* config.h. Generated by config.status. */
20665 configure_input='Generated from '`
20666 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20667 `' by configure.'
20668 if test x"$ac_file" != x-; then
20669 configure_input="$ac_file. $configure_input"
20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20671 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20672 fi
20673 # Neutralize special characters interpreted by sed in replacement strings.
20674 case $configure_input in #(
20675 *\&* | *\|* | *\\* )
20676 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20678 *) ac_sed_conf_input=$configure_input;;
20679 esac
20680
20681 case $ac_tag in
20682 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20684 esac
20685 ;;
20686 esac
20687
20688 ac_dir=`$as_dirname -- "$ac_file" ||
20689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690 X"$ac_file" : 'X\(//\)[^/]' \| \
20691 X"$ac_file" : 'X\(//\)$' \| \
20692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20693 printf "%s\n" X"$ac_file" |
20694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20695 s//\1/
20696 q
20697 }
20698 /^X\(\/\/\)[^/].*/{
20699 s//\1/
20700 q
20701 }
20702 /^X\(\/\/\)$/{
20703 s//\1/
20704 q
20705 }
20706 /^X\(\/\).*/{
20707 s//\1/
20708 q
20709 }
20710 s/.*/./; q'`
20711 as_dir="$ac_dir"; as_fn_mkdir_p
20712 ac_builddir=.
20713
20714 case "$ac_dir" in
20715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20716 *)
20717 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20718 # A ".." for each directory in $ac_dir_suffix.
20719 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20720 case $ac_top_builddir_sub in
20721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20723 esac ;;
20724 esac
20725 ac_abs_top_builddir=$ac_pwd
20726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20727 # for backward compatibility:
20728 ac_top_builddir=$ac_top_build_prefix
20729
20730 case $srcdir in
20731 .) # We are building in place.
20732 ac_srcdir=.
20733 ac_top_srcdir=$ac_top_builddir_sub
20734 ac_abs_top_srcdir=$ac_pwd ;;
20735 [\\/]* | ?:[\\/]* ) # Absolute name.
20736 ac_srcdir=$srcdir$ac_dir_suffix;
20737 ac_top_srcdir=$srcdir
20738 ac_abs_top_srcdir=$srcdir ;;
20739 *) # Relative name.
20740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20741 ac_top_srcdir=$ac_top_build_prefix$srcdir
20742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20743 esac
20744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20745
20746
20747 case $ac_mode in
20748 :F)
20749 #
20750 # CONFIG_FILE
20751 #
20752
20753 case $INSTALL in
20754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20756 esac
20757 ac_MKDIR_P=$MKDIR_P
20758 case $MKDIR_P in
20759 [\\/$]* | ?:[\\/]* ) ;;
20760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20761 esac
20762 _ACEOF
20763
20764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765 # If the template does not know about datarootdir, expand it.
20766 # FIXME: This hack should be removed a few years after 2.60.
20767 ac_datarootdir_hack=; ac_datarootdir_seen=
20768 ac_sed_dataroot='
20769 /datarootdir/ {
20770 p
20771 q
20772 }
20773 /@datadir@/p
20774 /@docdir@/p
20775 /@infodir@/p
20776 /@localedir@/p
20777 /@mandir@/p'
20778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20779 *datarootdir*) ac_datarootdir_seen=yes;;
20780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20782 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20783 _ACEOF
20784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785 ac_datarootdir_hack='
20786 s&@datadir@&$datadir&g
20787 s&@docdir@&$docdir&g
20788 s&@infodir@&$infodir&g
20789 s&@localedir@&$localedir&g
20790 s&@mandir@&$mandir&g
20791 s&\\\${datarootdir}&$datarootdir&g' ;;
20792 esac
20793 _ACEOF
20794
20795 # Neutralize VPATH when `$srcdir' = `.'.
20796 # Shell code in configure.ac might set extrasub.
20797 # FIXME: do we really want to maintain this feature?
20798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20799 ac_sed_extra="$ac_vpsub
20800 $extrasub
20801 _ACEOF
20802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20803 :t
20804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20805 s|@configure_input@|$ac_sed_conf_input|;t t
20806 s&@top_builddir@&$ac_top_builddir_sub&;t t
20807 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20808 s&@srcdir@&$ac_srcdir&;t t
20809 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20810 s&@top_srcdir@&$ac_top_srcdir&;t t
20811 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20812 s&@builddir@&$ac_builddir&;t t
20813 s&@abs_builddir@&$ac_abs_builddir&;t t
20814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20815 s&@INSTALL@&$ac_INSTALL&;t t
20816 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20817 $ac_datarootdir_hack
20818 "
20819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20821
20822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20825 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20827 which seems to be undefined. Please make sure it is defined" >&5
20828 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20829 which seems to be undefined. Please make sure it is defined" >&2;}
20830
20831 rm -f "$ac_tmp/stdin"
20832 case $ac_file in
20833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20835 esac \
20836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20837 ;;
20838 :H)
20839 #
20840 # CONFIG_HEADER
20841 #
20842 if test x"$ac_file" != x-; then
20843 {
20844 printf "%s\n" "/* $configure_input */" >&1 \
20845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20846 } >"$ac_tmp/config.h" \
20847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20850 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20851 else
20852 rm -f "$ac_file"
20853 mv "$ac_tmp/config.h" "$ac_file" \
20854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20855 fi
20856 else
20857 printf "%s\n" "/* $configure_input */" >&1 \
20858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20859 || as_fn_error $? "could not create -" "$LINENO" 5
20860 fi
20861 # Compute "$ac_file"'s index in $config_headers.
20862 _am_arg="$ac_file"
20863 _am_stamp_count=1
20864 for _am_header in $config_headers :; do
20865 case $_am_header in
20866 $_am_arg | $_am_arg:* )
20867 break ;;
20868 * )
20869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20870 esac
20871 done
20872 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20873 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20874 X"$_am_arg" : 'X\(//\)[^/]' \| \
20875 X"$_am_arg" : 'X\(//\)$' \| \
20876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20877 printf "%s\n" X"$_am_arg" |
20878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20879 s//\1/
20880 q
20881 }
20882 /^X\(\/\/\)[^/].*/{
20883 s//\1/
20884 q
20885 }
20886 /^X\(\/\/\)$/{
20887 s//\1/
20888 q
20889 }
20890 /^X\(\/\).*/{
20891 s//\1/
20892 q
20893 }
20894 s/.*/./; q'`/stamp-h$_am_stamp_count
20895 ;;
20896
20897 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20898 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20899 ;;
20900 esac
20901
20902
20903 case $ac_file$ac_mode in
20904 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20905 # Older Autoconf quotes --file arguments for eval, but not when files
20906 # are listed without --file. Let's play safe and only enable the eval
20907 # if we detect the quoting.
20908 # TODO: see whether this extra hack can be removed once we start
20909 # requiring Autoconf 2.70 or later.
20910 case $CONFIG_FILES in #(
20911 *\'*) :
20912 eval set x "$CONFIG_FILES" ;; #(
20913 *) :
20914 set x $CONFIG_FILES ;; #(
20915 *) :
20916 ;;
20917 esac
20918 shift
20919 # Used to flag and report bootstrapping failures.
20920 am_rc=0
20921 for am_mf
20922 do
20923 # Strip MF so we end up with the name of the file.
20924 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20925 # Check whether this is an Automake generated Makefile which includes
20926 # dependency-tracking related rules and includes.
20927 # Grep'ing the whole file directly is not great: AIX grep has a line
20928 # limit of 2048, but all sed's we know have understand at least 4000.
20929 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20930 || continue
20931 am_dirpart=`$as_dirname -- "$am_mf" ||
20932 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20933 X"$am_mf" : 'X\(//\)[^/]' \| \
20934 X"$am_mf" : 'X\(//\)$' \| \
20935 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20936 printf "%s\n" X"$am_mf" |
20937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20938 s//\1/
20939 q
20940 }
20941 /^X\(\/\/\)[^/].*/{
20942 s//\1/
20943 q
20944 }
20945 /^X\(\/\/\)$/{
20946 s//\1/
20947 q
20948 }
20949 /^X\(\/\).*/{
20950 s//\1/
20951 q
20952 }
20953 s/.*/./; q'`
20954 am_filepart=`$as_basename -- "$am_mf" ||
20955 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20956 X"$am_mf" : 'X\(//\)$' \| \
20957 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20958 printf "%s\n" X/"$am_mf" |
20959 sed '/^.*\/\([^/][^/]*\)\/*$/{
20960 s//\1/
20961 q
20962 }
20963 /^X\/\(\/\/\)$/{
20964 s//\1/
20965 q
20966 }
20967 /^X\/\(\/\).*/{
20968 s//\1/
20969 q
20970 }
20971 s/.*/./; q'`
20972 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20973 && sed -e '/# am--include-marker/d' "$am_filepart" \
20974 | $MAKE -f - am--depfiles" >&5
20975 (cd "$am_dirpart" \
20976 && sed -e '/# am--include-marker/d' "$am_filepart" \
20977 | $MAKE -f - am--depfiles) >&5 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } || am_rc=$?
20981 done
20982 if test $am_rc -ne 0; then
20983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20985 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20986 for automatic dependency tracking. If GNU make was not used, consider
20987 re-running the configure script with MAKE=\"gmake\" (or whatever is
20988 necessary). You can also try re-running configure with the
20989 '--disable-dependency-tracking' option to at least be able to build
20990 the package (albeit without support for automatic dependency tracking).
20991 See \`config.log' for more details" "$LINENO" 5; }
20992 fi
20993 { am_dirpart=; unset am_dirpart;}
20994 { am_filepart=; unset am_filepart;}
20995 { am_mf=; unset am_mf;}
20996 { am_rc=; unset am_rc;}
20997 rm -f conftest-deps.mk
20998 }
20999 ;;
21000 "libtool":C)
21001
21002 # See if we are running on zsh, and set the options that allow our
21003 # commands through without removal of \ escapes.
21004 if test -n "${ZSH_VERSION+set}"; then
21005 setopt NO_GLOB_SUBST
21006 fi
21007
21008 cfgfile=${ofile}T
21009 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21010 $RM "$cfgfile"
21011
21012 cat <<_LT_EOF >> "$cfgfile"
21013 #! $SHELL
21014 # Generated automatically by $as_me ($PACKAGE) $VERSION
21015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21016 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21017
21018 # Provide generalized library-building support services.
21019 # Written by Gordon Matzigkeit, 1996
21020
21021 # Copyright (C) 2014 Free Software Foundation, Inc.
21022 # This is free software; see the source for copying conditions. There is NO
21023 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21024
21025 # GNU Libtool is free software; you can redistribute it and/or modify
21026 # it under the terms of the GNU General Public License as published by
21027 # the Free Software Foundation; either version 2 of of the License, or
21028 # (at your option) any later version.
21029 #
21030 # As a special exception to the GNU General Public License, if you
21031 # distribute this file as part of a program or library that is built
21032 # using GNU Libtool, you may include this file under the same
21033 # distribution terms that you use for the rest of that program.
21034 #
21035 # GNU Libtool is distributed in the hope that it will be useful, but
21036 # WITHOUT ANY WARRANTY; without even the implied warranty of
21037 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21038 # GNU General Public License for more details.
21039 #
21040 # You should have received a copy of the GNU General Public License
21041 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21042
21043
21044 # The names of the tagged configurations supported by this script.
21045 available_tags=''
21046
21047 # Configured defaults for sys_lib_dlsearch_path munging.
21048 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21049
21050 # ### BEGIN LIBTOOL CONFIG
21051
21052 # Which release of libtool.m4 was used?
21053 macro_version=$macro_version
21054 macro_revision=$macro_revision
21055
21056 # Whether or not to build shared libraries.
21057 build_libtool_libs=$enable_shared
21058
21059 # Whether or not to build static libraries.
21060 build_old_libs=$enable_static
21061
21062 # What type of objects to build.
21063 pic_mode=$pic_mode
21064
21065 # Whether or not to optimize for fast installation.
21066 fast_install=$enable_fast_install
21067
21068 # Shared archive member basename,for filename based shared library versioning on AIX.
21069 shared_archive_member_spec=$shared_archive_member_spec
21070
21071 # Shell to use when invoking shell scripts.
21072 SHELL=$lt_SHELL
21073
21074 # An echo program that protects backslashes.
21075 ECHO=$lt_ECHO
21076
21077 # The PATH separator for the build system.
21078 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21079
21080 # The host system.
21081 host_alias=$host_alias
21082 host=$host
21083 host_os=$host_os
21084
21085 # The build system.
21086 build_alias=$build_alias
21087 build=$build
21088 build_os=$build_os
21089
21090 # A sed program that does not truncate output.
21091 SED=$lt_SED
21092
21093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21094 Xsed="\$SED -e 1s/^X//"
21095
21096 # A grep program that handles long lines.
21097 GREP=$lt_GREP
21098
21099 # An ERE matcher.
21100 EGREP=$lt_EGREP
21101
21102 # A literal string matcher.
21103 FGREP=$lt_FGREP
21104
21105 # A BSD- or MS-compatible name lister.
21106 NM=$lt_NM
21107
21108 # Whether we need soft or hard links.
21109 LN_S=$lt_LN_S
21110
21111 # What is the maximum length of a command?
21112 max_cmd_len=$max_cmd_len
21113
21114 # Object file suffix (normally "o").
21115 objext=$ac_objext
21116
21117 # Executable file suffix (normally "").
21118 exeext=$exeext
21119
21120 # whether the shell understands "unset".
21121 lt_unset=$lt_unset
21122
21123 # turn spaces into newlines.
21124 SP2NL=$lt_lt_SP2NL
21125
21126 # turn newlines into spaces.
21127 NL2SP=$lt_lt_NL2SP
21128
21129 # convert \$build file names to \$host format.
21130 to_host_file_cmd=$lt_cv_to_host_file_cmd
21131
21132 # convert \$build files to toolchain format.
21133 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21134
21135 # A file(cmd) program that detects file types.
21136 FILECMD=$lt_FILECMD
21137
21138 # An object symbol dumper.
21139 OBJDUMP=$lt_OBJDUMP
21140
21141 # Method to check whether dependent libraries are shared objects.
21142 deplibs_check_method=$lt_deplibs_check_method
21143
21144 # Command to use when deplibs_check_method = "file_magic".
21145 file_magic_cmd=$lt_file_magic_cmd
21146
21147 # How to find potential files when deplibs_check_method = "file_magic".
21148 file_magic_glob=$lt_file_magic_glob
21149
21150 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21151 want_nocaseglob=$lt_want_nocaseglob
21152
21153 # DLL creation program.
21154 DLLTOOL=$lt_DLLTOOL
21155
21156 # Command to associate shared and link libraries.
21157 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21158
21159 # The archiver.
21160 AR=$lt_AR
21161
21162 # Flags to create an archive (by configure).
21163 lt_ar_flags=$lt_ar_flags
21164
21165 # Flags to create an archive.
21166 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21167
21168 # How to feed a file listing to the archiver.
21169 archiver_list_spec=$lt_archiver_list_spec
21170
21171 # A symbol stripping program.
21172 STRIP=$lt_STRIP
21173
21174 # Commands used to install an old-style archive.
21175 RANLIB=$lt_RANLIB
21176 old_postinstall_cmds=$lt_old_postinstall_cmds
21177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21178
21179 # Whether to use a lock for old archive extraction.
21180 lock_old_archive_extraction=$lock_old_archive_extraction
21181
21182 # A C compiler.
21183 LTCC=$lt_CC
21184
21185 # LTCC compiler flags.
21186 LTCFLAGS=$lt_CFLAGS
21187
21188 # Take the output of nm and produce a listing of raw symbols and C names.
21189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190
21191 # Transform the output of nm in a proper C declaration.
21192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193
21194 # Transform the output of nm into a list of symbols to manually relocate.
21195 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21196
21197 # Transform the output of nm in a C name address pair.
21198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21199
21200 # Transform the output of nm in a C name address pair when lib prefix is needed.
21201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21202
21203 # The name lister interface.
21204 nm_interface=$lt_lt_cv_nm_interface
21205
21206 # Specify filename containing input files for \$NM.
21207 nm_file_list_spec=$lt_nm_file_list_spec
21208
21209 # The root where to search for dependent libraries,and where our libraries should be installed.
21210 lt_sysroot=$lt_sysroot
21211
21212 # Command to truncate a binary pipe.
21213 lt_truncate_bin=$lt_lt_cv_truncate_bin
21214
21215 # The name of the directory that contains temporary libtool files.
21216 objdir=$objdir
21217
21218 # Used to examine libraries when file_magic_cmd begins with "file".
21219 MAGIC_CMD=$MAGIC_CMD
21220
21221 # Must we lock files when doing compilation?
21222 need_locks=$lt_need_locks
21223
21224 # Manifest tool.
21225 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21226
21227 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21228 DSYMUTIL=$lt_DSYMUTIL
21229
21230 # Tool to change global to local symbols on Mac OS X.
21231 NMEDIT=$lt_NMEDIT
21232
21233 # Tool to manipulate fat objects and archives on Mac OS X.
21234 LIPO=$lt_LIPO
21235
21236 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21237 OTOOL=$lt_OTOOL
21238
21239 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21240 OTOOL64=$lt_OTOOL64
21241
21242 # Old archive suffix (normally "a").
21243 libext=$libext
21244
21245 # Shared library suffix (normally ".so").
21246 shrext_cmds=$lt_shrext_cmds
21247
21248 # The commands to extract the exported symbol list from a shared archive.
21249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21250
21251 # Variables whose values should be saved in libtool wrapper scripts and
21252 # restored at link time.
21253 variables_saved_for_relink=$lt_variables_saved_for_relink
21254
21255 # Do we need the "lib" prefix for modules?
21256 need_lib_prefix=$need_lib_prefix
21257
21258 # Do we need a version for libraries?
21259 need_version=$need_version
21260
21261 # Library versioning type.
21262 version_type=$version_type
21263
21264 # Shared library runtime path variable.
21265 runpath_var=$runpath_var
21266
21267 # Shared library path variable.
21268 shlibpath_var=$shlibpath_var
21269
21270 # Is shlibpath searched before the hard-coded library search path?
21271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21272
21273 # Format of library name prefix.
21274 libname_spec=$lt_libname_spec
21275
21276 # List of archive names. First name is the real one, the rest are links.
21277 # The last name is the one that the linker finds with -lNAME
21278 library_names_spec=$lt_library_names_spec
21279
21280 # The coded name of the library, if different from the real name.
21281 soname_spec=$lt_soname_spec
21282
21283 # Permission mode override for installation of shared libraries.
21284 install_override_mode=$lt_install_override_mode
21285
21286 # Command to use after installation of a shared archive.
21287 postinstall_cmds=$lt_postinstall_cmds
21288
21289 # Command to use after uninstallation of a shared archive.
21290 postuninstall_cmds=$lt_postuninstall_cmds
21291
21292 # Commands used to finish a libtool library installation in a directory.
21293 finish_cmds=$lt_finish_cmds
21294
21295 # As "finish_cmds", except a single script fragment to be evaled but
21296 # not shown.
21297 finish_eval=$lt_finish_eval
21298
21299 # Whether we should hardcode library paths into libraries.
21300 hardcode_into_libs=$hardcode_into_libs
21301
21302 # Compile-time system search path for libraries.
21303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21304
21305 # Detected run-time system search path for libraries.
21306 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21307
21308 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21309 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21310
21311 # Whether dlopen is supported.
21312 dlopen_support=$enable_dlopen
21313
21314 # Whether dlopen of programs is supported.
21315 dlopen_self=$enable_dlopen_self
21316
21317 # Whether dlopen of statically linked programs is supported.
21318 dlopen_self_static=$enable_dlopen_self_static
21319
21320 # Commands to strip libraries.
21321 old_striplib=$lt_old_striplib
21322 striplib=$lt_striplib
21323
21324
21325 # The linker used to build libraries.
21326 LD=$lt_LD
21327
21328 # How to create reloadable object files.
21329 reload_flag=$lt_reload_flag
21330 reload_cmds=$lt_reload_cmds
21331
21332 # Commands used to build an old-style archive.
21333 old_archive_cmds=$lt_old_archive_cmds
21334
21335 # A language specific compiler.
21336 CC=$lt_compiler
21337
21338 # Is the compiler the GNU compiler?
21339 with_gcc=$GCC
21340
21341 # Compiler flag to turn off builtin functions.
21342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21343
21344 # Additional compiler flags for building library objects.
21345 pic_flag=$lt_lt_prog_compiler_pic
21346
21347 # How to pass a linker flag through the compiler.
21348 wl=$lt_lt_prog_compiler_wl
21349
21350 # Compiler flag to prevent dynamic linking.
21351 link_static_flag=$lt_lt_prog_compiler_static
21352
21353 # Does compiler simultaneously support -c and -o options?
21354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21355
21356 # Whether or not to add -lc for building shared libraries.
21357 build_libtool_need_lc=$archive_cmds_need_lc
21358
21359 # Whether or not to disallow shared libs when runtime libs are static.
21360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21361
21362 # Compiler flag to allow reflexive dlopens.
21363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21364
21365 # Compiler flag to generate shared objects directly from archives.
21366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21367
21368 # Whether the compiler copes with passing no objects directly.
21369 compiler_needs_object=$lt_compiler_needs_object
21370
21371 # Create an old-style archive from a shared archive.
21372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21373
21374 # Create a temporary old-style archive to link instead of a shared archive.
21375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21376
21377 # Commands used to build a shared archive.
21378 archive_cmds=$lt_archive_cmds
21379 archive_expsym_cmds=$lt_archive_expsym_cmds
21380
21381 # Commands used to build a loadable module if different from building
21382 # a shared archive.
21383 module_cmds=$lt_module_cmds
21384 module_expsym_cmds=$lt_module_expsym_cmds
21385
21386 # Whether we are building with GNU ld or not.
21387 with_gnu_ld=$lt_with_gnu_ld
21388
21389 # Flag that allows shared libraries with undefined symbols to be built.
21390 allow_undefined_flag=$lt_allow_undefined_flag
21391
21392 # Flag that enforces no undefined symbols.
21393 no_undefined_flag=$lt_no_undefined_flag
21394
21395 # Flag to hardcode \$libdir into a binary during linking.
21396 # This must work even if \$libdir does not exist
21397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21398
21399 # Whether we need a single "-rpath" flag with a separated argument.
21400 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21401
21402 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21403 # DIR into the resulting binary.
21404 hardcode_direct=$hardcode_direct
21405
21406 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21407 # DIR into the resulting binary and the resulting library dependency is
21408 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21409 # library is relocated.
21410 hardcode_direct_absolute=$hardcode_direct_absolute
21411
21412 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21413 # into the resulting binary.
21414 hardcode_minus_L=$hardcode_minus_L
21415
21416 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21417 # into the resulting binary.
21418 hardcode_shlibpath_var=$hardcode_shlibpath_var
21419
21420 # Set to "yes" if building a shared library automatically hardcodes DIR
21421 # into the library and all subsequent libraries and executables linked
21422 # against it.
21423 hardcode_automatic=$hardcode_automatic
21424
21425 # Set to yes if linker adds runtime paths of dependent libraries
21426 # to runtime path list.
21427 inherit_rpath=$inherit_rpath
21428
21429 # Whether libtool must link a program against all its dependency libraries.
21430 link_all_deplibs=$link_all_deplibs
21431
21432 # Set to "yes" if exported symbols are required.
21433 always_export_symbols=$always_export_symbols
21434
21435 # The commands to list exported symbols.
21436 export_symbols_cmds=$lt_export_symbols_cmds
21437
21438 # Symbols that should not be listed in the preloaded symbols.
21439 exclude_expsyms=$lt_exclude_expsyms
21440
21441 # Symbols that must always be exported.
21442 include_expsyms=$lt_include_expsyms
21443
21444 # Commands necessary for linking programs (against libraries) with templates.
21445 prelink_cmds=$lt_prelink_cmds
21446
21447 # Commands necessary for finishing linking programs.
21448 postlink_cmds=$lt_postlink_cmds
21449
21450 # Specify filename containing input files.
21451 file_list_spec=$lt_file_list_spec
21452
21453 # How to hardcode a shared library path into an executable.
21454 hardcode_action=$hardcode_action
21455
21456 # ### END LIBTOOL CONFIG
21457
21458 _LT_EOF
21459
21460 cat <<'_LT_EOF' >> "$cfgfile"
21461
21462 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21463
21464 # func_munge_path_list VARIABLE PATH
21465 # -----------------------------------
21466 # VARIABLE is name of variable containing _space_ separated list of
21467 # directories to be munged by the contents of PATH, which is string
21468 # having a format:
21469 # "DIR[:DIR]:"
21470 # string "DIR[ DIR]" will be prepended to VARIABLE
21471 # ":DIR[:DIR]"
21472 # string "DIR[ DIR]" will be appended to VARIABLE
21473 # "DIRP[:DIRP]::[DIRA:]DIRA"
21474 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21475 # "DIRA[ DIRA]" will be appended to VARIABLE
21476 # "DIR[:DIR]"
21477 # VARIABLE will be replaced by "DIR[ DIR]"
21478 func_munge_path_list ()
21479 {
21480 case x$2 in
21481 x)
21482 ;;
21483 *:)
21484 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21485 ;;
21486 x:*)
21487 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21488 ;;
21489 *::*)
21490 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21491 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21492 ;;
21493 *)
21494 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21495 ;;
21496 esac
21497 }
21498
21499
21500 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21501 func_cc_basename ()
21502 {
21503 for cc_temp in $*""; do
21504 case $cc_temp in
21505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21507 \-*) ;;
21508 *) break;;
21509 esac
21510 done
21511 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21512 }
21513
21514
21515 # ### END FUNCTIONS SHARED WITH CONFIGURE
21516
21517 _LT_EOF
21518
21519 case $host_os in
21520 aix3*)
21521 cat <<\_LT_EOF >> "$cfgfile"
21522 # AIX sometimes has problems with the GCC collect2 program. For some
21523 # reason, if we set the COLLECT_NAMES environment variable, the problems
21524 # vanish in a puff of smoke.
21525 if test set != "${COLLECT_NAMES+set}"; then
21526 COLLECT_NAMES=
21527 export COLLECT_NAMES
21528 fi
21529 _LT_EOF
21530 ;;
21531 esac
21532
21533
21534
21535 ltmain=$ac_aux_dir/ltmain.sh
21536
21537
21538 # We use sed instead of cat because bash on DJGPP gets confused if
21539 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21540 # text mode, it properly converts lines to CR/LF. This bash problem
21541 # is reportedly fixed, but why not run on old versions too?
21542 $SED '$q' "$ltmain" >> "$cfgfile" \
21543 || (rm -f "$cfgfile"; exit 1)
21544
21545 mv -f "$cfgfile" "$ofile" ||
21546 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21547 chmod +x "$ofile"
21548
21549 ;;
21550
21551 esac
21552 done # for ac_tag
21553
21554
21555 as_fn_exit 0
21556 _ACEOF
21557 ac_clean_files=$ac_clean_files_save
21558
21559 test $ac_write_fail = 0 ||
21560 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21561
21562
21563 # configure is writing to config.log, and then calls config.status.
21564 # config.status does its own redirection, appending to config.log.
21565 # Unfortunately, on DOS this fails, as config.log is still kept open
21566 # by configure, so config.status won't be able to write to it; its
21567 # output is simply discarded. So we exec the FD to /dev/null,
21568 # effectively closing config.log, so it can be properly (re)opened and
21569 # appended to by config.status. When coming back to configure, we
21570 # need to make the FD available again.
21571 if test "$no_create" != yes; then
21572 ac_cs_success=:
21573 ac_config_status_args=
21574 test "$silent" = yes &&
21575 ac_config_status_args="$ac_config_status_args --quiet"
21576 exec 5>/dev/null
21577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21578 exec 5>>config.log
21579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21580 # would make configure fail if this is the last instruction.
21581 $ac_cs_success || as_fn_exit 1
21582 fi
21583 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21585 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21586 fi
21587
21588
21589