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.72 for libxshmfence 1.3.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='libxshmfence'
617 PACKAGE_TARNAME='libxshmfence'
618 PACKAGE_VERSION='1.3.3'
619 PACKAGE_STRING='libxshmfence 1.3.3'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues'
621 PACKAGE_URL=''
622
623 ac_unique_file="Makefile.am"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 XPROTO_LIBS
662 XPROTO_CFLAGS
663 PTHREAD_FALSE
664 PTHREAD_TRUE
665 FUTEX_FALSE
666 FUTEX_TRUE
667 PTHREAD_LIBS
668 LINT_FALSE
669 LINT_TRUE
670 LINT_FLAGS
671 LINT
672 MAN_SUBSTS
673 XORG_MAN_PAGE
674 ADMIN_MAN_DIR
675 DRIVER_MAN_DIR
676 MISC_MAN_DIR
677 FILE_MAN_DIR
678 LIB_MAN_DIR
679 APP_MAN_DIR
680 ADMIN_MAN_SUFFIX
681 DRIVER_MAN_SUFFIX
682 MISC_MAN_SUFFIX
683 FILE_MAN_SUFFIX
684 LIB_MAN_SUFFIX
685 APP_MAN_SUFFIX
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 LIBTOOL
725 am__xargs_n
726 am__rm_f_notfound
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 CSCOPE
732 ETAGS
733 CTAGS
734 am__fastdepCC_FALSE
735 am__fastdepCC_TRUE
736 CCDEPMODE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 am__include
742 DEPDIR
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
772 CC
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_dependency_tracking
817 enable_silent_rules
818 enable_shared
819 enable_static
820 enable_pic
821 with_pic
822 enable_fast_install
823 enable_aix_soname
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_selective_werror
829 enable_strict_compilation
830 with_lint
831 enable_largefile
832 enable_futex
833 enable_visibility
834 with_shared_memory_dir
835 enable_year2038
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 LT_SYS_LIBRARY_PATH
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 LINT
850 LINT_FLAGS
851 XPROTO_CFLAGS
852 XPROTO_LIBS'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 runstatedir='${localstatedir}/run'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: '$ac_useropt'"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: '$ac_useropt'"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -runstatedir | --runstatedir | --runstatedi | --runstated \
1143 | --runstate | --runstat | --runsta | --runst | --runs \
1144 | --run | --ru | --r)
1145 ac_prev=runstatedir ;;
1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148 | --run=* | --ru=* | --r=*)
1149 runstatedir=$ac_optarg ;;
1150
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1167
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1177
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1184
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1195
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: '$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: '$ac_useropt'"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) as_fn_error $? "unrecognized option: '$ac_option'
1247 Try '$0 --help' for more information"
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 ;;
1267
1268 esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir runstatedir
1289 do
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: '$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 printf "%s\n" X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 'configure' configures libxshmfence 1.3.3 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print 'checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for '--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or '..']
1420
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427 By default, 'make install' will install all the files in
1428 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than '$ac_default_prefix' using '--prefix',
1430 for instance '--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libxshmfence]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1456
1457 cat <<\_ACEOF
1458
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of libxshmfence 1.3.3:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-silent-rules less verbose build output (undo: "make V=1")
1485 --disable-silent-rules verbose build output (undo: "make V=0")
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1489 both]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --enable-aix-soname=aix|svr4|both
1493 shared library versioning (aka "SONAME") variant to
1494 provide on AIX, [default=aix].
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --disable-selective-werror
1497 Turn off selective compiler errors. (default:
1498 enabled)
1499 --enable-strict-compilation
1500 Enable all warnings from compiler and make them
1501 errors (default: disabled)
1502 --disable-largefile omit support for large files
1503 --enable-futex Enable futexes (default: auto)
1504 --enable-visibility Enable symbol visibility (default: auto)
1505 --enable-year2038 support timestamps after 2038
1506
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1512 compiler's sysroot if not specified).
1513 --with-lint Use a lint-style source code checker (default:
1514 disabled)
1515 --with-shared-memory-dir=PATH
1516 Path to directory in a world-writable temporary
1517 directory for anonymous shared memory (default:
1518 auto)
1519
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 LT_SYS_LIBRARY_PATH
1529 User-defined run-time library search path.
1530 PKG_CONFIG path to pkg-config utility
1531 PKG_CONFIG_PATH
1532 directories to add to pkg-config's search path
1533 PKG_CONFIG_LIBDIR
1534 path overriding pkg-config's built-in search path
1535 LINT Path to a lint-style command
1536 LINT_FLAGS Flags for the lint-style command
1537 XPROTO_CFLAGS
1538 C compiler flags for XPROTO, overriding pkg-config
1539 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1540
1541 Use these variables to override the choices made by 'configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for configure.gnu first; this name is used for a wrapper for
1591 # Metaconfig's "Configure" on case-insensitive file systems.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 libxshmfence configure 1.3.3
1609 generated by GNU Autoconf 2.72
1610
1611 Copyright (C) 2023 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest.beam
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 printf "%s\n" "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext
1648 then :
1649 ac_retval=0
1650 else case e in #(
1651 e) printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1 ;;
1655 esac
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 printf %s "checking for $2... " >&6; }
1671 if eval test \${$3+y}
1672 then :
1673 printf %s "(cached) " >&6
1674 else case e in #(
1675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"
1681 then :
1682 eval "$3=yes"
1683 else case e in #(
1684 e) eval "$3=no" ;;
1685 esac
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1688 esac
1689 fi
1690 eval ac_res=\$$3
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 printf "%s\n" "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695 } # ac_fn_c_check_header_compile
1696
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_link ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 printf "%s\n" "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1725 }
1726 then :
1727 ac_retval=0
1728 else case e in #(
1729 e) printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1 ;;
1733 esac
1734 fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 printf %s "checking for $2... " >&6; }
1753 if eval test \${$3+y}
1754 then :
1755 printf %s "(cached) " >&6
1756 else case e in #(
1757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (void); below. */
1765
1766 #include <limits.h>
1767 #undef $2
1768
1769 /* Override any GCC internal prototype to avoid an error.
1770 Use char because int might match the return type of a GCC
1771 builtin and then its argument prototype would still apply. */
1772 #ifdef __cplusplus
1773 extern "C"
1774 #endif
1775 char $2 (void);
1776 /* The GNU C library defines this for functions which it implements
1777 to always fail with ENOSYS. Some functions are actually named
1778 something starting with __ and the normal name is an alias. */
1779 #if defined __stub_$2 || defined __stub___$2
1780 choke me
1781 #endif
1782
1783 int
1784 main (void)
1785 {
1786 return $2 ();
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 if ac_fn_c_try_link "$LINENO"
1792 then :
1793 eval "$3=yes"
1794 else case e in #(
1795 e) eval "$3=no" ;;
1796 esac
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1799 conftest$ac_exeext conftest.$ac_ext ;;
1800 esac
1801 fi
1802 eval ac_res=\$$3
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_func
1808
1809 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1810 # ------------------------------------------------------------------
1811 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1812 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1813 ac_fn_check_decl ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 as_decl_name=`echo $2|sed 's/ *(.*//'`
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1818 printf %s "checking whether $as_decl_name is declared... " >&6; }
1819 if eval test \${$3+y}
1820 then :
1821 printf %s "(cached) " >&6
1822 else case e in #(
1823 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1824 eval ac_save_FLAGS=\$$6
1825 as_fn_append $6 " $5"
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 int
1830 main (void)
1831 {
1832 #ifndef $as_decl_name
1833 #ifdef __cplusplus
1834 (void) $as_decl_use;
1835 #else
1836 (void) $as_decl_name;
1837 #endif
1838 #endif
1839
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"
1845 then :
1846 eval "$3=yes"
1847 else case e in #(
1848 e) eval "$3=no" ;;
1849 esac
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1852 eval $6=\$ac_save_FLAGS
1853 ;;
1854 esac
1855 fi
1856 eval ac_res=\$$3
1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 printf "%s\n" "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_check_decl
1862 ac_configure_args_raw=
1863 for ac_arg
1864 do
1865 case $ac_arg in
1866 *\'*)
1867 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 as_fn_append ac_configure_args_raw " '$ac_arg'"
1870 done
1871
1872 case $ac_configure_args_raw in
1873 *$as_nl*)
1874 ac_safe_unquote= ;;
1875 *)
1876 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1877 ac_unsafe_a="$ac_unsafe_z#~"
1878 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1879 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1880 esac
1881
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1885
1886 It was created by libxshmfence $as_me 1.3.3, which was
1887 generated by GNU Autoconf 2.72. Invocation command line was
1888
1889 $ $0$ac_configure_args_raw
1890
1891 _ACEOF
1892 exec 5>>config.log
1893 {
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1898
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915
1916 _ASUNAME
1917
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921 IFS=$as_save_IFS
1922 case $as_dir in #(((
1923 '') as_dir=./ ;;
1924 */) ;;
1925 *) as_dir=$as_dir/ ;;
1926 esac
1927 printf "%s\n" "PATH: $as_dir"
1928 done
1929 IFS=$as_save_IFS
1930
1931 } >&5
1932
1933 cat >&5 <<_ACEOF
1934
1935
1936 ## ----------- ##
1937 ## Core tests. ##
1938 ## ----------- ##
1939
1940 _ACEOF
1941
1942
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_configure_args=
1949 ac_configure_args0=
1950 ac_configure_args1=
1951 ac_must_keep_next=false
1952 for ac_pass in 1 2
1953 do
1954 for ac_arg
1955 do
1956 case $ac_arg in
1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959 | -silent | --silent | --silen | --sile | --sil)
1960 continue ;;
1961 *\'*)
1962 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 esac
1964 case $ac_pass in
1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966 2)
1967 as_fn_append ac_configure_args1 " '$ac_arg'"
1968 if test $ac_must_keep_next = true; then
1969 ac_must_keep_next=false # Got value, back to normal.
1970 else
1971 case $ac_arg in
1972 *=* | --config-cache | -C | -disable-* | --disable-* \
1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975 | -with-* | --with-* | -without-* | --without-* | --x)
1976 case "$ac_configure_args0 " in
1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 esac
1979 ;;
1980 -* ) ac_must_keep_next=true ;;
1981 esac
1982 fi
1983 as_fn_append ac_configure_args " '$ac_arg'"
1984 ;;
1985 esac
1986 done
1987 done
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1990
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log. We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997 # Sanitize IFS.
1998 IFS=" "" $as_nl"
1999 # Save into config.log some information that might help in debugging.
2000 {
2001 echo
2002
2003 printf "%s\n" "## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##"
2006 echo
2007 # The following way of writing the cache mishandles newlines in values,
2008 (
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in #(
2012 *${as_nl}*)
2013 case $ac_var in #(
2014 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016 esac
2017 case $ac_var in #(
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2021 esac ;;
2022 esac
2023 done
2024 (set) 2>&1 |
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
2027 sed -n \
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030 ;; #(
2031 *)
2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 ;;
2034 esac |
2035 sort
2036 )
2037 echo
2038
2039 printf "%s\n" "## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##"
2042 echo
2043 for ac_var in $ac_subst_vars
2044 do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in
2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 esac
2049 printf "%s\n" "$ac_var='\''$ac_val'\''"
2050 done | sort
2051 echo
2052
2053 if test -n "$ac_subst_files"; then
2054 printf "%s\n" "## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##"
2057 echo
2058 for ac_var in $ac_subst_files
2059 do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 printf "%s\n" "$ac_var='\''$ac_val'\''"
2065 done | sort
2066 echo
2067 fi
2068
2069 if test -s confdefs.h; then
2070 printf "%s\n" "## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##"
2073 echo
2074 cat confdefs.h
2075 echo
2076 fi
2077 test "$ac_signal" != 0 &&
2078 printf "%s\n" "$as_me: caught signal $ac_signal"
2079 printf "%s\n" "$as_me: exit $exit_status"
2080 } >&5
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083 exit $exit_status
2084 ' 0
2085 for ac_signal in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 done
2088 ac_signal=0
2089
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2092
2093 printf "%s\n" "/* confdefs.h */" > confdefs.h
2094
2095 # Predefined preprocessor variables.
2096
2097 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2098
2099 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2100
2101 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2102
2103 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 if test -n "$CONFIG_SITE"; then
2113 ac_site_files="$CONFIG_SITE"
2114 elif test "x$prefix" != xNONE; then
2115 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2116 else
2117 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2118 fi
2119
2120 for ac_site_file in $ac_site_files
2121 do
2122 case $ac_site_file in #(
2123 */*) :
2124 ;; #(
2125 *) :
2126 ac_site_file=./$ac_site_file ;;
2127 esac
2128 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2131 sed 's/^/| /' "$ac_site_file" >&5
2132 . "$ac_site_file" \
2133 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2134 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2135 as_fn_error $? "failed to load site script $ac_site_file
2136 See 'config.log' for more details" "$LINENO" 5; }
2137 fi
2138 done
2139
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special files
2142 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2143 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2150 fi
2151 else
2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2155 fi
2156
2157 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2158 # Test code for whether the C compiler supports C89 (global declarations)
2159 ac_c_conftest_c89_globals='
2160 /* Does the compiler advertise C89 conformance?
2161 Do not test the value of __STDC__, because some compilers set it to 0
2162 while being otherwise adequately conformant. */
2163 #if !defined __STDC__
2164 # error "Compiler does not advertise C89 conformance"
2165 #endif
2166
2167 #include <stddef.h>
2168 #include <stdarg.h>
2169 struct stat;
2170 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2171 struct buf { int x; };
2172 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2173 static char *e (char **p, int i)
2174 {
2175 return p[i];
2176 }
2177 static char *f (char * (*g) (char **, int), char **p, ...)
2178 {
2179 char *s;
2180 va_list v;
2181 va_start (v,p);
2182 s = g (p, va_arg (v,int));
2183 va_end (v);
2184 return s;
2185 }
2186
2187 /* C89 style stringification. */
2188 #define noexpand_stringify(a) #a
2189 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2190
2191 /* C89 style token pasting. Exercises some of the corner cases that
2192 e.g. old MSVC gets wrong, but not very hard. */
2193 #define noexpand_concat(a,b) a##b
2194 #define expand_concat(a,b) noexpand_concat(a,b)
2195 extern int vA;
2196 extern int vbee;
2197 #define aye A
2198 #define bee B
2199 int *pvA = &expand_concat(v,aye);
2200 int *pvbee = &noexpand_concat(v,bee);
2201
2202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2203 function prototypes and stuff, but not \xHH hex character constants.
2204 These do not provoke an error unfortunately, instead are silently treated
2205 as an "x". The following induces an error, until -std is added to get
2206 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2207 array size at least. It is necessary to write \x00 == 0 to get something
2208 that is true only with -std. */
2209 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2210
2211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2212 inside strings and character constants. */
2213 #define FOO(x) '\''x'\''
2214 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2215
2216 int test (int i, double x);
2217 struct s1 {int (*f) (int a);};
2218 struct s2 {int (*f) (double a);};
2219 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2220 int, int);'
2221
2222 # Test code for whether the C compiler supports C89 (body of main).
2223 ac_c_conftest_c89_main='
2224 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2225 '
2226
2227 # Test code for whether the C compiler supports C99 (global declarations)
2228 ac_c_conftest_c99_globals='
2229 /* Does the compiler advertise C99 conformance? */
2230 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2231 # error "Compiler does not advertise C99 conformance"
2232 #endif
2233
2234 // See if C++-style comments work.
2235
2236 #include <stdbool.h>
2237 extern int puts (const char *);
2238 extern int printf (const char *, ...);
2239 extern int dprintf (int, const char *, ...);
2240 extern void *malloc (size_t);
2241 extern void free (void *);
2242
2243 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2244 // dprintf is used instead of fprintf to avoid needing to declare
2245 // FILE and stderr.
2246 #define debug(...) dprintf (2, __VA_ARGS__)
2247 #define showlist(...) puts (#__VA_ARGS__)
2248 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2249 static void
2250 test_varargs_macros (void)
2251 {
2252 int x = 1234;
2253 int y = 5678;
2254 debug ("Flag");
2255 debug ("X = %d\n", x);
2256 showlist (The first, second, and third items.);
2257 report (x>y, "x is %d but y is %d", x, y);
2258 }
2259
2260 // Check long long types.
2261 #define BIG64 18446744073709551615ull
2262 #define BIG32 4294967295ul
2263 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2264 #if !BIG_OK
2265 #error "your preprocessor is broken"
2266 #endif
2267 #if BIG_OK
2268 #else
2269 #error "your preprocessor is broken"
2270 #endif
2271 static long long int bignum = -9223372036854775807LL;
2272 static unsigned long long int ubignum = BIG64;
2273
2274 struct incomplete_array
2275 {
2276 int datasize;
2277 double data[];
2278 };
2279
2280 struct named_init {
2281 int number;
2282 const wchar_t *name;
2283 double average;
2284 };
2285
2286 typedef const char *ccp;
2287
2288 static inline int
2289 test_restrict (ccp restrict text)
2290 {
2291 // Iterate through items via the restricted pointer.
2292 // Also check for declarations in for loops.
2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294 continue;
2295 return 0;
2296 }
2297
2298 // Check varargs and va_copy.
2299 static bool
2300 test_varargs (const char *format, ...)
2301 {
2302 va_list args;
2303 va_start (args, format);
2304 va_list args_copy;
2305 va_copy (args_copy, args);
2306
2307 const char *str = "";
2308 int number = 0;
2309 float fnumber = 0;
2310
2311 while (*format)
2312 {
2313 switch (*format++)
2314 {
2315 case '\''s'\'': // string
2316 str = va_arg (args_copy, const char *);
2317 break;
2318 case '\''d'\'': // int
2319 number = va_arg (args_copy, int);
2320 break;
2321 case '\''f'\'': // float
2322 fnumber = va_arg (args_copy, double);
2323 break;
2324 default:
2325 break;
2326 }
2327 }
2328 va_end (args_copy);
2329 va_end (args);
2330
2331 return *str && number && fnumber;
2332 }
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (body of main).
2336 ac_c_conftest_c99_main='
2337 // Check bool.
2338 _Bool success = false;
2339 success |= (argc != 0);
2340
2341 // Check restrict.
2342 if (test_restrict ("String literal") == 0)
2343 success = true;
2344 char *restrict newvar = "Another string";
2345
2346 // Check varargs.
2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348 test_varargs_macros ();
2349
2350 // Check flexible array members.
2351 struct incomplete_array *ia =
2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353 ia->datasize = 10;
2354 for (int i = 0; i < ia->datasize; ++i)
2355 ia->data[i] = i * 1.234;
2356 // Work around memory leak warnings.
2357 free (ia);
2358
2359 // Check named initializers.
2360 struct named_init ni = {
2361 .number = 34,
2362 .name = L"Test wide string",
2363 .average = 543.34343,
2364 };
2365
2366 ni.number = 58;
2367
2368 int dynamic_array[ni.number];
2369 dynamic_array[0] = argv[0][0];
2370 dynamic_array[ni.number - 1] = 543;
2371
2372 // work around unused variable warnings
2373 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2374 || dynamic_array[ni.number - 1] != 543);
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (global declarations)
2378 ac_c_conftest_c11_globals='
2379 /* Does the compiler advertise C11 conformance? */
2380 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2381 # error "Compiler does not advertise C11 conformance"
2382 #endif
2383
2384 // Check _Alignas.
2385 char _Alignas (double) aligned_as_double;
2386 char _Alignas (0) no_special_alignment;
2387 extern char aligned_as_int;
2388 char _Alignas (0) _Alignas (int) aligned_as_int;
2389
2390 // Check _Alignof.
2391 enum
2392 {
2393 int_alignment = _Alignof (int),
2394 int_array_alignment = _Alignof (int[100]),
2395 char_alignment = _Alignof (char)
2396 };
2397 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2398
2399 // Check _Noreturn.
2400 int _Noreturn does_not_return (void) { for (;;) continue; }
2401
2402 // Check _Static_assert.
2403 struct test_static_assert
2404 {
2405 int x;
2406 _Static_assert (sizeof (int) <= sizeof (long int),
2407 "_Static_assert does not work in struct");
2408 long int y;
2409 };
2410
2411 // Check UTF-8 literals.
2412 #define u8 syntax error!
2413 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414
2415 // Check duplicate typedefs.
2416 typedef long *long_ptr;
2417 typedef long int *long_ptr;
2418 typedef long_ptr long_ptr;
2419
2420 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2421 struct anonymous
2422 {
2423 union {
2424 struct { int i; int j; };
2425 struct { int k; long int l; } w;
2426 };
2427 int m;
2428 } v1;
2429 '
2430
2431 # Test code for whether the C compiler supports C11 (body of main).
2432 ac_c_conftest_c11_main='
2433 _Static_assert ((offsetof (struct anonymous, i)
2434 == offsetof (struct anonymous, w.k)),
2435 "Anonymous union alignment botch");
2436 v1.i = 2;
2437 v1.w.k = 5;
2438 ok |= v1.i != 5;
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (complete).
2442 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2443 ${ac_c_conftest_c99_globals}
2444 ${ac_c_conftest_c11_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 ${ac_c_conftest_c99_main}
2452 ${ac_c_conftest_c11_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C99 (complete).
2458 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_c_conftest_c89_main}
2466 ${ac_c_conftest_c99_main}
2467 return ok;
2468 }
2469 "
2470
2471 # Test code for whether the C compiler supports C89 (complete).
2472 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 return ok;
2480 }
2481 "
2482
2483 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2484 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2485 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2486 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2487 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2488 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2489 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2490 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2491 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2492 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2493
2494 # Auxiliary files required by this configure script.
2495 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2496
2497 # Locations in which to look for auxiliary files.
2498 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2499
2500 # Search for a directory containing all of the required auxiliary files,
2501 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502 # If we don't find one directory that contains all the files we need,
2503 # we report the set of missing files from the *first* directory in
2504 # $ac_aux_dir_candidates and give up.
2505 ac_missing_aux_files=""
2506 ac_first_candidate=:
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 as_found=false
2510 for as_dir in $ac_aux_dir_candidates
2511 do
2512 IFS=$as_save_IFS
2513 case $as_dir in #(((
2514 '') as_dir=./ ;;
2515 */) ;;
2516 *) as_dir=$as_dir/ ;;
2517 esac
2518 as_found=:
2519
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2521 ac_aux_dir_found=yes
2522 ac_install_sh=
2523 for ac_aux in $ac_aux_files
2524 do
2525 # As a special case, if "install-sh" is required, that requirement
2526 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527 # and $ac_install_sh is set appropriately for whichever one is found.
2528 if test x"$ac_aux" = x"install-sh"
2529 then
2530 if test -f "${as_dir}install-sh"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2532 ac_install_sh="${as_dir}install-sh -c"
2533 elif test -f "${as_dir}install.sh"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2535 ac_install_sh="${as_dir}install.sh -c"
2536 elif test -f "${as_dir}shtool"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2538 ac_install_sh="${as_dir}shtool install -c"
2539 else
2540 ac_aux_dir_found=no
2541 if $ac_first_candidate; then
2542 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543 else
2544 break
2545 fi
2546 fi
2547 else
2548 if test -f "${as_dir}${ac_aux}"; then
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2550 else
2551 ac_aux_dir_found=no
2552 if $ac_first_candidate; then
2553 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554 else
2555 break
2556 fi
2557 fi
2558 fi
2559 done
2560 if test "$ac_aux_dir_found" = yes; then
2561 ac_aux_dir="$as_dir"
2562 break
2563 fi
2564 ac_first_candidate=false
2565
2566 as_found=false
2567 done
2568 IFS=$as_save_IFS
2569 if $as_found
2570 then :
2571
2572 else case e in #(
2573 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2574 esac
2575 fi
2576
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 if test -f "${ac_aux_dir}config.guess"; then
2583 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2584 fi
2585 if test -f "${ac_aux_dir}config.sub"; then
2586 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2587 fi
2588 if test -f "$ac_aux_dir/configure"; then
2589 ac_configure="$SHELL ${ac_aux_dir}configure"
2590 fi
2591
2592 # Check that the precious variables saved in the cache have kept the same
2593 # value.
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2601 set,)
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2603 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,set)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2607 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2617 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2621 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2625 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2627 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
2633 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639 esac
2640 fi
2641 done
2642 if $ac_cache_corrupted; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2644 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2648 and start over" "$LINENO" 5
2649 fi
2650 ## -------------------- ##
2651 ## Main body of script. ##
2652 ## -------------------- ##
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662 ac_config_headers="$ac_config_headers config.h"
2663
2664
2665
2666 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2667 # Must be called before any macros that run the compiler (like LT_INIT
2668 # or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680 # Expand $ac_aux_dir to an absolute path.
2681 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2682
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 printf %s "checking for $ac_word... " >&6; }
2693 if test ${ac_cv_prog_CC+y}
2694 then :
2695 printf %s "(cached) " >&6
2696 else case e in #(
2697 e) if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 case $as_dir in #(((
2705 '') as_dir=./ ;;
2706 */) ;;
2707 *) as_dir=$as_dir/ ;;
2708 esac
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi ;;
2720 esac
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 printf "%s\n" "$CC" >&6; }
2726 else
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 printf "%s\n" "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_CC"; then
2734 ac_ct_CC=$CC
2735 # Extract the first word of "gcc", so it can be a program name with args.
2736 set dummy gcc; ac_word=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s "checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_ac_ct_CC+y}
2740 then :
2741 printf %s "(cached) " >&6
2742 else case e in #(
2743 e) if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi ;;
2766 esac
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 printf "%s\n" "$ac_ct_CC" >&6; }
2772 else
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 printf "%s\n" "no" >&6; }
2775 fi
2776
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786 CC=$ac_ct_CC
2787 fi
2788 else
2789 CC="$ac_cv_prog_CC"
2790 fi
2791
2792 if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}cc; ac_word=$2
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 printf %s "checking for $ac_word... " >&6; }
2798 if test ${ac_cv_prog_CC+y}
2799 then :
2800 printf %s "(cached) " >&6
2801 else case e in #(
2802 e) if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 case $as_dir in #(((
2810 '') as_dir=./ ;;
2811 */) ;;
2812 *) as_dir=$as_dir/ ;;
2813 esac
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi ;;
2825 esac
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 printf "%s\n" "$CC" >&6; }
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 fi
2835
2836
2837 fi
2838 fi
2839 if test -z "$CC"; then
2840 # Extract the first word of "cc", so it can be a program name with args.
2841 set dummy cc; ac_word=$2
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 printf %s "checking for $ac_word... " >&6; }
2844 if test ${ac_cv_prog_CC+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else case e in #(
2848 e) if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 ac_prog_rejected=no
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 case $as_dir in #(((
2857 '') as_dir=./ ;;
2858 */) ;;
2859 *) as_dir=$as_dir/ ;;
2860 esac
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2864 ac_prog_rejected=yes
2865 continue
2866 fi
2867 ac_cv_prog_CC="cc"
2868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 if test $ac_prog_rejected = yes; then
2876 # We found a bogon in the path, so make sure we never use it.
2877 set dummy $ac_cv_prog_CC
2878 shift
2879 if test $# != 0; then
2880 # We chose a different compiler from the bogus one.
2881 # However, it has the same basename, so the bogon will be chosen
2882 # first if we set CC to just the basename; use the full file name.
2883 shift
2884 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2885 fi
2886 fi
2887 fi ;;
2888 esac
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 printf "%s\n" "$CC" >&6; }
2894 else
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 printf "%s\n" "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2904 do
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 printf %s "checking for $ac_word... " >&6; }
2909 if test ${ac_cv_prog_CC+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else case e in #(
2913 e) if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 case $as_dir in #(((
2921 '') as_dir=./ ;;
2922 */) ;;
2923 *) as_dir=$as_dir/ ;;
2924 esac
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi ;;
2936 esac
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 printf "%s\n" "$CC" >&6; }
2942 else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 printf "%s\n" "no" >&6; }
2945 fi
2946
2947
2948 test -n "$CC" && break
2949 done
2950 fi
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 printf %s "checking for $ac_word... " >&6; }
2959 if test ${ac_cv_prog_ac_ct_CC+y}
2960 then :
2961 printf %s "(cached) " >&6
2962 else case e in #(
2963 e) if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 case $as_dir in #(((
2971 '') as_dir=./ ;;
2972 */) ;;
2973 *) as_dir=$as_dir/ ;;
2974 esac
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="$ac_prog"
2978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi ;;
2986 esac
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 printf "%s\n" "$ac_ct_CC" >&6; }
2992 else
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2995 fi
2996
2997
2998 test -n "$ac_ct_CC" && break
2999 done
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3011 fi
3012 fi
3013
3014 fi
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}clang; ac_word=$2
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 printf %s "checking for $ac_word... " >&6; }
3021 if test ${ac_cv_prog_CC+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 case $as_dir in #(((
3033 '') as_dir=./ ;;
3034 */) ;;
3035 *) as_dir=$as_dir/ ;;
3036 esac
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}clang"
3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi ;;
3048 esac
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 printf "%s\n" "$CC" >&6; }
3054 else
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$ac_cv_prog_CC"; then
3062 ac_ct_CC=$CC
3063 # Extract the first word of "clang", so it can be a program name with args.
3064 set dummy clang; ac_word=$2
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 printf %s "checking for $ac_word... " >&6; }
3067 if test ${ac_cv_prog_ac_ct_CC+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else case e in #(
3071 e) if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_CC="clang"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi ;;
3094 esac
3095 fi
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 printf "%s\n" "$ac_ct_CC" >&6; }
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 printf "%s\n" "no" >&6; }
3103 fi
3104
3105 if test "x$ac_ct_CC" = x; then
3106 CC=""
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3115 fi
3116 else
3117 CC="$ac_cv_prog_CC"
3118 fi
3119
3120 fi
3121
3122
3123 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3124 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3125 as_fn_error $? "no acceptable C compiler found in \$PATH
3126 See 'config.log' for more details" "$LINENO" 5; }
3127
3128 # Provide some information about the compiler.
3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130 set X $ac_compile
3131 ac_compiler=$2
3132 for ac_option in --version -v -V -qversion -version; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 printf "%s\n" "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 ac_status=$?
3142 if test -s conftest.err; then
3143 sed '10a\
3144 ... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 fi
3148 rm -f conftest.er1 conftest.err
3149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 done
3152
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155
3156 int
3157 main (void)
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170 printf %s "checking whether the C compiler works... " >&6; }
3171 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173 # The possible output files:
3174 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
3176 ac_rmfiles=
3177 for ac_file in $ac_files
3178 do
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183 done
3184 rm -f $ac_rmfiles
3185
3186 if { { ac_try="$ac_link_default"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 printf "%s\n" "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 then :
3198 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3199 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3200 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3201 # so that the user can short-circuit this test for compilers unknown to
3202 # Autoconf.
3203 for ac_file in $ac_files ''
3204 do
3205 test -f "$ac_file" || continue
3206 case $ac_file in
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208 ;;
3209 [ab].out )
3210 # We found the default executable, but exeext='' is most
3211 # certainly right.
3212 break;;
3213 *.* )
3214 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3215 then :; else
3216 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 fi
3218 # We set ac_cv_exeext here because the later test for it is not
3219 # safe: cross compilers may not add the suffix if given an '-o'
3220 # argument, so we may need to know it at that point already.
3221 # Even if this section looks crufty: it has the advantage of
3222 # actually working.
3223 break;;
3224 * )
3225 break;;
3226 esac
3227 done
3228 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229
3230 else case e in #(
3231 e) ac_file='' ;;
3232 esac
3233 fi
3234 if test -z "$ac_file"
3235 then :
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 printf "%s\n" "no" >&6; }
3238 printf "%s\n" "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3242 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See 'config.log' for more details" "$LINENO" 5; }
3245 else case e in #(
3246 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 printf "%s\n" "yes" >&6; } ;;
3248 esac
3249 fi
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251 printf %s "checking for C compiler default output file name... " >&6; }
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253 printf "%s\n" "$ac_file" >&6; }
3254 ac_exeext=$ac_cv_exeext
3255
3256 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3257 ac_clean_files=$ac_clean_files_save
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259 printf %s "checking for suffix of executables... " >&6; }
3260 if { { ac_try="$ac_link"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 printf "%s\n" "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 then :
3272 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3273 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3274 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3275 # 'rm'.
3276 for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 break;;
3282 * ) break;;
3283 esac
3284 done
3285 else case e in #(
3286 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3287 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289 See 'config.log' for more details" "$LINENO" 5; } ;;
3290 esac
3291 fi
3292 rm -f conftest conftest$ac_cv_exeext
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 printf "%s\n" "$ac_cv_exeext" >&6; }
3295
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3298 ac_exeext=$EXEEXT
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301 #include <stdio.h>
3302 int
3303 main (void)
3304 {
3305 FILE *f = fopen ("conftest.out", "w");
3306 if (!f)
3307 return 1;
3308 return ferror (f) || fclose (f) != 0;
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 printf %s "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 printf "%s\n" "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 printf "%s\n" "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3348 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3349 as_fn_error 77 "cannot run C compiled programs.
3350 If you meant to cross compile, use '--host'.
3351 See 'config.log' for more details" "$LINENO" 5; }
3352 fi
3353 fi
3354 fi
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 printf "%s\n" "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3359 conftest.o conftest.obj conftest.out
3360 ac_clean_files=$ac_clean_files_save
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3362 printf %s "checking for suffix of object files... " >&6; }
3363 if test ${ac_cv_objext+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else case e in #(
3367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main (void)
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { { ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 printf "%s\n" "$ac_try_echo"; } >&5
3386 (eval "$ac_compile") 2>&5
3387 ac_status=$?
3388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 break;;
3397 esac
3398 done
3399 else case e in #(
3400 e) printf "%s\n" "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3404 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot compute suffix of object files: cannot compile
3406 See 'config.log' for more details" "$LINENO" 5; } ;;
3407 esac
3408 fi
3409 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3410 esac
3411 fi
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413 printf "%s\n" "$ac_cv_objext" >&6; }
3414 OBJEXT=$ac_cv_objext
3415 ac_objext=$OBJEXT
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3417 printf %s "checking whether the compiler supports GNU C... " >&6; }
3418 if test ${ac_cv_c_compiler_gnu+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else case e in #(
3422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main (void)
3427 {
3428 #ifndef __GNUC__
3429 choke me
3430 #endif
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"
3437 then :
3438 ac_compiler_gnu=yes
3439 else case e in #(
3440 e) ac_compiler_gnu=no ;;
3441 esac
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445 ;;
3446 esac
3447 fi
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452 if test $ac_compiler_gnu = yes; then
3453 GCC=yes
3454 else
3455 GCC=
3456 fi
3457 ac_test_CFLAGS=${CFLAGS+y}
3458 ac_save_CFLAGS=$CFLAGS
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 printf %s "checking whether $CC accepts -g... " >&6; }
3461 if test ${ac_cv_prog_cc_g+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3467 ac_cv_prog_cc_g=no
3468 CFLAGS="-g"
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main (void)
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"
3481 then :
3482 ac_cv_prog_cc_g=yes
3483 else case e in #(
3484 e) CFLAGS=""
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main (void)
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"
3497 then :
3498
3499 else case e in #(
3500 e) ac_c_werror_flag=$ac_save_c_werror_flag
3501 CFLAGS="-g"
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main (void)
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"
3514 then :
3515 ac_cv_prog_cc_g=yes
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3518 esac
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3521 esac
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3524 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3525 esac
3526 fi
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3529 if test $ac_test_CFLAGS; then
3530 CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532 if test "$GCC" = yes; then
3533 CFLAGS="-g -O2"
3534 else
3535 CFLAGS="-g"
3536 fi
3537 else
3538 if test "$GCC" = yes; then
3539 CFLAGS="-O2"
3540 else
3541 CFLAGS=
3542 fi
3543 fi
3544 ac_prog_cc_stdc=no
3545 if test x$ac_prog_cc_stdc = xno
3546 then :
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3548 printf %s "checking for $CC option to enable C11 features... " >&6; }
3549 if test ${ac_cv_prog_cc_c11+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else case e in #(
3553 e) ac_cv_prog_cc_c11=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 $ac_c_conftest_c11_program
3558 _ACEOF
3559 for ac_arg in '' -std=gnu11
3560 do
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"
3563 then :
3564 ac_cv_prog_cc_c11=$ac_arg
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.beam
3567 test "x$ac_cv_prog_cc_c11" != "xno" && break
3568 done
3569 rm -f conftest.$ac_ext
3570 CC=$ac_save_CC ;;
3571 esac
3572 fi
3573
3574 if test "x$ac_cv_prog_cc_c11" = xno
3575 then :
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 printf "%s\n" "unsupported" >&6; }
3578 else case e in #(
3579 e) if test "x$ac_cv_prog_cc_c11" = x
3580 then :
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 printf "%s\n" "none needed" >&6; }
3583 else case e in #(
3584 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3585 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3586 CC="$CC $ac_cv_prog_cc_c11" ;;
3587 esac
3588 fi
3589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3590 ac_prog_cc_stdc=c11 ;;
3591 esac
3592 fi
3593 fi
3594 if test x$ac_prog_cc_stdc = xno
3595 then :
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3597 printf %s "checking for $CC option to enable C99 features... " >&6; }
3598 if test ${ac_cv_prog_cc_c99+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else case e in #(
3602 e) ac_cv_prog_cc_c99=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 $ac_c_conftest_c99_program
3607 _ACEOF
3608 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3609 do
3610 CC="$ac_save_CC $ac_arg"
3611 if ac_fn_c_try_compile "$LINENO"
3612 then :
3613 ac_cv_prog_cc_c99=$ac_arg
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.beam
3616 test "x$ac_cv_prog_cc_c99" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC ;;
3620 esac
3621 fi
3622
3623 if test "x$ac_cv_prog_cc_c99" = xno
3624 then :
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 printf "%s\n" "unsupported" >&6; }
3627 else case e in #(
3628 e) if test "x$ac_cv_prog_cc_c99" = x
3629 then :
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3631 printf "%s\n" "none needed" >&6; }
3632 else case e in #(
3633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3634 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3635 CC="$CC $ac_cv_prog_cc_c99" ;;
3636 esac
3637 fi
3638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3639 ac_prog_cc_stdc=c99 ;;
3640 esac
3641 fi
3642 fi
3643 if test x$ac_prog_cc_stdc = xno
3644 then :
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3646 printf %s "checking for $CC option to enable C89 features... " >&6; }
3647 if test ${ac_cv_prog_cc_c89+y}
3648 then :
3649 printf %s "(cached) " >&6
3650 else case e in #(
3651 e) ac_cv_prog_cc_c89=no
3652 ac_save_CC=$CC
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 $ac_c_conftest_c89_program
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659 CC="$ac_save_CC $ac_arg"
3660 if ac_fn_c_try_compile "$LINENO"
3661 then :
3662 ac_cv_prog_cc_c89=$ac_arg
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.beam
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC ;;
3669 esac
3670 fi
3671
3672 if test "x$ac_cv_prog_cc_c89" = xno
3673 then :
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 printf "%s\n" "unsupported" >&6; }
3676 else case e in #(
3677 e) if test "x$ac_cv_prog_cc_c89" = x
3678 then :
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680 printf "%s\n" "none needed" >&6; }
3681 else case e in #(
3682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3683 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3684 CC="$CC $ac_cv_prog_cc_c89" ;;
3685 esac
3686 fi
3687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3688 ac_prog_cc_stdc=c89 ;;
3689 esac
3690 fi
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3706 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3707 if test ${am_cv_prog_cc_c_o+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else case e in #(
3711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main (void)
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 # Make sure it works both with $CC and with simple cc.
3723 # Following AC_PROG_CC_C_O, we do the test twice because some
3724 # compilers refuse to overwrite an existing .o file with -o,
3725 # though they will create one.
3726 am_cv_prog_cc_c_o=yes
3727 for am_i in 1 2; do
3728 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } \
3733 && test -f conftest2.$ac_objext; then
3734 : OK
3735 else
3736 am_cv_prog_cc_c_o=no
3737 break
3738 fi
3739 done
3740 rm -f core conftest*
3741 unset am_i ;;
3742 esac
3743 fi
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3745 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3746 if test "$am_cv_prog_cc_c_o" != yes; then
3747 # Losing compiler, so override with the script.
3748 # FIXME: It is wrong to rewrite CC.
3749 # But if we don't then we get into trouble of one sort or another.
3750 # A longer-term fix would be to have automake use am__CC in this case,
3751 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3752 CC="$am_aux_dir/compile $CC"
3753 fi
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760
3761
3762 ac_header= ac_cache=
3763 for ac_item in $ac_header_c_list
3764 do
3765 if test $ac_cache; then
3766 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3767 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3768 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3769 fi
3770 ac_header= ac_cache=
3771 elif test $ac_header; then
3772 ac_cache=$ac_item
3773 else
3774 ac_header=$ac_item
3775 fi
3776 done
3777
3778
3779
3780
3781
3782
3783
3784
3785 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3786 then :
3787
3788 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3789
3790 fi
3791
3792
3793
3794
3795
3796
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3798 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3799 if test ${ac_cv_safe_to_define___extensions__+y}
3800 then :
3801 printf %s "(cached) " >&6
3802 else case e in #(
3803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 # define __EXTENSIONS__ 1
3807 $ac_includes_default
3808 int
3809 main (void)
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"
3817 then :
3818 ac_cv_safe_to_define___extensions__=yes
3819 else case e in #(
3820 e) ac_cv_safe_to_define___extensions__=no ;;
3821 esac
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3824 esac
3825 fi
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3827 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3828
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3830 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3831 if test ${ac_cv_should_define__xopen_source+y}
3832 then :
3833 printf %s "(cached) " >&6
3834 else case e in #(
3835 e) ac_cv_should_define__xopen_source=no
3836 if test $ac_cv_header_wchar_h = yes
3837 then :
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840
3841 #include <wchar.h>
3842 mbstate_t x;
3843 int
3844 main (void)
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"
3852 then :
3853
3854 else case e in #(
3855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857
3858 #define _XOPEN_SOURCE 500
3859 #include <wchar.h>
3860 mbstate_t x;
3861 int
3862 main (void)
3863 {
3864
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"
3870 then :
3871 ac_cv_should_define__xopen_source=yes
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3874 esac
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3877 fi ;;
3878 esac
3879 fi
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3881 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3882
3883 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3884
3885 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3886
3887 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3888
3889 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3890
3891 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3892
3893 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3894
3895 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3896
3897 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3898
3899 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3900
3901 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3902
3903 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3904
3905 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3906
3907 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3908
3909 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3910
3911 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3912
3913 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3914
3915 if test $ac_cv_header_minix_config_h = yes
3916 then :
3917 MINIX=yes
3918 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3919
3920 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3921
3922 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3923
3924 else case e in #(
3925 e) MINIX= ;;
3926 esac
3927 fi
3928 if test $ac_cv_safe_to_define___extensions__ = yes
3929 then :
3930 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3931
3932 fi
3933 if test $ac_cv_should_define__xopen_source = yes
3934 then :
3935 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3936
3937 fi
3938
3939
3940 # Initialize Automake
3941 am__api_version='1.17'
3942
3943
3944 # Find a good install program. We prefer a C program (faster),
3945 # so one script is as good as another. But avoid the broken or
3946 # incompatible versions:
3947 # SysV /etc/install, /usr/sbin/install
3948 # SunOS /usr/etc/install
3949 # IRIX /sbin/install
3950 # AIX /bin/install
3951 # AmigaOS /C/install, which installs bootblocks on floppy discs
3952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955 # OS/2's system install, which has a completely different semantic
3956 # ./install, which can be erroneously created by make from ./install.sh.
3957 # Reject install programs that cannot install multiple files.
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959 printf %s "checking for a BSD-compatible install... " >&6; }
3960 if test -z "$INSTALL"; then
3961 if test ${ac_cv_path_install+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else case e in #(
3965 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 case $as_dir in #(((
3970 '') as_dir=./ ;;
3971 */) ;;
3972 *) as_dir=$as_dir/ ;;
3973 esac
3974 # Account for fact that we put trailing slashes in our PATH walk.
3975 case $as_dir in #((
3976 ./ | /[cC]/* | \
3977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3978 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3979 /usr/ucb/* ) ;;
3980 *)
3981 # OSF1 and SCO ODT 3.0 have their own names for install.
3982 # Don't use installbsd from OSF since it installs stuff as root
3983 # by default.
3984 for ac_prog in ginstall scoinst install; do
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3987 if test $ac_prog = install &&
3988 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3989 # AIX install. It has an incompatible calling convention.
3990 :
3991 elif test $ac_prog = install &&
3992 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993 # program-specific install script used by HP pwplus--don't use.
3994 :
3995 else
3996 rm -rf conftest.one conftest.two conftest.dir
3997 echo one > conftest.one
3998 echo two > conftest.two
3999 mkdir conftest.dir
4000 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4001 test -s conftest.one && test -s conftest.two &&
4002 test -s conftest.dir/conftest.one &&
4003 test -s conftest.dir/conftest.two
4004 then
4005 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4006 break 3
4007 fi
4008 fi
4009 fi
4010 done
4011 done
4012 ;;
4013 esac
4014
4015 done
4016 IFS=$as_save_IFS
4017
4018 rm -rf conftest.one conftest.two conftest.dir
4019 ;;
4020 esac
4021 fi
4022 if test ${ac_cv_path_install+y}; then
4023 INSTALL=$ac_cv_path_install
4024 else
4025 # As a last resort, use the slow shell script. Don't cache a
4026 # value for INSTALL within a source directory, because that will
4027 # break other packages using the cache if that directory is
4028 # removed, or if the value is a relative name.
4029 INSTALL=$ac_install_sh
4030 fi
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4033 printf "%s\n" "$INSTALL" >&6; }
4034
4035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4036 # It thinks the first close brace ends the variable substitution.
4037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4038
4039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4040
4041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4042
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4044 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4045 if test ${am_cv_sleep_fractional_seconds+y}
4046 then :
4047 printf %s "(cached) " >&6
4048 else case e in #(
4049 e) if sleep 0.001 2>/dev/null
4050 then :
4051 am_cv_sleep_fractional_seconds=yes
4052 else case e in #(
4053 e) am_cv_sleep_fractional_seconds=no ;;
4054 esac
4055 fi
4056 ;;
4057 esac
4058 fi
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4060 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4061
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4063 printf %s "checking filesystem timestamp resolution... " >&6; }
4064 if test ${am_cv_filesystem_timestamp_resolution+y}
4065 then :
4066 printf %s "(cached) " >&6
4067 else case e in #(
4068 e) # Default to the worst case.
4069 am_cv_filesystem_timestamp_resolution=2
4070
4071 # Only try to go finer than 1 sec if sleep can do it.
4072 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4073 # - 1 sec is not much of a win compared to 2 sec, and
4074 # - it takes 2 seconds to perform the test whether 1 sec works.
4075 #
4076 # Instead, just use the default 2s on platforms that have 1s resolution,
4077 # accept the extra 1s delay when using $sleep in the Automake tests, in
4078 # exchange for not incurring the 2s delay for running the test for all
4079 # packages.
4080 #
4081 am_try_resolutions=
4082 if test "$am_cv_sleep_fractional_seconds" = yes; then
4083 # Even a millisecond often causes a bunch of false positives,
4084 # so just try a hundredth of a second. The time saved between .001 and
4085 # .01 is not terribly consequential.
4086 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4087 fi
4088
4089 # In order to catch current-generation FAT out, we must *modify* files
4090 # that already exist; the *creation* timestamp is finer. Use names
4091 # that make ls -t sort them differently when they have equal
4092 # timestamps than when they have distinct timestamps, keeping
4093 # in mind that ls -t prints the *newest* file first.
4094 rm -f conftest.ts?
4095 : > conftest.ts1
4096 : > conftest.ts2
4097 : > conftest.ts3
4098
4099 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4100 # clobber the current shell's arguments. (Outer-level square brackets
4101 # are removed by m4; they're present so that m4 does not expand
4102 # <dollar><star>; be careful, easy to get confused.)
4103 if (
4104 set X `ls -t conftest.ts[12]` &&
4105 {
4106 test "$*" != "X conftest.ts1 conftest.ts2" ||
4107 test "$*" != "X conftest.ts2 conftest.ts1";
4108 }
4109 ); then :; else
4110 # If neither matched, then we have a broken ls. This can happen
4111 # if, for instance, CONFIG_SHELL is bash and it inherits a
4112 # broken ls alias from the environment. This has actually
4113 # happened. Such a system could not be considered "sane".
4114 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4116 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4117 as_fn_error $? "ls -t produces unexpected output.
4118 Make sure there is not a broken ls alias in your environment.
4119 See 'config.log' for more details" "$LINENO" 5; }
4120 fi
4121
4122 for am_try_res in $am_try_resolutions; do
4123 # Any one fine-grained sleep might happen to cross the boundary
4124 # between two values of a coarser actual resolution, but if we do
4125 # two fine-grained sleeps in a row, at least one of them will fall
4126 # entirely within a coarse interval.
4127 echo alpha > conftest.ts1
4128 sleep $am_try_res
4129 echo beta > conftest.ts2
4130 sleep $am_try_res
4131 echo gamma > conftest.ts3
4132
4133 # We assume that 'ls -t' will make use of high-resolution
4134 # timestamps if the operating system supports them at all.
4135 if (set X `ls -t conftest.ts?` &&
4136 test "$2" = conftest.ts3 &&
4137 test "$3" = conftest.ts2 &&
4138 test "$4" = conftest.ts1); then
4139 #
4140 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4141 # because we don't need to test make.
4142 make_ok=true
4143 if test $am_try_res != 1; then
4144 # But if we've succeeded so far with a subsecond resolution, we
4145 # have one more thing to check: make. It can happen that
4146 # everything else supports the subsecond mtimes, but make doesn't;
4147 # notably on macOS, which ships make 3.81 from 2006 (the last one
4148 # released under GPLv2). https://bugs.gnu.org/68808
4149 #
4150 # We test $MAKE if it is defined in the environment, else "make".
4151 # It might get overridden later, but our hope is that in practice
4152 # it does not matter: it is the system "make" which is (by far)
4153 # the most likely to be broken, whereas if the user overrides it,
4154 # probably they did so with a better, or at least not worse, make.
4155 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4156 #
4157 # Create a Makefile (real tab character here):
4158 rm -f conftest.mk
4159 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4160 echo ' touch conftest.ts2' >>conftest.mk
4161 #
4162 # Now, running
4163 # touch conftest.ts1; touch conftest.ts2; make
4164 # should touch ts1 because ts2 is newer. This could happen by luck,
4165 # but most often, it will fail if make's support is insufficient. So
4166 # test for several consecutive successes.
4167 #
4168 # (We reuse conftest.ts[12] because we still want to modify existing
4169 # files, not create new ones, per above.)
4170 n=0
4171 make=${MAKE-make}
4172 until test $n -eq 3; do
4173 echo one > conftest.ts1
4174 sleep $am_try_res
4175 echo two > conftest.ts2 # ts2 should now be newer than ts1
4176 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4177 make_ok=false
4178 break # out of $n loop
4179 fi
4180 n=`expr $n + 1`
4181 done
4182 fi
4183 #
4184 if $make_ok; then
4185 # Everything we know to check worked out, so call this resolution good.
4186 am_cv_filesystem_timestamp_resolution=$am_try_res
4187 break # out of $am_try_res loop
4188 fi
4189 # Otherwise, we'll go on to check the next resolution.
4190 fi
4191 done
4192 rm -f conftest.ts?
4193 # (end _am_filesystem_timestamp_resolution)
4194 ;;
4195 esac
4196 fi
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4198 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4199
4200 # This check should not be cached, as it may vary across builds of
4201 # different projects.
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4203 printf %s "checking whether build environment is sane... " >&6; }
4204 # Reject unsafe characters in $srcdir or the absolute working directory
4205 # name. Accept space and tab only in the latter.
4206 am_lf='
4207 '
4208 case `pwd` in
4209 *[\\\"\#\$\&\'\`$am_lf]*)
4210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4211 esac
4212 case $srcdir in
4213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4214 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4215 esac
4216
4217 # Do 'set' in a subshell so we don't clobber the current shell's
4218 # arguments. Must try -L first in case configure is actually a
4219 # symlink; some systems play weird games with the mod time of symlinks
4220 # (eg FreeBSD returns the mod time of the symlink's containing
4221 # directory).
4222 am_build_env_is_sane=no
4223 am_has_slept=no
4224 rm -f conftest.file
4225 for am_try in 1 2; do
4226 echo "timestamp, slept: $am_has_slept" > conftest.file
4227 if (
4228 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4229 if test "$*" = "X"; then
4230 # -L didn't work.
4231 set X `ls -t "$srcdir/configure" conftest.file`
4232 fi
4233 test "$2" = conftest.file
4234 ); then
4235 am_build_env_is_sane=yes
4236 break
4237 fi
4238 # Just in case.
4239 sleep "$am_cv_filesystem_timestamp_resolution"
4240 am_has_slept=yes
4241 done
4242
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4244 printf "%s\n" "$am_build_env_is_sane" >&6; }
4245 if test "$am_build_env_is_sane" = no; then
4246 as_fn_error $? "newly created file is older than distributed files!
4247 Check your system clock" "$LINENO" 5
4248 fi
4249
4250 # If we didn't sleep, we still need to ensure time stamps of config.status and
4251 # generated files are strictly newer.
4252 am_sleep_pid=
4253 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4254 then :
4255
4256 else case e in #(
4257 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4258 am_sleep_pid=$!
4259 ;;
4260 esac
4261 fi
4262
4263 rm -f conftest.file
4264
4265 test "$program_prefix" != NONE &&
4266 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4267 # Use a double $ so make ignores it.
4268 test "$program_suffix" != NONE &&
4269 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4270 # Double any \ or $.
4271 # By default was 's,x,x', remove it if useless.
4272 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4273 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4274
4275
4276 if test x"${MISSING+set}" != xset; then
4277 MISSING="\${SHELL} '$am_aux_dir/missing'"
4278 fi
4279 # Use eval to expand $SHELL
4280 if eval "$MISSING --is-lightweight"; then
4281 am_missing_run="$MISSING "
4282 else
4283 am_missing_run=
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4285 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4286 fi
4287
4288 if test x"${install_sh+set}" != xset; then
4289 case $am_aux_dir in
4290 *\ * | *\ *)
4291 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4292 *)
4293 install_sh="\${SHELL} $am_aux_dir/install-sh"
4294 esac
4295 fi
4296
4297 # Installed binaries are usually stripped using 'strip' when the user
4298 # run "make install-strip". However 'strip' might not be the right
4299 # tool to use in cross-compilation environments, therefore Automake
4300 # will honor the 'STRIP' environment variable to overrule this program.
4301 if test "$cross_compiling" != no; then
4302 if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}strip; ac_word=$2
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 printf %s "checking for $ac_word... " >&6; }
4307 if test ${ac_cv_prog_STRIP+y}
4308 then :
4309 printf %s "(cached) " >&6
4310 else case e in #(
4311 e) if test -n "$STRIP"; then
4312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 case $as_dir in #(((
4319 '') as_dir=./ ;;
4320 */) ;;
4321 *) as_dir=$as_dir/ ;;
4322 esac
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 fi ;;
4334 esac
4335 fi
4336 STRIP=$ac_cv_prog_STRIP
4337 if test -n "$STRIP"; then
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4339 printf "%s\n" "$STRIP" >&6; }
4340 else
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4343 fi
4344
4345
4346 fi
4347 if test -z "$ac_cv_prog_STRIP"; then
4348 ac_ct_STRIP=$STRIP
4349 # Extract the first word of "strip", so it can be a program name with args.
4350 set dummy strip; ac_word=$2
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 printf %s "checking for $ac_word... " >&6; }
4353 if test ${ac_cv_prog_ac_ct_STRIP+y}
4354 then :
4355 printf %s "(cached) " >&6
4356 else case e in #(
4357 e) if test -n "$ac_ct_STRIP"; then
4358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 case $as_dir in #(((
4365 '') as_dir=./ ;;
4366 */) ;;
4367 *) as_dir=$as_dir/ ;;
4368 esac
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_STRIP="strip"
4372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi ;;
4380 esac
4381 fi
4382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4383 if test -n "$ac_ct_STRIP"; then
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4385 printf "%s\n" "$ac_ct_STRIP" >&6; }
4386 else
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 printf "%s\n" "no" >&6; }
4389 fi
4390
4391 if test "x$ac_ct_STRIP" = x; then
4392 STRIP=":"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 STRIP=$ac_ct_STRIP
4401 fi
4402 else
4403 STRIP="$ac_cv_prog_STRIP"
4404 fi
4405
4406 fi
4407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4408
4409
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4411 printf %s "checking for a race-free mkdir -p... " >&6; }
4412 if test -z "$MKDIR_P"; then
4413 if test ${ac_cv_path_mkdir+y}
4414 then :
4415 printf %s "(cached) " >&6
4416 else case e in #(
4417 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4419 do
4420 IFS=$as_save_IFS
4421 case $as_dir in #(((
4422 '') as_dir=./ ;;
4423 */) ;;
4424 *) as_dir=$as_dir/ ;;
4425 esac
4426 for ac_prog in mkdir gmkdir; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4429 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4430 'mkdir ('*'coreutils) '* | \
4431 *'BusyBox '* | \
4432 'mkdir (fileutils) '4.1*)
4433 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4434 break 3;;
4435 esac
4436 done
4437 done
4438 done
4439 IFS=$as_save_IFS
4440 ;;
4441 esac
4442 fi
4443
4444 test -d ./--version && rmdir ./--version
4445 if test ${ac_cv_path_mkdir+y}; then
4446 MKDIR_P="$ac_cv_path_mkdir -p"
4447 else
4448 # As a last resort, use plain mkdir -p,
4449 # in the hope it doesn't have the bugs of ancient mkdir.
4450 MKDIR_P='mkdir -p'
4451 fi
4452 fi
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4454 printf "%s\n" "$MKDIR_P" >&6; }
4455
4456 for ac_prog in gawk mawk nawk awk
4457 do
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 printf %s "checking for $ac_word... " >&6; }
4462 if test ${ac_cv_prog_AWK+y}
4463 then :
4464 printf %s "(cached) " >&6
4465 else case e in #(
4466 e) if test -n "$AWK"; then
4467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472 IFS=$as_save_IFS
4473 case $as_dir in #(((
4474 '') as_dir=./ ;;
4475 */) ;;
4476 *) as_dir=$as_dir/ ;;
4477 esac
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_AWK="$ac_prog"
4481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi ;;
4489 esac
4490 fi
4491 AWK=$ac_cv_prog_AWK
4492 if test -n "$AWK"; then
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4494 printf "%s\n" "$AWK" >&6; }
4495 else
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 printf "%s\n" "no" >&6; }
4498 fi
4499
4500
4501 test -n "$AWK" && break
4502 done
4503
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4505 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4506 set x ${MAKE-make}
4507 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4508 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else case e in #(
4512 e) cat >conftest.make <<\_ACEOF
4513 SHELL = /bin/sh
4514 all:
4515 @echo '@@@%%%=$(MAKE)=@@@%%%'
4516 _ACEOF
4517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4519 *@@@%%%=?*=@@@%%%*)
4520 eval ac_cv_prog_make_${ac_make}_set=yes;;
4521 *)
4522 eval ac_cv_prog_make_${ac_make}_set=no;;
4523 esac
4524 rm -f conftest.make ;;
4525 esac
4526 fi
4527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529 printf "%s\n" "yes" >&6; }
4530 SET_MAKE=
4531 else
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 printf "%s\n" "no" >&6; }
4534 SET_MAKE="MAKE=${MAKE-make}"
4535 fi
4536
4537 rm -rf .tst 2>/dev/null
4538 mkdir .tst 2>/dev/null
4539 if test -d .tst; then
4540 am__leading_dot=.
4541 else
4542 am__leading_dot=_
4543 fi
4544 rmdir .tst 2>/dev/null
4545
4546 DEPDIR="${am__leading_dot}deps"
4547
4548 ac_config_commands="$ac_config_commands depfiles"
4549
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4551 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4552 cat > confinc.mk << 'END'
4553 am__doit:
4554 @echo this is the am__doit target >confinc.out
4555 .PHONY: am__doit
4556 END
4557 am__include="#"
4558 am__quote=
4559 # BSD make does it like this.
4560 echo '.include "confinc.mk" # ignored' > confmf.BSD
4561 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4562 echo 'include confinc.mk # ignored' > confmf.GNU
4563 _am_result=no
4564 for s in GNU BSD; do
4565 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4566 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }
4570 case $?:`cat confinc.out 2>/dev/null` in #(
4571 '0:this is the am__doit target') :
4572 case $s in #(
4573 BSD) :
4574 am__include='.include' am__quote='"' ;; #(
4575 *) :
4576 am__include='include' am__quote='' ;;
4577 esac ;; #(
4578 *) :
4579 ;;
4580 esac
4581 if test "$am__include" != "#"; then
4582 _am_result="yes ($s style)"
4583 break
4584 fi
4585 done
4586 rm -f confinc.* confmf.*
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4588 printf "%s\n" "${_am_result}" >&6; }
4589
4590 # Check whether --enable-dependency-tracking was given.
4591 if test ${enable_dependency_tracking+y}
4592 then :
4593 enableval=$enable_dependency_tracking;
4594 fi
4595
4596 if test "x$enable_dependency_tracking" != xno; then
4597 am_depcomp="$ac_aux_dir/depcomp"
4598 AMDEPBACKSLASH='\'
4599 am__nodep='_no'
4600 fi
4601 if test "x$enable_dependency_tracking" != xno; then
4602 AMDEP_TRUE=
4603 AMDEP_FALSE='#'
4604 else
4605 AMDEP_TRUE='#'
4606 AMDEP_FALSE=
4607 fi
4608
4609
4610 AM_DEFAULT_VERBOSITY=1
4611 # Check whether --enable-silent-rules was given.
4612 if test ${enable_silent_rules+y}
4613 then :
4614 enableval=$enable_silent_rules;
4615 fi
4616
4617 am_make=${MAKE-make}
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4619 printf %s "checking whether $am_make supports nested variables... " >&6; }
4620 if test ${am_cv_make_support_nested_variables+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else case e in #(
4624 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4625 BAR0=false
4626 BAR1=true
4627 V=1
4628 am__doit:
4629 @$(TRUE)
4630 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4631 am_cv_make_support_nested_variables=yes
4632 else
4633 am_cv_make_support_nested_variables=no
4634 fi ;;
4635 esac
4636 fi
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4638 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4639 AM_BACKSLASH='\'
4640
4641 am__rm_f_notfound=
4642 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4643 then :
4644
4645 else case e in #(
4646 e) am__rm_f_notfound='""' ;;
4647 esac
4648 fi
4649
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4652 printf %s "checking xargs -n works... " >&6; }
4653 if test ${am_cv_xargs_n_works+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else case e in #(
4657 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4658 3"
4659 then :
4660 am_cv_xargs_n_works=yes
4661 else case e in #(
4662 e) am_cv_xargs_n_works=no ;;
4663 esac
4664 fi ;;
4665 esac
4666 fi
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4668 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4669 if test "$am_cv_xargs_n_works" = yes
4670 then :
4671 am__xargs_n='xargs -n'
4672 else case e in #(
4673 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4674 ;;
4675 esac
4676 fi
4677
4678 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4679 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4680 # is not polluted with repeated "-I."
4681 am__isrc=' -I$(srcdir)'
4682 # test to see if srcdir already configured
4683 if test -f $srcdir/config.status; then
4684 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4685 fi
4686 fi
4687
4688 # test whether we have cygpath
4689 if test -z "$CYGPATH_W"; then
4690 if (cygpath --version) >/dev/null 2>/dev/null; then
4691 CYGPATH_W='cygpath -w'
4692 else
4693 CYGPATH_W=echo
4694 fi
4695 fi
4696
4697
4698 # Define the identity of the package.
4699 PACKAGE='libxshmfence'
4700 VERSION='1.3.3'
4701
4702
4703 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4704
4705
4706 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4707
4708 # Some tools Automake needs.
4709
4710 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4711
4712
4713 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4714
4715
4716 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4717
4718
4719 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4720
4721
4722 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4723
4724 # For better backward compatibility. To be removed once Automake 1.9.x
4725 # dies out for good. For more background, see:
4726 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4727 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4728 mkdir_p='$(MKDIR_P)'
4729
4730 # We need awk for the "check" target (and possibly the TAP driver). The
4731 # system "awk" is bad on some platforms.
4732 # Always define AMTAR for backward compatibility. Yes, it's still used
4733 # in the wild :-( We should find a proper way to deprecate it ...
4734 AMTAR='$${TAR-tar}'
4735
4736
4737 # We'll loop over all known methods to create a tar archive until one works.
4738 _am_tools='gnutar pax cpio none'
4739
4740 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4741
4742
4743
4744
4745
4746 depcc="$CC" am_compiler_list=
4747
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749 printf %s "checking dependency style of $depcc... " >&6; }
4750 if test ${am_cv_CC_dependencies_compiler_type+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else case e in #(
4754 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755 # We make a subdir and do the tests there. Otherwise we can end up
4756 # making bogus files that we don't know about and never remove. For
4757 # instance it was reported that on HP-UX the gcc test will end up
4758 # making a dummy file named 'D' -- because '-MD' means "put the output
4759 # in D".
4760 rm -rf conftest.dir
4761 mkdir conftest.dir
4762 # Copy depcomp to subdir because otherwise we won't find it if we're
4763 # using a relative directory.
4764 cp "$am_depcomp" conftest.dir
4765 cd conftest.dir
4766 # We will build objects and dependencies in a subdirectory because
4767 # it helps to detect inapplicable dependency modes. For instance
4768 # both Tru64's cc and ICC support -MD to output dependencies as a
4769 # side effect of compilation, but ICC will put the dependencies in
4770 # the current directory while Tru64 will put them in the object
4771 # directory.
4772 mkdir sub
4773
4774 am_cv_CC_dependencies_compiler_type=none
4775 if test "$am_compiler_list" = ""; then
4776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4777 fi
4778 am__universal=false
4779 case " $depcc " in #(
4780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4781 esac
4782
4783 for depmode in $am_compiler_list; do
4784 # Setup a source with many dependencies, because some compilers
4785 # like to wrap large dependency lists on column 80 (with \), and
4786 # we should not choose a depcomp mode which is confused by this.
4787 #
4788 # We need to recreate these files for each test, as the compiler may
4789 # overwrite some of them when testing with obscure command lines.
4790 # This happens at least with the AIX C compiler.
4791 : > sub/conftest.c
4792 for i in 1 2 3 4 5 6; do
4793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4795 # Solaris 10 /bin/sh.
4796 echo '/* dummy */' > sub/conftst$i.h
4797 done
4798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799
4800 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4801 # mode. It turns out that the SunPro C++ compiler does not properly
4802 # handle '-M -o', and we need to detect this. Also, some Intel
4803 # versions had trouble with output in subdirs.
4804 am__obj=sub/conftest.${OBJEXT-o}
4805 am__minus_obj="-o $am__obj"
4806 case $depmode in
4807 gcc)
4808 # This depmode causes a compiler race in universal mode.
4809 test "$am__universal" = false || continue
4810 ;;
4811 nosideeffect)
4812 # After this tag, mechanisms are not by side-effect, so they'll
4813 # only be used when explicitly requested.
4814 if test "x$enable_dependency_tracking" = xyes; then
4815 continue
4816 else
4817 break
4818 fi
4819 ;;
4820 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4821 # This compiler won't grok '-c -o', but also, the minuso test has
4822 # not run yet. These depmodes are late enough in the game, and
4823 # so weak that their functioning should not be impacted.
4824 am__obj=conftest.${OBJEXT-o}
4825 am__minus_obj=
4826 ;;
4827 none) break ;;
4828 esac
4829 if depmode=$depmode \
4830 source=sub/conftest.c object=$am__obj \
4831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4833 >/dev/null 2>conftest.err &&
4834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4838 # icc doesn't choke on unknown options, it will just issue warnings
4839 # or remarks (even with -Werror). So we grep stderr for any message
4840 # that says an option was ignored or not supported.
4841 # When given -MP, icc 7.0 and 7.1 complain thus:
4842 # icc: Command line warning: ignoring option '-M'; no argument required
4843 # The diagnosis changed in icc 8.0:
4844 # icc: Command line remark: option '-MP' not supported
4845 if (grep 'ignoring option' conftest.err ||
4846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4847 am_cv_CC_dependencies_compiler_type=$depmode
4848 break
4849 fi
4850 fi
4851 done
4852
4853 cd ..
4854 rm -rf conftest.dir
4855 else
4856 am_cv_CC_dependencies_compiler_type=none
4857 fi
4858 ;;
4859 esac
4860 fi
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4862 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4863 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4864
4865 if
4866 test "x$enable_dependency_tracking" != xno \
4867 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4868 am__fastdepCC_TRUE=
4869 am__fastdepCC_FALSE='#'
4870 else
4871 am__fastdepCC_TRUE='#'
4872 am__fastdepCC_FALSE=
4873 fi
4874
4875
4876 # Variables for tags utilities; see am/tags.am
4877 if test -z "$CTAGS"; then
4878 CTAGS=ctags
4879 fi
4880
4881 if test -z "$ETAGS"; then
4882 ETAGS=etags
4883 fi
4884
4885 if test -z "$CSCOPE"; then
4886 CSCOPE=cscope
4887 fi
4888
4889
4890
4891
4892
4893
4894
4895
4896 # Initialize libtool
4897 case `pwd` in
4898 *\ * | *\ *)
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4900 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4901 esac
4902
4903
4904
4905 macro_version='2.5.4'
4906 macro_revision='2.5.4'
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 ltmain=$ac_aux_dir/ltmain.sh
4922
4923
4924
4925 # Make sure we can run config.sub.
4926 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4927 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4928
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4930 printf %s "checking build system type... " >&6; }
4931 if test ${ac_cv_build+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else case e in #(
4935 e) ac_build_alias=$build_alias
4936 test "x$ac_build_alias" = x &&
4937 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4938 test "x$ac_build_alias" = x &&
4939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4940 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4941 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4942 ;;
4943 esac
4944 fi
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4946 printf "%s\n" "$ac_cv_build" >&6; }
4947 case $ac_cv_build in
4948 *-*-*) ;;
4949 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4950 esac
4951 build=$ac_cv_build
4952 ac_save_IFS=$IFS; IFS='-'
4953 set x $ac_cv_build
4954 shift
4955 build_cpu=$1
4956 build_vendor=$2
4957 shift; shift
4958 # Remember, the first character of IFS is used to create $*,
4959 # except with old shells:
4960 build_os=$*
4961 IFS=$ac_save_IFS
4962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4963
4964
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4966 printf %s "checking host system type... " >&6; }
4967 if test ${ac_cv_host+y}
4968 then :
4969 printf %s "(cached) " >&6
4970 else case e in #(
4971 e) if test "x$host_alias" = x; then
4972 ac_cv_host=$ac_cv_build
4973 else
4974 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4975 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4976 fi
4977 ;;
4978 esac
4979 fi
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4981 printf "%s\n" "$ac_cv_host" >&6; }
4982 case $ac_cv_host in
4983 *-*-*) ;;
4984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4985 esac
4986 host=$ac_cv_host
4987 ac_save_IFS=$IFS; IFS='-'
4988 set x $ac_cv_host
4989 shift
4990 host_cpu=$1
4991 host_vendor=$2
4992 shift; shift
4993 # Remember, the first character of IFS is used to create $*,
4994 # except with old shells:
4995 host_os=$*
4996 IFS=$ac_save_IFS
4997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4998
4999
5000 # Backslashify metacharacters that are still active within
5001 # double-quoted strings.
5002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5003
5004 # Same as above, but do not quote variable references.
5005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5006
5007 # Sed substitution to delay expansion of an escaped shell variable in a
5008 # double_quote_subst'ed string.
5009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5010
5011 # Sed substitution to delay expansion of an escaped single quote.
5012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5013
5014 # Sed substitution to avoid accidental globbing in evaled expressions
5015 no_glob_subst='s/\*/\\\*/g'
5016
5017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5020
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5022 printf %s "checking how to print strings... " >&6; }
5023 # Test print first, because it will be a builtin if present.
5024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5026 ECHO='print -r --'
5027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5028 ECHO='printf %s\n'
5029 else
5030 # Use this function as a fallback that always works.
5031 func_fallback_echo ()
5032 {
5033 eval 'cat <<_LTECHO_EOF
5034 $1
5035 _LTECHO_EOF'
5036 }
5037 ECHO='func_fallback_echo'
5038 fi
5039
5040 # func_echo_all arg...
5041 # Invoke $ECHO with all args, space-separated.
5042 func_echo_all ()
5043 {
5044 $ECHO ""
5045 }
5046
5047 case $ECHO in
5048 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5049 printf "%s\n" "printf" >&6; } ;;
5050 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5051 printf "%s\n" "print -r" >&6; } ;;
5052 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5053 printf "%s\n" "cat" >&6; } ;;
5054 esac
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5070 printf %s "checking for a sed that does not truncate output... " >&6; }
5071 if test ${ac_cv_path_SED+y}
5072 then :
5073 printf %s "(cached) " >&6
5074 else case e in #(
5075 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5076 for ac_i in 1 2 3 4 5 6 7; do
5077 ac_script="$ac_script$as_nl$ac_script"
5078 done
5079 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5080 { ac_script=; unset ac_script;}
5081 if test -z "$SED"; then
5082 ac_path_SED_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087 IFS=$as_save_IFS
5088 case $as_dir in #(((
5089 '') as_dir=./ ;;
5090 */) ;;
5091 *) as_dir=$as_dir/ ;;
5092 esac
5093 for ac_prog in sed gsed
5094 do
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5097 as_fn_executable_p "$ac_path_SED" || continue
5098 # Check for GNU ac_path_SED and select it if it is found.
5099 # Check for GNU $ac_path_SED
5100 case `"$ac_path_SED" --version 2>&1` in #(
5101 *GNU*)
5102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5103 #(
5104 *)
5105 ac_count=0
5106 printf %s 0123456789 >"conftest.in"
5107 while :
5108 do
5109 cat "conftest.in" "conftest.in" >"conftest.tmp"
5110 mv "conftest.tmp" "conftest.in"
5111 cp "conftest.in" "conftest.nl"
5112 printf "%s\n" '' >> "conftest.nl"
5113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115 as_fn_arith $ac_count + 1 && ac_count=$as_val
5116 if test $ac_count -gt ${ac_path_SED_max-0}; then
5117 # Best one so far, save it but keep looking for a better one
5118 ac_cv_path_SED="$ac_path_SED"
5119 ac_path_SED_max=$ac_count
5120 fi
5121 # 10*(2^10) chars as input seems more than enough
5122 test $ac_count -gt 10 && break
5123 done
5124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 esac
5126
5127 $ac_path_SED_found && break 3
5128 done
5129 done
5130 done
5131 IFS=$as_save_IFS
5132 if test -z "$ac_cv_path_SED"; then
5133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5134 fi
5135 else
5136 ac_cv_path_SED=$SED
5137 fi
5138 ;;
5139 esac
5140 fi
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5142 printf "%s\n" "$ac_cv_path_SED" >&6; }
5143 SED="$ac_cv_path_SED"
5144 rm -f conftest.sed
5145
5146 test -z "$SED" && SED=sed
5147 Xsed="$SED -e 1s/^X//"
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5160 printf %s "checking for grep that handles long lines and -e... " >&6; }
5161 if test ${ac_cv_path_GREP+y}
5162 then :
5163 printf %s "(cached) " >&6
5164 else case e in #(
5165 e) if test -z "$GREP"; then
5166 ac_path_GREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171 IFS=$as_save_IFS
5172 case $as_dir in #(((
5173 '') as_dir=./ ;;
5174 */) ;;
5175 *) as_dir=$as_dir/ ;;
5176 esac
5177 for ac_prog in grep ggrep
5178 do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5181 as_fn_executable_p "$ac_path_GREP" || continue
5182 # Check for GNU ac_path_GREP and select it if it is found.
5183 # Check for GNU $ac_path_GREP
5184 case `"$ac_path_GREP" --version 2>&1` in #(
5185 *GNU*)
5186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5187 #(
5188 *)
5189 ac_count=0
5190 printf %s 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 printf "%s\n" 'GREP' >> "conftest.nl"
5197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_GREP="$ac_path_GREP"
5203 ac_path_GREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211 $ac_path_GREP_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_GREP"; then
5217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 fi
5219 else
5220 ac_cv_path_GREP=$GREP
5221 fi
5222 ;;
5223 esac
5224 fi
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5226 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5228
5229
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5231 printf %s "checking for egrep... " >&6; }
5232 if test ${ac_cv_path_EGREP+y}
5233 then :
5234 printf %s "(cached) " >&6
5235 else case e in #(
5236 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5237 then ac_cv_path_EGREP="$GREP -E"
5238 else
5239 if test -z "$EGREP"; then
5240 ac_path_EGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 do
5245 IFS=$as_save_IFS
5246 case $as_dir in #(((
5247 '') as_dir=./ ;;
5248 */) ;;
5249 *) as_dir=$as_dir/ ;;
5250 esac
5251 for ac_prog in egrep
5252 do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_EGREP" || continue
5256 # Check for GNU ac_path_EGREP and select it if it is found.
5257 # Check for GNU $ac_path_EGREP
5258 case `"$ac_path_EGREP" --version 2>&1` in #(
5259 *GNU*)
5260 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5261 #(
5262 *)
5263 ac_count=0
5264 printf %s 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 printf "%s\n" 'EGREP' >> "conftest.nl"
5271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_EGREP="$ac_path_EGREP"
5277 ac_path_EGREP_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 esac
5284
5285 $ac_path_EGREP_found && break 3
5286 done
5287 done
5288 done
5289 IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_EGREP"; then
5291 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 fi
5293 else
5294 ac_cv_path_EGREP=$EGREP
5295 fi
5296
5297 fi ;;
5298 esac
5299 fi
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5301 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5302 EGREP="$ac_cv_path_EGREP"
5303
5304 EGREP_TRADITIONAL=$EGREP
5305 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5308 printf %s "checking for fgrep... " >&6; }
5309 if test ${ac_cv_path_FGREP+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5314 then ac_cv_path_FGREP="$GREP -F"
5315 else
5316 if test -z "$FGREP"; then
5317 ac_path_FGREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321 do
5322 IFS=$as_save_IFS
5323 case $as_dir in #(((
5324 '') as_dir=./ ;;
5325 */) ;;
5326 *) as_dir=$as_dir/ ;;
5327 esac
5328 for ac_prog in fgrep
5329 do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5332 as_fn_executable_p "$ac_path_FGREP" || continue
5333 # Check for GNU ac_path_FGREP and select it if it is found.
5334 # Check for GNU $ac_path_FGREP
5335 case `"$ac_path_FGREP" --version 2>&1` in #(
5336 *GNU*)
5337 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5338 #(
5339 *)
5340 ac_count=0
5341 printf %s 0123456789 >"conftest.in"
5342 while :
5343 do
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 printf "%s\n" 'FGREP' >> "conftest.nl"
5348 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_FGREP="$ac_path_FGREP"
5354 ac_path_FGREP_max=$ac_count
5355 fi
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5358 done
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362 $ac_path_FGREP_found && break 3
5363 done
5364 done
5365 done
5366 IFS=$as_save_IFS
5367 if test -z "$ac_cv_path_FGREP"; then
5368 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369 fi
5370 else
5371 ac_cv_path_FGREP=$FGREP
5372 fi
5373
5374 fi ;;
5375 esac
5376 fi
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5378 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5379 FGREP="$ac_cv_path_FGREP"
5380
5381
5382 test -z "$GREP" && GREP=grep
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 # Check whether --with-gnu-ld was given.
5403 if test ${with_gnu_ld+y}
5404 then :
5405 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5406 else case e in #(
5407 e) with_gnu_ld=no ;;
5408 esac
5409 fi
5410
5411 ac_prog=ld
5412 if test yes = "$GCC"; then
5413 # Check if gcc -print-prog-name=ld gives a path.
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5415 printf %s "checking for ld used by $CC... " >&6; }
5416 case $host in
5417 *-*-mingw* | *-*-windows*)
5418 # gcc leaves a trailing carriage return, which upsets mingw
5419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5420 *)
5421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5422 esac
5423 case $ac_prog in
5424 # Accept absolute paths.
5425 [\\/]* | ?:[\\/]*)
5426 re_direlt='/[^/][^/]*/\.\./'
5427 # Canonicalize the pathname of ld
5428 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5429 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5430 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5431 done
5432 test -z "$LD" && LD=$ac_prog
5433 ;;
5434 "")
5435 # If it fails, then pretend we aren't using GCC.
5436 ac_prog=ld
5437 ;;
5438 *)
5439 # If it is relative, then search for the first ld in PATH.
5440 with_gnu_ld=unknown
5441 ;;
5442 esac
5443 elif test yes = "$with_gnu_ld"; then
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5445 printf %s "checking for GNU ld... " >&6; }
5446 else
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5448 printf %s "checking for non-GNU ld... " >&6; }
5449 fi
5450 if test ${lt_cv_path_LD+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else case e in #(
5454 e) if test -z "$LD"; then
5455 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5456 for ac_dir in $PATH; do
5457 IFS=$lt_save_ifs
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5460 lt_cv_path_LD=$ac_dir/$ac_prog
5461 # Check to see if the program is GNU ld. I'd rather use --version,
5462 # but apparently some variants of GNU ld only accept -v.
5463 # Break only if it was the GNU/non-GNU ld that we prefer.
5464 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5465 *GNU* | *'with BFD'*)
5466 test no != "$with_gnu_ld" && break
5467 ;;
5468 *)
5469 test yes != "$with_gnu_ld" && break
5470 ;;
5471 esac
5472 fi
5473 done
5474 IFS=$lt_save_ifs
5475 else
5476 lt_cv_path_LD=$LD # Let the user override the test with a path.
5477 fi ;;
5478 esac
5479 fi
5480
5481 LD=$lt_cv_path_LD
5482 if test -n "$LD"; then
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5484 printf "%s\n" "$LD" >&6; }
5485 else
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 printf "%s\n" "no" >&6; }
5488 fi
5489 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5491 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5492 if test ${lt_cv_prog_gnu_ld+y}
5493 then :
5494 printf %s "(cached) " >&6
5495 else case e in #(
5496 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5497 case `$LD -v 2>&1 </dev/null` in
5498 *GNU* | *'with BFD'*)
5499 lt_cv_prog_gnu_ld=yes
5500 ;;
5501 *)
5502 lt_cv_prog_gnu_ld=no
5503 ;;
5504 esac ;;
5505 esac
5506 fi
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5508 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5509 with_gnu_ld=$lt_cv_prog_gnu_ld
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5520 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5521 if test ${lt_cv_path_NM+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else case e in #(
5525 e) if test -n "$NM"; then
5526 # Let the user override the test.
5527 lt_cv_path_NM=$NM
5528 else
5529 lt_nm_to_check=${ac_tool_prefix}nm
5530 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5531 lt_nm_to_check="$lt_nm_to_check nm"
5532 fi
5533 for lt_tmp_nm in $lt_nm_to_check; do
5534 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5535 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5536 IFS=$lt_save_ifs
5537 test -z "$ac_dir" && ac_dir=.
5538 tmp_nm=$ac_dir/$lt_tmp_nm
5539 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5540 # Check to see if the nm accepts a BSD-compat flag.
5541 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5542 # nm: unknown option "B" ignored
5543 # Tru64's nm complains that /dev/null is an invalid object file
5544 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5545 case $build_os in
5546 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5547 *) lt_bad_file=/dev/null ;;
5548 esac
5549 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5550 *$lt_bad_file* | *'Invalid file or object type'*)
5551 lt_cv_path_NM="$tmp_nm -B"
5552 break 2
5553 ;;
5554 *)
5555 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5556 */dev/null*)
5557 lt_cv_path_NM="$tmp_nm -p"
5558 break 2
5559 ;;
5560 *)
5561 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5562 continue # so that we can try to find one that supports BSD flags
5563 ;;
5564 esac
5565 ;;
5566 esac
5567 fi
5568 done
5569 IFS=$lt_save_ifs
5570 done
5571 : ${lt_cv_path_NM=no}
5572 fi ;;
5573 esac
5574 fi
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5576 printf "%s\n" "$lt_cv_path_NM" >&6; }
5577 if test no != "$lt_cv_path_NM"; then
5578 NM=$lt_cv_path_NM
5579 else
5580 # Didn't find any BSD compatible name lister, look for dumpbin.
5581 if test -n "$DUMPBIN"; then :
5582 # Let the user override the test.
5583 else
5584 if test -n "$ac_tool_prefix"; then
5585 for ac_prog in dumpbin "link -dump"
5586 do
5587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 printf %s "checking for $ac_word... " >&6; }
5591 if test ${ac_cv_prog_DUMPBIN+y}
5592 then :
5593 printf %s "(cached) " >&6
5594 else case e in #(
5595 e) if test -n "$DUMPBIN"; then
5596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 case $as_dir in #(((
5603 '') as_dir=./ ;;
5604 */) ;;
5605 *) as_dir=$as_dir/ ;;
5606 esac
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi ;;
5618 esac
5619 fi
5620 DUMPBIN=$ac_cv_prog_DUMPBIN
5621 if test -n "$DUMPBIN"; then
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5623 printf "%s\n" "$DUMPBIN" >&6; }
5624 else
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 printf "%s\n" "no" >&6; }
5627 fi
5628
5629
5630 test -n "$DUMPBIN" && break
5631 done
5632 fi
5633 if test -z "$DUMPBIN"; then
5634 ac_ct_DUMPBIN=$DUMPBIN
5635 for ac_prog in dumpbin "link -dump"
5636 do
5637 # Extract the first word of "$ac_prog", so it can be a program name with args.
5638 set dummy $ac_prog; ac_word=$2
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 printf %s "checking for $ac_word... " >&6; }
5641 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5642 then :
5643 printf %s "(cached) " >&6
5644 else case e in #(
5645 e) if test -n "$ac_ct_DUMPBIN"; then
5646 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 case $as_dir in #(((
5653 '') as_dir=./ ;;
5654 */) ;;
5655 *) as_dir=$as_dir/ ;;
5656 esac
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi ;;
5668 esac
5669 fi
5670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5671 if test -n "$ac_ct_DUMPBIN"; then
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5673 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5674 else
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 printf "%s\n" "no" >&6; }
5677 fi
5678
5679
5680 test -n "$ac_ct_DUMPBIN" && break
5681 done
5682
5683 if test "x$ac_ct_DUMPBIN" = x; then
5684 DUMPBIN=":"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 DUMPBIN=$ac_ct_DUMPBIN
5693 fi
5694 fi
5695
5696 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5697 *COFF*)
5698 DUMPBIN="$DUMPBIN -symbols -headers"
5699 ;;
5700 *)
5701 DUMPBIN=:
5702 ;;
5703 esac
5704 fi
5705
5706 if test : != "$DUMPBIN"; then
5707 NM=$DUMPBIN
5708 fi
5709 fi
5710 test -z "$NM" && NM=nm
5711
5712
5713
5714
5715
5716
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5718 printf %s "checking the name lister ($NM) interface... " >&6; }
5719 if test ${lt_cv_nm_interface+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else case e in #(
5723 e) lt_cv_nm_interface="BSD nm"
5724 echo "int some_variable = 0;" > conftest.$ac_ext
5725 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5726 (eval "$ac_compile" 2>conftest.err)
5727 cat conftest.err >&5
5728 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5729 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5730 cat conftest.err >&5
5731 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5732 cat conftest.out >&5
5733 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5734 lt_cv_nm_interface="MS dumpbin"
5735 fi
5736 rm -f conftest* ;;
5737 esac
5738 fi
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5740 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5741
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5743 printf %s "checking whether ln -s works... " >&6; }
5744 LN_S=$as_ln_s
5745 if test "$LN_S" = "ln -s"; then
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747 printf "%s\n" "yes" >&6; }
5748 else
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5750 printf "%s\n" "no, using $LN_S" >&6; }
5751 fi
5752
5753 # find the maximum length of command line arguments
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5755 printf %s "checking the maximum length of command line arguments... " >&6; }
5756 if test ${lt_cv_sys_max_cmd_len+y}
5757 then :
5758 printf %s "(cached) " >&6
5759 else case e in #(
5760 e) i=0
5761 teststring=ABCD
5762
5763 case $build_os in
5764 msdosdjgpp*)
5765 # On DJGPP, this test can blow up pretty badly due to problems in libc
5766 # (any single argument exceeding 2000 bytes causes a buffer overrun
5767 # during glob expansion). Even if it were fixed, the result of this
5768 # check would be larger than it should be.
5769 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5770 ;;
5771
5772 gnu* | ironclad*)
5773 # Under GNU Hurd and Ironclad, this test is not required because there
5774 # is no limit to the length of command line arguments.
5775 # Libtool will interpret -1 as no limit whatsoever
5776 lt_cv_sys_max_cmd_len=-1;
5777 ;;
5778
5779 cygwin* | mingw* | windows* | cegcc*)
5780 # On Win9x/ME, this test blows up -- it succeeds, but takes
5781 # about 5 minutes as the teststring grows exponentially.
5782 # Worse, since 9x/ME are not pre-emptively multitasking,
5783 # you end up with a "frozen" computer, even though with patience
5784 # the test eventually succeeds (with a max line length of 256k).
5785 # Instead, let's just punt: use the minimum linelength reported by
5786 # all of the supported platforms: 8192 (on NT/2K/XP).
5787 lt_cv_sys_max_cmd_len=8192;
5788 ;;
5789
5790 mint*)
5791 # On MiNT this can take a long time and run out of memory.
5792 lt_cv_sys_max_cmd_len=8192;
5793 ;;
5794
5795 amigaos*)
5796 # On AmigaOS with pdksh, this test takes hours, literally.
5797 # So we just punt and use a minimum line length of 8192.
5798 lt_cv_sys_max_cmd_len=8192;
5799 ;;
5800
5801 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5802 # This has been around since 386BSD, at least. Likely further.
5803 if test -x /sbin/sysctl; then
5804 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5805 elif test -x /usr/sbin/sysctl; then
5806 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5807 else
5808 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5809 fi
5810 # And add a safety zone
5811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5813 ;;
5814
5815 interix*)
5816 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5817 lt_cv_sys_max_cmd_len=196608
5818 ;;
5819
5820 os2*)
5821 # The test takes a long time on OS/2.
5822 lt_cv_sys_max_cmd_len=8192
5823 ;;
5824
5825 osf*)
5826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5828 # nice to cause kernel panics so lets avoid the loop below.
5829 # First set a reasonable default.
5830 lt_cv_sys_max_cmd_len=16384
5831 #
5832 if test -x /sbin/sysconfig; then
5833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5835 esac
5836 fi
5837 ;;
5838 sco3.2v5*)
5839 lt_cv_sys_max_cmd_len=102400
5840 ;;
5841 sysv5* | sco5v6* | sysv4.2uw2*)
5842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5843 if test -n "$kargmax"; then
5844 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5845 else
5846 lt_cv_sys_max_cmd_len=32768
5847 fi
5848 ;;
5849 *)
5850 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5851 if test -n "$lt_cv_sys_max_cmd_len" && \
5852 test undefined != "$lt_cv_sys_max_cmd_len"; then
5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855 else
5856 # Make teststring a little bigger before we do anything with it.
5857 # a 1K string should be a reasonable start.
5858 for i in 1 2 3 4 5 6 7 8; do
5859 teststring=$teststring$teststring
5860 done
5861 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5862 # If test is not a shell built-in, we'll probably end up computing a
5863 # maximum length that is only half of the actual maximum length, but
5864 # we can't tell.
5865 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5866 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5867 test 17 != "$i" # 1/2 MB should be enough
5868 do
5869 i=`expr $i + 1`
5870 teststring=$teststring$teststring
5871 done
5872 # Only check the string length outside the loop.
5873 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5874 teststring=
5875 # Add a significant safety factor because C++ compilers can tack on
5876 # massive amounts of additional arguments before passing them to the
5877 # linker. It appears as though 1/2 is a usable value.
5878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5879 fi
5880 ;;
5881 esac
5882 ;;
5883 esac
5884 fi
5885
5886 if test -n "$lt_cv_sys_max_cmd_len"; then
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5888 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5889 else
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5891 printf "%s\n" "none" >&6; }
5892 fi
5893 max_cmd_len=$lt_cv_sys_max_cmd_len
5894
5895
5896
5897
5898
5899
5900 : ${CP="cp -f"}
5901 : ${MV="mv -f"}
5902 : ${RM="rm -f"}
5903
5904 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5905 lt_unset=unset
5906 else
5907 lt_unset=false
5908 fi
5909
5910
5911
5912
5913
5914 # test EBCDIC or ASCII
5915 case `echo X|tr X '\101'` in
5916 A) # ASCII based system
5917 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5918 lt_SP2NL='tr \040 \012'
5919 lt_NL2SP='tr \015\012 \040\040'
5920 ;;
5921 *) # EBCDIC based system
5922 lt_SP2NL='tr \100 \n'
5923 lt_NL2SP='tr \r\n \100\100'
5924 ;;
5925 esac
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5936 printf %s "checking how to convert $build file names to $host format... " >&6; }
5937 if test ${lt_cv_to_host_file_cmd+y}
5938 then :
5939 printf %s "(cached) " >&6
5940 else case e in #(
5941 e) case $host in
5942 *-*-mingw* )
5943 case $build in
5944 *-*-mingw* | *-*-windows* ) # actually msys
5945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5946 ;;
5947 *-*-cygwin* )
5948 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5949 ;;
5950 * ) # otherwise, assume *nix
5951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5952 ;;
5953 esac
5954 ;;
5955 *-*-cygwin* )
5956 case $build in
5957 *-*-mingw* | *-*-windows* ) # actually msys
5958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5959 ;;
5960 *-*-cygwin* )
5961 lt_cv_to_host_file_cmd=func_convert_file_noop
5962 ;;
5963 * ) # otherwise, assume *nix
5964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5965 ;;
5966 esac
5967 ;;
5968 * ) # unhandled hosts (and "normal" native builds)
5969 lt_cv_to_host_file_cmd=func_convert_file_noop
5970 ;;
5971 esac
5972 ;;
5973 esac
5974 fi
5975
5976 to_host_file_cmd=$lt_cv_to_host_file_cmd
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5978 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5979
5980
5981
5982
5983
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5985 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5986 if test ${lt_cv_to_tool_file_cmd+y}
5987 then :
5988 printf %s "(cached) " >&6
5989 else case e in #(
5990 e) #assume ordinary cross tools, or native build.
5991 lt_cv_to_tool_file_cmd=func_convert_file_noop
5992 case $host in
5993 *-*-mingw* | *-*-windows* )
5994 case $build in
5995 *-*-mingw* | *-*-windows* ) # actually msys
5996 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5997 ;;
5998 esac
5999 ;;
6000 esac
6001 ;;
6002 esac
6003 fi
6004
6005 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6007 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6008
6009
6010
6011
6012
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6014 printf %s "checking for $LD option to reload object files... " >&6; }
6015 if test ${lt_cv_ld_reload_flag+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else case e in #(
6019 e) lt_cv_ld_reload_flag='-r' ;;
6020 esac
6021 fi
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6023 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6024 reload_flag=$lt_cv_ld_reload_flag
6025 case $reload_flag in
6026 "" | " "*) ;;
6027 *) reload_flag=" $reload_flag" ;;
6028 esac
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 case $host_os in
6031 cygwin* | mingw* | windows* | pw32* | cegcc*)
6032 if test yes != "$GCC"; then
6033 reload_cmds=false
6034 fi
6035 ;;
6036 darwin*)
6037 if test yes = "$GCC"; then
6038 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6039 else
6040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041 fi
6042 ;;
6043 esac
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 # Extract the first word of "file", so it can be a program name with args.
6054 set dummy file; ac_word=$2
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 printf %s "checking for $ac_word... " >&6; }
6057 if test ${ac_cv_prog_FILECMD+y}
6058 then :
6059 printf %s "(cached) " >&6
6060 else case e in #(
6061 e) if test -n "$FILECMD"; then
6062 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 case $as_dir in #(((
6069 '') as_dir=./ ;;
6070 */) ;;
6071 *) as_dir=$as_dir/ ;;
6072 esac
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_FILECMD="file"
6076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6084 fi ;;
6085 esac
6086 fi
6087 FILECMD=$ac_cv_prog_FILECMD
6088 if test -n "$FILECMD"; then
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6090 printf "%s\n" "$FILECMD" >&6; }
6091 else
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 printf "%s\n" "no" >&6; }
6094 fi
6095
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 printf %s "checking for $ac_word... " >&6; }
6108 if test ${ac_cv_prog_OBJDUMP+y}
6109 then :
6110 printf %s "(cached) " >&6
6111 else case e in #(
6112 e) if test -n "$OBJDUMP"; then
6113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118 IFS=$as_save_IFS
6119 case $as_dir in #(((
6120 '') as_dir=./ ;;
6121 */) ;;
6122 *) as_dir=$as_dir/ ;;
6123 esac
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi ;;
6135 esac
6136 fi
6137 OBJDUMP=$ac_cv_prog_OBJDUMP
6138 if test -n "$OBJDUMP"; then
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6140 printf "%s\n" "$OBJDUMP" >&6; }
6141 else
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 printf "%s\n" "no" >&6; }
6144 fi
6145
6146
6147 fi
6148 if test -z "$ac_cv_prog_OBJDUMP"; then
6149 ac_ct_OBJDUMP=$OBJDUMP
6150 # Extract the first word of "objdump", so it can be a program name with args.
6151 set dummy objdump; ac_word=$2
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 printf %s "checking for $ac_word... " >&6; }
6154 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6155 then :
6156 printf %s "(cached) " >&6
6157 else case e in #(
6158 e) if test -n "$ac_ct_OBJDUMP"; then
6159 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 case $as_dir in #(((
6166 '') as_dir=./ ;;
6167 */) ;;
6168 *) as_dir=$as_dir/ ;;
6169 esac
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi ;;
6181 esac
6182 fi
6183 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6184 if test -n "$ac_ct_OBJDUMP"; then
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6186 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6187 else
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 printf "%s\n" "no" >&6; }
6190 fi
6191
6192 if test "x$ac_ct_OBJDUMP" = x; then
6193 OBJDUMP="false"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201 OBJDUMP=$ac_ct_OBJDUMP
6202 fi
6203 else
6204 OBJDUMP="$ac_cv_prog_OBJDUMP"
6205 fi
6206
6207 test -z "$OBJDUMP" && OBJDUMP=objdump
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6218 printf %s "checking how to recognize dependent libraries... " >&6; }
6219 if test ${lt_cv_deplibs_check_method+y}
6220 then :
6221 printf %s "(cached) " >&6
6222 else case e in #(
6223 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6224 lt_cv_file_magic_test_file=
6225 lt_cv_deplibs_check_method='unknown'
6226 # Need to set the preceding variable on all platforms that support
6227 # interlibrary dependencies.
6228 # 'none' -- dependencies not supported.
6229 # 'unknown' -- same as none, but documents that we really don't know.
6230 # 'pass_all' -- all dependencies passed with no checks.
6231 # 'file_magic [[regex]]' -- check by looking for files in library path
6232 # that responds to the $file_magic_cmd with a given extended regex.
6233 # If you have 'file' or equivalent on your system and you're not sure
6234 # whether 'pass_all' will *always* work, you probably want this one.
6235
6236 case $host_os in
6237 aix[4-9]*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241 beos*)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244
6245 bsdi[45]*)
6246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6247 lt_cv_file_magic_cmd='$FILECMD -L'
6248 lt_cv_file_magic_test_file=/shlib/libc.so
6249 ;;
6250
6251 cygwin*)
6252 # func_win32_libid is a shell function defined in ltmain.sh
6253 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6254 lt_cv_file_magic_cmd='func_win32_libid'
6255 ;;
6256
6257 mingw* | windows* | pw32*)
6258 # Base MSYS/MinGW do not provide the 'file' command needed by
6259 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6260 # unless we find 'file', for example because we are cross-compiling.
6261 if ( file / ) >/dev/null 2>&1; then
6262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263 lt_cv_file_magic_cmd='func_win32_libid'
6264 else
6265 # Keep this pattern in sync with the one in func_win32_libid.
6266 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6267 lt_cv_file_magic_cmd='$OBJDUMP -f'
6268 fi
6269 ;;
6270
6271 cegcc*)
6272 # use the weaker test based on 'objdump'. See mingw*.
6273 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6274 lt_cv_file_magic_cmd='$OBJDUMP -f'
6275 ;;
6276
6277 darwin* | rhapsody*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 freebsd* | dragonfly* | midnightbsd*)
6282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283 case $host_cpu in
6284 i*86 )
6285 # Not sure whether the presence of OpenBSD here was a mistake.
6286 # Let's accept both of them until this is cleared up.
6287 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6288 lt_cv_file_magic_cmd=$FILECMD
6289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6290 ;;
6291 esac
6292 else
6293 lt_cv_deplibs_check_method=pass_all
6294 fi
6295 ;;
6296
6297 haiku*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 hpux10.20* | hpux11*)
6302 lt_cv_file_magic_cmd=$FILECMD
6303 case $host_cpu in
6304 ia64*)
6305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6306 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6307 ;;
6308 hppa*64*)
6309 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]'
6310 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6311 ;;
6312 *)
6313 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6314 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6315 ;;
6316 esac
6317 ;;
6318
6319 interix[3-9]*)
6320 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6322 ;;
6323
6324 irix5* | irix6* | nonstopux*)
6325 case $LD in
6326 *-32|*"-32 ") libmagic=32-bit;;
6327 *-n32|*"-n32 ") libmagic=N32;;
6328 *-64|*"-64 ") libmagic=64-bit;;
6329 *) libmagic=never-match;;
6330 esac
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 # This must be glibc/ELF.
6335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339 *-mlibc)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343 netbsd* | netbsdelf*-gnu)
6344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6346 else
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6348 fi
6349 ;;
6350
6351 newos6*)
6352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6353 lt_cv_file_magic_cmd=$FILECMD
6354 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6355 ;;
6356
6357 *nto* | *qnx*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360
6361 openbsd*)
6362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6364 else
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366 fi
6367 ;;
6368
6369 osf3* | osf4* | osf5*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 rdos*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377 serenity*)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380
6381 solaris*)
6382 lt_cv_deplibs_check_method=pass_all
6383 ;;
6384
6385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 sysv4 | sysv4.3*)
6390 case $host_vendor in
6391 motorola)
6392 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]'
6393 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6394 ;;
6395 ncr)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398 sequent)
6399 lt_cv_file_magic_cmd='/bin/file'
6400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6401 ;;
6402 sni)
6403 lt_cv_file_magic_cmd='/bin/file'
6404 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6405 lt_cv_file_magic_test_file=/lib/libc.so
6406 ;;
6407 siemens)
6408 lt_cv_deplibs_check_method=pass_all
6409 ;;
6410 pc)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413 esac
6414 ;;
6415
6416 tpf*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419 os2*)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422 esac
6423 ;;
6424 esac
6425 fi
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6427 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6428
6429 file_magic_glob=
6430 want_nocaseglob=no
6431 if test "$build" = "$host"; then
6432 case $host_os in
6433 mingw* | windows* | pw32*)
6434 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6435 want_nocaseglob=yes
6436 else
6437 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6438 fi
6439 ;;
6440 esac
6441 fi
6442
6443 file_magic_cmd=$lt_cv_file_magic_cmd
6444 deplibs_check_method=$lt_cv_deplibs_check_method
6445 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 printf %s "checking for $ac_word... " >&6; }
6473 if test ${ac_cv_prog_DLLTOOL+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else case e in #(
6477 e) if test -n "$DLLTOOL"; then
6478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 case $as_dir in #(((
6485 '') as_dir=./ ;;
6486 */) ;;
6487 *) as_dir=$as_dir/ ;;
6488 esac
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi ;;
6500 esac
6501 fi
6502 DLLTOOL=$ac_cv_prog_DLLTOOL
6503 if test -n "$DLLTOOL"; then
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6505 printf "%s\n" "$DLLTOOL" >&6; }
6506 else
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 printf "%s\n" "no" >&6; }
6509 fi
6510
6511
6512 fi
6513 if test -z "$ac_cv_prog_DLLTOOL"; then
6514 ac_ct_DLLTOOL=$DLLTOOL
6515 # Extract the first word of "dlltool", so it can be a program name with args.
6516 set dummy dlltool; ac_word=$2
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 printf %s "checking for $ac_word... " >&6; }
6519 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else case e in #(
6523 e) if test -n "$ac_ct_DLLTOOL"; then
6524 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 case $as_dir in #(((
6531 '') as_dir=./ ;;
6532 */) ;;
6533 *) as_dir=$as_dir/ ;;
6534 esac
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi ;;
6546 esac
6547 fi
6548 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6549 if test -n "$ac_ct_DLLTOOL"; then
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6551 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6552 else
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 printf "%s\n" "no" >&6; }
6555 fi
6556
6557 if test "x$ac_ct_DLLTOOL" = x; then
6558 DLLTOOL="false"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 DLLTOOL=$ac_ct_DLLTOOL
6567 fi
6568 else
6569 DLLTOOL="$ac_cv_prog_DLLTOOL"
6570 fi
6571
6572 test -z "$DLLTOOL" && DLLTOOL=dlltool
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6584 printf %s "checking how to associate runtime and link libraries... " >&6; }
6585 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6586 then :
6587 printf %s "(cached) " >&6
6588 else case e in #(
6589 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6590
6591 case $host_os in
6592 cygwin* | mingw* | windows* | pw32* | cegcc*)
6593 # two different shell functions defined in ltmain.sh;
6594 # decide which one to use based on capabilities of $DLLTOOL
6595 case `$DLLTOOL --help 2>&1` in
6596 *--identify-strict*)
6597 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6598 ;;
6599 *)
6600 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6601 ;;
6602 esac
6603 ;;
6604 *)
6605 # fallback: assume linklib IS sharedlib
6606 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6607 ;;
6608 esac
6609 ;;
6610 esac
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6613 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6614 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6615 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6616
6617
6618
6619
6620
6621
6622
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 printf %s "checking for $ac_word... " >&6; }
6628 if test ${ac_cv_prog_RANLIB+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else case e in #(
6632 e) if test -n "$RANLIB"; then
6633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 case $as_dir in #(((
6640 '') as_dir=./ ;;
6641 */) ;;
6642 *) as_dir=$as_dir/ ;;
6643 esac
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi ;;
6655 esac
6656 fi
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6660 printf "%s\n" "$RANLIB" >&6; }
6661 else
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 printf "%s\n" "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_RANLIB"; then
6669 ac_ct_RANLIB=$RANLIB
6670 # Extract the first word of "ranlib", so it can be a program name with args.
6671 set dummy ranlib; ac_word=$2
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 printf %s "checking for $ac_word... " >&6; }
6674 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) if test -n "$ac_ct_RANLIB"; then
6679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_ac_ct_RANLIB="ranlib"
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi ;;
6701 esac
6702 fi
6703 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6704 if test -n "$ac_ct_RANLIB"; then
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6706 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6707 else
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 printf "%s\n" "no" >&6; }
6710 fi
6711
6712 if test "x$ac_ct_RANLIB" = x; then
6713 RANLIB=":"
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 RANLIB=$ac_ct_RANLIB
6722 fi
6723 else
6724 RANLIB="$ac_cv_prog_RANLIB"
6725 fi
6726
6727 if test -n "$ac_tool_prefix"; then
6728 for ac_prog in ar
6729 do
6730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 printf %s "checking for $ac_word... " >&6; }
6734 if test ${ac_cv_prog_AR+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else case e in #(
6738 e) if test -n "$AR"; then
6739 ac_cv_prog_AR="$AR" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 case $as_dir in #(((
6746 '') as_dir=./ ;;
6747 */) ;;
6748 *) as_dir=$as_dir/ ;;
6749 esac
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi ;;
6761 esac
6762 fi
6763 AR=$ac_cv_prog_AR
6764 if test -n "$AR"; then
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6766 printf "%s\n" "$AR" >&6; }
6767 else
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 printf "%s\n" "no" >&6; }
6770 fi
6771
6772
6773 test -n "$AR" && break
6774 done
6775 fi
6776 if test -z "$AR"; then
6777 ac_ct_AR=$AR
6778 for ac_prog in ar
6779 do
6780 # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 printf %s "checking for $ac_word... " >&6; }
6784 if test ${ac_cv_prog_ac_ct_AR+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else case e in #(
6788 e) if test -n "$ac_ct_AR"; then
6789 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 case $as_dir in #(((
6796 '') as_dir=./ ;;
6797 */) ;;
6798 *) as_dir=$as_dir/ ;;
6799 esac
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_AR="$ac_prog"
6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi ;;
6811 esac
6812 fi
6813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6814 if test -n "$ac_ct_AR"; then
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6816 printf "%s\n" "$ac_ct_AR" >&6; }
6817 else
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 printf "%s\n" "no" >&6; }
6820 fi
6821
6822
6823 test -n "$ac_ct_AR" && break
6824 done
6825
6826 if test "x$ac_ct_AR" = x; then
6827 AR="false"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835 AR=$ac_ct_AR
6836 fi
6837 fi
6838
6839 : ${AR=ar}
6840
6841
6842
6843
6844
6845
6846 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6847 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6848 # higher priority because that's what people were doing historically (setting
6849 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6850 # variable obsoleted/removed.
6851
6852 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6853 lt_ar_flags=$AR_FLAGS
6854
6855
6856
6857
6858
6859
6860 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6861 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6862
6863
6864
6865
6866
6867
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6869 printf %s "checking for archiver @FILE support... " >&6; }
6870 if test ${lt_cv_ar_at_file+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else case e in #(
6874 e) lt_cv_ar_at_file=no
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877
6878 int
6879 main (void)
6880 {
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"
6887 then :
6888 echo conftest.$ac_objext > conftest.lst
6889 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6891 (eval $lt_ar_try) 2>&5
6892 ac_status=$?
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }
6895 if test 0 -eq "$ac_status"; then
6896 # Ensure the archiver fails upon bogus file names.
6897 rm -f conftest.$ac_objext libconftest.a
6898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6899 (eval $lt_ar_try) 2>&5
6900 ac_status=$?
6901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }
6903 if test 0 -ne "$ac_status"; then
6904 lt_cv_ar_at_file=@
6905 fi
6906 fi
6907 rm -f conftest.* libconftest.a
6908
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 ;;
6912 esac
6913 fi
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6915 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6916
6917 if test no = "$lt_cv_ar_at_file"; then
6918 archiver_list_spec=
6919 else
6920 archiver_list_spec=$lt_cv_ar_at_file
6921 fi
6922
6923
6924
6925
6926
6927
6928
6929 if test -n "$ac_tool_prefix"; then
6930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6931 set dummy ${ac_tool_prefix}strip; ac_word=$2
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 printf %s "checking for $ac_word... " >&6; }
6934 if test ${ac_cv_prog_STRIP+y}
6935 then :
6936 printf %s "(cached) " >&6
6937 else case e in #(
6938 e) if test -n "$STRIP"; then
6939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 case $as_dir in #(((
6946 '') as_dir=./ ;;
6947 */) ;;
6948 *) as_dir=$as_dir/ ;;
6949 esac
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi ;;
6961 esac
6962 fi
6963 STRIP=$ac_cv_prog_STRIP
6964 if test -n "$STRIP"; then
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6966 printf "%s\n" "$STRIP" >&6; }
6967 else
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 printf "%s\n" "no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_STRIP"; then
6975 ac_ct_STRIP=$STRIP
6976 # Extract the first word of "strip", so it can be a program name with args.
6977 set dummy strip; ac_word=$2
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 printf %s "checking for $ac_word... " >&6; }
6980 if test ${ac_cv_prog_ac_ct_STRIP+y}
6981 then :
6982 printf %s "(cached) " >&6
6983 else case e in #(
6984 e) if test -n "$ac_ct_STRIP"; then
6985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 case $as_dir in #(((
6992 '') as_dir=./ ;;
6993 */) ;;
6994 *) as_dir=$as_dir/ ;;
6995 esac
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_ac_ct_STRIP="strip"
6999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi ;;
7007 esac
7008 fi
7009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7010 if test -n "$ac_ct_STRIP"; then
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7012 printf "%s\n" "$ac_ct_STRIP" >&6; }
7013 else
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 printf "%s\n" "no" >&6; }
7016 fi
7017
7018 if test "x$ac_ct_STRIP" = x; then
7019 STRIP=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027 STRIP=$ac_ct_STRIP
7028 fi
7029 else
7030 STRIP="$ac_cv_prog_STRIP"
7031 fi
7032
7033 test -z "$STRIP" && STRIP=:
7034
7035
7036
7037
7038
7039
7040
7041 test -z "$RANLIB" && RANLIB=:
7042
7043
7044
7045
7046
7047
7048 # Determine commands to create old-style static archives.
7049 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7050 old_postinstall_cmds='chmod 644 $oldlib'
7051 old_postuninstall_cmds=
7052
7053 if test -n "$RANLIB"; then
7054 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7056 fi
7057
7058 case $host_os in
7059 darwin*)
7060 lock_old_archive_extraction=yes ;;
7061 *)
7062 lock_old_archive_extraction=no ;;
7063 esac
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 # If no C compiler was specified, use CC.
7104 LTCC=${LTCC-"$CC"}
7105
7106 # If no C compiler flags were specified, use CFLAGS.
7107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7108
7109 # Allow CC to be a program name with arguments.
7110 compiler=$CC
7111
7112
7113 # Check for command to grab the raw symbol name followed by C symbol from nm.
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7115 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7116 if test ${lt_cv_sys_global_symbol_pipe+y}
7117 then :
7118 printf %s "(cached) " >&6
7119 else case e in #(
7120 e)
7121 # These are sane defaults that work on at least a few old systems.
7122 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7123
7124 # Character class describing NM global symbol codes.
7125 symcode='[BCDEGRST]'
7126
7127 # Regexp to match symbols that can be accessed directly from C.
7128 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130 # Define system-specific variables.
7131 case $host_os in
7132 aix*)
7133 symcode='[BCDT]'
7134 ;;
7135 cygwin* | mingw* | windows* | pw32* | cegcc*)
7136 symcode='[ABCDGISTW]'
7137 ;;
7138 hpux*)
7139 if test ia64 = "$host_cpu"; then
7140 symcode='[ABCDEGRST]'
7141 fi
7142 ;;
7143 irix* | nonstopux*)
7144 symcode='[BCDEGRST]'
7145 ;;
7146 osf*)
7147 symcode='[BCDEGQRST]'
7148 ;;
7149 solaris*)
7150 symcode='[BCDRT]'
7151 ;;
7152 sco3.2v5*)
7153 symcode='[DT]'
7154 ;;
7155 sysv4.2uw2*)
7156 symcode='[DT]'
7157 ;;
7158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159 symcode='[ABDT]'
7160 ;;
7161 sysv4)
7162 symcode='[DFNSTU]'
7163 ;;
7164 esac
7165
7166 # If we're using GNU nm, then use its standard symbol codes.
7167 case `$NM -V 2>&1` in
7168 *GNU* | *'with BFD'*)
7169 symcode='[ABCDGIRSTW]' ;;
7170 esac
7171
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173 # Gets list of data symbols to import.
7174 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7175 # Adjust the below global symbol transforms to fixup imported variables.
7176 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7177 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7178 lt_c_name_lib_hook="\
7179 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7180 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7181 else
7182 # Disable hooks by default.
7183 lt_cv_sys_global_symbol_to_import=
7184 lt_cdecl_hook=
7185 lt_c_name_hook=
7186 lt_c_name_lib_hook=
7187 fi
7188
7189 # Transform an extracted symbol line into a proper C declaration.
7190 # Some systems (esp. on ia64) link data and code symbols differently,
7191 # so use this general approach.
7192 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7193 $lt_cdecl_hook\
7194 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7195 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7196
7197 # Transform an extracted symbol line into symbol name and symbol address
7198 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7199 $lt_c_name_hook\
7200 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7201 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7202
7203 # Transform an extracted symbol line into symbol name with lib prefix and
7204 # symbol address.
7205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7206 $lt_c_name_lib_hook\
7207 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7208 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7209 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7210
7211 # Handle CRLF in mingw tool chain
7212 opt_cr=
7213 case $build_os in
7214 mingw* | windows*)
7215 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7216 ;;
7217 esac
7218
7219 # Try without a prefix underscore, then with it.
7220 for ac_symprfx in "" "_"; do
7221
7222 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7223 symxfrm="\\1 $ac_symprfx\\2 \\2"
7224
7225 # Write the raw and C identifiers.
7226 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7227 # Fake it for dumpbin and say T for any non-static function,
7228 # D for any global variable and I for any imported variable.
7229 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7230 # which start with @ or ?.
7231 lt_cv_sys_global_symbol_pipe="$AWK '"\
7232 " {last_section=section; section=\$ 3};"\
7233 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7234 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7235 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7236 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7237 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7238 " \$ 0!~/External *\|/{next};"\
7239 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7240 " {if(hide[section]) next};"\
7241 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7242 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7243 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7244 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7245 " ' prfx=^$ac_symprfx"
7246 else
7247 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7248 fi
7249 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7250
7251 # Check to see that the pipe works correctly.
7252 pipe_works=no
7253
7254 rm -f conftest*
7255 cat > conftest.$ac_ext <<_LT_EOF
7256 #ifdef __cplusplus
7257 extern "C" {
7258 #endif
7259 char nm_test_var;
7260 void nm_test_func(void);
7261 void nm_test_func(void){}
7262 #ifdef __cplusplus
7263 }
7264 #endif
7265 int main(void){nm_test_var='a';nm_test_func();return(0);}
7266 _LT_EOF
7267
7268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7269 (eval $ac_compile) 2>&5
7270 ac_status=$?
7271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 # Now try to grab the symbols.
7274 nlist=conftest.nm
7275 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7276 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7277 # Try sorting and uniquifying the output.
7278 if sort "$nlist" | uniq > "$nlist"T; then
7279 mv -f "$nlist"T "$nlist"
7280 else
7281 rm -f "$nlist"T
7282 fi
7283
7284 # Make sure that we snagged all the symbols we need.
7285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7287 cat <<_LT_EOF > conftest.$ac_ext
7288 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7289 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7290 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7291 relocations are performed -- see ld's documentation on pseudo-relocs. */
7292 # define LT_DLSYM_CONST
7293 #elif defined __osf__
7294 /* This system does not cope well with relocations in const data. */
7295 # define LT_DLSYM_CONST
7296 #else
7297 # define LT_DLSYM_CONST const
7298 #endif
7299
7300 #ifdef __cplusplus
7301 extern "C" {
7302 #endif
7303
7304 _LT_EOF
7305 # Now generate the symbol file.
7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7307
7308 cat <<_LT_EOF >> conftest.$ac_ext
7309
7310 /* The mapping between symbol names and symbols. */
7311 LT_DLSYM_CONST struct {
7312 const char *name;
7313 void *address;
7314 }
7315 lt__PROGRAM__LTX_preloaded_symbols[] =
7316 {
7317 { "@PROGRAM@", (void *) 0 },
7318 _LT_EOF
7319 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320 cat <<\_LT_EOF >> conftest.$ac_ext
7321 {0, (void *) 0}
7322 };
7323
7324 /* This works around a problem in FreeBSD linker */
7325 #ifdef FREEBSD_WORKAROUND
7326 static const void *lt_preloaded_setup() {
7327 return lt__PROGRAM__LTX_preloaded_symbols;
7328 }
7329 #endif
7330
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334 _LT_EOF
7335 # Now try linking the two files.
7336 mv conftest.$ac_objext conftstm.$ac_objext
7337 lt_globsym_save_LIBS=$LIBS
7338 lt_globsym_save_CFLAGS=$CFLAGS
7339 LIBS=conftstm.$ac_objext
7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7346 pipe_works=yes
7347 fi
7348 LIBS=$lt_globsym_save_LIBS
7349 CFLAGS=$lt_globsym_save_CFLAGS
7350 else
7351 echo "cannot find nm_test_func in $nlist" >&5
7352 fi
7353 else
7354 echo "cannot find nm_test_var in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7358 fi
7359 else
7360 echo "$progname: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 fi
7363 rm -rf conftest* conftst*
7364
7365 # Do not use the global_symbol_pipe unless it works.
7366 if test yes = "$pipe_works"; then
7367 break
7368 else
7369 lt_cv_sys_global_symbol_pipe=
7370 fi
7371 done
7372 ;;
7373 esac
7374 fi
7375
7376 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7377 lt_cv_sys_global_symbol_to_cdecl=
7378 fi
7379 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7381 printf "%s\n" "failed" >&6; }
7382 else
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7384 printf "%s\n" "ok" >&6; }
7385 fi
7386
7387 # Response file support.
7388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7389 nm_file_list_spec='@'
7390 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7391 nm_file_list_spec='@'
7392 fi
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7431 printf %s "checking for sysroot... " >&6; }
7432
7433 # Check whether --with-sysroot was given.
7434 if test ${with_sysroot+y}
7435 then :
7436 withval=$with_sysroot;
7437 else case e in #(
7438 e) with_sysroot=no ;;
7439 esac
7440 fi
7441
7442
7443 lt_sysroot=
7444 case $with_sysroot in #(
7445 yes)
7446 if test yes = "$GCC"; then
7447 # Trim trailing / since we'll always append absolute paths and we want
7448 # to avoid //, if only for less confusing output for the user.
7449 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7450 fi
7451 ;; #(
7452 /*)
7453 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7454 ;; #(
7455 no|'')
7456 ;; #(
7457 *)
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7459 printf "%s\n" "$with_sysroot" >&6; }
7460 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7461 ;;
7462 esac
7463
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7465 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7466
7467
7468
7469
7470
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7472 printf %s "checking for a working dd... " >&6; }
7473 if test ${ac_cv_path_lt_DD+y}
7474 then :
7475 printf %s "(cached) " >&6
7476 else case e in #(
7477 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7478 cat conftest.i conftest.i >conftest2.i
7479 : ${lt_DD:=$DD}
7480 if test -z "$lt_DD"; then
7481 ac_path_lt_DD_found=false
7482 # Loop through the user's path and test for each of PROGNAME-LIST
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 case $as_dir in #(((
7488 '') as_dir=./ ;;
7489 */) ;;
7490 *) as_dir=$as_dir/ ;;
7491 esac
7492 for ac_prog in dd
7493 do
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7496 as_fn_executable_p "$ac_path_lt_DD" || continue
7497 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7498 cmp -s conftest.i conftest.out \
7499 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7500 fi
7501 $ac_path_lt_DD_found && break 3
7502 done
7503 done
7504 done
7505 IFS=$as_save_IFS
7506 if test -z "$ac_cv_path_lt_DD"; then
7507 :
7508 fi
7509 else
7510 ac_cv_path_lt_DD=$lt_DD
7511 fi
7512
7513 rm -f conftest.i conftest2.i conftest.out ;;
7514 esac
7515 fi
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7517 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7518
7519
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7521 printf %s "checking how to truncate binary pipes... " >&6; }
7522 if test ${lt_cv_truncate_bin+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else case e in #(
7526 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7527 cat conftest.i conftest.i >conftest2.i
7528 lt_cv_truncate_bin=
7529 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7530 cmp -s conftest.i conftest.out \
7531 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7532 fi
7533 rm -f conftest.i conftest2.i conftest.out
7534 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7535 esac
7536 fi
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7538 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7539
7540
7541
7542
7543
7544
7545
7546 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7547 func_cc_basename ()
7548 {
7549 for cc_temp in $*""; do
7550 case $cc_temp in
7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7553 \-*) ;;
7554 *) break;;
7555 esac
7556 done
7557 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7558 }
7559
7560 # Check whether --enable-libtool-lock was given.
7561 if test ${enable_libtool_lock+y}
7562 then :
7563 enableval=$enable_libtool_lock;
7564 fi
7565
7566 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7567
7568 # Some flags need to be propagated to the compiler or linker for good
7569 # libtool support.
7570 case $host in
7571 ia64-*-hpux*)
7572 # Find out what ABI is being produced by ac_compile, and set mode
7573 # options accordingly.
7574 echo 'int i;' > conftest.$ac_ext
7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7576 (eval $ac_compile) 2>&5
7577 ac_status=$?
7578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; }; then
7580 case `$FILECMD conftest.$ac_objext` in
7581 *ELF-32*)
7582 HPUX_IA64_MODE=32
7583 ;;
7584 *ELF-64*)
7585 HPUX_IA64_MODE=64
7586 ;;
7587 esac
7588 fi
7589 rm -rf conftest*
7590 ;;
7591 *-*-irix6*)
7592 # Find out what ABI is being produced by ac_compile, and set linker
7593 # options accordingly.
7594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596 (eval $ac_compile) 2>&5
7597 ac_status=$?
7598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7600 if test yes = "$lt_cv_prog_gnu_ld"; then
7601 case `$FILECMD conftest.$ac_objext` in
7602 *32-bit*)
7603 LD="${LD-ld} -melf32bsmip"
7604 ;;
7605 *N32*)
7606 LD="${LD-ld} -melf32bmipn32"
7607 ;;
7608 *64-bit*)
7609 LD="${LD-ld} -melf64bmip"
7610 ;;
7611 esac
7612 else
7613 case `$FILECMD conftest.$ac_objext` in
7614 *32-bit*)
7615 LD="${LD-ld} -32"
7616 ;;
7617 *N32*)
7618 LD="${LD-ld} -n32"
7619 ;;
7620 *64-bit*)
7621 LD="${LD-ld} -64"
7622 ;;
7623 esac
7624 fi
7625 fi
7626 rm -rf conftest*
7627 ;;
7628
7629 mips64*-*linux*)
7630 # Find out what ABI is being produced by ac_compile, and set linker
7631 # options accordingly.
7632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634 (eval $ac_compile) 2>&5
7635 ac_status=$?
7636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 emul=elf
7639 case `$FILECMD conftest.$ac_objext` in
7640 *32-bit*)
7641 emul="${emul}32"
7642 ;;
7643 *64-bit*)
7644 emul="${emul}64"
7645 ;;
7646 esac
7647 case `$FILECMD conftest.$ac_objext` in
7648 *MSB*)
7649 emul="${emul}btsmip"
7650 ;;
7651 *LSB*)
7652 emul="${emul}ltsmip"
7653 ;;
7654 esac
7655 case `$FILECMD conftest.$ac_objext` in
7656 *N32*)
7657 emul="${emul}n32"
7658 ;;
7659 esac
7660 LD="${LD-ld} -m $emul"
7661 fi
7662 rm -rf conftest*
7663 ;;
7664
7665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7667 # Find out what ABI is being produced by ac_compile, and set linker
7668 # options accordingly. Note that the listed cases only cover the
7669 # situations where additional linker options are needed (such as when
7670 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7671 # vice versa); the common cases where no linker options are needed do
7672 # not appear in the list.
7673 echo 'int i;' > conftest.$ac_ext
7674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7675 (eval $ac_compile) 2>&5
7676 ac_status=$?
7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678 test $ac_status = 0; }; then
7679 case `$FILECMD conftest.o` in
7680 *32-bit*)
7681 case $host in
7682 x86_64-*kfreebsd*-gnu)
7683 LD="${LD-ld} -m elf_i386_fbsd"
7684 ;;
7685 x86_64-*linux*|x86_64-gnu*)
7686 case `$FILECMD conftest.o` in
7687 *x86-64*)
7688 LD="${LD-ld} -m elf32_x86_64"
7689 ;;
7690 *)
7691 LD="${LD-ld} -m elf_i386"
7692 ;;
7693 esac
7694 ;;
7695 powerpc64le-*linux*)
7696 LD="${LD-ld} -m elf32lppclinux"
7697 ;;
7698 powerpc64-*linux*)
7699 LD="${LD-ld} -m elf32ppclinux"
7700 ;;
7701 s390x-*linux*)
7702 LD="${LD-ld} -m elf_s390"
7703 ;;
7704 sparc64-*linux*)
7705 LD="${LD-ld} -m elf32_sparc"
7706 ;;
7707 esac
7708 ;;
7709 *64-bit*)
7710 case $host in
7711 x86_64-*kfreebsd*-gnu)
7712 LD="${LD-ld} -m elf_x86_64_fbsd"
7713 ;;
7714 x86_64-*linux*|x86_64-gnu*)
7715 LD="${LD-ld} -m elf_x86_64"
7716 ;;
7717 powerpcle-*linux*)
7718 LD="${LD-ld} -m elf64lppc"
7719 ;;
7720 powerpc-*linux*)
7721 LD="${LD-ld} -m elf64ppc"
7722 ;;
7723 s390*-*linux*|s390*-*tpf*)
7724 LD="${LD-ld} -m elf64_s390"
7725 ;;
7726 sparc*-*linux*)
7727 LD="${LD-ld} -m elf64_sparc"
7728 ;;
7729 esac
7730 ;;
7731 esac
7732 fi
7733 rm -rf conftest*
7734 ;;
7735
7736 *-*-sco3.2v5*)
7737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7738 SAVE_CFLAGS=$CFLAGS
7739 CFLAGS="$CFLAGS -belf"
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7741 printf %s "checking whether the C compiler needs -belf... " >&6; }
7742 if test ${lt_cv_cc_needs_belf+y}
7743 then :
7744 printf %s "(cached) " >&6
7745 else case e in #(
7746 e) ac_ext=c
7747 ac_cpp='$CPP $CPPFLAGS'
7748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754
7755 int
7756 main (void)
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"
7764 then :
7765 lt_cv_cc_needs_belf=yes
7766 else case e in #(
7767 e) lt_cv_cc_needs_belf=no ;;
7768 esac
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7771 conftest$ac_exeext conftest.$ac_ext
7772 ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 ;;
7778 esac
7779 fi
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7781 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7782 if test yes != "$lt_cv_cc_needs_belf"; then
7783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7784 CFLAGS=$SAVE_CFLAGS
7785 fi
7786 ;;
7787 *-*solaris*)
7788 # Find out what ABI is being produced by ac_compile, and set linker
7789 # options accordingly.
7790 echo 'int i;' > conftest.$ac_ext
7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; }; then
7796 case `$FILECMD conftest.o` in
7797 *64-bit*)
7798 case $lt_cv_prog_gnu_ld in
7799 yes*)
7800 case $host in
7801 i?86-*-solaris*|x86_64-*-solaris*)
7802 LD="${LD-ld} -m elf_x86_64"
7803 ;;
7804 sparc*-*-solaris*)
7805 LD="${LD-ld} -m elf64_sparc"
7806 ;;
7807 esac
7808 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7809 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7810 LD=${LD-ld}_sol2
7811 fi
7812 ;;
7813 *)
7814 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7815 LD="${LD-ld} -64"
7816 fi
7817 ;;
7818 esac
7819 ;;
7820 esac
7821 fi
7822 rm -rf conftest*
7823 ;;
7824 esac
7825
7826 need_locks=$enable_libtool_lock
7827
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}mt; ac_word=$2
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 printf %s "checking for $ac_word... " >&6; }
7833 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else case e in #(
7837 e) if test -n "$MANIFEST_TOOL"; then
7838 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 case $as_dir in #(((
7845 '') as_dir=./ ;;
7846 */) ;;
7847 *) as_dir=$as_dir/ ;;
7848 esac
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859 fi ;;
7860 esac
7861 fi
7862 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7863 if test -n "$MANIFEST_TOOL"; then
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7865 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7866 else
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 printf "%s\n" "no" >&6; }
7869 fi
7870
7871
7872 fi
7873 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7874 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7875 # Extract the first word of "mt", so it can be a program name with args.
7876 set dummy mt; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else case e in #(
7883 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7884 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi ;;
7906 esac
7907 fi
7908 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7909 if test -n "$ac_ct_MANIFEST_TOOL"; then
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7911 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7912 else
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 printf "%s\n" "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7918 MANIFEST_TOOL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7927 fi
7928 else
7929 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7930 fi
7931
7932 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7934 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7935 if test ${lt_cv_path_manifest_tool+y}
7936 then :
7937 printf %s "(cached) " >&6
7938 else case e in #(
7939 e) lt_cv_path_manifest_tool=no
7940 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7941 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7942 cat conftest.err >&5
7943 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7944 lt_cv_path_manifest_tool=yes
7945 fi
7946 rm -f conftest* ;;
7947 esac
7948 fi
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7950 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7951 if test yes != "$lt_cv_path_manifest_tool"; then
7952 MANIFEST_TOOL=:
7953 fi
7954
7955
7956
7957
7958
7959
7960 case $host_os in
7961 rhapsody* | darwin*)
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7964 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 printf %s "checking for $ac_word... " >&6; }
7967 if test ${ac_cv_prog_DSYMUTIL+y}
7968 then :
7969 printf %s "(cached) " >&6
7970 else case e in #(
7971 e) if test -n "$DSYMUTIL"; then
7972 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 case $as_dir in #(((
7979 '') as_dir=./ ;;
7980 */) ;;
7981 *) as_dir=$as_dir/ ;;
7982 esac
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi ;;
7994 esac
7995 fi
7996 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7997 if test -n "$DSYMUTIL"; then
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7999 printf "%s\n" "$DSYMUTIL" >&6; }
8000 else
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 printf "%s\n" "no" >&6; }
8003 fi
8004
8005
8006 fi
8007 if test -z "$ac_cv_prog_DSYMUTIL"; then
8008 ac_ct_DSYMUTIL=$DSYMUTIL
8009 # Extract the first word of "dsymutil", so it can be a program name with args.
8010 set dummy dsymutil; ac_word=$2
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 printf %s "checking for $ac_word... " >&6; }
8013 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else case e in #(
8017 e) if test -n "$ac_ct_DSYMUTIL"; then
8018 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 case $as_dir in #(((
8025 '') as_dir=./ ;;
8026 */) ;;
8027 *) as_dir=$as_dir/ ;;
8028 esac
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi ;;
8040 esac
8041 fi
8042 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043 if test -n "$ac_ct_DSYMUTIL"; then
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8046 else
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 printf "%s\n" "no" >&6; }
8049 fi
8050
8051 if test "x$ac_ct_DSYMUTIL" = x; then
8052 DSYMUTIL=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned=yes ;;
8059 esac
8060 DSYMUTIL=$ac_ct_DSYMUTIL
8061 fi
8062 else
8063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8064 fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 printf %s "checking for $ac_word... " >&6; }
8071 if test ${ac_cv_prog_NMEDIT+y}
8072 then :
8073 printf %s "(cached) " >&6
8074 else case e in #(
8075 e) if test -n "$NMEDIT"; then
8076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081 IFS=$as_save_IFS
8082 case $as_dir in #(((
8083 '') as_dir=./ ;;
8084 */) ;;
8085 *) as_dir=$as_dir/ ;;
8086 esac
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097 fi ;;
8098 esac
8099 fi
8100 NMEDIT=$ac_cv_prog_NMEDIT
8101 if test -n "$NMEDIT"; then
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8103 printf "%s\n" "$NMEDIT" >&6; }
8104 else
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 printf "%s\n" "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_NMEDIT"; then
8112 ac_ct_NMEDIT=$NMEDIT
8113 # Extract the first word of "nmedit", so it can be a program name with args.
8114 set dummy nmedit; ac_word=$2
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 printf %s "checking for $ac_word... " >&6; }
8117 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8118 then :
8119 printf %s "(cached) " >&6
8120 else case e in #(
8121 e) if test -n "$ac_ct_NMEDIT"; then
8122 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 case $as_dir in #(((
8129 '') as_dir=./ ;;
8130 */) ;;
8131 *) as_dir=$as_dir/ ;;
8132 esac
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8135 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi ;;
8144 esac
8145 fi
8146 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8147 if test -n "$ac_ct_NMEDIT"; then
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8149 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8150 else
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 printf "%s\n" "no" >&6; }
8153 fi
8154
8155 if test "x$ac_ct_NMEDIT" = x; then
8156 NMEDIT=":"
8157 else
8158 case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8163 esac
8164 NMEDIT=$ac_ct_NMEDIT
8165 fi
8166 else
8167 NMEDIT="$ac_cv_prog_NMEDIT"
8168 fi
8169
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 printf %s "checking for $ac_word... " >&6; }
8175 if test ${ac_cv_prog_LIPO+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else case e in #(
8179 e) if test -n "$LIPO"; then
8180 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185 IFS=$as_save_IFS
8186 case $as_dir in #(((
8187 '') as_dir=./ ;;
8188 */) ;;
8189 *) as_dir=$as_dir/ ;;
8190 esac
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201 fi ;;
8202 esac
8203 fi
8204 LIPO=$ac_cv_prog_LIPO
8205 if test -n "$LIPO"; then
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8207 printf "%s\n" "$LIPO" >&6; }
8208 else
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 printf "%s\n" "no" >&6; }
8211 fi
8212
8213
8214 fi
8215 if test -z "$ac_cv_prog_LIPO"; then
8216 ac_ct_LIPO=$LIPO
8217 # Extract the first word of "lipo", so it can be a program name with args.
8218 set dummy lipo; ac_word=$2
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 printf %s "checking for $ac_word... " >&6; }
8221 if test ${ac_cv_prog_ac_ct_LIPO+y}
8222 then :
8223 printf %s "(cached) " >&6
8224 else case e in #(
8225 e) if test -n "$ac_ct_LIPO"; then
8226 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 case $as_dir in #(((
8233 '') as_dir=./ ;;
8234 */) ;;
8235 *) as_dir=$as_dir/ ;;
8236 esac
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_ac_ct_LIPO="lipo"
8240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243 done
8244 done
8245 IFS=$as_save_IFS
8246
8247 fi ;;
8248 esac
8249 fi
8250 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8251 if test -n "$ac_ct_LIPO"; then
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8253 printf "%s\n" "$ac_ct_LIPO" >&6; }
8254 else
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 printf "%s\n" "no" >&6; }
8257 fi
8258
8259 if test "x$ac_ct_LIPO" = x; then
8260 LIPO=":"
8261 else
8262 case $cross_compiling:$ac_tool_warned in
8263 yes:)
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8265 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8266 ac_tool_warned=yes ;;
8267 esac
8268 LIPO=$ac_ct_LIPO
8269 fi
8270 else
8271 LIPO="$ac_cv_prog_LIPO"
8272 fi
8273
8274 if test -n "$ac_tool_prefix"; then
8275 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}otool; ac_word=$2
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 printf %s "checking for $ac_word... " >&6; }
8279 if test ${ac_cv_prog_OTOOL+y}
8280 then :
8281 printf %s "(cached) " >&6
8282 else case e in #(
8283 e) if test -n "$OTOOL"; then
8284 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289 IFS=$as_save_IFS
8290 case $as_dir in #(((
8291 '') as_dir=./ ;;
8292 */) ;;
8293 *) as_dir=$as_dir/ ;;
8294 esac
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi ;;
8306 esac
8307 fi
8308 OTOOL=$ac_cv_prog_OTOOL
8309 if test -n "$OTOOL"; then
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8311 printf "%s\n" "$OTOOL" >&6; }
8312 else
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 printf "%s\n" "no" >&6; }
8315 fi
8316
8317
8318 fi
8319 if test -z "$ac_cv_prog_OTOOL"; then
8320 ac_ct_OTOOL=$OTOOL
8321 # Extract the first word of "otool", so it can be a program name with args.
8322 set dummy otool; ac_word=$2
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 printf %s "checking for $ac_word... " >&6; }
8325 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8326 then :
8327 printf %s "(cached) " >&6
8328 else case e in #(
8329 e) if test -n "$ac_ct_OTOOL"; then
8330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 case $as_dir in #(((
8337 '') as_dir=./ ;;
8338 */) ;;
8339 *) as_dir=$as_dir/ ;;
8340 esac
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_ac_ct_OTOOL="otool"
8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 fi ;;
8352 esac
8353 fi
8354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8355 if test -n "$ac_ct_OTOOL"; then
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8357 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8358 else
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 printf "%s\n" "no" >&6; }
8361 fi
8362
8363 if test "x$ac_ct_OTOOL" = x; then
8364 OTOOL=":"
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367 yes:)
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370 ac_tool_warned=yes ;;
8371 esac
8372 OTOOL=$ac_ct_OTOOL
8373 fi
8374 else
8375 OTOOL="$ac_cv_prog_OTOOL"
8376 fi
8377
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 printf %s "checking for $ac_word... " >&6; }
8383 if test ${ac_cv_prog_OTOOL64+y}
8384 then :
8385 printf %s "(cached) " >&6
8386 else case e in #(
8387 e) if test -n "$OTOOL64"; then
8388 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 case $as_dir in #(((
8395 '') as_dir=./ ;;
8396 */) ;;
8397 *) as_dir=$as_dir/ ;;
8398 esac
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi ;;
8410 esac
8411 fi
8412 OTOOL64=$ac_cv_prog_OTOOL64
8413 if test -n "$OTOOL64"; then
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8415 printf "%s\n" "$OTOOL64" >&6; }
8416 else
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 printf "%s\n" "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_OTOOL64"; then
8424 ac_ct_OTOOL64=$OTOOL64
8425 # Extract the first word of "otool64", so it can be a program name with args.
8426 set dummy otool64; ac_word=$2
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 printf %s "checking for $ac_word... " >&6; }
8429 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8430 then :
8431 printf %s "(cached) " >&6
8432 else case e in #(
8433 e) if test -n "$ac_ct_OTOOL64"; then
8434 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439 IFS=$as_save_IFS
8440 case $as_dir in #(((
8441 '') as_dir=./ ;;
8442 */) ;;
8443 *) as_dir=$as_dir/ ;;
8444 esac
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_ac_ct_OTOOL64="otool64"
8448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8449 break 2
8450 fi
8451 done
8452 done
8453 IFS=$as_save_IFS
8454
8455 fi ;;
8456 esac
8457 fi
8458 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8459 if test -n "$ac_ct_OTOOL64"; then
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8461 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8462 else
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 printf "%s\n" "no" >&6; }
8465 fi
8466
8467 if test "x$ac_ct_OTOOL64" = x; then
8468 OTOOL64=":"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 OTOOL64=$ac_ct_OTOOL64
8477 fi
8478 else
8479 OTOOL64="$ac_cv_prog_OTOOL64"
8480 fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8509 printf %s "checking for -single_module linker flag... " >&6; }
8510 if test ${lt_cv_apple_cc_single_mod+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) lt_cv_apple_cc_single_mod=no
8515 if test -z "$LT_MULTI_MODULE"; then
8516 # By default we will add the -single_module flag. You can override
8517 # by either setting the environment variable LT_MULTI_MODULE
8518 # non-empty at configure time, or by adding -multi_module to the
8519 # link flags.
8520 rm -rf libconftest.dylib*
8521 echo "int foo(void){return 1;}" > conftest.c
8522 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8523 -dynamiclib -Wl,-single_module conftest.c" >&5
8524 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8525 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8526 _lt_result=$?
8527 # If there is a non-empty error log, and "single_module"
8528 # appears in it, assume the flag caused a linker warning
8529 if test -s conftest.err && $GREP single_module conftest.err; then
8530 cat conftest.err >&5
8531 # Otherwise, if the output was created with a 0 exit code from
8532 # the compiler, it worked.
8533 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8534 lt_cv_apple_cc_single_mod=yes
8535 else
8536 cat conftest.err >&5
8537 fi
8538 rm -rf libconftest.dylib*
8539 rm -f conftest.*
8540 fi ;;
8541 esac
8542 fi
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8544 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8545
8546 # Feature test to disable chained fixups since it is not
8547 # compatible with '-undefined dynamic_lookup'
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8549 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8550 if test ${lt_cv_support_no_fixup_chains+y}
8551 then :
8552 printf %s "(cached) " >&6
8553 else case e in #(
8554 e) save_LDFLAGS=$LDFLAGS
8555 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558
8559 int
8560 main (void)
8561 {
8562
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"
8568 then :
8569 lt_cv_support_no_fixup_chains=yes
8570 else case e in #(
8571 e) lt_cv_support_no_fixup_chains=no
8572 ;;
8573 esac
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LDFLAGS=$save_LDFLAGS
8578
8579 ;;
8580 esac
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8583 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8584
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8586 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8587 if test ${lt_cv_ld_exported_symbols_list+y}
8588 then :
8589 printf %s "(cached) " >&6
8590 else case e in #(
8591 e) lt_cv_ld_exported_symbols_list=no
8592 save_LDFLAGS=$LDFLAGS
8593 echo "_main" > conftest.sym
8594 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597
8598 int
8599 main (void)
8600 {
8601
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_link "$LINENO"
8607 then :
8608 lt_cv_ld_exported_symbols_list=yes
8609 else case e in #(
8610 e) lt_cv_ld_exported_symbols_list=no ;;
8611 esac
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8614 conftest$ac_exeext conftest.$ac_ext
8615 LDFLAGS=$save_LDFLAGS
8616 ;;
8617 esac
8618 fi
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8620 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8621
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8623 printf %s "checking for -force_load linker flag... " >&6; }
8624 if test ${lt_cv_ld_force_load+y}
8625 then :
8626 printf %s "(cached) " >&6
8627 else case e in #(
8628 e) lt_cv_ld_force_load=no
8629 cat > conftest.c << _LT_EOF
8630 int forced_loaded() { return 2;}
8631 _LT_EOF
8632 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8634 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8635 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8636 echo "$RANLIB libconftest.a" >&5
8637 $RANLIB libconftest.a 2>&5
8638 cat > conftest.c << _LT_EOF
8639 int main(void) { return 0;}
8640 _LT_EOF
8641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8643 _lt_result=$?
8644 if test -s conftest.err && $GREP force_load conftest.err; then
8645 cat conftest.err >&5
8646 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8647 lt_cv_ld_force_load=yes
8648 else
8649 cat conftest.err >&5
8650 fi
8651 rm -f conftest.err libconftest.a conftest conftest.c
8652 rm -rf conftest.dSYM
8653 ;;
8654 esac
8655 fi
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8657 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8658 case $host_os in
8659 rhapsody* | darwin1.[012])
8660 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8661 darwin1.*)
8662 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8663 darwin*)
8664 case $MACOSX_DEPLOYMENT_TARGET,$host in
8665 10.[012],*|,*powerpc*-darwin[5-8]*)
8666 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8667 *)
8668 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8669 if test yes = "$lt_cv_support_no_fixup_chains"; then
8670 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8671 fi
8672 ;;
8673 esac
8674 ;;
8675 esac
8676 if test yes = "$lt_cv_apple_cc_single_mod"; then
8677 _lt_dar_single_mod='$single_module'
8678 fi
8679 _lt_dar_needs_single_mod=no
8680 case $host_os in
8681 rhapsody* | darwin1.*)
8682 _lt_dar_needs_single_mod=yes ;;
8683 darwin*)
8684 # When targeting Mac OS X 10.4 (darwin 8) or later,
8685 # -single_module is the default and -multi_module is unsupported.
8686 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8687 # target any OS version that needs -single_module.
8688 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8689 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8690 _lt_dar_needs_single_mod=yes ;;
8691 esac
8692 ;;
8693 esac
8694 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8695 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8696 else
8697 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8698 fi
8699 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8700 _lt_dsymutil='~$DSYMUTIL $lib || :'
8701 else
8702 _lt_dsymutil=
8703 fi
8704 ;;
8705 esac
8706
8707 # func_munge_path_list VARIABLE PATH
8708 # -----------------------------------
8709 # VARIABLE is name of variable containing _space_ separated list of
8710 # directories to be munged by the contents of PATH, which is string
8711 # having a format:
8712 # "DIR[:DIR]:"
8713 # string "DIR[ DIR]" will be prepended to VARIABLE
8714 # ":DIR[:DIR]"
8715 # string "DIR[ DIR]" will be appended to VARIABLE
8716 # "DIRP[:DIRP]::[DIRA:]DIRA"
8717 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8718 # "DIRA[ DIRA]" will be appended to VARIABLE
8719 # "DIR[:DIR]"
8720 # VARIABLE will be replaced by "DIR[ DIR]"
8721 func_munge_path_list ()
8722 {
8723 case x$2 in
8724 x)
8725 ;;
8726 *:)
8727 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8728 ;;
8729 x:*)
8730 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8731 ;;
8732 *::*)
8733 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8734 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8735 ;;
8736 *)
8737 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8738 ;;
8739 esac
8740 }
8741
8742 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8743 "
8744 if test "x$ac_cv_header_dlfcn_h" = xyes
8745 then :
8746 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8747
8748 fi
8749
8750
8751
8752
8753
8754 # Set options
8755
8756
8757
8758 enable_dlopen=no
8759
8760
8761 enable_win32_dll=no
8762
8763
8764 # Check whether --enable-shared was given.
8765 if test ${enable_shared+y}
8766 then :
8767 enableval=$enable_shared; p=${PACKAGE-default}
8768 case $enableval in
8769 yes) enable_shared=yes ;;
8770 no) enable_shared=no ;;
8771 *)
8772 enable_shared=no
8773 # Look at the argument we got. We use all the common list separators.
8774 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8775 for pkg in $enableval; do
8776 IFS=$lt_save_ifs
8777 if test "X$pkg" = "X$p"; then
8778 enable_shared=yes
8779 fi
8780 done
8781 IFS=$lt_save_ifs
8782 ;;
8783 esac
8784 else case e in #(
8785 e) enable_shared=yes ;;
8786 esac
8787 fi
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 # Check whether --enable-static was given.
8798 if test ${enable_static+y}
8799 then :
8800 enableval=$enable_static; p=${PACKAGE-default}
8801 case $enableval in
8802 yes) enable_static=yes ;;
8803 no) enable_static=no ;;
8804 *)
8805 enable_static=no
8806 # Look at the argument we got. We use all the common list separators.
8807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8808 for pkg in $enableval; do
8809 IFS=$lt_save_ifs
8810 if test "X$pkg" = "X$p"; then
8811 enable_static=yes
8812 fi
8813 done
8814 IFS=$lt_save_ifs
8815 ;;
8816 esac
8817 else case e in #(
8818 e) enable_static=yes ;;
8819 esac
8820 fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 # Check whether --enable-pic was given.
8831 if test ${enable_pic+y}
8832 then :
8833 enableval=$enable_pic; lt_p=${PACKAGE-default}
8834 case $enableval in
8835 yes|no) pic_mode=$enableval ;;
8836 *)
8837 pic_mode=default
8838 # Look at the argument we got. We use all the common list separators.
8839 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8840 for lt_pkg in $enableval; do
8841 IFS=$lt_save_ifs
8842 if test "X$lt_pkg" = "X$lt_p"; then
8843 pic_mode=yes
8844 fi
8845 done
8846 IFS=$lt_save_ifs
8847 ;;
8848 esac
8849 else case e in #(
8850 e) # Check whether --with-pic was given.
8851 if test ${with_pic+y}
8852 then :
8853 withval=$with_pic; lt_p=${PACKAGE-default}
8854 case $withval in
8855 yes|no) pic_mode=$withval ;;
8856 *)
8857 pic_mode=default
8858 # Look at the argument we got. We use all the common list separators.
8859 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8860 for lt_pkg in $withval; do
8861 IFS=$lt_save_ifs
8862 if test "X$lt_pkg" = "X$lt_p"; then
8863 pic_mode=yes
8864 fi
8865 done
8866 IFS=$lt_save_ifs
8867 ;;
8868 esac
8869 else case e in #(
8870 e) pic_mode=default ;;
8871 esac
8872 fi
8873
8874 ;;
8875 esac
8876 fi
8877
8878
8879
8880
8881
8882
8883
8884
8885 # Check whether --enable-fast-install was given.
8886 if test ${enable_fast_install+y}
8887 then :
8888 enableval=$enable_fast_install; p=${PACKAGE-default}
8889 case $enableval in
8890 yes) enable_fast_install=yes ;;
8891 no) enable_fast_install=no ;;
8892 *)
8893 enable_fast_install=no
8894 # Look at the argument we got. We use all the common list separators.
8895 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8896 for pkg in $enableval; do
8897 IFS=$lt_save_ifs
8898 if test "X$pkg" = "X$p"; then
8899 enable_fast_install=yes
8900 fi
8901 done
8902 IFS=$lt_save_ifs
8903 ;;
8904 esac
8905 else case e in #(
8906 e) enable_fast_install=yes ;;
8907 esac
8908 fi
8909
8910
8911
8912
8913
8914
8915
8916
8917 shared_archive_member_spec=
8918 case $host,$enable_shared in
8919 power*-*-aix[5-9]*,yes)
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8921 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8922 # Check whether --enable-aix-soname was given.
8923 if test ${enable_aix_soname+y}
8924 then :
8925 enableval=$enable_aix_soname; case $enableval in
8926 aix|svr4|both)
8927 ;;
8928 *)
8929 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8930 ;;
8931 esac
8932 lt_cv_with_aix_soname=$enable_aix_soname
8933 else case e in #(
8934 e) # Check whether --with-aix-soname was given.
8935 if test ${with_aix_soname+y}
8936 then :
8937 withval=$with_aix_soname; case $withval in
8938 aix|svr4|both)
8939 ;;
8940 *)
8941 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8942 ;;
8943 esac
8944 lt_cv_with_aix_soname=$with_aix_soname
8945 else case e in #(
8946 e) if test ${lt_cv_with_aix_soname+y}
8947 then :
8948 printf %s "(cached) " >&6
8949 else case e in #(
8950 e) lt_cv_with_aix_soname=aix ;;
8951 esac
8952 fi
8953 ;;
8954 esac
8955 fi
8956
8957 enable_aix_soname=$lt_cv_with_aix_soname ;;
8958 esac
8959 fi
8960
8961 with_aix_soname=$enable_aix_soname
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8963 printf "%s\n" "$with_aix_soname" >&6; }
8964 if test aix != "$with_aix_soname"; then
8965 # For the AIX way of multilib, we name the shared archive member
8966 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8967 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8968 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8969 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8970 if test 64 = "${OBJECT_MODE-32}"; then
8971 shared_archive_member_spec=shr_64
8972 else
8973 shared_archive_member_spec=shr
8974 fi
8975 fi
8976 ;;
8977 *)
8978 with_aix_soname=aix
8979 ;;
8980 esac
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991 # This can be used to rebuild libtool when needed
8992 LIBTOOL_DEPS=$ltmain
8993
8994 # Always use our own libtool.
8995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 test -z "$LN_S" && LN_S="ln -s"
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 if test -n "${ZSH_VERSION+set}"; then
9042 setopt NO_GLOB_SUBST
9043 fi
9044
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9046 printf %s "checking for objdir... " >&6; }
9047 if test ${lt_cv_objdir+y}
9048 then :
9049 printf %s "(cached) " >&6
9050 else case e in #(
9051 e) rm -f .libs 2>/dev/null
9052 mkdir .libs 2>/dev/null
9053 if test -d .libs; then
9054 lt_cv_objdir=.libs
9055 else
9056 # MS-DOS does not allow filenames that begin with a dot.
9057 lt_cv_objdir=_libs
9058 fi
9059 rmdir .libs 2>/dev/null ;;
9060 esac
9061 fi
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9063 printf "%s\n" "$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9071
9072
9073
9074
9075 case $host_os in
9076 aix3*)
9077 # AIX sometimes has problems with the GCC collect2 program. For some
9078 # reason, if we set the COLLECT_NAMES environment variable, the problems
9079 # vanish in a puff of smoke.
9080 if test set != "${COLLECT_NAMES+set}"; then
9081 COLLECT_NAMES=
9082 export COLLECT_NAMES
9083 fi
9084 ;;
9085 esac
9086
9087 # Global variables:
9088 ofile=libtool
9089 can_build_shared=yes
9090
9091 # All known linkers require a '.a' archive for static linking (except MSVC and
9092 # ICC, which need '.lib').
9093 libext=a
9094
9095 with_gnu_ld=$lt_cv_prog_gnu_ld
9096
9097 old_CC=$CC
9098 old_CFLAGS=$CFLAGS
9099
9100 # Set sane defaults for various variables
9101 test -z "$CC" && CC=cc
9102 test -z "$LTCC" && LTCC=$CC
9103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9104 test -z "$LD" && LD=ld
9105 test -z "$ac_objext" && ac_objext=o
9106
9107 func_cc_basename $compiler
9108 cc_basename=$func_cc_basename_result
9109
9110
9111 # Only perform the check for file, if the check method requires it
9112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9113 case $deplibs_check_method in
9114 file_magic*)
9115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9117 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9118 if test ${lt_cv_path_MAGIC_CMD+y}
9119 then :
9120 printf %s "(cached) " >&6
9121 else case e in #(
9122 e) case $MAGIC_CMD in
9123 [\\/*] | ?:[\\/]*)
9124 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9125 ;;
9126 *)
9127 lt_save_MAGIC_CMD=$MAGIC_CMD
9128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9130 for ac_dir in $ac_dummy; do
9131 IFS=$lt_save_ifs
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9134 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9135 if test -n "$file_magic_test_file"; then
9136 case $deplibs_check_method in
9137 "file_magic "*)
9138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9141 $EGREP "$file_magic_regex" > /dev/null; then
9142 :
9143 else
9144 cat <<_LT_EOF 1>&2
9145
9146 *** Warning: the command libtool uses to detect shared libraries,
9147 *** $file_magic_cmd, produces output that libtool cannot recognize.
9148 *** The result is that libtool may fail to recognize shared libraries
9149 *** as such. This will affect the creation of libtool libraries that
9150 *** depend on shared libraries, but programs linked with such libtool
9151 *** libraries will work regardless of this problem. Nevertheless, you
9152 *** may want to report the problem to your system manager and/or to
9153 *** bug-libtool@gnu.org
9154
9155 _LT_EOF
9156 fi ;;
9157 esac
9158 fi
9159 break
9160 fi
9161 done
9162 IFS=$lt_save_ifs
9163 MAGIC_CMD=$lt_save_MAGIC_CMD
9164 ;;
9165 esac ;;
9166 esac
9167 fi
9168
9169 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9170 if test -n "$MAGIC_CMD"; then
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9172 printf "%s\n" "$MAGIC_CMD" >&6; }
9173 else
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 printf "%s\n" "no" >&6; }
9176 fi
9177
9178
9179
9180
9181
9182 if test -z "$lt_cv_path_MAGIC_CMD"; then
9183 if test -n "$ac_tool_prefix"; then
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9185 printf %s "checking for file... " >&6; }
9186 if test ${lt_cv_path_MAGIC_CMD+y}
9187 then :
9188 printf %s "(cached) " >&6
9189 else case e in #(
9190 e) case $MAGIC_CMD in
9191 [\\/*] | ?:[\\/]*)
9192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9193 ;;
9194 *)
9195 lt_save_MAGIC_CMD=$MAGIC_CMD
9196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9198 for ac_dir in $ac_dummy; do
9199 IFS=$lt_save_ifs
9200 test -z "$ac_dir" && ac_dir=.
9201 if test -f "$ac_dir/file"; then
9202 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9203 if test -n "$file_magic_test_file"; then
9204 case $deplibs_check_method in
9205 "file_magic "*)
9206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9209 $EGREP "$file_magic_regex" > /dev/null; then
9210 :
9211 else
9212 cat <<_LT_EOF 1>&2
9213
9214 *** Warning: the command libtool uses to detect shared libraries,
9215 *** $file_magic_cmd, produces output that libtool cannot recognize.
9216 *** The result is that libtool may fail to recognize shared libraries
9217 *** as such. This will affect the creation of libtool libraries that
9218 *** depend on shared libraries, but programs linked with such libtool
9219 *** libraries will work regardless of this problem. Nevertheless, you
9220 *** may want to report the problem to your system manager and/or to
9221 *** bug-libtool@gnu.org
9222
9223 _LT_EOF
9224 fi ;;
9225 esac
9226 fi
9227 break
9228 fi
9229 done
9230 IFS=$lt_save_ifs
9231 MAGIC_CMD=$lt_save_MAGIC_CMD
9232 ;;
9233 esac ;;
9234 esac
9235 fi
9236
9237 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9238 if test -n "$MAGIC_CMD"; then
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9240 printf "%s\n" "$MAGIC_CMD" >&6; }
9241 else
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 printf "%s\n" "no" >&6; }
9244 fi
9245
9246
9247 else
9248 MAGIC_CMD=:
9249 fi
9250 fi
9251
9252 fi
9253 ;;
9254 esac
9255
9256 # Use C for the default configuration in the libtool script
9257
9258 lt_save_CC=$CC
9259 ac_ext=c
9260 ac_cpp='$CPP $CPPFLAGS'
9261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9264
9265
9266 # Source file extension for C test sources.
9267 ac_ext=c
9268
9269 # Object file extension for compiled C test sources.
9270 objext=o
9271 objext=$objext
9272
9273 # Code to be used in simple compile tests
9274 lt_simple_compile_test_code="int some_variable = 0;"
9275
9276 # Code to be used in simple link tests
9277 lt_simple_link_test_code='int main(void){return(0);}'
9278
9279
9280
9281
9282
9283
9284
9285 # If no C compiler was specified, use CC.
9286 LTCC=${LTCC-"$CC"}
9287
9288 # If no C compiler flags were specified, use CFLAGS.
9289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9290
9291 # Allow CC to be a program name with arguments.
9292 compiler=$CC
9293
9294 # Save the default compiler, since it gets overwritten when the other
9295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9296 compiler_DEFAULT=$CC
9297
9298 # save warnings/boilerplate of simple test code
9299 ac_outfile=conftest.$ac_objext
9300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9302 _lt_compiler_boilerplate=`cat conftest.err`
9303 $RM conftest*
9304
9305 ac_outfile=conftest.$ac_objext
9306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9308 _lt_linker_boilerplate=`cat conftest.err`
9309 $RM -r conftest*
9310
9311
9312 ## CAVEAT EMPTOR:
9313 ## There is no encapsulation within the following macros, do not change
9314 ## the running order or otherwise move them around unless you know exactly
9315 ## what you are doing...
9316 if test -n "$compiler"; then
9317
9318 lt_prog_compiler_no_builtin_flag=
9319
9320 if test yes = "$GCC"; then
9321 case $cc_basename in
9322 nvcc*)
9323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9324 *)
9325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9326 esac
9327
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9329 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9330 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else case e in #(
9334 e) lt_cv_prog_compiler_rtti_exceptions=no
9335 ac_outfile=conftest.$ac_objext
9336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9337 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9338 # Insert the option either (1) after the last *FLAGS variable, or
9339 # (2) before a word containing "conftest.", or (3) at the end.
9340 # Note that $ac_compile itself does not contain backslashes and begins
9341 # with a dollar sign (not a hyphen), so the echo should work correctly.
9342 # The option is referenced via a variable to avoid confusing sed.
9343 lt_compile=`echo "$ac_compile" | $SED \
9344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9346 -e 's:$: $lt_compiler_flag:'`
9347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9348 (eval "$lt_compile" 2>conftest.err)
9349 ac_status=$?
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 if (exit $ac_status) && test -s "$ac_outfile"; then
9353 # The compiler can only warn and ignore the option if not recognized
9354 # So say no if there are warnings other than the usual output.
9355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9358 lt_cv_prog_compiler_rtti_exceptions=yes
9359 fi
9360 fi
9361 $RM conftest*
9362 ;;
9363 esac
9364 fi
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9366 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9367
9368 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9369 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9370 else
9371 :
9372 fi
9373
9374 fi
9375
9376
9377
9378
9379
9380
9381 lt_prog_compiler_wl=
9382 lt_prog_compiler_pic=
9383 lt_prog_compiler_static=
9384
9385
9386 if test yes = "$GCC"; then
9387 lt_prog_compiler_wl='-Wl,'
9388 lt_prog_compiler_static='-static'
9389
9390 case $host_os in
9391 aix*)
9392 # All AIX code is PIC.
9393 if test ia64 = "$host_cpu"; then
9394 # AIX 5 now supports IA64 processor
9395 lt_prog_compiler_static='-Bstatic'
9396 fi
9397 lt_prog_compiler_pic='-fPIC'
9398 ;;
9399
9400 amigaos*)
9401 case $host_cpu in
9402 powerpc)
9403 # see comment about AmigaOS4 .so support
9404 lt_prog_compiler_pic='-fPIC'
9405 ;;
9406 m68k)
9407 # FIXME: we need at least 68020 code to build shared libraries, but
9408 # adding the '-m68020' flag to GCC prevents building anything better,
9409 # like '-m68040'.
9410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9411 ;;
9412 esac
9413 ;;
9414
9415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9416 # PIC is the default for these OSes.
9417 ;;
9418
9419 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9420 # This hack is so that the source file can tell whether it is being
9421 # built for inclusion in a dll (and should export symbols for example).
9422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9423 # (--disable-auto-import) libraries
9424 lt_prog_compiler_pic='-DDLL_EXPORT'
9425 case $host_os in
9426 os2*)
9427 lt_prog_compiler_static='$wl-static'
9428 ;;
9429 esac
9430 ;;
9431
9432 darwin* | rhapsody*)
9433 # PIC is the default on this platform
9434 # Common symbols not allowed in MH_DYLIB files
9435 lt_prog_compiler_pic='-fno-common'
9436 ;;
9437
9438 haiku*)
9439 # PIC is the default for Haiku.
9440 # The "-static" flag exists, but is broken.
9441 lt_prog_compiler_static=
9442 ;;
9443
9444 hpux*)
9445 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9446 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9447 # sets the default TLS model and affects inlining.
9448 case $host_cpu in
9449 hppa*64*)
9450 # +Z the default
9451 ;;
9452 *)
9453 lt_prog_compiler_pic='-fPIC'
9454 ;;
9455 esac
9456 ;;
9457
9458 interix[3-9]*)
9459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9460 # Instead, we relocate shared libraries at runtime.
9461 ;;
9462
9463 msdosdjgpp*)
9464 # Just because we use GCC doesn't mean we suddenly get shared libraries
9465 # on systems that don't support them.
9466 lt_prog_compiler_can_build_shared=no
9467 enable_shared=no
9468 ;;
9469
9470 *nto* | *qnx*)
9471 # QNX uses GNU C++, but need to define -shared option too, otherwise
9472 # it will coredump.
9473 lt_prog_compiler_pic='-fPIC -shared'
9474 ;;
9475
9476 sysv4*MP*)
9477 if test -d /usr/nec; then
9478 lt_prog_compiler_pic=-Kconform_pic
9479 fi
9480 ;;
9481
9482 *)
9483 lt_prog_compiler_pic='-fPIC'
9484 ;;
9485 esac
9486
9487 case $cc_basename in
9488 nvcc*) # Cuda Compiler Driver 2.2
9489 lt_prog_compiler_wl='-Xlinker '
9490 if test -n "$lt_prog_compiler_pic"; then
9491 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9492 fi
9493 ;;
9494 esac
9495 else
9496 # PORTME Check for flag to pass linker flags through the system compiler.
9497 case $host_os in
9498 aix*)
9499 lt_prog_compiler_wl='-Wl,'
9500 if test ia64 = "$host_cpu"; then
9501 # AIX 5 now supports IA64 processor
9502 lt_prog_compiler_static='-Bstatic'
9503 else
9504 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9505 fi
9506 ;;
9507
9508 darwin* | rhapsody*)
9509 # PIC is the default on this platform
9510 # Common symbols not allowed in MH_DYLIB files
9511 lt_prog_compiler_pic='-fno-common'
9512 case $cc_basename in
9513 nagfor*)
9514 # NAG Fortran compiler
9515 lt_prog_compiler_wl='-Wl,-Wl,,'
9516 lt_prog_compiler_pic='-PIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9519 esac
9520 ;;
9521
9522 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9523 # This hack is so that the source file can tell whether it is being
9524 # built for inclusion in a dll (and should export symbols for example).
9525 lt_prog_compiler_pic='-DDLL_EXPORT'
9526 case $host_os in
9527 os2*)
9528 lt_prog_compiler_static='$wl-static'
9529 ;;
9530 esac
9531 ;;
9532
9533 hpux9* | hpux10* | hpux11*)
9534 lt_prog_compiler_wl='-Wl,'
9535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9536 # not for PA HP-UX.
9537 case $host_cpu in
9538 hppa*64*|ia64*)
9539 # +Z the default
9540 ;;
9541 *)
9542 lt_prog_compiler_pic='+Z'
9543 ;;
9544 esac
9545 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9546 lt_prog_compiler_static='$wl-a ${wl}archive'
9547 ;;
9548
9549 irix5* | irix6* | nonstopux*)
9550 lt_prog_compiler_wl='-Wl,'
9551 # PIC (with -KPIC) is the default.
9552 lt_prog_compiler_static='-non_shared'
9553 ;;
9554
9555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9556 case $cc_basename in
9557 # old Intel for x86_64, which still supported -KPIC.
9558 ecc*)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-static'
9562 ;;
9563 *flang* | ftn | f18* | f95*)
9564 # Flang compiler.
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='-fPIC'
9567 lt_prog_compiler_static='-static'
9568 ;;
9569 # icc used to be incompatible with GCC.
9570 # ICC 10 doesn't accept -KPIC any more.
9571 icc* | ifort*)
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-fPIC'
9574 lt_prog_compiler_static='-static'
9575 ;;
9576 # Lahey Fortran 8.1.
9577 lf95*)
9578 lt_prog_compiler_wl='-Wl,'
9579 lt_prog_compiler_pic='--shared'
9580 lt_prog_compiler_static='--static'
9581 ;;
9582 nagfor*)
9583 # NAG Fortran compiler
9584 lt_prog_compiler_wl='-Wl,-Wl,,'
9585 lt_prog_compiler_pic='-PIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588 tcc*)
9589 # Fabrice Bellard et al's Tiny C Compiler
9590 lt_prog_compiler_wl='-Wl,'
9591 lt_prog_compiler_pic='-fPIC'
9592 lt_prog_compiler_static='-static'
9593 ;;
9594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9595 # Portland Group compilers (*not* the Pentium gcc compiler,
9596 # which looks to be a dead project)
9597 lt_prog_compiler_wl='-Wl,'
9598 lt_prog_compiler_pic='-fpic'
9599 lt_prog_compiler_static='-Bstatic'
9600 ;;
9601 ccc*)
9602 lt_prog_compiler_wl='-Wl,'
9603 # All Alpha code is PIC.
9604 lt_prog_compiler_static='-non_shared'
9605 ;;
9606 xl* | bgxl* | bgf* | mpixl*)
9607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-qpic'
9610 lt_prog_compiler_static='-qstaticlink'
9611 ;;
9612 *)
9613 case `$CC -V 2>&1 | $SED 5q` in
9614 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9616 lt_prog_compiler_pic='-KPIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 lt_prog_compiler_wl=''
9619 ;;
9620 *Sun\ F* | *Sun*Fortran*)
9621 lt_prog_compiler_pic='-KPIC'
9622 lt_prog_compiler_static='-Bstatic'
9623 lt_prog_compiler_wl='-Qoption ld '
9624 ;;
9625 *Sun\ C*)
9626 # Sun C 5.9
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 lt_prog_compiler_wl='-Wl,'
9630 ;;
9631 *Intel*\ [CF]*Compiler*)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_pic='-fPIC'
9634 lt_prog_compiler_static='-static'
9635 ;;
9636 *Portland\ Group*)
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_pic='-fpic'
9639 lt_prog_compiler_static='-Bstatic'
9640 ;;
9641 esac
9642 ;;
9643 esac
9644 ;;
9645
9646 newsos6)
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650
9651 *-mlibc)
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_pic='-fPIC'
9654 lt_prog_compiler_static='-static'
9655 ;;
9656
9657 *nto* | *qnx*)
9658 # QNX uses GNU C++, but need to define -shared option too, otherwise
9659 # it will coredump.
9660 lt_prog_compiler_pic='-fPIC -shared'
9661 ;;
9662
9663 osf3* | osf4* | osf5*)
9664 lt_prog_compiler_wl='-Wl,'
9665 # All OSF/1 code is PIC.
9666 lt_prog_compiler_static='-non_shared'
9667 ;;
9668
9669 rdos*)
9670 lt_prog_compiler_static='-non_shared'
9671 ;;
9672
9673 serenity*)
9674 ;;
9675
9676 solaris*)
9677 lt_prog_compiler_pic='-KPIC'
9678 lt_prog_compiler_static='-Bstatic'
9679 case $cc_basename in
9680 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9681 lt_prog_compiler_wl='-Qoption ld ';;
9682 *)
9683 lt_prog_compiler_wl='-Wl,';;
9684 esac
9685 ;;
9686
9687 sunos4*)
9688 lt_prog_compiler_wl='-Qoption ld '
9689 lt_prog_compiler_pic='-PIC'
9690 lt_prog_compiler_static='-Bstatic'
9691 ;;
9692
9693 sysv4 | sysv4.2uw2* | sysv4.3*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-KPIC'
9696 lt_prog_compiler_static='-Bstatic'
9697 ;;
9698
9699 sysv4*MP*)
9700 if test -d /usr/nec; then
9701 lt_prog_compiler_pic='-Kconform_pic'
9702 lt_prog_compiler_static='-Bstatic'
9703 fi
9704 ;;
9705
9706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='-KPIC'
9709 lt_prog_compiler_static='-Bstatic'
9710 ;;
9711
9712 unicos*)
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_can_build_shared=no
9715 ;;
9716
9717 uts4*)
9718 lt_prog_compiler_pic='-pic'
9719 lt_prog_compiler_static='-Bstatic'
9720 ;;
9721
9722 *)
9723 lt_prog_compiler_can_build_shared=no
9724 ;;
9725 esac
9726 fi
9727
9728 case $host_os in
9729 # For platforms that do not support PIC, -DPIC is meaningless:
9730 *djgpp*)
9731 lt_prog_compiler_pic=
9732 ;;
9733 *)
9734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9735 ;;
9736 esac
9737
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9739 printf %s "checking for $compiler option to produce PIC... " >&6; }
9740 if test ${lt_cv_prog_compiler_pic+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else case e in #(
9744 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9745 esac
9746 fi
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9748 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9749 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9750
9751 #
9752 # Check to make sure the PIC flag actually works.
9753 #
9754 if test -n "$lt_prog_compiler_pic"; then
9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9757 if test ${lt_cv_prog_compiler_pic_works+y}
9758 then :
9759 printf %s "(cached) " >&6
9760 else case e in #(
9761 e) lt_cv_prog_compiler_pic_works=no
9762 ac_outfile=conftest.$ac_objext
9763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9765 # Insert the option either (1) after the last *FLAGS variable, or
9766 # (2) before a word containing "conftest.", or (3) at the end.
9767 # Note that $ac_compile itself does not contain backslashes and begins
9768 # with a dollar sign (not a hyphen), so the echo should work correctly.
9769 # The option is referenced via a variable to avoid confusing sed.
9770 lt_compile=`echo "$ac_compile" | $SED \
9771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9773 -e 's:$: $lt_compiler_flag:'`
9774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9775 (eval "$lt_compile" 2>conftest.err)
9776 ac_status=$?
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 if (exit $ac_status) && test -s "$ac_outfile"; then
9780 # The compiler can only warn and ignore the option if not recognized
9781 # So say no if there are warnings other than the usual output.
9782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9785 lt_cv_prog_compiler_pic_works=yes
9786 fi
9787 fi
9788 $RM conftest*
9789 ;;
9790 esac
9791 fi
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9793 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9794
9795 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9796 case $lt_prog_compiler_pic in
9797 "" | " "*) ;;
9798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799 esac
9800 else
9801 lt_prog_compiler_pic=
9802 lt_prog_compiler_can_build_shared=no
9803 fi
9804
9805 fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817 #
9818 # Check to make sure the static flag actually works.
9819 #
9820 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9822 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9823 if test ${lt_cv_prog_compiler_static_works+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else case e in #(
9827 e) lt_cv_prog_compiler_static_works=no
9828 save_LDFLAGS=$LDFLAGS
9829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9832 # The linker can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 if test -s conftest.err; then
9835 # Append any errors to the config.log.
9836 cat conftest.err 1>&5
9837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9839 if diff conftest.exp conftest.er2 >/dev/null; then
9840 lt_cv_prog_compiler_static_works=yes
9841 fi
9842 else
9843 lt_cv_prog_compiler_static_works=yes
9844 fi
9845 fi
9846 $RM -r conftest*
9847 LDFLAGS=$save_LDFLAGS
9848 ;;
9849 esac
9850 fi
9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9852 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9853
9854 if test yes = "$lt_cv_prog_compiler_static_works"; then
9855 :
9856 else
9857 lt_prog_compiler_static=
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9868 if test ${lt_cv_prog_compiler_c_o+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else case e in #(
9872 e) lt_cv_prog_compiler_c_o=no
9873 $RM -r conftest 2>/dev/null
9874 mkdir conftest
9875 cd conftest
9876 mkdir out
9877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9878
9879 lt_compiler_flag="-o out/conftest2.$ac_objext"
9880 # Insert the option either (1) after the last *FLAGS variable, or
9881 # (2) before a word containing "conftest.", or (3) at the end.
9882 # Note that $ac_compile itself does not contain backslashes and begins
9883 # with a dollar sign (not a hyphen), so the echo should work correctly.
9884 lt_compile=`echo "$ac_compile" | $SED \
9885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9887 -e 's:$: $lt_compiler_flag:'`
9888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9889 (eval "$lt_compile" 2>out/conftest.err)
9890 ac_status=$?
9891 cat out/conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9894 then
9895 # The compiler can only warn and ignore the option if not recognized
9896 # So say no if there are warnings
9897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9900 lt_cv_prog_compiler_c_o=yes
9901 fi
9902 fi
9903 chmod u+w . 2>&5
9904 $RM conftest*
9905 # SGI C++ compiler will create directory out/ii_files/ for
9906 # template instantiation
9907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9908 $RM out/* && rmdir out
9909 cd ..
9910 $RM -r conftest
9911 $RM conftest*
9912 ;;
9913 esac
9914 fi
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9916 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9917
9918
9919
9920
9921
9922
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9924 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9925 if test ${lt_cv_prog_compiler_c_o+y}
9926 then :
9927 printf %s "(cached) " >&6
9928 else case e in #(
9929 e) lt_cv_prog_compiler_c_o=no
9930 $RM -r conftest 2>/dev/null
9931 mkdir conftest
9932 cd conftest
9933 mkdir out
9934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9935
9936 lt_compiler_flag="-o out/conftest2.$ac_objext"
9937 # Insert the option either (1) after the last *FLAGS variable, or
9938 # (2) before a word containing "conftest.", or (3) at the end.
9939 # Note that $ac_compile itself does not contain backslashes and begins
9940 # with a dollar sign (not a hyphen), so the echo should work correctly.
9941 lt_compile=`echo "$ac_compile" | $SED \
9942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9944 -e 's:$: $lt_compiler_flag:'`
9945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9946 (eval "$lt_compile" 2>out/conftest.err)
9947 ac_status=$?
9948 cat out/conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9951 then
9952 # The compiler can only warn and ignore the option if not recognized
9953 # So say no if there are warnings
9954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9957 lt_cv_prog_compiler_c_o=yes
9958 fi
9959 fi
9960 chmod u+w . 2>&5
9961 $RM conftest*
9962 # SGI C++ compiler will create directory out/ii_files/ for
9963 # template instantiation
9964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9965 $RM out/* && rmdir out
9966 cd ..
9967 $RM -r conftest
9968 $RM conftest*
9969 ;;
9970 esac
9971 fi
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9973 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9974
9975
9976
9977
9978 hard_links=nottested
9979 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9980 # do not overwrite the value of need_locks provided by the user
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9982 printf %s "checking if we can lock with hard links... " >&6; }
9983 hard_links=yes
9984 $RM conftest*
9985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9986 touch conftest.a
9987 ln conftest.a conftest.b 2>&5 || hard_links=no
9988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9990 printf "%s\n" "$hard_links" >&6; }
9991 if test no = "$hard_links"; then
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9993 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9994 need_locks=warn
9995 fi
9996 else
9997 need_locks=no
9998 fi
9999
10000
10001
10002
10003
10004
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10006 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10007
10008 runpath_var=
10009 allow_undefined_flag=
10010 always_export_symbols=no
10011 archive_cmds=
10012 archive_expsym_cmds=
10013 compiler_needs_object=no
10014 enable_shared_with_static_runtimes=no
10015 export_dynamic_flag_spec=
10016 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10017 hardcode_automatic=no
10018 hardcode_direct=no
10019 hardcode_direct_absolute=no
10020 hardcode_libdir_flag_spec=
10021 hardcode_libdir_separator=
10022 hardcode_minus_L=no
10023 hardcode_shlibpath_var=unsupported
10024 inherit_rpath=no
10025 link_all_deplibs=unknown
10026 module_cmds=
10027 module_expsym_cmds=
10028 old_archive_from_new_cmds=
10029 old_archive_from_expsyms_cmds=
10030 thread_safe_flag_spec=
10031 whole_archive_flag_spec=
10032 # include_expsyms should be a list of space-separated symbols to be *always*
10033 # included in the symbol list
10034 include_expsyms=
10035 # exclude_expsyms can be an extended regexp of symbols to exclude
10036 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10037 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10038 # as well as any symbol that contains 'd'.
10039 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10041 # platforms (ab)use it in PIC code, but their linkers get confused if
10042 # the symbol is explicitly referenced. Since portable code cannot
10043 # rely on this symbol name, it's probably fine to never include it in
10044 # preloaded symbol tables.
10045 # Exclude shared library initialization/finalization symbols.
10046 extract_expsyms_cmds=
10047
10048 case $host_os in
10049 cygwin* | mingw* | windows* | pw32* | cegcc*)
10050 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10051 # When not using gcc, we currently assume that we are using
10052 # Microsoft Visual C++ or Intel C++ Compiler.
10053 if test yes != "$GCC"; then
10054 with_gnu_ld=no
10055 fi
10056 ;;
10057 interix*)
10058 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10059 with_gnu_ld=yes
10060 ;;
10061 esac
10062
10063 ld_shlibs=yes
10064
10065 # On some targets, GNU ld is compatible enough with the native linker
10066 # that we're better off using the native interface for both.
10067 lt_use_gnu_ld_interface=no
10068 if test yes = "$with_gnu_ld"; then
10069 case $host_os in
10070 aix*)
10071 # The AIX port of GNU ld has always aspired to compatibility
10072 # with the native linker. However, as the warning in the GNU ld
10073 # block says, versions before 2.19.5* couldn't really create working
10074 # shared libraries, regardless of the interface used.
10075 case `$LD -v 2>&1` in
10076 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10077 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10078 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10079 *)
10080 lt_use_gnu_ld_interface=yes
10081 ;;
10082 esac
10083 ;;
10084 *)
10085 lt_use_gnu_ld_interface=yes
10086 ;;
10087 esac
10088 fi
10089
10090 if test yes = "$lt_use_gnu_ld_interface"; then
10091 # If archive_cmds runs LD, not CC, wlarc should be empty
10092 wlarc='$wl'
10093
10094 # Set some defaults for GNU ld with shared library support. These
10095 # are reset later if shared libraries are not supported. Putting them
10096 # here allows them to be overridden if necessary.
10097 runpath_var=LD_RUN_PATH
10098 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10099 export_dynamic_flag_spec='$wl--export-dynamic'
10100 # ancient GNU ld didn't support --whole-archive et. al.
10101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10102 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10103 else
10104 whole_archive_flag_spec=
10105 fi
10106 supports_anon_versioning=no
10107 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10108 *GNU\ gold*) supports_anon_versioning=yes ;;
10109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10112 *\ 2.11.*) ;; # other 2.11 versions
10113 *) supports_anon_versioning=yes ;;
10114 esac
10115
10116 # See if GNU ld supports shared libraries.
10117 case $host_os in
10118 aix[3-9]*)
10119 # On AIX/PPC, the GNU linker is very broken
10120 if test ia64 != "$host_cpu"; then
10121 ld_shlibs=no
10122 cat <<_LT_EOF 1>&2
10123
10124 *** Warning: the GNU linker, at least up to release 2.19, is reported
10125 *** to be unable to reliably create shared libraries on AIX.
10126 *** Therefore, libtool is disabling shared libraries support. If you
10127 *** really care for shared libraries, you may want to install binutils
10128 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10129 *** You will then need to restart the configuration process.
10130
10131 _LT_EOF
10132 fi
10133 ;;
10134
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # see comment about AmigaOS4 .so support
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10140 archive_expsym_cmds=''
10141 ;;
10142 m68k)
10143 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)'
10144 hardcode_libdir_flag_spec='-L$libdir'
10145 hardcode_minus_L=yes
10146 ;;
10147 esac
10148 ;;
10149
10150 beos*)
10151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10152 allow_undefined_flag=unsupported
10153 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10154 # support --undefined. This deserves some investigation. FIXME
10155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10156 else
10157 ld_shlibs=no
10158 fi
10159 ;;
10160
10161 cygwin* | mingw* | windows* | pw32* | cegcc*)
10162 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10163 # as there is no search path for DLLs.
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 export_dynamic_flag_spec='$wl--export-all-symbols'
10166 allow_undefined_flag=unsupported
10167 always_export_symbols=no
10168 enable_shared_with_static_runtimes=yes
10169 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'
10170 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10171 file_list_spec='@'
10172
10173 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10175 # If the export-symbols file already is a .def file, use it as
10176 # is; otherwise, prepend EXPORTS...
10177 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10178 cp $export_symbols $output_objdir/$soname.def;
10179 else
10180 echo EXPORTS > $output_objdir/$soname.def;
10181 cat $export_symbols >> $output_objdir/$soname.def;
10182 fi~
10183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10184 else
10185 ld_shlibs=no
10186 fi
10187 ;;
10188
10189 haiku*)
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191 link_all_deplibs=no
10192 ;;
10193
10194 os2*)
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_minus_L=yes
10197 allow_undefined_flag=unsupported
10198 shrext_cmds=.dll
10199 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10202 $ECHO EXPORTS >> $output_objdir/$libname.def~
10203 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10204 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10205 emximp -o $lib $output_objdir/$libname.def'
10206 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10207 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10208 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10209 $ECHO EXPORTS >> $output_objdir/$libname.def~
10210 prefix_cmds="$SED"~
10211 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10212 prefix_cmds="$prefix_cmds -e 1d";
10213 fi~
10214 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10215 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10217 emximp -o $lib $output_objdir/$libname.def'
10218 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10219 enable_shared_with_static_runtimes=yes
10220 file_list_spec='@'
10221 ;;
10222
10223 interix[3-9]*)
10224 hardcode_direct=no
10225 hardcode_shlibpath_var=no
10226 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10227 export_dynamic_flag_spec='$wl-E'
10228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10229 # Instead, shared libraries are loaded at an image base (0x10000000 by
10230 # default) and relocated if they conflict, which is a slow very memory
10231 # consuming and fragmenting process. To avoid this, we pick a random,
10232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10235 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'
10236 ;;
10237
10238 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10239 tmp_diet=no
10240 if test linux-dietlibc = "$host_os"; then
10241 case $cc_basename in
10242 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10243 esac
10244 fi
10245 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10246 && test no = "$tmp_diet"
10247 then
10248 tmp_addflag=' $pic_flag'
10249 tmp_sharedflag='-shared'
10250 case $cc_basename,$host_cpu in
10251 pgcc*) # Portland Group C compiler
10252 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'
10253 tmp_addflag=' $pic_flag'
10254 ;;
10255 pgf77* | pgf90* | pgf95* | pgfortran*)
10256 # Portland Group f77 and f90 compilers
10257 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'
10258 tmp_addflag=' $pic_flag -Mnomain' ;;
10259 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10260 tmp_addflag=' -i_dynamic' ;;
10261 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10262 tmp_addflag=' -i_dynamic -nofor_main' ;;
10263 ifc* | ifort*) # Intel Fortran compiler
10264 tmp_addflag=' -nofor_main' ;;
10265 lf95*) # Lahey Fortran 8.1
10266 whole_archive_flag_spec=
10267 tmp_sharedflag='--shared' ;;
10268 nagfor*) # NAGFOR 5.3
10269 tmp_sharedflag='-Wl,-shared' ;;
10270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10271 tmp_sharedflag='-qmkshrobj'
10272 tmp_addflag= ;;
10273 nvcc*) # Cuda Compiler Driver 2.2
10274 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'
10275 compiler_needs_object=yes
10276 ;;
10277 esac
10278 case `$CC -V 2>&1 | $SED 5q` in
10279 *Sun\ C*) # Sun C 5.9
10280 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'
10281 compiler_needs_object=yes
10282 tmp_sharedflag='-G' ;;
10283 *Sun\ F*) # Sun Fortran 8.3
10284 tmp_sharedflag='-G' ;;
10285 esac
10286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10287
10288 if test yes = "$supports_anon_versioning"; then
10289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10290 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10291 echo "local: *; };" >> $output_objdir/$libname.ver~
10292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10293 fi
10294
10295 case $cc_basename in
10296 tcc*)
10297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10298 export_dynamic_flag_spec='-rdynamic'
10299 ;;
10300 xlf* | bgf* | bgxlf* | mpixlf*)
10301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10304 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10305 if test yes = "$supports_anon_versioning"; then
10306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10307 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10308 echo "local: *; };" >> $output_objdir/$libname.ver~
10309 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10310 fi
10311 ;;
10312 esac
10313 else
10314 ld_shlibs=no
10315 fi
10316 ;;
10317
10318 *-mlibc)
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10321 ;;
10322
10323 netbsd* | netbsdelf*-gnu)
10324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10325 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10326 wlarc=
10327 else
10328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10329 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10330 fi
10331 ;;
10332
10333 solaris*)
10334 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10335 ld_shlibs=no
10336 cat <<_LT_EOF 1>&2
10337
10338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10339 *** create shared libraries on Solaris systems. Therefore, libtool
10340 *** is disabling shared libraries support. We urge you to upgrade GNU
10341 *** binutils to release 2.9.1 or newer. Another option is to modify
10342 *** your PATH or compiler configuration so that the native linker is
10343 *** used, and then restart.
10344
10345 _LT_EOF
10346 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10348 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10349 else
10350 ld_shlibs=no
10351 fi
10352 ;;
10353
10354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10355 case `$LD -v 2>&1` in
10356 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10357 ld_shlibs=no
10358 cat <<_LT_EOF 1>&2
10359
10360 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10361 *** reliably create shared libraries on SCO systems. Therefore, libtool
10362 *** is disabling shared libraries support. We urge you to upgrade GNU
10363 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10364 *** your PATH or compiler configuration so that the native linker is
10365 *** used, and then restart.
10366
10367 _LT_EOF
10368 ;;
10369 *)
10370 # For security reasons, it is highly recommended that you always
10371 # use absolute paths for naming shared libraries, and exclude the
10372 # DT_RUNPATH tag from executables and libraries. But doing so
10373 # requires that you compile everything twice, which is a pain.
10374 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10378 else
10379 ld_shlibs=no
10380 fi
10381 ;;
10382 esac
10383 ;;
10384
10385 sunos4*)
10386 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10387 wlarc=
10388 hardcode_direct=yes
10389 hardcode_shlibpath_var=no
10390 ;;
10391
10392 *)
10393 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10395 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10396 else
10397 ld_shlibs=no
10398 fi
10399 ;;
10400 esac
10401
10402 if test no = "$ld_shlibs"; then
10403 runpath_var=
10404 hardcode_libdir_flag_spec=
10405 export_dynamic_flag_spec=
10406 whole_archive_flag_spec=
10407 fi
10408 else
10409 # PORTME fill in a description of your system's linker (not GNU ld)
10410 case $host_os in
10411 aix3*)
10412 allow_undefined_flag=unsupported
10413 always_export_symbols=yes
10414 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'
10415 # Note: this linker hardcodes the directories in LIBPATH if there
10416 # are no directories specified by -L.
10417 hardcode_minus_L=yes
10418 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10419 # Neither direct hardcoding nor static linking is supported with a
10420 # broken collect2.
10421 hardcode_direct=unsupported
10422 fi
10423 ;;
10424
10425 aix[4-9]*)
10426 if test ia64 = "$host_cpu"; then
10427 # On IA64, the linker does run time linking by default, so we don't
10428 # have to do anything special.
10429 aix_use_runtimelinking=no
10430 exp_sym_flag='-Bexport'
10431 no_entry_flag=
10432 else
10433 # If we're using GNU nm, then we don't want the "-C" option.
10434 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10435 # Without the "-l" option, or with the "-B" option, AIX nm treats
10436 # weak defined symbols like other global defined symbols, whereas
10437 # GNU nm marks them as "W".
10438 # While the 'weak' keyword is ignored in the Export File, we need
10439 # it in the Import File for the 'aix-soname' feature, so we have
10440 # to replace the "-B" option with "-P" for AIX nm.
10441 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10442 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'
10443 else
10444 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'
10445 fi
10446 aix_use_runtimelinking=no
10447
10448 # Test if we are trying to use run time linking or normal
10449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10450 # have runtime linking enabled, and use it for executables.
10451 # For shared libraries, we enable/disable runtime linking
10452 # depending on the kind of the shared library created -
10453 # when "with_aix_soname,aix_use_runtimelinking" is:
10454 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10455 # "aix,yes" lib.so shared, rtl:yes, for executables
10456 # lib.a static archive
10457 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10458 # lib.a(lib.so.V) shared, rtl:no, for executables
10459 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10460 # lib.a(lib.so.V) shared, rtl:no
10461 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10462 # lib.a static archive
10463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10464 for ld_flag in $LDFLAGS; do
10465 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10466 aix_use_runtimelinking=yes
10467 break
10468 fi
10469 done
10470 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10471 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10472 # so we don't have lib.a shared libs to link our executables.
10473 # We have to force runtime linking in this case.
10474 aix_use_runtimelinking=yes
10475 LDFLAGS="$LDFLAGS -Wl,-brtl"
10476 fi
10477 ;;
10478 esac
10479
10480 exp_sym_flag='-bexport'
10481 no_entry_flag='-bnoentry'
10482 fi
10483
10484 # When large executables or shared objects are built, AIX ld can
10485 # have problems creating the table of contents. If linking a library
10486 # or program results in "error TOC overflow" add -mminimal-toc to
10487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489
10490 archive_cmds=''
10491 hardcode_direct=yes
10492 hardcode_direct_absolute=yes
10493 hardcode_libdir_separator=':'
10494 link_all_deplibs=yes
10495 file_list_spec='$wl-f,'
10496 case $with_aix_soname,$aix_use_runtimelinking in
10497 aix,*) ;; # traditional, no import file
10498 svr4,* | *,yes) # use import file
10499 # The Import File defines what to hardcode.
10500 hardcode_direct=no
10501 hardcode_direct_absolute=no
10502 ;;
10503 esac
10504
10505 if test yes = "$GCC"; then
10506 case $host_os in aix4.[012]|aix4.[012].*)
10507 # We only want to do this on AIX 4.2 and lower, the check
10508 # below for broken collect2 doesn't work under 4.3+
10509 collect2name=`$CC -print-prog-name=collect2`
10510 if test -f "$collect2name" &&
10511 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10512 then
10513 # We have reworked collect2
10514 :
10515 else
10516 # We have old collect2
10517 hardcode_direct=unsupported
10518 # It fails to find uninstalled libraries when the uninstalled
10519 # path is not listed in the libpath. Setting hardcode_minus_L
10520 # to unsupported forces relinking
10521 hardcode_minus_L=yes
10522 hardcode_libdir_flag_spec='-L$libdir'
10523 hardcode_libdir_separator=
10524 fi
10525 ;;
10526 esac
10527 shared_flag='-shared'
10528 if test yes = "$aix_use_runtimelinking"; then
10529 shared_flag="$shared_flag "'$wl-G'
10530 fi
10531 # Need to ensure runtime linking is disabled for the traditional
10532 # shared library, or the linker may eventually find shared libraries
10533 # /with/ Import File - we do not want to mix them.
10534 shared_flag_aix='-shared'
10535 shared_flag_svr4='-shared $wl-G'
10536 else
10537 # not using gcc
10538 if test ia64 = "$host_cpu"; then
10539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10540 # chokes on -Wl,-G. The following line is correct:
10541 shared_flag='-G'
10542 else
10543 if test yes = "$aix_use_runtimelinking"; then
10544 shared_flag='$wl-G'
10545 else
10546 shared_flag='$wl-bM:SRE'
10547 fi
10548 shared_flag_aix='$wl-bM:SRE'
10549 shared_flag_svr4='$wl-G'
10550 fi
10551 fi
10552
10553 export_dynamic_flag_spec='$wl-bexpall'
10554 # It seems that -bexpall does not export symbols beginning with
10555 # underscore (_), so it is better to generate a list of symbols to export.
10556 always_export_symbols=yes
10557 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10558 # Warning - without using the other runtime loading flags (-brtl),
10559 # -berok will link without error, but may produce a broken library.
10560 allow_undefined_flag='-berok'
10561 # Determine the default libpath from the value encoded in an
10562 # empty executable.
10563 if test set = "${lt_cv_aix_libpath+set}"; then
10564 aix_libpath=$lt_cv_aix_libpath
10565 else
10566 if test ${lt_cv_aix_libpath_+y}
10567 then :
10568 printf %s "(cached) " >&6
10569 else case e in #(
10570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572
10573 int
10574 main (void)
10575 {
10576
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"
10582 then :
10583
10584 lt_aix_libpath_sed='
10585 /Import File Strings/,/^$/ {
10586 /^0/ {
10587 s/^0 *\([^ ]*\) *$/\1/
10588 p
10589 }
10590 }'
10591 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10592 # Check for a 64-bit object if we didn't find anything.
10593 if test -z "$lt_cv_aix_libpath_"; then
10594 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10595 fi
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10598 conftest$ac_exeext conftest.$ac_ext
10599 if test -z "$lt_cv_aix_libpath_"; then
10600 lt_cv_aix_libpath_=/usr/lib:/lib
10601 fi
10602 ;;
10603 esac
10604 fi
10605
10606 aix_libpath=$lt_cv_aix_libpath_
10607 fi
10608
10609 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10610 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
10611 else
10612 if test ia64 = "$host_cpu"; then
10613 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10614 allow_undefined_flag="-z nodefs"
10615 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"
10616 else
10617 # Determine the default libpath from the value encoded in an
10618 # empty executable.
10619 if test set = "${lt_cv_aix_libpath+set}"; then
10620 aix_libpath=$lt_cv_aix_libpath
10621 else
10622 if test ${lt_cv_aix_libpath_+y}
10623 then :
10624 printf %s "(cached) " >&6
10625 else case e in #(
10626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629 int
10630 main (void)
10631 {
10632
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"
10638 then :
10639
10640 lt_aix_libpath_sed='
10641 /Import File Strings/,/^$/ {
10642 /^0/ {
10643 s/^0 *\([^ ]*\) *$/\1/
10644 p
10645 }
10646 }'
10647 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10648 # Check for a 64-bit object if we didn't find anything.
10649 if test -z "$lt_cv_aix_libpath_"; then
10650 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10651 fi
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10654 conftest$ac_exeext conftest.$ac_ext
10655 if test -z "$lt_cv_aix_libpath_"; then
10656 lt_cv_aix_libpath_=/usr/lib:/lib
10657 fi
10658 ;;
10659 esac
10660 fi
10661
10662 aix_libpath=$lt_cv_aix_libpath_
10663 fi
10664
10665 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10666 # Warning - without using the other run time loading flags,
10667 # -berok will link without error, but may produce a broken library.
10668 no_undefined_flag=' $wl-bernotok'
10669 allow_undefined_flag=' $wl-berok'
10670 if test yes = "$with_gnu_ld"; then
10671 # We only use this code for GNU lds that support --whole-archive.
10672 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10673 else
10674 # Exported symbols can be pulled into shared objects from archives
10675 whole_archive_flag_spec='$convenience'
10676 fi
10677 archive_cmds_need_lc=yes
10678 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10679 # -brtl affects multiple linker settings, -berok does not and is overridden later
10680 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10681 if test svr4 != "$with_aix_soname"; then
10682 # This is similar to how AIX traditionally builds its shared libraries.
10683 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'
10684 fi
10685 if test aix != "$with_aix_soname"; then
10686 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'
10687 else
10688 # used by -dlpreopen to get the symbols
10689 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10690 fi
10691 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10692 fi
10693 fi
10694 ;;
10695
10696 amigaos*)
10697 case $host_cpu in
10698 powerpc)
10699 # see comment about AmigaOS4 .so support
10700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10701 archive_expsym_cmds=''
10702 ;;
10703 m68k)
10704 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)'
10705 hardcode_libdir_flag_spec='-L$libdir'
10706 hardcode_minus_L=yes
10707 ;;
10708 esac
10709 ;;
10710
10711 bsdi[45]*)
10712 export_dynamic_flag_spec=-rdynamic
10713 ;;
10714
10715 cygwin* | mingw* | windows* | pw32* | cegcc*)
10716 # When not using gcc, we currently assume that we are using
10717 # Microsoft Visual C++ or Intel C++ Compiler.
10718 # hardcode_libdir_flag_spec is actually meaningless, as there is
10719 # no search path for DLLs.
10720 case $cc_basename in
10721 cl* | icl*)
10722 # Native MSVC or ICC
10723 hardcode_libdir_flag_spec=' '
10724 allow_undefined_flag=unsupported
10725 always_export_symbols=yes
10726 file_list_spec='@'
10727 # Tell ltmain to make .lib files, not .a files.
10728 libext=lib
10729 # Tell ltmain to make .dll files, not .so files.
10730 shrext_cmds=.dll
10731 # FIXME: Setting linknames here is a bad hack.
10732 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10733 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10734 cp "$export_symbols" "$output_objdir/$soname.def";
10735 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10736 else
10737 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10738 fi~
10739 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10740 linknames='
10741 # The linker will not automatically build a static lib if we build a DLL.
10742 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10743 enable_shared_with_static_runtimes=yes
10744 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10745 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10746 # Don't use ranlib
10747 old_postinstall_cmds='chmod 644 $oldlib'
10748 postlink_cmds='lt_outputfile="@OUTPUT@"~
10749 lt_tool_outputfile="@TOOL_OUTPUT@"~
10750 case $lt_outputfile in
10751 *.exe|*.EXE) ;;
10752 *)
10753 lt_outputfile=$lt_outputfile.exe
10754 lt_tool_outputfile=$lt_tool_outputfile.exe
10755 ;;
10756 esac~
10757 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10758 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10759 $RM "$lt_outputfile.manifest";
10760 fi'
10761 ;;
10762 *)
10763 # Assume MSVC and ICC wrapper
10764 hardcode_libdir_flag_spec=' '
10765 allow_undefined_flag=unsupported
10766 # Tell ltmain to make .lib files, not .a files.
10767 libext=lib
10768 # Tell ltmain to make .dll files, not .so files.
10769 shrext_cmds=.dll
10770 # FIXME: Setting linknames here is a bad hack.
10771 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10772 # The linker will automatically build a .lib file if we build a DLL.
10773 old_archive_from_new_cmds='true'
10774 # FIXME: Should let the user specify the lib program.
10775 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10776 enable_shared_with_static_runtimes=yes
10777 ;;
10778 esac
10779 ;;
10780
10781 darwin* | rhapsody*)
10782
10783
10784 archive_cmds_need_lc=no
10785 hardcode_direct=no
10786 hardcode_automatic=yes
10787 hardcode_shlibpath_var=unsupported
10788 if test yes = "$lt_cv_ld_force_load"; then
10789 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\"`'
10790
10791 else
10792 whole_archive_flag_spec=''
10793 fi
10794 link_all_deplibs=yes
10795 allow_undefined_flag=$_lt_dar_allow_undefined
10796 case $cc_basename in
10797 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10798 *) _lt_dar_can_shared=$GCC ;;
10799 esac
10800 if test yes = "$_lt_dar_can_shared"; then
10801 output_verbose_link_cmd=func_echo_all
10802 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10803 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10804 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"
10805 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"
10806
10807 else
10808 ld_shlibs=no
10809 fi
10810
10811 ;;
10812
10813 dgux*)
10814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815 hardcode_libdir_flag_spec='-L$libdir'
10816 hardcode_shlibpath_var=no
10817 ;;
10818
10819 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10820 # support. Future versions do this automatically, but an explicit c++rt0.o
10821 # does not break anything, and helps significantly (at the cost of a little
10822 # extra space).
10823 freebsd2.2*)
10824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10825 hardcode_libdir_flag_spec='-R$libdir'
10826 hardcode_direct=yes
10827 hardcode_shlibpath_var=no
10828 ;;
10829
10830 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10831 freebsd2.*)
10832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10833 hardcode_direct=yes
10834 hardcode_minus_L=yes
10835 hardcode_shlibpath_var=no
10836 ;;
10837
10838 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10839 freebsd* | dragonfly* | midnightbsd*)
10840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841 hardcode_libdir_flag_spec='-R$libdir'
10842 hardcode_direct=yes
10843 hardcode_shlibpath_var=no
10844 ;;
10845
10846 hpux9*)
10847 if test yes = "$GCC"; then
10848 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'
10849 else
10850 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'
10851 fi
10852 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10853 hardcode_libdir_separator=:
10854 hardcode_direct=yes
10855
10856 # hardcode_minus_L: Not really in the search PATH,
10857 # but as the default location of the library.
10858 hardcode_minus_L=yes
10859 export_dynamic_flag_spec='$wl-E'
10860 ;;
10861
10862 hpux10*)
10863 if test yes,no = "$GCC,$with_gnu_ld"; then
10864 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10865 else
10866 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10867 fi
10868 if test no = "$with_gnu_ld"; then
10869 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10870 hardcode_libdir_separator=:
10871 hardcode_direct=yes
10872 hardcode_direct_absolute=yes
10873 export_dynamic_flag_spec='$wl-E'
10874 # hardcode_minus_L: Not really in the search PATH,
10875 # but as the default location of the library.
10876 hardcode_minus_L=yes
10877 fi
10878 ;;
10879
10880 hpux11*)
10881 if test yes,no = "$GCC,$with_gnu_ld"; then
10882 case $host_cpu in
10883 hppa*64*)
10884 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 ;;
10886 ia64*)
10887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10888 ;;
10889 *)
10890 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10891 ;;
10892 esac
10893 else
10894 case $host_cpu in
10895 hppa*64*)
10896 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 ;;
10898 ia64*)
10899 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10900 ;;
10901 *)
10902
10903 # Older versions of the 11.00 compiler do not understand -b yet
10904 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10906 printf %s "checking if $CC understands -b... " >&6; }
10907 if test ${lt_cv_prog_compiler__b+y}
10908 then :
10909 printf %s "(cached) " >&6
10910 else case e in #(
10911 e) lt_cv_prog_compiler__b=no
10912 save_LDFLAGS=$LDFLAGS
10913 LDFLAGS="$LDFLAGS -b"
10914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10916 # The linker can only warn and ignore the option if not recognized
10917 # So say no if there are warnings
10918 if test -s conftest.err; then
10919 # Append any errors to the config.log.
10920 cat conftest.err 1>&5
10921 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10923 if diff conftest.exp conftest.er2 >/dev/null; then
10924 lt_cv_prog_compiler__b=yes
10925 fi
10926 else
10927 lt_cv_prog_compiler__b=yes
10928 fi
10929 fi
10930 $RM -r conftest*
10931 LDFLAGS=$save_LDFLAGS
10932 ;;
10933 esac
10934 fi
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10936 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10937
10938 if test yes = "$lt_cv_prog_compiler__b"; then
10939 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10940 else
10941 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10942 fi
10943
10944 ;;
10945 esac
10946 fi
10947 if test no = "$with_gnu_ld"; then
10948 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10949 hardcode_libdir_separator=:
10950
10951 case $host_cpu in
10952 hppa*64*|ia64*)
10953 hardcode_direct=no
10954 hardcode_shlibpath_var=no
10955 ;;
10956 *)
10957 hardcode_direct=yes
10958 hardcode_direct_absolute=yes
10959 export_dynamic_flag_spec='$wl-E'
10960
10961 # hardcode_minus_L: Not really in the search PATH,
10962 # but as the default location of the library.
10963 hardcode_minus_L=yes
10964 ;;
10965 esac
10966 fi
10967 ;;
10968
10969 irix5* | irix6* | nonstopux*)
10970 if test yes = "$GCC"; then
10971 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'
10972 # Try to use the -exported_symbol ld option, if it does not
10973 # work, assume that -exports_file does not work either and
10974 # implicitly export all symbols.
10975 # This should be the same for all languages, so no per-tag cache variable.
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10977 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10978 if test ${lt_cv_irix_exported_symbol+y}
10979 then :
10980 printf %s "(cached) " >&6
10981 else case e in #(
10982 e) save_LDFLAGS=$LDFLAGS
10983 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 int foo (void) { return 0; }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"
10989 then :
10990 lt_cv_irix_exported_symbol=yes
10991 else case e in #(
10992 e) lt_cv_irix_exported_symbol=no ;;
10993 esac
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LDFLAGS=$save_LDFLAGS ;;
10998 esac
10999 fi
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11001 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11002 if test yes = "$lt_cv_irix_exported_symbol"; then
11003 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'
11004 fi
11005 else
11006 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'
11007 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'
11008 fi
11009 archive_cmds_need_lc='no'
11010 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11011 hardcode_libdir_separator=:
11012 inherit_rpath=yes
11013 link_all_deplibs=yes
11014 ;;
11015
11016 linux*)
11017 case $cc_basename in
11018 tcc*)
11019 # Fabrice Bellard et al's Tiny C Compiler
11020 ld_shlibs=yes
11021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11023 ;;
11024 esac
11025 ;;
11026
11027 *-mlibc)
11028 ;;
11029
11030 netbsd* | netbsdelf*-gnu)
11031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11033 else
11034 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11035 fi
11036 hardcode_libdir_flag_spec='-R$libdir'
11037 hardcode_direct=yes
11038 hardcode_shlibpath_var=no
11039 ;;
11040
11041 newsos6)
11042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043 hardcode_direct=yes
11044 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_shlibpath_var=no
11047 ;;
11048
11049 *nto* | *qnx*)
11050 ;;
11051
11052 openbsd*)
11053 if test -f /usr/libexec/ld.so; then
11054 hardcode_direct=yes
11055 hardcode_shlibpath_var=no
11056 hardcode_direct_absolute=yes
11057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11060 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11061 export_dynamic_flag_spec='$wl-E'
11062 else
11063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11064 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11065 fi
11066 else
11067 ld_shlibs=no
11068 fi
11069 ;;
11070
11071 os2*)
11072 hardcode_libdir_flag_spec='-L$libdir'
11073 hardcode_minus_L=yes
11074 allow_undefined_flag=unsupported
11075 shrext_cmds=.dll
11076 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11077 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11078 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11079 $ECHO EXPORTS >> $output_objdir/$libname.def~
11080 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11081 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11082 emximp -o $lib $output_objdir/$libname.def'
11083 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11084 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11085 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11086 $ECHO EXPORTS >> $output_objdir/$libname.def~
11087 prefix_cmds="$SED"~
11088 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11089 prefix_cmds="$prefix_cmds -e 1d";
11090 fi~
11091 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11092 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11094 emximp -o $lib $output_objdir/$libname.def'
11095 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11096 enable_shared_with_static_runtimes=yes
11097 file_list_spec='@'
11098 ;;
11099
11100 osf3*)
11101 if test yes = "$GCC"; then
11102 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11103 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'
11104 else
11105 allow_undefined_flag=' -expect_unresolved \*'
11106 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'
11107 fi
11108 archive_cmds_need_lc='no'
11109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11110 hardcode_libdir_separator=:
11111 ;;
11112
11113 osf4* | osf5*) # as osf3* with the addition of -msym flag
11114 if test yes = "$GCC"; then
11115 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11116 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'
11117 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11118 else
11119 allow_undefined_flag=' -expect_unresolved \*'
11120 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'
11121 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~
11122 $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'
11123
11124 # Both c and cxx compiler support -rpath directly
11125 hardcode_libdir_flag_spec='-rpath $libdir'
11126 fi
11127 archive_cmds_need_lc='no'
11128 hardcode_libdir_separator=:
11129 ;;
11130
11131 serenity*)
11132 ;;
11133
11134 solaris*)
11135 no_undefined_flag=' -z defs'
11136 if test yes = "$GCC"; then
11137 wlarc='$wl'
11138 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11140 $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'
11141 else
11142 case `$CC -V 2>&1` in
11143 *"Compilers 5.0"*)
11144 wlarc=''
11145 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11147 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11148 ;;
11149 *)
11150 wlarc='$wl'
11151 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11153 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11154 ;;
11155 esac
11156 fi
11157 hardcode_libdir_flag_spec='-R$libdir'
11158 hardcode_shlibpath_var=no
11159 case $host_os in
11160 solaris2.[0-5] | solaris2.[0-5].*) ;;
11161 *)
11162 # The compiler driver will combine and reorder linker options,
11163 # but understands '-z linker_flag'. GCC discards it without '$wl',
11164 # but is careful enough not to reorder.
11165 # Supported since Solaris 2.6 (maybe 2.5.1?)
11166 if test yes = "$GCC"; then
11167 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11168 else
11169 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11170 fi
11171 ;;
11172 esac
11173 link_all_deplibs=yes
11174 ;;
11175
11176 sunos4*)
11177 if test sequent = "$host_vendor"; then
11178 # Use $CC to link under sequent, because it throws in some extra .o
11179 # files that make .init and .fini sections work.
11180 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11181 else
11182 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11183 fi
11184 hardcode_libdir_flag_spec='-L$libdir'
11185 hardcode_direct=yes
11186 hardcode_minus_L=yes
11187 hardcode_shlibpath_var=no
11188 ;;
11189
11190 sysv4)
11191 case $host_vendor in
11192 sni)
11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_direct=yes # is this really true???
11195 ;;
11196 siemens)
11197 ## LD is ld it makes a PLAMLIB
11198 ## CC just makes a GrossModule.
11199 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11200 reload_cmds='$CC -r -o $output$reload_objs'
11201 hardcode_direct=no
11202 ;;
11203 motorola)
11204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11206 ;;
11207 esac
11208 runpath_var='LD_RUN_PATH'
11209 hardcode_shlibpath_var=no
11210 ;;
11211
11212 sysv4.3*)
11213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214 hardcode_shlibpath_var=no
11215 export_dynamic_flag_spec='-Bexport'
11216 ;;
11217
11218 sysv4*MP*)
11219 if test -d /usr/nec; then
11220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221 hardcode_shlibpath_var=no
11222 runpath_var=LD_RUN_PATH
11223 hardcode_runpath_var=yes
11224 ld_shlibs=yes
11225 fi
11226 ;;
11227
11228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11229 no_undefined_flag='$wl-z,text'
11230 archive_cmds_need_lc=no
11231 hardcode_shlibpath_var=no
11232 runpath_var='LD_RUN_PATH'
11233
11234 if test yes = "$GCC"; then
11235 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11236 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 else
11238 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11239 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240 fi
11241 ;;
11242
11243 sysv5* | sco3.2v5* | sco5v6*)
11244 # Note: We CANNOT use -z defs as we might desire, because we do not
11245 # link with -lc, and that would cause any symbols used from libc to
11246 # always be unresolved, which means just about no library would
11247 # ever link correctly. If we're not using GNU ld we use -z text
11248 # though, which does catch some bad symbols but isn't as heavy-handed
11249 # as -z defs.
11250 no_undefined_flag='$wl-z,text'
11251 allow_undefined_flag='$wl-z,nodefs'
11252 archive_cmds_need_lc=no
11253 hardcode_shlibpath_var=no
11254 hardcode_libdir_flag_spec='$wl-R,$libdir'
11255 hardcode_libdir_separator=':'
11256 link_all_deplibs=yes
11257 export_dynamic_flag_spec='$wl-Bexport'
11258 runpath_var='LD_RUN_PATH'
11259
11260 if test yes = "$GCC"; then
11261 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263 else
11264 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 fi
11267 ;;
11268
11269 uts4*)
11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271 hardcode_libdir_flag_spec='-L$libdir'
11272 hardcode_shlibpath_var=no
11273 ;;
11274
11275 *)
11276 ld_shlibs=no
11277 ;;
11278 esac
11279
11280 if test sni = "$host_vendor"; then
11281 case $host in
11282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11283 export_dynamic_flag_spec='$wl-Blargedynsym'
11284 ;;
11285 esac
11286 fi
11287 fi
11288
11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11290 printf "%s\n" "$ld_shlibs" >&6; }
11291 test no = "$ld_shlibs" && can_build_shared=no
11292
11293 with_gnu_ld=$with_gnu_ld
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 #
11310 # Do we need to explicitly link libc?
11311 #
11312 case "x$archive_cmds_need_lc" in
11313 x|xyes)
11314 # Assume -lc should be added
11315 archive_cmds_need_lc=yes
11316
11317 if test yes,yes = "$GCC,$enable_shared"; then
11318 case $archive_cmds in
11319 *'~'*)
11320 # FIXME: we may have to deal with multi-command sequences.
11321 ;;
11322 '$CC '*)
11323 # Test whether the compiler implicitly links with -lc since on some
11324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11325 # to ld, don't add -lc before -lgcc.
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11327 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11328 if test ${lt_cv_archive_cmds_need_lc+y}
11329 then :
11330 printf %s "(cached) " >&6
11331 else case e in #(
11332 e) $RM conftest*
11333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11334
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11336 (eval $ac_compile) 2>&5
11337 ac_status=$?
11338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } 2>conftest.err; then
11340 soname=conftest
11341 lib=conftest
11342 libobjs=conftest.$ac_objext
11343 deplibs=
11344 wl=$lt_prog_compiler_wl
11345 pic_flag=$lt_prog_compiler_pic
11346 compiler_flags=-v
11347 linker_flags=-v
11348 verstring=
11349 output_objdir=.
11350 libname=conftest
11351 lt_save_allow_undefined_flag=$allow_undefined_flag
11352 allow_undefined_flag=
11353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11355 ac_status=$?
11356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357 test $ac_status = 0; }
11358 then
11359 lt_cv_archive_cmds_need_lc=no
11360 else
11361 lt_cv_archive_cmds_need_lc=yes
11362 fi
11363 allow_undefined_flag=$lt_save_allow_undefined_flag
11364 else
11365 cat conftest.err 1>&5
11366 fi
11367 $RM conftest*
11368 ;;
11369 esac
11370 fi
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11372 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11373 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11374 ;;
11375 esac
11376 fi
11377 ;;
11378 esac
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11532 printf %s "checking dynamic linker characteristics... " >&6; }
11533
11534 if test yes = "$GCC"; then
11535 case $host_os in
11536 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11537 *) lt_awk_arg='/^libraries:/' ;;
11538 esac
11539 case $host_os in
11540 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11541 *) lt_sed_strip_eq='s|=/|/|g' ;;
11542 esac
11543 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11544 case $lt_search_path_spec in
11545 *\;*)
11546 # if the path contains ";" then we assume it to be the separator
11547 # otherwise default to the standard path separator (i.e. ":") - it is
11548 # assumed that no part of a normal pathname contains ";" but that should
11549 # okay in the real world where ";" in dirpaths is itself problematic.
11550 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11551 ;;
11552 *)
11553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11554 ;;
11555 esac
11556 # Ok, now we have the path, separated by spaces, we can step through it
11557 # and add multilib dir if necessary...
11558 lt_tmp_lt_search_path_spec=
11559 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11560 # ...but if some path component already ends with the multilib dir we assume
11561 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11562 case "$lt_multi_os_dir; $lt_search_path_spec " in
11563 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11564 lt_multi_os_dir=
11565 ;;
11566 esac
11567 for lt_sys_path in $lt_search_path_spec; do
11568 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11570 elif test -n "$lt_multi_os_dir"; then
11571 test -d "$lt_sys_path" && \
11572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11573 fi
11574 done
11575 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11576 BEGIN {RS = " "; FS = "/|\n";} {
11577 lt_foo = "";
11578 lt_count = 0;
11579 for (lt_i = NF; lt_i > 0; lt_i--) {
11580 if ($lt_i != "" && $lt_i != ".") {
11581 if ($lt_i == "..") {
11582 lt_count++;
11583 } else {
11584 if (lt_count == 0) {
11585 lt_foo = "/" $lt_i lt_foo;
11586 } else {
11587 lt_count--;
11588 }
11589 }
11590 }
11591 }
11592 if (lt_foo != "") { lt_freq[lt_foo]++; }
11593 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11594 }'`
11595 # AWK program above erroneously prepends '/' to C:/dos/paths
11596 # for these hosts.
11597 case $host_os in
11598 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11599 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11600 esac
11601 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11602 else
11603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11604 fi
11605 library_names_spec=
11606 libname_spec='lib$name'
11607 soname_spec=
11608 shrext_cmds=.so
11609 postinstall_cmds=
11610 postuninstall_cmds=
11611 finish_cmds=
11612 finish_eval=
11613 shlibpath_var=
11614 shlibpath_overrides_runpath=unknown
11615 version_type=none
11616 dynamic_linker="$host_os ld.so"
11617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11618 need_lib_prefix=unknown
11619 hardcode_into_libs=no
11620
11621 # when you set need_version to no, make sure it does not cause -set_version
11622 # flags to be left without arguments
11623 need_version=unknown
11624
11625
11626
11627 case $host_os in
11628 aix3*)
11629 version_type=linux # correct to gnu/linux during the next big refactor
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11631 shlibpath_var=LIBPATH
11632
11633 # AIX 3 has no versioning support, so we append a major version to the name.
11634 soname_spec='$libname$release$shared_ext$major'
11635 ;;
11636
11637 aix[4-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 hardcode_into_libs=yes
11642 if test ia64 = "$host_cpu"; then
11643 # AIX 5 supports IA64
11644 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 else
11647 # With GCC up to 2.95.x, collect2 would create an import file
11648 # for dependence libraries. The import file would start with
11649 # the line '#! .'. This would cause the generated library to
11650 # depend on '.', always an invalid library. This was fixed in
11651 # development snapshots of GCC prior to 3.0.
11652 case $host_os in
11653 aix4 | aix4.[01] | aix4.[01].*)
11654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11655 echo ' yes '
11656 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11657 :
11658 else
11659 can_build_shared=no
11660 fi
11661 ;;
11662 esac
11663 # Using Import Files as archive members, it is possible to support
11664 # filename-based versioning of shared library archives on AIX. While
11665 # this would work for both with and without runtime linking, it will
11666 # prevent static linking of such archives. So we do filename-based
11667 # shared library versioning with .so extension only, which is used
11668 # when both runtime linking and shared linking is enabled.
11669 # Unfortunately, runtime linking may impact performance, so we do
11670 # not want this to be the default eventually. Also, we use the
11671 # versioned .so libs for executables only if there is the -brtl
11672 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11673 # To allow for filename-based versioning support, we need to create
11674 # libNAME.so.V as an archive file, containing:
11675 # *) an Import File, referring to the versioned filename of the
11676 # archive as well as the shared archive member, telling the
11677 # bitwidth (32 or 64) of that shared object, and providing the
11678 # list of exported symbols of that shared object, eventually
11679 # decorated with the 'weak' keyword
11680 # *) the shared object with the F_LOADONLY flag set, to really avoid
11681 # it being seen by the linker.
11682 # At run time we better use the real file rather than another symlink,
11683 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11684
11685 case $with_aix_soname,$aix_use_runtimelinking in
11686 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11687 # soname into executable. Probably we can add versioning support to
11688 # collect2, so additional links can be useful in future.
11689 aix,yes) # traditional libtool
11690 dynamic_linker='AIX unversionable lib.so'
11691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11692 # instead of lib<name>.a to let people know that these are not
11693 # typical AIX shared libraries.
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 ;;
11696 aix,no) # traditional AIX only
11697 dynamic_linker='AIX lib.a(lib.so.V)'
11698 # We preserve .a as extension for shared libraries through AIX4.2
11699 # and later when we are not doing run time linking.
11700 library_names_spec='$libname$release.a $libname.a'
11701 soname_spec='$libname$release$shared_ext$major'
11702 ;;
11703 svr4,*) # full svr4 only
11704 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11705 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11706 # We do not specify a path in Import Files, so LIBPATH fires.
11707 shlibpath_overrides_runpath=yes
11708 ;;
11709 *,yes) # both, prefer svr4
11710 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11711 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11712 # unpreferred sharedlib libNAME.a needs extra handling
11713 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"'
11714 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"'
11715 # We do not specify a path in Import Files, so LIBPATH fires.
11716 shlibpath_overrides_runpath=yes
11717 ;;
11718 *,no) # both, prefer aix
11719 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11720 library_names_spec='$libname$release.a $libname.a'
11721 soname_spec='$libname$release$shared_ext$major'
11722 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11723 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)'
11724 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"'
11725 ;;
11726 esac
11727 shlibpath_var=LIBPATH
11728 fi
11729 ;;
11730
11731 amigaos*)
11732 case $host_cpu in
11733 powerpc)
11734 # Since July 2007 AmigaOS4 officially supports .so libraries.
11735 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737 ;;
11738 m68k)
11739 library_names_spec='$libname.ixlibrary $libname.a'
11740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11741 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'
11742 ;;
11743 esac
11744 ;;
11745
11746 beos*)
11747 library_names_spec='$libname$shared_ext'
11748 dynamic_linker="$host_os ld.so"
11749 shlibpath_var=LIBRARY_PATH
11750 ;;
11751
11752 bsdi[45]*)
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 need_version=no
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 soname_spec='$libname$release$shared_ext$major'
11757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11761 # the default ld.so.conf also contains /usr/contrib/lib and
11762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11763 # libtool to hard-code these into programs
11764 ;;
11765
11766 cygwin* | mingw* | windows* | pw32* | cegcc*)
11767 version_type=windows
11768 shrext_cmds=.dll
11769 need_version=no
11770 need_lib_prefix=no
11771
11772 case $GCC,$cc_basename in
11773 yes,*)
11774 # gcc
11775 library_names_spec='$libname.dll.a'
11776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11777 # If user builds GCC with multilib enabled,
11778 # it should just install on $(libdir)
11779 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11780 if test xyes = x"$multilib"; then
11781 postinstall_cmds='base_file=`basename \$file`~
11782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11783 dldir=$destdir/`dirname \$dlpath`~
11784 $install_prog $dir/$dlname $destdir/$dlname~
11785 chmod a+x $destdir/$dlname~
11786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11787 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11788 fi'
11789 else
11790 postinstall_cmds='base_file=`basename \$file`~
11791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11792 dldir=$destdir/`dirname \$dlpath`~
11793 test -d \$dldir || mkdir -p \$dldir~
11794 $install_prog $dir/$dlname \$dldir/$dlname~
11795 chmod a+x \$dldir/$dlname~
11796 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11797 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11798 fi'
11799 fi
11800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11801 dlpath=$dir/\$dldll~
11802 $RM \$dlpath'
11803 shlibpath_overrides_runpath=yes
11804
11805 case $host_os in
11806 cygwin*)
11807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11808 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11809
11810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11811 ;;
11812 mingw* | windows* | cegcc*)
11813 # MinGW DLLs use traditional 'lib' prefix
11814 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11815 ;;
11816 pw32*)
11817 # pw32 DLLs use 'pw' prefix rather than 'lib'
11818 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11819 ;;
11820 esac
11821 dynamic_linker='Win32 ld.exe'
11822 ;;
11823
11824 *,cl* | *,icl*)
11825 # Native MSVC or ICC
11826 libname_spec='$name'
11827 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11828 library_names_spec='$libname.dll.lib'
11829
11830 case $build_os in
11831 mingw* | windows*)
11832 sys_lib_search_path_spec=
11833 lt_save_ifs=$IFS
11834 IFS=';'
11835 for lt_path in $LIB
11836 do
11837 IFS=$lt_save_ifs
11838 # Let DOS variable expansion print the short 8.3 style file name.
11839 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11840 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11841 done
11842 IFS=$lt_save_ifs
11843 # Convert to MSYS style.
11844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11845 ;;
11846 cygwin*)
11847 # Convert to unix form, then to dos form, then back to unix form
11848 # but this time dos style (no spaces!) so that the unix form looks
11849 # like /cygdrive/c/PROGRA~1:/cygdr...
11850 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11851 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11852 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11853 ;;
11854 *)
11855 sys_lib_search_path_spec=$LIB
11856 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11857 # It is most probably a Windows format PATH.
11858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11859 else
11860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11861 fi
11862 # FIXME: find the short name or the path components, as spaces are
11863 # common. (e.g. "Program Files" -> "PROGRA~1")
11864 ;;
11865 esac
11866
11867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11868 postinstall_cmds='base_file=`basename \$file`~
11869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11870 dldir=$destdir/`dirname \$dlpath`~
11871 test -d \$dldir || mkdir -p \$dldir~
11872 $install_prog $dir/$dlname \$dldir/$dlname'
11873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11875 $RM \$dlpath'
11876 shlibpath_overrides_runpath=yes
11877 dynamic_linker='Win32 link.exe'
11878 ;;
11879
11880 *)
11881 # Assume MSVC and ICC wrapper
11882 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11883 dynamic_linker='Win32 ld.exe'
11884 ;;
11885 esac
11886 # FIXME: first we should search . and the directory the executable is in
11887 shlibpath_var=PATH
11888 ;;
11889
11890 darwin* | rhapsody*)
11891 dynamic_linker="$host_os dyld"
11892 version_type=darwin
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11896 soname_spec='$libname$release$major$shared_ext'
11897 shlibpath_overrides_runpath=yes
11898 shlibpath_var=DYLD_LIBRARY_PATH
11899 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11900
11901 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11903 ;;
11904
11905 dgux*)
11906 version_type=linux # correct to gnu/linux during the next big refactor
11907 need_lib_prefix=no
11908 need_version=no
11909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910 soname_spec='$libname$release$shared_ext$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 ;;
11913
11914 freebsd* | dragonfly* | midnightbsd*)
11915 # DragonFly does not have aout. When/if they implement a new
11916 # versioning mechanism, adjust this.
11917 if test -x /usr/bin/objformat; then
11918 objformat=`/usr/bin/objformat`
11919 else
11920 case $host_os in
11921 freebsd[23].*) objformat=aout ;;
11922 *) objformat=elf ;;
11923 esac
11924 fi
11925 version_type=freebsd-$objformat
11926 case $version_type in
11927 freebsd-elf*)
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929 soname_spec='$libname$release$shared_ext$major'
11930 need_version=no
11931 need_lib_prefix=no
11932 ;;
11933 freebsd-*)
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11935 need_version=yes
11936 ;;
11937 esac
11938 case $host_cpu in
11939 powerpc64)
11940 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11941 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 int test_pointer_size[sizeof (void *) - 5];
11945
11946 _ACEOF
11947 if ac_fn_c_try_compile "$LINENO"
11948 then :
11949 shlibpath_var=LD_LIBRARY_PATH
11950 else case e in #(
11951 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11952 esac
11953 fi
11954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11955 ;;
11956 *)
11957 shlibpath_var=LD_LIBRARY_PATH
11958 ;;
11959 esac
11960 case $host_os in
11961 freebsd2.*)
11962 shlibpath_overrides_runpath=yes
11963 ;;
11964 freebsd3.[01]* | freebsdelf3.[01]*)
11965 shlibpath_overrides_runpath=yes
11966 hardcode_into_libs=yes
11967 ;;
11968 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11969 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11970 shlibpath_overrides_runpath=no
11971 hardcode_into_libs=yes
11972 ;;
11973 *) # from 4.6 on, and DragonFly
11974 shlibpath_overrides_runpath=yes
11975 hardcode_into_libs=yes
11976 ;;
11977 esac
11978 ;;
11979
11980 haiku*)
11981 version_type=linux # correct to gnu/linux during the next big refactor
11982 need_lib_prefix=no
11983 need_version=no
11984 dynamic_linker="$host_os runtime_loader"
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
11987 shlibpath_var=LIBRARY_PATH
11988 shlibpath_overrides_runpath=no
11989 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11990 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11991 hardcode_into_libs=no
11992 ;;
11993
11994 hpux9* | hpux10* | hpux11*)
11995 # Give a soname corresponding to the major version so that dld.sl refuses to
11996 # link against other versions.
11997 version_type=sunos
11998 need_lib_prefix=no
11999 need_version=no
12000 case $host_cpu in
12001 ia64*)
12002 shrext_cmds='.so'
12003 hardcode_into_libs=yes
12004 dynamic_linker="$host_os dld.so"
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12008 soname_spec='$libname$release$shared_ext$major'
12009 if test 32 = "$HPUX_IA64_MODE"; then
12010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12011 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12012 else
12013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12014 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12015 fi
12016 ;;
12017 hppa*64*)
12018 shrext_cmds='.sl'
12019 hardcode_into_libs=yes
12020 dynamic_linker="$host_os dld.sl"
12021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext$major'
12025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027 ;;
12028 *)
12029 shrext_cmds='.sl'
12030 dynamic_linker="$host_os dld.sl"
12031 shlibpath_var=SHLIB_PATH
12032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034 soname_spec='$libname$release$shared_ext$major'
12035 ;;
12036 esac
12037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12038 postinstall_cmds='chmod 555 $lib'
12039 # or fails outright, so override atomically:
12040 install_override_mode=555
12041 ;;
12042
12043 interix[3-9]*)
12044 version_type=linux # correct to gnu/linux during the next big refactor
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext$major'
12049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=no
12052 hardcode_into_libs=yes
12053 ;;
12054
12055 irix5* | irix6* | nonstopux*)
12056 case $host_os in
12057 nonstopux*) version_type=nonstopux ;;
12058 *)
12059 if test yes = "$lt_cv_prog_gnu_ld"; then
12060 version_type=linux # correct to gnu/linux during the next big refactor
12061 else
12062 version_type=irix
12063 fi ;;
12064 esac
12065 need_lib_prefix=no
12066 need_version=no
12067 soname_spec='$libname$release$shared_ext$major'
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12069 case $host_os in
12070 irix5* | nonstopux*)
12071 libsuff= shlibsuff=
12072 ;;
12073 *)
12074 case $LD in # libtool.m4 will add one of these switches to LD
12075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12076 libsuff= shlibsuff= libmagic=32-bit;;
12077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12078 libsuff=32 shlibsuff=N32 libmagic=N32;;
12079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12081 *) libsuff= shlibsuff= libmagic=never-match;;
12082 esac
12083 ;;
12084 esac
12085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12086 shlibpath_overrides_runpath=no
12087 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12088 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12089 hardcode_into_libs=yes
12090 ;;
12091
12092 # No shared lib support for Linux oldld, aout, or coff.
12093 linux*oldld* | linux*aout* | linux*coff*)
12094 dynamic_linker=no
12095 ;;
12096
12097 linux*android*)
12098 version_type=none # Android doesn't support versioned libraries.
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12102 soname_spec='$libname$release$shared_ext'
12103 finish_cmds=
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=yes
12106
12107 # This implies no fast_install, which is unacceptable.
12108 # Some rework will be needed to allow for fast_install
12109 # before this can be enabled.
12110 hardcode_into_libs=yes
12111
12112 dynamic_linker='Android linker'
12113 # -rpath works at least for libraries that are not overridden by
12114 # libraries installed in system locations.
12115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12116 ;;
12117
12118 # This must be glibc/ELF.
12119 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12120 version_type=linux # correct to gnu/linux during the next big refactor
12121 need_lib_prefix=no
12122 need_version=no
12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12124 soname_spec='$libname$release$shared_ext$major'
12125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=no
12128
12129 # Some binutils ld are patched to set DT_RUNPATH
12130 if test ${lt_cv_shlibpath_overrides_runpath+y}
12131 then :
12132 printf %s "(cached) " >&6
12133 else case e in #(
12134 e) lt_cv_shlibpath_overrides_runpath=no
12135 save_LDFLAGS=$LDFLAGS
12136 save_libdir=$libdir
12137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 int
12143 main (void)
12144 {
12145
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"
12151 then :
12152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12153 then :
12154 lt_cv_shlibpath_overrides_runpath=yes
12155 fi
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LDFLAGS=$save_LDFLAGS
12160 libdir=$save_libdir
12161 ;;
12162 esac
12163 fi
12164
12165 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12166
12167 # This implies no fast_install, which is unacceptable.
12168 # Some rework will be needed to allow for fast_install
12169 # before this can be enabled.
12170 hardcode_into_libs=yes
12171
12172 # Ideally, we could use ldconfig to report *all* directories which are
12173 # searched for libraries, however this is still not possible. Aside from not
12174 # being certain /sbin/ldconfig is available, command
12175 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12176 # even though it is searched at run-time. Try to do the best guess by
12177 # appending ld.so.conf contents (and includes) to the search path.
12178 if test -f /etc/ld.so.conf; then
12179 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' ' '`
12180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12181 fi
12182
12183 # We used to test for /lib/ld.so.1 and disable shared libraries on
12184 # powerpc, because MkLinux only supported shared libraries with the
12185 # GNU dynamic linker. Since this was broken with cross compilers,
12186 # most powerpc-linux boxes support dynamic linking these days and
12187 # people can always --disable-shared, the test was removed, and we
12188 # assume the GNU/Linux dynamic linker is in use.
12189 dynamic_linker='GNU/Linux ld.so'
12190 ;;
12191
12192 netbsdelf*-gnu)
12193 version_type=linux
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12197 soname_spec='$libname$release$shared_ext$major'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=no
12200 hardcode_into_libs=yes
12201 dynamic_linker='NetBSD ld.elf_so'
12202 ;;
12203
12204 netbsd*)
12205 version_type=sunos
12206 need_lib_prefix=no
12207 need_version=no
12208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211 dynamic_linker='NetBSD (a.out) ld.so'
12212 else
12213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214 soname_spec='$libname$release$shared_ext$major'
12215 dynamic_linker='NetBSD ld.elf_so'
12216 fi
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=yes
12219 hardcode_into_libs=yes
12220 ;;
12221
12222 *-mlibc)
12223 version_type=linux # correct to gnu/linux during the next big refactor
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 dynamic_linker='mlibc ld.so'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=no
12231 hardcode_into_libs=yes
12232 ;;
12233
12234 newsos6)
12235 version_type=linux # correct to gnu/linux during the next big refactor
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 ;;
12240
12241 *nto* | *qnx*)
12242 version_type=qnx
12243 need_lib_prefix=no
12244 need_version=no
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=no
12249 hardcode_into_libs=yes
12250 dynamic_linker='ldqnx.so'
12251 ;;
12252
12253 openbsd*)
12254 version_type=sunos
12255 sys_lib_dlsearch_path_spec=/usr/lib
12256 need_lib_prefix=no
12257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12258 need_version=no
12259 else
12260 need_version=yes
12261 fi
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=yes
12266 ;;
12267
12268 os2*)
12269 libname_spec='$name'
12270 version_type=windows
12271 shrext_cmds=.dll
12272 need_version=no
12273 need_lib_prefix=no
12274 # OS/2 can only load a DLL with a base name of 8 characters or less.
12275 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12276 v=$($ECHO $release$versuffix | tr -d .-);
12277 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12278 $ECHO $n$v`$shared_ext'
12279 library_names_spec='${libname}_dll.$libext'
12280 dynamic_linker='OS/2 ld.exe'
12281 shlibpath_var=BEGINLIBPATH
12282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284 postinstall_cmds='base_file=`basename \$file`~
12285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12286 dldir=$destdir/`dirname \$dlpath`~
12287 test -d \$dldir || mkdir -p \$dldir~
12288 $install_prog $dir/$dlname \$dldir/$dlname~
12289 chmod a+x \$dldir/$dlname~
12290 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12291 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12292 fi'
12293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12294 dlpath=$dir/\$dldll~
12295 $RM \$dlpath'
12296 ;;
12297
12298 osf3* | osf4* | osf5*)
12299 version_type=osf
12300 need_lib_prefix=no
12301 need_version=no
12302 soname_spec='$libname$release$shared_ext$major'
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307 ;;
12308
12309 rdos*)
12310 dynamic_linker=no
12311 ;;
12312
12313 serenity*)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 soname_spec='$libname$release$shared_ext$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=no
12321 dynamic_linker='SerenityOS LibELF'
12322 ;;
12323
12324 solaris*)
12325 version_type=linux # correct to gnu/linux during the next big refactor
12326 need_lib_prefix=no
12327 need_version=no
12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329 soname_spec='$libname$release$shared_ext$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath=yes
12332 hardcode_into_libs=yes
12333 # ldd complains unless libraries are executable
12334 postinstall_cmds='chmod +x $lib'
12335 ;;
12336
12337 sunos4*)
12338 version_type=sunos
12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 shlibpath_overrides_runpath=yes
12343 if test yes = "$with_gnu_ld"; then
12344 need_lib_prefix=no
12345 fi
12346 need_version=yes
12347 ;;
12348
12349 sysv4 | sysv4.3*)
12350 version_type=linux # correct to gnu/linux during the next big refactor
12351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352 soname_spec='$libname$release$shared_ext$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 case $host_vendor in
12355 sni)
12356 shlibpath_overrides_runpath=no
12357 need_lib_prefix=no
12358 runpath_var=LD_RUN_PATH
12359 ;;
12360 siemens)
12361 need_lib_prefix=no
12362 ;;
12363 motorola)
12364 need_lib_prefix=no
12365 need_version=no
12366 shlibpath_overrides_runpath=no
12367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368 ;;
12369 esac
12370 ;;
12371
12372 sysv4*MP*)
12373 if test -d /usr/nec; then
12374 version_type=linux # correct to gnu/linux during the next big refactor
12375 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12376 soname_spec='$libname$shared_ext.$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 fi
12379 ;;
12380
12381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382 version_type=sco
12383 need_lib_prefix=no
12384 need_version=no
12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12386 soname_spec='$libname$release$shared_ext$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=yes
12389 hardcode_into_libs=yes
12390 if test yes = "$with_gnu_ld"; then
12391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12392 else
12393 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12394 case $host_os in
12395 sco3.2v5*)
12396 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12397 ;;
12398 esac
12399 fi
12400 sys_lib_dlsearch_path_spec='/usr/lib'
12401 ;;
12402
12403 tpf*)
12404 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12405 version_type=linux # correct to gnu/linux during the next big refactor
12406 need_lib_prefix=no
12407 need_version=no
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=no
12411 hardcode_into_libs=yes
12412 ;;
12413
12414 uts4*)
12415 version_type=linux # correct to gnu/linux during the next big refactor
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417 soname_spec='$libname$release$shared_ext$major'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 ;;
12420
12421 emscripten*)
12422 version_type=none
12423 need_lib_prefix=no
12424 need_version=no
12425 library_names_spec='$libname$release$shared_ext'
12426 soname_spec='$libname$release$shared_ext'
12427 finish_cmds=
12428 dynamic_linker="Emscripten linker"
12429 lt_prog_compiler_wl=
12430 lt_prog_compiler_pic=
12431 lt_prog_compiler_static=
12432
12433
12434 if test yes = "$GCC"; then
12435 lt_prog_compiler_wl='-Wl,'
12436 lt_prog_compiler_static='-static'
12437
12438 case $host_os in
12439 aix*)
12440 # All AIX code is PIC.
12441 if test ia64 = "$host_cpu"; then
12442 # AIX 5 now supports IA64 processor
12443 lt_prog_compiler_static='-Bstatic'
12444 fi
12445 lt_prog_compiler_pic='-fPIC'
12446 ;;
12447
12448 amigaos*)
12449 case $host_cpu in
12450 powerpc)
12451 # see comment about AmigaOS4 .so support
12452 lt_prog_compiler_pic='-fPIC'
12453 ;;
12454 m68k)
12455 # FIXME: we need at least 68020 code to build shared libraries, but
12456 # adding the '-m68020' flag to GCC prevents building anything better,
12457 # like '-m68040'.
12458 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12459 ;;
12460 esac
12461 ;;
12462
12463 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12464 # PIC is the default for these OSes.
12465 ;;
12466
12467 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12468 # This hack is so that the source file can tell whether it is being
12469 # built for inclusion in a dll (and should export symbols for example).
12470 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12471 # (--disable-auto-import) libraries
12472 lt_prog_compiler_pic='-DDLL_EXPORT'
12473 case $host_os in
12474 os2*)
12475 lt_prog_compiler_static='$wl-static'
12476 ;;
12477 esac
12478 ;;
12479
12480 darwin* | rhapsody*)
12481 # PIC is the default on this platform
12482 # Common symbols not allowed in MH_DYLIB files
12483 lt_prog_compiler_pic='-fno-common'
12484 ;;
12485
12486 haiku*)
12487 # PIC is the default for Haiku.
12488 # The "-static" flag exists, but is broken.
12489 lt_prog_compiler_static=
12490 ;;
12491
12492 hpux*)
12493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12495 # sets the default TLS model and affects inlining.
12496 case $host_cpu in
12497 hppa*64*)
12498 # +Z the default
12499 ;;
12500 *)
12501 lt_prog_compiler_pic='-fPIC'
12502 ;;
12503 esac
12504 ;;
12505
12506 interix[3-9]*)
12507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12508 # Instead, we relocate shared libraries at runtime.
12509 ;;
12510
12511 msdosdjgpp*)
12512 # Just because we use GCC doesn't mean we suddenly get shared libraries
12513 # on systems that don't support them.
12514 lt_prog_compiler_can_build_shared=no
12515 enable_shared=no
12516 ;;
12517
12518 *nto* | *qnx*)
12519 # QNX uses GNU C++, but need to define -shared option too, otherwise
12520 # it will coredump.
12521 lt_prog_compiler_pic='-fPIC -shared'
12522 ;;
12523
12524 sysv4*MP*)
12525 if test -d /usr/nec; then
12526 lt_prog_compiler_pic=-Kconform_pic
12527 fi
12528 ;;
12529
12530 *)
12531 lt_prog_compiler_pic='-fPIC'
12532 ;;
12533 esac
12534
12535 case $cc_basename in
12536 nvcc*) # Cuda Compiler Driver 2.2
12537 lt_prog_compiler_wl='-Xlinker '
12538 if test -n "$lt_prog_compiler_pic"; then
12539 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12540 fi
12541 ;;
12542 esac
12543 else
12544 # PORTME Check for flag to pass linker flags through the system compiler.
12545 case $host_os in
12546 aix*)
12547 lt_prog_compiler_wl='-Wl,'
12548 if test ia64 = "$host_cpu"; then
12549 # AIX 5 now supports IA64 processor
12550 lt_prog_compiler_static='-Bstatic'
12551 else
12552 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12553 fi
12554 ;;
12555
12556 darwin* | rhapsody*)
12557 # PIC is the default on this platform
12558 # Common symbols not allowed in MH_DYLIB files
12559 lt_prog_compiler_pic='-fno-common'
12560 case $cc_basename in
12561 nagfor*)
12562 # NAG Fortran compiler
12563 lt_prog_compiler_wl='-Wl,-Wl,,'
12564 lt_prog_compiler_pic='-PIC'
12565 lt_prog_compiler_static='-Bstatic'
12566 ;;
12567 esac
12568 ;;
12569
12570 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12571 # This hack is so that the source file can tell whether it is being
12572 # built for inclusion in a dll (and should export symbols for example).
12573 lt_prog_compiler_pic='-DDLL_EXPORT'
12574 case $host_os in
12575 os2*)
12576 lt_prog_compiler_static='$wl-static'
12577 ;;
12578 esac
12579 ;;
12580
12581 hpux9* | hpux10* | hpux11*)
12582 lt_prog_compiler_wl='-Wl,'
12583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12584 # not for PA HP-UX.
12585 case $host_cpu in
12586 hppa*64*|ia64*)
12587 # +Z the default
12588 ;;
12589 *)
12590 lt_prog_compiler_pic='+Z'
12591 ;;
12592 esac
12593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12594 lt_prog_compiler_static='$wl-a ${wl}archive'
12595 ;;
12596
12597 irix5* | irix6* | nonstopux*)
12598 lt_prog_compiler_wl='-Wl,'
12599 # PIC (with -KPIC) is the default.
12600 lt_prog_compiler_static='-non_shared'
12601 ;;
12602
12603 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12604 case $cc_basename in
12605 # old Intel for x86_64, which still supported -KPIC.
12606 ecc*)
12607 lt_prog_compiler_wl='-Wl,'
12608 lt_prog_compiler_pic='-KPIC'
12609 lt_prog_compiler_static='-static'
12610 ;;
12611 *flang* | ftn | f18* | f95*)
12612 # Flang compiler.
12613 lt_prog_compiler_wl='-Wl,'
12614 lt_prog_compiler_pic='-fPIC'
12615 lt_prog_compiler_static='-static'
12616 ;;
12617 # icc used to be incompatible with GCC.
12618 # ICC 10 doesn't accept -KPIC any more.
12619 icc* | ifort*)
12620 lt_prog_compiler_wl='-Wl,'
12621 lt_prog_compiler_pic='-fPIC'
12622 lt_prog_compiler_static='-static'
12623 ;;
12624 # Lahey Fortran 8.1.
12625 lf95*)
12626 lt_prog_compiler_wl='-Wl,'
12627 lt_prog_compiler_pic='--shared'
12628 lt_prog_compiler_static='--static'
12629 ;;
12630 nagfor*)
12631 # NAG Fortran compiler
12632 lt_prog_compiler_wl='-Wl,-Wl,,'
12633 lt_prog_compiler_pic='-PIC'
12634 lt_prog_compiler_static='-Bstatic'
12635 ;;
12636 tcc*)
12637 # Fabrice Bellard et al's Tiny C Compiler
12638 lt_prog_compiler_wl='-Wl,'
12639 lt_prog_compiler_pic='-fPIC'
12640 lt_prog_compiler_static='-static'
12641 ;;
12642 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12643 # Portland Group compilers (*not* the Pentium gcc compiler,
12644 # which looks to be a dead project)
12645 lt_prog_compiler_wl='-Wl,'
12646 lt_prog_compiler_pic='-fpic'
12647 lt_prog_compiler_static='-Bstatic'
12648 ;;
12649 ccc*)
12650 lt_prog_compiler_wl='-Wl,'
12651 # All Alpha code is PIC.
12652 lt_prog_compiler_static='-non_shared'
12653 ;;
12654 xl* | bgxl* | bgf* | mpixl*)
12655 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12656 lt_prog_compiler_wl='-Wl,'
12657 lt_prog_compiler_pic='-qpic'
12658 lt_prog_compiler_static='-qstaticlink'
12659 ;;
12660 *)
12661 case `$CC -V 2>&1 | $SED 5q` in
12662 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12664 lt_prog_compiler_pic='-KPIC'
12665 lt_prog_compiler_static='-Bstatic'
12666 lt_prog_compiler_wl=''
12667 ;;
12668 *Sun\ F* | *Sun*Fortran*)
12669 lt_prog_compiler_pic='-KPIC'
12670 lt_prog_compiler_static='-Bstatic'
12671 lt_prog_compiler_wl='-Qoption ld '
12672 ;;
12673 *Sun\ C*)
12674 # Sun C 5.9
12675 lt_prog_compiler_pic='-KPIC'
12676 lt_prog_compiler_static='-Bstatic'
12677 lt_prog_compiler_wl='-Wl,'
12678 ;;
12679 *Intel*\ [CF]*Compiler*)
12680 lt_prog_compiler_wl='-Wl,'
12681 lt_prog_compiler_pic='-fPIC'
12682 lt_prog_compiler_static='-static'
12683 ;;
12684 *Portland\ Group*)
12685 lt_prog_compiler_wl='-Wl,'
12686 lt_prog_compiler_pic='-fpic'
12687 lt_prog_compiler_static='-Bstatic'
12688 ;;
12689 esac
12690 ;;
12691 esac
12692 ;;
12693
12694 newsos6)
12695 lt_prog_compiler_pic='-KPIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 ;;
12698
12699 *-mlibc)
12700 lt_prog_compiler_wl='-Wl,'
12701 lt_prog_compiler_pic='-fPIC'
12702 lt_prog_compiler_static='-static'
12703 ;;
12704
12705 *nto* | *qnx*)
12706 # QNX uses GNU C++, but need to define -shared option too, otherwise
12707 # it will coredump.
12708 lt_prog_compiler_pic='-fPIC -shared'
12709 ;;
12710
12711 osf3* | osf4* | osf5*)
12712 lt_prog_compiler_wl='-Wl,'
12713 # All OSF/1 code is PIC.
12714 lt_prog_compiler_static='-non_shared'
12715 ;;
12716
12717 rdos*)
12718 lt_prog_compiler_static='-non_shared'
12719 ;;
12720
12721 serenity*)
12722 ;;
12723
12724 solaris*)
12725 lt_prog_compiler_pic='-KPIC'
12726 lt_prog_compiler_static='-Bstatic'
12727 case $cc_basename in
12728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12729 lt_prog_compiler_wl='-Qoption ld ';;
12730 *)
12731 lt_prog_compiler_wl='-Wl,';;
12732 esac
12733 ;;
12734
12735 sunos4*)
12736 lt_prog_compiler_wl='-Qoption ld '
12737 lt_prog_compiler_pic='-PIC'
12738 lt_prog_compiler_static='-Bstatic'
12739 ;;
12740
12741 sysv4 | sysv4.2uw2* | sysv4.3*)
12742 lt_prog_compiler_wl='-Wl,'
12743 lt_prog_compiler_pic='-KPIC'
12744 lt_prog_compiler_static='-Bstatic'
12745 ;;
12746
12747 sysv4*MP*)
12748 if test -d /usr/nec; then
12749 lt_prog_compiler_pic='-Kconform_pic'
12750 lt_prog_compiler_static='-Bstatic'
12751 fi
12752 ;;
12753
12754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12755 lt_prog_compiler_wl='-Wl,'
12756 lt_prog_compiler_pic='-KPIC'
12757 lt_prog_compiler_static='-Bstatic'
12758 ;;
12759
12760 unicos*)
12761 lt_prog_compiler_wl='-Wl,'
12762 lt_prog_compiler_can_build_shared=no
12763 ;;
12764
12765 uts4*)
12766 lt_prog_compiler_pic='-pic'
12767 lt_prog_compiler_static='-Bstatic'
12768 ;;
12769
12770 *)
12771 lt_prog_compiler_can_build_shared=no
12772 ;;
12773 esac
12774 fi
12775
12776 case $host_os in
12777 # For platforms that do not support PIC, -DPIC is meaningless:
12778 *djgpp*)
12779 lt_prog_compiler_pic=
12780 ;;
12781 *)
12782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12783 ;;
12784 esac
12785
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12787 printf %s "checking for $compiler option to produce PIC... " >&6; }
12788 if test ${lt_cv_prog_compiler_pic+y}
12789 then :
12790 printf %s "(cached) " >&6
12791 else case e in #(
12792 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12793 esac
12794 fi
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12796 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12797 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12798
12799 #
12800 # Check to make sure the PIC flag actually works.
12801 #
12802 if test -n "$lt_prog_compiler_pic"; then
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12804 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12805 if test ${lt_cv_prog_compiler_pic_works+y}
12806 then :
12807 printf %s "(cached) " >&6
12808 else case e in #(
12809 e) lt_cv_prog_compiler_pic_works=no
12810 ac_outfile=conftest.$ac_objext
12811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12812 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12813 # Insert the option either (1) after the last *FLAGS variable, or
12814 # (2) before a word containing "conftest.", or (3) at the end.
12815 # Note that $ac_compile itself does not contain backslashes and begins
12816 # with a dollar sign (not a hyphen), so the echo should work correctly.
12817 # The option is referenced via a variable to avoid confusing sed.
12818 lt_compile=`echo "$ac_compile" | $SED \
12819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12821 -e 's:$: $lt_compiler_flag:'`
12822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12823 (eval "$lt_compile" 2>conftest.err)
12824 ac_status=$?
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 if (exit $ac_status) && test -s "$ac_outfile"; then
12828 # The compiler can only warn and ignore the option if not recognized
12829 # So say no if there are warnings other than the usual output.
12830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12833 lt_cv_prog_compiler_pic_works=yes
12834 fi
12835 fi
12836 $RM conftest*
12837 ;;
12838 esac
12839 fi
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12841 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12842
12843 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12844 case $lt_prog_compiler_pic in
12845 "" | " "*) ;;
12846 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12847 esac
12848 else
12849 lt_prog_compiler_pic=
12850 lt_prog_compiler_can_build_shared=no
12851 fi
12852
12853 fi
12854
12855
12856
12857
12858
12859 #
12860 # Check to make sure the static flag actually works.
12861 #
12862 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12864 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12865 if test ${lt_cv_prog_compiler_static_works+y}
12866 then :
12867 printf %s "(cached) " >&6
12868 else case e in #(
12869 e) lt_cv_prog_compiler_static_works=no
12870 save_LDFLAGS=$LDFLAGS
12871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12874 # The linker can only warn and ignore the option if not recognized
12875 # So say no if there are warnings
12876 if test -s conftest.err; then
12877 # Append any errors to the config.log.
12878 cat conftest.err 1>&5
12879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12881 if diff conftest.exp conftest.er2 >/dev/null; then
12882 lt_cv_prog_compiler_static_works=yes
12883 fi
12884 else
12885 lt_cv_prog_compiler_static_works=yes
12886 fi
12887 fi
12888 $RM -r conftest*
12889 LDFLAGS=$save_LDFLAGS
12890 ;;
12891 esac
12892 fi
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12894 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12895
12896 if test yes = "$lt_cv_prog_compiler_static_works"; then
12897 :
12898 else
12899 lt_prog_compiler_static=
12900 fi
12901
12902
12903
12904 ='-fPIC'
12905 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12906 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12907 archive_cmds_need_lc=no
12908 no_undefined_flag=
12909 ;;
12910
12911 *)
12912 dynamic_linker=no
12913 ;;
12914 esac
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12916 printf "%s\n" "$dynamic_linker" >&6; }
12917 test no = "$dynamic_linker" && can_build_shared=no
12918
12919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12920 if test yes = "$GCC"; then
12921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12922 fi
12923
12924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12926 fi
12927
12928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12930 fi
12931
12932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12934
12935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12937
12938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13038 printf %s "checking how to hardcode library paths into programs... " >&6; }
13039 hardcode_action=
13040 if test -n "$hardcode_libdir_flag_spec" ||
13041 test -n "$runpath_var" ||
13042 test yes = "$hardcode_automatic"; then
13043
13044 # We can hardcode non-existent directories.
13045 if test no != "$hardcode_direct" &&
13046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13047 # have to relink, otherwise we might link with an installed library
13048 # when we should be linking with a yet-to-be-installed one
13049 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13050 test no != "$hardcode_minus_L"; then
13051 # Linking always hardcodes the temporary library directory.
13052 hardcode_action=relink
13053 else
13054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13055 hardcode_action=immediate
13056 fi
13057 else
13058 # We cannot hardcode anything, or else we can only hardcode existing
13059 # directories.
13060 hardcode_action=unsupported
13061 fi
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13063 printf "%s\n" "$hardcode_action" >&6; }
13064
13065 if test relink = "$hardcode_action" ||
13066 test yes = "$inherit_rpath"; then
13067 # Fast installation is not supported
13068 enable_fast_install=no
13069 elif test yes = "$shlibpath_overrides_runpath" ||
13070 test no = "$enable_shared"; then
13071 # Fast installation is not necessary
13072 enable_fast_install=needless
13073 fi
13074
13075
13076
13077
13078
13079
13080 if test yes != "$enable_dlopen"; then
13081 enable_dlopen=unknown
13082 enable_dlopen_self=unknown
13083 enable_dlopen_self_static=unknown
13084 else
13085 lt_cv_dlopen=no
13086 lt_cv_dlopen_libs=
13087
13088 case $host_os in
13089 beos*)
13090 lt_cv_dlopen=load_add_on
13091 lt_cv_dlopen_libs=
13092 lt_cv_dlopen_self=yes
13093 ;;
13094
13095 mingw* | windows* | pw32* | cegcc*)
13096 lt_cv_dlopen=LoadLibrary
13097 lt_cv_dlopen_libs=
13098 ;;
13099
13100 cygwin*)
13101 lt_cv_dlopen=dlopen
13102 lt_cv_dlopen_libs=
13103 ;;
13104
13105 darwin*)
13106 # if libdl is installed we need to link against it
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13108 printf %s "checking for dlopen in -ldl... " >&6; }
13109 if test ${ac_cv_lib_dl_dlopen+y}
13110 then :
13111 printf %s "(cached) " >&6
13112 else case e in #(
13113 e) ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-ldl $LIBS"
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply.
13121 The 'extern "C"' is for builds by C++ compilers;
13122 although this is not generally supported in C code supporting it here
13123 has little cost and some practical benefit (sr 110532). */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char dlopen (void);
13128 int
13129 main (void)
13130 {
13131 return dlopen ();
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"
13137 then :
13138 ac_cv_lib_dl_dlopen=yes
13139 else case e in #(
13140 e) ac_cv_lib_dl_dlopen=no ;;
13141 esac
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS ;;
13146 esac
13147 fi
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13149 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13150 if test "x$ac_cv_lib_dl_dlopen" = xyes
13151 then :
13152 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13153 else case e in #(
13154 e)
13155 lt_cv_dlopen=dyld
13156 lt_cv_dlopen_libs=
13157 lt_cv_dlopen_self=yes
13158 ;;
13159 esac
13160 fi
13161
13162 ;;
13163
13164 tpf*)
13165 # Don't try to run any link tests for TPF. We know it's impossible
13166 # because TPF is a cross-compiler, and we know how we open DSOs.
13167 lt_cv_dlopen=dlopen
13168 lt_cv_dlopen_libs=
13169 lt_cv_dlopen_self=no
13170 ;;
13171
13172 *)
13173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13174 if test "x$ac_cv_func_shl_load" = xyes
13175 then :
13176 lt_cv_dlopen=shl_load
13177 else case e in #(
13178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13179 printf %s "checking for shl_load in -ldld... " >&6; }
13180 if test ${ac_cv_lib_dld_shl_load+y}
13181 then :
13182 printf %s "(cached) " >&6
13183 else case e in #(
13184 e) ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-ldld $LIBS"
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply.
13192 The 'extern "C"' is for builds by C++ compilers;
13193 although this is not generally supported in C code supporting it here
13194 has little cost and some practical benefit (sr 110532). */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char shl_load (void);
13199 int
13200 main (void)
13201 {
13202 return shl_load ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"
13208 then :
13209 ac_cv_lib_dld_shl_load=yes
13210 else case e in #(
13211 e) ac_cv_lib_dld_shl_load=no ;;
13212 esac
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS ;;
13217 esac
13218 fi
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13220 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13221 if test "x$ac_cv_lib_dld_shl_load" = xyes
13222 then :
13223 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13224 else case e in #(
13225 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13226 if test "x$ac_cv_func_dlopen" = xyes
13227 then :
13228 lt_cv_dlopen=dlopen
13229 else case e in #(
13230 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13231 printf %s "checking for dlopen in -ldl... " >&6; }
13232 if test ${ac_cv_lib_dl_dlopen+y}
13233 then :
13234 printf %s "(cached) " >&6
13235 else case e in #(
13236 e) ac_check_lib_save_LIBS=$LIBS
13237 LIBS="-ldl $LIBS"
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240
13241 /* Override any GCC internal prototype to avoid an error.
13242 Use char because int might match the return type of a GCC
13243 builtin and then its argument prototype would still apply.
13244 The 'extern "C"' is for builds by C++ compilers;
13245 although this is not generally supported in C code supporting it here
13246 has little cost and some practical benefit (sr 110532). */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char dlopen (void);
13251 int
13252 main (void)
13253 {
13254 return dlopen ();
13255 ;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"
13260 then :
13261 ac_cv_lib_dl_dlopen=yes
13262 else case e in #(
13263 e) ac_cv_lib_dl_dlopen=no ;;
13264 esac
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS ;;
13269 esac
13270 fi
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13272 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13273 if test "x$ac_cv_lib_dl_dlopen" = xyes
13274 then :
13275 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13276 else case e in #(
13277 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13278 printf %s "checking for dlopen in -lsvld... " >&6; }
13279 if test ${ac_cv_lib_svld_dlopen+y}
13280 then :
13281 printf %s "(cached) " >&6
13282 else case e in #(
13283 e) ac_check_lib_save_LIBS=$LIBS
13284 LIBS="-lsvld $LIBS"
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply.
13291 The 'extern "C"' is for builds by C++ compilers;
13292 although this is not generally supported in C code supporting it here
13293 has little cost and some practical benefit (sr 110532). */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char dlopen (void);
13298 int
13299 main (void)
13300 {
13301 return dlopen ();
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"
13307 then :
13308 ac_cv_lib_svld_dlopen=yes
13309 else case e in #(
13310 e) ac_cv_lib_svld_dlopen=no ;;
13311 esac
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LIBS=$ac_check_lib_save_LIBS ;;
13316 esac
13317 fi
13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13319 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13320 if test "x$ac_cv_lib_svld_dlopen" = xyes
13321 then :
13322 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13323 else case e in #(
13324 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13325 printf %s "checking for dld_link in -ldld... " >&6; }
13326 if test ${ac_cv_lib_dld_dld_link+y}
13327 then :
13328 printf %s "(cached) " >&6
13329 else case e in #(
13330 e) ac_check_lib_save_LIBS=$LIBS
13331 LIBS="-ldld $LIBS"
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply.
13338 The 'extern "C"' is for builds by C++ compilers;
13339 although this is not generally supported in C code supporting it here
13340 has little cost and some practical benefit (sr 110532). */
13341 #ifdef __cplusplus
13342 extern "C"
13343 #endif
13344 char dld_link (void);
13345 int
13346 main (void)
13347 {
13348 return dld_link ();
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"
13354 then :
13355 ac_cv_lib_dld_dld_link=yes
13356 else case e in #(
13357 e) ac_cv_lib_dld_dld_link=no ;;
13358 esac
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13361 conftest$ac_exeext conftest.$ac_ext
13362 LIBS=$ac_check_lib_save_LIBS ;;
13363 esac
13364 fi
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13366 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13367 if test "x$ac_cv_lib_dld_dld_link" = xyes
13368 then :
13369 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13370 fi
13371
13372 ;;
13373 esac
13374 fi
13375
13376 ;;
13377 esac
13378 fi
13379
13380 ;;
13381 esac
13382 fi
13383
13384 ;;
13385 esac
13386 fi
13387
13388 ;;
13389 esac
13390 fi
13391
13392 ;;
13393 esac
13394
13395 if test no = "$lt_cv_dlopen"; then
13396 enable_dlopen=no
13397 else
13398 enable_dlopen=yes
13399 fi
13400
13401 case $lt_cv_dlopen in
13402 dlopen)
13403 save_CPPFLAGS=$CPPFLAGS
13404 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13405
13406 save_LDFLAGS=$LDFLAGS
13407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13408
13409 save_LIBS=$LIBS
13410 LIBS="$lt_cv_dlopen_libs $LIBS"
13411
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13413 printf %s "checking whether a program can dlopen itself... " >&6; }
13414 if test ${lt_cv_dlopen_self+y}
13415 then :
13416 printf %s "(cached) " >&6
13417 else case e in #(
13418 e) if test yes = "$cross_compiling"; then :
13419 lt_cv_dlopen_self=cross
13420 else
13421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13422 lt_status=$lt_dlunknown
13423 cat > conftest.$ac_ext <<_LT_EOF
13424 #line $LINENO "configure"
13425 #include "confdefs.h"
13426
13427 #if HAVE_DLFCN_H
13428 #include <dlfcn.h>
13429 #endif
13430
13431 #include <stdio.h>
13432
13433 #ifdef RTLD_GLOBAL
13434 # define LT_DLGLOBAL RTLD_GLOBAL
13435 #else
13436 # ifdef DL_GLOBAL
13437 # define LT_DLGLOBAL DL_GLOBAL
13438 # else
13439 # define LT_DLGLOBAL 0
13440 # endif
13441 #endif
13442
13443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13444 find out it does not work in some platform. */
13445 #ifndef LT_DLLAZY_OR_NOW
13446 # ifdef RTLD_LAZY
13447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13448 # else
13449 # ifdef DL_LAZY
13450 # define LT_DLLAZY_OR_NOW DL_LAZY
13451 # else
13452 # ifdef RTLD_NOW
13453 # define LT_DLLAZY_OR_NOW RTLD_NOW
13454 # else
13455 # ifdef DL_NOW
13456 # define LT_DLLAZY_OR_NOW DL_NOW
13457 # else
13458 # define LT_DLLAZY_OR_NOW 0
13459 # endif
13460 # endif
13461 # endif
13462 # endif
13463 #endif
13464
13465 /* When -fvisibility=hidden is used, assume the code has been annotated
13466 correspondingly for the symbols needed. */
13467 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13468 int fnord (void) __attribute__((visibility("default")));
13469 #endif
13470
13471 int fnord (void) { return 42; }
13472 int main (void)
13473 {
13474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13475 int status = $lt_dlunknown;
13476
13477 if (self)
13478 {
13479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13480 else
13481 {
13482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13483 else puts (dlerror ());
13484 }
13485 /* dlclose (self); */
13486 }
13487 else
13488 puts (dlerror ());
13489
13490 return status;
13491 }
13492 _LT_EOF
13493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13494 (eval $ac_link) 2>&5
13495 ac_status=$?
13496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13497 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13498 (./conftest; exit; ) >&5 2>/dev/null
13499 lt_status=$?
13500 case x$lt_status in
13501 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13502 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13503 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13504 esac
13505 else :
13506 # compilation failed
13507 lt_cv_dlopen_self=no
13508 fi
13509 fi
13510 rm -fr conftest*
13511
13512 ;;
13513 esac
13514 fi
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13516 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13517
13518 if test yes = "$lt_cv_dlopen_self"; then
13519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13521 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13522 if test ${lt_cv_dlopen_self_static+y}
13523 then :
13524 printf %s "(cached) " >&6
13525 else case e in #(
13526 e) if test yes = "$cross_compiling"; then :
13527 lt_cv_dlopen_self_static=cross
13528 else
13529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13530 lt_status=$lt_dlunknown
13531 cat > conftest.$ac_ext <<_LT_EOF
13532 #line $LINENO "configure"
13533 #include "confdefs.h"
13534
13535 #if HAVE_DLFCN_H
13536 #include <dlfcn.h>
13537 #endif
13538
13539 #include <stdio.h>
13540
13541 #ifdef RTLD_GLOBAL
13542 # define LT_DLGLOBAL RTLD_GLOBAL
13543 #else
13544 # ifdef DL_GLOBAL
13545 # define LT_DLGLOBAL DL_GLOBAL
13546 # else
13547 # define LT_DLGLOBAL 0
13548 # endif
13549 #endif
13550
13551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13552 find out it does not work in some platform. */
13553 #ifndef LT_DLLAZY_OR_NOW
13554 # ifdef RTLD_LAZY
13555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13556 # else
13557 # ifdef DL_LAZY
13558 # define LT_DLLAZY_OR_NOW DL_LAZY
13559 # else
13560 # ifdef RTLD_NOW
13561 # define LT_DLLAZY_OR_NOW RTLD_NOW
13562 # else
13563 # ifdef DL_NOW
13564 # define LT_DLLAZY_OR_NOW DL_NOW
13565 # else
13566 # define LT_DLLAZY_OR_NOW 0
13567 # endif
13568 # endif
13569 # endif
13570 # endif
13571 #endif
13572
13573 /* When -fvisibility=hidden is used, assume the code has been annotated
13574 correspondingly for the symbols needed. */
13575 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13576 int fnord (void) __attribute__((visibility("default")));
13577 #endif
13578
13579 int fnord (void) { return 42; }
13580 int main (void)
13581 {
13582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13583 int status = $lt_dlunknown;
13584
13585 if (self)
13586 {
13587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13588 else
13589 {
13590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13591 else puts (dlerror ());
13592 }
13593 /* dlclose (self); */
13594 }
13595 else
13596 puts (dlerror ());
13597
13598 return status;
13599 }
13600 _LT_EOF
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13602 (eval $ac_link) 2>&5
13603 ac_status=$?
13604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13606 (./conftest; exit; ) >&5 2>/dev/null
13607 lt_status=$?
13608 case x$lt_status in
13609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13611 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13612 esac
13613 else :
13614 # compilation failed
13615 lt_cv_dlopen_self_static=no
13616 fi
13617 fi
13618 rm -fr conftest*
13619
13620 ;;
13621 esac
13622 fi
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13624 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13625 fi
13626
13627 CPPFLAGS=$save_CPPFLAGS
13628 LDFLAGS=$save_LDFLAGS
13629 LIBS=$save_LIBS
13630 ;;
13631 esac
13632
13633 case $lt_cv_dlopen_self in
13634 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13635 *) enable_dlopen_self=unknown ;;
13636 esac
13637
13638 case $lt_cv_dlopen_self_static in
13639 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13640 *) enable_dlopen_self_static=unknown ;;
13641 esac
13642 fi
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660 striplib=
13661 old_striplib=
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13663 printf %s "checking whether stripping libraries is possible... " >&6; }
13664 if test -z "$STRIP"; then
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 printf "%s\n" "no" >&6; }
13667 else
13668 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13669 old_striplib="$STRIP --strip-debug"
13670 striplib="$STRIP --strip-unneeded"
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 printf "%s\n" "yes" >&6; }
13673 else
13674 case $host_os in
13675 darwin*)
13676 # FIXME - insert some real tests, host_os isn't really good enough
13677 striplib="$STRIP -x"
13678 old_striplib="$STRIP -S"
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13680 printf "%s\n" "yes" >&6; }
13681 ;;
13682 freebsd*)
13683 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13684 old_striplib="$STRIP --strip-debug"
13685 striplib="$STRIP --strip-unneeded"
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13687 printf "%s\n" "yes" >&6; }
13688 else
13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 printf "%s\n" "no" >&6; }
13691 fi
13692 ;;
13693 *)
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 printf "%s\n" "no" >&6; }
13696 ;;
13697 esac
13698 fi
13699 fi
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712 # Report what library types will actually be built
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13714 printf %s "checking if libtool supports shared libraries... " >&6; }
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13716 printf "%s\n" "$can_build_shared" >&6; }
13717
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13719 printf %s "checking whether to build shared libraries... " >&6; }
13720 test no = "$can_build_shared" && enable_shared=no
13721
13722 # On AIX, shared libraries and static libraries use the same namespace, and
13723 # are all built from PIC.
13724 case $host_os in
13725 aix3*)
13726 test yes = "$enable_shared" && enable_static=no
13727 if test -n "$RANLIB"; then
13728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13729 postinstall_cmds='$RANLIB $lib'
13730 fi
13731 ;;
13732
13733 aix[4-9]*)
13734 if test ia64 != "$host_cpu"; then
13735 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13736 yes,aix,yes) ;; # shared object as lib.so file only
13737 yes,svr4,*) ;; # shared object as lib.so archive member only
13738 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13739 esac
13740 fi
13741 ;;
13742 esac
13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13744 printf "%s\n" "$enable_shared" >&6; }
13745
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13747 printf %s "checking whether to build static libraries... " >&6; }
13748 # Make sure either enable_shared or enable_static is yes.
13749 test yes = "$enable_shared" || enable_static=yes
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13751 printf "%s\n" "$enable_static" >&6; }
13752
13753
13754
13755
13756 fi
13757 ac_ext=c
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763 CC=$lt_save_CC
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779 ac_config_commands="$ac_config_commands libtool"
13780
13781
13782
13783
13784 # Only expand once:
13785
13786
13787
13788 # Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13801 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13802 if test ${ac_cv_c_undeclared_builtin_options+y}
13803 then :
13804 printf %s "(cached) " >&6
13805 else case e in #(
13806 e) ac_save_CFLAGS=$CFLAGS
13807 ac_cv_c_undeclared_builtin_options='cannot detect'
13808 for ac_arg in '' -fno-builtin; do
13809 CFLAGS="$ac_save_CFLAGS $ac_arg"
13810 # This test program should *not* compile successfully.
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813
13814 int
13815 main (void)
13816 {
13817 (void) strchr;
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_compile "$LINENO"
13823 then :
13824
13825 else case e in #(
13826 e) # This test program should compile successfully.
13827 # No library function is consistently available on
13828 # freestanding implementations, so test against a dummy
13829 # declaration. Include always-available headers on the
13830 # off chance that they somehow elicit warnings.
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 #include <float.h>
13834 #include <limits.h>
13835 #include <stdarg.h>
13836 #include <stddef.h>
13837 extern void ac_decl (int, char *);
13838
13839 int
13840 main (void)
13841 {
13842 (void) ac_decl (0, (char *) 0);
13843 (void) ac_decl;
13844
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"
13850 then :
13851 if test x"$ac_arg" = x
13852 then :
13853 ac_cv_c_undeclared_builtin_options='none needed'
13854 else case e in #(
13855 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13856 esac
13857 fi
13858 break
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13861 esac
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13864 done
13865 CFLAGS=$ac_save_CFLAGS
13866 ;;
13867 esac
13868 fi
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13870 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13871 case $ac_cv_c_undeclared_builtin_options in #(
13872 'cannot detect') :
13873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13874 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13875 as_fn_error $? "cannot make $CC report undeclared builtins
13876 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13877 'none needed') :
13878 ac_c_undeclared_builtin_options='' ;; #(
13879 *) :
13880 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13881 esac
13882
13883
13884
13885
13886
13887 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13888 if test "x$ac_cv_have_decl___clang__" = xyes
13889 then :
13890 CLANGCC="yes"
13891 else case e in #(
13892 e) CLANGCC="no" ;;
13893 esac
13894 fi
13895 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13896 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13897 then :
13898 INTELCC="yes"
13899 else case e in #(
13900 e) INTELCC="no" ;;
13901 esac
13902 fi
13903 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13904 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13905 then :
13906 SUNCC="yes"
13907 else case e in #(
13908 e) SUNCC="no" ;;
13909 esac
13910 fi
13911
13912
13913
13914
13915
13916
13917
13918
13919 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13920 if test -n "$ac_tool_prefix"; then
13921 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13922 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13924 printf %s "checking for $ac_word... " >&6; }
13925 if test ${ac_cv_path_PKG_CONFIG+y}
13926 then :
13927 printf %s "(cached) " >&6
13928 else case e in #(
13929 e) case $PKG_CONFIG in
13930 [\\/]* | ?:[\\/]*)
13931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13932 ;;
13933 *)
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937 IFS=$as_save_IFS
13938 case $as_dir in #(((
13939 '') as_dir=./ ;;
13940 */) ;;
13941 *) as_dir=$as_dir/ ;;
13942 esac
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13945 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13947 break 2
13948 fi
13949 done
13950 done
13951 IFS=$as_save_IFS
13952
13953 ;;
13954 esac ;;
13955 esac
13956 fi
13957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13958 if test -n "$PKG_CONFIG"; then
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13960 printf "%s\n" "$PKG_CONFIG" >&6; }
13961 else
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 printf "%s\n" "no" >&6; }
13964 fi
13965
13966
13967 fi
13968 if test -z "$ac_cv_path_PKG_CONFIG"; then
13969 ac_pt_PKG_CONFIG=$PKG_CONFIG
13970 # Extract the first word of "pkg-config", so it can be a program name with args.
13971 set dummy pkg-config; ac_word=$2
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973 printf %s "checking for $ac_word... " >&6; }
13974 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13975 then :
13976 printf %s "(cached) " >&6
13977 else case e in #(
13978 e) case $ac_pt_PKG_CONFIG in
13979 [\\/]* | ?:[\\/]*)
13980 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13981 ;;
13982 *)
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13985 do
13986 IFS=$as_save_IFS
13987 case $as_dir in #(((
13988 '') as_dir=./ ;;
13989 */) ;;
13990 *) as_dir=$as_dir/ ;;
13991 esac
13992 for ac_exec_ext in '' $ac_executable_extensions; do
13993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13994 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13996 break 2
13997 fi
13998 done
13999 done
14000 IFS=$as_save_IFS
14001
14002 ;;
14003 esac ;;
14004 esac
14005 fi
14006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14007 if test -n "$ac_pt_PKG_CONFIG"; then
14008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14009 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14010 else
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 printf "%s\n" "no" >&6; }
14013 fi
14014
14015 if test "x$ac_pt_PKG_CONFIG" = x; then
14016 PKG_CONFIG=""
14017 else
14018 case $cross_compiling:$ac_tool_warned in
14019 yes:)
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14022 ac_tool_warned=yes ;;
14023 esac
14024 PKG_CONFIG=$ac_pt_PKG_CONFIG
14025 fi
14026 else
14027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14028 fi
14029
14030 fi
14031 if test -n "$PKG_CONFIG"; then
14032 _pkg_min_version=0.9.0
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14034 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 printf "%s\n" "yes" >&6; }
14038 else
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14041 PKG_CONFIG=""
14042 fi
14043 fi
14044
14045
14046
14047
14048
14049 # Check whether --enable-selective-werror was given.
14050 if test ${enable_selective_werror+y}
14051 then :
14052 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14053 else case e in #(
14054 e) SELECTIVE_WERROR=yes ;;
14055 esac
14056 fi
14057
14058
14059
14060
14061
14062 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14063 if test "x$SUNCC" = "xyes"; then
14064 BASE_CFLAGS="-v"
14065 else
14066 BASE_CFLAGS=""
14067 fi
14068
14069 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083 xorg_testset_save_CFLAGS="$CFLAGS"
14084
14085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14090 then :
14091 printf %s "(cached) " >&6
14092 else case e in #(
14093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 int i;
14096 _ACEOF
14097 if ac_fn_c_try_compile "$LINENO"
14098 then :
14099 xorg_cv_cc_flag_unknown_warning_option=yes
14100 else case e in #(
14101 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14102 esac
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14105 esac
14106 fi
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14110 CFLAGS="$xorg_testset_save_CFLAGS"
14111 fi
14112
14113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116 fi
14117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14121 then :
14122 printf %s "(cached) " >&6
14123 else case e in #(
14124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126 int i;
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"
14129 then :
14130 xorg_cv_cc_flag_unused_command_line_argument=yes
14131 else case e in #(
14132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14133 esac
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14136 esac
14137 fi
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14141 CFLAGS="$xorg_testset_save_CFLAGS"
14142 fi
14143
14144 found="no"
14145
14146 if test $found = "no" ; then
14147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149 fi
14150
14151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14153 fi
14154
14155 CFLAGS="$CFLAGS -Wall"
14156
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14158 printf %s "checking if $CC supports -Wall... " >&6; }
14159 cacheid=xorg_cv_cc_flag__Wall
14160 if eval test \${$cacheid+y}
14161 then :
14162 printf %s "(cached) " >&6
14163 else case e in #(
14164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 int i;
14167 int
14168 main (void)
14169 {
14170
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"
14176 then :
14177 eval $cacheid=yes
14178 else case e in #(
14179 e) eval $cacheid=no ;;
14180 esac
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14183 conftest$ac_exeext conftest.$ac_ext ;;
14184 esac
14185 fi
14186
14187
14188 CFLAGS="$xorg_testset_save_CFLAGS"
14189
14190 eval supported=\$$cacheid
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14192 printf "%s\n" "$supported" >&6; }
14193 if test "$supported" = "yes" ; then
14194 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14195 found="yes"
14196 fi
14197 fi
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213 xorg_testset_save_CFLAGS="$CFLAGS"
14214
14215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14220 then :
14221 printf %s "(cached) " >&6
14222 else case e in #(
14223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 int i;
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"
14228 then :
14229 xorg_cv_cc_flag_unknown_warning_option=yes
14230 else case e in #(
14231 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14232 esac
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14235 esac
14236 fi
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14240 CFLAGS="$xorg_testset_save_CFLAGS"
14241 fi
14242
14243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14246 fi
14247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14251 then :
14252 printf %s "(cached) " >&6
14253 else case e in #(
14254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 int i;
14257 _ACEOF
14258 if ac_fn_c_try_compile "$LINENO"
14259 then :
14260 xorg_cv_cc_flag_unused_command_line_argument=yes
14261 else case e in #(
14262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14263 esac
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14266 esac
14267 fi
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14271 CFLAGS="$xorg_testset_save_CFLAGS"
14272 fi
14273
14274 found="no"
14275
14276 if test $found = "no" ; then
14277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14279 fi
14280
14281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283 fi
14284
14285 CFLAGS="$CFLAGS -Wpointer-arith"
14286
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14288 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14289 cacheid=xorg_cv_cc_flag__Wpointer_arith
14290 if eval test \${$cacheid+y}
14291 then :
14292 printf %s "(cached) " >&6
14293 else case e in #(
14294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 int i;
14297 int
14298 main (void)
14299 {
14300
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 if ac_fn_c_try_link "$LINENO"
14306 then :
14307 eval $cacheid=yes
14308 else case e in #(
14309 e) eval $cacheid=no ;;
14310 esac
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14313 conftest$ac_exeext conftest.$ac_ext ;;
14314 esac
14315 fi
14316
14317
14318 CFLAGS="$xorg_testset_save_CFLAGS"
14319
14320 eval supported=\$$cacheid
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14322 printf "%s\n" "$supported" >&6; }
14323 if test "$supported" = "yes" ; then
14324 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14325 found="yes"
14326 fi
14327 fi
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343 xorg_testset_save_CFLAGS="$CFLAGS"
14344
14345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14350 then :
14351 printf %s "(cached) " >&6
14352 else case e in #(
14353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 int i;
14356 _ACEOF
14357 if ac_fn_c_try_compile "$LINENO"
14358 then :
14359 xorg_cv_cc_flag_unknown_warning_option=yes
14360 else case e in #(
14361 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14362 esac
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14365 esac
14366 fi
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14370 CFLAGS="$xorg_testset_save_CFLAGS"
14371 fi
14372
14373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376 fi
14377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else case e in #(
14384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 int i;
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"
14389 then :
14390 xorg_cv_cc_flag_unused_command_line_argument=yes
14391 else case e in #(
14392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14393 esac
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14396 esac
14397 fi
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14399 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14401 CFLAGS="$xorg_testset_save_CFLAGS"
14402 fi
14403
14404 found="no"
14405
14406 if test $found = "no" ; then
14407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14409 fi
14410
14411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14413 fi
14414
14415 CFLAGS="$CFLAGS -Wmissing-declarations"
14416
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14418 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14419 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14420 if eval test \${$cacheid+y}
14421 then :
14422 printf %s "(cached) " >&6
14423 else case e in #(
14424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 int i;
14427 int
14428 main (void)
14429 {
14430
14431 ;
14432 return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_link "$LINENO"
14436 then :
14437 eval $cacheid=yes
14438 else case e in #(
14439 e) eval $cacheid=no ;;
14440 esac
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14443 conftest$ac_exeext conftest.$ac_ext ;;
14444 esac
14445 fi
14446
14447
14448 CFLAGS="$xorg_testset_save_CFLAGS"
14449
14450 eval supported=\$$cacheid
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14452 printf "%s\n" "$supported" >&6; }
14453 if test "$supported" = "yes" ; then
14454 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14455 found="yes"
14456 fi
14457 fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473 xorg_testset_save_CFLAGS="$CFLAGS"
14474
14475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14480 then :
14481 printf %s "(cached) " >&6
14482 else case e in #(
14483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 int i;
14486 _ACEOF
14487 if ac_fn_c_try_compile "$LINENO"
14488 then :
14489 xorg_cv_cc_flag_unknown_warning_option=yes
14490 else case e in #(
14491 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14492 esac
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14495 esac
14496 fi
14497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14500 CFLAGS="$xorg_testset_save_CFLAGS"
14501 fi
14502
14503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506 fi
14507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else case e in #(
14514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 int i;
14517 _ACEOF
14518 if ac_fn_c_try_compile "$LINENO"
14519 then :
14520 xorg_cv_cc_flag_unused_command_line_argument=yes
14521 else case e in #(
14522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14523 esac
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14526 esac
14527 fi
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14529 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14531 CFLAGS="$xorg_testset_save_CFLAGS"
14532 fi
14533
14534 found="no"
14535
14536 if test $found = "no" ; then
14537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14539 fi
14540
14541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14543 fi
14544
14545 CFLAGS="$CFLAGS -Wformat=2"
14546
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14548 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14549 cacheid=xorg_cv_cc_flag__Wformat_2
14550 if eval test \${$cacheid+y}
14551 then :
14552 printf %s "(cached) " >&6
14553 else case e in #(
14554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556 int i;
14557 int
14558 main (void)
14559 {
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"
14566 then :
14567 eval $cacheid=yes
14568 else case e in #(
14569 e) eval $cacheid=no ;;
14570 esac
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14573 conftest$ac_exeext conftest.$ac_ext ;;
14574 esac
14575 fi
14576
14577
14578 CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580 eval supported=\$$cacheid
14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582 printf "%s\n" "$supported" >&6; }
14583 if test "$supported" = "yes" ; then
14584 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14585 found="yes"
14586 fi
14587 fi
14588
14589 if test $found = "no" ; then
14590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592 fi
14593
14594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596 fi
14597
14598 CFLAGS="$CFLAGS -Wformat"
14599
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14601 printf %s "checking if $CC supports -Wformat... " >&6; }
14602 cacheid=xorg_cv_cc_flag__Wformat
14603 if eval test \${$cacheid+y}
14604 then :
14605 printf %s "(cached) " >&6
14606 else case e in #(
14607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14609 int i;
14610 int
14611 main (void)
14612 {
14613
14614 ;
14615 return 0;
14616 }
14617 _ACEOF
14618 if ac_fn_c_try_link "$LINENO"
14619 then :
14620 eval $cacheid=yes
14621 else case e in #(
14622 e) eval $cacheid=no ;;
14623 esac
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14626 conftest$ac_exeext conftest.$ac_ext ;;
14627 esac
14628 fi
14629
14630
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14632
14633 eval supported=\$$cacheid
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14635 printf "%s\n" "$supported" >&6; }
14636 if test "$supported" = "yes" ; then
14637 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14638 found="yes"
14639 fi
14640 fi
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 xorg_testset_save_CFLAGS="$CFLAGS"
14659
14660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14664 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14665 then :
14666 printf %s "(cached) " >&6
14667 else case e in #(
14668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670 int i;
14671 _ACEOF
14672 if ac_fn_c_try_compile "$LINENO"
14673 then :
14674 xorg_cv_cc_flag_unknown_warning_option=yes
14675 else case e in #(
14676 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14677 esac
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14680 esac
14681 fi
14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14685 CFLAGS="$xorg_testset_save_CFLAGS"
14686 fi
14687
14688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691 fi
14692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14696 then :
14697 printf %s "(cached) " >&6
14698 else case e in #(
14699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 int i;
14702 _ACEOF
14703 if ac_fn_c_try_compile "$LINENO"
14704 then :
14705 xorg_cv_cc_flag_unused_command_line_argument=yes
14706 else case e in #(
14707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14708 esac
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14711 esac
14712 fi
14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14716 CFLAGS="$xorg_testset_save_CFLAGS"
14717 fi
14718
14719 found="no"
14720
14721 if test $found = "no" ; then
14722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14724 fi
14725
14726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14728 fi
14729
14730 CFLAGS="$CFLAGS -Wstrict-prototypes"
14731
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14733 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14734 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14735 if eval test \${$cacheid+y}
14736 then :
14737 printf %s "(cached) " >&6
14738 else case e in #(
14739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 int i;
14742 int
14743 main (void)
14744 {
14745
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"
14751 then :
14752 eval $cacheid=yes
14753 else case e in #(
14754 e) eval $cacheid=no ;;
14755 esac
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758 conftest$ac_exeext conftest.$ac_ext ;;
14759 esac
14760 fi
14761
14762
14763 CFLAGS="$xorg_testset_save_CFLAGS"
14764
14765 eval supported=\$$cacheid
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14767 printf "%s\n" "$supported" >&6; }
14768 if test "$supported" = "yes" ; then
14769 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14770 found="yes"
14771 fi
14772 fi
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788 xorg_testset_save_CFLAGS="$CFLAGS"
14789
14790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14795 then :
14796 printf %s "(cached) " >&6
14797 else case e in #(
14798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14800 int i;
14801 _ACEOF
14802 if ac_fn_c_try_compile "$LINENO"
14803 then :
14804 xorg_cv_cc_flag_unknown_warning_option=yes
14805 else case e in #(
14806 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14807 esac
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14810 esac
14811 fi
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14813 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14815 CFLAGS="$xorg_testset_save_CFLAGS"
14816 fi
14817
14818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14821 fi
14822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14826 then :
14827 printf %s "(cached) " >&6
14828 else case e in #(
14829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 int i;
14832 _ACEOF
14833 if ac_fn_c_try_compile "$LINENO"
14834 then :
14835 xorg_cv_cc_flag_unused_command_line_argument=yes
14836 else case e in #(
14837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14838 esac
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14841 esac
14842 fi
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14846 CFLAGS="$xorg_testset_save_CFLAGS"
14847 fi
14848
14849 found="no"
14850
14851 if test $found = "no" ; then
14852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14854 fi
14855
14856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14858 fi
14859
14860 CFLAGS="$CFLAGS -Wmissing-prototypes"
14861
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14863 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14864 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14865 if eval test \${$cacheid+y}
14866 then :
14867 printf %s "(cached) " >&6
14868 else case e in #(
14869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 int i;
14872 int
14873 main (void)
14874 {
14875
14876 ;
14877 return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_link "$LINENO"
14881 then :
14882 eval $cacheid=yes
14883 else case e in #(
14884 e) eval $cacheid=no ;;
14885 esac
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14888 conftest$ac_exeext conftest.$ac_ext ;;
14889 esac
14890 fi
14891
14892
14893 CFLAGS="$xorg_testset_save_CFLAGS"
14894
14895 eval supported=\$$cacheid
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14897 printf "%s\n" "$supported" >&6; }
14898 if test "$supported" = "yes" ; then
14899 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14900 found="yes"
14901 fi
14902 fi
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918 xorg_testset_save_CFLAGS="$CFLAGS"
14919
14920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14925 then :
14926 printf %s "(cached) " >&6
14927 else case e in #(
14928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930 int i;
14931 _ACEOF
14932 if ac_fn_c_try_compile "$LINENO"
14933 then :
14934 xorg_cv_cc_flag_unknown_warning_option=yes
14935 else case e in #(
14936 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14937 esac
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14940 esac
14941 fi
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14945 CFLAGS="$xorg_testset_save_CFLAGS"
14946 fi
14947
14948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951 fi
14952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14956 then :
14957 printf %s "(cached) " >&6
14958 else case e in #(
14959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 int i;
14962 _ACEOF
14963 if ac_fn_c_try_compile "$LINENO"
14964 then :
14965 xorg_cv_cc_flag_unused_command_line_argument=yes
14966 else case e in #(
14967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14968 esac
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14971 esac
14972 fi
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14976 CFLAGS="$xorg_testset_save_CFLAGS"
14977 fi
14978
14979 found="no"
14980
14981 if test $found = "no" ; then
14982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14984 fi
14985
14986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14988 fi
14989
14990 CFLAGS="$CFLAGS -Wnested-externs"
14991
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14993 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14994 cacheid=xorg_cv_cc_flag__Wnested_externs
14995 if eval test \${$cacheid+y}
14996 then :
14997 printf %s "(cached) " >&6
14998 else case e in #(
14999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 int i;
15002 int
15003 main (void)
15004 {
15005
15006 ;
15007 return 0;
15008 }
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"
15011 then :
15012 eval $cacheid=yes
15013 else case e in #(
15014 e) eval $cacheid=no ;;
15015 esac
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15018 conftest$ac_exeext conftest.$ac_ext ;;
15019 esac
15020 fi
15021
15022
15023 CFLAGS="$xorg_testset_save_CFLAGS"
15024
15025 eval supported=\$$cacheid
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15027 printf "%s\n" "$supported" >&6; }
15028 if test "$supported" = "yes" ; then
15029 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15030 found="yes"
15031 fi
15032 fi
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048 xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else case e in #(
15058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 int i;
15061 _ACEOF
15062 if ac_fn_c_try_compile "$LINENO"
15063 then :
15064 xorg_cv_cc_flag_unknown_warning_option=yes
15065 else case e in #(
15066 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15067 esac
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15070 esac
15071 fi
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15075 CFLAGS="$xorg_testset_save_CFLAGS"
15076 fi
15077
15078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15081 fi
15082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15086 then :
15087 printf %s "(cached) " >&6
15088 else case e in #(
15089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 int i;
15092 _ACEOF
15093 if ac_fn_c_try_compile "$LINENO"
15094 then :
15095 xorg_cv_cc_flag_unused_command_line_argument=yes
15096 else case e in #(
15097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15098 esac
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15101 esac
15102 fi
15103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15106 CFLAGS="$xorg_testset_save_CFLAGS"
15107 fi
15108
15109 found="no"
15110
15111 if test $found = "no" ; then
15112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114 fi
15115
15116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15118 fi
15119
15120 CFLAGS="$CFLAGS -Wbad-function-cast"
15121
15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15123 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15124 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15125 if eval test \${$cacheid+y}
15126 then :
15127 printf %s "(cached) " >&6
15128 else case e in #(
15129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 int i;
15132 int
15133 main (void)
15134 {
15135
15136 ;
15137 return 0;
15138 }
15139 _ACEOF
15140 if ac_fn_c_try_link "$LINENO"
15141 then :
15142 eval $cacheid=yes
15143 else case e in #(
15144 e) eval $cacheid=no ;;
15145 esac
15146 fi
15147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15148 conftest$ac_exeext conftest.$ac_ext ;;
15149 esac
15150 fi
15151
15152
15153 CFLAGS="$xorg_testset_save_CFLAGS"
15154
15155 eval supported=\$$cacheid
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15157 printf "%s\n" "$supported" >&6; }
15158 if test "$supported" = "yes" ; then
15159 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15160 found="yes"
15161 fi
15162 fi
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178 xorg_testset_save_CFLAGS="$CFLAGS"
15179
15180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15184 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15185 then :
15186 printf %s "(cached) " >&6
15187 else case e in #(
15188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 int i;
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"
15193 then :
15194 xorg_cv_cc_flag_unknown_warning_option=yes
15195 else case e in #(
15196 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15197 esac
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15200 esac
15201 fi
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15205 CFLAGS="$xorg_testset_save_CFLAGS"
15206 fi
15207
15208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211 fi
15212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15216 then :
15217 printf %s "(cached) " >&6
15218 else case e in #(
15219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 int i;
15222 _ACEOF
15223 if ac_fn_c_try_compile "$LINENO"
15224 then :
15225 xorg_cv_cc_flag_unused_command_line_argument=yes
15226 else case e in #(
15227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15228 esac
15229 fi
15230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15231 esac
15232 fi
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15236 CFLAGS="$xorg_testset_save_CFLAGS"
15237 fi
15238
15239 found="no"
15240
15241 if test $found = "no" ; then
15242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15244 fi
15245
15246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15248 fi
15249
15250 CFLAGS="$CFLAGS -Wold-style-definition"
15251
15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15253 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15254 cacheid=xorg_cv_cc_flag__Wold_style_definition
15255 if eval test \${$cacheid+y}
15256 then :
15257 printf %s "(cached) " >&6
15258 else case e in #(
15259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 int i;
15262 int
15263 main (void)
15264 {
15265
15266 ;
15267 return 0;
15268 }
15269 _ACEOF
15270 if ac_fn_c_try_link "$LINENO"
15271 then :
15272 eval $cacheid=yes
15273 else case e in #(
15274 e) eval $cacheid=no ;;
15275 esac
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15278 conftest$ac_exeext conftest.$ac_ext ;;
15279 esac
15280 fi
15281
15282
15283 CFLAGS="$xorg_testset_save_CFLAGS"
15284
15285 eval supported=\$$cacheid
15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15287 printf "%s\n" "$supported" >&6; }
15288 if test "$supported" = "yes" ; then
15289 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15290 found="yes"
15291 fi
15292 fi
15293
15294 if test $found = "no" ; then
15295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15297 fi
15298
15299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301 fi
15302
15303 CFLAGS="$CFLAGS -fd"
15304
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15306 printf %s "checking if $CC supports -fd... " >&6; }
15307 cacheid=xorg_cv_cc_flag__fd
15308 if eval test \${$cacheid+y}
15309 then :
15310 printf %s "(cached) " >&6
15311 else case e in #(
15312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 int i;
15315 int
15316 main (void)
15317 {
15318
15319 ;
15320 return 0;
15321 }
15322 _ACEOF
15323 if ac_fn_c_try_link "$LINENO"
15324 then :
15325 eval $cacheid=yes
15326 else case e in #(
15327 e) eval $cacheid=no ;;
15328 esac
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15331 conftest$ac_exeext conftest.$ac_ext ;;
15332 esac
15333 fi
15334
15335
15336 CFLAGS="$xorg_testset_save_CFLAGS"
15337
15338 eval supported=\$$cacheid
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15340 printf "%s\n" "$supported" >&6; }
15341 if test "$supported" = "yes" ; then
15342 BASE_CFLAGS="$BASE_CFLAGS -fd"
15343 found="yes"
15344 fi
15345 fi
15346
15347
15348
15349
15350
15351 # This chunk adds additional warnings that could catch undesired effects.
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365 xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372 then :
15373 printf %s "(cached) " >&6
15374 else case e in #(
15375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 _ACEOF
15379 if ac_fn_c_try_compile "$LINENO"
15380 then :
15381 xorg_cv_cc_flag_unknown_warning_option=yes
15382 else case e in #(
15383 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15384 esac
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15387 esac
15388 fi
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15403 then :
15404 printf %s "(cached) " >&6
15405 else case e in #(
15406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 int i;
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"
15411 then :
15412 xorg_cv_cc_flag_unused_command_line_argument=yes
15413 else case e in #(
15414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15415 esac
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418 esac
15419 fi
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423 CFLAGS="$xorg_testset_save_CFLAGS"
15424 fi
15425
15426 found="no"
15427
15428 if test $found = "no" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432
15433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435 fi
15436
15437 CFLAGS="$CFLAGS -Wunused"
15438
15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15440 printf %s "checking if $CC supports -Wunused... " >&6; }
15441 cacheid=xorg_cv_cc_flag__Wunused
15442 if eval test \${$cacheid+y}
15443 then :
15444 printf %s "(cached) " >&6
15445 else case e in #(
15446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 int i;
15449 int
15450 main (void)
15451 {
15452
15453 ;
15454 return 0;
15455 }
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"
15458 then :
15459 eval $cacheid=yes
15460 else case e in #(
15461 e) eval $cacheid=no ;;
15462 esac
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465 conftest$ac_exeext conftest.$ac_ext ;;
15466 esac
15467 fi
15468
15469
15470 CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472 eval supported=\$$cacheid
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474 printf "%s\n" "$supported" >&6; }
15475 if test "$supported" = "yes" ; then
15476 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15477 found="yes"
15478 fi
15479 fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495 xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502 then :
15503 printf %s "(cached) " >&6
15504 else case e in #(
15505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 int i;
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"
15510 then :
15511 xorg_cv_cc_flag_unknown_warning_option=yes
15512 else case e in #(
15513 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15514 esac
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15517 esac
15518 fi
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522 CFLAGS="$xorg_testset_save_CFLAGS"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 fi
15529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else case e in #(
15536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 int i;
15539 _ACEOF
15540 if ac_fn_c_try_compile "$LINENO"
15541 then :
15542 xorg_cv_cc_flag_unused_command_line_argument=yes
15543 else case e in #(
15544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15545 esac
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15548 esac
15549 fi
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15553 CFLAGS="$xorg_testset_save_CFLAGS"
15554 fi
15555
15556 found="no"
15557
15558 if test $found = "no" ; then
15559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561 fi
15562
15563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565 fi
15566
15567 CFLAGS="$CFLAGS -Wuninitialized"
15568
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15570 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15571 cacheid=xorg_cv_cc_flag__Wuninitialized
15572 if eval test \${$cacheid+y}
15573 then :
15574 printf %s "(cached) " >&6
15575 else case e in #(
15576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 int i;
15579 int
15580 main (void)
15581 {
15582
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"
15588 then :
15589 eval $cacheid=yes
15590 else case e in #(
15591 e) eval $cacheid=no ;;
15592 esac
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595 conftest$ac_exeext conftest.$ac_ext ;;
15596 esac
15597 fi
15598
15599
15600 CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602 eval supported=\$$cacheid
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604 printf "%s\n" "$supported" >&6; }
15605 if test "$supported" = "yes" ; then
15606 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15607 found="yes"
15608 fi
15609 fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625 xorg_testset_save_CFLAGS="$CFLAGS"
15626
15627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15632 then :
15633 printf %s "(cached) " >&6
15634 else case e in #(
15635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 int i;
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"
15640 then :
15641 xorg_cv_cc_flag_unknown_warning_option=yes
15642 else case e in #(
15643 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15644 esac
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15647 esac
15648 fi
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 fi
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663 then :
15664 printf %s "(cached) " >&6
15665 else case e in #(
15666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 int i;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"
15671 then :
15672 xorg_cv_cc_flag_unused_command_line_argument=yes
15673 else case e in #(
15674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15675 esac
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15678 esac
15679 fi
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15683 CFLAGS="$xorg_testset_save_CFLAGS"
15684 fi
15685
15686 found="no"
15687
15688 if test $found = "no" ; then
15689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691 fi
15692
15693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695 fi
15696
15697 CFLAGS="$CFLAGS -Wshadow"
15698
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15700 printf %s "checking if $CC supports -Wshadow... " >&6; }
15701 cacheid=xorg_cv_cc_flag__Wshadow
15702 if eval test \${$cacheid+y}
15703 then :
15704 printf %s "(cached) " >&6
15705 else case e in #(
15706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 int i;
15709 int
15710 main (void)
15711 {
15712
15713 ;
15714 return 0;
15715 }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"
15718 then :
15719 eval $cacheid=yes
15720 else case e in #(
15721 e) eval $cacheid=no ;;
15722 esac
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15725 conftest$ac_exeext conftest.$ac_ext ;;
15726 esac
15727 fi
15728
15729
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15731
15732 eval supported=\$$cacheid
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734 printf "%s\n" "$supported" >&6; }
15735 if test "$supported" = "yes" ; then
15736 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15737 found="yes"
15738 fi
15739 fi
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755 xorg_testset_save_CFLAGS="$CFLAGS"
15756
15757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15761 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15762 then :
15763 printf %s "(cached) " >&6
15764 else case e in #(
15765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 int i;
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"
15770 then :
15771 xorg_cv_cc_flag_unknown_warning_option=yes
15772 else case e in #(
15773 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15774 esac
15775 fi
15776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15777 esac
15778 fi
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15782 CFLAGS="$xorg_testset_save_CFLAGS"
15783 fi
15784
15785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788 fi
15789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15793 then :
15794 printf %s "(cached) " >&6
15795 else case e in #(
15796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"
15801 then :
15802 xorg_cv_cc_flag_unused_command_line_argument=yes
15803 else case e in #(
15804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15805 esac
15806 fi
15807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15808 esac
15809 fi
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15813 CFLAGS="$xorg_testset_save_CFLAGS"
15814 fi
15815
15816 found="no"
15817
15818 if test $found = "no" ; then
15819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821 fi
15822
15823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825 fi
15826
15827 CFLAGS="$CFLAGS -Wmissing-noreturn"
15828
15829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15830 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15831 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15832 if eval test \${$cacheid+y}
15833 then :
15834 printf %s "(cached) " >&6
15835 else case e in #(
15836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 int i;
15839 int
15840 main (void)
15841 {
15842
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 if ac_fn_c_try_link "$LINENO"
15848 then :
15849 eval $cacheid=yes
15850 else case e in #(
15851 e) eval $cacheid=no ;;
15852 esac
15853 fi
15854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15855 conftest$ac_exeext conftest.$ac_ext ;;
15856 esac
15857 fi
15858
15859
15860 CFLAGS="$xorg_testset_save_CFLAGS"
15861
15862 eval supported=\$$cacheid
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15864 printf "%s\n" "$supported" >&6; }
15865 if test "$supported" = "yes" ; then
15866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15867 found="yes"
15868 fi
15869 fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885 xorg_testset_save_CFLAGS="$CFLAGS"
15886
15887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15891 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15892 then :
15893 printf %s "(cached) " >&6
15894 else case e in #(
15895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 int i;
15898 _ACEOF
15899 if ac_fn_c_try_compile "$LINENO"
15900 then :
15901 xorg_cv_cc_flag_unknown_warning_option=yes
15902 else case e in #(
15903 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15904 esac
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15907 esac
15908 fi
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15912 CFLAGS="$xorg_testset_save_CFLAGS"
15913 fi
15914
15915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918 fi
15919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else case e in #(
15926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928 int i;
15929 _ACEOF
15930 if ac_fn_c_try_compile "$LINENO"
15931 then :
15932 xorg_cv_cc_flag_unused_command_line_argument=yes
15933 else case e in #(
15934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15935 esac
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15938 esac
15939 fi
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15943 CFLAGS="$xorg_testset_save_CFLAGS"
15944 fi
15945
15946 found="no"
15947
15948 if test $found = "no" ; then
15949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15951 fi
15952
15953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15955 fi
15956
15957 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15958
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15960 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15961 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15962 if eval test \${$cacheid+y}
15963 then :
15964 printf %s "(cached) " >&6
15965 else case e in #(
15966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 int i;
15969 int
15970 main (void)
15971 {
15972
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_link "$LINENO"
15978 then :
15979 eval $cacheid=yes
15980 else case e in #(
15981 e) eval $cacheid=no ;;
15982 esac
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15985 conftest$ac_exeext conftest.$ac_ext ;;
15986 esac
15987 fi
15988
15989
15990 CFLAGS="$xorg_testset_save_CFLAGS"
15991
15992 eval supported=\$$cacheid
15993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15994 printf "%s\n" "$supported" >&6; }
15995 if test "$supported" = "yes" ; then
15996 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15997 found="yes"
15998 fi
15999 fi
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015 xorg_testset_save_CFLAGS="$CFLAGS"
16016
16017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16022 then :
16023 printf %s "(cached) " >&6
16024 else case e in #(
16025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16027 int i;
16028 _ACEOF
16029 if ac_fn_c_try_compile "$LINENO"
16030 then :
16031 xorg_cv_cc_flag_unknown_warning_option=yes
16032 else case e in #(
16033 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16034 esac
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16037 esac
16038 fi
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16042 CFLAGS="$xorg_testset_save_CFLAGS"
16043 fi
16044
16045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16048 fi
16049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16053 then :
16054 printf %s "(cached) " >&6
16055 else case e in #(
16056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 int i;
16059 _ACEOF
16060 if ac_fn_c_try_compile "$LINENO"
16061 then :
16062 xorg_cv_cc_flag_unused_command_line_argument=yes
16063 else case e in #(
16064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16065 esac
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16068 esac
16069 fi
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16073 CFLAGS="$xorg_testset_save_CFLAGS"
16074 fi
16075
16076 found="no"
16077
16078 if test $found = "no" ; then
16079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16081 fi
16082
16083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16085 fi
16086
16087 CFLAGS="$CFLAGS -Wredundant-decls"
16088
16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16090 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16091 cacheid=xorg_cv_cc_flag__Wredundant_decls
16092 if eval test \${$cacheid+y}
16093 then :
16094 printf %s "(cached) " >&6
16095 else case e in #(
16096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16098 int i;
16099 int
16100 main (void)
16101 {
16102
16103 ;
16104 return 0;
16105 }
16106 _ACEOF
16107 if ac_fn_c_try_link "$LINENO"
16108 then :
16109 eval $cacheid=yes
16110 else case e in #(
16111 e) eval $cacheid=no ;;
16112 esac
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16115 conftest$ac_exeext conftest.$ac_ext ;;
16116 esac
16117 fi
16118
16119
16120 CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122 eval supported=\$$cacheid
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124 printf "%s\n" "$supported" >&6; }
16125 if test "$supported" = "yes" ; then
16126 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16127 found="yes"
16128 fi
16129 fi
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145 xorg_testset_save_CFLAGS="$CFLAGS"
16146
16147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16151 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16152 then :
16153 printf %s "(cached) " >&6
16154 else case e in #(
16155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 int i;
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"
16160 then :
16161 xorg_cv_cc_flag_unknown_warning_option=yes
16162 else case e in #(
16163 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16164 esac
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16167 esac
16168 fi
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16172 CFLAGS="$xorg_testset_save_CFLAGS"
16173 fi
16174
16175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 fi
16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16183 then :
16184 printf %s "(cached) " >&6
16185 else case e in #(
16186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 int i;
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"
16191 then :
16192 xorg_cv_cc_flag_unused_command_line_argument=yes
16193 else case e in #(
16194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16195 esac
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16198 esac
16199 fi
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16203 CFLAGS="$xorg_testset_save_CFLAGS"
16204 fi
16205
16206 found="no"
16207
16208 if test $found = "no" ; then
16209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211 fi
16212
16213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16215 fi
16216
16217 CFLAGS="$CFLAGS -Wlogical-op"
16218
16219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16220 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16221 cacheid=xorg_cv_cc_flag__Wlogical_op
16222 if eval test \${$cacheid+y}
16223 then :
16224 printf %s "(cached) " >&6
16225 else case e in #(
16226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16228 int i;
16229 int
16230 main (void)
16231 {
16232
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_link "$LINENO"
16238 then :
16239 eval $cacheid=yes
16240 else case e in #(
16241 e) eval $cacheid=no ;;
16242 esac
16243 fi
16244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16245 conftest$ac_exeext conftest.$ac_ext ;;
16246 esac
16247 fi
16248
16249
16250 CFLAGS="$xorg_testset_save_CFLAGS"
16251
16252 eval supported=\$$cacheid
16253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16254 printf "%s\n" "$supported" >&6; }
16255 if test "$supported" = "yes" ; then
16256 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16257 found="yes"
16258 fi
16259 fi
16260
16261
16262
16263 # These are currently disabled because they are noisy. They will be enabled
16264 # in the future once the codebase is sufficiently modernized to silence
16265 # them. For now, I don't want them to drown out the other warnings.
16266 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16267 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16268 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16269
16270 # Turn some warnings into errors, so we don't accidentally get successful builds
16271 # when there are problems that should be fixed.
16272
16273 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287 xorg_testset_save_CFLAGS="$CFLAGS"
16288
16289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16293 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16294 then :
16295 printf %s "(cached) " >&6
16296 else case e in #(
16297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 int i;
16300 _ACEOF
16301 if ac_fn_c_try_compile "$LINENO"
16302 then :
16303 xorg_cv_cc_flag_unknown_warning_option=yes
16304 else case e in #(
16305 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16306 esac
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16309 esac
16310 fi
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16314 CFLAGS="$xorg_testset_save_CFLAGS"
16315 fi
16316
16317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320 fi
16321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16325 then :
16326 printf %s "(cached) " >&6
16327 else case e in #(
16328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 int i;
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"
16333 then :
16334 xorg_cv_cc_flag_unused_command_line_argument=yes
16335 else case e in #(
16336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16337 esac
16338 fi
16339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16340 esac
16341 fi
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16345 CFLAGS="$xorg_testset_save_CFLAGS"
16346 fi
16347
16348 found="no"
16349
16350 if test $found = "no" ; then
16351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16353 fi
16354
16355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16357 fi
16358
16359 CFLAGS="$CFLAGS -Werror=implicit"
16360
16361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16362 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16363 cacheid=xorg_cv_cc_flag__Werror_implicit
16364 if eval test \${$cacheid+y}
16365 then :
16366 printf %s "(cached) " >&6
16367 else case e in #(
16368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 int i;
16371 int
16372 main (void)
16373 {
16374
16375 ;
16376 return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_link "$LINENO"
16380 then :
16381 eval $cacheid=yes
16382 else case e in #(
16383 e) eval $cacheid=no ;;
16384 esac
16385 fi
16386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16387 conftest$ac_exeext conftest.$ac_ext ;;
16388 esac
16389 fi
16390
16391
16392 CFLAGS="$xorg_testset_save_CFLAGS"
16393
16394 eval supported=\$$cacheid
16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16396 printf "%s\n" "$supported" >&6; }
16397 if test "$supported" = "yes" ; then
16398 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16399 found="yes"
16400 fi
16401 fi
16402
16403 if test $found = "no" ; then
16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406 fi
16407
16408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410 fi
16411
16412 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16413
16414 { 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
16415 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16416 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16417 if eval test \${$cacheid+y}
16418 then :
16419 printf %s "(cached) " >&6
16420 else case e in #(
16421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 int i;
16424 int
16425 main (void)
16426 {
16427
16428 ;
16429 return 0;
16430 }
16431 _ACEOF
16432 if ac_fn_c_try_link "$LINENO"
16433 then :
16434 eval $cacheid=yes
16435 else case e in #(
16436 e) eval $cacheid=no ;;
16437 esac
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16440 conftest$ac_exeext conftest.$ac_ext ;;
16441 esac
16442 fi
16443
16444
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16446
16447 eval supported=\$$cacheid
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16449 printf "%s\n" "$supported" >&6; }
16450 if test "$supported" = "yes" ; then
16451 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16452 found="yes"
16453 fi
16454 fi
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470 xorg_testset_save_CFLAGS="$CFLAGS"
16471
16472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16477 then :
16478 printf %s "(cached) " >&6
16479 else case e in #(
16480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482 int i;
16483 _ACEOF
16484 if ac_fn_c_try_compile "$LINENO"
16485 then :
16486 xorg_cv_cc_flag_unknown_warning_option=yes
16487 else case e in #(
16488 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16489 esac
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16492 esac
16493 fi
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497 CFLAGS="$xorg_testset_save_CFLAGS"
16498 fi
16499
16500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503 fi
16504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16508 then :
16509 printf %s "(cached) " >&6
16510 else case e in #(
16511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 int i;
16514 _ACEOF
16515 if ac_fn_c_try_compile "$LINENO"
16516 then :
16517 xorg_cv_cc_flag_unused_command_line_argument=yes
16518 else case e in #(
16519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16520 esac
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16523 esac
16524 fi
16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16528 CFLAGS="$xorg_testset_save_CFLAGS"
16529 fi
16530
16531 found="no"
16532
16533 if test $found = "no" ; then
16534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536 fi
16537
16538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16540 fi
16541
16542 CFLAGS="$CFLAGS -Werror=nonnull"
16543
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16545 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16546 cacheid=xorg_cv_cc_flag__Werror_nonnull
16547 if eval test \${$cacheid+y}
16548 then :
16549 printf %s "(cached) " >&6
16550 else case e in #(
16551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553 int i;
16554 int
16555 main (void)
16556 {
16557
16558 ;
16559 return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"
16563 then :
16564 eval $cacheid=yes
16565 else case e in #(
16566 e) eval $cacheid=no ;;
16567 esac
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16570 conftest$ac_exeext conftest.$ac_ext ;;
16571 esac
16572 fi
16573
16574
16575 CFLAGS="$xorg_testset_save_CFLAGS"
16576
16577 eval supported=\$$cacheid
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16579 printf "%s\n" "$supported" >&6; }
16580 if test "$supported" = "yes" ; then
16581 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16582 found="yes"
16583 fi
16584 fi
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600 xorg_testset_save_CFLAGS="$CFLAGS"
16601
16602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16607 then :
16608 printf %s "(cached) " >&6
16609 else case e in #(
16610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"
16615 then :
16616 xorg_cv_cc_flag_unknown_warning_option=yes
16617 else case e in #(
16618 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16619 esac
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16622 esac
16623 fi
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16627 CFLAGS="$xorg_testset_save_CFLAGS"
16628 fi
16629
16630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633 fi
16634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16638 then :
16639 printf %s "(cached) " >&6
16640 else case e in #(
16641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 int i;
16644 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"
16646 then :
16647 xorg_cv_cc_flag_unused_command_line_argument=yes
16648 else case e in #(
16649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16650 esac
16651 fi
16652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16653 esac
16654 fi
16655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16658 CFLAGS="$xorg_testset_save_CFLAGS"
16659 fi
16660
16661 found="no"
16662
16663 if test $found = "no" ; then
16664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16666 fi
16667
16668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670 fi
16671
16672 CFLAGS="$CFLAGS -Werror=init-self"
16673
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16675 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16676 cacheid=xorg_cv_cc_flag__Werror_init_self
16677 if eval test \${$cacheid+y}
16678 then :
16679 printf %s "(cached) " >&6
16680 else case e in #(
16681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 int i;
16684 int
16685 main (void)
16686 {
16687
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_link "$LINENO"
16693 then :
16694 eval $cacheid=yes
16695 else case e in #(
16696 e) eval $cacheid=no ;;
16697 esac
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16700 conftest$ac_exeext conftest.$ac_ext ;;
16701 esac
16702 fi
16703
16704
16705 CFLAGS="$xorg_testset_save_CFLAGS"
16706
16707 eval supported=\$$cacheid
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16709 printf "%s\n" "$supported" >&6; }
16710 if test "$supported" = "yes" ; then
16711 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16712 found="yes"
16713 fi
16714 fi
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730 xorg_testset_save_CFLAGS="$CFLAGS"
16731
16732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16736 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16737 then :
16738 printf %s "(cached) " >&6
16739 else case e in #(
16740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 int i;
16743 _ACEOF
16744 if ac_fn_c_try_compile "$LINENO"
16745 then :
16746 xorg_cv_cc_flag_unknown_warning_option=yes
16747 else case e in #(
16748 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16749 esac
16750 fi
16751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16752 esac
16753 fi
16754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16757 CFLAGS="$xorg_testset_save_CFLAGS"
16758 fi
16759
16760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763 fi
16764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16768 then :
16769 printf %s "(cached) " >&6
16770 else case e in #(
16771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 int i;
16774 _ACEOF
16775 if ac_fn_c_try_compile "$LINENO"
16776 then :
16777 xorg_cv_cc_flag_unused_command_line_argument=yes
16778 else case e in #(
16779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16780 esac
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16783 esac
16784 fi
16785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16788 CFLAGS="$xorg_testset_save_CFLAGS"
16789 fi
16790
16791 found="no"
16792
16793 if test $found = "no" ; then
16794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796 fi
16797
16798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16800 fi
16801
16802 CFLAGS="$CFLAGS -Werror=main"
16803
16804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16805 printf %s "checking if $CC supports -Werror=main... " >&6; }
16806 cacheid=xorg_cv_cc_flag__Werror_main
16807 if eval test \${$cacheid+y}
16808 then :
16809 printf %s "(cached) " >&6
16810 else case e in #(
16811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16813 int i;
16814 int
16815 main (void)
16816 {
16817
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_link "$LINENO"
16823 then :
16824 eval $cacheid=yes
16825 else case e in #(
16826 e) eval $cacheid=no ;;
16827 esac
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16830 conftest$ac_exeext conftest.$ac_ext ;;
16831 esac
16832 fi
16833
16834
16835 CFLAGS="$xorg_testset_save_CFLAGS"
16836
16837 eval supported=\$$cacheid
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16839 printf "%s\n" "$supported" >&6; }
16840 if test "$supported" = "yes" ; then
16841 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16842 found="yes"
16843 fi
16844 fi
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860 xorg_testset_save_CFLAGS="$CFLAGS"
16861
16862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16866 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16867 then :
16868 printf %s "(cached) " >&6
16869 else case e in #(
16870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 int i;
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"
16875 then :
16876 xorg_cv_cc_flag_unknown_warning_option=yes
16877 else case e in #(
16878 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16879 esac
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16882 esac
16883 fi
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888 fi
16889
16890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893 fi
16894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16898 then :
16899 printf %s "(cached) " >&6
16900 else case e in #(
16901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 int i;
16904 _ACEOF
16905 if ac_fn_c_try_compile "$LINENO"
16906 then :
16907 xorg_cv_cc_flag_unused_command_line_argument=yes
16908 else case e in #(
16909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16910 esac
16911 fi
16912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16913 esac
16914 fi
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16918 CFLAGS="$xorg_testset_save_CFLAGS"
16919 fi
16920
16921 found="no"
16922
16923 if test $found = "no" ; then
16924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16926 fi
16927
16928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16930 fi
16931
16932 CFLAGS="$CFLAGS -Werror=missing-braces"
16933
16934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16935 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16936 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16937 if eval test \${$cacheid+y}
16938 then :
16939 printf %s "(cached) " >&6
16940 else case e in #(
16941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16943 int i;
16944 int
16945 main (void)
16946 {
16947
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_c_try_link "$LINENO"
16953 then :
16954 eval $cacheid=yes
16955 else case e in #(
16956 e) eval $cacheid=no ;;
16957 esac
16958 fi
16959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16960 conftest$ac_exeext conftest.$ac_ext ;;
16961 esac
16962 fi
16963
16964
16965 CFLAGS="$xorg_testset_save_CFLAGS"
16966
16967 eval supported=\$$cacheid
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16969 printf "%s\n" "$supported" >&6; }
16970 if test "$supported" = "yes" ; then
16971 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16972 found="yes"
16973 fi
16974 fi
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990 xorg_testset_save_CFLAGS="$CFLAGS"
16991
16992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16997 then :
16998 printf %s "(cached) " >&6
16999 else case e in #(
17000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17002 int i;
17003 _ACEOF
17004 if ac_fn_c_try_compile "$LINENO"
17005 then :
17006 xorg_cv_cc_flag_unknown_warning_option=yes
17007 else case e in #(
17008 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17009 esac
17010 fi
17011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17012 esac
17013 fi
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17015 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17017 CFLAGS="$xorg_testset_save_CFLAGS"
17018 fi
17019
17020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17023 fi
17024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17026 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17027 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17028 then :
17029 printf %s "(cached) " >&6
17030 else case e in #(
17031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033 int i;
17034 _ACEOF
17035 if ac_fn_c_try_compile "$LINENO"
17036 then :
17037 xorg_cv_cc_flag_unused_command_line_argument=yes
17038 else case e in #(
17039 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17040 esac
17041 fi
17042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17043 esac
17044 fi
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049 fi
17050
17051 found="no"
17052
17053 if test $found = "no" ; then
17054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056 fi
17057
17058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060 fi
17061
17062 CFLAGS="$CFLAGS -Werror=sequence-point"
17063
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17065 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17066 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17067 if eval test \${$cacheid+y}
17068 then :
17069 printf %s "(cached) " >&6
17070 else case e in #(
17071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17073 int i;
17074 int
17075 main (void)
17076 {
17077
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 if ac_fn_c_try_link "$LINENO"
17083 then :
17084 eval $cacheid=yes
17085 else case e in #(
17086 e) eval $cacheid=no ;;
17087 esac
17088 fi
17089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17090 conftest$ac_exeext conftest.$ac_ext ;;
17091 esac
17092 fi
17093
17094
17095 CFLAGS="$xorg_testset_save_CFLAGS"
17096
17097 eval supported=\$$cacheid
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17099 printf "%s\n" "$supported" >&6; }
17100 if test "$supported" = "yes" ; then
17101 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17102 found="yes"
17103 fi
17104 fi
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120 xorg_testset_save_CFLAGS="$CFLAGS"
17121
17122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17126 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17127 then :
17128 printf %s "(cached) " >&6
17129 else case e in #(
17130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17132 int i;
17133 _ACEOF
17134 if ac_fn_c_try_compile "$LINENO"
17135 then :
17136 xorg_cv_cc_flag_unknown_warning_option=yes
17137 else case e in #(
17138 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17139 esac
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17142 esac
17143 fi
17144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17147 CFLAGS="$xorg_testset_save_CFLAGS"
17148 fi
17149
17150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17153 fi
17154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17157 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17158 then :
17159 printf %s "(cached) " >&6
17160 else case e in #(
17161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17163 int i;
17164 _ACEOF
17165 if ac_fn_c_try_compile "$LINENO"
17166 then :
17167 xorg_cv_cc_flag_unused_command_line_argument=yes
17168 else case e in #(
17169 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17170 esac
17171 fi
17172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17173 esac
17174 fi
17175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17176 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17178 CFLAGS="$xorg_testset_save_CFLAGS"
17179 fi
17180
17181 found="no"
17182
17183 if test $found = "no" ; then
17184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186 fi
17187
17188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190 fi
17191
17192 CFLAGS="$CFLAGS -Werror=return-type"
17193
17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17195 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17196 cacheid=xorg_cv_cc_flag__Werror_return_type
17197 if eval test \${$cacheid+y}
17198 then :
17199 printf %s "(cached) " >&6
17200 else case e in #(
17201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17203 int i;
17204 int
17205 main (void)
17206 {
17207
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 if ac_fn_c_try_link "$LINENO"
17213 then :
17214 eval $cacheid=yes
17215 else case e in #(
17216 e) eval $cacheid=no ;;
17217 esac
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17220 conftest$ac_exeext conftest.$ac_ext ;;
17221 esac
17222 fi
17223
17224
17225 CFLAGS="$xorg_testset_save_CFLAGS"
17226
17227 eval supported=\$$cacheid
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17229 printf "%s\n" "$supported" >&6; }
17230 if test "$supported" = "yes" ; then
17231 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17232 found="yes"
17233 fi
17234 fi
17235
17236 if test $found = "no" ; then
17237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239 fi
17240
17241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243 fi
17244
17245 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17246
17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17248 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17249 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17250 if eval test \${$cacheid+y}
17251 then :
17252 printf %s "(cached) " >&6
17253 else case e in #(
17254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17256 int i;
17257 int
17258 main (void)
17259 {
17260
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"
17266 then :
17267 eval $cacheid=yes
17268 else case e in #(
17269 e) eval $cacheid=no ;;
17270 esac
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17273 conftest$ac_exeext conftest.$ac_ext ;;
17274 esac
17275 fi
17276
17277
17278 CFLAGS="$xorg_testset_save_CFLAGS"
17279
17280 eval supported=\$$cacheid
17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17282 printf "%s\n" "$supported" >&6; }
17283 if test "$supported" = "yes" ; then
17284 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17285 found="yes"
17286 fi
17287 fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303 xorg_testset_save_CFLAGS="$CFLAGS"
17304
17305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17309 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17310 then :
17311 printf %s "(cached) " >&6
17312 else case e in #(
17313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17315 int i;
17316 _ACEOF
17317 if ac_fn_c_try_compile "$LINENO"
17318 then :
17319 xorg_cv_cc_flag_unknown_warning_option=yes
17320 else case e in #(
17321 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17322 esac
17323 fi
17324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17325 esac
17326 fi
17327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17330 CFLAGS="$xorg_testset_save_CFLAGS"
17331 fi
17332
17333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17336 fi
17337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17341 then :
17342 printf %s "(cached) " >&6
17343 else case e in #(
17344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17346 int i;
17347 _ACEOF
17348 if ac_fn_c_try_compile "$LINENO"
17349 then :
17350 xorg_cv_cc_flag_unused_command_line_argument=yes
17351 else case e in #(
17352 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17353 esac
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17356 esac
17357 fi
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17361 CFLAGS="$xorg_testset_save_CFLAGS"
17362 fi
17363
17364 found="no"
17365
17366 if test $found = "no" ; then
17367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369 fi
17370
17371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17373 fi
17374
17375 CFLAGS="$CFLAGS -Werror=trigraphs"
17376
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17378 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17379 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17380 if eval test \${$cacheid+y}
17381 then :
17382 printf %s "(cached) " >&6
17383 else case e in #(
17384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386 int i;
17387 int
17388 main (void)
17389 {
17390
17391 ;
17392 return 0;
17393 }
17394 _ACEOF
17395 if ac_fn_c_try_link "$LINENO"
17396 then :
17397 eval $cacheid=yes
17398 else case e in #(
17399 e) eval $cacheid=no ;;
17400 esac
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17403 conftest$ac_exeext conftest.$ac_ext ;;
17404 esac
17405 fi
17406
17407
17408 CFLAGS="$xorg_testset_save_CFLAGS"
17409
17410 eval supported=\$$cacheid
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17412 printf "%s\n" "$supported" >&6; }
17413 if test "$supported" = "yes" ; then
17414 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17415 found="yes"
17416 fi
17417 fi
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433 xorg_testset_save_CFLAGS="$CFLAGS"
17434
17435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17439 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17440 then :
17441 printf %s "(cached) " >&6
17442 else case e in #(
17443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"
17448 then :
17449 xorg_cv_cc_flag_unknown_warning_option=yes
17450 else case e in #(
17451 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17452 esac
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17455 esac
17456 fi
17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17460 CFLAGS="$xorg_testset_save_CFLAGS"
17461 fi
17462
17463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466 fi
17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17471 then :
17472 printf %s "(cached) " >&6
17473 else case e in #(
17474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476 int i;
17477 _ACEOF
17478 if ac_fn_c_try_compile "$LINENO"
17479 then :
17480 xorg_cv_cc_flag_unused_command_line_argument=yes
17481 else case e in #(
17482 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17483 esac
17484 fi
17485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17486 esac
17487 fi
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17491 CFLAGS="$xorg_testset_save_CFLAGS"
17492 fi
17493
17494 found="no"
17495
17496 if test $found = "no" ; then
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499 fi
17500
17501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17503 fi
17504
17505 CFLAGS="$CFLAGS -Werror=array-bounds"
17506
17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17508 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17509 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17510 if eval test \${$cacheid+y}
17511 then :
17512 printf %s "(cached) " >&6
17513 else case e in #(
17514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 int i;
17517 int
17518 main (void)
17519 {
17520
17521 ;
17522 return 0;
17523 }
17524 _ACEOF
17525 if ac_fn_c_try_link "$LINENO"
17526 then :
17527 eval $cacheid=yes
17528 else case e in #(
17529 e) eval $cacheid=no ;;
17530 esac
17531 fi
17532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17533 conftest$ac_exeext conftest.$ac_ext ;;
17534 esac
17535 fi
17536
17537
17538 CFLAGS="$xorg_testset_save_CFLAGS"
17539
17540 eval supported=\$$cacheid
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17542 printf "%s\n" "$supported" >&6; }
17543 if test "$supported" = "yes" ; then
17544 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17545 found="yes"
17546 fi
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563 xorg_testset_save_CFLAGS="$CFLAGS"
17564
17565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17570 then :
17571 printf %s "(cached) " >&6
17572 else case e in #(
17573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 int i;
17576 _ACEOF
17577 if ac_fn_c_try_compile "$LINENO"
17578 then :
17579 xorg_cv_cc_flag_unknown_warning_option=yes
17580 else case e in #(
17581 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17582 esac
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17585 esac
17586 fi
17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17590 CFLAGS="$xorg_testset_save_CFLAGS"
17591 fi
17592
17593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596 fi
17597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17601 then :
17602 printf %s "(cached) " >&6
17603 else case e in #(
17604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605 /* end confdefs.h. */
17606 int i;
17607 _ACEOF
17608 if ac_fn_c_try_compile "$LINENO"
17609 then :
17610 xorg_cv_cc_flag_unused_command_line_argument=yes
17611 else case e in #(
17612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17613 esac
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17616 esac
17617 fi
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17621 CFLAGS="$xorg_testset_save_CFLAGS"
17622 fi
17623
17624 found="no"
17625
17626 if test $found = "no" ; then
17627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17629 fi
17630
17631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17633 fi
17634
17635 CFLAGS="$CFLAGS -Werror=write-strings"
17636
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17638 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17639 cacheid=xorg_cv_cc_flag__Werror_write_strings
17640 if eval test \${$cacheid+y}
17641 then :
17642 printf %s "(cached) " >&6
17643 else case e in #(
17644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 int i;
17647 int
17648 main (void)
17649 {
17650
17651 ;
17652 return 0;
17653 }
17654 _ACEOF
17655 if ac_fn_c_try_link "$LINENO"
17656 then :
17657 eval $cacheid=yes
17658 else case e in #(
17659 e) eval $cacheid=no ;;
17660 esac
17661 fi
17662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17663 conftest$ac_exeext conftest.$ac_ext ;;
17664 esac
17665 fi
17666
17667
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669
17670 eval supported=\$$cacheid
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17672 printf "%s\n" "$supported" >&6; }
17673 if test "$supported" = "yes" ; then
17674 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17675 found="yes"
17676 fi
17677 fi
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693 xorg_testset_save_CFLAGS="$CFLAGS"
17694
17695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17699 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17700 then :
17701 printf %s "(cached) " >&6
17702 else case e in #(
17703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17705 int i;
17706 _ACEOF
17707 if ac_fn_c_try_compile "$LINENO"
17708 then :
17709 xorg_cv_cc_flag_unknown_warning_option=yes
17710 else case e in #(
17711 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17712 esac
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17715 esac
17716 fi
17717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17718 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17720 CFLAGS="$xorg_testset_save_CFLAGS"
17721 fi
17722
17723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726 fi
17727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17731 then :
17732 printf %s "(cached) " >&6
17733 else case e in #(
17734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736 int i;
17737 _ACEOF
17738 if ac_fn_c_try_compile "$LINENO"
17739 then :
17740 xorg_cv_cc_flag_unused_command_line_argument=yes
17741 else case e in #(
17742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17743 esac
17744 fi
17745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17746 esac
17747 fi
17748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17751 CFLAGS="$xorg_testset_save_CFLAGS"
17752 fi
17753
17754 found="no"
17755
17756 if test $found = "no" ; then
17757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17759 fi
17760
17761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17763 fi
17764
17765 CFLAGS="$CFLAGS -Werror=address"
17766
17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17768 printf %s "checking if $CC supports -Werror=address... " >&6; }
17769 cacheid=xorg_cv_cc_flag__Werror_address
17770 if eval test \${$cacheid+y}
17771 then :
17772 printf %s "(cached) " >&6
17773 else case e in #(
17774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17776 int i;
17777 int
17778 main (void)
17779 {
17780
17781 ;
17782 return 0;
17783 }
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"
17786 then :
17787 eval $cacheid=yes
17788 else case e in #(
17789 e) eval $cacheid=no ;;
17790 esac
17791 fi
17792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17793 conftest$ac_exeext conftest.$ac_ext ;;
17794 esac
17795 fi
17796
17797
17798 CFLAGS="$xorg_testset_save_CFLAGS"
17799
17800 eval supported=\$$cacheid
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17802 printf "%s\n" "$supported" >&6; }
17803 if test "$supported" = "yes" ; then
17804 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17805 found="yes"
17806 fi
17807 fi
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823 xorg_testset_save_CFLAGS="$CFLAGS"
17824
17825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17830 then :
17831 printf %s "(cached) " >&6
17832 else case e in #(
17833 e) 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_unknown_warning_option=yes
17840 else case e in #(
17841 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17842 esac
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17845 esac
17846 fi
17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17850 CFLAGS="$xorg_testset_save_CFLAGS"
17851 fi
17852
17853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17856 fi
17857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17861 then :
17862 printf %s "(cached) " >&6
17863 else case e in #(
17864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17866 int i;
17867 _ACEOF
17868 if ac_fn_c_try_compile "$LINENO"
17869 then :
17870 xorg_cv_cc_flag_unused_command_line_argument=yes
17871 else case e in #(
17872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17873 esac
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17876 esac
17877 fi
17878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17881 CFLAGS="$xorg_testset_save_CFLAGS"
17882 fi
17883
17884 found="no"
17885
17886 if test $found = "no" ; then
17887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17889 fi
17890
17891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17893 fi
17894
17895 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17896
17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17898 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17899 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17900 if eval test \${$cacheid+y}
17901 then :
17902 printf %s "(cached) " >&6
17903 else case e in #(
17904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 int i;
17907 int
17908 main (void)
17909 {
17910
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"
17916 then :
17917 eval $cacheid=yes
17918 else case e in #(
17919 e) eval $cacheid=no ;;
17920 esac
17921 fi
17922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17923 conftest$ac_exeext conftest.$ac_ext ;;
17924 esac
17925 fi
17926
17927
17928 CFLAGS="$xorg_testset_save_CFLAGS"
17929
17930 eval supported=\$$cacheid
17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17932 printf "%s\n" "$supported" >&6; }
17933 if test "$supported" = "yes" ; then
17934 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17935 found="yes"
17936 fi
17937 fi
17938
17939 if test $found = "no" ; then
17940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17942 fi
17943
17944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17946 fi
17947
17948 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17949
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17951 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17952 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17953 if eval test \${$cacheid+y}
17954 then :
17955 printf %s "(cached) " >&6
17956 else case e in #(
17957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959 int i;
17960 int
17961 main (void)
17962 {
17963
17964 ;
17965 return 0;
17966 }
17967 _ACEOF
17968 if ac_fn_c_try_link "$LINENO"
17969 then :
17970 eval $cacheid=yes
17971 else case e in #(
17972 e) eval $cacheid=no ;;
17973 esac
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17976 conftest$ac_exeext conftest.$ac_ext ;;
17977 esac
17978 fi
17979
17980
17981 CFLAGS="$xorg_testset_save_CFLAGS"
17982
17983 eval supported=\$$cacheid
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17985 printf "%s\n" "$supported" >&6; }
17986 if test "$supported" = "yes" ; then
17987 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17988 found="yes"
17989 fi
17990 fi
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006 xorg_testset_save_CFLAGS="$CFLAGS"
18007
18008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18013 then :
18014 printf %s "(cached) " >&6
18015 else case e in #(
18016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 int i;
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"
18021 then :
18022 xorg_cv_cc_flag_unknown_warning_option=yes
18023 else case e in #(
18024 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18025 esac
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18028 esac
18029 fi
18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18033 CFLAGS="$xorg_testset_save_CFLAGS"
18034 fi
18035
18036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039 fi
18040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18044 then :
18045 printf %s "(cached) " >&6
18046 else case e in #(
18047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 int i;
18050 _ACEOF
18051 if ac_fn_c_try_compile "$LINENO"
18052 then :
18053 xorg_cv_cc_flag_unused_command_line_argument=yes
18054 else case e in #(
18055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18056 esac
18057 fi
18058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18059 esac
18060 fi
18061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18064 CFLAGS="$xorg_testset_save_CFLAGS"
18065 fi
18066
18067 found="no"
18068
18069 if test $found = "no" ; then
18070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072 fi
18073
18074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18076 fi
18077
18078 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18079
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18081 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18082 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18083 if eval test \${$cacheid+y}
18084 then :
18085 printf %s "(cached) " >&6
18086 else case e in #(
18087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 int i;
18090 int
18091 main (void)
18092 {
18093
18094 ;
18095 return 0;
18096 }
18097 _ACEOF
18098 if ac_fn_c_try_link "$LINENO"
18099 then :
18100 eval $cacheid=yes
18101 else case e in #(
18102 e) eval $cacheid=no ;;
18103 esac
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18106 conftest$ac_exeext conftest.$ac_ext ;;
18107 esac
18108 fi
18109
18110
18111 CFLAGS="$xorg_testset_save_CFLAGS"
18112
18113 eval supported=\$$cacheid
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18115 printf "%s\n" "$supported" >&6; }
18116 if test "$supported" = "yes" ; then
18117 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18118 found="yes"
18119 fi
18120 fi
18121
18122 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18123 else
18124 { 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
18125 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;}
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139 xorg_testset_save_CFLAGS="$CFLAGS"
18140
18141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18146 then :
18147 printf %s "(cached) " >&6
18148 else case e in #(
18149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 int i;
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"
18154 then :
18155 xorg_cv_cc_flag_unknown_warning_option=yes
18156 else case e in #(
18157 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18158 esac
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18161 esac
18162 fi
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18166 CFLAGS="$xorg_testset_save_CFLAGS"
18167 fi
18168
18169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18172 fi
18173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18177 then :
18178 printf %s "(cached) " >&6
18179 else case e in #(
18180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 int i;
18183 _ACEOF
18184 if ac_fn_c_try_compile "$LINENO"
18185 then :
18186 xorg_cv_cc_flag_unused_command_line_argument=yes
18187 else case e in #(
18188 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18189 esac
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18192 esac
18193 fi
18194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18195 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18197 CFLAGS="$xorg_testset_save_CFLAGS"
18198 fi
18199
18200 found="no"
18201
18202 if test $found = "no" ; then
18203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18205 fi
18206
18207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18209 fi
18210
18211 CFLAGS="$CFLAGS -Wimplicit"
18212
18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18214 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18215 cacheid=xorg_cv_cc_flag__Wimplicit
18216 if eval test \${$cacheid+y}
18217 then :
18218 printf %s "(cached) " >&6
18219 else case e in #(
18220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18222 int i;
18223 int
18224 main (void)
18225 {
18226
18227 ;
18228 return 0;
18229 }
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"
18232 then :
18233 eval $cacheid=yes
18234 else case e in #(
18235 e) eval $cacheid=no ;;
18236 esac
18237 fi
18238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18239 conftest$ac_exeext conftest.$ac_ext ;;
18240 esac
18241 fi
18242
18243
18244 CFLAGS="$xorg_testset_save_CFLAGS"
18245
18246 eval supported=\$$cacheid
18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18248 printf "%s\n" "$supported" >&6; }
18249 if test "$supported" = "yes" ; then
18250 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18251 found="yes"
18252 fi
18253 fi
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269 xorg_testset_save_CFLAGS="$CFLAGS"
18270
18271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18275 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18276 then :
18277 printf %s "(cached) " >&6
18278 else case e in #(
18279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18281 int i;
18282 _ACEOF
18283 if ac_fn_c_try_compile "$LINENO"
18284 then :
18285 xorg_cv_cc_flag_unknown_warning_option=yes
18286 else case e in #(
18287 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18288 esac
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18291 esac
18292 fi
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18296 CFLAGS="$xorg_testset_save_CFLAGS"
18297 fi
18298
18299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18302 fi
18303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18307 then :
18308 printf %s "(cached) " >&6
18309 else case e in #(
18310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18312 int i;
18313 _ACEOF
18314 if ac_fn_c_try_compile "$LINENO"
18315 then :
18316 xorg_cv_cc_flag_unused_command_line_argument=yes
18317 else case e in #(
18318 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18319 esac
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18322 esac
18323 fi
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18327 CFLAGS="$xorg_testset_save_CFLAGS"
18328 fi
18329
18330 found="no"
18331
18332 if test $found = "no" ; then
18333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18335 fi
18336
18337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18339 fi
18340
18341 CFLAGS="$CFLAGS -Wnonnull"
18342
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18344 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18345 cacheid=xorg_cv_cc_flag__Wnonnull
18346 if eval test \${$cacheid+y}
18347 then :
18348 printf %s "(cached) " >&6
18349 else case e in #(
18350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352 int i;
18353 int
18354 main (void)
18355 {
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"
18362 then :
18363 eval $cacheid=yes
18364 else case e in #(
18365 e) eval $cacheid=no ;;
18366 esac
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18369 conftest$ac_exeext conftest.$ac_ext ;;
18370 esac
18371 fi
18372
18373
18374 CFLAGS="$xorg_testset_save_CFLAGS"
18375
18376 eval supported=\$$cacheid
18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18378 printf "%s\n" "$supported" >&6; }
18379 if test "$supported" = "yes" ; then
18380 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18381 found="yes"
18382 fi
18383 fi
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399 xorg_testset_save_CFLAGS="$CFLAGS"
18400
18401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18405 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18406 then :
18407 printf %s "(cached) " >&6
18408 else case e in #(
18409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18411 int i;
18412 _ACEOF
18413 if ac_fn_c_try_compile "$LINENO"
18414 then :
18415 xorg_cv_cc_flag_unknown_warning_option=yes
18416 else case e in #(
18417 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18418 esac
18419 fi
18420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18421 esac
18422 fi
18423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18426 CFLAGS="$xorg_testset_save_CFLAGS"
18427 fi
18428
18429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18432 fi
18433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18437 then :
18438 printf %s "(cached) " >&6
18439 else case e in #(
18440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442 int i;
18443 _ACEOF
18444 if ac_fn_c_try_compile "$LINENO"
18445 then :
18446 xorg_cv_cc_flag_unused_command_line_argument=yes
18447 else case e in #(
18448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18449 esac
18450 fi
18451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18452 esac
18453 fi
18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18455 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18457 CFLAGS="$xorg_testset_save_CFLAGS"
18458 fi
18459
18460 found="no"
18461
18462 if test $found = "no" ; then
18463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18465 fi
18466
18467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18469 fi
18470
18471 CFLAGS="$CFLAGS -Winit-self"
18472
18473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18474 printf %s "checking if $CC supports -Winit-self... " >&6; }
18475 cacheid=xorg_cv_cc_flag__Winit_self
18476 if eval test \${$cacheid+y}
18477 then :
18478 printf %s "(cached) " >&6
18479 else case e in #(
18480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 int i;
18483 int
18484 main (void)
18485 {
18486
18487 ;
18488 return 0;
18489 }
18490 _ACEOF
18491 if ac_fn_c_try_link "$LINENO"
18492 then :
18493 eval $cacheid=yes
18494 else case e in #(
18495 e) eval $cacheid=no ;;
18496 esac
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18499 conftest$ac_exeext conftest.$ac_ext ;;
18500 esac
18501 fi
18502
18503
18504 CFLAGS="$xorg_testset_save_CFLAGS"
18505
18506 eval supported=\$$cacheid
18507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18508 printf "%s\n" "$supported" >&6; }
18509 if test "$supported" = "yes" ; then
18510 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18511 found="yes"
18512 fi
18513 fi
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529 xorg_testset_save_CFLAGS="$CFLAGS"
18530
18531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18536 then :
18537 printf %s "(cached) " >&6
18538 else case e in #(
18539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18541 int i;
18542 _ACEOF
18543 if ac_fn_c_try_compile "$LINENO"
18544 then :
18545 xorg_cv_cc_flag_unknown_warning_option=yes
18546 else case e in #(
18547 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18548 esac
18549 fi
18550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18551 esac
18552 fi
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18556 CFLAGS="$xorg_testset_save_CFLAGS"
18557 fi
18558
18559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18562 fi
18563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18567 then :
18568 printf %s "(cached) " >&6
18569 else case e in #(
18570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18572 int i;
18573 _ACEOF
18574 if ac_fn_c_try_compile "$LINENO"
18575 then :
18576 xorg_cv_cc_flag_unused_command_line_argument=yes
18577 else case e in #(
18578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18579 esac
18580 fi
18581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18582 esac
18583 fi
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18587 CFLAGS="$xorg_testset_save_CFLAGS"
18588 fi
18589
18590 found="no"
18591
18592 if test $found = "no" ; then
18593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18595 fi
18596
18597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18599 fi
18600
18601 CFLAGS="$CFLAGS -Wmain"
18602
18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18604 printf %s "checking if $CC supports -Wmain... " >&6; }
18605 cacheid=xorg_cv_cc_flag__Wmain
18606 if eval test \${$cacheid+y}
18607 then :
18608 printf %s "(cached) " >&6
18609 else case e in #(
18610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 int i;
18613 int
18614 main (void)
18615 {
18616
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_link "$LINENO"
18622 then :
18623 eval $cacheid=yes
18624 else case e in #(
18625 e) eval $cacheid=no ;;
18626 esac
18627 fi
18628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18629 conftest$ac_exeext conftest.$ac_ext ;;
18630 esac
18631 fi
18632
18633
18634 CFLAGS="$xorg_testset_save_CFLAGS"
18635
18636 eval supported=\$$cacheid
18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18638 printf "%s\n" "$supported" >&6; }
18639 if test "$supported" = "yes" ; then
18640 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18641 found="yes"
18642 fi
18643 fi
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659 xorg_testset_save_CFLAGS="$CFLAGS"
18660
18661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18666 then :
18667 printf %s "(cached) " >&6
18668 else case e in #(
18669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 int i;
18672 _ACEOF
18673 if ac_fn_c_try_compile "$LINENO"
18674 then :
18675 xorg_cv_cc_flag_unknown_warning_option=yes
18676 else case e in #(
18677 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18678 esac
18679 fi
18680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18681 esac
18682 fi
18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18686 CFLAGS="$xorg_testset_save_CFLAGS"
18687 fi
18688
18689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692 fi
18693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18697 then :
18698 printf %s "(cached) " >&6
18699 else case e in #(
18700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18702 int i;
18703 _ACEOF
18704 if ac_fn_c_try_compile "$LINENO"
18705 then :
18706 xorg_cv_cc_flag_unused_command_line_argument=yes
18707 else case e in #(
18708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18709 esac
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18712 esac
18713 fi
18714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18717 CFLAGS="$xorg_testset_save_CFLAGS"
18718 fi
18719
18720 found="no"
18721
18722 if test $found = "no" ; then
18723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18725 fi
18726
18727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18729 fi
18730
18731 CFLAGS="$CFLAGS -Wmissing-braces"
18732
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18734 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18735 cacheid=xorg_cv_cc_flag__Wmissing_braces
18736 if eval test \${$cacheid+y}
18737 then :
18738 printf %s "(cached) " >&6
18739 else case e in #(
18740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742 int i;
18743 int
18744 main (void)
18745 {
18746
18747 ;
18748 return 0;
18749 }
18750 _ACEOF
18751 if ac_fn_c_try_link "$LINENO"
18752 then :
18753 eval $cacheid=yes
18754 else case e in #(
18755 e) eval $cacheid=no ;;
18756 esac
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18759 conftest$ac_exeext conftest.$ac_ext ;;
18760 esac
18761 fi
18762
18763
18764 CFLAGS="$xorg_testset_save_CFLAGS"
18765
18766 eval supported=\$$cacheid
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18768 printf "%s\n" "$supported" >&6; }
18769 if test "$supported" = "yes" ; then
18770 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18771 found="yes"
18772 fi
18773 fi
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789 xorg_testset_save_CFLAGS="$CFLAGS"
18790
18791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18794 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18795 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18796 then :
18797 printf %s "(cached) " >&6
18798 else case e in #(
18799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800 /* end confdefs.h. */
18801 int i;
18802 _ACEOF
18803 if ac_fn_c_try_compile "$LINENO"
18804 then :
18805 xorg_cv_cc_flag_unknown_warning_option=yes
18806 else case e in #(
18807 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18808 esac
18809 fi
18810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18811 esac
18812 fi
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18816 CFLAGS="$xorg_testset_save_CFLAGS"
18817 fi
18818
18819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18822 fi
18823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18827 then :
18828 printf %s "(cached) " >&6
18829 else case e in #(
18830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 int i;
18833 _ACEOF
18834 if ac_fn_c_try_compile "$LINENO"
18835 then :
18836 xorg_cv_cc_flag_unused_command_line_argument=yes
18837 else case e in #(
18838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18839 esac
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18842 esac
18843 fi
18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18847 CFLAGS="$xorg_testset_save_CFLAGS"
18848 fi
18849
18850 found="no"
18851
18852 if test $found = "no" ; then
18853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855 fi
18856
18857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859 fi
18860
18861 CFLAGS="$CFLAGS -Wsequence-point"
18862
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18864 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18865 cacheid=xorg_cv_cc_flag__Wsequence_point
18866 if eval test \${$cacheid+y}
18867 then :
18868 printf %s "(cached) " >&6
18869 else case e in #(
18870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 int i;
18873 int
18874 main (void)
18875 {
18876
18877 ;
18878 return 0;
18879 }
18880 _ACEOF
18881 if ac_fn_c_try_link "$LINENO"
18882 then :
18883 eval $cacheid=yes
18884 else case e in #(
18885 e) eval $cacheid=no ;;
18886 esac
18887 fi
18888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18889 conftest$ac_exeext conftest.$ac_ext ;;
18890 esac
18891 fi
18892
18893
18894 CFLAGS="$xorg_testset_save_CFLAGS"
18895
18896 eval supported=\$$cacheid
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18898 printf "%s\n" "$supported" >&6; }
18899 if test "$supported" = "yes" ; then
18900 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18901 found="yes"
18902 fi
18903 fi
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919 xorg_testset_save_CFLAGS="$CFLAGS"
18920
18921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18926 then :
18927 printf %s "(cached) " >&6
18928 else case e in #(
18929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18931 int i;
18932 _ACEOF
18933 if ac_fn_c_try_compile "$LINENO"
18934 then :
18935 xorg_cv_cc_flag_unknown_warning_option=yes
18936 else case e in #(
18937 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18938 esac
18939 fi
18940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18941 esac
18942 fi
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18944 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18946 CFLAGS="$xorg_testset_save_CFLAGS"
18947 fi
18948
18949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18952 fi
18953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18957 then :
18958 printf %s "(cached) " >&6
18959 else case e in #(
18960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18962 int i;
18963 _ACEOF
18964 if ac_fn_c_try_compile "$LINENO"
18965 then :
18966 xorg_cv_cc_flag_unused_command_line_argument=yes
18967 else case e in #(
18968 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18969 esac
18970 fi
18971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18972 esac
18973 fi
18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18975 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18977 CFLAGS="$xorg_testset_save_CFLAGS"
18978 fi
18979
18980 found="no"
18981
18982 if test $found = "no" ; then
18983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18985 fi
18986
18987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18989 fi
18990
18991 CFLAGS="$CFLAGS -Wreturn-type"
18992
18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18994 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18995 cacheid=xorg_cv_cc_flag__Wreturn_type
18996 if eval test \${$cacheid+y}
18997 then :
18998 printf %s "(cached) " >&6
18999 else case e in #(
19000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002 int i;
19003 int
19004 main (void)
19005 {
19006
19007 ;
19008 return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_link "$LINENO"
19012 then :
19013 eval $cacheid=yes
19014 else case e in #(
19015 e) eval $cacheid=no ;;
19016 esac
19017 fi
19018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19019 conftest$ac_exeext conftest.$ac_ext ;;
19020 esac
19021 fi
19022
19023
19024 CFLAGS="$xorg_testset_save_CFLAGS"
19025
19026 eval supported=\$$cacheid
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19028 printf "%s\n" "$supported" >&6; }
19029 if test "$supported" = "yes" ; then
19030 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19031 found="yes"
19032 fi
19033 fi
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049 xorg_testset_save_CFLAGS="$CFLAGS"
19050
19051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19056 then :
19057 printf %s "(cached) " >&6
19058 else case e in #(
19059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19060 /* end confdefs.h. */
19061 int i;
19062 _ACEOF
19063 if ac_fn_c_try_compile "$LINENO"
19064 then :
19065 xorg_cv_cc_flag_unknown_warning_option=yes
19066 else case e in #(
19067 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19068 esac
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19071 esac
19072 fi
19073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19076 CFLAGS="$xorg_testset_save_CFLAGS"
19077 fi
19078
19079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19082 fi
19083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19087 then :
19088 printf %s "(cached) " >&6
19089 else case e in #(
19090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19092 int i;
19093 _ACEOF
19094 if ac_fn_c_try_compile "$LINENO"
19095 then :
19096 xorg_cv_cc_flag_unused_command_line_argument=yes
19097 else case e in #(
19098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19099 esac
19100 fi
19101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19102 esac
19103 fi
19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19107 CFLAGS="$xorg_testset_save_CFLAGS"
19108 fi
19109
19110 found="no"
19111
19112 if test $found = "no" ; then
19113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19115 fi
19116
19117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19119 fi
19120
19121 CFLAGS="$CFLAGS -Wtrigraphs"
19122
19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19124 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19125 cacheid=xorg_cv_cc_flag__Wtrigraphs
19126 if eval test \${$cacheid+y}
19127 then :
19128 printf %s "(cached) " >&6
19129 else case e in #(
19130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19132 int i;
19133 int
19134 main (void)
19135 {
19136
19137 ;
19138 return 0;
19139 }
19140 _ACEOF
19141 if ac_fn_c_try_link "$LINENO"
19142 then :
19143 eval $cacheid=yes
19144 else case e in #(
19145 e) eval $cacheid=no ;;
19146 esac
19147 fi
19148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19149 conftest$ac_exeext conftest.$ac_ext ;;
19150 esac
19151 fi
19152
19153
19154 CFLAGS="$xorg_testset_save_CFLAGS"
19155
19156 eval supported=\$$cacheid
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19158 printf "%s\n" "$supported" >&6; }
19159 if test "$supported" = "yes" ; then
19160 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19161 found="yes"
19162 fi
19163 fi
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179 xorg_testset_save_CFLAGS="$CFLAGS"
19180
19181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19186 then :
19187 printf %s "(cached) " >&6
19188 else case e in #(
19189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 int i;
19192 _ACEOF
19193 if ac_fn_c_try_compile "$LINENO"
19194 then :
19195 xorg_cv_cc_flag_unknown_warning_option=yes
19196 else case e in #(
19197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19198 esac
19199 fi
19200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19201 esac
19202 fi
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19206 CFLAGS="$xorg_testset_save_CFLAGS"
19207 fi
19208
19209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19212 fi
19213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19217 then :
19218 printf %s "(cached) " >&6
19219 else case e in #(
19220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222 int i;
19223 _ACEOF
19224 if ac_fn_c_try_compile "$LINENO"
19225 then :
19226 xorg_cv_cc_flag_unused_command_line_argument=yes
19227 else case e in #(
19228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19229 esac
19230 fi
19231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19232 esac
19233 fi
19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19237 CFLAGS="$xorg_testset_save_CFLAGS"
19238 fi
19239
19240 found="no"
19241
19242 if test $found = "no" ; then
19243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19245 fi
19246
19247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19249 fi
19250
19251 CFLAGS="$CFLAGS -Warray-bounds"
19252
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19254 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19255 cacheid=xorg_cv_cc_flag__Warray_bounds
19256 if eval test \${$cacheid+y}
19257 then :
19258 printf %s "(cached) " >&6
19259 else case e in #(
19260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 int i;
19263 int
19264 main (void)
19265 {
19266
19267 ;
19268 return 0;
19269 }
19270 _ACEOF
19271 if ac_fn_c_try_link "$LINENO"
19272 then :
19273 eval $cacheid=yes
19274 else case e in #(
19275 e) eval $cacheid=no ;;
19276 esac
19277 fi
19278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19279 conftest$ac_exeext conftest.$ac_ext ;;
19280 esac
19281 fi
19282
19283
19284 CFLAGS="$xorg_testset_save_CFLAGS"
19285
19286 eval supported=\$$cacheid
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19288 printf "%s\n" "$supported" >&6; }
19289 if test "$supported" = "yes" ; then
19290 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19291 found="yes"
19292 fi
19293 fi
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309 xorg_testset_save_CFLAGS="$CFLAGS"
19310
19311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19316 then :
19317 printf %s "(cached) " >&6
19318 else case e in #(
19319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321 int i;
19322 _ACEOF
19323 if ac_fn_c_try_compile "$LINENO"
19324 then :
19325 xorg_cv_cc_flag_unknown_warning_option=yes
19326 else case e in #(
19327 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19328 esac
19329 fi
19330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19331 esac
19332 fi
19333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19336 CFLAGS="$xorg_testset_save_CFLAGS"
19337 fi
19338
19339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19342 fi
19343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19347 then :
19348 printf %s "(cached) " >&6
19349 else case e in #(
19350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19352 int i;
19353 _ACEOF
19354 if ac_fn_c_try_compile "$LINENO"
19355 then :
19356 xorg_cv_cc_flag_unused_command_line_argument=yes
19357 else case e in #(
19358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19359 esac
19360 fi
19361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19362 esac
19363 fi
19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19367 CFLAGS="$xorg_testset_save_CFLAGS"
19368 fi
19369
19370 found="no"
19371
19372 if test $found = "no" ; then
19373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19375 fi
19376
19377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19379 fi
19380
19381 CFLAGS="$CFLAGS -Wwrite-strings"
19382
19383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19384 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19385 cacheid=xorg_cv_cc_flag__Wwrite_strings
19386 if eval test \${$cacheid+y}
19387 then :
19388 printf %s "(cached) " >&6
19389 else case e in #(
19390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19392 int i;
19393 int
19394 main (void)
19395 {
19396
19397 ;
19398 return 0;
19399 }
19400 _ACEOF
19401 if ac_fn_c_try_link "$LINENO"
19402 then :
19403 eval $cacheid=yes
19404 else case e in #(
19405 e) eval $cacheid=no ;;
19406 esac
19407 fi
19408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19409 conftest$ac_exeext conftest.$ac_ext ;;
19410 esac
19411 fi
19412
19413
19414 CFLAGS="$xorg_testset_save_CFLAGS"
19415
19416 eval supported=\$$cacheid
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19418 printf "%s\n" "$supported" >&6; }
19419 if test "$supported" = "yes" ; then
19420 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19421 found="yes"
19422 fi
19423 fi
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439 xorg_testset_save_CFLAGS="$CFLAGS"
19440
19441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19445 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19446 then :
19447 printf %s "(cached) " >&6
19448 else case e in #(
19449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19451 int i;
19452 _ACEOF
19453 if ac_fn_c_try_compile "$LINENO"
19454 then :
19455 xorg_cv_cc_flag_unknown_warning_option=yes
19456 else case e in #(
19457 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19458 esac
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19461 esac
19462 fi
19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19466 CFLAGS="$xorg_testset_save_CFLAGS"
19467 fi
19468
19469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19472 fi
19473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19477 then :
19478 printf %s "(cached) " >&6
19479 else case e in #(
19480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19482 int i;
19483 _ACEOF
19484 if ac_fn_c_try_compile "$LINENO"
19485 then :
19486 xorg_cv_cc_flag_unused_command_line_argument=yes
19487 else case e in #(
19488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19489 esac
19490 fi
19491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19492 esac
19493 fi
19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19497 CFLAGS="$xorg_testset_save_CFLAGS"
19498 fi
19499
19500 found="no"
19501
19502 if test $found = "no" ; then
19503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19505 fi
19506
19507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19509 fi
19510
19511 CFLAGS="$CFLAGS -Waddress"
19512
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19514 printf %s "checking if $CC supports -Waddress... " >&6; }
19515 cacheid=xorg_cv_cc_flag__Waddress
19516 if eval test \${$cacheid+y}
19517 then :
19518 printf %s "(cached) " >&6
19519 else case e in #(
19520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19522 int i;
19523 int
19524 main (void)
19525 {
19526
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"
19532 then :
19533 eval $cacheid=yes
19534 else case e in #(
19535 e) eval $cacheid=no ;;
19536 esac
19537 fi
19538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19539 conftest$ac_exeext conftest.$ac_ext ;;
19540 esac
19541 fi
19542
19543
19544 CFLAGS="$xorg_testset_save_CFLAGS"
19545
19546 eval supported=\$$cacheid
19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19548 printf "%s\n" "$supported" >&6; }
19549 if test "$supported" = "yes" ; then
19550 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19551 found="yes"
19552 fi
19553 fi
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569 xorg_testset_save_CFLAGS="$CFLAGS"
19570
19571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19574 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19575 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19576 then :
19577 printf %s "(cached) " >&6
19578 else case e in #(
19579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19581 int i;
19582 _ACEOF
19583 if ac_fn_c_try_compile "$LINENO"
19584 then :
19585 xorg_cv_cc_flag_unknown_warning_option=yes
19586 else case e in #(
19587 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19588 esac
19589 fi
19590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19591 esac
19592 fi
19593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19594 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19596 CFLAGS="$xorg_testset_save_CFLAGS"
19597 fi
19598
19599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19602 fi
19603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19605 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19606 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19607 then :
19608 printf %s "(cached) " >&6
19609 else case e in #(
19610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19612 int i;
19613 _ACEOF
19614 if ac_fn_c_try_compile "$LINENO"
19615 then :
19616 xorg_cv_cc_flag_unused_command_line_argument=yes
19617 else case e in #(
19618 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19619 esac
19620 fi
19621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19622 esac
19623 fi
19624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19625 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19627 CFLAGS="$xorg_testset_save_CFLAGS"
19628 fi
19629
19630 found="no"
19631
19632 if test $found = "no" ; then
19633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19635 fi
19636
19637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19639 fi
19640
19641 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19642
19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19644 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19645 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19646 if eval test \${$cacheid+y}
19647 then :
19648 printf %s "(cached) " >&6
19649 else case e in #(
19650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19652 int i;
19653 int
19654 main (void)
19655 {
19656
19657 ;
19658 return 0;
19659 }
19660 _ACEOF
19661 if ac_fn_c_try_link "$LINENO"
19662 then :
19663 eval $cacheid=yes
19664 else case e in #(
19665 e) eval $cacheid=no ;;
19666 esac
19667 fi
19668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19669 conftest$ac_exeext conftest.$ac_ext ;;
19670 esac
19671 fi
19672
19673
19674 CFLAGS="$xorg_testset_save_CFLAGS"
19675
19676 eval supported=\$$cacheid
19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19678 printf "%s\n" "$supported" >&6; }
19679 if test "$supported" = "yes" ; then
19680 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19681 found="yes"
19682 fi
19683 fi
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699 xorg_testset_save_CFLAGS="$CFLAGS"
19700
19701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19706 then :
19707 printf %s "(cached) " >&6
19708 else case e in #(
19709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h. */
19711 int i;
19712 _ACEOF
19713 if ac_fn_c_try_compile "$LINENO"
19714 then :
19715 xorg_cv_cc_flag_unknown_warning_option=yes
19716 else case e in #(
19717 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19718 esac
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19721 esac
19722 fi
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19724 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19726 CFLAGS="$xorg_testset_save_CFLAGS"
19727 fi
19728
19729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19732 fi
19733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19735 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19736 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19737 then :
19738 printf %s "(cached) " >&6
19739 else case e in #(
19740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h. */
19742 int i;
19743 _ACEOF
19744 if ac_fn_c_try_compile "$LINENO"
19745 then :
19746 xorg_cv_cc_flag_unused_command_line_argument=yes
19747 else case e in #(
19748 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19749 esac
19750 fi
19751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19752 esac
19753 fi
19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19757 CFLAGS="$xorg_testset_save_CFLAGS"
19758 fi
19759
19760 found="no"
19761
19762 if test $found = "no" ; then
19763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19765 fi
19766
19767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19769 fi
19770
19771 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19772
19773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19774 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19775 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19776 if eval test \${$cacheid+y}
19777 then :
19778 printf %s "(cached) " >&6
19779 else case e in #(
19780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781 /* end confdefs.h. */
19782 int i;
19783 int
19784 main (void)
19785 {
19786
19787 ;
19788 return 0;
19789 }
19790 _ACEOF
19791 if ac_fn_c_try_link "$LINENO"
19792 then :
19793 eval $cacheid=yes
19794 else case e in #(
19795 e) eval $cacheid=no ;;
19796 esac
19797 fi
19798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19799 conftest$ac_exeext conftest.$ac_ext ;;
19800 esac
19801 fi
19802
19803
19804 CFLAGS="$xorg_testset_save_CFLAGS"
19805
19806 eval supported=\$$cacheid
19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19808 printf "%s\n" "$supported" >&6; }
19809 if test "$supported" = "yes" ; then
19810 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19811 found="yes"
19812 fi
19813 fi
19814
19815
19816 fi
19817
19818
19819
19820
19821
19822
19823
19824 CWARNFLAGS="$BASE_CFLAGS"
19825 if test "x$GCC" = xyes ; then
19826 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19827 fi
19828
19829
19830
19831
19832
19833
19834
19835
19836 # Check whether --enable-strict-compilation was given.
19837 if test ${enable_strict_compilation+y}
19838 then :
19839 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19840 else case e in #(
19841 e) STRICT_COMPILE=no ;;
19842 esac
19843 fi
19844
19845
19846
19847
19848
19849
19850 STRICT_CFLAGS=""
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864 xorg_testset_save_CFLAGS="$CFLAGS"
19865
19866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19870 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19871 then :
19872 printf %s "(cached) " >&6
19873 else case e in #(
19874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19876 int i;
19877 _ACEOF
19878 if ac_fn_c_try_compile "$LINENO"
19879 then :
19880 xorg_cv_cc_flag_unknown_warning_option=yes
19881 else case e in #(
19882 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19883 esac
19884 fi
19885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19886 esac
19887 fi
19888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19891 CFLAGS="$xorg_testset_save_CFLAGS"
19892 fi
19893
19894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19897 fi
19898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19902 then :
19903 printf %s "(cached) " >&6
19904 else case e in #(
19905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19907 int i;
19908 _ACEOF
19909 if ac_fn_c_try_compile "$LINENO"
19910 then :
19911 xorg_cv_cc_flag_unused_command_line_argument=yes
19912 else case e in #(
19913 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19914 esac
19915 fi
19916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19917 esac
19918 fi
19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19920 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19922 CFLAGS="$xorg_testset_save_CFLAGS"
19923 fi
19924
19925 found="no"
19926
19927 if test $found = "no" ; then
19928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19930 fi
19931
19932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19934 fi
19935
19936 CFLAGS="$CFLAGS -pedantic"
19937
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19939 printf %s "checking if $CC supports -pedantic... " >&6; }
19940 cacheid=xorg_cv_cc_flag__pedantic
19941 if eval test \${$cacheid+y}
19942 then :
19943 printf %s "(cached) " >&6
19944 else case e in #(
19945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h. */
19947 int i;
19948 int
19949 main (void)
19950 {
19951
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 if ac_fn_c_try_link "$LINENO"
19957 then :
19958 eval $cacheid=yes
19959 else case e in #(
19960 e) eval $cacheid=no ;;
19961 esac
19962 fi
19963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19964 conftest$ac_exeext conftest.$ac_ext ;;
19965 esac
19966 fi
19967
19968
19969 CFLAGS="$xorg_testset_save_CFLAGS"
19970
19971 eval supported=\$$cacheid
19972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19973 printf "%s\n" "$supported" >&6; }
19974 if test "$supported" = "yes" ; then
19975 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19976 found="yes"
19977 fi
19978 fi
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994 xorg_testset_save_CFLAGS="$CFLAGS"
19995
19996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20001 then :
20002 printf %s "(cached) " >&6
20003 else case e in #(
20004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20006 int i;
20007 _ACEOF
20008 if ac_fn_c_try_compile "$LINENO"
20009 then :
20010 xorg_cv_cc_flag_unknown_warning_option=yes
20011 else case e in #(
20012 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20013 esac
20014 fi
20015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20016 esac
20017 fi
20018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20019 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20021 CFLAGS="$xorg_testset_save_CFLAGS"
20022 fi
20023
20024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20027 fi
20028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20032 then :
20033 printf %s "(cached) " >&6
20034 else case e in #(
20035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20037 int i;
20038 _ACEOF
20039 if ac_fn_c_try_compile "$LINENO"
20040 then :
20041 xorg_cv_cc_flag_unused_command_line_argument=yes
20042 else case e in #(
20043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20044 esac
20045 fi
20046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20047 esac
20048 fi
20049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20052 CFLAGS="$xorg_testset_save_CFLAGS"
20053 fi
20054
20055 found="no"
20056
20057 if test $found = "no" ; then
20058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20060 fi
20061
20062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20064 fi
20065
20066 CFLAGS="$CFLAGS -Werror"
20067
20068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20069 printf %s "checking if $CC supports -Werror... " >&6; }
20070 cacheid=xorg_cv_cc_flag__Werror
20071 if eval test \${$cacheid+y}
20072 then :
20073 printf %s "(cached) " >&6
20074 else case e in #(
20075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077 int i;
20078 int
20079 main (void)
20080 {
20081
20082 ;
20083 return 0;
20084 }
20085 _ACEOF
20086 if ac_fn_c_try_link "$LINENO"
20087 then :
20088 eval $cacheid=yes
20089 else case e in #(
20090 e) eval $cacheid=no ;;
20091 esac
20092 fi
20093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20094 conftest$ac_exeext conftest.$ac_ext ;;
20095 esac
20096 fi
20097
20098
20099 CFLAGS="$xorg_testset_save_CFLAGS"
20100
20101 eval supported=\$$cacheid
20102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20103 printf "%s\n" "$supported" >&6; }
20104 if test "$supported" = "yes" ; then
20105 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20106 found="yes"
20107 fi
20108 fi
20109
20110 if test $found = "no" ; then
20111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20113 fi
20114
20115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20117 fi
20118
20119 CFLAGS="$CFLAGS -errwarn"
20120
20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20122 printf %s "checking if $CC supports -errwarn... " >&6; }
20123 cacheid=xorg_cv_cc_flag__errwarn
20124 if eval test \${$cacheid+y}
20125 then :
20126 printf %s "(cached) " >&6
20127 else case e in #(
20128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20130 int i;
20131 int
20132 main (void)
20133 {
20134
20135 ;
20136 return 0;
20137 }
20138 _ACEOF
20139 if ac_fn_c_try_link "$LINENO"
20140 then :
20141 eval $cacheid=yes
20142 else case e in #(
20143 e) eval $cacheid=no ;;
20144 esac
20145 fi
20146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20147 conftest$ac_exeext conftest.$ac_ext ;;
20148 esac
20149 fi
20150
20151
20152 CFLAGS="$xorg_testset_save_CFLAGS"
20153
20154 eval supported=\$$cacheid
20155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20156 printf "%s\n" "$supported" >&6; }
20157 if test "$supported" = "yes" ; then
20158 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20159 found="yes"
20160 fi
20161 fi
20162
20163
20164
20165 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20166 # activate it with -Werror, so we add it here explicitly.
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180 xorg_testset_save_CFLAGS="$CFLAGS"
20181
20182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20187 then :
20188 printf %s "(cached) " >&6
20189 else case e in #(
20190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192 int i;
20193 _ACEOF
20194 if ac_fn_c_try_compile "$LINENO"
20195 then :
20196 xorg_cv_cc_flag_unknown_warning_option=yes
20197 else case e in #(
20198 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20199 esac
20200 fi
20201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20202 esac
20203 fi
20204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20207 CFLAGS="$xorg_testset_save_CFLAGS"
20208 fi
20209
20210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20213 fi
20214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20218 then :
20219 printf %s "(cached) " >&6
20220 else case e in #(
20221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222 /* end confdefs.h. */
20223 int i;
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"
20226 then :
20227 xorg_cv_cc_flag_unused_command_line_argument=yes
20228 else case e in #(
20229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20230 esac
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20233 esac
20234 fi
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20238 CFLAGS="$xorg_testset_save_CFLAGS"
20239 fi
20240
20241 found="no"
20242
20243 if test $found = "no" ; then
20244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20246 fi
20247
20248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20250 fi
20251
20252 CFLAGS="$CFLAGS -Werror=attributes"
20253
20254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20255 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20256 cacheid=xorg_cv_cc_flag__Werror_attributes
20257 if eval test \${$cacheid+y}
20258 then :
20259 printf %s "(cached) " >&6
20260 else case e in #(
20261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20263 int i;
20264 int
20265 main (void)
20266 {
20267
20268 ;
20269 return 0;
20270 }
20271 _ACEOF
20272 if ac_fn_c_try_link "$LINENO"
20273 then :
20274 eval $cacheid=yes
20275 else case e in #(
20276 e) eval $cacheid=no ;;
20277 esac
20278 fi
20279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20280 conftest$ac_exeext conftest.$ac_ext ;;
20281 esac
20282 fi
20283
20284
20285 CFLAGS="$xorg_testset_save_CFLAGS"
20286
20287 eval supported=\$$cacheid
20288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20289 printf "%s\n" "$supported" >&6; }
20290 if test "$supported" = "yes" ; then
20291 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20292 found="yes"
20293 fi
20294 fi
20295
20296
20297
20298 if test "x$STRICT_COMPILE" = "xyes"; then
20299 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20300 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20301 fi
20302
20303
20304
20305
20306
20307
20308
20309
20310 cat >>confdefs.h <<_ACEOF
20311 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20312 _ACEOF
20313
20314 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20315 if test "x$PVM" = "x"; then
20316 PVM="0"
20317 fi
20318
20319 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20320
20321 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20322 if test "x$PVP" = "x"; then
20323 PVP="0"
20324 fi
20325
20326 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20327
20328
20329
20330 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20331 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20332 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20333 touch \$(top_srcdir)/ChangeLog; \
20334 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20335
20336
20337
20338
20339 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20340 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20341 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20342 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20343 touch \$(top_srcdir)/INSTALL; \
20344 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20345
20346
20347
20348
20349
20350
20351 case $host_os in
20352 solaris*)
20353 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20354 # check for a man page file found in later versions that use
20355 # traditional section numbers instead
20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20357 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20358 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20359 then :
20360 printf %s "(cached) " >&6
20361 else case e in #(
20362 e) test "$cross_compiling" = yes &&
20363 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20364 if test -r "/usr/share/man/man7/attributes.7"; then
20365 ac_cv_file__usr_share_man_man7_attributes_7=yes
20366 else
20367 ac_cv_file__usr_share_man_man7_attributes_7=no
20368 fi ;;
20369 esac
20370 fi
20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20372 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20373 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20374 then :
20375 SYSV_MAN_SECTIONS=false
20376 else case e in #(
20377 e) SYSV_MAN_SECTIONS=true ;;
20378 esac
20379 fi
20380
20381 ;;
20382 *) SYSV_MAN_SECTIONS=false ;;
20383 esac
20384
20385 if test x$APP_MAN_SUFFIX = x ; then
20386 APP_MAN_SUFFIX=1
20387 fi
20388 if test x$APP_MAN_DIR = x ; then
20389 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20390 fi
20391
20392 if test x$LIB_MAN_SUFFIX = x ; then
20393 LIB_MAN_SUFFIX=3
20394 fi
20395 if test x$LIB_MAN_DIR = x ; then
20396 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20397 fi
20398
20399 if test x$FILE_MAN_SUFFIX = x ; then
20400 case $SYSV_MAN_SECTIONS in
20401 true) FILE_MAN_SUFFIX=4 ;;
20402 *) FILE_MAN_SUFFIX=5 ;;
20403 esac
20404 fi
20405 if test x$FILE_MAN_DIR = x ; then
20406 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20407 fi
20408
20409 if test x$MISC_MAN_SUFFIX = x ; then
20410 case $SYSV_MAN_SECTIONS in
20411 true) MISC_MAN_SUFFIX=5 ;;
20412 *) MISC_MAN_SUFFIX=7 ;;
20413 esac
20414 fi
20415 if test x$MISC_MAN_DIR = x ; then
20416 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20417 fi
20418
20419 if test x$DRIVER_MAN_SUFFIX = x ; then
20420 case $SYSV_MAN_SECTIONS in
20421 true) DRIVER_MAN_SUFFIX=7 ;;
20422 *) DRIVER_MAN_SUFFIX=4 ;;
20423 esac
20424 fi
20425 if test x$DRIVER_MAN_DIR = x ; then
20426 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20427 fi
20428
20429 if test x$ADMIN_MAN_SUFFIX = x ; then
20430 case $SYSV_MAN_SECTIONS in
20431 true) ADMIN_MAN_SUFFIX=1m ;;
20432 *) ADMIN_MAN_SUFFIX=8 ;;
20433 esac
20434 fi
20435 if test x$ADMIN_MAN_DIR = x ; then
20436 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20437 fi
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453 XORG_MAN_PAGE="X Version 11"
20454
20455 MAN_SUBSTS="\
20456 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20457 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20458 -e 's|__xservername__|Xorg|g' \
20459 -e 's|__xconfigfile__|xorg.conf|g' \
20460 -e 's|__projectroot__|\$(prefix)|g' \
20461 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20462 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20463 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20464 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20465 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20466 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20467 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20468
20469
20470
20471
20472 AM_DEFAULT_VERBOSITY=0
20473
20474
20475
20476
20477
20478
20479
20480
20481 # Check whether --with-lint was given.
20482 if test ${with_lint+y}
20483 then :
20484 withval=$with_lint; use_lint=$withval
20485 else case e in #(
20486 e) use_lint=no ;;
20487 esac
20488 fi
20489
20490
20491 # Obtain platform specific info like program name and options
20492 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20493 case $host_os in
20494 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20495 lint_name=splint
20496 lint_options="-badflag"
20497 ;;
20498 *freebsd* | *netbsd*)
20499 lint_name=lint
20500 lint_options="-u -b"
20501 ;;
20502 *solaris*)
20503 lint_name=lint
20504 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20505 ;;
20506 esac
20507
20508 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20509 if test "x$use_lint" = x"yes" ; then
20510 # Extract the first word of "$lint_name", so it can be a program name with args.
20511 set dummy $lint_name; ac_word=$2
20512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20513 printf %s "checking for $ac_word... " >&6; }
20514 if test ${ac_cv_path_LINT+y}
20515 then :
20516 printf %s "(cached) " >&6
20517 else case e in #(
20518 e) case $LINT in
20519 [\\/]* | ?:[\\/]*)
20520 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20521 ;;
20522 *)
20523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524 for as_dir in $PATH
20525 do
20526 IFS=$as_save_IFS
20527 case $as_dir in #(((
20528 '') as_dir=./ ;;
20529 */) ;;
20530 *) as_dir=$as_dir/ ;;
20531 esac
20532 for ac_exec_ext in '' $ac_executable_extensions; do
20533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20534 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20536 break 2
20537 fi
20538 done
20539 done
20540 IFS=$as_save_IFS
20541
20542 ;;
20543 esac ;;
20544 esac
20545 fi
20546 LINT=$ac_cv_path_LINT
20547 if test -n "$LINT"; then
20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20549 printf "%s\n" "$LINT" >&6; }
20550 else
20551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20552 printf "%s\n" "no" >&6; }
20553 fi
20554
20555
20556 if test "x$LINT" = "x"; then
20557 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20558 fi
20559 elif test "x$use_lint" = x"no" ; then
20560 if test "x$LINT" != "x"; then
20561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20562 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20563 fi
20564 else
20565 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20566 fi
20567
20568 # User supplied flags override default flags
20569 if test "x$LINT_FLAGS" != "x"; then
20570 lint_options=$LINT_FLAGS
20571 fi
20572
20573 LINT_FLAGS=$lint_options
20574
20575 if test "x$LINT" != x; then
20576 LINT_TRUE=
20577 LINT_FALSE='#'
20578 else
20579 LINT_TRUE='#'
20580 LINT_FALSE=
20581 fi
20582
20583
20584
20585 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
20586
20587 # Checks for typedefs, structures, and compiler characteristics.
20588 # Check whether --enable-largefile was given.
20589 if test ${enable_largefile+y}
20590 then :
20591 enableval=$enable_largefile;
20592 fi
20593 if test "$enable_largefile,$enable_year2038" != no,no
20594 then :
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20596 printf %s "checking for $CC option to enable large file support... " >&6; }
20597 if test ${ac_cv_sys_largefile_opts+y}
20598 then :
20599 printf %s "(cached) " >&6
20600 else case e in #(
20601 e) ac_save_CC="$CC"
20602 ac_opt_found=no
20603 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20604 if test x"$ac_opt" != x"none needed"
20605 then :
20606 CC="$ac_save_CC $ac_opt"
20607 fi
20608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20609 /* end confdefs.h. */
20610 #include <sys/types.h>
20611 #ifndef FTYPE
20612 # define FTYPE off_t
20613 #endif
20614 /* Check that FTYPE can represent 2**63 - 1 correctly.
20615 We can't simply define LARGE_FTYPE to be 9223372036854775807,
20616 since some C++ compilers masquerading as C compilers
20617 incorrectly reject 9223372036854775807. */
20618 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20619 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20620 && LARGE_FTYPE % 2147483647 == 1)
20621 ? 1 : -1];
20622 int
20623 main (void)
20624 {
20625
20626 ;
20627 return 0;
20628 }
20629 _ACEOF
20630 if ac_fn_c_try_compile "$LINENO"
20631 then :
20632 if test x"$ac_opt" = x"none needed"
20633 then :
20634 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20635 CC="$CC -DFTYPE=ino_t"
20636 if ac_fn_c_try_compile "$LINENO"
20637 then :
20638
20639 else case e in #(
20640 e) CC="$CC -D_FILE_OFFSET_BITS=64"
20641 if ac_fn_c_try_compile "$LINENO"
20642 then :
20643 ac_opt='-D_FILE_OFFSET_BITS=64'
20644 fi
20645 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20646 esac
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext conftest.beam
20649 fi
20650 ac_cv_sys_largefile_opts=$ac_opt
20651 ac_opt_found=yes
20652 fi
20653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20654 test $ac_opt_found = no || break
20655 done
20656 CC="$ac_save_CC"
20657
20658 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20659 esac
20660 fi
20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20662 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20663
20664 ac_have_largefile=yes
20665 case $ac_cv_sys_largefile_opts in #(
20666 "none needed") :
20667 ;; #(
20668 "supported through gnulib") :
20669 ;; #(
20670 "support not detected") :
20671 ac_have_largefile=no ;; #(
20672 "-D_FILE_OFFSET_BITS=64") :
20673
20674 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20675 ;; #(
20676 "-D_LARGE_FILES=1") :
20677
20678 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20679 ;; #(
20680 "-n32") :
20681 CC="$CC -n32" ;; #(
20682 *) :
20683 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20684 esac
20685
20686 if test "$enable_year2038" != no
20687 then :
20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
20689 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
20690 if test ${ac_cv_sys_year2038_opts+y}
20691 then :
20692 printf %s "(cached) " >&6
20693 else case e in #(
20694 e) ac_save_CPPFLAGS="$CPPFLAGS"
20695 ac_opt_found=no
20696 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
20697 if test x"$ac_opt" != x"none needed"
20698 then :
20699 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
20700 fi
20701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702 /* end confdefs.h. */
20703
20704 #include <time.h>
20705 /* Check that time_t can represent 2**32 - 1 correctly. */
20706 #define LARGE_TIME_T \\
20707 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
20708 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
20709 && LARGE_TIME_T % 65537 == 0)
20710 ? 1 : -1];
20711
20712 int
20713 main (void)
20714 {
20715
20716 ;
20717 return 0;
20718 }
20719 _ACEOF
20720 if ac_fn_c_try_compile "$LINENO"
20721 then :
20722 ac_cv_sys_year2038_opts="$ac_opt"
20723 ac_opt_found=yes
20724 fi
20725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20726 test $ac_opt_found = no || break
20727 done
20728 CPPFLAGS="$ac_save_CPPFLAGS"
20729 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
20730 esac
20731 fi
20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
20733 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
20734
20735 ac_have_year2038=yes
20736 case $ac_cv_sys_year2038_opts in #(
20737 "none needed") :
20738 ;; #(
20739 "support not detected") :
20740 ac_have_year2038=no ;; #(
20741 "-D_TIME_BITS=64") :
20742
20743 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
20744 ;; #(
20745 "-D__MINGW_USE_VC2005_COMPAT") :
20746
20747 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
20748 ;; #(
20749 "-U_USE_32_BIT_TIME_T"*) :
20750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20752 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
20753 will stop working after mid-January 2038. Remove
20754 _USE_32BIT_TIME_T from the compiler flags.
20755 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20756 *) :
20757 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
20758 esac
20759
20760 fi
20761
20762 fi
20763
20764
20765 # Check whether --enable-futex was given.
20766 if test ${enable_futex+y}
20767 then :
20768 enableval=$enable_futex; FUTEX=$enableval
20769 else case e in #(
20770 e) FUTEX=auto ;;
20771 esac
20772 fi
20773
20774
20775 if test "x$FUTEX" = "xauto"; then
20776 ac_fn_c_check_header_compile "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default"
20777 if test "x$ac_cv_header_linux_futex_h" = xyes
20778 then :
20779 FUTEX=yes
20780 fi
20781
20782 fi
20783
20784 if test "x$FUTEX" = "xauto"; then
20785 ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h>
20786 #include <sys/types.h>
20787 "
20788 if test "x$ac_cv_header_sys_umtx_h" = xyes
20789 then :
20790 FUTEX=yes
20791 else case e in #(
20792 e) FUTEX=no ;;
20793 esac
20794 fi
20795
20796 if test "x$FUTEX" = "xyes"; then
20797
20798 printf "%s\n" "#define HAVE_UMTX 1" >>confdefs.h
20799
20800 fi
20801 fi
20802
20803 if test "x$FUTEX" = "xyes"; then
20804 PTHREAD=no
20805
20806 printf "%s\n" "#define HAVE_FUTEX 1" >>confdefs.h
20807
20808 else
20809 PTHREAD=yes
20810
20811 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20812
20813 fi
20814
20815 PTHREAD_LIBS=
20816 if test "x$PTHREAD" = "xyes"; then
20817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20818 printf %s "checking for pthread_create in -lpthread... " >&6; }
20819 if test ${ac_cv_lib_pthread_pthread_create+y}
20820 then :
20821 printf %s "(cached) " >&6
20822 else case e in #(
20823 e) ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lpthread $LIBS"
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply.
20831 The 'extern "C"' is for builds by C++ compilers;
20832 although this is not generally supported in C code supporting it here
20833 has little cost and some practical benefit (sr 110532). */
20834 #ifdef __cplusplus
20835 extern "C"
20836 #endif
20837 char pthread_create (void);
20838 int
20839 main (void)
20840 {
20841 return pthread_create ();
20842 ;
20843 return 0;
20844 }
20845 _ACEOF
20846 if ac_fn_c_try_link "$LINENO"
20847 then :
20848 ac_cv_lib_pthread_pthread_create=yes
20849 else case e in #(
20850 e) ac_cv_lib_pthread_pthread_create=no ;;
20851 esac
20852 fi
20853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20854 conftest$ac_exeext conftest.$ac_ext
20855 LIBS=$ac_check_lib_save_LIBS ;;
20856 esac
20857 fi
20858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20859 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
20860 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
20861 then :
20862 PTHREAD_LIBS=-lpthread
20863 else case e in #(
20864 e) PTHREAD_LIBS= ;;
20865 esac
20866 fi
20867
20868 fi
20869
20870
20871
20872 if test x"$FUTEX" = xyes; then
20873 FUTEX_TRUE=
20874 FUTEX_FALSE='#'
20875 else
20876 FUTEX_TRUE='#'
20877 FUTEX_FALSE=
20878 fi
20879
20880 if test x"$PTHREAD" = xyes; then
20881 PTHREAD_TRUE=
20882 PTHREAD_FALSE='#'
20883 else
20884 PTHREAD_TRUE='#'
20885 PTHREAD_FALSE=
20886 fi
20887
20888
20889
20890 pkg_failed=no
20891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
20892 printf %s "checking for XPROTO... " >&6; }
20893
20894 if test -n "$XPROTO_CFLAGS"; then
20895 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
20896 elif test -n "$PKG_CONFIG"; then
20897 if test -n "$PKG_CONFIG" && \
20898 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20899 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20900 ac_status=$?
20901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20902 test $ac_status = 0; }; then
20903 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20904 test "x$?" != "x0" && pkg_failed=yes
20905 else
20906 pkg_failed=yes
20907 fi
20908 else
20909 pkg_failed=untried
20910 fi
20911 if test -n "$XPROTO_LIBS"; then
20912 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
20913 elif test -n "$PKG_CONFIG"; then
20914 if test -n "$PKG_CONFIG" && \
20915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20916 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20917 ac_status=$?
20918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }; then
20920 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20921 test "x$?" != "x0" && pkg_failed=yes
20922 else
20923 pkg_failed=yes
20924 fi
20925 else
20926 pkg_failed=untried
20927 fi
20928
20929
20930
20931 if test $pkg_failed = yes; then
20932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20933 printf "%s\n" "no" >&6; }
20934
20935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20936 _pkg_short_errors_supported=yes
20937 else
20938 _pkg_short_errors_supported=no
20939 fi
20940 if test $_pkg_short_errors_supported = yes; then
20941 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20942 else
20943 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20944 fi
20945 # Put the nasty error message in config.log where it belongs
20946 echo "$XPROTO_PKG_ERRORS" >&5
20947
20948 as_fn_error $? "Package requirements (xproto) were not met:
20949
20950 $XPROTO_PKG_ERRORS
20951
20952 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20953 installed software in a non-standard prefix.
20954
20955 Alternatively, you may set the environment variables XPROTO_CFLAGS
20956 and XPROTO_LIBS to avoid the need to call pkg-config.
20957 See the pkg-config man page for more details." "$LINENO" 5
20958 elif test $pkg_failed = untried; then
20959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 printf "%s\n" "no" >&6; }
20961 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20962 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20963 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20964 is in your PATH or set the PKG_CONFIG environment variable to the full
20965 path to pkg-config.
20966
20967 Alternatively, you may set the environment variables XPROTO_CFLAGS
20968 and XPROTO_LIBS to avoid the need to call pkg-config.
20969 See the pkg-config man page for more details.
20970
20971 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20972 See 'config.log' for more details" "$LINENO" 5; }
20973 else
20974 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
20975 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
20976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20977 printf "%s\n" "yes" >&6; }
20978
20979 fi
20980
20981
20982
20983 CFLAGS="$CFLAGS $XPROTO_CFLAGS"
20984
20985 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
20986 if test "x$ac_cv_func_memfd_create" = xyes
20987 then :
20988 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
20989
20990 fi
20991 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
20992 if test "x$ac_cv_func_mkostemp" = xyes
20993 then :
20994 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
20995
20996 fi
20997
20998
20999 ac_fn_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h>
21000 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21001 if test "x$ac_cv_have_decl___NR_memfd_create" = xyes
21002 then :
21003 ac_have_decl=1
21004 else case e in #(
21005 e) ac_have_decl=0 ;;
21006 esac
21007 fi
21008 printf "%s\n" "#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl" >>confdefs.h
21009
21010
21011 for ac_header in sys/memfd.h
21012 do :
21013 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
21014 if test "x$ac_cv_header_sys_memfd_h" = xyes
21015 then :
21016 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
21017
21018 printf "%s\n" "#define HAVE_MEMFD_H 1" >>confdefs.h
21019
21020 fi
21021
21022 done
21023
21024 # Check whether --enable-visibility was given.
21025 if test ${enable_visibility+y}
21026 then :
21027 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
21028 else case e in #(
21029 e) SYMBOL_VISIBILITY=auto ;;
21030 esac
21031 fi
21032
21033
21034 symbol_visibility=
21035 have_visibility=disabled
21036 if test x$SYMBOL_VISIBILITY != xno; then
21037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
21038 printf %s "checking for symbol visibility support... " >&6; }
21039 if test x$GCC = xyes; then
21040 VISIBILITY_CFLAGS="-fvisibility=hidden"
21041 else
21042 if test x$SUNCC = xyes; then
21043 VISIBILITY_CFLAGS="-xldscope=hidden"
21044 else
21045 have_visibility=no
21046 fi
21047 fi
21048 if test x$have_visibility != xno; then
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h. */
21051 #include <X11/Xfuncproto.h>
21052 extern _X_HIDDEN int hidden_int;
21053 extern _X_EXPORT int public_int;
21054 extern _X_HIDDEN int hidden_int_func(void);
21055 extern _X_EXPORT int public_int_func(void);
21056 int
21057 main (void)
21058 {
21059
21060 ;
21061 return 0;
21062 }
21063 _ACEOF
21064 if ac_fn_c_try_compile "$LINENO"
21065 then :
21066 have_visibility=yes
21067 else case e in #(
21068 e) have_visibility=no ;;
21069 esac
21070 fi
21071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21072 fi
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
21074 printf "%s\n" "$have_visibility" >&6; }
21075 if test x$have_visibility != xno; then
21076 symbol_visibility=$VISIBILITY_CFLAGS
21077 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
21078 fi
21079 fi
21080
21081
21082 # Check whether --with-shared-memory-dir was given.
21083 if test ${with_shared_memory_dir+y}
21084 then :
21085 withval=$with_shared_memory_dir;
21086 else case e in #(
21087 e) with_shared_memory_dir=yes ;;
21088 esac
21089 fi
21090
21091
21092 shmdirs="/run/shm /dev/shm /var/tmp /tmp"
21093
21094 case x"$with_shared_memory_dir" in
21095 xyes)
21096 for dir in $shmdirs; do
21097 case x"$with_shared_memory_dir" in
21098 xyes)
21099 echo Checking temp dir "$dir"
21100 if test -d "$dir"; then
21101 with_shared_memory_dir="$dir"
21102 fi
21103 ;;
21104 esac
21105 done
21106 ;;
21107 x/*)
21108 ;;
21109 xno)
21110 ;;
21111 *)
21112 as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5
21113 ;;
21114 esac
21115
21116 case x"$with_shared_memory_dir" in
21117 xyes)
21118 as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5
21119 ;;
21120 xno)
21121 ;;
21122 *)
21123
21124 printf "%s\n" "#define SHMDIR \"$with_shared_memory_dir\"" >>confdefs.h
21125
21126 ;;
21127 esac
21128
21129 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc"
21130
21131 cat >confcache <<\_ACEOF
21132 # This file is a shell script that caches the results of configure
21133 # tests run on this system so they can be shared between configure
21134 # scripts and configure runs, see configure's option --config-cache.
21135 # It is not useful on other systems. If it contains results you don't
21136 # want to keep, you may remove or edit it.
21137 #
21138 # config.status only pays attention to the cache file if you give it
21139 # the --recheck option to rerun configure.
21140 #
21141 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21142 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21143 # following values.
21144
21145 _ACEOF
21146
21147 # The following way of writing the cache mishandles newlines in values,
21148 # but we know of no workaround that is simple, portable, and efficient.
21149 # So, we kill variables containing newlines.
21150 # Ultrix sh set writes to stderr and can't be redirected directly,
21151 # and sets the high bit in the cache file unless we assign to the vars.
21152 (
21153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21154 eval ac_val=\$$ac_var
21155 case $ac_val in #(
21156 *${as_nl}*)
21157 case $ac_var in #(
21158 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21159 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21160 esac
21161 case $ac_var in #(
21162 _ | IFS | as_nl) ;; #(
21163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21164 *) { eval $ac_var=; unset $ac_var;} ;;
21165 esac ;;
21166 esac
21167 done
21168
21169 (set) 2>&1 |
21170 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21171 *${as_nl}ac_space=\ *)
21172 # 'set' does not quote correctly, so add quotes: double-quote
21173 # substitution turns \\\\ into \\, and sed turns \\ into \.
21174 sed -n \
21175 "s/'/'\\\\''/g;
21176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21177 ;; #(
21178 *)
21179 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21181 ;;
21182 esac |
21183 sort
21184 ) |
21185 sed '
21186 /^ac_cv_env_/b end
21187 t clear
21188 :clear
21189 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21190 t end
21191 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21192 :end' >>confcache
21193 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21194 if test -w "$cache_file"; then
21195 if test "x$cache_file" != "x/dev/null"; then
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21197 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21198 if test ! -f "$cache_file" || test -h "$cache_file"; then
21199 cat confcache >"$cache_file"
21200 else
21201 case $cache_file in #(
21202 */* | ?:*)
21203 mv -f confcache "$cache_file"$$ &&
21204 mv -f "$cache_file"$$ "$cache_file" ;; #(
21205 *)
21206 mv -f confcache "$cache_file" ;;
21207 esac
21208 fi
21209 fi
21210 else
21211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21212 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21213 fi
21214 fi
21215 rm -f confcache
21216
21217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21218 # Let make expand exec_prefix.
21219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21220
21221 DEFS=-DHAVE_CONFIG_H
21222
21223 ac_libobjs=
21224 ac_ltlibobjs=
21225 U=
21226 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21227 # 1. Remove the extension, and $U if already installed.
21228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21229 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21231 # will be set to the directory where LIBOBJS objects are built.
21232 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21233 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21234 done
21235 LIBOBJS=$ac_libobjs
21236
21237 LTLIBOBJS=$ac_ltlibobjs
21238
21239
21240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21241 printf %s "checking that generated files are newer than configure... " >&6; }
21242 if test -n "$am_sleep_pid"; then
21243 # Hide warnings about reused PIDs.
21244 wait $am_sleep_pid 2>/dev/null
21245 fi
21246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21247 printf "%s\n" "done" >&6; }
21248 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21249 as_fn_error $? "conditional \"AMDEP\" was never defined.
21250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 fi
21252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21253 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 fi
21256 case $enable_silent_rules in # (((
21257 yes) AM_DEFAULT_VERBOSITY=0;;
21258 no) AM_DEFAULT_VERBOSITY=1;;
21259 esac
21260 if test $am_cv_make_support_nested_variables = yes; then
21261 AM_V='$(V)'
21262 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21263 else
21264 AM_V=$AM_DEFAULT_VERBOSITY
21265 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21266 fi
21267
21268 if test -n "$EXEEXT"; then
21269 am__EXEEXT_TRUE=
21270 am__EXEEXT_FALSE='#'
21271 else
21272 am__EXEEXT_TRUE='#'
21273 am__EXEEXT_FALSE=
21274 fi
21275
21276 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21277 as_fn_error $? "conditional \"LINT\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 fi
21280 # Check whether --enable-year2038 was given.
21281 if test ${enable_year2038+y}
21282 then :
21283 enableval=$enable_year2038;
21284 fi
21285
21286 if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then
21287 as_fn_error $? "conditional \"FUTEX\" was never defined.
21288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21289 fi
21290 if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then
21291 as_fn_error $? "conditional \"PTHREAD\" was never defined.
21292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21293 fi
21294
21295 : "${CONFIG_STATUS=./config.status}"
21296 ac_write_fail=0
21297 ac_clean_files_save=$ac_clean_files
21298 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21300 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21301 as_write_fail=0
21302 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21303 #! $SHELL
21304 # Generated by $as_me.
21305 # Run this file to recreate the current configuration.
21306 # Compiler output produced by configure, useful for debugging
21307 # configure, is in config.log if it exists.
21308
21309 debug=false
21310 ac_cs_recheck=false
21311 ac_cs_silent=false
21312
21313 SHELL=\${CONFIG_SHELL-$SHELL}
21314 export SHELL
21315 _ASEOF
21316 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21317 ## -------------------- ##
21318 ## M4sh Initialization. ##
21319 ## -------------------- ##
21320
21321 # Be more Bourne compatible
21322 DUALCASE=1; export DUALCASE # for MKS sh
21323 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21324 then :
21325 emulate sh
21326 NULLCMD=:
21327 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21328 # is contrary to our usage. Disable this feature.
21329 alias -g '${1+"$@"}'='"$@"'
21330 setopt NO_GLOB_SUBST
21331 else case e in #(
21332 e) case `(set -o) 2>/dev/null` in #(
21333 *posix*) :
21334 set -o posix ;; #(
21335 *) :
21336 ;;
21337 esac ;;
21338 esac
21339 fi
21340
21341
21342
21343 # Reset variables that may have inherited troublesome values from
21344 # the environment.
21345
21346 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21347 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21348 # side effect of setting IFS to empty, thus disabling word splitting.)
21349 # Quoting is to prevent editors from complaining about space-tab.
21350 as_nl='
21351 '
21352 export as_nl
21353 IFS=" "" $as_nl"
21354
21355 PS1='$ '
21356 PS2='> '
21357 PS4='+ '
21358
21359 # Ensure predictable behavior from utilities with locale-dependent output.
21360 LC_ALL=C
21361 export LC_ALL
21362 LANGUAGE=C
21363 export LANGUAGE
21364
21365 # We cannot yet rely on "unset" to work, but we need these variables
21366 # to be unset--not just set to an empty or harmless value--now, to
21367 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21368 # also avoids known problems related to "unset" and subshell syntax
21369 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21370 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21371 do eval test \${$as_var+y} \
21372 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21373 done
21374
21375 # Ensure that fds 0, 1, and 2 are open.
21376 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21377 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21378 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21379
21380 # The user is always right.
21381 if ${PATH_SEPARATOR+false} :; then
21382 PATH_SEPARATOR=:
21383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21385 PATH_SEPARATOR=';'
21386 }
21387 fi
21388
21389
21390 # Find who we are. Look in the path if we contain no directory separator.
21391 as_myself=
21392 case $0 in #((
21393 *[\\/]* ) as_myself=$0 ;;
21394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21395 for as_dir in $PATH
21396 do
21397 IFS=$as_save_IFS
21398 case $as_dir in #(((
21399 '') as_dir=./ ;;
21400 */) ;;
21401 *) as_dir=$as_dir/ ;;
21402 esac
21403 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21404 done
21405 IFS=$as_save_IFS
21406
21407 ;;
21408 esac
21409 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21410 # in which case we are not to be found in the path.
21411 if test "x$as_myself" = x; then
21412 as_myself=$0
21413 fi
21414 if test ! -f "$as_myself"; then
21415 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21416 exit 1
21417 fi
21418
21419
21420
21421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21422 # ----------------------------------------
21423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21425 # script with STATUS, using 1 if that was 0.
21426 as_fn_error ()
21427 {
21428 as_status=$1; test $as_status -eq 0 && as_status=1
21429 if test "$4"; then
21430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21432 fi
21433 printf "%s\n" "$as_me: error: $2" >&2
21434 as_fn_exit $as_status
21435 } # as_fn_error
21436
21437
21438 # as_fn_set_status STATUS
21439 # -----------------------
21440 # Set $? to STATUS, without forking.
21441 as_fn_set_status ()
21442 {
21443 return $1
21444 } # as_fn_set_status
21445
21446 # as_fn_exit STATUS
21447 # -----------------
21448 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21449 as_fn_exit ()
21450 {
21451 set +e
21452 as_fn_set_status $1
21453 exit $1
21454 } # as_fn_exit
21455
21456 # as_fn_unset VAR
21457 # ---------------
21458 # Portably unset VAR.
21459 as_fn_unset ()
21460 {
21461 { eval $1=; unset $1;}
21462 }
21463 as_unset=as_fn_unset
21464
21465 # as_fn_append VAR VALUE
21466 # ----------------------
21467 # Append the text in VALUE to the end of the definition contained in VAR. Take
21468 # advantage of any shell optimizations that allow amortized linear growth over
21469 # repeated appends, instead of the typical quadratic growth present in naive
21470 # implementations.
21471 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21472 then :
21473 eval 'as_fn_append ()
21474 {
21475 eval $1+=\$2
21476 }'
21477 else case e in #(
21478 e) as_fn_append ()
21479 {
21480 eval $1=\$$1\$2
21481 } ;;
21482 esac
21483 fi # as_fn_append
21484
21485 # as_fn_arith ARG...
21486 # ------------------
21487 # Perform arithmetic evaluation on the ARGs, and store the result in the
21488 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21489 # must be portable across $(()) and expr.
21490 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21491 then :
21492 eval 'as_fn_arith ()
21493 {
21494 as_val=$(( $* ))
21495 }'
21496 else case e in #(
21497 e) as_fn_arith ()
21498 {
21499 as_val=`expr "$@" || test $? -eq 1`
21500 } ;;
21501 esac
21502 fi # as_fn_arith
21503
21504
21505 if expr a : '\(a\)' >/dev/null 2>&1 &&
21506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21507 as_expr=expr
21508 else
21509 as_expr=false
21510 fi
21511
21512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513 as_basename=basename
21514 else
21515 as_basename=false
21516 fi
21517
21518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21519 as_dirname=dirname
21520 else
21521 as_dirname=false
21522 fi
21523
21524 as_me=`$as_basename -- "$0" ||
21525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21526 X"$0" : 'X\(//\)$' \| \
21527 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21528 printf "%s\n" X/"$0" |
21529 sed '/^.*\/\([^/][^/]*\)\/*$/{
21530 s//\1/
21531 q
21532 }
21533 /^X\/\(\/\/\)$/{
21534 s//\1/
21535 q
21536 }
21537 /^X\/\(\/\).*/{
21538 s//\1/
21539 q
21540 }
21541 s/.*/./; q'`
21542
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21549
21550
21551 # Determine whether it's possible to make 'echo' print without a newline.
21552 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21553 # for compatibility with existing Makefiles.
21554 ECHO_C= ECHO_N= ECHO_T=
21555 case `echo -n x` in #(((((
21556 -n*)
21557 case `echo 'xy\c'` in
21558 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21559 xy) ECHO_C='\c';;
21560 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21561 ECHO_T=' ';;
21562 esac;;
21563 *)
21564 ECHO_N='-n';;
21565 esac
21566
21567 # For backward compatibility with old third-party macros, we provide
21568 # the shell variables $as_echo and $as_echo_n. New code should use
21569 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21570 as_echo='printf %s\n'
21571 as_echo_n='printf %s'
21572
21573 rm -f conf$$ conf$$.exe conf$$.file
21574 if test -d conf$$.dir; then
21575 rm -f conf$$.dir/conf$$.file
21576 else
21577 rm -f conf$$.dir
21578 mkdir conf$$.dir 2>/dev/null
21579 fi
21580 if (echo >conf$$.file) 2>/dev/null; then
21581 if ln -s conf$$.file conf$$ 2>/dev/null; then
21582 as_ln_s='ln -s'
21583 # ... but there are two gotchas:
21584 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21585 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21586 # In both cases, we have to default to 'cp -pR'.
21587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21588 as_ln_s='cp -pR'
21589 elif ln conf$$.file conf$$ 2>/dev/null; then
21590 as_ln_s=ln
21591 else
21592 as_ln_s='cp -pR'
21593 fi
21594 else
21595 as_ln_s='cp -pR'
21596 fi
21597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21598 rmdir conf$$.dir 2>/dev/null
21599
21600
21601 # as_fn_mkdir_p
21602 # -------------
21603 # Create "$as_dir" as a directory, including parents if necessary.
21604 as_fn_mkdir_p ()
21605 {
21606
21607 case $as_dir in #(
21608 -*) as_dir=./$as_dir;;
21609 esac
21610 test -d "$as_dir" || eval $as_mkdir_p || {
21611 as_dirs=
21612 while :; do
21613 case $as_dir in #(
21614 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21615 *) as_qdir=$as_dir;;
21616 esac
21617 as_dirs="'$as_qdir' $as_dirs"
21618 as_dir=`$as_dirname -- "$as_dir" ||
21619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620 X"$as_dir" : 'X\(//\)[^/]' \| \
21621 X"$as_dir" : 'X\(//\)$' \| \
21622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21623 printf "%s\n" X"$as_dir" |
21624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625 s//\1/
21626 q
21627 }
21628 /^X\(\/\/\)[^/].*/{
21629 s//\1/
21630 q
21631 }
21632 /^X\(\/\/\)$/{
21633 s//\1/
21634 q
21635 }
21636 /^X\(\/\).*/{
21637 s//\1/
21638 q
21639 }
21640 s/.*/./; q'`
21641 test -d "$as_dir" && break
21642 done
21643 test -z "$as_dirs" || eval "mkdir $as_dirs"
21644 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21645
21646
21647 } # as_fn_mkdir_p
21648 if mkdir -p . 2>/dev/null; then
21649 as_mkdir_p='mkdir -p "$as_dir"'
21650 else
21651 test -d ./-p && rmdir ./-p
21652 as_mkdir_p=false
21653 fi
21654
21655
21656 # as_fn_executable_p FILE
21657 # -----------------------
21658 # Test if FILE is an executable regular file.
21659 as_fn_executable_p ()
21660 {
21661 test -f "$1" && test -x "$1"
21662 } # as_fn_executable_p
21663 as_test_x='test -x'
21664 as_executable_p=as_fn_executable_p
21665
21666 # Sed expression to map a string onto a valid CPP name.
21667 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21668 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21669
21670 # Sed expression to map a string onto a valid variable name.
21671 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21672 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21673
21674
21675 exec 6>&1
21676 ## ----------------------------------- ##
21677 ## Main body of $CONFIG_STATUS script. ##
21678 ## ----------------------------------- ##
21679 _ASEOF
21680 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21681
21682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21683 # Save the log message, to keep $0 and so on meaningful, and to
21684 # report actual input values of CONFIG_FILES etc. instead of their
21685 # values after options handling.
21686 ac_log="
21687 This file was extended by libxshmfence $as_me 1.3.3, which was
21688 generated by GNU Autoconf 2.72. Invocation command line was
21689
21690 CONFIG_FILES = $CONFIG_FILES
21691 CONFIG_HEADERS = $CONFIG_HEADERS
21692 CONFIG_LINKS = $CONFIG_LINKS
21693 CONFIG_COMMANDS = $CONFIG_COMMANDS
21694 $ $0 $@
21695
21696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21697 "
21698
21699 _ACEOF
21700
21701 case $ac_config_files in *"
21702 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21703 esac
21704
21705 case $ac_config_headers in *"
21706 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21707 esac
21708
21709
21710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711 # Files that config.status was made for.
21712 config_files="$ac_config_files"
21713 config_headers="$ac_config_headers"
21714 config_commands="$ac_config_commands"
21715
21716 _ACEOF
21717
21718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21719 ac_cs_usage="\
21720 '$as_me' instantiates files and other configuration actions
21721 from templates according to the current configuration. Unless the files
21722 and actions are specified as TAGs, all are instantiated by default.
21723
21724 Usage: $0 [OPTION]... [TAG]...
21725
21726 -h, --help print this help, then exit
21727 -V, --version print version number and configuration settings, then exit
21728 --config print configuration, then exit
21729 -q, --quiet, --silent
21730 do not print progress messages
21731 -d, --debug don't remove temporary files
21732 --recheck update $as_me by reconfiguring in the same conditions
21733 --file=FILE[:TEMPLATE]
21734 instantiate the configuration file FILE
21735 --header=FILE[:TEMPLATE]
21736 instantiate the configuration header FILE
21737
21738 Configuration files:
21739 $config_files
21740
21741 Configuration headers:
21742 $config_headers
21743
21744 Configuration commands:
21745 $config_commands
21746
21747 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>."
21748
21749 _ACEOF
21750 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21751 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21753 ac_cs_config='$ac_cs_config_escaped'
21754 ac_cs_version="\\
21755 libxshmfence config.status 1.3.3
21756 configured by $0, generated by GNU Autoconf 2.72,
21757 with options \\"\$ac_cs_config\\"
21758
21759 Copyright (C) 2023 Free Software Foundation, Inc.
21760 This config.status script is free software; the Free Software Foundation
21761 gives unlimited permission to copy, distribute and modify it."
21762
21763 ac_pwd='$ac_pwd'
21764 srcdir='$srcdir'
21765 INSTALL='$INSTALL'
21766 MKDIR_P='$MKDIR_P'
21767 AWK='$AWK'
21768 test -n "\$AWK" || AWK=awk
21769 _ACEOF
21770
21771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21772 # The default lists apply if the user does not specify any file.
21773 ac_need_defaults=:
21774 while test $# != 0
21775 do
21776 case $1 in
21777 --*=?*)
21778 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21779 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21780 ac_shift=:
21781 ;;
21782 --*=)
21783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21784 ac_optarg=
21785 ac_shift=:
21786 ;;
21787 *)
21788 ac_option=$1
21789 ac_optarg=$2
21790 ac_shift=shift
21791 ;;
21792 esac
21793
21794 case $ac_option in
21795 # Handling of the options.
21796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21797 ac_cs_recheck=: ;;
21798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21799 printf "%s\n" "$ac_cs_version"; exit ;;
21800 --config | --confi | --conf | --con | --co | --c )
21801 printf "%s\n" "$ac_cs_config"; exit ;;
21802 --debug | --debu | --deb | --de | --d | -d )
21803 debug=: ;;
21804 --file | --fil | --fi | --f )
21805 $ac_shift
21806 case $ac_optarg in
21807 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21808 '') as_fn_error $? "missing file argument" ;;
21809 esac
21810 as_fn_append CONFIG_FILES " '$ac_optarg'"
21811 ac_need_defaults=false;;
21812 --header | --heade | --head | --hea )
21813 $ac_shift
21814 case $ac_optarg in
21815 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21816 esac
21817 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21818 ac_need_defaults=false;;
21819 --he | --h)
21820 # Conflict between --help and --header
21821 as_fn_error $? "ambiguous option: '$1'
21822 Try '$0 --help' for more information.";;
21823 --help | --hel | -h )
21824 printf "%s\n" "$ac_cs_usage"; exit ;;
21825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21827 ac_cs_silent=: ;;
21828
21829 # This is an error.
21830 -*) as_fn_error $? "unrecognized option: '$1'
21831 Try '$0 --help' for more information." ;;
21832
21833 *) as_fn_append ac_config_targets " $1"
21834 ac_need_defaults=false ;;
21835
21836 esac
21837 shift
21838 done
21839
21840 ac_configure_extra_args=
21841
21842 if $ac_cs_silent; then
21843 exec 6>/dev/null
21844 ac_configure_extra_args="$ac_configure_extra_args --silent"
21845 fi
21846
21847 _ACEOF
21848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21849 if \$ac_cs_recheck; then
21850 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21851 shift
21852 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21853 CONFIG_SHELL='$SHELL'
21854 export CONFIG_SHELL
21855 exec "\$@"
21856 fi
21857
21858 _ACEOF
21859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21860 exec 5>>config.log
21861 {
21862 echo
21863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21864 ## Running $as_me. ##
21865 _ASBOX
21866 printf "%s\n" "$ac_log"
21867 } >&5
21868
21869 _ACEOF
21870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21871 #
21872 # INIT-COMMANDS
21873 #
21874 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21875
21876
21877 # The HP-UX ksh and POSIX shell print the target directory to stdout
21878 # if CDPATH is set.
21879 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21880
21881 sed_quote_subst='$sed_quote_subst'
21882 double_quote_subst='$double_quote_subst'
21883 delay_variable_subst='$delay_variable_subst'
21884 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21885 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21886 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21887 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21888 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21889 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21890 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21891 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21892 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21893 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21894 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21895 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21896 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21897 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21898 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21899 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21900 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21901 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21902 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21903 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21904 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21905 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21906 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21907 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21908 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21909 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21910 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21911 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21912 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21913 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21914 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21915 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21916 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21917 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21918 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21919 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21920 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21921 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21922 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21923 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21924 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21925 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21926 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21927 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21928 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21929 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21930 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21931 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21932 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21933 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21934 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21935 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21936 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21937 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21938 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21939 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21940 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21941 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21942 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21943 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21944 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"`'
21945 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21946 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21947 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21948 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21949 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21950 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21951 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21952 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21953 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21954 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21955 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21956 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21957 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21958 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21959 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21960 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21961 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21962 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21963 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21964 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21965 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21966 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21967 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21968 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21969 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21970 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21971 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21972 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21973 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21974 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21975 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21976 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21977 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21978 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21979 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21980 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21981 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21982 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21983 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21984 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21985 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21986 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21987 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21988 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21989 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21990 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21991 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21992 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21993 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21994 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21995 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21996 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21997 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21998 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21999 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22000 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22001 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22002 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22003 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22004 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22005 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22006 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22007 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22008 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22009 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22010 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22011 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22012 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22013 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22014 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22015 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22016 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22017 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22018 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22019 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22020 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22021
22022 LTCC='$LTCC'
22023 LTCFLAGS='$LTCFLAGS'
22024 compiler='$compiler_DEFAULT'
22025
22026 # A function that is used when there is no print builtin or printf.
22027 func_fallback_echo ()
22028 {
22029 eval 'cat <<_LTECHO_EOF
22030 \$1
22031 _LTECHO_EOF'
22032 }
22033
22034 # Quote evaled strings.
22035 for var in SHELL \
22036 ECHO \
22037 PATH_SEPARATOR \
22038 SED \
22039 GREP \
22040 EGREP \
22041 FGREP \
22042 LD \
22043 NM \
22044 LN_S \
22045 lt_SP2NL \
22046 lt_NL2SP \
22047 reload_flag \
22048 FILECMD \
22049 OBJDUMP \
22050 deplibs_check_method \
22051 file_magic_cmd \
22052 file_magic_glob \
22053 want_nocaseglob \
22054 DLLTOOL \
22055 sharedlib_from_linklib_cmd \
22056 AR \
22057 archiver_list_spec \
22058 STRIP \
22059 RANLIB \
22060 CC \
22061 CFLAGS \
22062 compiler \
22063 lt_cv_sys_global_symbol_pipe \
22064 lt_cv_sys_global_symbol_to_cdecl \
22065 lt_cv_sys_global_symbol_to_import \
22066 lt_cv_sys_global_symbol_to_c_name_address \
22067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22068 lt_cv_nm_interface \
22069 nm_file_list_spec \
22070 lt_cv_truncate_bin \
22071 lt_prog_compiler_no_builtin_flag \
22072 lt_prog_compiler_pic \
22073 lt_prog_compiler_wl \
22074 lt_prog_compiler_static \
22075 lt_cv_prog_compiler_c_o \
22076 need_locks \
22077 MANIFEST_TOOL \
22078 DSYMUTIL \
22079 NMEDIT \
22080 LIPO \
22081 OTOOL \
22082 OTOOL64 \
22083 shrext_cmds \
22084 export_dynamic_flag_spec \
22085 whole_archive_flag_spec \
22086 compiler_needs_object \
22087 with_gnu_ld \
22088 allow_undefined_flag \
22089 no_undefined_flag \
22090 hardcode_libdir_flag_spec \
22091 hardcode_libdir_separator \
22092 exclude_expsyms \
22093 include_expsyms \
22094 file_list_spec \
22095 variables_saved_for_relink \
22096 libname_spec \
22097 library_names_spec \
22098 soname_spec \
22099 install_override_mode \
22100 finish_eval \
22101 old_striplib \
22102 striplib; do
22103 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22104 *[\\\\\\\`\\"\\\$]*)
22105 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22106 ;;
22107 *)
22108 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22109 ;;
22110 esac
22111 done
22112
22113 # Double-quote double-evaled strings.
22114 for var in reload_cmds \
22115 old_postinstall_cmds \
22116 old_postuninstall_cmds \
22117 old_archive_cmds \
22118 extract_expsyms_cmds \
22119 old_archive_from_new_cmds \
22120 old_archive_from_expsyms_cmds \
22121 archive_cmds \
22122 archive_expsym_cmds \
22123 module_cmds \
22124 module_expsym_cmds \
22125 export_symbols_cmds \
22126 prelink_cmds \
22127 postlink_cmds \
22128 postinstall_cmds \
22129 postuninstall_cmds \
22130 finish_cmds \
22131 sys_lib_search_path_spec \
22132 configure_time_dlsearch_path \
22133 configure_time_lt_sys_library_path; do
22134 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22135 *[\\\\\\\`\\"\\\$]*)
22136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22137 ;;
22138 *)
22139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22140 ;;
22141 esac
22142 done
22143
22144 ac_aux_dir='$ac_aux_dir'
22145
22146 # See if we are running on zsh, and set the options that allow our
22147 # commands through without removal of \ escapes INIT.
22148 if test -n "\${ZSH_VERSION+set}"; then
22149 setopt NO_GLOB_SUBST
22150 fi
22151
22152
22153 PACKAGE='$PACKAGE'
22154 VERSION='$VERSION'
22155 RM='$RM'
22156 ofile='$ofile'
22157
22158
22159
22160
22161 _ACEOF
22162
22163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22164
22165 # Handling of arguments.
22166 for ac_config_target in $ac_config_targets
22167 do
22168 case $ac_config_target in
22169 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22170 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22171 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22173 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22174 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22175 "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;;
22176
22177 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22178 esac
22179 done
22180
22181
22182 # If the user did not use the arguments to specify the items to instantiate,
22183 # then the envvar interface is used. Set only those that are not.
22184 # We use the long form for the default assignment because of an extremely
22185 # bizarre bug on SunOS 4.1.3.
22186 if $ac_need_defaults; then
22187 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22188 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22189 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22190 fi
22191
22192 # Have a temporary directory for convenience. Make it in the build tree
22193 # simply because there is no reason against having it here, and in addition,
22194 # creating and moving files from /tmp can sometimes cause problems.
22195 # Hook for its removal unless debugging.
22196 # Note that there is a small window in which the directory will not be cleaned:
22197 # after its creation but before its name has been assigned to '$tmp'.
22198 $debug ||
22199 {
22200 tmp= ac_tmp=
22201 trap 'exit_status=$?
22202 : "${ac_tmp:=$tmp}"
22203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22204 ' 0
22205 trap 'as_fn_exit 1' 1 2 13 15
22206 }
22207 # Create a (secure) tmp directory for tmp files.
22208
22209 {
22210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22211 test -d "$tmp"
22212 } ||
22213 {
22214 tmp=./conf$$-$RANDOM
22215 (umask 077 && mkdir "$tmp")
22216 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22217 ac_tmp=$tmp
22218
22219 # Set up the scripts for CONFIG_FILES section.
22220 # No need to generate them if there are no CONFIG_FILES.
22221 # This happens for instance with './config.status config.h'.
22222 if test -n "$CONFIG_FILES"; then
22223
22224
22225 ac_cr=`echo X | tr X '\015'`
22226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22227 # But we know of no other shell where ac_cr would be empty at this
22228 # point, so we can use a bashism as a fallback.
22229 if test "x$ac_cr" = x; then
22230 eval ac_cr=\$\'\\r\'
22231 fi
22232 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22234 ac_cs_awk_cr='\\r'
22235 else
22236 ac_cs_awk_cr=$ac_cr
22237 fi
22238
22239 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22240 _ACEOF
22241
22242
22243 {
22244 echo "cat >conf$$subs.awk <<_ACEOF" &&
22245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22246 echo "_ACEOF"
22247 } >conf$$subs.sh ||
22248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22250 ac_delim='%!_!# '
22251 for ac_last_try in false false false false false :; do
22252 . ./conf$$subs.sh ||
22253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22254
22255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22256 if test $ac_delim_n = $ac_delim_num; then
22257 break
22258 elif $ac_last_try; then
22259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22260 else
22261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22262 fi
22263 done
22264 rm -f conf$$subs.sh
22265
22266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22268 _ACEOF
22269 sed -n '
22270 h
22271 s/^/S["/; s/!.*/"]=/
22272 p
22273 g
22274 s/^[^!]*!//
22275 :repl
22276 t repl
22277 s/'"$ac_delim"'$//
22278 t delim
22279 :nl
22280 h
22281 s/\(.\{148\}\)..*/\1/
22282 t more1
22283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22284 p
22285 n
22286 b repl
22287 :more1
22288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22289 p
22290 g
22291 s/.\{148\}//
22292 t nl
22293 :delim
22294 h
22295 s/\(.\{148\}\)..*/\1/
22296 t more2
22297 s/["\\]/\\&/g; s/^/"/; s/$/"/
22298 p
22299 b
22300 :more2
22301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22302 p
22303 g
22304 s/.\{148\}//
22305 t delim
22306 ' <conf$$subs.awk | sed '
22307 /^[^""]/{
22308 N
22309 s/\n//
22310 }
22311 ' >>$CONFIG_STATUS || ac_write_fail=1
22312 rm -f conf$$subs.awk
22313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22314 _ACAWK
22315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22316 for (key in S) S_is_set[key] = 1
22317 FS = ""
22318
22319 }
22320 {
22321 line = $ 0
22322 nfields = split(line, field, "@")
22323 substed = 0
22324 len = length(field[1])
22325 for (i = 2; i < nfields; i++) {
22326 key = field[i]
22327 keylen = length(key)
22328 if (S_is_set[key]) {
22329 value = S[key]
22330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22331 len += length(value) + length(field[++i])
22332 substed = 1
22333 } else
22334 len += 1 + keylen
22335 }
22336
22337 print line
22338 }
22339
22340 _ACAWK
22341 _ACEOF
22342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22343 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22344 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22345 else
22346 cat
22347 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22348 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22349 _ACEOF
22350
22351 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22352 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22353 # trailing colons and then remove the whole line if VPATH becomes empty
22354 # (actually we leave an empty line to preserve line numbers).
22355 if test "x$srcdir" = x.; then
22356 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22357 h
22358 s///
22359 s/^/:/
22360 s/[ ]*$/:/
22361 s/:\$(srcdir):/:/g
22362 s/:\${srcdir}:/:/g
22363 s/:@srcdir@:/:/g
22364 s/^:*//
22365 s/:*$//
22366 x
22367 s/\(=[ ]*\).*/\1/
22368 G
22369 s/\n//
22370 s/^[^=]*=[ ]*$//
22371 }'
22372 fi
22373
22374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22375 fi # test -n "$CONFIG_FILES"
22376
22377 # Set up the scripts for CONFIG_HEADERS section.
22378 # No need to generate them if there are no CONFIG_HEADERS.
22379 # This happens for instance with './config.status Makefile'.
22380 if test -n "$CONFIG_HEADERS"; then
22381 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22382 BEGIN {
22383 _ACEOF
22384
22385 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22386 # here-document in config.status, that substitutes the proper values into
22387 # config.h.in to produce config.h.
22388
22389 # Create a delimiter string that does not exist in confdefs.h, to ease
22390 # handling of long lines.
22391 ac_delim='%!_!# '
22392 for ac_last_try in false false :; do
22393 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22394 if test -z "$ac_tt"; then
22395 break
22396 elif $ac_last_try; then
22397 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22398 else
22399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22400 fi
22401 done
22402
22403 # For the awk script, D is an array of macro values keyed by name,
22404 # likewise P contains macro parameters if any. Preserve backslash
22405 # newline sequences.
22406
22407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22408 sed -n '
22409 s/.\{148\}/&'"$ac_delim"'/g
22410 t rset
22411 :rset
22412 s/^[ ]*#[ ]*define[ ][ ]*/ /
22413 t def
22414 d
22415 :def
22416 s/\\$//
22417 t bsnl
22418 s/["\\]/\\&/g
22419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22420 D["\1"]=" \3"/p
22421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22422 d
22423 :bsnl
22424 s/["\\]/\\&/g
22425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22426 D["\1"]=" \3\\\\\\n"\\/p
22427 t cont
22428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22429 t cont
22430 d
22431 :cont
22432 n
22433 s/.\{148\}/&'"$ac_delim"'/g
22434 t clear
22435 :clear
22436 s/\\$//
22437 t bsnlc
22438 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22439 d
22440 :bsnlc
22441 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22442 b cont
22443 ' <confdefs.h | sed '
22444 s/'"$ac_delim"'/"\\\
22445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22446
22447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22448 for (key in D) D_is_set[key] = 1
22449 FS = ""
22450 }
22451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22452 line = \$ 0
22453 split(line, arg, " ")
22454 if (arg[1] == "#") {
22455 defundef = arg[2]
22456 mac1 = arg[3]
22457 } else {
22458 defundef = substr(arg[1], 2)
22459 mac1 = arg[2]
22460 }
22461 split(mac1, mac2, "(") #)
22462 macro = mac2[1]
22463 prefix = substr(line, 1, index(line, defundef) - 1)
22464 if (D_is_set[macro]) {
22465 # Preserve the white space surrounding the "#".
22466 print prefix "define", macro P[macro] D[macro]
22467 next
22468 } else {
22469 # Replace #undef with comments. This is necessary, for example,
22470 # in the case of _POSIX_SOURCE, which is predefined and required
22471 # on some systems where configure will not decide to define it.
22472 if (defundef == "undef") {
22473 print "/*", prefix defundef, macro, "*/"
22474 next
22475 }
22476 }
22477 }
22478 { print }
22479 _ACAWK
22480 _ACEOF
22481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22482 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22483 fi # test -n "$CONFIG_HEADERS"
22484
22485
22486 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22487 shift
22488 for ac_tag
22489 do
22490 case $ac_tag in
22491 :[FHLC]) ac_mode=$ac_tag; continue;;
22492 esac
22493 case $ac_mode$ac_tag in
22494 :[FHL]*:*);;
22495 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22496 :[FH]-) ac_tag=-:-;;
22497 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22498 esac
22499 ac_save_IFS=$IFS
22500 IFS=:
22501 set x $ac_tag
22502 IFS=$ac_save_IFS
22503 shift
22504 ac_file=$1
22505 shift
22506
22507 case $ac_mode in
22508 :L) ac_source=$1;;
22509 :[FH])
22510 ac_file_inputs=
22511 for ac_f
22512 do
22513 case $ac_f in
22514 -) ac_f="$ac_tmp/stdin";;
22515 *) # Look for the file first in the build tree, then in the source tree
22516 # (if the path is not absolute). The absolute path cannot be DOS-style,
22517 # because $ac_f cannot contain ':'.
22518 test -f "$ac_f" ||
22519 case $ac_f in
22520 [\\/$]*) false;;
22521 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22522 esac ||
22523 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22524 esac
22525 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22526 as_fn_append ac_file_inputs " '$ac_f'"
22527 done
22528
22529 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22530 # use $as_me), people would be surprised to read:
22531 # /* config.h. Generated by config.status. */
22532 configure_input='Generated from '`
22533 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22534 `' by configure.'
22535 if test x"$ac_file" != x-; then
22536 configure_input="$ac_file. $configure_input"
22537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22538 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22539 fi
22540 # Neutralize special characters interpreted by sed in replacement strings.
22541 case $configure_input in #(
22542 *\&* | *\|* | *\\* )
22543 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22544 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22545 *) ac_sed_conf_input=$configure_input;;
22546 esac
22547
22548 case $ac_tag in
22549 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22551 esac
22552 ;;
22553 esac
22554
22555 ac_dir=`$as_dirname -- "$ac_file" ||
22556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557 X"$ac_file" : 'X\(//\)[^/]' \| \
22558 X"$ac_file" : 'X\(//\)$' \| \
22559 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22560 printf "%s\n" X"$ac_file" |
22561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22562 s//\1/
22563 q
22564 }
22565 /^X\(\/\/\)[^/].*/{
22566 s//\1/
22567 q
22568 }
22569 /^X\(\/\/\)$/{
22570 s//\1/
22571 q
22572 }
22573 /^X\(\/\).*/{
22574 s//\1/
22575 q
22576 }
22577 s/.*/./; q'`
22578 as_dir="$ac_dir"; as_fn_mkdir_p
22579 ac_builddir=.
22580
22581 case "$ac_dir" in
22582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22583 *)
22584 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22585 # A ".." for each directory in $ac_dir_suffix.
22586 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22587 case $ac_top_builddir_sub in
22588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22590 esac ;;
22591 esac
22592 ac_abs_top_builddir=$ac_pwd
22593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22594 # for backward compatibility:
22595 ac_top_builddir=$ac_top_build_prefix
22596
22597 case $srcdir in
22598 .) # We are building in place.
22599 ac_srcdir=.
22600 ac_top_srcdir=$ac_top_builddir_sub
22601 ac_abs_top_srcdir=$ac_pwd ;;
22602 [\\/]* | ?:[\\/]* ) # Absolute name.
22603 ac_srcdir=$srcdir$ac_dir_suffix;
22604 ac_top_srcdir=$srcdir
22605 ac_abs_top_srcdir=$srcdir ;;
22606 *) # Relative name.
22607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22608 ac_top_srcdir=$ac_top_build_prefix$srcdir
22609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22610 esac
22611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22612
22613
22614 case $ac_mode in
22615 :F)
22616 #
22617 # CONFIG_FILE
22618 #
22619
22620 case $INSTALL in
22621 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22622 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22623 esac
22624 ac_MKDIR_P=$MKDIR_P
22625 case $MKDIR_P in
22626 [\\/$]* | ?:[\\/]* ) ;;
22627 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22628 esac
22629 _ACEOF
22630
22631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22632 # If the template does not know about datarootdir, expand it.
22633 # FIXME: This hack should be removed a few years after 2.60.
22634 ac_datarootdir_hack=; ac_datarootdir_seen=
22635 ac_sed_dataroot='
22636 /datarootdir/ {
22637 p
22638 q
22639 }
22640 /@datadir@/p
22641 /@docdir@/p
22642 /@infodir@/p
22643 /@localedir@/p
22644 /@mandir@/p'
22645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22646 *datarootdir*) ac_datarootdir_seen=yes;;
22647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22649 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22650 _ACEOF
22651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22652 ac_datarootdir_hack='
22653 s&@datadir@&$datadir&g
22654 s&@docdir@&$docdir&g
22655 s&@infodir@&$infodir&g
22656 s&@localedir@&$localedir&g
22657 s&@mandir@&$mandir&g
22658 s&\\\${datarootdir}&$datarootdir&g' ;;
22659 esac
22660 _ACEOF
22661
22662 # Neutralize VPATH when '$srcdir' = '.'.
22663 # Shell code in configure.ac might set extrasub.
22664 # FIXME: do we really want to maintain this feature?
22665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22666 ac_sed_extra="$ac_vpsub
22667 $extrasub
22668 _ACEOF
22669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22670 :t
22671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22672 s|@configure_input@|$ac_sed_conf_input|;t t
22673 s&@top_builddir@&$ac_top_builddir_sub&;t t
22674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22675 s&@srcdir@&$ac_srcdir&;t t
22676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22677 s&@top_srcdir@&$ac_top_srcdir&;t t
22678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22679 s&@builddir@&$ac_builddir&;t t
22680 s&@abs_builddir@&$ac_abs_builddir&;t t
22681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22682 s&@INSTALL@&$ac_INSTALL&;t t
22683 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22684 $ac_datarootdir_hack
22685 "
22686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22687 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22688
22689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22690 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22692 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22694 which seems to be undefined. Please make sure it is defined" >&5
22695 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22696 which seems to be undefined. Please make sure it is defined" >&2;}
22697
22698 rm -f "$ac_tmp/stdin"
22699 case $ac_file in
22700 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22701 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22702 esac \
22703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22704 ;;
22705 :H)
22706 #
22707 # CONFIG_HEADER
22708 #
22709 if test x"$ac_file" != x-; then
22710 {
22711 printf "%s\n" "/* $configure_input */" >&1 \
22712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22713 } >"$ac_tmp/config.h" \
22714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22715 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22717 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22718 else
22719 rm -f "$ac_file"
22720 mv "$ac_tmp/config.h" "$ac_file" \
22721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22722 fi
22723 else
22724 printf "%s\n" "/* $configure_input */" >&1 \
22725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22726 || as_fn_error $? "could not create -" "$LINENO" 5
22727 fi
22728 # Compute "$ac_file"'s index in $config_headers.
22729 _am_arg="$ac_file"
22730 _am_stamp_count=1
22731 for _am_header in $config_headers :; do
22732 case $_am_header in
22733 $_am_arg | $_am_arg:* )
22734 break ;;
22735 * )
22736 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22737 esac
22738 done
22739 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22740 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22741 X"$_am_arg" : 'X\(//\)[^/]' \| \
22742 X"$_am_arg" : 'X\(//\)$' \| \
22743 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22744 printf "%s\n" X"$_am_arg" |
22745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22746 s//\1/
22747 q
22748 }
22749 /^X\(\/\/\)[^/].*/{
22750 s//\1/
22751 q
22752 }
22753 /^X\(\/\/\)$/{
22754 s//\1/
22755 q
22756 }
22757 /^X\(\/\).*/{
22758 s//\1/
22759 q
22760 }
22761 s/.*/./; q'`/stamp-h$_am_stamp_count
22762 ;;
22763
22764 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22765 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22766 ;;
22767 esac
22768
22769
22770 case $ac_file$ac_mode in
22771 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22772 # Older Autoconf quotes --file arguments for eval, but not when files
22773 # are listed without --file. Let's play safe and only enable the eval
22774 # if we detect the quoting.
22775 # TODO: see whether this extra hack can be removed once we start
22776 # requiring Autoconf 2.70 or later.
22777 case $CONFIG_FILES in #(
22778 *\'*) :
22779 eval set x "$CONFIG_FILES" ;; #(
22780 *) :
22781 set x $CONFIG_FILES ;; #(
22782 *) :
22783 ;;
22784 esac
22785 shift
22786 # Used to flag and report bootstrapping failures.
22787 am_rc=0
22788 for am_mf
22789 do
22790 # Strip MF so we end up with the name of the file.
22791 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22792 # Check whether this is an Automake generated Makefile which includes
22793 # dependency-tracking related rules and includes.
22794 # Grep'ing the whole file directly is not great: AIX grep has a line
22795 # limit of 2048, but all sed's we know have understand at least 4000.
22796 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22797 || continue
22798 am_dirpart=`$as_dirname -- "$am_mf" ||
22799 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800 X"$am_mf" : 'X\(//\)[^/]' \| \
22801 X"$am_mf" : 'X\(//\)$' \| \
22802 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22803 printf "%s\n" X"$am_mf" |
22804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22805 s//\1/
22806 q
22807 }
22808 /^X\(\/\/\)[^/].*/{
22809 s//\1/
22810 q
22811 }
22812 /^X\(\/\/\)$/{
22813 s//\1/
22814 q
22815 }
22816 /^X\(\/\).*/{
22817 s//\1/
22818 q
22819 }
22820 s/.*/./; q'`
22821 am_filepart=`$as_basename -- "$am_mf" ||
22822 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22823 X"$am_mf" : 'X\(//\)$' \| \
22824 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22825 printf "%s\n" X/"$am_mf" |
22826 sed '/^.*\/\([^/][^/]*\)\/*$/{
22827 s//\1/
22828 q
22829 }
22830 /^X\/\(\/\/\)$/{
22831 s//\1/
22832 q
22833 }
22834 /^X\/\(\/\).*/{
22835 s//\1/
22836 q
22837 }
22838 s/.*/./; q'`
22839 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22840 && sed -e '/# am--include-marker/d' "$am_filepart" \
22841 | $MAKE -f - am--depfiles" >&5
22842 (cd "$am_dirpart" \
22843 && sed -e '/# am--include-marker/d' "$am_filepart" \
22844 | $MAKE -f - am--depfiles) >&5 2>&5
22845 ac_status=$?
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } || am_rc=$?
22848 done
22849 if test $am_rc -ne 0; then
22850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22851 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22852 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22853 for automatic dependency tracking. If GNU make was not used, consider
22854 re-running the configure script with MAKE=\"gmake\" (or whatever is
22855 necessary). You can also try re-running configure with the
22856 '--disable-dependency-tracking' option to at least be able to build
22857 the package (albeit without support for automatic dependency tracking).
22858 See 'config.log' for more details" "$LINENO" 5; }
22859 fi
22860 { am_dirpart=; unset am_dirpart;}
22861 { am_filepart=; unset am_filepart;}
22862 { am_mf=; unset am_mf;}
22863 { am_rc=; unset am_rc;}
22864 rm -f conftest-deps.mk
22865 }
22866 ;;
22867 "libtool":C)
22868
22869 # See if we are running on zsh, and set the options that allow our
22870 # commands through without removal of \ escapes.
22871 if test -n "${ZSH_VERSION+set}"; then
22872 setopt NO_GLOB_SUBST
22873 fi
22874
22875 cfgfile=${ofile}T
22876 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22877 $RM "$cfgfile"
22878
22879 cat <<_LT_EOF >> "$cfgfile"
22880 #! $SHELL
22881 # Generated automatically by $as_me ($PACKAGE) $VERSION
22882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22883
22884 # Provide generalized library-building support services.
22885 # Written by Gordon Matzigkeit, 1996
22886
22887 # Copyright (C) 2024 Free Software Foundation, Inc.
22888 # This is free software; see the source for copying conditions. There is NO
22889 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22890
22891 # GNU Libtool is free software; you can redistribute it and/or modify
22892 # it under the terms of the GNU General Public License as published by
22893 # the Free Software Foundation; either version 2 of the License, or
22894 # (at your option) any later version.
22895 #
22896 # As a special exception to the GNU General Public License, if you
22897 # distribute this file as part of a program or library that is built
22898 # using GNU Libtool, you may include this file under the same
22899 # distribution terms that you use for the rest of that program.
22900 #
22901 # GNU Libtool is distributed in the hope that it will be useful, but
22902 # WITHOUT ANY WARRANTY; without even the implied warranty of
22903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22904 # GNU General Public License for more details.
22905 #
22906 # You should have received a copy of the GNU General Public License
22907 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22908
22909
22910 # The names of the tagged configurations supported by this script.
22911 available_tags=''
22912
22913 # Configured defaults for sys_lib_dlsearch_path munging.
22914 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22915
22916 # ### BEGIN LIBTOOL CONFIG
22917
22918 # Which release of libtool.m4 was used?
22919 macro_version=$macro_version
22920 macro_revision=$macro_revision
22921
22922 # Whether or not to build shared libraries.
22923 build_libtool_libs=$enable_shared
22924
22925 # Whether or not to build static libraries.
22926 build_old_libs=$enable_static
22927
22928 # What type of objects to build.
22929 pic_mode=$pic_mode
22930
22931 # Whether or not to optimize for fast installation.
22932 fast_install=$enable_fast_install
22933
22934 # Shared archive member basename,for filename based shared library versioning on AIX.
22935 shared_archive_member_spec=$shared_archive_member_spec
22936
22937 # Shell to use when invoking shell scripts.
22938 SHELL=$lt_SHELL
22939
22940 # An echo program that protects backslashes.
22941 ECHO=$lt_ECHO
22942
22943 # The PATH separator for the build system.
22944 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22945
22946 # The host system.
22947 host_alias=$host_alias
22948 host=$host
22949 host_os=$host_os
22950
22951 # The build system.
22952 build_alias=$build_alias
22953 build=$build
22954 build_os=$build_os
22955
22956 # A sed program that does not truncate output.
22957 SED=$lt_SED
22958
22959 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22960 Xsed="\$SED -e 1s/^X//"
22961
22962 # A grep program that handles long lines.
22963 GREP=$lt_GREP
22964
22965 # An ERE matcher.
22966 EGREP=$lt_EGREP
22967
22968 # A literal string matcher.
22969 FGREP=$lt_FGREP
22970
22971 # A BSD- or MS-compatible name lister.
22972 NM=$lt_NM
22973
22974 # Whether we need soft or hard links.
22975 LN_S=$lt_LN_S
22976
22977 # What is the maximum length of a command?
22978 max_cmd_len=$max_cmd_len
22979
22980 # Object file suffix (normally "o").
22981 objext=$ac_objext
22982
22983 # Executable file suffix (normally "").
22984 exeext=$exeext
22985
22986 # whether the shell understands "unset".
22987 lt_unset=$lt_unset
22988
22989 # turn spaces into newlines.
22990 SP2NL=$lt_lt_SP2NL
22991
22992 # turn newlines into spaces.
22993 NL2SP=$lt_lt_NL2SP
22994
22995 # convert \$build file names to \$host format.
22996 to_host_file_cmd=$lt_cv_to_host_file_cmd
22997
22998 # convert \$build files to toolchain format.
22999 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23000
23001 # A file(cmd) program that detects file types.
23002 FILECMD=$lt_FILECMD
23003
23004 # An object symbol dumper.
23005 OBJDUMP=$lt_OBJDUMP
23006
23007 # Method to check whether dependent libraries are shared objects.
23008 deplibs_check_method=$lt_deplibs_check_method
23009
23010 # Command to use when deplibs_check_method = "file_magic".
23011 file_magic_cmd=$lt_file_magic_cmd
23012
23013 # How to find potential files when deplibs_check_method = "file_magic".
23014 file_magic_glob=$lt_file_magic_glob
23015
23016 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23017 want_nocaseglob=$lt_want_nocaseglob
23018
23019 # DLL creation program.
23020 DLLTOOL=$lt_DLLTOOL
23021
23022 # Command to associate shared and link libraries.
23023 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23024
23025 # The archiver.
23026 AR=$lt_AR
23027
23028 # Flags to create an archive (by configure).
23029 lt_ar_flags=$lt_ar_flags
23030
23031 # Flags to create an archive.
23032 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23033
23034 # How to feed a file listing to the archiver.
23035 archiver_list_spec=$lt_archiver_list_spec
23036
23037 # A symbol stripping program.
23038 STRIP=$lt_STRIP
23039
23040 # Commands used to install an old-style archive.
23041 RANLIB=$lt_RANLIB
23042 old_postinstall_cmds=$lt_old_postinstall_cmds
23043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23044
23045 # Whether to use a lock for old archive extraction.
23046 lock_old_archive_extraction=$lock_old_archive_extraction
23047
23048 # A C compiler.
23049 LTCC=$lt_CC
23050
23051 # LTCC compiler flags.
23052 LTCFLAGS=$lt_CFLAGS
23053
23054 # Take the output of nm and produce a listing of raw symbols and C names.
23055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23056
23057 # Transform the output of nm in a proper C declaration.
23058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23059
23060 # Transform the output of nm into a list of symbols to manually relocate.
23061 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23062
23063 # Transform the output of nm in a C name address pair.
23064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23065
23066 # Transform the output of nm in a C name address pair when lib prefix is needed.
23067 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23068
23069 # The name lister interface.
23070 nm_interface=$lt_lt_cv_nm_interface
23071
23072 # Specify filename containing input files for \$NM.
23073 nm_file_list_spec=$lt_nm_file_list_spec
23074
23075 # The root where to search for dependent libraries,and where our libraries should be installed.
23076 lt_sysroot=$lt_sysroot
23077
23078 # Command to truncate a binary pipe.
23079 lt_truncate_bin=$lt_lt_cv_truncate_bin
23080
23081 # The name of the directory that contains temporary libtool files.
23082 objdir=$objdir
23083
23084 # Used to examine libraries when file_magic_cmd begins with "file".
23085 MAGIC_CMD=$MAGIC_CMD
23086
23087 # Must we lock files when doing compilation?
23088 need_locks=$lt_need_locks
23089
23090 # Manifest tool.
23091 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23092
23093 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23094 DSYMUTIL=$lt_DSYMUTIL
23095
23096 # Tool to change global to local symbols on Mac OS X.
23097 NMEDIT=$lt_NMEDIT
23098
23099 # Tool to manipulate fat objects and archives on Mac OS X.
23100 LIPO=$lt_LIPO
23101
23102 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23103 OTOOL=$lt_OTOOL
23104
23105 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23106 OTOOL64=$lt_OTOOL64
23107
23108 # Old archive suffix (normally "a").
23109 libext=$libext
23110
23111 # Shared library suffix (normally ".so").
23112 shrext_cmds=$lt_shrext_cmds
23113
23114 # The commands to extract the exported symbol list from a shared archive.
23115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23116
23117 # Variables whose values should be saved in libtool wrapper scripts and
23118 # restored at link time.
23119 variables_saved_for_relink=$lt_variables_saved_for_relink
23120
23121 # Do we need the "lib" prefix for modules?
23122 need_lib_prefix=$need_lib_prefix
23123
23124 # Do we need a version for libraries?
23125 need_version=$need_version
23126
23127 # Library versioning type.
23128 version_type=$version_type
23129
23130 # Shared library runtime path variable.
23131 runpath_var=$runpath_var
23132
23133 # Shared library path variable.
23134 shlibpath_var=$shlibpath_var
23135
23136 # Is shlibpath searched before the hard-coded library search path?
23137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23138
23139 # Format of library name prefix.
23140 libname_spec=$lt_libname_spec
23141
23142 # List of archive names. First name is the real one, the rest are links.
23143 # The last name is the one that the linker finds with -lNAME
23144 library_names_spec=$lt_library_names_spec
23145
23146 # The coded name of the library, if different from the real name.
23147 soname_spec=$lt_soname_spec
23148
23149 # Permission mode override for installation of shared libraries.
23150 install_override_mode=$lt_install_override_mode
23151
23152 # Command to use after installation of a shared archive.
23153 postinstall_cmds=$lt_postinstall_cmds
23154
23155 # Command to use after uninstallation of a shared archive.
23156 postuninstall_cmds=$lt_postuninstall_cmds
23157
23158 # Commands used to finish a libtool library installation in a directory.
23159 finish_cmds=$lt_finish_cmds
23160
23161 # As "finish_cmds", except a single script fragment to be evaled but
23162 # not shown.
23163 finish_eval=$lt_finish_eval
23164
23165 # Whether we should hardcode library paths into libraries.
23166 hardcode_into_libs=$hardcode_into_libs
23167
23168 # Compile-time system search path for libraries.
23169 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23170
23171 # Detected run-time system search path for libraries.
23172 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23173
23174 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23175 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23176
23177 # Whether dlopen is supported.
23178 dlopen_support=$enable_dlopen
23179
23180 # Whether dlopen of programs is supported.
23181 dlopen_self=$enable_dlopen_self
23182
23183 # Whether dlopen of statically linked programs is supported.
23184 dlopen_self_static=$enable_dlopen_self_static
23185
23186 # Commands to strip libraries.
23187 old_striplib=$lt_old_striplib
23188 striplib=$lt_striplib
23189
23190
23191 # The linker used to build libraries.
23192 LD=$lt_LD
23193
23194 # How to create reloadable object files.
23195 reload_flag=$lt_reload_flag
23196 reload_cmds=$lt_reload_cmds
23197
23198 # Commands used to build an old-style archive.
23199 old_archive_cmds=$lt_old_archive_cmds
23200
23201 # A language specific compiler.
23202 CC=$lt_compiler
23203
23204 # Is the compiler the GNU compiler?
23205 with_gcc=$GCC
23206
23207 # Compiler flag to turn off builtin functions.
23208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23209
23210 # Additional compiler flags for building library objects.
23211 pic_flag=$lt_lt_prog_compiler_pic
23212
23213 # How to pass a linker flag through the compiler.
23214 wl=$lt_lt_prog_compiler_wl
23215
23216 # Compiler flag to prevent dynamic linking.
23217 link_static_flag=$lt_lt_prog_compiler_static
23218
23219 # Does compiler simultaneously support -c and -o options?
23220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23221
23222 # Whether or not to add -lc for building shared libraries.
23223 build_libtool_need_lc=$archive_cmds_need_lc
23224
23225 # Whether or not to disallow shared libs when runtime libs are static.
23226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23227
23228 # Compiler flag to allow reflexive dlopens.
23229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23230
23231 # Compiler flag to generate shared objects directly from archives.
23232 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23233
23234 # Whether the compiler copes with passing no objects directly.
23235 compiler_needs_object=$lt_compiler_needs_object
23236
23237 # Create an old-style archive from a shared archive.
23238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23239
23240 # Create a temporary old-style archive to link instead of a shared archive.
23241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23242
23243 # Commands used to build a shared archive.
23244 archive_cmds=$lt_archive_cmds
23245 archive_expsym_cmds=$lt_archive_expsym_cmds
23246
23247 # Commands used to build a loadable module if different from building
23248 # a shared archive.
23249 module_cmds=$lt_module_cmds
23250 module_expsym_cmds=$lt_module_expsym_cmds
23251
23252 # Whether we are building with GNU ld or not.
23253 with_gnu_ld=$lt_with_gnu_ld
23254
23255 # Flag that allows shared libraries with undefined symbols to be built.
23256 allow_undefined_flag=$lt_allow_undefined_flag
23257
23258 # Flag that enforces no undefined symbols.
23259 no_undefined_flag=$lt_no_undefined_flag
23260
23261 # Flag to hardcode \$libdir into a binary during linking.
23262 # This must work even if \$libdir does not exist
23263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23264
23265 # Whether we need a single "-rpath" flag with a separated argument.
23266 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23267
23268 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23269 # DIR into the resulting binary.
23270 hardcode_direct=$hardcode_direct
23271
23272 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23273 # DIR into the resulting binary and the resulting library dependency is
23274 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23275 # library is relocated.
23276 hardcode_direct_absolute=$hardcode_direct_absolute
23277
23278 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23279 # into the resulting binary.
23280 hardcode_minus_L=$hardcode_minus_L
23281
23282 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23283 # into the resulting binary.
23284 hardcode_shlibpath_var=$hardcode_shlibpath_var
23285
23286 # Set to "yes" if building a shared library automatically hardcodes DIR
23287 # into the library and all subsequent libraries and executables linked
23288 # against it.
23289 hardcode_automatic=$hardcode_automatic
23290
23291 # Set to yes if linker adds runtime paths of dependent libraries
23292 # to runtime path list.
23293 inherit_rpath=$inherit_rpath
23294
23295 # Whether libtool must link a program against all its dependency libraries.
23296 link_all_deplibs=$link_all_deplibs
23297
23298 # Set to "yes" if exported symbols are required.
23299 always_export_symbols=$always_export_symbols
23300
23301 # The commands to list exported symbols.
23302 export_symbols_cmds=$lt_export_symbols_cmds
23303
23304 # Symbols that should not be listed in the preloaded symbols.
23305 exclude_expsyms=$lt_exclude_expsyms
23306
23307 # Symbols that must always be exported.
23308 include_expsyms=$lt_include_expsyms
23309
23310 # Commands necessary for linking programs (against libraries) with templates.
23311 prelink_cmds=$lt_prelink_cmds
23312
23313 # Commands necessary for finishing linking programs.
23314 postlink_cmds=$lt_postlink_cmds
23315
23316 # Specify filename containing input files.
23317 file_list_spec=$lt_file_list_spec
23318
23319 # How to hardcode a shared library path into an executable.
23320 hardcode_action=$hardcode_action
23321
23322 # ### END LIBTOOL CONFIG
23323
23324 _LT_EOF
23325
23326 cat <<'_LT_EOF' >> "$cfgfile"
23327
23328 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23329
23330 # func_munge_path_list VARIABLE PATH
23331 # -----------------------------------
23332 # VARIABLE is name of variable containing _space_ separated list of
23333 # directories to be munged by the contents of PATH, which is string
23334 # having a format:
23335 # "DIR[:DIR]:"
23336 # string "DIR[ DIR]" will be prepended to VARIABLE
23337 # ":DIR[:DIR]"
23338 # string "DIR[ DIR]" will be appended to VARIABLE
23339 # "DIRP[:DIRP]::[DIRA:]DIRA"
23340 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23341 # "DIRA[ DIRA]" will be appended to VARIABLE
23342 # "DIR[:DIR]"
23343 # VARIABLE will be replaced by "DIR[ DIR]"
23344 func_munge_path_list ()
23345 {
23346 case x$2 in
23347 x)
23348 ;;
23349 *:)
23350 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23351 ;;
23352 x:*)
23353 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23354 ;;
23355 *::*)
23356 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23357 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23358 ;;
23359 *)
23360 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23361 ;;
23362 esac
23363 }
23364
23365
23366 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23367 func_cc_basename ()
23368 {
23369 for cc_temp in $*""; do
23370 case $cc_temp in
23371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23373 \-*) ;;
23374 *) break;;
23375 esac
23376 done
23377 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23378 }
23379
23380
23381 # ### END FUNCTIONS SHARED WITH CONFIGURE
23382
23383 _LT_EOF
23384
23385 case $host_os in
23386 aix3*)
23387 cat <<\_LT_EOF >> "$cfgfile"
23388 # AIX sometimes has problems with the GCC collect2 program. For some
23389 # reason, if we set the COLLECT_NAMES environment variable, the problems
23390 # vanish in a puff of smoke.
23391 if test set != "${COLLECT_NAMES+set}"; then
23392 COLLECT_NAMES=
23393 export COLLECT_NAMES
23394 fi
23395 _LT_EOF
23396 ;;
23397 esac
23398
23399
23400
23401 ltmain=$ac_aux_dir/ltmain.sh
23402
23403
23404 # We use sed instead of cat because bash on DJGPP gets confused if
23405 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23406 # text mode, it properly converts lines to CR/LF. This bash problem
23407 # is reportedly fixed, but why not run on old versions too?
23408 $SED '$q' "$ltmain" >> "$cfgfile" \
23409 || (rm -f "$cfgfile"; exit 1)
23410
23411 mv -f "$cfgfile" "$ofile" ||
23412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23413 chmod +x "$ofile"
23414
23415 ;;
23416
23417 esac
23418 done # for ac_tag
23419
23420
23421 as_fn_exit 0
23422 _ACEOF
23423 ac_clean_files=$ac_clean_files_save
23424
23425 test $ac_write_fail = 0 ||
23426 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23427
23428
23429 # configure is writing to config.log, and then calls config.status.
23430 # config.status does its own redirection, appending to config.log.
23431 # Unfortunately, on DOS this fails, as config.log is still kept open
23432 # by configure, so config.status won't be able to write to it; its
23433 # output is simply discarded. So we exec the FD to /dev/null,
23434 # effectively closing config.log, so it can be properly (re)opened and
23435 # appended to by config.status. When coming back to configure, we
23436 # need to make the FD available again.
23437 if test "$no_create" != yes; then
23438 ac_cs_success=:
23439 ac_config_status_args=
23440 test "$silent" = yes &&
23441 ac_config_status_args="$ac_config_status_args --quiet"
23442 exec 5>/dev/null
23443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23444 exec 5>>config.log
23445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23446 # would make configure fail if this is the last instruction.
23447 $ac_cs_success || as_fn_exit 1
23448 fi
23449 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23451 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23452 fi
23453
23454
23455