configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXxf86vm 1.1.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/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/libxxf86vm/-/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='libXxf86vm'
617 PACKAGE_TARNAME='libXxf86vm'
618 PACKAGE_VERSION='1.1.7'
619 PACKAGE_STRING='libXxf86vm 1.1.7'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/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 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 XXF86VM_LIBS
661 XXF86VM_CFLAGS
662 XTMALLOC_ZERO_CFLAGS
663 XMALLOC_ZERO_CFLAGS
664 MALLOC_ZERO_CFLAGS
665 MAN_SUBSTS
666 XORG_MAN_PAGE
667 ADMIN_MAN_DIR
668 DRIVER_MAN_DIR
669 MISC_MAN_DIR
670 FILE_MAN_DIR
671 LIB_MAN_DIR
672 APP_MAN_DIR
673 ADMIN_MAN_SUFFIX
674 DRIVER_MAN_SUFFIX
675 MISC_MAN_SUFFIX
676 FILE_MAN_SUFFIX
677 LIB_MAN_SUFFIX
678 APP_MAN_SUFFIX
679 INSTALL_CMD
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CHANGELOG_CMD
684 STRICT_CFLAGS
685 CWARNFLAGS
686 BASE_CFLAGS
687 LT_SYS_LIBRARY_PATH
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 DLLTOOL
698 OBJDUMP
699 FILECMD
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 LIBTOOL
734 am__xargs_n
735 am__rm_f_notfound
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 CSCOPE
741 ETAGS
742 CTAGS
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 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 am__quote'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 enable_shared
811 enable_static
812 enable_pic
813 with_pic
814 enable_fast_install
815 enable_aix_soname
816 with_aix_soname
817 enable_dependency_tracking
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_selective_werror
822 enable_strict_compilation
823 enable_malloc0returnsnull
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 LT_SYS_LIBRARY_PATH
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 XXF86VM_CFLAGS
838 XXF86VM_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: '$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: '$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: '$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: '$ac_option'
1233 Try '$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: '$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 'configure' configures libXxf86vm 1.1.7 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print 'checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for '--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or '..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, 'make install' will install all the files in
1414 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than '$ac_default_prefix' using '--prefix',
1416 for instance '--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86vm]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libXxf86vm 1.1.7:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --enable-aix-soname=aix|svr4|both
1475 shared library versioning (aka "SONAME") variant to
1476 provide on AIX, [default=aix].
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --disable-selective-werror
1483 Turn off selective compiler errors. (default:
1484 enabled)
1485 --enable-strict-compilation
1486 Enable all warnings from compiler and make them
1487 errors (default: disabled)
1488 --enable-malloc0returnsnull
1489 assume malloc(0) can return NULL (default: yes)
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1496 compiler's sysroot if not specified).
1497
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1506 LT_SYS_LIBRARY_PATH
1507 User-defined run-time library search path.
1508 PKG_CONFIG path to pkg-config utility
1509 PKG_CONFIG_PATH
1510 directories to add to pkg-config's search path
1511 PKG_CONFIG_LIBDIR
1512 path overriding pkg-config's built-in search path
1513 XXF86VM_CFLAGS
1514 C compiler flags for XXF86VM, overriding pkg-config
1515 XXF86VM_LIBS
1516 linker flags for XXF86VM, overriding pkg-config
1517
1518 Use these variables to override the choices made by 'configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for configure.gnu first; this name is used for a wrapper for
1568 # Metaconfig's "Configure" on case-insensitive file systems.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 libXxf86vm configure 1.1.7
1586 generated by GNU Autoconf 2.72
1587
1588 Copyright (C) 2023 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592 exit
1593 fi
1594
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1598
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest.beam
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 printf "%s\n" "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext
1625 then :
1626 ac_retval=0
1627 else case e in #(
1628 e) printf "%s\n" "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1 ;;
1632 esac
1633 fi
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_compile
1638
1639 # ac_fn_c_try_link LINENO
1640 # -----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_link ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1646 if { { ac_try="$ac_link"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 printf "%s\n" "$ac_try_echo"; } >&5
1653 (eval "$ac_link") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest$ac_exeext && {
1665 test "$cross_compiling" = yes ||
1666 test -x conftest$ac_exeext
1667 }
1668 then :
1669 ac_retval=0
1670 else case e in #(
1671 e) printf "%s\n" "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1 ;;
1675 esac
1676 fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_link
1686
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 printf %s "checking for $2... " >&6; }
1696 if eval test \${$3+y}
1697 then :
1698 printf %s "(cached) " >&6
1699 else case e in #(
1700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"
1706 then :
1707 eval "$3=yes"
1708 else case e in #(
1709 e) eval "$3=no" ;;
1710 esac
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1713 esac
1714 fi
1715 eval ac_res=\$$3
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 printf "%s\n" "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_compile
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 printf %s "checking for $2... " >&6; }
1730 if eval test \${$3+y}
1731 then :
1732 printf %s "(cached) " >&6
1733 else case e in #(
1734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1738 #define $2 innocuous_$2
1739
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $2 (void); below. */
1742
1743 #include <limits.h>
1744 #undef $2
1745
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 (void);
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1759
1760 int
1761 main (void)
1762 {
1763 return $2 ();
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"
1769 then :
1770 eval "$3=yes"
1771 else case e in #(
1772 e) eval "$3=no" ;;
1773 esac
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776 conftest$ac_exeext conftest.$ac_ext ;;
1777 esac
1778 fi
1779 eval ac_res=\$$3
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1787 # ------------------------------------------------------------------
1788 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1789 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1790 ac_fn_check_decl ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 as_decl_name=`echo $2|sed 's/ *(.*//'`
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795 printf %s "checking whether $as_decl_name is declared... " >&6; }
1796 if eval test \${$3+y}
1797 then :
1798 printf %s "(cached) " >&6
1799 else case e in #(
1800 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1801 eval ac_save_FLAGS=\$$6
1802 as_fn_append $6 " $5"
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 int
1807 main (void)
1808 {
1809 #ifndef $as_decl_name
1810 #ifdef __cplusplus
1811 (void) $as_decl_use;
1812 #else
1813 (void) $as_decl_name;
1814 #endif
1815 #endif
1816
1817 ;
1818 return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"
1822 then :
1823 eval "$3=yes"
1824 else case e in #(
1825 e) eval "$3=no" ;;
1826 esac
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1829 eval $6=\$ac_save_FLAGS
1830 ;;
1831 esac
1832 fi
1833 eval ac_res=\$$3
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 printf "%s\n" "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_check_decl
1839 ac_configure_args_raw=
1840 for ac_arg
1841 do
1842 case $ac_arg in
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 as_fn_append ac_configure_args_raw " '$ac_arg'"
1847 done
1848
1849 case $ac_configure_args_raw in
1850 *$as_nl*)
1851 ac_safe_unquote= ;;
1852 *)
1853 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1854 ac_unsafe_a="$ac_unsafe_z#~"
1855 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1856 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1857 esac
1858
1859 cat >config.log <<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1862
1863 It was created by libXxf86vm $as_me 1.1.7, which was
1864 generated by GNU Autoconf 2.72. Invocation command line was
1865
1866 $ $0$ac_configure_args_raw
1867
1868 _ACEOF
1869 exec 5>>config.log
1870 {
1871 cat <<_ASUNAME
1872 ## --------- ##
1873 ## Platform. ##
1874 ## --------- ##
1875
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892
1893 _ASUNAME
1894
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 case $as_dir in #(((
1900 '') as_dir=./ ;;
1901 */) ;;
1902 *) as_dir=$as_dir/ ;;
1903 esac
1904 printf "%s\n" "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Sanitize IFS.
1975 IFS=" "" $as_nl"
1976 # Save into config.log some information that might help in debugging.
1977 {
1978 echo
1979
1980 printf "%s\n" "## ---------------- ##
1981 ## Cache variables. ##
1982 ## ---------------- ##"
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1985 (
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2008 *)
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ;;
2011 esac |
2012 sort
2013 )
2014 echo
2015
2016 printf "%s\n" "## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##"
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 printf "%s\n" "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 printf "%s\n" "## ------------------- ##
2032 ## File substitutions. ##
2033 ## ------------------- ##"
2034 echo
2035 for ac_var in $ac_subst_files
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 printf "%s\n" "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044 fi
2045
2046 if test -s confdefs.h; then
2047 printf "%s\n" "## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##"
2050 echo
2051 cat confdefs.h
2052 echo
2053 fi
2054 test "$ac_signal" != 0 &&
2055 printf "%s\n" "$as_me: caught signal $ac_signal"
2056 printf "%s\n" "$as_me: exit $exit_status"
2057 } >&5
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 exit $exit_status
2061 ' 0
2062 for ac_signal in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064 done
2065 ac_signal=0
2066
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest* confdefs.h
2069
2070 printf "%s\n" "/* confdefs.h */" > confdefs.h
2071
2072 # Predefined preprocessor variables.
2073
2074 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2075
2076 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2077
2078 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2079
2080 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2081
2082 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2085
2086
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 if test -n "$CONFIG_SITE"; then
2090 ac_site_files="$CONFIG_SITE"
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2093 else
2094 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2095 fi
2096
2097 for ac_site_file in $ac_site_files
2098 do
2099 case $ac_site_file in #(
2100 */*) :
2101 ;; #(
2102 *) :
2103 ac_site_file=./$ac_site_file ;;
2104 esac
2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file" \
2110 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See 'config.log' for more details" "$LINENO" 5; }
2114 fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133
2134 # Test code for whether the C compiler supports C89 (global declarations)
2135 ac_c_conftest_c89_globals='
2136 /* Does the compiler advertise C89 conformance?
2137 Do not test the value of __STDC__, because some compilers set it to 0
2138 while being otherwise adequately conformant. */
2139 #if !defined __STDC__
2140 # error "Compiler does not advertise C89 conformance"
2141 #endif
2142
2143 #include <stddef.h>
2144 #include <stdarg.h>
2145 struct stat;
2146 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2147 struct buf { int x; };
2148 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (char **p, int i)
2150 {
2151 return p[i];
2152 }
2153 static char *f (char * (*g) (char **, int), char **p, ...)
2154 {
2155 char *s;
2156 va_list v;
2157 va_start (v,p);
2158 s = g (p, va_arg (v,int));
2159 va_end (v);
2160 return s;
2161 }
2162
2163 /* C89 style stringification. */
2164 #define noexpand_stringify(a) #a
2165 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2166
2167 /* C89 style token pasting. Exercises some of the corner cases that
2168 e.g. old MSVC gets wrong, but not very hard. */
2169 #define noexpand_concat(a,b) a##b
2170 #define expand_concat(a,b) noexpand_concat(a,b)
2171 extern int vA;
2172 extern int vbee;
2173 #define aye A
2174 #define bee B
2175 int *pvA = &expand_concat(v,aye);
2176 int *pvbee = &noexpand_concat(v,bee);
2177
2178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2179 function prototypes and stuff, but not \xHH hex character constants.
2180 These do not provoke an error unfortunately, instead are silently treated
2181 as an "x". The following induces an error, until -std is added to get
2182 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2183 array size at least. It is necessary to write \x00 == 0 to get something
2184 that is true only with -std. */
2185 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2186
2187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2188 inside strings and character constants. */
2189 #define FOO(x) '\''x'\''
2190 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2191
2192 int test (int i, double x);
2193 struct s1 {int (*f) (int a);};
2194 struct s2 {int (*f) (double a);};
2195 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2196 int, int);'
2197
2198 # Test code for whether the C compiler supports C89 (body of main).
2199 ac_c_conftest_c89_main='
2200 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2201 '
2202
2203 # Test code for whether the C compiler supports C99 (global declarations)
2204 ac_c_conftest_c99_globals='
2205 /* Does the compiler advertise C99 conformance? */
2206 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2207 # error "Compiler does not advertise C99 conformance"
2208 #endif
2209
2210 // See if C++-style comments work.
2211
2212 #include <stdbool.h>
2213 extern int puts (const char *);
2214 extern int printf (const char *, ...);
2215 extern int dprintf (int, const char *, ...);
2216 extern void *malloc (size_t);
2217 extern void free (void *);
2218
2219 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2220 // dprintf is used instead of fprintf to avoid needing to declare
2221 // FILE and stderr.
2222 #define debug(...) dprintf (2, __VA_ARGS__)
2223 #define showlist(...) puts (#__VA_ARGS__)
2224 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2225 static void
2226 test_varargs_macros (void)
2227 {
2228 int x = 1234;
2229 int y = 5678;
2230 debug ("Flag");
2231 debug ("X = %d\n", x);
2232 showlist (The first, second, and third items.);
2233 report (x>y, "x is %d but y is %d", x, y);
2234 }
2235
2236 // Check long long types.
2237 #define BIG64 18446744073709551615ull
2238 #define BIG32 4294967295ul
2239 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2240 #if !BIG_OK
2241 #error "your preprocessor is broken"
2242 #endif
2243 #if BIG_OK
2244 #else
2245 #error "your preprocessor is broken"
2246 #endif
2247 static long long int bignum = -9223372036854775807LL;
2248 static unsigned long long int ubignum = BIG64;
2249
2250 struct incomplete_array
2251 {
2252 int datasize;
2253 double data[];
2254 };
2255
2256 struct named_init {
2257 int number;
2258 const wchar_t *name;
2259 double average;
2260 };
2261
2262 typedef const char *ccp;
2263
2264 static inline int
2265 test_restrict (ccp restrict text)
2266 {
2267 // Iterate through items via the restricted pointer.
2268 // Also check for declarations in for loops.
2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2270 continue;
2271 return 0;
2272 }
2273
2274 // Check varargs and va_copy.
2275 static bool
2276 test_varargs (const char *format, ...)
2277 {
2278 va_list args;
2279 va_start (args, format);
2280 va_list args_copy;
2281 va_copy (args_copy, args);
2282
2283 const char *str = "";
2284 int number = 0;
2285 float fnumber = 0;
2286
2287 while (*format)
2288 {
2289 switch (*format++)
2290 {
2291 case '\''s'\'': // string
2292 str = va_arg (args_copy, const char *);
2293 break;
2294 case '\''d'\'': // int
2295 number = va_arg (args_copy, int);
2296 break;
2297 case '\''f'\'': // float
2298 fnumber = va_arg (args_copy, double);
2299 break;
2300 default:
2301 break;
2302 }
2303 }
2304 va_end (args_copy);
2305 va_end (args);
2306
2307 return *str && number && fnumber;
2308 }
2309 '
2310
2311 # Test code for whether the C compiler supports C99 (body of main).
2312 ac_c_conftest_c99_main='
2313 // Check bool.
2314 _Bool success = false;
2315 success |= (argc != 0);
2316
2317 // Check restrict.
2318 if (test_restrict ("String literal") == 0)
2319 success = true;
2320 char *restrict newvar = "Another string";
2321
2322 // Check varargs.
2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2324 test_varargs_macros ();
2325
2326 // Check flexible array members.
2327 struct incomplete_array *ia =
2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2329 ia->datasize = 10;
2330 for (int i = 0; i < ia->datasize; ++i)
2331 ia->data[i] = i * 1.234;
2332 // Work around memory leak warnings.
2333 free (ia);
2334
2335 // Check named initializers.
2336 struct named_init ni = {
2337 .number = 34,
2338 .name = L"Test wide string",
2339 .average = 543.34343,
2340 };
2341
2342 ni.number = 58;
2343
2344 int dynamic_array[ni.number];
2345 dynamic_array[0] = argv[0][0];
2346 dynamic_array[ni.number - 1] = 543;
2347
2348 // work around unused variable warnings
2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2350 || dynamic_array[ni.number - 1] != 543);
2351 '
2352
2353 # Test code for whether the C compiler supports C11 (global declarations)
2354 ac_c_conftest_c11_globals='
2355 /* Does the compiler advertise C11 conformance? */
2356 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2357 # error "Compiler does not advertise C11 conformance"
2358 #endif
2359
2360 // Check _Alignas.
2361 char _Alignas (double) aligned_as_double;
2362 char _Alignas (0) no_special_alignment;
2363 extern char aligned_as_int;
2364 char _Alignas (0) _Alignas (int) aligned_as_int;
2365
2366 // Check _Alignof.
2367 enum
2368 {
2369 int_alignment = _Alignof (int),
2370 int_array_alignment = _Alignof (int[100]),
2371 char_alignment = _Alignof (char)
2372 };
2373 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2374
2375 // Check _Noreturn.
2376 int _Noreturn does_not_return (void) { for (;;) continue; }
2377
2378 // Check _Static_assert.
2379 struct test_static_assert
2380 {
2381 int x;
2382 _Static_assert (sizeof (int) <= sizeof (long int),
2383 "_Static_assert does not work in struct");
2384 long int y;
2385 };
2386
2387 // Check UTF-8 literals.
2388 #define u8 syntax error!
2389 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2390
2391 // Check duplicate typedefs.
2392 typedef long *long_ptr;
2393 typedef long int *long_ptr;
2394 typedef long_ptr long_ptr;
2395
2396 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2397 struct anonymous
2398 {
2399 union {
2400 struct { int i; int j; };
2401 struct { int k; long int l; } w;
2402 };
2403 int m;
2404 } v1;
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (body of main).
2408 ac_c_conftest_c11_main='
2409 _Static_assert ((offsetof (struct anonymous, i)
2410 == offsetof (struct anonymous, w.k)),
2411 "Anonymous union alignment botch");
2412 v1.i = 2;
2413 v1.w.k = 5;
2414 ok |= v1.i != 5;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (complete).
2418 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2419 ${ac_c_conftest_c99_globals}
2420 ${ac_c_conftest_c11_globals}
2421
2422 int
2423 main (int argc, char **argv)
2424 {
2425 int ok = 0;
2426 ${ac_c_conftest_c89_main}
2427 ${ac_c_conftest_c99_main}
2428 ${ac_c_conftest_c11_main}
2429 return ok;
2430 }
2431 "
2432
2433 # Test code for whether the C compiler supports C99 (complete).
2434 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2435 ${ac_c_conftest_c99_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 ${ac_c_conftest_c99_main}
2443 return ok;
2444 }
2445 "
2446
2447 # Test code for whether the C compiler supports C89 (complete).
2448 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2449
2450 int
2451 main (int argc, char **argv)
2452 {
2453 int ok = 0;
2454 ${ac_c_conftest_c89_main}
2455 return ok;
2456 }
2457 "
2458
2459 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2460 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2461 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2462 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2463 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2464 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2465 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2466 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2467 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2468
2469 # Auxiliary files required by this configure script.
2470 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2471
2472 # Locations in which to look for auxiliary files.
2473 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2474
2475 # Search for a directory containing all of the required auxiliary files,
2476 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2477 # If we don't find one directory that contains all the files we need,
2478 # we report the set of missing files from the *first* directory in
2479 # $ac_aux_dir_candidates and give up.
2480 ac_missing_aux_files=""
2481 ac_first_candidate=:
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 as_found=false
2485 for as_dir in $ac_aux_dir_candidates
2486 do
2487 IFS=$as_save_IFS
2488 case $as_dir in #(((
2489 '') as_dir=./ ;;
2490 */) ;;
2491 *) as_dir=$as_dir/ ;;
2492 esac
2493 as_found=:
2494
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2496 ac_aux_dir_found=yes
2497 ac_install_sh=
2498 for ac_aux in $ac_aux_files
2499 do
2500 # As a special case, if "install-sh" is required, that requirement
2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2502 # and $ac_install_sh is set appropriately for whichever one is found.
2503 if test x"$ac_aux" = x"install-sh"
2504 then
2505 if test -f "${as_dir}install-sh"; then
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2507 ac_install_sh="${as_dir}install-sh -c"
2508 elif test -f "${as_dir}install.sh"; then
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2510 ac_install_sh="${as_dir}install.sh -c"
2511 elif test -f "${as_dir}shtool"; then
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2513 ac_install_sh="${as_dir}shtool install -c"
2514 else
2515 ac_aux_dir_found=no
2516 if $ac_first_candidate; then
2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2518 else
2519 break
2520 fi
2521 fi
2522 else
2523 if test -f "${as_dir}${ac_aux}"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2525 else
2526 ac_aux_dir_found=no
2527 if $ac_first_candidate; then
2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2529 else
2530 break
2531 fi
2532 fi
2533 fi
2534 done
2535 if test "$ac_aux_dir_found" = yes; then
2536 ac_aux_dir="$as_dir"
2537 break
2538 fi
2539 ac_first_candidate=false
2540
2541 as_found=false
2542 done
2543 IFS=$as_save_IFS
2544 if $as_found
2545 then :
2546
2547 else case e in #(
2548 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2549 esac
2550 fi
2551
2552
2553 # These three variables are undocumented and unsupported,
2554 # and are intended to be withdrawn in a future Autoconf release.
2555 # They can cause serious problems if a builder's source tree is in a directory
2556 # whose full name contains unusual characters.
2557 if test -f "${ac_aux_dir}config.guess"; then
2558 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2559 fi
2560 if test -f "${ac_aux_dir}config.sub"; then
2561 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2562 fi
2563 if test -f "$ac_aux_dir/configure"; then
2564 ac_configure="$SHELL ${ac_aux_dir}configure"
2565 fi
2566
2567 # Check that the precious variables saved in the cache have kept the same
2568 # value.
2569 ac_cache_corrupted=false
2570 for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2578 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2582 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2585 *)
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2596 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2598 fi
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2600 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2602 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2615 fi
2616 done
2617 if $ac_cache_corrupted; then
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2619 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2623 and start over" "$LINENO" 5
2624 fi
2625 ## -------------------- ##
2626 ## Main body of script. ##
2627 ## -------------------- ##
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
2636
2637 ac_config_headers="$ac_config_headers src/config.h"
2638
2639
2640
2641 # Initialize Automake
2642 am__api_version='1.18'
2643
2644
2645
2646 # Find a good install program. We prefer a C program (faster),
2647 # so one script is as good as another. But avoid the broken or
2648 # incompatible versions:
2649 # SysV /etc/install, /usr/sbin/install
2650 # SunOS /usr/etc/install
2651 # IRIX /sbin/install
2652 # AIX /bin/install
2653 # AmigaOS /C/install, which installs bootblocks on floppy discs
2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2657 # OS/2's system install, which has a completely different semantic
2658 # ./install, which can be erroneously created by make from ./install.sh.
2659 # Reject install programs that cannot install multiple files.
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2661 printf %s "checking for a BSD-compatible install... " >&6; }
2662 if test -z "$INSTALL"; then
2663 if test ${ac_cv_path_install+y}
2664 then :
2665 printf %s "(cached) " >&6
2666 else case e in #(
2667 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 case $as_dir in #(((
2672 '') as_dir=./ ;;
2673 */) ;;
2674 *) as_dir=$as_dir/ ;;
2675 esac
2676 # Account for fact that we put trailing slashes in our PATH walk.
2677 case $as_dir in #((
2678 ./ | /[cC]/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2692 :
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
2697 else
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2701 mkdir conftest.dir
2702 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2706 then
2707 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2708 break 3
2709 fi
2710 fi
2711 fi
2712 done
2713 done
2714 ;;
2715 esac
2716
2717 done
2718 IFS=$as_save_IFS
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721 ;;
2722 esac
2723 fi
2724 if test ${ac_cv_path_install+y}; then
2725 INSTALL=$ac_cv_path_install
2726 else
2727 # As a last resort, use the slow shell script. Don't cache a
2728 # value for INSTALL within a source directory, because that will
2729 # break other packages using the cache if that directory is
2730 # removed, or if the value is a relative name.
2731 INSTALL=$ac_install_sh
2732 fi
2733 fi
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735 printf "%s\n" "$INSTALL" >&6; }
2736
2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738 # It thinks the first close brace ends the variable substitution.
2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742
2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2746 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2747 if test ${am_cv_sleep_fractional_seconds+y}
2748 then :
2749 printf %s "(cached) " >&6
2750 else case e in #(
2751 e) if sleep 0.001 2>/dev/null
2752 then :
2753 am_cv_sleep_fractional_seconds=yes
2754 else case e in #(
2755 e) am_cv_sleep_fractional_seconds=no ;;
2756 esac
2757 fi
2758 ;;
2759 esac
2760 fi
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2762 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2763
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2765 printf %s "checking filesystem timestamp resolution... " >&6; }
2766 if test ${am_cv_filesystem_timestamp_resolution+y}
2767 then :
2768 printf %s "(cached) " >&6
2769 else case e in #(
2770 e) # Default to the worst case.
2771 am_cv_filesystem_timestamp_resolution=2
2772
2773 # Only try to go finer than 1 sec if sleep can do it.
2774 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2775 # - 1 sec is not much of a win compared to 2 sec, and
2776 # - it takes 2 seconds to perform the test whether 1 sec works.
2777 #
2778 # Instead, just use the default 2s on platforms that have 1s resolution,
2779 # accept the extra 1s delay when using $sleep in the Automake tests, in
2780 # exchange for not incurring the 2s delay for running the test for all
2781 # packages.
2782 #
2783 am_try_resolutions=
2784 if test "$am_cv_sleep_fractional_seconds" = yes; then
2785 # Even a millisecond often causes a bunch of false positives,
2786 # so just try a hundredth of a second. The time saved between .001 and
2787 # .01 is not terribly consequential.
2788 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2789 fi
2790
2791 # In order to catch current-generation FAT out, we must *modify* files
2792 # that already exist; the *creation* timestamp is finer. Use names
2793 # that make ls -t sort them differently when they have equal
2794 # timestamps than when they have distinct timestamps, keeping
2795 # in mind that ls -t prints the *newest* file first.
2796 rm -f conftest.ts?
2797 : > conftest.ts1
2798 : > conftest.ts2
2799 : > conftest.ts3
2800
2801 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2802 # clobber the current shell's arguments. (Outer-level square brackets
2803 # are removed by m4; they're present so that m4 does not expand
2804 # <dollar><star>; be careful, easy to get confused.)
2805 if (
2806 set X `ls -t conftest.ts[12]` &&
2807 {
2808 test "$*" != "X conftest.ts1 conftest.ts2" ||
2809 test "$*" != "X conftest.ts2 conftest.ts1";
2810 }
2811 ); then :; else
2812 # If neither matched, then we have a broken ls. This can happen
2813 # if, for instance, CONFIG_SHELL is bash and it inherits a
2814 # broken ls alias from the environment. This has actually
2815 # happened. Such a system could not be considered "sane".
2816 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2819 as_fn_error $? "ls -t produces unexpected output.
2820 Make sure there is not a broken ls alias in your environment.
2821 See 'config.log' for more details" "$LINENO" 5; }
2822 fi
2823
2824 for am_try_res in $am_try_resolutions; do
2825 # Any one fine-grained sleep might happen to cross the boundary
2826 # between two values of a coarser actual resolution, but if we do
2827 # two fine-grained sleeps in a row, at least one of them will fall
2828 # entirely within a coarse interval.
2829 echo alpha > conftest.ts1
2830 sleep $am_try_res
2831 echo beta > conftest.ts2
2832 sleep $am_try_res
2833 echo gamma > conftest.ts3
2834
2835 # We assume that 'ls -t' will make use of high-resolution
2836 # timestamps if the operating system supports them at all.
2837 if (set X `ls -t conftest.ts?` &&
2838 test "$2" = conftest.ts3 &&
2839 test "$3" = conftest.ts2 &&
2840 test "$4" = conftest.ts1); then
2841 #
2842 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2843 # because we don't need to test make.
2844 make_ok=true
2845 if test $am_try_res != 1; then
2846 # But if we've succeeded so far with a subsecond resolution, we
2847 # have one more thing to check: make. It can happen that
2848 # everything else supports the subsecond mtimes, but make doesn't;
2849 # notably on macOS, which ships make 3.81 from 2006 (the last one
2850 # released under GPLv2). https://bugs.gnu.org/68808
2851 #
2852 # We test $MAKE if it is defined in the environment, else "make".
2853 # It might get overridden later, but our hope is that in practice
2854 # it does not matter: it is the system "make" which is (by far)
2855 # the most likely to be broken, whereas if the user overrides it,
2856 # probably they did so with a better, or at least not worse, make.
2857 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2858 #
2859 # Create a Makefile (real tab character here):
2860 rm -f conftest.mk
2861 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2862 echo ' touch conftest.ts2' >>conftest.mk
2863 #
2864 # Now, running
2865 # touch conftest.ts1; touch conftest.ts2; make
2866 # should touch ts1 because ts2 is newer. This could happen by luck,
2867 # but most often, it will fail if make's support is insufficient. So
2868 # test for several consecutive successes.
2869 #
2870 # (We reuse conftest.ts[12] because we still want to modify existing
2871 # files, not create new ones, per above.)
2872 n=0
2873 make=${MAKE-make}
2874 until test $n -eq 3; do
2875 echo one > conftest.ts1
2876 sleep $am_try_res
2877 echo two > conftest.ts2 # ts2 should now be newer than ts1
2878 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2879 make_ok=false
2880 break # out of $n loop
2881 fi
2882 n=`expr $n + 1`
2883 done
2884 fi
2885 #
2886 if $make_ok; then
2887 # Everything we know to check worked out, so call this resolution good.
2888 am_cv_filesystem_timestamp_resolution=$am_try_res
2889 break # out of $am_try_res loop
2890 fi
2891 # Otherwise, we'll go on to check the next resolution.
2892 fi
2893 done
2894 rm -f conftest.ts?
2895 # (end _am_filesystem_timestamp_resolution)
2896 ;;
2897 esac
2898 fi
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2900 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2901
2902 # This check should not be cached, as it may vary across builds of
2903 # different projects.
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2905 printf %s "checking whether build environment is sane... " >&6; }
2906 # Reject unsafe characters in $srcdir or the absolute working directory
2907 # name. Accept space and tab only in the latter.
2908 am_lf='
2909 '
2910 case `pwd` in
2911 *[\\\"\#\$\&\'\`$am_lf]*)
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2915 esac
2916 case $srcdir in
2917 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 printf "%s\n" "no" >&6; }
2920 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2921 esac
2922
2923 # Do 'set' in a subshell so we don't clobber the current shell's
2924 # arguments. Must try -L first in case configure is actually a
2925 # symlink; some systems play weird games with the mod time of symlinks
2926 # (eg FreeBSD returns the mod time of the symlink's containing
2927 # directory).
2928 am_build_env_is_sane=no
2929 am_has_slept=no
2930 rm -f conftest.file
2931 for am_try in 1 2; do
2932 echo "timestamp, slept: $am_has_slept" > conftest.file
2933 if (
2934 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2935 if test "$*" = "X"; then
2936 # -L didn't work.
2937 set X `ls -t "$srcdir/configure" conftest.file`
2938 fi
2939 test "$2" = conftest.file
2940 ); then
2941 am_build_env_is_sane=yes
2942 break
2943 fi
2944 # Just in case.
2945 sleep "$am_cv_filesystem_timestamp_resolution"
2946 am_has_slept=yes
2947 done
2948
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2950 printf "%s\n" "$am_build_env_is_sane" >&6; }
2951 if test "$am_build_env_is_sane" = no; then
2952 as_fn_error $? "newly created file is older than distributed files!
2953 Check your system clock" "$LINENO" 5
2954 fi
2955
2956 # If we didn't sleep, we still need to ensure time stamps of config.status and
2957 # generated files are strictly newer.
2958 am_sleep_pid=
2959 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2960 then :
2961
2962 else case e in #(
2963 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2964 am_sleep_pid=$!
2965 ;;
2966 esac
2967 fi
2968
2969 rm -f conftest.file
2970
2971 test "$program_prefix" != NONE &&
2972 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2973 # Use a double $ so make ignores it.
2974 test "$program_suffix" != NONE &&
2975 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2976 # Double any \ or $.
2977 # By default was 's,x,x', remove it if useless.
2978 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2979 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2980
2981
2982 # Expand $ac_aux_dir to an absolute path.
2983 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2984
2985
2986 if test x"${MISSING+set}" != xset; then
2987 MISSING="\${SHELL} '$am_aux_dir/missing'"
2988 fi
2989 # Use eval to expand $SHELL
2990 if eval "$MISSING --is-lightweight"; then
2991 am_missing_run="$MISSING "
2992 else
2993 am_missing_run=
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2995 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2996 fi
2997
2998 if test x"${install_sh+set}" != xset; then
2999 case $am_aux_dir in
3000 *\ * | *\ *)
3001 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3002 *)
3003 install_sh="\${SHELL} $am_aux_dir/install-sh"
3004 esac
3005 fi
3006
3007 # Installed binaries are usually stripped using 'strip' when the user
3008 # run "make install-strip". However 'strip' might not be the right
3009 # tool to use in cross-compilation environments, therefore Automake
3010 # will honor the 'STRIP' environment variable to overrule this program.
3011 if test "$cross_compiling" != no; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}strip; ac_word=$2
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 printf %s "checking for $ac_word... " >&6; }
3017 if test ${ac_cv_prog_STRIP+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else case e in #(
3021 e) if test -n "$STRIP"; then
3022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 case $as_dir in #(((
3029 '') as_dir=./ ;;
3030 */) ;;
3031 *) as_dir=$as_dir/ ;;
3032 esac
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi ;;
3044 esac
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 printf "%s\n" "$STRIP" >&6; }
3050 else
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 printf "%s\n" "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 printf %s "checking for $ac_word... " >&6; }
3063 if test ${ac_cv_prog_ac_ct_STRIP+y}
3064 then :
3065 printf %s "(cached) " >&6
3066 else case e in #(
3067 e) if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 case $as_dir in #(((
3075 '') as_dir=./ ;;
3076 */) ;;
3077 *) as_dir=$as_dir/ ;;
3078 esac
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_ac_ct_STRIP="strip"
3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi ;;
3090 esac
3091 fi
3092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093 if test -n "$ac_ct_STRIP"; then
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095 printf "%s\n" "$ac_ct_STRIP" >&6; }
3096 else
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 printf "%s\n" "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_STRIP" = x; then
3102 STRIP=":"
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 STRIP=$ac_ct_STRIP
3111 fi
3112 else
3113 STRIP="$ac_cv_prog_STRIP"
3114 fi
3115
3116 fi
3117 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3118
3119
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3121 printf %s "checking for a race-free mkdir -p... " >&6; }
3122 if test -z "$MKDIR_P"; then
3123 if test ${ac_cv_path_mkdir+y}
3124 then :
3125 printf %s "(cached) " >&6
3126 else case e in #(
3127 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3129 do
3130 IFS=$as_save_IFS
3131 case $as_dir in #(((
3132 '') as_dir=./ ;;
3133 */) ;;
3134 *) as_dir=$as_dir/ ;;
3135 esac
3136 for ac_prog in mkdir gmkdir; do
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3139 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3140 'mkdir ('*'coreutils) '* | \
3141 *'BusyBox '* | \
3142 'mkdir (fileutils) '4.1*)
3143 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3144 break 3;;
3145 esac
3146 done
3147 done
3148 done
3149 IFS=$as_save_IFS
3150 ;;
3151 esac
3152 fi
3153
3154 test -d ./--version && rmdir ./--version
3155 if test ${ac_cv_path_mkdir+y}; then
3156 MKDIR_P="$ac_cv_path_mkdir -p"
3157 else
3158 # As a last resort, use plain mkdir -p,
3159 # in the hope it doesn't have the bugs of ancient mkdir.
3160 MKDIR_P='mkdir -p'
3161 fi
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3164 printf "%s\n" "$MKDIR_P" >&6; }
3165
3166 for ac_prog in gawk mawk nawk awk
3167 do
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 printf %s "checking for $ac_word... " >&6; }
3172 if test ${ac_cv_prog_AWK+y}
3173 then :
3174 printf %s "(cached) " >&6
3175 else case e in #(
3176 e) if test -n "$AWK"; then
3177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 case $as_dir in #(((
3184 '') as_dir=./ ;;
3185 */) ;;
3186 *) as_dir=$as_dir/ ;;
3187 esac
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK="$ac_prog"
3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi ;;
3199 esac
3200 fi
3201 AWK=$ac_cv_prog_AWK
3202 if test -n "$AWK"; then
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3204 printf "%s\n" "$AWK" >&6; }
3205 else
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 printf "%s\n" "no" >&6; }
3208 fi
3209
3210
3211 test -n "$AWK" && break
3212 done
3213
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3215 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3216 set x ${MAKE-make}
3217 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3218 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3219 then :
3220 printf %s "(cached) " >&6
3221 else case e in #(
3222 e) cat >conftest.make <<\_ACEOF
3223 SHELL = /bin/sh
3224 all:
3225 @echo '@@@%%%=$(MAKE)=@@@%%%'
3226 _ACEOF
3227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3229 *@@@%%%=?*=@@@%%%*)
3230 eval ac_cv_prog_make_${ac_make}_set=yes;;
3231 *)
3232 eval ac_cv_prog_make_${ac_make}_set=no;;
3233 esac
3234 rm -f conftest.make ;;
3235 esac
3236 fi
3237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 printf "%s\n" "yes" >&6; }
3240 SET_MAKE=
3241 else
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 printf "%s\n" "no" >&6; }
3244 SET_MAKE="MAKE=${MAKE-make}"
3245 fi
3246
3247 rm -rf .tst 2>/dev/null
3248 mkdir .tst 2>/dev/null
3249 if test -d .tst; then
3250 am__leading_dot=.
3251 else
3252 am__leading_dot=_
3253 fi
3254 rmdir .tst 2>/dev/null
3255
3256 AM_DEFAULT_VERBOSITY=1
3257 # Check whether --enable-silent-rules was given.
3258 if test ${enable_silent_rules+y}
3259 then :
3260 enableval=$enable_silent_rules;
3261 fi
3262
3263 am_make=${MAKE-make}
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265 printf %s "checking whether $am_make supports nested variables... " >&6; }
3266 if test ${am_cv_make_support_nested_variables+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else case e in #(
3270 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3271 BAR0=false
3272 BAR1=true
3273 V=1
3274 am__doit:
3275 @$(TRUE)
3276 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3277 am_cv_make_support_nested_variables=yes
3278 else
3279 am_cv_make_support_nested_variables=no
3280 fi ;;
3281 esac
3282 fi
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3284 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3285 AM_BACKSLASH='\'
3286
3287 am__rm_f_notfound=
3288 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3289 then :
3290
3291 else case e in #(
3292 e) am__rm_f_notfound='""' ;;
3293 esac
3294 fi
3295
3296
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3298 printf %s "checking xargs -n works... " >&6; }
3299 if test ${am_cv_xargs_n_works+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else case e in #(
3303 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3304 3"
3305 then :
3306 am_cv_xargs_n_works=yes
3307 else case e in #(
3308 e) am_cv_xargs_n_works=no ;;
3309 esac
3310 fi ;;
3311 esac
3312 fi
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3314 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3315 if test "$am_cv_xargs_n_works" = yes
3316 then :
3317 am__xargs_n='xargs -n'
3318 else case e in #(
3319 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3320 ;;
3321 esac
3322 fi
3323
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326 # is not polluted with repeated "-I."
3327 am__isrc=' -I$(srcdir)'
3328 # test to see if srcdir already configured
3329 if test -f $srcdir/config.status; then
3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3331 fi
3332 fi
3333
3334 # test whether we have cygpath
3335 if test -z "$CYGPATH_W"; then
3336 if (cygpath --version) >/dev/null 2>/dev/null; then
3337 CYGPATH_W='cygpath -w'
3338 else
3339 CYGPATH_W=echo
3340 fi
3341 fi
3342
3343
3344 # Define the identity of the package.
3345 PACKAGE='libXxf86vm'
3346 VERSION='1.1.7'
3347
3348
3349 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3350
3351
3352 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3353
3354 # Some tools Automake needs.
3355
3356 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3357
3358
3359 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3360
3361
3362 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3363
3364
3365 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3366
3367
3368 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3369
3370 # For better backward compatibility. To be removed once Automake 1.9.x
3371 # dies out for good. For more background, see:
3372 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3373 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3374 mkdir_p='$(MKDIR_P)'
3375
3376 # We need awk for the "check" target (and possibly the TAP driver). The
3377 # system "awk" is bad on some platforms.
3378 # Always define AMTAR for backward compatibility. Yes, it's still used
3379 # in the wild :-( We should find a proper way to deprecate it ...
3380 AMTAR='$${TAR-tar}'
3381
3382
3383 # We'll loop over all known methods to create a tar archive until one works.
3384 _am_tools='gnutar plaintar pax cpio none'
3385
3386 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3387 # There is notably a 21 bits limit for the UID and the GID. In fact,
3388 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3389 # and bug#13588).
3390 am_max_uid=2097151 # 2^21 - 1
3391 am_max_gid=$am_max_uid
3392 # The $UID and $GID variables are not portable, so we need to resort
3393 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3394 # below are definitely unexpected, so allow the users to see them
3395 # (that is, avoid stderr redirection).
3396 am_uid=`id -u || echo unknown`
3397 am_gid=`id -g || echo unknown`
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3399 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3400 if test x$am_uid = xunknown; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3402 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3403 elif test $am_uid -le $am_max_uid; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3405 printf "%s\n" "yes" >&6; }
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3409 _am_tools=none
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3412 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3413 if test x$gm_gid = xunknown; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3415 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3416 elif test $am_gid -le $am_max_gid; then
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 printf "%s\n" "yes" >&6; }
3419 else
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 _am_tools=none
3423 fi
3424
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3426 printf %s "checking how to create a ustar tar archive... " >&6; }
3427
3428 # Go ahead even if we have the value already cached. We do so because we
3429 # need to set the values for the 'am__tar' and 'am__untar' variables.
3430 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3431
3432 for _am_tool in $_am_tools; do
3433 case $_am_tool in
3434 gnutar)
3435 for _am_tar in tar gnutar gtar; do
3436 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3437 ($_am_tar --version) >&5 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } && break
3441 done
3442 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3443 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3444 am__untar="$_am_tar -xf -"
3445 ;;
3446 plaintar)
3447 # Must skip GNU tar: if it does not support --format= it doesn't create
3448 # ustar tarball either.
3449 (tar --version) >/dev/null 2>&1 && continue
3450 am__tar='tar chf - "$$tardir"'
3451 am__tar_='tar chf - "$tardir"'
3452 am__untar='tar xf -'
3453 ;;
3454 pax)
3455 am__tar='pax -L -x ustar -w "$$tardir"'
3456 am__tar_='pax -L -x ustar -w "$tardir"'
3457 am__untar='pax -r'
3458 ;;
3459 cpio)
3460 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3461 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3462 am__untar='cpio -i -H ustar -d'
3463 ;;
3464 none)
3465 am__tar=false
3466 am__tar_=false
3467 am__untar=false
3468 ;;
3469 esac
3470
3471 # If the value was cached, stop now. We just wanted to have am__tar
3472 # and am__untar set.
3473 test -n "${am_cv_prog_tar_ustar}" && break
3474
3475 # tar/untar a dummy directory, and stop if the command works.
3476 rm -rf conftest.dir
3477 mkdir conftest.dir
3478 echo GrepMe > conftest.dir/file
3479 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3480 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }
3484 rm -rf conftest.dir
3485 if test -s conftest.tar; then
3486 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3487 ($am__untar <conftest.tar) >&5 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }
3491 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3492 (cat conftest.dir/file) >&5 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3497 fi
3498 done
3499 rm -rf conftest.dir
3500
3501 if test ${am_cv_prog_tar_ustar+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else case e in #(
3505 e) am_cv_prog_tar_ustar=$_am_tool ;;
3506 esac
3507 fi
3508
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3510 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3511
3512
3513
3514
3515
3516 # Variables for tags utilities; see am/tags.am
3517 if test -z "$CTAGS"; then
3518 CTAGS=ctags
3519 fi
3520
3521 if test -z "$ETAGS"; then
3522 ETAGS=etags
3523 fi
3524
3525 if test -z "$CSCOPE"; then
3526 CSCOPE=cscope
3527 fi
3528
3529
3530
3531
3532
3533
3534
3535
3536 # Initialize libtool
3537 case `pwd` in
3538 *\ * | *\ *)
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3540 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3541 esac
3542
3543
3544
3545 macro_version='2.5.4'
3546 macro_revision='2.5.4'
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561 ltmain=$ac_aux_dir/ltmain.sh
3562
3563
3564
3565 # Make sure we can run config.sub.
3566 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3567 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3568
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3570 printf %s "checking build system type... " >&6; }
3571 if test ${ac_cv_build+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else case e in #(
3575 e) ac_build_alias=$build_alias
3576 test "x$ac_build_alias" = x &&
3577 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3578 test "x$ac_build_alias" = x &&
3579 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3580 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3581 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3582 ;;
3583 esac
3584 fi
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3586 printf "%s\n" "$ac_cv_build" >&6; }
3587 case $ac_cv_build in
3588 *-*-*) ;;
3589 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3590 esac
3591 build=$ac_cv_build
3592 ac_save_IFS=$IFS; IFS='-'
3593 set x $ac_cv_build
3594 shift
3595 build_cpu=$1
3596 build_vendor=$2
3597 shift; shift
3598 # Remember, the first character of IFS is used to create $*,
3599 # except with old shells:
3600 build_os=$*
3601 IFS=$ac_save_IFS
3602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3606 printf %s "checking host system type... " >&6; }
3607 if test ${ac_cv_host+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else case e in #(
3611 e) if test "x$host_alias" = x; then
3612 ac_cv_host=$ac_cv_build
3613 else
3614 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3615 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3616 fi
3617 ;;
3618 esac
3619 fi
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3621 printf "%s\n" "$ac_cv_host" >&6; }
3622 case $ac_cv_host in
3623 *-*-*) ;;
3624 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3625 esac
3626 host=$ac_cv_host
3627 ac_save_IFS=$IFS; IFS='-'
3628 set x $ac_cv_host
3629 shift
3630 host_cpu=$1
3631 host_vendor=$2
3632 shift; shift
3633 # Remember, the first character of IFS is used to create $*,
3634 # except with old shells:
3635 host_os=$*
3636 IFS=$ac_save_IFS
3637 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3638
3639
3640 # Backslashify metacharacters that are still active within
3641 # double-quoted strings.
3642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3643
3644 # Same as above, but do not quote variable references.
3645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3646
3647 # Sed substitution to delay expansion of an escaped shell variable in a
3648 # double_quote_subst'ed string.
3649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3650
3651 # Sed substitution to delay expansion of an escaped single quote.
3652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3653
3654 # Sed substitution to avoid accidental globbing in evaled expressions
3655 no_glob_subst='s/\*/\\\*/g'
3656
3657 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3658 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3659 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3660
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3662 printf %s "checking how to print strings... " >&6; }
3663 # Test print first, because it will be a builtin if present.
3664 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3665 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3666 ECHO='print -r --'
3667 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3668 ECHO='printf %s\n'
3669 else
3670 # Use this function as a fallback that always works.
3671 func_fallback_echo ()
3672 {
3673 eval 'cat <<_LTECHO_EOF
3674 $1
3675 _LTECHO_EOF'
3676 }
3677 ECHO='func_fallback_echo'
3678 fi
3679
3680 # func_echo_all arg...
3681 # Invoke $ECHO with all args, space-separated.
3682 func_echo_all ()
3683 {
3684 $ECHO ""
3685 }
3686
3687 case $ECHO in
3688 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3689 printf "%s\n" "printf" >&6; } ;;
3690 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3691 printf "%s\n" "print -r" >&6; } ;;
3692 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3693 printf "%s\n" "cat" >&6; } ;;
3694 esac
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718 DEPDIR="${am__leading_dot}deps"
3719
3720 ac_config_commands="$ac_config_commands depfiles"
3721
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3723 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3724 cat > confinc.mk << 'END'
3725 am__doit:
3726 @echo this is the am__doit target >confinc.out
3727 .PHONY: am__doit
3728 END
3729 am__include="#"
3730 am__quote=
3731 # BSD make does it like this.
3732 echo '.include "confinc.mk" # ignored' > confmf.BSD
3733 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3734 echo 'include confinc.mk # ignored' > confmf.GNU
3735 _am_result=no
3736 for s in GNU BSD; do
3737 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3738 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }
3742 case $?:`cat confinc.out 2>/dev/null` in #(
3743 '0:this is the am__doit target') :
3744 case $s in #(
3745 BSD) :
3746 am__include='.include' am__quote='"' ;; #(
3747 *) :
3748 am__include='include' am__quote='' ;;
3749 esac ;; #(
3750 *) :
3751 ;;
3752 esac
3753 if test "$am__include" != "#"; then
3754 _am_result="yes ($s style)"
3755 break
3756 fi
3757 done
3758 rm -f confinc.* confmf.*
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3760 printf "%s\n" "${_am_result}" >&6; }
3761
3762 # Check whether --enable-dependency-tracking was given.
3763 if test ${enable_dependency_tracking+y}
3764 then :
3765 enableval=$enable_dependency_tracking;
3766 fi
3767
3768 if test "x$enable_dependency_tracking" != xno; then
3769 am_depcomp="$ac_aux_dir/depcomp"
3770 AMDEPBACKSLASH='\'
3771 am__nodep='_no'
3772 fi
3773 if test "x$enable_dependency_tracking" != xno; then
3774 AMDEP_TRUE=
3775 AMDEP_FALSE='#'
3776 else
3777 AMDEP_TRUE='#'
3778 AMDEP_FALSE=
3779 fi
3780
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 printf %s "checking for $ac_word... " >&6; }
3792 if test ${ac_cv_prog_CC+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else case e in #(
3796 e) if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 case $as_dir in #(((
3804 '') as_dir=./ ;;
3805 */) ;;
3806 *) as_dir=$as_dir/ ;;
3807 esac
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi ;;
3819 esac
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 printf "%s\n" "$CC" >&6; }
3825 else
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 printf "%s\n" "no" >&6; }
3828 fi
3829
3830
3831 fi
3832 if test -z "$ac_cv_prog_CC"; then
3833 ac_ct_CC=$CC
3834 # Extract the first word of "gcc", so it can be a program name with args.
3835 set dummy gcc; ac_word=$2
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 printf %s "checking for $ac_word... " >&6; }
3838 if test ${ac_cv_prog_ac_ct_CC+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else case e in #(
3842 e) if test -n "$ac_ct_CC"; then
3843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848 IFS=$as_save_IFS
3849 case $as_dir in #(((
3850 '') as_dir=./ ;;
3851 */) ;;
3852 *) as_dir=$as_dir/ ;;
3853 esac
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_CC="gcc"
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 fi ;;
3865 esac
3866 fi
3867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3868 if test -n "$ac_ct_CC"; then
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3870 printf "%s\n" "$ac_ct_CC" >&6; }
3871 else
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 printf "%s\n" "no" >&6; }
3874 fi
3875
3876 if test "x$ac_ct_CC" = x; then
3877 CC=""
3878 else
3879 case $cross_compiling:$ac_tool_warned in
3880 yes:)
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3883 ac_tool_warned=yes ;;
3884 esac
3885 CC=$ac_ct_CC
3886 fi
3887 else
3888 CC="$ac_cv_prog_CC"
3889 fi
3890
3891 if test -z "$CC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3894 set dummy ${ac_tool_prefix}cc; ac_word=$2
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 printf %s "checking for $ac_word... " >&6; }
3897 if test ${ac_cv_prog_CC+y}
3898 then :
3899 printf %s "(cached) " >&6
3900 else case e in #(
3901 e) if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 case $as_dir in #(((
3909 '') as_dir=./ ;;
3910 */) ;;
3911 *) as_dir=$as_dir/ ;;
3912 esac
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CC="${ac_tool_prefix}cc"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi ;;
3924 esac
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 printf "%s\n" "$CC" >&6; }
3930 else
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 printf "%s\n" "no" >&6; }
3933 fi
3934
3935
3936 fi
3937 fi
3938 if test -z "$CC"; then
3939 # Extract the first word of "cc", so it can be a program name with args.
3940 set dummy cc; ac_word=$2
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 printf %s "checking for $ac_word... " >&6; }
3943 if test ${ac_cv_prog_CC+y}
3944 then :
3945 printf %s "(cached) " >&6
3946 else case e in #(
3947 e) if test -n "$CC"; then
3948 ac_cv_prog_CC="$CC" # Let the user override the test.
3949 else
3950 ac_prog_rejected=no
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 case $as_dir in #(((
3956 '') as_dir=./ ;;
3957 */) ;;
3958 *) as_dir=$as_dir/ ;;
3959 esac
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3962 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3963 ac_prog_rejected=yes
3964 continue
3965 fi
3966 ac_cv_prog_CC="cc"
3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3973
3974 if test $ac_prog_rejected = yes; then
3975 # We found a bogon in the path, so make sure we never use it.
3976 set dummy $ac_cv_prog_CC
3977 shift
3978 if test $# != 0; then
3979 # We chose a different compiler from the bogus one.
3980 # However, it has the same basename, so the bogon will be chosen
3981 # first if we set CC to just the basename; use the full file name.
3982 shift
3983 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3984 fi
3985 fi
3986 fi ;;
3987 esac
3988 fi
3989 CC=$ac_cv_prog_CC
3990 if test -n "$CC"; then
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 printf "%s\n" "$CC" >&6; }
3993 else
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 printf "%s\n" "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$CC"; then
4001 if test -n "$ac_tool_prefix"; then
4002 for ac_prog in cl.exe
4003 do
4004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 printf %s "checking for $ac_word... " >&6; }
4008 if test ${ac_cv_prog_CC+y}
4009 then :
4010 printf %s "(cached) " >&6
4011 else case e in #(
4012 e) if test -n "$CC"; then
4013 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 case $as_dir in #(((
4020 '') as_dir=./ ;;
4021 */) ;;
4022 *) as_dir=$as_dir/ ;;
4023 esac
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi ;;
4035 esac
4036 fi
4037 CC=$ac_cv_prog_CC
4038 if test -n "$CC"; then
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4040 printf "%s\n" "$CC" >&6; }
4041 else
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 printf "%s\n" "no" >&6; }
4044 fi
4045
4046
4047 test -n "$CC" && break
4048 done
4049 fi
4050 if test -z "$CC"; then
4051 ac_ct_CC=$CC
4052 for ac_prog in cl.exe
4053 do
4054 # Extract the first word of "$ac_prog", so it can be a program name with args.
4055 set dummy $ac_prog; ac_word=$2
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4057 printf %s "checking for $ac_word... " >&6; }
4058 if test ${ac_cv_prog_ac_ct_CC+y}
4059 then :
4060 printf %s "(cached) " >&6
4061 else case e in #(
4062 e) if test -n "$ac_ct_CC"; then
4063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 case $as_dir in #(((
4070 '') as_dir=./ ;;
4071 */) ;;
4072 *) as_dir=$as_dir/ ;;
4073 esac
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_ac_ct_CC="$ac_prog"
4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4078 break 2
4079 fi
4080 done
4081 done
4082 IFS=$as_save_IFS
4083
4084 fi ;;
4085 esac
4086 fi
4087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4088 if test -n "$ac_ct_CC"; then
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4090 printf "%s\n" "$ac_ct_CC" >&6; }
4091 else
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 fi
4095
4096
4097 test -n "$ac_ct_CC" && break
4098 done
4099
4100 if test "x$ac_ct_CC" = x; then
4101 CC=""
4102 else
4103 case $cross_compiling:$ac_tool_warned in
4104 yes:)
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4107 ac_tool_warned=yes ;;
4108 esac
4109 CC=$ac_ct_CC
4110 fi
4111 fi
4112
4113 fi
4114 if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}clang; ac_word=$2
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 printf %s "checking for $ac_word... " >&6; }
4120 if test ${ac_cv_prog_CC+y}
4121 then :
4122 printf %s "(cached) " >&6
4123 else case e in #(
4124 e) if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 case $as_dir in #(((
4132 '') as_dir=./ ;;
4133 */) ;;
4134 *) as_dir=$as_dir/ ;;
4135 esac
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_CC="${ac_tool_prefix}clang"
4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142 done
4143 done
4144 IFS=$as_save_IFS
4145
4146 fi ;;
4147 esac
4148 fi
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152 printf "%s\n" "$CC" >&6; }
4153 else
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 printf "%s\n" "no" >&6; }
4156 fi
4157
4158
4159 fi
4160 if test -z "$ac_cv_prog_CC"; then
4161 ac_ct_CC=$CC
4162 # Extract the first word of "clang", so it can be a program name with args.
4163 set dummy clang; ac_word=$2
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 printf %s "checking for $ac_word... " >&6; }
4166 if test ${ac_cv_prog_ac_ct_CC+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else case e in #(
4170 e) if test -n "$ac_ct_CC"; then
4171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 case $as_dir in #(((
4178 '') as_dir=./ ;;
4179 */) ;;
4180 *) as_dir=$as_dir/ ;;
4181 esac
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_CC="clang"
4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi ;;
4193 esac
4194 fi
4195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196 if test -n "$ac_ct_CC"; then
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198 printf "%s\n" "$ac_ct_CC" >&6; }
4199 else
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 printf "%s\n" "no" >&6; }
4202 fi
4203
4204 if test "x$ac_ct_CC" = x; then
4205 CC=""
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213 CC=$ac_ct_CC
4214 fi
4215 else
4216 CC="$ac_cv_prog_CC"
4217 fi
4218
4219 fi
4220
4221
4222 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4223 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4224 as_fn_error $? "no acceptable C compiler found in \$PATH
4225 See 'config.log' for more details" "$LINENO" 5; }
4226
4227 # Provide some information about the compiler.
4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4229 set X $ac_compile
4230 ac_compiler=$2
4231 for ac_option in --version -v -V -qversion -version; do
4232 { { ac_try="$ac_compiler $ac_option >&5"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 printf "%s\n" "$ac_try_echo"; } >&5
4239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4240 ac_status=$?
4241 if test -s conftest.err; then
4242 sed '10a\
4243 ... rest of stderr output deleted ...
4244 10q' conftest.err >conftest.er1
4245 cat conftest.er1 >&5
4246 fi
4247 rm -f conftest.er1 conftest.err
4248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; }
4250 done
4251
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254
4255 int
4256 main (void)
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 ac_clean_files_save=$ac_clean_files
4264 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4265 # Try to create an executable without -o first, disregard a.out.
4266 # It will help us diagnose broken compilers, and finding out an intuition
4267 # of exeext.
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4269 printf %s "checking whether the C compiler works... " >&6; }
4270 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4271
4272 # The possible output files:
4273 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4274
4275 ac_rmfiles=
4276 for ac_file in $ac_files
4277 do
4278 case $ac_file in
4279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4280 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4281 esac
4282 done
4283 rm -f $ac_rmfiles
4284
4285 if { { ac_try="$ac_link_default"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 printf "%s\n" "$ac_try_echo"; } >&5
4292 (eval "$ac_link_default") 2>&5
4293 ac_status=$?
4294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296 then :
4297 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4298 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4300 # so that the user can short-circuit this test for compilers unknown to
4301 # Autoconf.
4302 for ac_file in $ac_files ''
4303 do
4304 test -f "$ac_file" || continue
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4307 ;;
4308 [ab].out )
4309 # We found the default executable, but exeext='' is most
4310 # certainly right.
4311 break;;
4312 *.* )
4313 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4314 then :; else
4315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4316 fi
4317 # We set ac_cv_exeext here because the later test for it is not
4318 # safe: cross compilers may not add the suffix if given an '-o'
4319 # argument, so we may need to know it at that point already.
4320 # Even if this section looks crufty: it has the advantage of
4321 # actually working.
4322 break;;
4323 * )
4324 break;;
4325 esac
4326 done
4327 test "$ac_cv_exeext" = no && ac_cv_exeext=
4328
4329 else case e in #(
4330 e) ac_file='' ;;
4331 esac
4332 fi
4333 if test -z "$ac_file"
4334 then :
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 printf "%s\n" "no" >&6; }
4337 printf "%s\n" "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4341 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4342 as_fn_error 77 "C compiler cannot create executables
4343 See 'config.log' for more details" "$LINENO" 5; }
4344 else case e in #(
4345 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4346 printf "%s\n" "yes" >&6; } ;;
4347 esac
4348 fi
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4350 printf %s "checking for C compiler default output file name... " >&6; }
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4352 printf "%s\n" "$ac_file" >&6; }
4353 ac_exeext=$ac_cv_exeext
4354
4355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4356 ac_clean_files=$ac_clean_files_save
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 printf %s "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 printf "%s\n" "$ac_try_echo"; } >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }
4370 then :
4371 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4372 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4373 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4374 # 'rm'.
4375 for ac_file in conftest.exe conftest conftest.*; do
4376 test -f "$ac_file" || continue
4377 case $ac_file in
4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4380 break;;
4381 * ) break;;
4382 esac
4383 done
4384 else case e in #(
4385 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4386 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4387 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4388 See 'config.log' for more details" "$LINENO" 5; } ;;
4389 esac
4390 fi
4391 rm -f conftest conftest$ac_cv_exeext
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4393 printf "%s\n" "$ac_cv_exeext" >&6; }
4394
4395 rm -f conftest.$ac_ext
4396 EXEEXT=$ac_cv_exeext
4397 ac_exeext=$EXEEXT
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 #include <stdio.h>
4401 int
4402 main (void)
4403 {
4404 FILE *f = fopen ("conftest.out", "w");
4405 if (!f)
4406 return 1;
4407 return ferror (f) || fclose (f) != 0;
4408
4409 ;
4410 return 0;
4411 }
4412 _ACEOF
4413 ac_clean_files="$ac_clean_files conftest.out"
4414 # Check that the compiler produces executables we can run. If not, either
4415 # the compiler is broken, or we cross compile.
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417 printf %s "checking whether we are cross compiling... " >&6; }
4418 if test "$cross_compiling" != yes; then
4419 { { ac_try="$ac_link"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 printf "%s\n" "$ac_try_echo"; } >&5
4426 (eval "$ac_link") 2>&5
4427 ac_status=$?
4428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 if { ac_try='./conftest$ac_cv_exeext'
4431 { { case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 printf "%s\n" "$ac_try_echo"; } >&5
4437 (eval "$ac_try") 2>&5
4438 ac_status=$?
4439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; }; then
4441 cross_compiling=no
4442 else
4443 if test "$cross_compiling" = maybe; then
4444 cross_compiling=yes
4445 else
4446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4447 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4448 as_fn_error 77 "cannot run C compiled programs.
4449 If you meant to cross compile, use '--host'.
4450 See 'config.log' for more details" "$LINENO" 5; }
4451 fi
4452 fi
4453 fi
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4455 printf "%s\n" "$cross_compiling" >&6; }
4456
4457 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4458 conftest.o conftest.obj conftest.out
4459 ac_clean_files=$ac_clean_files_save
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4461 printf %s "checking for suffix of object files... " >&6; }
4462 if test ${ac_cv_objext+y}
4463 then :
4464 printf %s "(cached) " >&6
4465 else case e in #(
4466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main (void)
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.o conftest.obj
4478 if { { ac_try="$ac_compile"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 printf "%s\n" "$ac_try_echo"; } >&5
4485 (eval "$ac_compile") 2>&5
4486 ac_status=$?
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489 then :
4490 for ac_file in conftest.o conftest.obj conftest.*; do
4491 test -f "$ac_file" || continue;
4492 case $ac_file in
4493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4494 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4495 break;;
4496 esac
4497 done
4498 else case e in #(
4499 e) printf "%s\n" "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4503 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4504 as_fn_error $? "cannot compute suffix of object files: cannot compile
4505 See 'config.log' for more details" "$LINENO" 5; } ;;
4506 esac
4507 fi
4508 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4509 esac
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4512 printf "%s\n" "$ac_cv_objext" >&6; }
4513 OBJEXT=$ac_cv_objext
4514 ac_objext=$OBJEXT
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4516 printf %s "checking whether the compiler supports GNU C... " >&6; }
4517 if test ${ac_cv_c_compiler_gnu+y}
4518 then :
4519 printf %s "(cached) " >&6
4520 else case e in #(
4521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523
4524 int
4525 main (void)
4526 {
4527 #ifndef __GNUC__
4528 choke me
4529 #endif
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"
4536 then :
4537 ac_compiler_gnu=yes
4538 else case e in #(
4539 e) ac_compiler_gnu=no ;;
4540 esac
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4544 ;;
4545 esac
4546 fi
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551 if test $ac_compiler_gnu = yes; then
4552 GCC=yes
4553 else
4554 GCC=
4555 fi
4556 ac_test_CFLAGS=${CFLAGS+y}
4557 ac_save_CFLAGS=$CFLAGS
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4559 printf %s "checking whether $CC accepts -g... " >&6; }
4560 if test ${ac_cv_prog_cc_g+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else case e in #(
4564 e) ac_save_c_werror_flag=$ac_c_werror_flag
4565 ac_c_werror_flag=yes
4566 ac_cv_prog_cc_g=no
4567 CFLAGS="-g"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570
4571 int
4572 main (void)
4573 {
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_compile "$LINENO"
4580 then :
4581 ac_cv_prog_cc_g=yes
4582 else case e in #(
4583 e) CFLAGS=""
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586
4587 int
4588 main (void)
4589 {
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"
4596 then :
4597
4598 else case e in #(
4599 e) ac_c_werror_flag=$ac_save_c_werror_flag
4600 CFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 int
4605 main (void)
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"
4613 then :
4614 ac_cv_prog_cc_g=yes
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4617 esac
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4620 esac
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4623 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4624 esac
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4627 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4628 if test $ac_test_CFLAGS; then
4629 CFLAGS=$ac_save_CFLAGS
4630 elif test $ac_cv_prog_cc_g = yes; then
4631 if test "$GCC" = yes; then
4632 CFLAGS="-g -O2"
4633 else
4634 CFLAGS="-g"
4635 fi
4636 else
4637 if test "$GCC" = yes; then
4638 CFLAGS="-O2"
4639 else
4640 CFLAGS=
4641 fi
4642 fi
4643 ac_prog_cc_stdc=no
4644 if test x$ac_prog_cc_stdc = xno
4645 then :
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4647 printf %s "checking for $CC option to enable C11 features... " >&6; }
4648 if test ${ac_cv_prog_cc_c11+y}
4649 then :
4650 printf %s "(cached) " >&6
4651 else case e in #(
4652 e) ac_cv_prog_cc_c11=no
4653 ac_save_CC=$CC
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 $ac_c_conftest_c11_program
4657 _ACEOF
4658 for ac_arg in '' -std=gnu11
4659 do
4660 CC="$ac_save_CC $ac_arg"
4661 if ac_fn_c_try_compile "$LINENO"
4662 then :
4663 ac_cv_prog_cc_c11=$ac_arg
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam
4666 test "x$ac_cv_prog_cc_c11" != "xno" && break
4667 done
4668 rm -f conftest.$ac_ext
4669 CC=$ac_save_CC ;;
4670 esac
4671 fi
4672
4673 if test "x$ac_cv_prog_cc_c11" = xno
4674 then :
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4676 printf "%s\n" "unsupported" >&6; }
4677 else case e in #(
4678 e) if test "x$ac_cv_prog_cc_c11" = x
4679 then :
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4681 printf "%s\n" "none needed" >&6; }
4682 else case e in #(
4683 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4684 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4685 CC="$CC $ac_cv_prog_cc_c11" ;;
4686 esac
4687 fi
4688 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4689 ac_prog_cc_stdc=c11 ;;
4690 esac
4691 fi
4692 fi
4693 if test x$ac_prog_cc_stdc = xno
4694 then :
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4696 printf %s "checking for $CC option to enable C99 features... " >&6; }
4697 if test ${ac_cv_prog_cc_c99+y}
4698 then :
4699 printf %s "(cached) " >&6
4700 else case e in #(
4701 e) ac_cv_prog_cc_c99=no
4702 ac_save_CC=$CC
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 $ac_c_conftest_c99_program
4706 _ACEOF
4707 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4708 do
4709 CC="$ac_save_CC $ac_arg"
4710 if ac_fn_c_try_compile "$LINENO"
4711 then :
4712 ac_cv_prog_cc_c99=$ac_arg
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam
4715 test "x$ac_cv_prog_cc_c99" != "xno" && break
4716 done
4717 rm -f conftest.$ac_ext
4718 CC=$ac_save_CC ;;
4719 esac
4720 fi
4721
4722 if test "x$ac_cv_prog_cc_c99" = xno
4723 then :
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4725 printf "%s\n" "unsupported" >&6; }
4726 else case e in #(
4727 e) if test "x$ac_cv_prog_cc_c99" = x
4728 then :
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730 printf "%s\n" "none needed" >&6; }
4731 else case e in #(
4732 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4733 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4734 CC="$CC $ac_cv_prog_cc_c99" ;;
4735 esac
4736 fi
4737 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4738 ac_prog_cc_stdc=c99 ;;
4739 esac
4740 fi
4741 fi
4742 if test x$ac_prog_cc_stdc = xno
4743 then :
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4745 printf %s "checking for $CC option to enable C89 features... " >&6; }
4746 if test ${ac_cv_prog_cc_c89+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else case e in #(
4750 e) ac_cv_prog_cc_c89=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 $ac_c_conftest_c89_program
4755 _ACEOF
4756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4757 do
4758 CC="$ac_save_CC $ac_arg"
4759 if ac_fn_c_try_compile "$LINENO"
4760 then :
4761 ac_cv_prog_cc_c89=$ac_arg
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.beam
4764 test "x$ac_cv_prog_cc_c89" != "xno" && break
4765 done
4766 rm -f conftest.$ac_ext
4767 CC=$ac_save_CC ;;
4768 esac
4769 fi
4770
4771 if test "x$ac_cv_prog_cc_c89" = xno
4772 then :
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 printf "%s\n" "unsupported" >&6; }
4775 else case e in #(
4776 e) if test "x$ac_cv_prog_cc_c89" = x
4777 then :
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 printf "%s\n" "none needed" >&6; }
4780 else case e in #(
4781 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4782 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4783 CC="$CC $ac_cv_prog_cc_c89" ;;
4784 esac
4785 fi
4786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4787 ac_prog_cc_stdc=c89 ;;
4788 esac
4789 fi
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799 ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4805 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4806 if test ${am_cv_prog_cc_c_o+y}
4807 then :
4808 printf %s "(cached) " >&6
4809 else case e in #(
4810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812
4813 int
4814 main (void)
4815 {
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 # Make sure it works both with $CC and with simple cc.
4822 # Following AC_PROG_CC_C_O, we do the test twice because some
4823 # compilers refuse to overwrite an existing .o file with -o,
4824 # though they will create one.
4825 am_cv_prog_cc_c_o=yes
4826 for am_i in 1 2; do
4827 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4828 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } \
4832 && test -f conftest2.$ac_objext; then
4833 : OK
4834 else
4835 am_cv_prog_cc_c_o=no
4836 break
4837 fi
4838 done
4839 # aligned with autoconf, so not including core; see bug#72225.
4840 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4841 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4842 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4843 unset am_i ;;
4844 esac
4845 fi
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4847 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4848 if test "$am_cv_prog_cc_c_o" != yes; then
4849 # Losing compiler, so override with the script.
4850 # FIXME: It is wrong to rewrite CC.
4851 # But if we don't then we get into trouble of one sort or another.
4852 # A longer-term fix would be to have automake use am__CC in this case,
4853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4854 CC="$am_aux_dir/compile $CC"
4855 fi
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861
4862
4863 depcc="$CC" am_compiler_list=
4864
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4866 printf %s "checking dependency style of $depcc... " >&6; }
4867 if test ${am_cv_CC_dependencies_compiler_type+y}
4868 then :
4869 printf %s "(cached) " >&6
4870 else case e in #(
4871 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4872 # We make a subdir and do the tests there. Otherwise we can end up
4873 # making bogus files that we don't know about and never remove. For
4874 # instance it was reported that on HP-UX the gcc test will end up
4875 # making a dummy file named 'D' -- because '-MD' means "put the output
4876 # in D".
4877 rm -rf conftest.dir
4878 mkdir conftest.dir
4879 # Copy depcomp to subdir because otherwise we won't find it if we're
4880 # using a relative directory.
4881 cp "$am_depcomp" conftest.dir
4882 cd conftest.dir
4883 # We will build objects and dependencies in a subdirectory because
4884 # it helps to detect inapplicable dependency modes. For instance
4885 # both Tru64's cc and ICC support -MD to output dependencies as a
4886 # side effect of compilation, but ICC will put the dependencies in
4887 # the current directory while Tru64 will put them in the object
4888 # directory.
4889 mkdir sub
4890
4891 am_cv_CC_dependencies_compiler_type=none
4892 if test "$am_compiler_list" = ""; then
4893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4894 fi
4895 am__universal=false
4896 case " $depcc " in #(
4897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4898 esac
4899
4900 for depmode in $am_compiler_list; do
4901 # Setup a source with many dependencies, because some compilers
4902 # like to wrap large dependency lists on column 80 (with \), and
4903 # we should not choose a depcomp mode which is confused by this.
4904 #
4905 # We need to recreate these files for each test, as the compiler may
4906 # overwrite some of them when testing with obscure command lines.
4907 # This happens at least with the AIX C compiler.
4908 : > sub/conftest.c
4909 for i in 1 2 3 4 5 6; do
4910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4911 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4912 # Solaris 10 /bin/sh.
4913 echo '/* dummy */' > sub/conftst$i.h
4914 done
4915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4916
4917 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4918 # mode. It turns out that the SunPro C++ compiler does not properly
4919 # handle '-M -o', and we need to detect this. Also, some Intel
4920 # versions had trouble with output in subdirs.
4921 am__obj=sub/conftest.${OBJEXT-o}
4922 am__minus_obj="-o $am__obj"
4923 case $depmode in
4924 gcc)
4925 # This depmode causes a compiler race in universal mode.
4926 test "$am__universal" = false || continue
4927 ;;
4928 nosideeffect)
4929 # After this tag, mechanisms are not by side-effect, so they'll
4930 # only be used when explicitly requested.
4931 if test "x$enable_dependency_tracking" = xyes; then
4932 continue
4933 else
4934 break
4935 fi
4936 ;;
4937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4938 # This compiler won't grok '-c -o', but also, the minuso test has
4939 # not run yet. These depmodes are late enough in the game, and
4940 # so weak that their functioning should not be impacted.
4941 am__obj=conftest.${OBJEXT-o}
4942 am__minus_obj=
4943 ;;
4944 none) break ;;
4945 esac
4946 if depmode=$depmode \
4947 source=sub/conftest.c object=$am__obj \
4948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4950 >/dev/null 2>conftest.err &&
4951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4955 # icc doesn't choke on unknown options, it will just issue warnings
4956 # or remarks (even with -Werror). So we grep stderr for any message
4957 # that says an option was ignored or not supported.
4958 # When given -MP, icc 7.0 and 7.1 complain thus:
4959 # icc: Command line warning: ignoring option '-M'; no argument required
4960 # The diagnosis changed in icc 8.0:
4961 # icc: Command line remark: option '-MP' not supported
4962 if (grep 'ignoring option' conftest.err ||
4963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4964 am_cv_CC_dependencies_compiler_type=$depmode
4965 break
4966 fi
4967 fi
4968 done
4969
4970 cd ..
4971 rm -rf conftest.dir
4972 else
4973 am_cv_CC_dependencies_compiler_type=none
4974 fi
4975 ;;
4976 esac
4977 fi
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4979 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4981
4982 if
4983 test "x$enable_dependency_tracking" != xno \
4984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4985 am__fastdepCC_TRUE=
4986 am__fastdepCC_FALSE='#'
4987 else
4988 am__fastdepCC_TRUE='#'
4989 am__fastdepCC_FALSE=
4990 fi
4991
4992
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4994 printf %s "checking for a sed that does not truncate output... " >&6; }
4995 if test ${ac_cv_path_SED+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else case e in #(
4999 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5002 done
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 case $as_dir in #(((
5013 '') as_dir=./ ;;
5014 */) ;;
5015 *) as_dir=$as_dir/ ;;
5016 esac
5017 for ac_prog in sed gsed
5018 do
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5021 as_fn_executable_p "$ac_path_SED" || continue
5022 # Check for GNU ac_path_SED and select it if it is found.
5023 # Check for GNU $ac_path_SED
5024 case `"$ac_path_SED" --version 2>&1` in #(
5025 *GNU*)
5026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5027 #(
5028 *)
5029 ac_count=0
5030 printf %s 0123456789 >"conftest.in"
5031 while :
5032 do
5033 cat "conftest.in" "conftest.in" >"conftest.tmp"
5034 mv "conftest.tmp" "conftest.in"
5035 cp "conftest.in" "conftest.nl"
5036 printf "%s\n" '' >> "conftest.nl"
5037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5039 as_fn_arith $ac_count + 1 && ac_count=$as_val
5040 if test $ac_count -gt ${ac_path_SED_max-0}; then
5041 # Best one so far, save it but keep looking for a better one
5042 ac_cv_path_SED="$ac_path_SED"
5043 ac_path_SED_max=$ac_count
5044 fi
5045 # 10*(2^10) chars as input seems more than enough
5046 test $ac_count -gt 10 && break
5047 done
5048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5049 esac
5050
5051 $ac_path_SED_found && break 3
5052 done
5053 done
5054 done
5055 IFS=$as_save_IFS
5056 if test -z "$ac_cv_path_SED"; then
5057 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5058 fi
5059 else
5060 ac_cv_path_SED=$SED
5061 fi
5062 ;;
5063 esac
5064 fi
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066 printf "%s\n" "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5068 rm -f conftest.sed
5069
5070 test -z "$SED" && SED=sed
5071 Xsed="$SED -e 1s/^X//"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5084 printf %s "checking for grep that handles long lines and -e... " >&6; }
5085 if test ${ac_cv_path_GREP+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else case e in #(
5089 e) if test -z "$GREP"; then
5090 ac_path_GREP_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095 IFS=$as_save_IFS
5096 case $as_dir in #(((
5097 '') as_dir=./ ;;
5098 */) ;;
5099 *) as_dir=$as_dir/ ;;
5100 esac
5101 for ac_prog in grep ggrep
5102 do
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5105 as_fn_executable_p "$ac_path_GREP" || continue
5106 # Check for GNU ac_path_GREP and select it if it is found.
5107 # Check for GNU $ac_path_GREP
5108 case `"$ac_path_GREP" --version 2>&1` in #(
5109 *GNU*)
5110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111 #(
5112 *)
5113 ac_count=0
5114 printf %s 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 printf "%s\n" 'GREP' >> "conftest.nl"
5121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_GREP="$ac_path_GREP"
5127 ac_path_GREP_max=$ac_count
5128 fi
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133 esac
5134
5135 $ac_path_GREP_found && break 3
5136 done
5137 done
5138 done
5139 IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_GREP"; then
5141 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5142 fi
5143 else
5144 ac_cv_path_GREP=$GREP
5145 fi
5146 ;;
5147 esac
5148 fi
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5150 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5151 GREP="$ac_cv_path_GREP"
5152
5153
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5155 printf %s "checking for egrep... " >&6; }
5156 if test ${ac_cv_path_EGREP+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else case e in #(
5160 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5161 then ac_cv_path_EGREP="$GREP -E"
5162 else
5163 if test -z "$EGREP"; then
5164 ac_path_EGREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 do
5169 IFS=$as_save_IFS
5170 case $as_dir in #(((
5171 '') as_dir=./ ;;
5172 */) ;;
5173 *) as_dir=$as_dir/ ;;
5174 esac
5175 for ac_prog in egrep
5176 do
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5179 as_fn_executable_p "$ac_path_EGREP" || continue
5180 # Check for GNU ac_path_EGREP and select it if it is found.
5181 # Check for GNU $ac_path_EGREP
5182 case `"$ac_path_EGREP" --version 2>&1` in #(
5183 *GNU*)
5184 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5185 #(
5186 *)
5187 ac_count=0
5188 printf %s 0123456789 >"conftest.in"
5189 while :
5190 do
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 printf "%s\n" 'EGREP' >> "conftest.nl"
5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197 as_fn_arith $ac_count + 1 && ac_count=$as_val
5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_EGREP="$ac_path_EGREP"
5201 ac_path_EGREP_max=$ac_count
5202 fi
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
5205 done
5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 esac
5208
5209 $ac_path_EGREP_found && break 3
5210 done
5211 done
5212 done
5213 IFS=$as_save_IFS
5214 if test -z "$ac_cv_path_EGREP"; then
5215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5216 fi
5217 else
5218 ac_cv_path_EGREP=$EGREP
5219 fi
5220
5221 fi ;;
5222 esac
5223 fi
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5226 EGREP="$ac_cv_path_EGREP"
5227
5228 EGREP_TRADITIONAL=$EGREP
5229 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5230
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5232 printf %s "checking for fgrep... " >&6; }
5233 if test ${ac_cv_path_FGREP+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else case e in #(
5237 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5238 then ac_cv_path_FGREP="$GREP -F"
5239 else
5240 if test -z "$FGREP"; then
5241 ac_path_FGREP_found=false
5242 # Loop through the user's path and test for each of PROGNAME-LIST
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 do
5246 IFS=$as_save_IFS
5247 case $as_dir in #(((
5248 '') as_dir=./ ;;
5249 */) ;;
5250 *) as_dir=$as_dir/ ;;
5251 esac
5252 for ac_prog in fgrep
5253 do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5256 as_fn_executable_p "$ac_path_FGREP" || continue
5257 # Check for GNU ac_path_FGREP and select it if it is found.
5258 # Check for GNU $ac_path_FGREP
5259 case `"$ac_path_FGREP" --version 2>&1` in #(
5260 *GNU*)
5261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262 #(
5263 *)
5264 ac_count=0
5265 printf %s 0123456789 >"conftest.in"
5266 while :
5267 do
5268 cat "conftest.in" "conftest.in" >"conftest.tmp"
5269 mv "conftest.tmp" "conftest.in"
5270 cp "conftest.in" "conftest.nl"
5271 printf "%s\n" 'FGREP' >> "conftest.nl"
5272 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5274 as_fn_arith $ac_count + 1 && ac_count=$as_val
5275 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5276 # Best one so far, save it but keep looking for a better one
5277 ac_cv_path_FGREP="$ac_path_FGREP"
5278 ac_path_FGREP_max=$ac_count
5279 fi
5280 # 10*(2^10) chars as input seems more than enough
5281 test $ac_count -gt 10 && break
5282 done
5283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5284 esac
5285
5286 $ac_path_FGREP_found && break 3
5287 done
5288 done
5289 done
5290 IFS=$as_save_IFS
5291 if test -z "$ac_cv_path_FGREP"; then
5292 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5293 fi
5294 else
5295 ac_cv_path_FGREP=$FGREP
5296 fi
5297
5298 fi ;;
5299 esac
5300 fi
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5302 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5303 FGREP="$ac_cv_path_FGREP"
5304
5305
5306 test -z "$GREP" && GREP=grep
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 # Check whether --with-gnu-ld was given.
5327 if test ${with_gnu_ld+y}
5328 then :
5329 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5330 else case e in #(
5331 e) with_gnu_ld=no ;;
5332 esac
5333 fi
5334
5335 ac_prog=ld
5336 if test yes = "$GCC"; then
5337 # Check if gcc -print-prog-name=ld gives a path.
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5339 printf %s "checking for ld used by $CC... " >&6; }
5340 case $host in
5341 *-*-mingw* | *-*-windows*)
5342 # gcc leaves a trailing carriage return, which upsets mingw
5343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5344 *)
5345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5346 esac
5347 case $ac_prog in
5348 # Accept absolute paths.
5349 [\\/]* | ?:[\\/]*)
5350 re_direlt='/[^/][^/]*/\.\./'
5351 # Canonicalize the pathname of ld
5352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5355 done
5356 test -z "$LD" && LD=$ac_prog
5357 ;;
5358 "")
5359 # If it fails, then pretend we aren't using GCC.
5360 ac_prog=ld
5361 ;;
5362 *)
5363 # If it is relative, then search for the first ld in PATH.
5364 with_gnu_ld=unknown
5365 ;;
5366 esac
5367 elif test yes = "$with_gnu_ld"; then
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5369 printf %s "checking for GNU ld... " >&6; }
5370 else
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5372 printf %s "checking for non-GNU ld... " >&6; }
5373 fi
5374 if test ${lt_cv_path_LD+y}
5375 then :
5376 printf %s "(cached) " >&6
5377 else case e in #(
5378 e) if test -z "$LD"; then
5379 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5380 for ac_dir in $PATH; do
5381 IFS=$lt_save_ifs
5382 test -z "$ac_dir" && ac_dir=.
5383 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5384 lt_cv_path_LD=$ac_dir/$ac_prog
5385 # Check to see if the program is GNU ld. I'd rather use --version,
5386 # but apparently some variants of GNU ld only accept -v.
5387 # Break only if it was the GNU/non-GNU ld that we prefer.
5388 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5389 *GNU* | *'with BFD'*)
5390 test no != "$with_gnu_ld" && break
5391 ;;
5392 *)
5393 test yes != "$with_gnu_ld" && break
5394 ;;
5395 esac
5396 fi
5397 done
5398 IFS=$lt_save_ifs
5399 else
5400 lt_cv_path_LD=$LD # Let the user override the test with a path.
5401 fi ;;
5402 esac
5403 fi
5404
5405 LD=$lt_cv_path_LD
5406 if test -n "$LD"; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5408 printf "%s\n" "$LD" >&6; }
5409 else
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 printf "%s\n" "no" >&6; }
5412 fi
5413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5415 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5416 if test ${lt_cv_prog_gnu_ld+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else case e in #(
5420 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5421 case `$LD -v 2>&1 </dev/null` in
5422 *GNU* | *'with BFD'*)
5423 lt_cv_prog_gnu_ld=yes
5424 ;;
5425 *)
5426 lt_cv_prog_gnu_ld=no
5427 ;;
5428 esac ;;
5429 esac
5430 fi
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5432 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5433 with_gnu_ld=$lt_cv_prog_gnu_ld
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5444 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5445 if test ${lt_cv_path_NM+y}
5446 then :
5447 printf %s "(cached) " >&6
5448 else case e in #(
5449 e) if test -n "$NM"; then
5450 # Let the user override the test.
5451 lt_cv_path_NM=$NM
5452 else
5453 lt_nm_to_check=${ac_tool_prefix}nm
5454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5455 lt_nm_to_check="$lt_nm_to_check nm"
5456 fi
5457 for lt_tmp_nm in $lt_nm_to_check; do
5458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5460 IFS=$lt_save_ifs
5461 test -z "$ac_dir" && ac_dir=.
5462 tmp_nm=$ac_dir/$lt_tmp_nm
5463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5464 # Check to see if the nm accepts a BSD-compat flag.
5465 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5466 # nm: unknown option "B" ignored
5467 # Tru64's nm complains that /dev/null is an invalid object file
5468 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5469 case $build_os in
5470 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5471 *) lt_bad_file=/dev/null ;;
5472 esac
5473 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5474 *$lt_bad_file* | *'Invalid file or object type'*)
5475 lt_cv_path_NM="$tmp_nm -B"
5476 break 2
5477 ;;
5478 *)
5479 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5480 */dev/null*)
5481 lt_cv_path_NM="$tmp_nm -p"
5482 break 2
5483 ;;
5484 *)
5485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486 continue # so that we can try to find one that supports BSD flags
5487 ;;
5488 esac
5489 ;;
5490 esac
5491 fi
5492 done
5493 IFS=$lt_save_ifs
5494 done
5495 : ${lt_cv_path_NM=no}
5496 fi ;;
5497 esac
5498 fi
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5500 printf "%s\n" "$lt_cv_path_NM" >&6; }
5501 if test no != "$lt_cv_path_NM"; then
5502 NM=$lt_cv_path_NM
5503 else
5504 # Didn't find any BSD compatible name lister, look for dumpbin.
5505 if test -n "$DUMPBIN"; then :
5506 # Let the user override the test.
5507 else
5508 if test -n "$ac_tool_prefix"; then
5509 for ac_prog in dumpbin "link -dump"
5510 do
5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 printf %s "checking for $ac_word... " >&6; }
5515 if test ${ac_cv_prog_DUMPBIN+y}
5516 then :
5517 printf %s "(cached) " >&6
5518 else case e in #(
5519 e) if test -n "$DUMPBIN"; then
5520 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 case $as_dir in #(((
5527 '') as_dir=./ ;;
5528 */) ;;
5529 *) as_dir=$as_dir/ ;;
5530 esac
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 fi ;;
5542 esac
5543 fi
5544 DUMPBIN=$ac_cv_prog_DUMPBIN
5545 if test -n "$DUMPBIN"; then
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5547 printf "%s\n" "$DUMPBIN" >&6; }
5548 else
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 printf "%s\n" "no" >&6; }
5551 fi
5552
5553
5554 test -n "$DUMPBIN" && break
5555 done
5556 fi
5557 if test -z "$DUMPBIN"; then
5558 ac_ct_DUMPBIN=$DUMPBIN
5559 for ac_prog in dumpbin "link -dump"
5560 do
5561 # Extract the first word of "$ac_prog", so it can be a program name with args.
5562 set dummy $ac_prog; ac_word=$2
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 printf %s "checking for $ac_word... " >&6; }
5565 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e) if test -n "$ac_ct_DUMPBIN"; then
5570 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575 IFS=$as_save_IFS
5576 case $as_dir in #(((
5577 '') as_dir=./ ;;
5578 */) ;;
5579 *) as_dir=$as_dir/ ;;
5580 esac
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589 IFS=$as_save_IFS
5590
5591 fi ;;
5592 esac
5593 fi
5594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5595 if test -n "$ac_ct_DUMPBIN"; then
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5597 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5598 else
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 printf "%s\n" "no" >&6; }
5601 fi
5602
5603
5604 test -n "$ac_ct_DUMPBIN" && break
5605 done
5606
5607 if test "x$ac_ct_DUMPBIN" = x; then
5608 DUMPBIN=":"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 DUMPBIN=$ac_ct_DUMPBIN
5617 fi
5618 fi
5619
5620 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5621 *COFF*)
5622 DUMPBIN="$DUMPBIN -symbols -headers"
5623 ;;
5624 *)
5625 DUMPBIN=:
5626 ;;
5627 esac
5628 fi
5629
5630 if test : != "$DUMPBIN"; then
5631 NM=$DUMPBIN
5632 fi
5633 fi
5634 test -z "$NM" && NM=nm
5635
5636
5637
5638
5639
5640
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5642 printf %s "checking the name lister ($NM) interface... " >&6; }
5643 if test ${lt_cv_nm_interface+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else case e in #(
5647 e) lt_cv_nm_interface="BSD nm"
5648 echo "int some_variable = 0;" > conftest.$ac_ext
5649 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5650 (eval "$ac_compile" 2>conftest.err)
5651 cat conftest.err >&5
5652 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5653 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5654 cat conftest.err >&5
5655 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5656 cat conftest.out >&5
5657 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5658 lt_cv_nm_interface="MS dumpbin"
5659 fi
5660 rm -f conftest* ;;
5661 esac
5662 fi
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5664 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5665
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5667 printf %s "checking whether ln -s works... " >&6; }
5668 LN_S=$as_ln_s
5669 if test "$LN_S" = "ln -s"; then
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671 printf "%s\n" "yes" >&6; }
5672 else
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5674 printf "%s\n" "no, using $LN_S" >&6; }
5675 fi
5676
5677 # find the maximum length of command line arguments
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5679 printf %s "checking the maximum length of command line arguments... " >&6; }
5680 if test ${lt_cv_sys_max_cmd_len+y}
5681 then :
5682 printf %s "(cached) " >&6
5683 else case e in #(
5684 e) i=0
5685 teststring=ABCD
5686
5687 case $build_os in
5688 msdosdjgpp*)
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5694 ;;
5695
5696 gnu* | ironclad*)
5697 # Under GNU Hurd and Ironclad, this test is not required because there
5698 # is no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len=-1;
5701 ;;
5702
5703 cygwin* | mingw* | windows* | cegcc*)
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len=8192;
5712 ;;
5713
5714 mint*)
5715 # On MiNT this can take a long time and run out of memory.
5716 lt_cv_sys_max_cmd_len=8192;
5717 ;;
5718
5719 amigaos*)
5720 # On AmigaOS with pdksh, this test takes hours, literally.
5721 # So we just punt and use a minimum line length of 8192.
5722 lt_cv_sys_max_cmd_len=8192;
5723 ;;
5724
5725 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5726 # This has been around since 386BSD, at least. Likely further.
5727 if test -x /sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729 elif test -x /usr/sbin/sysctl; then
5730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5731 else
5732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5733 fi
5734 # And add a safety zone
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737 ;;
5738
5739 interix*)
5740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741 lt_cv_sys_max_cmd_len=196608
5742 ;;
5743
5744 os2*)
5745 # The test takes a long time on OS/2.
5746 lt_cv_sys_max_cmd_len=8192
5747 ;;
5748
5749 osf*)
5750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752 # nice to cause kernel panics so lets avoid the loop below.
5753 # First set a reasonable default.
5754 lt_cv_sys_max_cmd_len=16384
5755 #
5756 if test -x /sbin/sysconfig; then
5757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759 esac
5760 fi
5761 ;;
5762 sco3.2v5*)
5763 lt_cv_sys_max_cmd_len=102400
5764 ;;
5765 sysv5* | sco5v6* | sysv4.2uw2*)
5766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767 if test -n "$kargmax"; then
5768 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5769 else
5770 lt_cv_sys_max_cmd_len=32768
5771 fi
5772 ;;
5773 *)
5774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775 if test -n "$lt_cv_sys_max_cmd_len" && \
5776 test undefined != "$lt_cv_sys_max_cmd_len"; then
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779 else
5780 # Make teststring a little bigger before we do anything with it.
5781 # a 1K string should be a reasonable start.
5782 for i in 1 2 3 4 5 6 7 8; do
5783 teststring=$teststring$teststring
5784 done
5785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786 # If test is not a shell built-in, we'll probably end up computing a
5787 # maximum length that is only half of the actual maximum length, but
5788 # we can't tell.
5789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791 test 17 != "$i" # 1/2 MB should be enough
5792 do
5793 i=`expr $i + 1`
5794 teststring=$teststring$teststring
5795 done
5796 # Only check the string length outside the loop.
5797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5798 teststring=
5799 # Add a significant safety factor because C++ compilers can tack on
5800 # massive amounts of additional arguments before passing them to the
5801 # linker. It appears as though 1/2 is a usable value.
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5803 fi
5804 ;;
5805 esac
5806 ;;
5807 esac
5808 fi
5809
5810 if test -n "$lt_cv_sys_max_cmd_len"; then
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5812 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5813 else
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5815 printf "%s\n" "none" >&6; }
5816 fi
5817 max_cmd_len=$lt_cv_sys_max_cmd_len
5818
5819
5820
5821
5822
5823
5824 : ${CP="cp -f"}
5825 : ${MV="mv -f"}
5826 : ${RM="rm -f"}
5827
5828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5829 lt_unset=unset
5830 else
5831 lt_unset=false
5832 fi
5833
5834
5835
5836
5837
5838 # test EBCDIC or ASCII
5839 case `echo X|tr X '\101'` in
5840 A) # ASCII based system
5841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5842 lt_SP2NL='tr \040 \012'
5843 lt_NL2SP='tr \015\012 \040\040'
5844 ;;
5845 *) # EBCDIC based system
5846 lt_SP2NL='tr \100 \n'
5847 lt_NL2SP='tr \r\n \100\100'
5848 ;;
5849 esac
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5860 printf %s "checking how to convert $build file names to $host format... " >&6; }
5861 if test ${lt_cv_to_host_file_cmd+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else case e in #(
5865 e) case $host in
5866 *-*-mingw* )
5867 case $build in
5868 *-*-mingw* | *-*-windows* ) # actually msys
5869 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5870 ;;
5871 *-*-cygwin* )
5872 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5873 ;;
5874 * ) # otherwise, assume *nix
5875 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5876 ;;
5877 esac
5878 ;;
5879 *-*-cygwin* )
5880 case $build in
5881 *-*-mingw* | *-*-windows* ) # actually msys
5882 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5883 ;;
5884 *-*-cygwin* )
5885 lt_cv_to_host_file_cmd=func_convert_file_noop
5886 ;;
5887 * ) # otherwise, assume *nix
5888 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5889 ;;
5890 esac
5891 ;;
5892 * ) # unhandled hosts (and "normal" native builds)
5893 lt_cv_to_host_file_cmd=func_convert_file_noop
5894 ;;
5895 esac
5896 ;;
5897 esac
5898 fi
5899
5900 to_host_file_cmd=$lt_cv_to_host_file_cmd
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5902 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5903
5904
5905
5906
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5909 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5910 if test ${lt_cv_to_tool_file_cmd+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) #assume ordinary cross tools, or native build.
5915 lt_cv_to_tool_file_cmd=func_convert_file_noop
5916 case $host in
5917 *-*-mingw* | *-*-windows* )
5918 case $build in
5919 *-*-mingw* | *-*-windows* ) # actually msys
5920 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5921 ;;
5922 esac
5923 ;;
5924 esac
5925 ;;
5926 esac
5927 fi
5928
5929 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5931 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5932
5933
5934
5935
5936
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5938 printf %s "checking for $LD option to reload object files... " >&6; }
5939 if test ${lt_cv_ld_reload_flag+y}
5940 then :
5941 printf %s "(cached) " >&6
5942 else case e in #(
5943 e) lt_cv_ld_reload_flag='-r' ;;
5944 esac
5945 fi
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5947 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5948 reload_flag=$lt_cv_ld_reload_flag
5949 case $reload_flag in
5950 "" | " "*) ;;
5951 *) reload_flag=" $reload_flag" ;;
5952 esac
5953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5954 case $host_os in
5955 cygwin* | mingw* | windows* | pw32* | cegcc*)
5956 if test yes != "$GCC"; then
5957 reload_cmds=false
5958 fi
5959 ;;
5960 darwin*)
5961 if test yes = "$GCC"; then
5962 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5963 else
5964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5965 fi
5966 ;;
5967 esac
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 # Extract the first word of "file", so it can be a program name with args.
5978 set dummy file; ac_word=$2
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 printf %s "checking for $ac_word... " >&6; }
5981 if test ${ac_cv_prog_FILECMD+y}
5982 then :
5983 printf %s "(cached) " >&6
5984 else case e in #(
5985 e) if test -n "$FILECMD"; then
5986 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 case $as_dir in #(((
5993 '') as_dir=./ ;;
5994 */) ;;
5995 *) as_dir=$as_dir/ ;;
5996 esac
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_FILECMD="file"
6000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6008 fi ;;
6009 esac
6010 fi
6011 FILECMD=$ac_cv_prog_FILECMD
6012 if test -n "$FILECMD"; then
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6014 printf "%s\n" "$FILECMD" >&6; }
6015 else
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 printf "%s\n" "no" >&6; }
6018 fi
6019
6020
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 printf %s "checking for $ac_word... " >&6; }
6032 if test ${ac_cv_prog_OBJDUMP+y}
6033 then :
6034 printf %s "(cached) " >&6
6035 else case e in #(
6036 e) if test -n "$OBJDUMP"; then
6037 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 case $as_dir in #(((
6044 '') as_dir=./ ;;
6045 */) ;;
6046 *) as_dir=$as_dir/ ;;
6047 esac
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 fi ;;
6059 esac
6060 fi
6061 OBJDUMP=$ac_cv_prog_OBJDUMP
6062 if test -n "$OBJDUMP"; then
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6064 printf "%s\n" "$OBJDUMP" >&6; }
6065 else
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 printf "%s\n" "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_OBJDUMP"; then
6073 ac_ct_OBJDUMP=$OBJDUMP
6074 # Extract the first word of "objdump", so it can be a program name with args.
6075 set dummy objdump; ac_word=$2
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 printf %s "checking for $ac_word... " >&6; }
6078 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else case e in #(
6082 e) if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 case $as_dir in #(((
6090 '') as_dir=./ ;;
6091 */) ;;
6092 *) as_dir=$as_dir/ ;;
6093 esac
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi ;;
6105 esac
6106 fi
6107 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6108 if test -n "$ac_ct_OBJDUMP"; then
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6110 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6111 else
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 printf "%s\n" "no" >&6; }
6114 fi
6115
6116 if test "x$ac_ct_OBJDUMP" = x; then
6117 OBJDUMP="false"
6118 else
6119 case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123 ac_tool_warned=yes ;;
6124 esac
6125 OBJDUMP=$ac_ct_OBJDUMP
6126 fi
6127 else
6128 OBJDUMP="$ac_cv_prog_OBJDUMP"
6129 fi
6130
6131 test -z "$OBJDUMP" && OBJDUMP=objdump
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6142 printf %s "checking how to recognize dependent libraries... " >&6; }
6143 if test ${lt_cv_deplibs_check_method+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else case e in #(
6147 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6148 lt_cv_file_magic_test_file=
6149 lt_cv_deplibs_check_method='unknown'
6150 # Need to set the preceding variable on all platforms that support
6151 # interlibrary dependencies.
6152 # 'none' -- dependencies not supported.
6153 # 'unknown' -- same as none, but documents that we really don't know.
6154 # 'pass_all' -- all dependencies passed with no checks.
6155 # 'file_magic [[regex]]' -- check by looking for files in library path
6156 # that responds to the $file_magic_cmd with a given extended regex.
6157 # If you have 'file' or equivalent on your system and you're not sure
6158 # whether 'pass_all' will *always* work, you probably want this one.
6159
6160 case $host_os in
6161 aix[4-9]*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 beos*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 bsdi[45]*)
6170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6171 lt_cv_file_magic_cmd='$FILECMD -L'
6172 lt_cv_file_magic_test_file=/shlib/libc.so
6173 ;;
6174
6175 cygwin*)
6176 # func_win32_libid is a shell function defined in ltmain.sh
6177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6178 lt_cv_file_magic_cmd='func_win32_libid'
6179 ;;
6180
6181 mingw* | windows* | pw32*)
6182 # Base MSYS/MinGW do not provide the 'file' command needed by
6183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6184 # unless we find 'file', for example because we are cross-compiling.
6185 if ( file / ) >/dev/null 2>&1; then
6186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6187 lt_cv_file_magic_cmd='func_win32_libid'
6188 else
6189 # Keep this pattern in sync with the one in func_win32_libid.
6190 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6191 lt_cv_file_magic_cmd='$OBJDUMP -f'
6192 fi
6193 ;;
6194
6195 cegcc*)
6196 # use the weaker test based on 'objdump'. See mingw*.
6197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6198 lt_cv_file_magic_cmd='$OBJDUMP -f'
6199 ;;
6200
6201 darwin* | rhapsody*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 freebsd* | dragonfly* | midnightbsd*)
6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6207 case $host_cpu in
6208 i*86 )
6209 # Not sure whether the presence of OpenBSD here was a mistake.
6210 # Let's accept both of them until this is cleared up.
6211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6212 lt_cv_file_magic_cmd=$FILECMD
6213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6214 ;;
6215 esac
6216 else
6217 lt_cv_deplibs_check_method=pass_all
6218 fi
6219 ;;
6220
6221 haiku*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 hpux10.20* | hpux11*)
6226 lt_cv_file_magic_cmd=$FILECMD
6227 case $host_cpu in
6228 ia64*)
6229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6231 ;;
6232 hppa*64*)
6233 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]'
6234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6235 ;;
6236 *)
6237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6239 ;;
6240 esac
6241 ;;
6242
6243 interix[3-9]*)
6244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6246 ;;
6247
6248 irix5* | irix6* | nonstopux*)
6249 case $LD in
6250 *-32|*"-32 ") libmagic=32-bit;;
6251 *-n32|*"-n32 ") libmagic=N32;;
6252 *-64|*"-64 ") libmagic=64-bit;;
6253 *) libmagic=never-match;;
6254 esac
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257
6258 # This must be glibc/ELF.
6259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 *-mlibc)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 netbsd* | netbsdelf*-gnu)
6268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6270 else
6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6272 fi
6273 ;;
6274
6275 newos6*)
6276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6277 lt_cv_file_magic_cmd=$FILECMD
6278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6279 ;;
6280
6281 *nto* | *qnx*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284
6285 openbsd*)
6286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6288 else
6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6290 fi
6291 ;;
6292
6293 osf3* | osf4* | osf5*)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296
6297 rdos*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 serenity*)
6302 lt_cv_deplibs_check_method=pass_all
6303 ;;
6304
6305 solaris*)
6306 lt_cv_deplibs_check_method=pass_all
6307 ;;
6308
6309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313 sysv4 | sysv4.3*)
6314 case $host_vendor in
6315 motorola)
6316 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]'
6317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6318 ;;
6319 ncr)
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
6322 sequent)
6323 lt_cv_file_magic_cmd='/bin/file'
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6325 ;;
6326 sni)
6327 lt_cv_file_magic_cmd='/bin/file'
6328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6329 lt_cv_file_magic_test_file=/lib/libc.so
6330 ;;
6331 siemens)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334 pc)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337 esac
6338 ;;
6339
6340 tpf*)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343 os2*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346 esac
6347 ;;
6348 esac
6349 fi
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6351 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6352
6353 file_magic_glob=
6354 want_nocaseglob=no
6355 if test "$build" = "$host"; then
6356 case $host_os in
6357 mingw* | windows* | pw32*)
6358 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6359 want_nocaseglob=yes
6360 else
6361 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6362 fi
6363 ;;
6364 esac
6365 fi
6366
6367 file_magic_cmd=$lt_cv_file_magic_cmd
6368 deplibs_check_method=$lt_cv_deplibs_check_method
6369 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 printf %s "checking for $ac_word... " >&6; }
6397 if test ${ac_cv_prog_DLLTOOL+y}
6398 then :
6399 printf %s "(cached) " >&6
6400 else case e in #(
6401 e) if test -n "$DLLTOOL"; then
6402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407 IFS=$as_save_IFS
6408 case $as_dir in #(((
6409 '') as_dir=./ ;;
6410 */) ;;
6411 *) as_dir=$as_dir/ ;;
6412 esac
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi ;;
6424 esac
6425 fi
6426 DLLTOOL=$ac_cv_prog_DLLTOOL
6427 if test -n "$DLLTOOL"; then
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6429 printf "%s\n" "$DLLTOOL" >&6; }
6430 else
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 printf "%s\n" "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_DLLTOOL"; then
6438 ac_ct_DLLTOOL=$DLLTOOL
6439 # Extract the first word of "dlltool", so it can be a program name with args.
6440 set dummy dlltool; ac_word=$2
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 printf %s "checking for $ac_word... " >&6; }
6443 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6444 then :
6445 printf %s "(cached) " >&6
6446 else case e in #(
6447 e) if test -n "$ac_ct_DLLTOOL"; then
6448 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 case $as_dir in #(((
6455 '') as_dir=./ ;;
6456 */) ;;
6457 *) as_dir=$as_dir/ ;;
6458 esac
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi ;;
6470 esac
6471 fi
6472 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6473 if test -n "$ac_ct_DLLTOOL"; then
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6475 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6476 else
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 printf "%s\n" "no" >&6; }
6479 fi
6480
6481 if test "x$ac_ct_DLLTOOL" = x; then
6482 DLLTOOL="false"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 DLLTOOL=$ac_ct_DLLTOOL
6491 fi
6492 else
6493 DLLTOOL="$ac_cv_prog_DLLTOOL"
6494 fi
6495
6496 test -z "$DLLTOOL" && DLLTOOL=dlltool
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6508 printf %s "checking how to associate runtime and link libraries... " >&6; }
6509 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6510 then :
6511 printf %s "(cached) " >&6
6512 else case e in #(
6513 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6514
6515 case $host_os in
6516 cygwin* | mingw* | windows* | pw32* | cegcc*)
6517 # two different shell functions defined in ltmain.sh;
6518 # decide which one to use based on capabilities of $DLLTOOL
6519 case `$DLLTOOL --help 2>&1` in
6520 *--identify-strict*)
6521 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6522 ;;
6523 *)
6524 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6525 ;;
6526 esac
6527 ;;
6528 *)
6529 # fallback: assume linklib IS sharedlib
6530 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6531 ;;
6532 esac
6533 ;;
6534 esac
6535 fi
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6537 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6540
6541
6542
6543
6544
6545
6546
6547
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 printf %s "checking for $ac_word... " >&6; }
6553 if test ${ac_cv_prog_RANLIB+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else case e in #(
6557 e) if test -n "$RANLIB"; then
6558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 case $as_dir in #(((
6565 '') as_dir=./ ;;
6566 */) ;;
6567 *) as_dir=$as_dir/ ;;
6568 esac
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi ;;
6580 esac
6581 fi
6582 RANLIB=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 printf "%s\n" "$RANLIB" >&6; }
6586 else
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594 ac_ct_RANLIB=$RANLIB
6595 # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib; ac_word=$2
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 printf %s "checking for $ac_word... " >&6; }
6599 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6600 then :
6601 printf %s "(cached) " >&6
6602 else case e in #(
6603 e) if test -n "$ac_ct_RANLIB"; then
6604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 case $as_dir in #(((
6611 '') as_dir=./ ;;
6612 */) ;;
6613 *) as_dir=$as_dir/ ;;
6614 esac
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_ac_ct_RANLIB="ranlib"
6618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi ;;
6626 esac
6627 fi
6628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6629 if test -n "$ac_ct_RANLIB"; then
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6631 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6632 else
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 printf "%s\n" "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_RANLIB" = x; then
6638 RANLIB=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 RANLIB=$ac_ct_RANLIB
6647 fi
6648 else
6649 RANLIB="$ac_cv_prog_RANLIB"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 for ac_prog in ar
6654 do
6655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 printf %s "checking for $ac_word... " >&6; }
6659 if test ${ac_cv_prog_AR+y}
6660 then :
6661 printf %s "(cached) " >&6
6662 else case e in #(
6663 e) if test -n "$AR"; then
6664 ac_cv_prog_AR="$AR" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 case $as_dir in #(((
6671 '') as_dir=./ ;;
6672 */) ;;
6673 *) as_dir=$as_dir/ ;;
6674 esac
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi ;;
6686 esac
6687 fi
6688 AR=$ac_cv_prog_AR
6689 if test -n "$AR"; then
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6691 printf "%s\n" "$AR" >&6; }
6692 else
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 printf "%s\n" "no" >&6; }
6695 fi
6696
6697
6698 test -n "$AR" && break
6699 done
6700 fi
6701 if test -z "$AR"; then
6702 ac_ct_AR=$AR
6703 for ac_prog in ar
6704 do
6705 # Extract the first word of "$ac_prog", so it can be a program name with args.
6706 set dummy $ac_prog; ac_word=$2
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 printf %s "checking for $ac_word... " >&6; }
6709 if test ${ac_cv_prog_ac_ct_AR+y}
6710 then :
6711 printf %s "(cached) " >&6
6712 else case e in #(
6713 e) if test -n "$ac_ct_AR"; then
6714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719 IFS=$as_save_IFS
6720 case $as_dir in #(((
6721 '') as_dir=./ ;;
6722 */) ;;
6723 *) as_dir=$as_dir/ ;;
6724 esac
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_AR="$ac_prog"
6728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi ;;
6736 esac
6737 fi
6738 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6739 if test -n "$ac_ct_AR"; then
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6741 printf "%s\n" "$ac_ct_AR" >&6; }
6742 else
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 printf "%s\n" "no" >&6; }
6745 fi
6746
6747
6748 test -n "$ac_ct_AR" && break
6749 done
6750
6751 if test "x$ac_ct_AR" = x; then
6752 AR="false"
6753 else
6754 case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6759 esac
6760 AR=$ac_ct_AR
6761 fi
6762 fi
6763
6764 : ${AR=ar}
6765
6766
6767
6768
6769
6770
6771 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6772 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6773 # higher priority because that's what people were doing historically (setting
6774 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6775 # variable obsoleted/removed.
6776
6777 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6778 lt_ar_flags=$AR_FLAGS
6779
6780
6781
6782
6783
6784
6785 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6786 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6787
6788
6789
6790
6791
6792
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6794 printf %s "checking for archiver @FILE support... " >&6; }
6795 if test ${lt_cv_ar_at_file+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else case e in #(
6799 e) lt_cv_ar_at_file=no
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802
6803 int
6804 main (void)
6805 {
6806
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 if ac_fn_c_try_compile "$LINENO"
6812 then :
6813 echo conftest.$ac_objext > conftest.lst
6814 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6816 (eval $lt_ar_try) 2>&5
6817 ac_status=$?
6818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819 test $ac_status = 0; }
6820 if test 0 -eq "$ac_status"; then
6821 # Ensure the archiver fails upon bogus file names.
6822 rm -f conftest.$ac_objext libconftest.a
6823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6824 (eval $lt_ar_try) 2>&5
6825 ac_status=$?
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827 test $ac_status = 0; }
6828 if test 0 -ne "$ac_status"; then
6829 lt_cv_ar_at_file=@
6830 fi
6831 fi
6832 rm -f conftest.* libconftest.a
6833
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 ;;
6837 esac
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6840 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6841
6842 if test no = "$lt_cv_ar_at_file"; then
6843 archiver_list_spec=
6844 else
6845 archiver_list_spec=$lt_cv_ar_at_file
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}strip; ac_word=$2
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 printf %s "checking for $ac_word... " >&6; }
6859 if test ${ac_cv_prog_STRIP+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else case e in #(
6863 e) if test -n "$STRIP"; then
6864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 case $as_dir in #(((
6871 '') as_dir=./ ;;
6872 */) ;;
6873 *) as_dir=$as_dir/ ;;
6874 esac
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi ;;
6886 esac
6887 fi
6888 STRIP=$ac_cv_prog_STRIP
6889 if test -n "$STRIP"; then
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6891 printf "%s\n" "$STRIP" >&6; }
6892 else
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 printf "%s\n" "no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_STRIP"; then
6900 ac_ct_STRIP=$STRIP
6901 # Extract the first word of "strip", so it can be a program name with args.
6902 set dummy strip; ac_word=$2
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 printf %s "checking for $ac_word... " >&6; }
6905 if test ${ac_cv_prog_ac_ct_STRIP+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else case e in #(
6909 e) if test -n "$ac_ct_STRIP"; then
6910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 case $as_dir in #(((
6917 '') as_dir=./ ;;
6918 */) ;;
6919 *) as_dir=$as_dir/ ;;
6920 esac
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_STRIP="strip"
6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi ;;
6932 esac
6933 fi
6934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6935 if test -n "$ac_ct_STRIP"; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6937 printf "%s\n" "$ac_ct_STRIP" >&6; }
6938 else
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 printf "%s\n" "no" >&6; }
6941 fi
6942
6943 if test "x$ac_ct_STRIP" = x; then
6944 STRIP=":"
6945 else
6946 case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952 STRIP=$ac_ct_STRIP
6953 fi
6954 else
6955 STRIP="$ac_cv_prog_STRIP"
6956 fi
6957
6958 test -z "$STRIP" && STRIP=:
6959
6960
6961
6962
6963
6964
6965
6966 test -z "$RANLIB" && RANLIB=:
6967
6968
6969
6970
6971
6972
6973 # Determine commands to create old-style static archives.
6974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6975 old_postinstall_cmds='chmod 644 $oldlib'
6976 old_postuninstall_cmds=
6977
6978 if test -n "$RANLIB"; then
6979 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6981 fi
6982
6983 case $host_os in
6984 darwin*)
6985 lock_old_archive_extraction=yes ;;
6986 *)
6987 lock_old_archive_extraction=no ;;
6988 esac
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028 # If no C compiler was specified, use CC.
7029 LTCC=${LTCC-"$CC"}
7030
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
7034 # Allow CC to be a program name with arguments.
7035 compiler=$CC
7036
7037
7038 # Check for command to grab the raw symbol name followed by C symbol from nm.
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7040 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7041 if test ${lt_cv_sys_global_symbol_pipe+y}
7042 then :
7043 printf %s "(cached) " >&6
7044 else case e in #(
7045 e)
7046 # These are sane defaults that work on at least a few old systems.
7047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7048
7049 # Character class describing NM global symbol codes.
7050 symcode='[BCDEGRST]'
7051
7052 # Regexp to match symbols that can be accessed directly from C.
7053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7054
7055 # Define system-specific variables.
7056 case $host_os in
7057 aix*)
7058 symcode='[BCDT]'
7059 ;;
7060 cygwin* | mingw* | windows* | pw32* | cegcc*)
7061 symcode='[ABCDGISTW]'
7062 ;;
7063 hpux*)
7064 if test ia64 = "$host_cpu"; then
7065 symcode='[ABCDEGRST]'
7066 fi
7067 ;;
7068 irix* | nonstopux*)
7069 symcode='[BCDEGRST]'
7070 ;;
7071 osf*)
7072 symcode='[BCDEGQRST]'
7073 ;;
7074 solaris*)
7075 symcode='[BCDRT]'
7076 ;;
7077 sco3.2v5*)
7078 symcode='[DT]'
7079 ;;
7080 sysv4.2uw2*)
7081 symcode='[DT]'
7082 ;;
7083 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7084 symcode='[ABDT]'
7085 ;;
7086 sysv4)
7087 symcode='[DFNSTU]'
7088 ;;
7089 esac
7090
7091 # If we're using GNU nm, then use its standard symbol codes.
7092 case `$NM -V 2>&1` in
7093 *GNU* | *'with BFD'*)
7094 symcode='[ABCDGIRSTW]' ;;
7095 esac
7096
7097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7098 # Gets list of data symbols to import.
7099 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7100 # Adjust the below global symbol transforms to fixup imported variables.
7101 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7102 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7103 lt_c_name_lib_hook="\
7104 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7105 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7106 else
7107 # Disable hooks by default.
7108 lt_cv_sys_global_symbol_to_import=
7109 lt_cdecl_hook=
7110 lt_c_name_hook=
7111 lt_c_name_lib_hook=
7112 fi
7113
7114 # Transform an extracted symbol line into a proper C declaration.
7115 # Some systems (esp. on ia64) link data and code symbols differently,
7116 # so use this general approach.
7117 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7118 $lt_cdecl_hook\
7119 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7120 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7121
7122 # Transform an extracted symbol line into symbol name and symbol address
7123 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7124 $lt_c_name_hook\
7125 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7126 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7127
7128 # Transform an extracted symbol line into symbol name with lib prefix and
7129 # symbol address.
7130 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7131 $lt_c_name_lib_hook\
7132 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7133 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7134 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7135
7136 # Handle CRLF in mingw tool chain
7137 opt_cr=
7138 case $build_os in
7139 mingw* | windows*)
7140 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7141 ;;
7142 esac
7143
7144 # Try without a prefix underscore, then with it.
7145 for ac_symprfx in "" "_"; do
7146
7147 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7148 symxfrm="\\1 $ac_symprfx\\2 \\2"
7149
7150 # Write the raw and C identifiers.
7151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7152 # Fake it for dumpbin and say T for any non-static function,
7153 # D for any global variable and I for any imported variable.
7154 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7155 # which start with @ or ?.
7156 lt_cv_sys_global_symbol_pipe="$AWK '"\
7157 " {last_section=section; section=\$ 3};"\
7158 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7159 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7160 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7161 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7162 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7163 " \$ 0!~/External *\|/{next};"\
7164 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7165 " {if(hide[section]) next};"\
7166 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7167 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7168 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7169 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7170 " ' prfx=^$ac_symprfx"
7171 else
7172 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7173 fi
7174 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7175
7176 # Check to see that the pipe works correctly.
7177 pipe_works=no
7178
7179 rm -f conftest*
7180 cat > conftest.$ac_ext <<_LT_EOF
7181 #ifdef __cplusplus
7182 extern "C" {
7183 #endif
7184 char nm_test_var;
7185 void nm_test_func(void);
7186 void nm_test_func(void){}
7187 #ifdef __cplusplus
7188 }
7189 #endif
7190 int main(void){nm_test_var='a';nm_test_func();return(0);}
7191 _LT_EOF
7192
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7195 ac_status=$?
7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 # Now try to grab the symbols.
7199 nlist=conftest.nm
7200 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7201 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7202 # Try sorting and uniquifying the output.
7203 if sort "$nlist" | uniq > "$nlist"T; then
7204 mv -f "$nlist"T "$nlist"
7205 else
7206 rm -f "$nlist"T
7207 fi
7208
7209 # Make sure that we snagged all the symbols we need.
7210 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7211 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7212 cat <<_LT_EOF > conftest.$ac_ext
7213 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7214 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7215 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7216 relocations are performed -- see ld's documentation on pseudo-relocs. */
7217 # define LT_DLSYM_CONST
7218 #elif defined __osf__
7219 /* This system does not cope well with relocations in const data. */
7220 # define LT_DLSYM_CONST
7221 #else
7222 # define LT_DLSYM_CONST const
7223 #endif
7224
7225 #ifdef __cplusplus
7226 extern "C" {
7227 #endif
7228
7229 _LT_EOF
7230 # Now generate the symbol file.
7231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7232
7233 cat <<_LT_EOF >> conftest.$ac_ext
7234
7235 /* The mapping between symbol names and symbols. */
7236 LT_DLSYM_CONST struct {
7237 const char *name;
7238 void *address;
7239 }
7240 lt__PROGRAM__LTX_preloaded_symbols[] =
7241 {
7242 { "@PROGRAM@", (void *) 0 },
7243 _LT_EOF
7244 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7245 cat <<\_LT_EOF >> conftest.$ac_ext
7246 {0, (void *) 0}
7247 };
7248
7249 /* This works around a problem in FreeBSD linker */
7250 #ifdef FREEBSD_WORKAROUND
7251 static const void *lt_preloaded_setup() {
7252 return lt__PROGRAM__LTX_preloaded_symbols;
7253 }
7254 #endif
7255
7256 #ifdef __cplusplus
7257 }
7258 #endif
7259 _LT_EOF
7260 # Now try linking the two files.
7261 mv conftest.$ac_objext conftstm.$ac_objext
7262 lt_globsym_save_LIBS=$LIBS
7263 lt_globsym_save_CFLAGS=$CFLAGS
7264 LIBS=conftstm.$ac_objext
7265 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7267 (eval $ac_link) 2>&5
7268 ac_status=$?
7269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7271 pipe_works=yes
7272 fi
7273 LIBS=$lt_globsym_save_LIBS
7274 CFLAGS=$lt_globsym_save_CFLAGS
7275 else
7276 echo "cannot find nm_test_func in $nlist" >&5
7277 fi
7278 else
7279 echo "cannot find nm_test_var in $nlist" >&5
7280 fi
7281 else
7282 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7283 fi
7284 else
7285 echo "$progname: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 fi
7288 rm -rf conftest* conftst*
7289
7290 # Do not use the global_symbol_pipe unless it works.
7291 if test yes = "$pipe_works"; then
7292 break
7293 else
7294 lt_cv_sys_global_symbol_pipe=
7295 fi
7296 done
7297 ;;
7298 esac
7299 fi
7300
7301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7302 lt_cv_sys_global_symbol_to_cdecl=
7303 fi
7304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7306 printf "%s\n" "failed" >&6; }
7307 else
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7309 printf "%s\n" "ok" >&6; }
7310 fi
7311
7312 # Response file support.
7313 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7314 nm_file_list_spec='@'
7315 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7316 nm_file_list_spec='@'
7317 fi
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7356 printf %s "checking for sysroot... " >&6; }
7357
7358 # Check whether --with-sysroot was given.
7359 if test ${with_sysroot+y}
7360 then :
7361 withval=$with_sysroot;
7362 else case e in #(
7363 e) with_sysroot=no ;;
7364 esac
7365 fi
7366
7367
7368 lt_sysroot=
7369 case $with_sysroot in #(
7370 yes)
7371 if test yes = "$GCC"; then
7372 # Trim trailing / since we'll always append absolute paths and we want
7373 # to avoid //, if only for less confusing output for the user.
7374 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7375 fi
7376 ;; #(
7377 /*)
7378 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7379 ;; #(
7380 no|'')
7381 ;; #(
7382 *)
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7384 printf "%s\n" "$with_sysroot" >&6; }
7385 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7386 ;;
7387 esac
7388
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7390 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7391
7392
7393
7394
7395
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7397 printf %s "checking for a working dd... " >&6; }
7398 if test ${ac_cv_path_lt_DD+y}
7399 then :
7400 printf %s "(cached) " >&6
7401 else case e in #(
7402 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7403 cat conftest.i conftest.i >conftest2.i
7404 : ${lt_DD:=$DD}
7405 if test -z "$lt_DD"; then
7406 ac_path_lt_DD_found=false
7407 # Loop through the user's path and test for each of PROGNAME-LIST
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 case $as_dir in #(((
7413 '') as_dir=./ ;;
7414 */) ;;
7415 *) as_dir=$as_dir/ ;;
7416 esac
7417 for ac_prog in dd
7418 do
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7421 as_fn_executable_p "$ac_path_lt_DD" || continue
7422 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7423 cmp -s conftest.i conftest.out \
7424 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7425 fi
7426 $ac_path_lt_DD_found && break 3
7427 done
7428 done
7429 done
7430 IFS=$as_save_IFS
7431 if test -z "$ac_cv_path_lt_DD"; then
7432 :
7433 fi
7434 else
7435 ac_cv_path_lt_DD=$lt_DD
7436 fi
7437
7438 rm -f conftest.i conftest2.i conftest.out ;;
7439 esac
7440 fi
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7442 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7443
7444
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7446 printf %s "checking how to truncate binary pipes... " >&6; }
7447 if test ${lt_cv_truncate_bin+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else case e in #(
7451 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7452 cat conftest.i conftest.i >conftest2.i
7453 lt_cv_truncate_bin=
7454 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7455 cmp -s conftest.i conftest.out \
7456 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7457 fi
7458 rm -f conftest.i conftest2.i conftest.out
7459 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7460 esac
7461 fi
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7463 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7464
7465
7466
7467
7468
7469
7470
7471 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7472 func_cc_basename ()
7473 {
7474 for cc_temp in $*""; do
7475 case $cc_temp in
7476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7478 \-*) ;;
7479 *) break;;
7480 esac
7481 done
7482 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7483 }
7484
7485 # Check whether --enable-libtool-lock was given.
7486 if test ${enable_libtool_lock+y}
7487 then :
7488 enableval=$enable_libtool_lock;
7489 fi
7490
7491 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7492
7493 # Some flags need to be propagated to the compiler or linker for good
7494 # libtool support.
7495 case $host in
7496 ia64-*-hpux*)
7497 # Find out what ABI is being produced by ac_compile, and set mode
7498 # options accordingly.
7499 echo 'int i;' > conftest.$ac_ext
7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501 (eval $ac_compile) 2>&5
7502 ac_status=$?
7503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; then
7505 case `$FILECMD conftest.$ac_objext` in
7506 *ELF-32*)
7507 HPUX_IA64_MODE=32
7508 ;;
7509 *ELF-64*)
7510 HPUX_IA64_MODE=64
7511 ;;
7512 esac
7513 fi
7514 rm -rf conftest*
7515 ;;
7516 *-*-irix6*)
7517 # Find out what ABI is being produced by ac_compile, and set linker
7518 # options accordingly.
7519 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 if test yes = "$lt_cv_prog_gnu_ld"; then
7526 case `$FILECMD conftest.$ac_objext` in
7527 *32-bit*)
7528 LD="${LD-ld} -melf32bsmip"
7529 ;;
7530 *N32*)
7531 LD="${LD-ld} -melf32bmipn32"
7532 ;;
7533 *64-bit*)
7534 LD="${LD-ld} -melf64bmip"
7535 ;;
7536 esac
7537 else
7538 case `$FILECMD conftest.$ac_objext` in
7539 *32-bit*)
7540 LD="${LD-ld} -32"
7541 ;;
7542 *N32*)
7543 LD="${LD-ld} -n32"
7544 ;;
7545 *64-bit*)
7546 LD="${LD-ld} -64"
7547 ;;
7548 esac
7549 fi
7550 fi
7551 rm -rf conftest*
7552 ;;
7553
7554 mips64*-*linux*)
7555 # Find out what ABI is being produced by ac_compile, and set linker
7556 # options accordingly.
7557 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 emul=elf
7564 case `$FILECMD conftest.$ac_objext` in
7565 *32-bit*)
7566 emul="${emul}32"
7567 ;;
7568 *64-bit*)
7569 emul="${emul}64"
7570 ;;
7571 esac
7572 case `$FILECMD conftest.$ac_objext` in
7573 *MSB*)
7574 emul="${emul}btsmip"
7575 ;;
7576 *LSB*)
7577 emul="${emul}ltsmip"
7578 ;;
7579 esac
7580 case `$FILECMD conftest.$ac_objext` in
7581 *N32*)
7582 emul="${emul}n32"
7583 ;;
7584 esac
7585 LD="${LD-ld} -m $emul"
7586 fi
7587 rm -rf conftest*
7588 ;;
7589
7590 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7591 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7592 # Find out what ABI is being produced by ac_compile, and set linker
7593 # options accordingly. Note that the listed cases only cover the
7594 # situations where additional linker options are needed (such as when
7595 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7596 # vice versa); the common cases where no linker options are needed do
7597 # not appear in the list.
7598 echo 'int i;' > conftest.$ac_ext
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7600 (eval $ac_compile) 2>&5
7601 ac_status=$?
7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
7604 case `$FILECMD conftest.o` in
7605 *32-bit*)
7606 case $host in
7607 x86_64-*kfreebsd*-gnu)
7608 LD="${LD-ld} -m elf_i386_fbsd"
7609 ;;
7610 x86_64-*linux*|x86_64-gnu*)
7611 case `$FILECMD conftest.o` in
7612 *x86-64*)
7613 LD="${LD-ld} -m elf32_x86_64"
7614 ;;
7615 *)
7616 LD="${LD-ld} -m elf_i386"
7617 ;;
7618 esac
7619 ;;
7620 powerpc64le-*linux*)
7621 LD="${LD-ld} -m elf32lppclinux"
7622 ;;
7623 powerpc64-*linux*)
7624 LD="${LD-ld} -m elf32ppclinux"
7625 ;;
7626 s390x-*linux*)
7627 LD="${LD-ld} -m elf_s390"
7628 ;;
7629 sparc64-*linux*)
7630 LD="${LD-ld} -m elf32_sparc"
7631 ;;
7632 esac
7633 ;;
7634 *64-bit*)
7635 case $host in
7636 x86_64-*kfreebsd*-gnu)
7637 LD="${LD-ld} -m elf_x86_64_fbsd"
7638 ;;
7639 x86_64-*linux*|x86_64-gnu*)
7640 LD="${LD-ld} -m elf_x86_64"
7641 ;;
7642 powerpcle-*linux*)
7643 LD="${LD-ld} -m elf64lppc"
7644 ;;
7645 powerpc-*linux*)
7646 LD="${LD-ld} -m elf64ppc"
7647 ;;
7648 s390*-*linux*|s390*-*tpf*)
7649 LD="${LD-ld} -m elf64_s390"
7650 ;;
7651 sparc*-*linux*)
7652 LD="${LD-ld} -m elf64_sparc"
7653 ;;
7654 esac
7655 ;;
7656 esac
7657 fi
7658 rm -rf conftest*
7659 ;;
7660
7661 *-*-sco3.2v5*)
7662 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7663 SAVE_CFLAGS=$CFLAGS
7664 CFLAGS="$CFLAGS -belf"
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7666 printf %s "checking whether the C compiler needs -belf... " >&6; }
7667 if test ${lt_cv_cc_needs_belf+y}
7668 then :
7669 printf %s "(cached) " >&6
7670 else case e in #(
7671 e) ac_ext=c
7672 ac_cpp='$CPP $CPPFLAGS'
7673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679
7680 int
7681 main (void)
7682 {
7683
7684 ;
7685 return 0;
7686 }
7687 _ACEOF
7688 if ac_fn_c_try_link "$LINENO"
7689 then :
7690 lt_cv_cc_needs_belf=yes
7691 else case e in #(
7692 e) lt_cv_cc_needs_belf=no ;;
7693 esac
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7696 conftest$ac_exeext conftest.$ac_ext
7697 ac_ext=c
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702 ;;
7703 esac
7704 fi
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7706 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7707 if test yes != "$lt_cv_cc_needs_belf"; then
7708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7709 CFLAGS=$SAVE_CFLAGS
7710 fi
7711 ;;
7712 *-*solaris*)
7713 # Find out what ABI is being produced by ac_compile, and set linker
7714 # options accordingly.
7715 echo 'int i;' > conftest.$ac_ext
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717 (eval $ac_compile) 2>&5
7718 ac_status=$?
7719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }; then
7721 case `$FILECMD conftest.o` in
7722 *64-bit*)
7723 case $lt_cv_prog_gnu_ld in
7724 yes*)
7725 case $host in
7726 i?86-*-solaris*|x86_64-*-solaris*)
7727 LD="${LD-ld} -m elf_x86_64"
7728 ;;
7729 sparc*-*-solaris*)
7730 LD="${LD-ld} -m elf64_sparc"
7731 ;;
7732 esac
7733 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7734 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7735 LD=${LD-ld}_sol2
7736 fi
7737 ;;
7738 *)
7739 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7740 LD="${LD-ld} -64"
7741 fi
7742 ;;
7743 esac
7744 ;;
7745 esac
7746 fi
7747 rm -rf conftest*
7748 ;;
7749 esac
7750
7751 need_locks=$enable_libtool_lock
7752
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}mt; ac_word=$2
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 printf %s "checking for $ac_word... " >&6; }
7758 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else case e in #(
7762 e) if test -n "$MANIFEST_TOOL"; then
7763 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 case $as_dir in #(((
7770 '') as_dir=./ ;;
7771 */) ;;
7772 *) as_dir=$as_dir/ ;;
7773 esac
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi ;;
7785 esac
7786 fi
7787 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7788 if test -n "$MANIFEST_TOOL"; then
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7790 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7791 else
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 printf "%s\n" "no" >&6; }
7794 fi
7795
7796
7797 fi
7798 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7799 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7800 # Extract the first word of "mt", so it can be a program name with args.
7801 set dummy mt; ac_word=$2
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 printf %s "checking for $ac_word... " >&6; }
7804 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else case e in #(
7808 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7809 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 case $as_dir in #(((
7816 '') as_dir=./ ;;
7817 */) ;;
7818 *) as_dir=$as_dir/ ;;
7819 esac
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi ;;
7831 esac
7832 fi
7833 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7834 if test -n "$ac_ct_MANIFEST_TOOL"; then
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7836 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7837 else
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 printf "%s\n" "no" >&6; }
7840 fi
7841
7842 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7843 MANIFEST_TOOL=":"
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7852 fi
7853 else
7854 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7855 fi
7856
7857 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7859 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7860 if test ${lt_cv_path_manifest_tool+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else case e in #(
7864 e) lt_cv_path_manifest_tool=no
7865 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7866 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7867 cat conftest.err >&5
7868 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7869 lt_cv_path_manifest_tool=yes
7870 fi
7871 rm -f conftest* ;;
7872 esac
7873 fi
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7875 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7876 if test yes != "$lt_cv_path_manifest_tool"; then
7877 MANIFEST_TOOL=:
7878 fi
7879
7880
7881
7882
7883
7884
7885 case $host_os in
7886 rhapsody* | darwin*)
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 printf %s "checking for $ac_word... " >&6; }
7892 if test ${ac_cv_prog_DSYMUTIL+y}
7893 then :
7894 printf %s "(cached) " >&6
7895 else case e in #(
7896 e) if test -n "$DSYMUTIL"; then
7897 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 case $as_dir in #(((
7904 '') as_dir=./ ;;
7905 */) ;;
7906 *) as_dir=$as_dir/ ;;
7907 esac
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi ;;
7919 esac
7920 fi
7921 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7922 if test -n "$DSYMUTIL"; then
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7924 printf "%s\n" "$DSYMUTIL" >&6; }
7925 else
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 printf "%s\n" "no" >&6; }
7928 fi
7929
7930
7931 fi
7932 if test -z "$ac_cv_prog_DSYMUTIL"; then
7933 ac_ct_DSYMUTIL=$DSYMUTIL
7934 # Extract the first word of "dsymutil", so it can be a program name with args.
7935 set dummy dsymutil; ac_word=$2
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 printf %s "checking for $ac_word... " >&6; }
7938 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7939 then :
7940 printf %s "(cached) " >&6
7941 else case e in #(
7942 e) if test -n "$ac_ct_DSYMUTIL"; then
7943 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 case $as_dir in #(((
7950 '') as_dir=./ ;;
7951 */) ;;
7952 *) as_dir=$as_dir/ ;;
7953 esac
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi ;;
7965 esac
7966 fi
7967 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7968 if test -n "$ac_ct_DSYMUTIL"; then
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7970 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7971 else
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 printf "%s\n" "no" >&6; }
7974 fi
7975
7976 if test "x$ac_ct_DSYMUTIL" = x; then
7977 DSYMUTIL=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 DSYMUTIL=$ac_ct_DSYMUTIL
7986 fi
7987 else
7988 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7989 fi
7990
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 printf %s "checking for $ac_word... " >&6; }
7996 if test ${ac_cv_prog_NMEDIT+y}
7997 then :
7998 printf %s "(cached) " >&6
7999 else case e in #(
8000 e) if test -n "$NMEDIT"; then
8001 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006 IFS=$as_save_IFS
8007 case $as_dir in #(((
8008 '') as_dir=./ ;;
8009 */) ;;
8010 *) as_dir=$as_dir/ ;;
8011 esac
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018 done
8019 done
8020 IFS=$as_save_IFS
8021
8022 fi ;;
8023 esac
8024 fi
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 printf "%s\n" "$NMEDIT" >&6; }
8029 else
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 printf "%s\n" "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037 ac_ct_NMEDIT=$NMEDIT
8038 # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 printf %s "checking for $ac_word... " >&6; }
8042 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8043 then :
8044 printf %s "(cached) " >&6
8045 else case e in #(
8046 e) if test -n "$ac_ct_NMEDIT"; then
8047 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052 IFS=$as_save_IFS
8053 case $as_dir in #(((
8054 '') as_dir=./ ;;
8055 */) ;;
8056 *) as_dir=$as_dir/ ;;
8057 esac
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 fi ;;
8069 esac
8070 fi
8071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8072 if test -n "$ac_ct_NMEDIT"; then
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8074 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8075 else
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 printf "%s\n" "no" >&6; }
8078 fi
8079
8080 if test "x$ac_ct_NMEDIT" = x; then
8081 NMEDIT=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087 ac_tool_warned=yes ;;
8088 esac
8089 NMEDIT=$ac_ct_NMEDIT
8090 fi
8091 else
8092 NMEDIT="$ac_cv_prog_NMEDIT"
8093 fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 printf %s "checking for $ac_word... " >&6; }
8100 if test ${ac_cv_prog_LIPO+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else case e in #(
8104 e) if test -n "$LIPO"; then
8105 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110 IFS=$as_save_IFS
8111 case $as_dir in #(((
8112 '') as_dir=./ ;;
8113 */) ;;
8114 *) as_dir=$as_dir/ ;;
8115 esac
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi ;;
8127 esac
8128 fi
8129 LIPO=$ac_cv_prog_LIPO
8130 if test -n "$LIPO"; then
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8132 printf "%s\n" "$LIPO" >&6; }
8133 else
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 printf "%s\n" "no" >&6; }
8136 fi
8137
8138
8139 fi
8140 if test -z "$ac_cv_prog_LIPO"; then
8141 ac_ct_LIPO=$LIPO
8142 # Extract the first word of "lipo", so it can be a program name with args.
8143 set dummy lipo; ac_word=$2
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 printf %s "checking for $ac_word... " >&6; }
8146 if test ${ac_cv_prog_ac_ct_LIPO+y}
8147 then :
8148 printf %s "(cached) " >&6
8149 else case e in #(
8150 e) if test -n "$ac_ct_LIPO"; then
8151 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156 IFS=$as_save_IFS
8157 case $as_dir in #(((
8158 '') as_dir=./ ;;
8159 */) ;;
8160 *) as_dir=$as_dir/ ;;
8161 esac
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_LIPO="lipo"
8165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168 done
8169 done
8170 IFS=$as_save_IFS
8171
8172 fi ;;
8173 esac
8174 fi
8175 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8176 if test -n "$ac_ct_LIPO"; then
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8178 printf "%s\n" "$ac_ct_LIPO" >&6; }
8179 else
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 printf "%s\n" "no" >&6; }
8182 fi
8183
8184 if test "x$ac_ct_LIPO" = x; then
8185 LIPO=":"
8186 else
8187 case $cross_compiling:$ac_tool_warned in
8188 yes:)
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193 LIPO=$ac_ct_LIPO
8194 fi
8195 else
8196 LIPO="$ac_cv_prog_LIPO"
8197 fi
8198
8199 if test -n "$ac_tool_prefix"; then
8200 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8201 set dummy ${ac_tool_prefix}otool; ac_word=$2
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 printf %s "checking for $ac_word... " >&6; }
8204 if test ${ac_cv_prog_OTOOL+y}
8205 then :
8206 printf %s "(cached) " >&6
8207 else case e in #(
8208 e) if test -n "$OTOOL"; then
8209 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 case $as_dir in #(((
8216 '') as_dir=./ ;;
8217 */) ;;
8218 *) as_dir=$as_dir/ ;;
8219 esac
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi ;;
8231 esac
8232 fi
8233 OTOOL=$ac_cv_prog_OTOOL
8234 if test -n "$OTOOL"; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236 printf "%s\n" "$OTOOL" >&6; }
8237 else
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 printf "%s\n" "no" >&6; }
8240 fi
8241
8242
8243 fi
8244 if test -z "$ac_cv_prog_OTOOL"; then
8245 ac_ct_OTOOL=$OTOOL
8246 # Extract the first word of "otool", so it can be a program name with args.
8247 set dummy otool; ac_word=$2
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 printf %s "checking for $ac_word... " >&6; }
8250 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else case e in #(
8254 e) if test -n "$ac_ct_OTOOL"; then
8255 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 case $as_dir in #(((
8262 '') as_dir=./ ;;
8263 */) ;;
8264 *) as_dir=$as_dir/ ;;
8265 esac
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_ac_ct_OTOOL="otool"
8269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi ;;
8277 esac
8278 fi
8279 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8280 if test -n "$ac_ct_OTOOL"; then
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8282 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8283 else
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 printf "%s\n" "no" >&6; }
8286 fi
8287
8288 if test "x$ac_ct_OTOOL" = x; then
8289 OTOOL=":"
8290 else
8291 case $cross_compiling:$ac_tool_warned in
8292 yes:)
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8295 ac_tool_warned=yes ;;
8296 esac
8297 OTOOL=$ac_ct_OTOOL
8298 fi
8299 else
8300 OTOOL="$ac_cv_prog_OTOOL"
8301 fi
8302
8303 if test -n "$ac_tool_prefix"; then
8304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8305 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 printf %s "checking for $ac_word... " >&6; }
8308 if test ${ac_cv_prog_OTOOL64+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else case e in #(
8312 e) if test -n "$OTOOL64"; then
8313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 case $as_dir in #(((
8320 '') as_dir=./ ;;
8321 */) ;;
8322 *) as_dir=$as_dir/ ;;
8323 esac
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi ;;
8335 esac
8336 fi
8337 OTOOL64=$ac_cv_prog_OTOOL64
8338 if test -n "$OTOOL64"; then
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8340 printf "%s\n" "$OTOOL64" >&6; }
8341 else
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 printf "%s\n" "no" >&6; }
8344 fi
8345
8346
8347 fi
8348 if test -z "$ac_cv_prog_OTOOL64"; then
8349 ac_ct_OTOOL64=$OTOOL64
8350 # Extract the first word of "otool64", so it can be a program name with args.
8351 set dummy otool64; ac_word=$2
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 printf %s "checking for $ac_word... " >&6; }
8354 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8355 then :
8356 printf %s "(cached) " >&6
8357 else case e in #(
8358 e) if test -n "$ac_ct_OTOOL64"; then
8359 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 case $as_dir in #(((
8366 '') as_dir=./ ;;
8367 */) ;;
8368 *) as_dir=$as_dir/ ;;
8369 esac
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_ac_ct_OTOOL64="otool64"
8373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi ;;
8381 esac
8382 fi
8383 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8384 if test -n "$ac_ct_OTOOL64"; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8386 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8387 else
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 printf "%s\n" "no" >&6; }
8390 fi
8391
8392 if test "x$ac_ct_OTOOL64" = x; then
8393 OTOOL64=":"
8394 else
8395 case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8400 esac
8401 OTOOL64=$ac_ct_OTOOL64
8402 fi
8403 else
8404 OTOOL64="$ac_cv_prog_OTOOL64"
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8434 printf %s "checking for -single_module linker flag... " >&6; }
8435 if test ${lt_cv_apple_cc_single_mod+y}
8436 then :
8437 printf %s "(cached) " >&6
8438 else case e in #(
8439 e) lt_cv_apple_cc_single_mod=no
8440 if test -z "$LT_MULTI_MODULE"; then
8441 # By default we will add the -single_module flag. You can override
8442 # by either setting the environment variable LT_MULTI_MODULE
8443 # non-empty at configure time, or by adding -multi_module to the
8444 # link flags.
8445 rm -rf libconftest.dylib*
8446 echo "int foo(void){return 1;}" > conftest.c
8447 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8448 -dynamiclib -Wl,-single_module conftest.c" >&5
8449 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8451 _lt_result=$?
8452 # If there is a non-empty error log, and "single_module"
8453 # appears in it, assume the flag caused a linker warning
8454 if test -s conftest.err && $GREP single_module conftest.err; then
8455 cat conftest.err >&5
8456 # Otherwise, if the output was created with a 0 exit code from
8457 # the compiler, it worked.
8458 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8459 lt_cv_apple_cc_single_mod=yes
8460 else
8461 cat conftest.err >&5
8462 fi
8463 rm -rf libconftest.dylib*
8464 rm -f conftest.*
8465 fi ;;
8466 esac
8467 fi
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8469 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8470
8471 # Feature test to disable chained fixups since it is not
8472 # compatible with '-undefined dynamic_lookup'
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8474 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8475 if test ${lt_cv_support_no_fixup_chains+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else case e in #(
8479 e) save_LDFLAGS=$LDFLAGS
8480 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483
8484 int
8485 main (void)
8486 {
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"
8493 then :
8494 lt_cv_support_no_fixup_chains=yes
8495 else case e in #(
8496 e) lt_cv_support_no_fixup_chains=no
8497 ;;
8498 esac
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LDFLAGS=$save_LDFLAGS
8503
8504 ;;
8505 esac
8506 fi
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8508 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8509
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8511 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8512 if test ${lt_cv_ld_exported_symbols_list+y}
8513 then :
8514 printf %s "(cached) " >&6
8515 else case e in #(
8516 e) lt_cv_ld_exported_symbols_list=no
8517 save_LDFLAGS=$LDFLAGS
8518 echo "_main" > conftest.sym
8519 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522
8523 int
8524 main (void)
8525 {
8526
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"
8532 then :
8533 lt_cv_ld_exported_symbols_list=yes
8534 else case e in #(
8535 e) lt_cv_ld_exported_symbols_list=no ;;
8536 esac
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8539 conftest$ac_exeext conftest.$ac_ext
8540 LDFLAGS=$save_LDFLAGS
8541 ;;
8542 esac
8543 fi
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8545 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8546
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8548 printf %s "checking for -force_load linker flag... " >&6; }
8549 if test ${lt_cv_ld_force_load+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else case e in #(
8553 e) lt_cv_ld_force_load=no
8554 cat > conftest.c << _LT_EOF
8555 int forced_loaded() { return 2;}
8556 _LT_EOF
8557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8559 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8560 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8561 echo "$RANLIB libconftest.a" >&5
8562 $RANLIB libconftest.a 2>&5
8563 cat > conftest.c << _LT_EOF
8564 int main(void) { return 0;}
8565 _LT_EOF
8566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8568 _lt_result=$?
8569 if test -s conftest.err && $GREP force_load conftest.err; then
8570 cat conftest.err >&5
8571 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8572 lt_cv_ld_force_load=yes
8573 else
8574 cat conftest.err >&5
8575 fi
8576 rm -f conftest.err libconftest.a conftest conftest.c
8577 rm -rf conftest.dSYM
8578 ;;
8579 esac
8580 fi
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8582 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8583 case $host_os in
8584 rhapsody* | darwin1.[012])
8585 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8586 darwin1.*)
8587 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8588 darwin*)
8589 case $MACOSX_DEPLOYMENT_TARGET,$host in
8590 10.[012],*|,*powerpc*-darwin[5-8]*)
8591 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8592 *)
8593 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8594 if test yes = "$lt_cv_support_no_fixup_chains"; then
8595 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8596 fi
8597 ;;
8598 esac
8599 ;;
8600 esac
8601 if test yes = "$lt_cv_apple_cc_single_mod"; then
8602 _lt_dar_single_mod='$single_module'
8603 fi
8604 _lt_dar_needs_single_mod=no
8605 case $host_os in
8606 rhapsody* | darwin1.*)
8607 _lt_dar_needs_single_mod=yes ;;
8608 darwin*)
8609 # When targeting Mac OS X 10.4 (darwin 8) or later,
8610 # -single_module is the default and -multi_module is unsupported.
8611 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8612 # target any OS version that needs -single_module.
8613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8614 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8615 _lt_dar_needs_single_mod=yes ;;
8616 esac
8617 ;;
8618 esac
8619 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8620 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8621 else
8622 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8623 fi
8624 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8625 _lt_dsymutil='~$DSYMUTIL $lib || :'
8626 else
8627 _lt_dsymutil=
8628 fi
8629 ;;
8630 esac
8631
8632 # func_munge_path_list VARIABLE PATH
8633 # -----------------------------------
8634 # VARIABLE is name of variable containing _space_ separated list of
8635 # directories to be munged by the contents of PATH, which is string
8636 # having a format:
8637 # "DIR[:DIR]:"
8638 # string "DIR[ DIR]" will be prepended to VARIABLE
8639 # ":DIR[:DIR]"
8640 # string "DIR[ DIR]" will be appended to VARIABLE
8641 # "DIRP[:DIRP]::[DIRA:]DIRA"
8642 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8643 # "DIRA[ DIRA]" will be appended to VARIABLE
8644 # "DIR[:DIR]"
8645 # VARIABLE will be replaced by "DIR[ DIR]"
8646 func_munge_path_list ()
8647 {
8648 case x$2 in
8649 x)
8650 ;;
8651 *:)
8652 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8653 ;;
8654 x:*)
8655 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8656 ;;
8657 *::*)
8658 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8659 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8660 ;;
8661 *)
8662 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8663 ;;
8664 esac
8665 }
8666
8667 ac_header= ac_cache=
8668 for ac_item in $ac_header_c_list
8669 do
8670 if test $ac_cache; then
8671 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8672 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8673 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8674 fi
8675 ac_header= ac_cache=
8676 elif test $ac_header; then
8677 ac_cache=$ac_item
8678 else
8679 ac_header=$ac_item
8680 fi
8681 done
8682
8683
8684
8685
8686
8687
8688
8689
8690 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8691 then :
8692
8693 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8694
8695 fi
8696 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8697 "
8698 if test "x$ac_cv_header_dlfcn_h" = xyes
8699 then :
8700 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8701
8702 fi
8703
8704
8705
8706
8707
8708 # Set options
8709
8710
8711
8712 enable_dlopen=no
8713
8714
8715 enable_win32_dll=no
8716
8717
8718 # Check whether --enable-shared was given.
8719 if test ${enable_shared+y}
8720 then :
8721 enableval=$enable_shared; p=${PACKAGE-default}
8722 case $enableval in
8723 yes) enable_shared=yes ;;
8724 no) enable_shared=no ;;
8725 *)
8726 enable_shared=no
8727 # Look at the argument we got. We use all the common list separators.
8728 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8729 for pkg in $enableval; do
8730 IFS=$lt_save_ifs
8731 if test "X$pkg" = "X$p"; then
8732 enable_shared=yes
8733 fi
8734 done
8735 IFS=$lt_save_ifs
8736 ;;
8737 esac
8738 else case e in #(
8739 e) enable_shared=yes ;;
8740 esac
8741 fi
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751 # Check whether --enable-static was given.
8752 if test ${enable_static+y}
8753 then :
8754 enableval=$enable_static; p=${PACKAGE-default}
8755 case $enableval in
8756 yes) enable_static=yes ;;
8757 no) enable_static=no ;;
8758 *)
8759 enable_static=no
8760 # Look at the argument we got. We use all the common list separators.
8761 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8762 for pkg in $enableval; do
8763 IFS=$lt_save_ifs
8764 if test "X$pkg" = "X$p"; then
8765 enable_static=yes
8766 fi
8767 done
8768 IFS=$lt_save_ifs
8769 ;;
8770 esac
8771 else case e in #(
8772 e) enable_static=yes ;;
8773 esac
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784 # Check whether --enable-pic was given.
8785 if test ${enable_pic+y}
8786 then :
8787 enableval=$enable_pic; lt_p=${PACKAGE-default}
8788 case $enableval in
8789 yes|no) pic_mode=$enableval ;;
8790 *)
8791 pic_mode=default
8792 # Look at the argument we got. We use all the common list separators.
8793 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8794 for lt_pkg in $enableval; do
8795 IFS=$lt_save_ifs
8796 if test "X$lt_pkg" = "X$lt_p"; then
8797 pic_mode=yes
8798 fi
8799 done
8800 IFS=$lt_save_ifs
8801 ;;
8802 esac
8803 else case e in #(
8804 e) # Check whether --with-pic was given.
8805 if test ${with_pic+y}
8806 then :
8807 withval=$with_pic; lt_p=${PACKAGE-default}
8808 case $withval in
8809 yes|no) pic_mode=$withval ;;
8810 *)
8811 pic_mode=default
8812 # Look at the argument we got. We use all the common list separators.
8813 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8814 for lt_pkg in $withval; do
8815 IFS=$lt_save_ifs
8816 if test "X$lt_pkg" = "X$lt_p"; then
8817 pic_mode=yes
8818 fi
8819 done
8820 IFS=$lt_save_ifs
8821 ;;
8822 esac
8823 else case e in #(
8824 e) pic_mode=default ;;
8825 esac
8826 fi
8827
8828 ;;
8829 esac
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838
8839 # Check whether --enable-fast-install was given.
8840 if test ${enable_fast_install+y}
8841 then :
8842 enableval=$enable_fast_install; p=${PACKAGE-default}
8843 case $enableval in
8844 yes) enable_fast_install=yes ;;
8845 no) enable_fast_install=no ;;
8846 *)
8847 enable_fast_install=no
8848 # Look at the argument we got. We use all the common list separators.
8849 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8850 for pkg in $enableval; do
8851 IFS=$lt_save_ifs
8852 if test "X$pkg" = "X$p"; then
8853 enable_fast_install=yes
8854 fi
8855 done
8856 IFS=$lt_save_ifs
8857 ;;
8858 esac
8859 else case e in #(
8860 e) enable_fast_install=yes ;;
8861 esac
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871 shared_archive_member_spec=
8872 case $host,$enable_shared in
8873 power*-*-aix[5-9]*,yes)
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8875 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8876 # Check whether --enable-aix-soname was given.
8877 if test ${enable_aix_soname+y}
8878 then :
8879 enableval=$enable_aix_soname; case $enableval in
8880 aix|svr4|both)
8881 ;;
8882 *)
8883 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8884 ;;
8885 esac
8886 lt_cv_with_aix_soname=$enable_aix_soname
8887 else case e in #(
8888 e) # Check whether --with-aix-soname was given.
8889 if test ${with_aix_soname+y}
8890 then :
8891 withval=$with_aix_soname; case $withval in
8892 aix|svr4|both)
8893 ;;
8894 *)
8895 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8896 ;;
8897 esac
8898 lt_cv_with_aix_soname=$with_aix_soname
8899 else case e in #(
8900 e) if test ${lt_cv_with_aix_soname+y}
8901 then :
8902 printf %s "(cached) " >&6
8903 else case e in #(
8904 e) lt_cv_with_aix_soname=aix ;;
8905 esac
8906 fi
8907 ;;
8908 esac
8909 fi
8910
8911 enable_aix_soname=$lt_cv_with_aix_soname ;;
8912 esac
8913 fi
8914
8915 with_aix_soname=$enable_aix_soname
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8917 printf "%s\n" "$with_aix_soname" >&6; }
8918 if test aix != "$with_aix_soname"; then
8919 # For the AIX way of multilib, we name the shared archive member
8920 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8921 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8922 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8923 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8924 if test 64 = "${OBJECT_MODE-32}"; then
8925 shared_archive_member_spec=shr_64
8926 else
8927 shared_archive_member_spec=shr
8928 fi
8929 fi
8930 ;;
8931 *)
8932 with_aix_soname=aix
8933 ;;
8934 esac
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945 # This can be used to rebuild libtool when needed
8946 LIBTOOL_DEPS=$ltmain
8947
8948 # Always use our own libtool.
8949 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 test -z "$LN_S" && LN_S="ln -s"
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995 if test -n "${ZSH_VERSION+set}"; then
8996 setopt NO_GLOB_SUBST
8997 fi
8998
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9000 printf %s "checking for objdir... " >&6; }
9001 if test ${lt_cv_objdir+y}
9002 then :
9003 printf %s "(cached) " >&6
9004 else case e in #(
9005 e) rm -f .libs 2>/dev/null
9006 mkdir .libs 2>/dev/null
9007 if test -d .libs; then
9008 lt_cv_objdir=.libs
9009 else
9010 # MS-DOS does not allow filenames that begin with a dot.
9011 lt_cv_objdir=_libs
9012 fi
9013 rmdir .libs 2>/dev/null ;;
9014 esac
9015 fi
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9017 printf "%s\n" "$lt_cv_objdir" >&6; }
9018 objdir=$lt_cv_objdir
9019
9020
9021
9022
9023
9024 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9025
9026
9027
9028
9029 case $host_os in
9030 aix3*)
9031 # AIX sometimes has problems with the GCC collect2 program. For some
9032 # reason, if we set the COLLECT_NAMES environment variable, the problems
9033 # vanish in a puff of smoke.
9034 if test set != "${COLLECT_NAMES+set}"; then
9035 COLLECT_NAMES=
9036 export COLLECT_NAMES
9037 fi
9038 ;;
9039 esac
9040
9041 # Global variables:
9042 ofile=libtool
9043 can_build_shared=yes
9044
9045 # All known linkers require a '.a' archive for static linking (except MSVC and
9046 # ICC, which need '.lib').
9047 libext=a
9048
9049 with_gnu_ld=$lt_cv_prog_gnu_ld
9050
9051 old_CC=$CC
9052 old_CFLAGS=$CFLAGS
9053
9054 # Set sane defaults for various variables
9055 test -z "$CC" && CC=cc
9056 test -z "$LTCC" && LTCC=$CC
9057 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9058 test -z "$LD" && LD=ld
9059 test -z "$ac_objext" && ac_objext=o
9060
9061 func_cc_basename $compiler
9062 cc_basename=$func_cc_basename_result
9063
9064
9065 # Only perform the check for file, if the check method requires it
9066 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9067 case $deplibs_check_method in
9068 file_magic*)
9069 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9071 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9072 if test ${lt_cv_path_MAGIC_CMD+y}
9073 then :
9074 printf %s "(cached) " >&6
9075 else case e in #(
9076 e) case $MAGIC_CMD in
9077 [\\/*] | ?:[\\/]*)
9078 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9079 ;;
9080 *)
9081 lt_save_MAGIC_CMD=$MAGIC_CMD
9082 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9084 for ac_dir in $ac_dummy; do
9085 IFS=$lt_save_ifs
9086 test -z "$ac_dir" && ac_dir=.
9087 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9088 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9089 if test -n "$file_magic_test_file"; then
9090 case $deplibs_check_method in
9091 "file_magic "*)
9092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9093 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9095 $EGREP "$file_magic_regex" > /dev/null; then
9096 :
9097 else
9098 cat <<_LT_EOF 1>&2
9099
9100 *** Warning: the command libtool uses to detect shared libraries,
9101 *** $file_magic_cmd, produces output that libtool cannot recognize.
9102 *** The result is that libtool may fail to recognize shared libraries
9103 *** as such. This will affect the creation of libtool libraries that
9104 *** depend on shared libraries, but programs linked with such libtool
9105 *** libraries will work regardless of this problem. Nevertheless, you
9106 *** may want to report the problem to your system manager and/or to
9107 *** bug-libtool@gnu.org
9108
9109 _LT_EOF
9110 fi ;;
9111 esac
9112 fi
9113 break
9114 fi
9115 done
9116 IFS=$lt_save_ifs
9117 MAGIC_CMD=$lt_save_MAGIC_CMD
9118 ;;
9119 esac ;;
9120 esac
9121 fi
9122
9123 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9124 if test -n "$MAGIC_CMD"; then
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9126 printf "%s\n" "$MAGIC_CMD" >&6; }
9127 else
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 printf "%s\n" "no" >&6; }
9130 fi
9131
9132
9133
9134
9135
9136 if test -z "$lt_cv_path_MAGIC_CMD"; then
9137 if test -n "$ac_tool_prefix"; then
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9139 printf %s "checking for file... " >&6; }
9140 if test ${lt_cv_path_MAGIC_CMD+y}
9141 then :
9142 printf %s "(cached) " >&6
9143 else case e in #(
9144 e) case $MAGIC_CMD in
9145 [\\/*] | ?:[\\/]*)
9146 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9147 ;;
9148 *)
9149 lt_save_MAGIC_CMD=$MAGIC_CMD
9150 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9151 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9152 for ac_dir in $ac_dummy; do
9153 IFS=$lt_save_ifs
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f "$ac_dir/file"; then
9156 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9157 if test -n "$file_magic_test_file"; then
9158 case $deplibs_check_method in
9159 "file_magic "*)
9160 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9161 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9163 $EGREP "$file_magic_regex" > /dev/null; then
9164 :
9165 else
9166 cat <<_LT_EOF 1>&2
9167
9168 *** Warning: the command libtool uses to detect shared libraries,
9169 *** $file_magic_cmd, produces output that libtool cannot recognize.
9170 *** The result is that libtool may fail to recognize shared libraries
9171 *** as such. This will affect the creation of libtool libraries that
9172 *** depend on shared libraries, but programs linked with such libtool
9173 *** libraries will work regardless of this problem. Nevertheless, you
9174 *** may want to report the problem to your system manager and/or to
9175 *** bug-libtool@gnu.org
9176
9177 _LT_EOF
9178 fi ;;
9179 esac
9180 fi
9181 break
9182 fi
9183 done
9184 IFS=$lt_save_ifs
9185 MAGIC_CMD=$lt_save_MAGIC_CMD
9186 ;;
9187 esac ;;
9188 esac
9189 fi
9190
9191 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9192 if test -n "$MAGIC_CMD"; then
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9194 printf "%s\n" "$MAGIC_CMD" >&6; }
9195 else
9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 printf "%s\n" "no" >&6; }
9198 fi
9199
9200
9201 else
9202 MAGIC_CMD=:
9203 fi
9204 fi
9205
9206 fi
9207 ;;
9208 esac
9209
9210 # Use C for the default configuration in the libtool script
9211
9212 lt_save_CC=$CC
9213 ac_ext=c
9214 ac_cpp='$CPP $CPPFLAGS'
9215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9218
9219
9220 # Source file extension for C test sources.
9221 ac_ext=c
9222
9223 # Object file extension for compiled C test sources.
9224 objext=o
9225 objext=$objext
9226
9227 # Code to be used in simple compile tests
9228 lt_simple_compile_test_code="int some_variable = 0;"
9229
9230 # Code to be used in simple link tests
9231 lt_simple_link_test_code='int main(void){return(0);}'
9232
9233
9234
9235
9236
9237
9238
9239 # If no C compiler was specified, use CC.
9240 LTCC=${LTCC-"$CC"}
9241
9242 # If no C compiler flags were specified, use CFLAGS.
9243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9244
9245 # Allow CC to be a program name with arguments.
9246 compiler=$CC
9247
9248 # Save the default compiler, since it gets overwritten when the other
9249 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9250 compiler_DEFAULT=$CC
9251
9252 # save warnings/boilerplate of simple test code
9253 ac_outfile=conftest.$ac_objext
9254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9256 _lt_compiler_boilerplate=`cat conftest.err`
9257 $RM conftest*
9258
9259 ac_outfile=conftest.$ac_objext
9260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9262 _lt_linker_boilerplate=`cat conftest.err`
9263 $RM -r conftest*
9264
9265
9266 ## CAVEAT EMPTOR:
9267 ## There is no encapsulation within the following macros, do not change
9268 ## the running order or otherwise move them around unless you know exactly
9269 ## what you are doing...
9270 if test -n "$compiler"; then
9271
9272 lt_prog_compiler_no_builtin_flag=
9273
9274 if test yes = "$GCC"; then
9275 case $cc_basename in
9276 nvcc*)
9277 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9278 *)
9279 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9280 esac
9281
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9283 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9284 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else case e in #(
9288 e) lt_cv_prog_compiler_rtti_exceptions=no
9289 ac_outfile=conftest.$ac_objext
9290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9291 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9292 # Insert the option either (1) after the last *FLAGS variable, or
9293 # (2) before a word containing "conftest.", or (3) at the end.
9294 # Note that $ac_compile itself does not contain backslashes and begins
9295 # with a dollar sign (not a hyphen), so the echo should work correctly.
9296 # The option is referenced via a variable to avoid confusing sed.
9297 lt_compile=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>conftest.err)
9303 ac_status=$?
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s "$ac_outfile"; then
9307 # The compiler can only warn and ignore the option if not recognized
9308 # So say no if there are warnings other than the usual output.
9309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9312 lt_cv_prog_compiler_rtti_exceptions=yes
9313 fi
9314 fi
9315 $RM conftest*
9316 ;;
9317 esac
9318 fi
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9320 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9321
9322 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9323 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9324 else
9325 :
9326 fi
9327
9328 fi
9329
9330
9331
9332
9333
9334
9335 lt_prog_compiler_wl=
9336 lt_prog_compiler_pic=
9337 lt_prog_compiler_static=
9338
9339
9340 if test yes = "$GCC"; then
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_static='-static'
9343
9344 case $host_os in
9345 aix*)
9346 # All AIX code is PIC.
9347 if test ia64 = "$host_cpu"; then
9348 # AIX 5 now supports IA64 processor
9349 lt_prog_compiler_static='-Bstatic'
9350 fi
9351 lt_prog_compiler_pic='-fPIC'
9352 ;;
9353
9354 amigaos*)
9355 case $host_cpu in
9356 powerpc)
9357 # see comment about AmigaOS4 .so support
9358 lt_prog_compiler_pic='-fPIC'
9359 ;;
9360 m68k)
9361 # FIXME: we need at least 68020 code to build shared libraries, but
9362 # adding the '-m68020' flag to GCC prevents building anything better,
9363 # like '-m68040'.
9364 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9365 ;;
9366 esac
9367 ;;
9368
9369 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9370 # PIC is the default for these OSes.
9371 ;;
9372
9373 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9374 # This hack is so that the source file can tell whether it is being
9375 # built for inclusion in a dll (and should export symbols for example).
9376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9377 # (--disable-auto-import) libraries
9378 lt_prog_compiler_pic='-DDLL_EXPORT'
9379 case $host_os in
9380 os2*)
9381 lt_prog_compiler_static='$wl-static'
9382 ;;
9383 esac
9384 ;;
9385
9386 darwin* | rhapsody*)
9387 # PIC is the default on this platform
9388 # Common symbols not allowed in MH_DYLIB files
9389 lt_prog_compiler_pic='-fno-common'
9390 ;;
9391
9392 haiku*)
9393 # PIC is the default for Haiku.
9394 # The "-static" flag exists, but is broken.
9395 lt_prog_compiler_static=
9396 ;;
9397
9398 hpux*)
9399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9401 # sets the default TLS model and affects inlining.
9402 case $host_cpu in
9403 hppa*64*)
9404 # +Z the default
9405 ;;
9406 *)
9407 lt_prog_compiler_pic='-fPIC'
9408 ;;
9409 esac
9410 ;;
9411
9412 interix[3-9]*)
9413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9414 # Instead, we relocate shared libraries at runtime.
9415 ;;
9416
9417 msdosdjgpp*)
9418 # Just because we use GCC doesn't mean we suddenly get shared libraries
9419 # on systems that don't support them.
9420 lt_prog_compiler_can_build_shared=no
9421 enable_shared=no
9422 ;;
9423
9424 *nto* | *qnx*)
9425 # QNX uses GNU C++, but need to define -shared option too, otherwise
9426 # it will coredump.
9427 lt_prog_compiler_pic='-fPIC -shared'
9428 ;;
9429
9430 sysv4*MP*)
9431 if test -d /usr/nec; then
9432 lt_prog_compiler_pic=-Kconform_pic
9433 fi
9434 ;;
9435
9436 *)
9437 lt_prog_compiler_pic='-fPIC'
9438 ;;
9439 esac
9440
9441 case $cc_basename in
9442 nvcc*) # Cuda Compiler Driver 2.2
9443 lt_prog_compiler_wl='-Xlinker '
9444 if test -n "$lt_prog_compiler_pic"; then
9445 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9446 fi
9447 ;;
9448 esac
9449 else
9450 # PORTME Check for flag to pass linker flags through the system compiler.
9451 case $host_os in
9452 aix*)
9453 lt_prog_compiler_wl='-Wl,'
9454 if test ia64 = "$host_cpu"; then
9455 # AIX 5 now supports IA64 processor
9456 lt_prog_compiler_static='-Bstatic'
9457 else
9458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9459 fi
9460 ;;
9461
9462 darwin* | rhapsody*)
9463 # PIC is the default on this platform
9464 # Common symbols not allowed in MH_DYLIB files
9465 lt_prog_compiler_pic='-fno-common'
9466 case $cc_basename in
9467 nagfor*)
9468 # NAG Fortran compiler
9469 lt_prog_compiler_wl='-Wl,-Wl,,'
9470 lt_prog_compiler_pic='-PIC'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473 esac
9474 ;;
9475
9476 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9477 # This hack is so that the source file can tell whether it is being
9478 # built for inclusion in a dll (and should export symbols for example).
9479 lt_prog_compiler_pic='-DDLL_EXPORT'
9480 case $host_os in
9481 os2*)
9482 lt_prog_compiler_static='$wl-static'
9483 ;;
9484 esac
9485 ;;
9486
9487 hpux9* | hpux10* | hpux11*)
9488 lt_prog_compiler_wl='-Wl,'
9489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9490 # not for PA HP-UX.
9491 case $host_cpu in
9492 hppa*64*|ia64*)
9493 # +Z the default
9494 ;;
9495 *)
9496 lt_prog_compiler_pic='+Z'
9497 ;;
9498 esac
9499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9500 lt_prog_compiler_static='$wl-a ${wl}archive'
9501 ;;
9502
9503 irix5* | irix6* | nonstopux*)
9504 lt_prog_compiler_wl='-Wl,'
9505 # PIC (with -KPIC) is the default.
9506 lt_prog_compiler_static='-non_shared'
9507 ;;
9508
9509 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9510 case $cc_basename in
9511 # old Intel for x86_64, which still supported -KPIC.
9512 ecc*)
9513 lt_prog_compiler_wl='-Wl,'
9514 lt_prog_compiler_pic='-KPIC'
9515 lt_prog_compiler_static='-static'
9516 ;;
9517 *flang* | ftn | f18* | f95*)
9518 # Flang compiler.
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-fPIC'
9521 lt_prog_compiler_static='-static'
9522 ;;
9523 # icc used to be incompatible with GCC.
9524 # ICC 10 doesn't accept -KPIC any more.
9525 icc* | ifort*)
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_pic='-fPIC'
9528 lt_prog_compiler_static='-static'
9529 ;;
9530 # Lahey Fortran 8.1.
9531 lf95*)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='--shared'
9534 lt_prog_compiler_static='--static'
9535 ;;
9536 nagfor*)
9537 # NAG Fortran compiler
9538 lt_prog_compiler_wl='-Wl,-Wl,,'
9539 lt_prog_compiler_pic='-PIC'
9540 lt_prog_compiler_static='-Bstatic'
9541 ;;
9542 tcc*)
9543 # Fabrice Bellard et al's Tiny C Compiler
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_pic='-fPIC'
9546 lt_prog_compiler_static='-static'
9547 ;;
9548 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9549 # Portland Group compilers (*not* the Pentium gcc compiler,
9550 # which looks to be a dead project)
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-fpic'
9553 lt_prog_compiler_static='-Bstatic'
9554 ;;
9555 ccc*)
9556 lt_prog_compiler_wl='-Wl,'
9557 # All Alpha code is PIC.
9558 lt_prog_compiler_static='-non_shared'
9559 ;;
9560 xl* | bgxl* | bgf* | mpixl*)
9561 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='-qpic'
9564 lt_prog_compiler_static='-qstaticlink'
9565 ;;
9566 *)
9567 case `$CC -V 2>&1 | $SED 5q` in
9568 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9569 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9570 lt_prog_compiler_pic='-KPIC'
9571 lt_prog_compiler_static='-Bstatic'
9572 lt_prog_compiler_wl=''
9573 ;;
9574 *Sun\ F* | *Sun*Fortran*)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 lt_prog_compiler_wl='-Qoption ld '
9578 ;;
9579 *Sun\ C*)
9580 # Sun C 5.9
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-Bstatic'
9583 lt_prog_compiler_wl='-Wl,'
9584 ;;
9585 *Intel*\ [CF]*Compiler*)
9586 lt_prog_compiler_wl='-Wl,'
9587 lt_prog_compiler_pic='-fPIC'
9588 lt_prog_compiler_static='-static'
9589 ;;
9590 *Portland\ Group*)
9591 lt_prog_compiler_wl='-Wl,'
9592 lt_prog_compiler_pic='-fpic'
9593 lt_prog_compiler_static='-Bstatic'
9594 ;;
9595 esac
9596 ;;
9597 esac
9598 ;;
9599
9600 newsos6)
9601 lt_prog_compiler_pic='-KPIC'
9602 lt_prog_compiler_static='-Bstatic'
9603 ;;
9604
9605 *-mlibc)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fPIC'
9608 lt_prog_compiler_static='-static'
9609 ;;
9610
9611 *nto* | *qnx*)
9612 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 # it will coredump.
9614 lt_prog_compiler_pic='-fPIC -shared'
9615 ;;
9616
9617 osf3* | osf4* | osf5*)
9618 lt_prog_compiler_wl='-Wl,'
9619 # All OSF/1 code is PIC.
9620 lt_prog_compiler_static='-non_shared'
9621 ;;
9622
9623 rdos*)
9624 lt_prog_compiler_static='-non_shared'
9625 ;;
9626
9627 serenity*)
9628 ;;
9629
9630 solaris*)
9631 lt_prog_compiler_pic='-KPIC'
9632 lt_prog_compiler_static='-Bstatic'
9633 case $cc_basename in
9634 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9635 lt_prog_compiler_wl='-Qoption ld ';;
9636 *)
9637 lt_prog_compiler_wl='-Wl,';;
9638 esac
9639 ;;
9640
9641 sunos4*)
9642 lt_prog_compiler_wl='-Qoption ld '
9643 lt_prog_compiler_pic='-PIC'
9644 lt_prog_compiler_static='-Bstatic'
9645 ;;
9646
9647 sysv4 | sysv4.2uw2* | sysv4.3*)
9648 lt_prog_compiler_wl='-Wl,'
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 ;;
9652
9653 sysv4*MP*)
9654 if test -d /usr/nec; then
9655 lt_prog_compiler_pic='-Kconform_pic'
9656 lt_prog_compiler_static='-Bstatic'
9657 fi
9658 ;;
9659
9660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9661 lt_prog_compiler_wl='-Wl,'
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9664 ;;
9665
9666 unicos*)
9667 lt_prog_compiler_wl='-Wl,'
9668 lt_prog_compiler_can_build_shared=no
9669 ;;
9670
9671 uts4*)
9672 lt_prog_compiler_pic='-pic'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675
9676 *)
9677 lt_prog_compiler_can_build_shared=no
9678 ;;
9679 esac
9680 fi
9681
9682 case $host_os in
9683 # For platforms that do not support PIC, -DPIC is meaningless:
9684 *djgpp*)
9685 lt_prog_compiler_pic=
9686 ;;
9687 *)
9688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9689 ;;
9690 esac
9691
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9693 printf %s "checking for $compiler option to produce PIC... " >&6; }
9694 if test ${lt_cv_prog_compiler_pic+y}
9695 then :
9696 printf %s "(cached) " >&6
9697 else case e in #(
9698 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9699 esac
9700 fi
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9702 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9703 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9704
9705 #
9706 # Check to make sure the PIC flag actually works.
9707 #
9708 if test -n "$lt_prog_compiler_pic"; then
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9710 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9711 if test ${lt_cv_prog_compiler_pic_works+y}
9712 then :
9713 printf %s "(cached) " >&6
9714 else case e in #(
9715 e) lt_cv_prog_compiler_pic_works=no
9716 ac_outfile=conftest.$ac_objext
9717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9718 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9719 # Insert the option either (1) after the last *FLAGS variable, or
9720 # (2) before a word containing "conftest.", or (3) at the end.
9721 # Note that $ac_compile itself does not contain backslashes and begins
9722 # with a dollar sign (not a hyphen), so the echo should work correctly.
9723 # The option is referenced via a variable to avoid confusing sed.
9724 lt_compile=`echo "$ac_compile" | $SED \
9725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9727 -e 's:$: $lt_compiler_flag:'`
9728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9729 (eval "$lt_compile" 2>conftest.err)
9730 ac_status=$?
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 if (exit $ac_status) && test -s "$ac_outfile"; then
9734 # The compiler can only warn and ignore the option if not recognized
9735 # So say no if there are warnings other than the usual output.
9736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9739 lt_cv_prog_compiler_pic_works=yes
9740 fi
9741 fi
9742 $RM conftest*
9743 ;;
9744 esac
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9747 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9748
9749 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9750 case $lt_prog_compiler_pic in
9751 "" | " "*) ;;
9752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9753 esac
9754 else
9755 lt_prog_compiler_pic=
9756 lt_prog_compiler_can_build_shared=no
9757 fi
9758
9759 fi
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771 #
9772 # Check to make sure the static flag actually works.
9773 #
9774 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9776 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9777 if test ${lt_cv_prog_compiler_static_works+y}
9778 then :
9779 printf %s "(cached) " >&6
9780 else case e in #(
9781 e) lt_cv_prog_compiler_static_works=no
9782 save_LDFLAGS=$LDFLAGS
9783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9786 # The linker can only warn and ignore the option if not recognized
9787 # So say no if there are warnings
9788 if test -s conftest.err; then
9789 # Append any errors to the config.log.
9790 cat conftest.err 1>&5
9791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9793 if diff conftest.exp conftest.er2 >/dev/null; then
9794 lt_cv_prog_compiler_static_works=yes
9795 fi
9796 else
9797 lt_cv_prog_compiler_static_works=yes
9798 fi
9799 fi
9800 $RM -r conftest*
9801 LDFLAGS=$save_LDFLAGS
9802 ;;
9803 esac
9804 fi
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9806 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9807
9808 if test yes = "$lt_cv_prog_compiler_static_works"; then
9809 :
9810 else
9811 lt_prog_compiler_static=
9812 fi
9813
9814
9815
9816
9817
9818
9819
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9821 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9822 if test ${lt_cv_prog_compiler_c_o+y}
9823 then :
9824 printf %s "(cached) " >&6
9825 else case e in #(
9826 e) lt_cv_prog_compiler_c_o=no
9827 $RM -r conftest 2>/dev/null
9828 mkdir conftest
9829 cd conftest
9830 mkdir out
9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833 lt_compiler_flag="-o out/conftest2.$ac_objext"
9834 # Insert the option either (1) after the last *FLAGS variable, or
9835 # (2) before a word containing "conftest.", or (3) at the end.
9836 # Note that $ac_compile itself does not contain backslashes and begins
9837 # with a dollar sign (not a hyphen), so the echo should work correctly.
9838 lt_compile=`echo "$ac_compile" | $SED \
9839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9841 -e 's:$: $lt_compiler_flag:'`
9842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9843 (eval "$lt_compile" 2>out/conftest.err)
9844 ac_status=$?
9845 cat out/conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9848 then
9849 # The compiler can only warn and ignore the option if not recognized
9850 # So say no if there are warnings
9851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9854 lt_cv_prog_compiler_c_o=yes
9855 fi
9856 fi
9857 chmod u+w . 2>&5
9858 $RM conftest*
9859 # SGI C++ compiler will create directory out/ii_files/ for
9860 # template instantiation
9861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9862 $RM out/* && rmdir out
9863 cd ..
9864 $RM -r conftest
9865 $RM conftest*
9866 ;;
9867 esac
9868 fi
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9870 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9871
9872
9873
9874
9875
9876
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9878 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9879 if test ${lt_cv_prog_compiler_c_o+y}
9880 then :
9881 printf %s "(cached) " >&6
9882 else case e in #(
9883 e) lt_cv_prog_compiler_c_o=no
9884 $RM -r conftest 2>/dev/null
9885 mkdir conftest
9886 cd conftest
9887 mkdir out
9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889
9890 lt_compiler_flag="-o out/conftest2.$ac_objext"
9891 # Insert the option either (1) after the last *FLAGS variable, or
9892 # (2) before a word containing "conftest.", or (3) at the end.
9893 # Note that $ac_compile itself does not contain backslashes and begins
9894 # with a dollar sign (not a hyphen), so the echo should work correctly.
9895 lt_compile=`echo "$ac_compile" | $SED \
9896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9898 -e 's:$: $lt_compiler_flag:'`
9899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9900 (eval "$lt_compile" 2>out/conftest.err)
9901 ac_status=$?
9902 cat out/conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9905 then
9906 # The compiler can only warn and ignore the option if not recognized
9907 # So say no if there are warnings
9908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9911 lt_cv_prog_compiler_c_o=yes
9912 fi
9913 fi
9914 chmod u+w . 2>&5
9915 $RM conftest*
9916 # SGI C++ compiler will create directory out/ii_files/ for
9917 # template instantiation
9918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9919 $RM out/* && rmdir out
9920 cd ..
9921 $RM -r conftest
9922 $RM conftest*
9923 ;;
9924 esac
9925 fi
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9927 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9928
9929
9930
9931
9932 hard_links=nottested
9933 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9934 # do not overwrite the value of need_locks provided by the user
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9936 printf %s "checking if we can lock with hard links... " >&6; }
9937 hard_links=yes
9938 $RM conftest*
9939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9940 touch conftest.a
9941 ln conftest.a conftest.b 2>&5 || hard_links=no
9942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9944 printf "%s\n" "$hard_links" >&6; }
9945 if test no = "$hard_links"; then
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9947 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9948 need_locks=warn
9949 fi
9950 else
9951 need_locks=no
9952 fi
9953
9954
9955
9956
9957
9958
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9960 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9961
9962 runpath_var=
9963 allow_undefined_flag=
9964 always_export_symbols=no
9965 archive_cmds=
9966 archive_expsym_cmds=
9967 compiler_needs_object=no
9968 enable_shared_with_static_runtimes=no
9969 export_dynamic_flag_spec=
9970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9971 hardcode_automatic=no
9972 hardcode_direct=no
9973 hardcode_direct_absolute=no
9974 hardcode_libdir_flag_spec=
9975 hardcode_libdir_separator=
9976 hardcode_minus_L=no
9977 hardcode_shlibpath_var=unsupported
9978 inherit_rpath=no
9979 link_all_deplibs=unknown
9980 module_cmds=
9981 module_expsym_cmds=
9982 old_archive_from_new_cmds=
9983 old_archive_from_expsyms_cmds=
9984 thread_safe_flag_spec=
9985 whole_archive_flag_spec=
9986 # include_expsyms should be a list of space-separated symbols to be *always*
9987 # included in the symbol list
9988 include_expsyms=
9989 # exclude_expsyms can be an extended regexp of symbols to exclude
9990 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9991 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9992 # as well as any symbol that contains 'd'.
9993 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9995 # platforms (ab)use it in PIC code, but their linkers get confused if
9996 # the symbol is explicitly referenced. Since portable code cannot
9997 # rely on this symbol name, it's probably fine to never include it in
9998 # preloaded symbol tables.
9999 # Exclude shared library initialization/finalization symbols.
10000 extract_expsyms_cmds=
10001
10002 case $host_os in
10003 cygwin* | mingw* | windows* | pw32* | cegcc*)
10004 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10005 # When not using gcc, we currently assume that we are using
10006 # Microsoft Visual C++ or Intel C++ Compiler.
10007 if test yes != "$GCC"; then
10008 with_gnu_ld=no
10009 fi
10010 ;;
10011 interix*)
10012 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10013 with_gnu_ld=yes
10014 ;;
10015 esac
10016
10017 ld_shlibs=yes
10018
10019 # On some targets, GNU ld is compatible enough with the native linker
10020 # that we're better off using the native interface for both.
10021 lt_use_gnu_ld_interface=no
10022 if test yes = "$with_gnu_ld"; then
10023 case $host_os in
10024 aix*)
10025 # The AIX port of GNU ld has always aspired to compatibility
10026 # with the native linker. However, as the warning in the GNU ld
10027 # block says, versions before 2.19.5* couldn't really create working
10028 # shared libraries, regardless of the interface used.
10029 case `$LD -v 2>&1` in
10030 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10031 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10032 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10033 *)
10034 lt_use_gnu_ld_interface=yes
10035 ;;
10036 esac
10037 ;;
10038 *)
10039 lt_use_gnu_ld_interface=yes
10040 ;;
10041 esac
10042 fi
10043
10044 if test yes = "$lt_use_gnu_ld_interface"; then
10045 # If archive_cmds runs LD, not CC, wlarc should be empty
10046 wlarc='$wl'
10047
10048 # Set some defaults for GNU ld with shared library support. These
10049 # are reset later if shared libraries are not supported. Putting them
10050 # here allows them to be overridden if necessary.
10051 runpath_var=LD_RUN_PATH
10052 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10053 export_dynamic_flag_spec='$wl--export-dynamic'
10054 # ancient GNU ld didn't support --whole-archive et. al.
10055 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10056 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10057 else
10058 whole_archive_flag_spec=
10059 fi
10060 supports_anon_versioning=no
10061 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10062 *GNU\ gold*) supports_anon_versioning=yes ;;
10063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10066 *\ 2.11.*) ;; # other 2.11 versions
10067 *) supports_anon_versioning=yes ;;
10068 esac
10069
10070 # See if GNU ld supports shared libraries.
10071 case $host_os in
10072 aix[3-9]*)
10073 # On AIX/PPC, the GNU linker is very broken
10074 if test ia64 != "$host_cpu"; then
10075 ld_shlibs=no
10076 cat <<_LT_EOF 1>&2
10077
10078 *** Warning: the GNU linker, at least up to release 2.19, is reported
10079 *** to be unable to reliably create shared libraries on AIX.
10080 *** Therefore, libtool is disabling shared libraries support. If you
10081 *** really care for shared libraries, you may want to install binutils
10082 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10083 *** You will then need to restart the configuration process.
10084
10085 _LT_EOF
10086 fi
10087 ;;
10088
10089 amigaos*)
10090 case $host_cpu in
10091 powerpc)
10092 # see comment about AmigaOS4 .so support
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10094 archive_expsym_cmds=''
10095 ;;
10096 m68k)
10097 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)'
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_minus_L=yes
10100 ;;
10101 esac
10102 ;;
10103
10104 beos*)
10105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10106 allow_undefined_flag=unsupported
10107 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10108 # support --undefined. This deserves some investigation. FIXME
10109 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110 else
10111 ld_shlibs=no
10112 fi
10113 ;;
10114
10115 cygwin* | mingw* | windows* | pw32* | cegcc*)
10116 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10117 # as there is no search path for DLLs.
10118 hardcode_libdir_flag_spec='-L$libdir'
10119 export_dynamic_flag_spec='$wl--export-all-symbols'
10120 allow_undefined_flag=unsupported
10121 always_export_symbols=no
10122 enable_shared_with_static_runtimes=yes
10123 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'
10124 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10125 file_list_spec='@'
10126
10127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129 # If the export-symbols file already is a .def file, use it as
10130 # is; otherwise, prepend EXPORTS...
10131 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10132 cp $export_symbols $output_objdir/$soname.def;
10133 else
10134 echo EXPORTS > $output_objdir/$soname.def;
10135 cat $export_symbols >> $output_objdir/$soname.def;
10136 fi~
10137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138 else
10139 ld_shlibs=no
10140 fi
10141 ;;
10142
10143 haiku*)
10144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10145 link_all_deplibs=no
10146 ;;
10147
10148 os2*)
10149 hardcode_libdir_flag_spec='-L$libdir'
10150 hardcode_minus_L=yes
10151 allow_undefined_flag=unsupported
10152 shrext_cmds=.dll
10153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10156 $ECHO EXPORTS >> $output_objdir/$libname.def~
10157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10159 emximp -o $lib $output_objdir/$libname.def'
10160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10163 $ECHO EXPORTS >> $output_objdir/$libname.def~
10164 prefix_cmds="$SED"~
10165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10166 prefix_cmds="$prefix_cmds -e 1d";
10167 fi~
10168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10171 emximp -o $lib $output_objdir/$libname.def'
10172 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10173 enable_shared_with_static_runtimes=yes
10174 file_list_spec='@'
10175 ;;
10176
10177 interix[3-9]*)
10178 hardcode_direct=no
10179 hardcode_shlibpath_var=no
10180 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10181 export_dynamic_flag_spec='$wl-E'
10182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10183 # Instead, shared libraries are loaded at an image base (0x10000000 by
10184 # default) and relocated if they conflict, which is a slow very memory
10185 # consuming and fragmenting process. To avoid this, we pick a random,
10186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10189 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'
10190 ;;
10191
10192 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10193 tmp_diet=no
10194 if test linux-dietlibc = "$host_os"; then
10195 case $cc_basename in
10196 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10197 esac
10198 fi
10199 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10200 && test no = "$tmp_diet"
10201 then
10202 tmp_addflag=' $pic_flag'
10203 tmp_sharedflag='-shared'
10204 case $cc_basename,$host_cpu in
10205 pgcc*) # Portland Group C compiler
10206 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'
10207 tmp_addflag=' $pic_flag'
10208 ;;
10209 pgf77* | pgf90* | pgf95* | pgfortran*)
10210 # Portland Group f77 and f90 compilers
10211 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'
10212 tmp_addflag=' $pic_flag -Mnomain' ;;
10213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10214 tmp_addflag=' -i_dynamic' ;;
10215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10216 tmp_addflag=' -i_dynamic -nofor_main' ;;
10217 ifc* | ifort*) # Intel Fortran compiler
10218 tmp_addflag=' -nofor_main' ;;
10219 lf95*) # Lahey Fortran 8.1
10220 whole_archive_flag_spec=
10221 tmp_sharedflag='--shared' ;;
10222 nagfor*) # NAGFOR 5.3
10223 tmp_sharedflag='-Wl,-shared' ;;
10224 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10225 tmp_sharedflag='-qmkshrobj'
10226 tmp_addflag= ;;
10227 nvcc*) # Cuda Compiler Driver 2.2
10228 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'
10229 compiler_needs_object=yes
10230 ;;
10231 esac
10232 case `$CC -V 2>&1 | $SED 5q` in
10233 *Sun\ C*) # Sun C 5.9
10234 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'
10235 compiler_needs_object=yes
10236 tmp_sharedflag='-G' ;;
10237 *Sun\ F*) # Sun Fortran 8.3
10238 tmp_sharedflag='-G' ;;
10239 esac
10240 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10241
10242 if test yes = "$supports_anon_versioning"; then
10243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10244 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10245 echo "local: *; };" >> $output_objdir/$libname.ver~
10246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10247 fi
10248
10249 case $cc_basename in
10250 tcc*)
10251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10252 export_dynamic_flag_spec='-rdynamic'
10253 ;;
10254 xlf* | bgf* | bgxlf* | mpixlf*)
10255 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10256 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10259 if test yes = "$supports_anon_versioning"; then
10260 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10261 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10262 echo "local: *; };" >> $output_objdir/$libname.ver~
10263 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10264 fi
10265 ;;
10266 esac
10267 else
10268 ld_shlibs=no
10269 fi
10270 ;;
10271
10272 *-mlibc)
10273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10275 ;;
10276
10277 netbsd* | netbsdelf*-gnu)
10278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10280 wlarc=
10281 else
10282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10283 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10284 fi
10285 ;;
10286
10287 solaris*)
10288 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10289 ld_shlibs=no
10290 cat <<_LT_EOF 1>&2
10291
10292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10293 *** create shared libraries on Solaris systems. Therefore, libtool
10294 *** is disabling shared libraries support. We urge you to upgrade GNU
10295 *** binutils to release 2.9.1 or newer. Another option is to modify
10296 *** your PATH or compiler configuration so that the native linker is
10297 *** used, and then restart.
10298
10299 _LT_EOF
10300 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10303 else
10304 ld_shlibs=no
10305 fi
10306 ;;
10307
10308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10309 case `$LD -v 2>&1` in
10310 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10311 ld_shlibs=no
10312 cat <<_LT_EOF 1>&2
10313
10314 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10315 *** reliably create shared libraries on SCO systems. Therefore, libtool
10316 *** is disabling shared libraries support. We urge you to upgrade GNU
10317 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10318 *** your PATH or compiler configuration so that the native linker is
10319 *** used, and then restart.
10320
10321 _LT_EOF
10322 ;;
10323 *)
10324 # For security reasons, it is highly recommended that you always
10325 # use absolute paths for naming shared libraries, and exclude the
10326 # DT_RUNPATH tag from executables and libraries. But doing so
10327 # requires that you compile everything twice, which is a pain.
10328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10332 else
10333 ld_shlibs=no
10334 fi
10335 ;;
10336 esac
10337 ;;
10338
10339 sunos4*)
10340 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10341 wlarc=
10342 hardcode_direct=yes
10343 hardcode_shlibpath_var=no
10344 ;;
10345
10346 *)
10347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10350 else
10351 ld_shlibs=no
10352 fi
10353 ;;
10354 esac
10355
10356 if test no = "$ld_shlibs"; then
10357 runpath_var=
10358 hardcode_libdir_flag_spec=
10359 export_dynamic_flag_spec=
10360 whole_archive_flag_spec=
10361 fi
10362 else
10363 # PORTME fill in a description of your system's linker (not GNU ld)
10364 case $host_os in
10365 aix3*)
10366 allow_undefined_flag=unsupported
10367 always_export_symbols=yes
10368 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'
10369 # Note: this linker hardcodes the directories in LIBPATH if there
10370 # are no directories specified by -L.
10371 hardcode_minus_L=yes
10372 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10373 # Neither direct hardcoding nor static linking is supported with a
10374 # broken collect2.
10375 hardcode_direct=unsupported
10376 fi
10377 ;;
10378
10379 aix[4-9]*)
10380 if test ia64 = "$host_cpu"; then
10381 # On IA64, the linker does run time linking by default, so we don't
10382 # have to do anything special.
10383 aix_use_runtimelinking=no
10384 exp_sym_flag='-Bexport'
10385 no_entry_flag=
10386 else
10387 # If we're using GNU nm, then we don't want the "-C" option.
10388 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10389 # Without the "-l" option, or with the "-B" option, AIX nm treats
10390 # weak defined symbols like other global defined symbols, whereas
10391 # GNU nm marks them as "W".
10392 # While the 'weak' keyword is ignored in the Export File, we need
10393 # it in the Import File for the 'aix-soname' feature, so we have
10394 # to replace the "-B" option with "-P" for AIX nm.
10395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10396 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'
10397 else
10398 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'
10399 fi
10400 aix_use_runtimelinking=no
10401
10402 # Test if we are trying to use run time linking or normal
10403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10404 # have runtime linking enabled, and use it for executables.
10405 # For shared libraries, we enable/disable runtime linking
10406 # depending on the kind of the shared library created -
10407 # when "with_aix_soname,aix_use_runtimelinking" is:
10408 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10409 # "aix,yes" lib.so shared, rtl:yes, for executables
10410 # lib.a static archive
10411 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10412 # lib.a(lib.so.V) shared, rtl:no, for executables
10413 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10414 # lib.a(lib.so.V) shared, rtl:no
10415 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10416 # lib.a static archive
10417 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10418 for ld_flag in $LDFLAGS; do
10419 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10420 aix_use_runtimelinking=yes
10421 break
10422 fi
10423 done
10424 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10425 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10426 # so we don't have lib.a shared libs to link our executables.
10427 # We have to force runtime linking in this case.
10428 aix_use_runtimelinking=yes
10429 LDFLAGS="$LDFLAGS -Wl,-brtl"
10430 fi
10431 ;;
10432 esac
10433
10434 exp_sym_flag='-bexport'
10435 no_entry_flag='-bnoentry'
10436 fi
10437
10438 # When large executables or shared objects are built, AIX ld can
10439 # have problems creating the table of contents. If linking a library
10440 # or program results in "error TOC overflow" add -mminimal-toc to
10441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10443
10444 archive_cmds=''
10445 hardcode_direct=yes
10446 hardcode_direct_absolute=yes
10447 hardcode_libdir_separator=':'
10448 link_all_deplibs=yes
10449 file_list_spec='$wl-f,'
10450 case $with_aix_soname,$aix_use_runtimelinking in
10451 aix,*) ;; # traditional, no import file
10452 svr4,* | *,yes) # use import file
10453 # The Import File defines what to hardcode.
10454 hardcode_direct=no
10455 hardcode_direct_absolute=no
10456 ;;
10457 esac
10458
10459 if test yes = "$GCC"; then
10460 case $host_os in aix4.[012]|aix4.[012].*)
10461 # We only want to do this on AIX 4.2 and lower, the check
10462 # below for broken collect2 doesn't work under 4.3+
10463 collect2name=`$CC -print-prog-name=collect2`
10464 if test -f "$collect2name" &&
10465 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10466 then
10467 # We have reworked collect2
10468 :
10469 else
10470 # We have old collect2
10471 hardcode_direct=unsupported
10472 # It fails to find uninstalled libraries when the uninstalled
10473 # path is not listed in the libpath. Setting hardcode_minus_L
10474 # to unsupported forces relinking
10475 hardcode_minus_L=yes
10476 hardcode_libdir_flag_spec='-L$libdir'
10477 hardcode_libdir_separator=
10478 fi
10479 ;;
10480 esac
10481 shared_flag='-shared'
10482 if test yes = "$aix_use_runtimelinking"; then
10483 shared_flag="$shared_flag "'$wl-G'
10484 fi
10485 # Need to ensure runtime linking is disabled for the traditional
10486 # shared library, or the linker may eventually find shared libraries
10487 # /with/ Import File - we do not want to mix them.
10488 shared_flag_aix='-shared'
10489 shared_flag_svr4='-shared $wl-G'
10490 else
10491 # not using gcc
10492 if test ia64 = "$host_cpu"; then
10493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10494 # chokes on -Wl,-G. The following line is correct:
10495 shared_flag='-G'
10496 else
10497 if test yes = "$aix_use_runtimelinking"; then
10498 shared_flag='$wl-G'
10499 else
10500 shared_flag='$wl-bM:SRE'
10501 fi
10502 shared_flag_aix='$wl-bM:SRE'
10503 shared_flag_svr4='$wl-G'
10504 fi
10505 fi
10506
10507 export_dynamic_flag_spec='$wl-bexpall'
10508 # It seems that -bexpall does not export symbols beginning with
10509 # underscore (_), so it is better to generate a list of symbols to export.
10510 always_export_symbols=yes
10511 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10512 # Warning - without using the other runtime loading flags (-brtl),
10513 # -berok will link without error, but may produce a broken library.
10514 allow_undefined_flag='-berok'
10515 # Determine the default libpath from the value encoded in an
10516 # empty executable.
10517 if test set = "${lt_cv_aix_libpath+set}"; then
10518 aix_libpath=$lt_cv_aix_libpath
10519 else
10520 if test ${lt_cv_aix_libpath_+y}
10521 then :
10522 printf %s "(cached) " >&6
10523 else case e in #(
10524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526
10527 int
10528 main (void)
10529 {
10530
10531 ;
10532 return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"
10536 then :
10537
10538 lt_aix_libpath_sed='
10539 /Import File Strings/,/^$/ {
10540 /^0/ {
10541 s/^0 *\([^ ]*\) *$/\1/
10542 p
10543 }
10544 }'
10545 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$lt_cv_aix_libpath_"; then
10548 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 fi
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10552 conftest$ac_exeext conftest.$ac_ext
10553 if test -z "$lt_cv_aix_libpath_"; then
10554 lt_cv_aix_libpath_=/usr/lib:/lib
10555 fi
10556 ;;
10557 esac
10558 fi
10559
10560 aix_libpath=$lt_cv_aix_libpath_
10561 fi
10562
10563 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10564 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
10565 else
10566 if test ia64 = "$host_cpu"; then
10567 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10568 allow_undefined_flag="-z nodefs"
10569 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"
10570 else
10571 # Determine the default libpath from the value encoded in an
10572 # empty executable.
10573 if test set = "${lt_cv_aix_libpath+set}"; then
10574 aix_libpath=$lt_cv_aix_libpath
10575 else
10576 if test ${lt_cv_aix_libpath_+y}
10577 then :
10578 printf %s "(cached) " >&6
10579 else case e in #(
10580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 int
10584 main (void)
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"
10592 then :
10593
10594 lt_aix_libpath_sed='
10595 /Import File Strings/,/^$/ {
10596 /^0/ {
10597 s/^0 *\([^ ]*\) *$/\1/
10598 p
10599 }
10600 }'
10601 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10602 # Check for a 64-bit object if we didn't find anything.
10603 if test -z "$lt_cv_aix_libpath_"; then
10604 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10605 fi
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10608 conftest$ac_exeext conftest.$ac_ext
10609 if test -z "$lt_cv_aix_libpath_"; then
10610 lt_cv_aix_libpath_=/usr/lib:/lib
10611 fi
10612 ;;
10613 esac
10614 fi
10615
10616 aix_libpath=$lt_cv_aix_libpath_
10617 fi
10618
10619 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10620 # Warning - without using the other run time loading flags,
10621 # -berok will link without error, but may produce a broken library.
10622 no_undefined_flag=' $wl-bernotok'
10623 allow_undefined_flag=' $wl-berok'
10624 if test yes = "$with_gnu_ld"; then
10625 # We only use this code for GNU lds that support --whole-archive.
10626 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10627 else
10628 # Exported symbols can be pulled into shared objects from archives
10629 whole_archive_flag_spec='$convenience'
10630 fi
10631 archive_cmds_need_lc=yes
10632 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10633 # -brtl affects multiple linker settings, -berok does not and is overridden later
10634 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10635 if test svr4 != "$with_aix_soname"; then
10636 # This is similar to how AIX traditionally builds its shared libraries.
10637 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'
10638 fi
10639 if test aix != "$with_aix_soname"; then
10640 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'
10641 else
10642 # used by -dlpreopen to get the symbols
10643 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10644 fi
10645 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10646 fi
10647 fi
10648 ;;
10649
10650 amigaos*)
10651 case $host_cpu in
10652 powerpc)
10653 # see comment about AmigaOS4 .so support
10654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10655 archive_expsym_cmds=''
10656 ;;
10657 m68k)
10658 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)'
10659 hardcode_libdir_flag_spec='-L$libdir'
10660 hardcode_minus_L=yes
10661 ;;
10662 esac
10663 ;;
10664
10665 bsdi[45]*)
10666 export_dynamic_flag_spec=-rdynamic
10667 ;;
10668
10669 cygwin* | mingw* | windows* | pw32* | cegcc*)
10670 # When not using gcc, we currently assume that we are using
10671 # Microsoft Visual C++ or Intel C++ Compiler.
10672 # hardcode_libdir_flag_spec is actually meaningless, as there is
10673 # no search path for DLLs.
10674 case $cc_basename in
10675 cl* | icl*)
10676 # Native MSVC or ICC
10677 hardcode_libdir_flag_spec=' '
10678 allow_undefined_flag=unsupported
10679 always_export_symbols=yes
10680 file_list_spec='@'
10681 # Tell ltmain to make .lib files, not .a files.
10682 libext=lib
10683 # Tell ltmain to make .dll files, not .so files.
10684 shrext_cmds=.dll
10685 # FIXME: Setting linknames here is a bad hack.
10686 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10687 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10688 cp "$export_symbols" "$output_objdir/$soname.def";
10689 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10690 else
10691 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10692 fi~
10693 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10694 linknames='
10695 # The linker will not automatically build a static lib if we build a DLL.
10696 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10697 enable_shared_with_static_runtimes=yes
10698 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10700 # Don't use ranlib
10701 old_postinstall_cmds='chmod 644 $oldlib'
10702 postlink_cmds='lt_outputfile="@OUTPUT@"~
10703 lt_tool_outputfile="@TOOL_OUTPUT@"~
10704 case $lt_outputfile in
10705 *.exe|*.EXE) ;;
10706 *)
10707 lt_outputfile=$lt_outputfile.exe
10708 lt_tool_outputfile=$lt_tool_outputfile.exe
10709 ;;
10710 esac~
10711 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10712 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10713 $RM "$lt_outputfile.manifest";
10714 fi'
10715 ;;
10716 *)
10717 # Assume MSVC and ICC wrapper
10718 hardcode_libdir_flag_spec=' '
10719 allow_undefined_flag=unsupported
10720 # Tell ltmain to make .lib files, not .a files.
10721 libext=lib
10722 # Tell ltmain to make .dll files, not .so files.
10723 shrext_cmds=.dll
10724 # FIXME: Setting linknames here is a bad hack.
10725 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10726 # The linker will automatically build a .lib file if we build a DLL.
10727 old_archive_from_new_cmds='true'
10728 # FIXME: Should let the user specify the lib program.
10729 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10730 enable_shared_with_static_runtimes=yes
10731 ;;
10732 esac
10733 ;;
10734
10735 darwin* | rhapsody*)
10736
10737
10738 archive_cmds_need_lc=no
10739 hardcode_direct=no
10740 hardcode_automatic=yes
10741 hardcode_shlibpath_var=unsupported
10742 if test yes = "$lt_cv_ld_force_load"; then
10743 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\"`'
10744
10745 else
10746 whole_archive_flag_spec=''
10747 fi
10748 link_all_deplibs=yes
10749 allow_undefined_flag=$_lt_dar_allow_undefined
10750 case $cc_basename in
10751 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10752 *) _lt_dar_can_shared=$GCC ;;
10753 esac
10754 if test yes = "$_lt_dar_can_shared"; then
10755 output_verbose_link_cmd=func_echo_all
10756 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10757 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10758 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"
10759 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"
10760
10761 else
10762 ld_shlibs=no
10763 fi
10764
10765 ;;
10766
10767 dgux*)
10768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769 hardcode_libdir_flag_spec='-L$libdir'
10770 hardcode_shlibpath_var=no
10771 ;;
10772
10773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10774 # support. Future versions do this automatically, but an explicit c++rt0.o
10775 # does not break anything, and helps significantly (at the cost of a little
10776 # extra space).
10777 freebsd2.2*)
10778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10779 hardcode_libdir_flag_spec='-R$libdir'
10780 hardcode_direct=yes
10781 hardcode_shlibpath_var=no
10782 ;;
10783
10784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10785 freebsd2.*)
10786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_direct=yes
10788 hardcode_minus_L=yes
10789 hardcode_shlibpath_var=no
10790 ;;
10791
10792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10793 freebsd* | dragonfly* | midnightbsd*)
10794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795 hardcode_libdir_flag_spec='-R$libdir'
10796 hardcode_direct=yes
10797 hardcode_shlibpath_var=no
10798 ;;
10799
10800 hpux9*)
10801 if test yes = "$GCC"; then
10802 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'
10803 else
10804 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'
10805 fi
10806 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10807 hardcode_libdir_separator=:
10808 hardcode_direct=yes
10809
10810 # hardcode_minus_L: Not really in the search PATH,
10811 # but as the default location of the library.
10812 hardcode_minus_L=yes
10813 export_dynamic_flag_spec='$wl-E'
10814 ;;
10815
10816 hpux10*)
10817 if test yes,no = "$GCC,$with_gnu_ld"; then
10818 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10819 else
10820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10821 fi
10822 if test no = "$with_gnu_ld"; then
10823 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10824 hardcode_libdir_separator=:
10825 hardcode_direct=yes
10826 hardcode_direct_absolute=yes
10827 export_dynamic_flag_spec='$wl-E'
10828 # hardcode_minus_L: Not really in the search PATH,
10829 # but as the default location of the library.
10830 hardcode_minus_L=yes
10831 fi
10832 ;;
10833
10834 hpux11*)
10835 if test yes,no = "$GCC,$with_gnu_ld"; then
10836 case $host_cpu in
10837 hppa*64*)
10838 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10839 ;;
10840 ia64*)
10841 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10842 ;;
10843 *)
10844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10845 ;;
10846 esac
10847 else
10848 case $host_cpu in
10849 hppa*64*)
10850 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 ;;
10852 ia64*)
10853 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10854 ;;
10855 *)
10856
10857 # Older versions of the 11.00 compiler do not understand -b yet
10858 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10860 printf %s "checking if $CC understands -b... " >&6; }
10861 if test ${lt_cv_prog_compiler__b+y}
10862 then :
10863 printf %s "(cached) " >&6
10864 else case e in #(
10865 e) lt_cv_prog_compiler__b=no
10866 save_LDFLAGS=$LDFLAGS
10867 LDFLAGS="$LDFLAGS -b"
10868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10870 # The linker can only warn and ignore the option if not recognized
10871 # So say no if there are warnings
10872 if test -s conftest.err; then
10873 # Append any errors to the config.log.
10874 cat conftest.err 1>&5
10875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877 if diff conftest.exp conftest.er2 >/dev/null; then
10878 lt_cv_prog_compiler__b=yes
10879 fi
10880 else
10881 lt_cv_prog_compiler__b=yes
10882 fi
10883 fi
10884 $RM -r conftest*
10885 LDFLAGS=$save_LDFLAGS
10886 ;;
10887 esac
10888 fi
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10890 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10891
10892 if test yes = "$lt_cv_prog_compiler__b"; then
10893 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10894 else
10895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10896 fi
10897
10898 ;;
10899 esac
10900 fi
10901 if test no = "$with_gnu_ld"; then
10902 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10903 hardcode_libdir_separator=:
10904
10905 case $host_cpu in
10906 hppa*64*|ia64*)
10907 hardcode_direct=no
10908 hardcode_shlibpath_var=no
10909 ;;
10910 *)
10911 hardcode_direct=yes
10912 hardcode_direct_absolute=yes
10913 export_dynamic_flag_spec='$wl-E'
10914
10915 # hardcode_minus_L: Not really in the search PATH,
10916 # but as the default location of the library.
10917 hardcode_minus_L=yes
10918 ;;
10919 esac
10920 fi
10921 ;;
10922
10923 irix5* | irix6* | nonstopux*)
10924 if test yes = "$GCC"; then
10925 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'
10926 # Try to use the -exported_symbol ld option, if it does not
10927 # work, assume that -exports_file does not work either and
10928 # implicitly export all symbols.
10929 # This should be the same for all languages, so no per-tag cache variable.
10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10931 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10932 if test ${lt_cv_irix_exported_symbol+y}
10933 then :
10934 printf %s "(cached) " >&6
10935 else case e in #(
10936 e) save_LDFLAGS=$LDFLAGS
10937 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 int foo (void) { return 0; }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"
10943 then :
10944 lt_cv_irix_exported_symbol=yes
10945 else case e in #(
10946 e) lt_cv_irix_exported_symbol=no ;;
10947 esac
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LDFLAGS=$save_LDFLAGS ;;
10952 esac
10953 fi
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10955 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10956 if test yes = "$lt_cv_irix_exported_symbol"; then
10957 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'
10958 fi
10959 else
10960 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'
10961 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'
10962 fi
10963 archive_cmds_need_lc='no'
10964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10965 hardcode_libdir_separator=:
10966 inherit_rpath=yes
10967 link_all_deplibs=yes
10968 ;;
10969
10970 linux*)
10971 case $cc_basename in
10972 tcc*)
10973 # Fabrice Bellard et al's Tiny C Compiler
10974 ld_shlibs=yes
10975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10976 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10977 ;;
10978 esac
10979 ;;
10980
10981 *-mlibc)
10982 ;;
10983
10984 netbsd* | netbsdelf*-gnu)
10985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10987 else
10988 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10989 fi
10990 hardcode_libdir_flag_spec='-R$libdir'
10991 hardcode_direct=yes
10992 hardcode_shlibpath_var=no
10993 ;;
10994
10995 newsos6)
10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_direct=yes
10998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999 hardcode_libdir_separator=:
11000 hardcode_shlibpath_var=no
11001 ;;
11002
11003 *nto* | *qnx*)
11004 ;;
11005
11006 openbsd*)
11007 if test -f /usr/libexec/ld.so; then
11008 hardcode_direct=yes
11009 hardcode_shlibpath_var=no
11010 hardcode_direct_absolute=yes
11011 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11014 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11015 export_dynamic_flag_spec='$wl-E'
11016 else
11017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11018 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11019 fi
11020 else
11021 ld_shlibs=no
11022 fi
11023 ;;
11024
11025 os2*)
11026 hardcode_libdir_flag_spec='-L$libdir'
11027 hardcode_minus_L=yes
11028 allow_undefined_flag=unsupported
11029 shrext_cmds=.dll
11030 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11033 $ECHO EXPORTS >> $output_objdir/$libname.def~
11034 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11035 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11036 emximp -o $lib $output_objdir/$libname.def'
11037 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11038 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11039 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11040 $ECHO EXPORTS >> $output_objdir/$libname.def~
11041 prefix_cmds="$SED"~
11042 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11043 prefix_cmds="$prefix_cmds -e 1d";
11044 fi~
11045 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11046 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11047 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11048 emximp -o $lib $output_objdir/$libname.def'
11049 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11050 enable_shared_with_static_runtimes=yes
11051 file_list_spec='@'
11052 ;;
11053
11054 osf3*)
11055 if test yes = "$GCC"; then
11056 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11057 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'
11058 else
11059 allow_undefined_flag=' -expect_unresolved \*'
11060 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'
11061 fi
11062 archive_cmds_need_lc='no'
11063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064 hardcode_libdir_separator=:
11065 ;;
11066
11067 osf4* | osf5*) # as osf3* with the addition of -msym flag
11068 if test yes = "$GCC"; then
11069 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11070 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'
11071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11072 else
11073 allow_undefined_flag=' -expect_unresolved \*'
11074 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'
11075 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~
11076 $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'
11077
11078 # Both c and cxx compiler support -rpath directly
11079 hardcode_libdir_flag_spec='-rpath $libdir'
11080 fi
11081 archive_cmds_need_lc='no'
11082 hardcode_libdir_separator=:
11083 ;;
11084
11085 serenity*)
11086 ;;
11087
11088 solaris*)
11089 no_undefined_flag=' -z defs'
11090 if test yes = "$GCC"; then
11091 wlarc='$wl'
11092 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11094 $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'
11095 else
11096 case `$CC -V 2>&1` in
11097 *"Compilers 5.0"*)
11098 wlarc=''
11099 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11101 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11102 ;;
11103 *)
11104 wlarc='$wl'
11105 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11106 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11107 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11108 ;;
11109 esac
11110 fi
11111 hardcode_libdir_flag_spec='-R$libdir'
11112 hardcode_shlibpath_var=no
11113 case $host_os in
11114 solaris2.[0-5] | solaris2.[0-5].*) ;;
11115 *)
11116 # The compiler driver will combine and reorder linker options,
11117 # but understands '-z linker_flag'. GCC discards it without '$wl',
11118 # but is careful enough not to reorder.
11119 # Supported since Solaris 2.6 (maybe 2.5.1?)
11120 if test yes = "$GCC"; then
11121 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11122 else
11123 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11124 fi
11125 ;;
11126 esac
11127 link_all_deplibs=yes
11128 ;;
11129
11130 sunos4*)
11131 if test sequent = "$host_vendor"; then
11132 # Use $CC to link under sequent, because it throws in some extra .o
11133 # files that make .init and .fini sections work.
11134 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11135 else
11136 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11137 fi
11138 hardcode_libdir_flag_spec='-L$libdir'
11139 hardcode_direct=yes
11140 hardcode_minus_L=yes
11141 hardcode_shlibpath_var=no
11142 ;;
11143
11144 sysv4)
11145 case $host_vendor in
11146 sni)
11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_direct=yes # is this really true???
11149 ;;
11150 siemens)
11151 ## LD is ld it makes a PLAMLIB
11152 ## CC just makes a GrossModule.
11153 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11154 reload_cmds='$CC -r -o $output$reload_objs'
11155 hardcode_direct=no
11156 ;;
11157 motorola)
11158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11159 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11160 ;;
11161 esac
11162 runpath_var='LD_RUN_PATH'
11163 hardcode_shlibpath_var=no
11164 ;;
11165
11166 sysv4.3*)
11167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_shlibpath_var=no
11169 export_dynamic_flag_spec='-Bexport'
11170 ;;
11171
11172 sysv4*MP*)
11173 if test -d /usr/nec; then
11174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175 hardcode_shlibpath_var=no
11176 runpath_var=LD_RUN_PATH
11177 hardcode_runpath_var=yes
11178 ld_shlibs=yes
11179 fi
11180 ;;
11181
11182 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11183 no_undefined_flag='$wl-z,text'
11184 archive_cmds_need_lc=no
11185 hardcode_shlibpath_var=no
11186 runpath_var='LD_RUN_PATH'
11187
11188 if test yes = "$GCC"; then
11189 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11191 else
11192 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 fi
11195 ;;
11196
11197 sysv5* | sco3.2v5* | sco5v6*)
11198 # Note: We CANNOT use -z defs as we might desire, because we do not
11199 # link with -lc, and that would cause any symbols used from libc to
11200 # always be unresolved, which means just about no library would
11201 # ever link correctly. If we're not using GNU ld we use -z text
11202 # though, which does catch some bad symbols but isn't as heavy-handed
11203 # as -z defs.
11204 no_undefined_flag='$wl-z,text'
11205 allow_undefined_flag='$wl-z,nodefs'
11206 archive_cmds_need_lc=no
11207 hardcode_shlibpath_var=no
11208 hardcode_libdir_flag_spec='$wl-R,$libdir'
11209 hardcode_libdir_separator=':'
11210 link_all_deplibs=yes
11211 export_dynamic_flag_spec='$wl-Bexport'
11212 runpath_var='LD_RUN_PATH'
11213
11214 if test yes = "$GCC"; then
11215 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217 else
11218 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 fi
11221 ;;
11222
11223 uts4*)
11224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_shlibpath_var=no
11227 ;;
11228
11229 *)
11230 ld_shlibs=no
11231 ;;
11232 esac
11233
11234 if test sni = "$host_vendor"; then
11235 case $host in
11236 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11237 export_dynamic_flag_spec='$wl-Blargedynsym'
11238 ;;
11239 esac
11240 fi
11241 fi
11242
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11244 printf "%s\n" "$ld_shlibs" >&6; }
11245 test no = "$ld_shlibs" && can_build_shared=no
11246
11247 with_gnu_ld=$with_gnu_ld
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 #
11264 # Do we need to explicitly link libc?
11265 #
11266 case "x$archive_cmds_need_lc" in
11267 x|xyes)
11268 # Assume -lc should be added
11269 archive_cmds_need_lc=yes
11270
11271 if test yes,yes = "$GCC,$enable_shared"; then
11272 case $archive_cmds in
11273 *'~'*)
11274 # FIXME: we may have to deal with multi-command sequences.
11275 ;;
11276 '$CC '*)
11277 # Test whether the compiler implicitly links with -lc since on some
11278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11279 # to ld, don't add -lc before -lgcc.
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11281 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11282 if test ${lt_cv_archive_cmds_need_lc+y}
11283 then :
11284 printf %s "(cached) " >&6
11285 else case e in #(
11286 e) $RM conftest*
11287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11288
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11290 (eval $ac_compile) 2>&5
11291 ac_status=$?
11292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } 2>conftest.err; then
11294 soname=conftest
11295 lib=conftest
11296 libobjs=conftest.$ac_objext
11297 deplibs=
11298 wl=$lt_prog_compiler_wl
11299 pic_flag=$lt_prog_compiler_pic
11300 compiler_flags=-v
11301 linker_flags=-v
11302 verstring=
11303 output_objdir=.
11304 libname=conftest
11305 lt_save_allow_undefined_flag=$allow_undefined_flag
11306 allow_undefined_flag=
11307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11308 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11309 ac_status=$?
11310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11311 test $ac_status = 0; }
11312 then
11313 lt_cv_archive_cmds_need_lc=no
11314 else
11315 lt_cv_archive_cmds_need_lc=yes
11316 fi
11317 allow_undefined_flag=$lt_save_allow_undefined_flag
11318 else
11319 cat conftest.err 1>&5
11320 fi
11321 $RM conftest*
11322 ;;
11323 esac
11324 fi
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11326 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11328 ;;
11329 esac
11330 fi
11331 ;;
11332 esac
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11486 printf %s "checking dynamic linker characteristics... " >&6; }
11487
11488 if test yes = "$GCC"; then
11489 case $host_os in
11490 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11491 *) lt_awk_arg='/^libraries:/' ;;
11492 esac
11493 case $host_os in
11494 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11495 *) lt_sed_strip_eq='s|=/|/|g' ;;
11496 esac
11497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11498 case $lt_search_path_spec in
11499 *\;*)
11500 # if the path contains ";" then we assume it to be the separator
11501 # otherwise default to the standard path separator (i.e. ":") - it is
11502 # assumed that no part of a normal pathname contains ";" but that should
11503 # okay in the real world where ";" in dirpaths is itself problematic.
11504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11505 ;;
11506 *)
11507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11508 ;;
11509 esac
11510 # Ok, now we have the path, separated by spaces, we can step through it
11511 # and add multilib dir if necessary...
11512 lt_tmp_lt_search_path_spec=
11513 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11514 # ...but if some path component already ends with the multilib dir we assume
11515 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11516 case "$lt_multi_os_dir; $lt_search_path_spec " in
11517 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11518 lt_multi_os_dir=
11519 ;;
11520 esac
11521 for lt_sys_path in $lt_search_path_spec; do
11522 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11524 elif test -n "$lt_multi_os_dir"; then
11525 test -d "$lt_sys_path" && \
11526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11527 fi
11528 done
11529 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11530 BEGIN {RS = " "; FS = "/|\n";} {
11531 lt_foo = "";
11532 lt_count = 0;
11533 for (lt_i = NF; lt_i > 0; lt_i--) {
11534 if ($lt_i != "" && $lt_i != ".") {
11535 if ($lt_i == "..") {
11536 lt_count++;
11537 } else {
11538 if (lt_count == 0) {
11539 lt_foo = "/" $lt_i lt_foo;
11540 } else {
11541 lt_count--;
11542 }
11543 }
11544 }
11545 }
11546 if (lt_foo != "") { lt_freq[lt_foo]++; }
11547 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11548 }'`
11549 # AWK program above erroneously prepends '/' to C:/dos/paths
11550 # for these hosts.
11551 case $host_os in
11552 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11553 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11554 esac
11555 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11556 else
11557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11558 fi
11559 library_names_spec=
11560 libname_spec='lib$name'
11561 soname_spec=
11562 shrext_cmds=.so
11563 postinstall_cmds=
11564 postuninstall_cmds=
11565 finish_cmds=
11566 finish_eval=
11567 shlibpath_var=
11568 shlibpath_overrides_runpath=unknown
11569 version_type=none
11570 dynamic_linker="$host_os ld.so"
11571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11572 need_lib_prefix=unknown
11573 hardcode_into_libs=no
11574
11575 # when you set need_version to no, make sure it does not cause -set_version
11576 # flags to be left without arguments
11577 need_version=unknown
11578
11579
11580
11581 case $host_os in
11582 aix3*)
11583 version_type=linux # correct to gnu/linux during the next big refactor
11584 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11585 shlibpath_var=LIBPATH
11586
11587 # AIX 3 has no versioning support, so we append a major version to the name.
11588 soname_spec='$libname$release$shared_ext$major'
11589 ;;
11590
11591 aix[4-9]*)
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 need_lib_prefix=no
11594 need_version=no
11595 hardcode_into_libs=yes
11596 if test ia64 = "$host_cpu"; then
11597 # AIX 5 supports IA64
11598 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 else
11601 # With GCC up to 2.95.x, collect2 would create an import file
11602 # for dependence libraries. The import file would start with
11603 # the line '#! .'. This would cause the generated library to
11604 # depend on '.', always an invalid library. This was fixed in
11605 # development snapshots of GCC prior to 3.0.
11606 case $host_os in
11607 aix4 | aix4.[01] | aix4.[01].*)
11608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11609 echo ' yes '
11610 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11611 :
11612 else
11613 can_build_shared=no
11614 fi
11615 ;;
11616 esac
11617 # Using Import Files as archive members, it is possible to support
11618 # filename-based versioning of shared library archives on AIX. While
11619 # this would work for both with and without runtime linking, it will
11620 # prevent static linking of such archives. So we do filename-based
11621 # shared library versioning with .so extension only, which is used
11622 # when both runtime linking and shared linking is enabled.
11623 # Unfortunately, runtime linking may impact performance, so we do
11624 # not want this to be the default eventually. Also, we use the
11625 # versioned .so libs for executables only if there is the -brtl
11626 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11627 # To allow for filename-based versioning support, we need to create
11628 # libNAME.so.V as an archive file, containing:
11629 # *) an Import File, referring to the versioned filename of the
11630 # archive as well as the shared archive member, telling the
11631 # bitwidth (32 or 64) of that shared object, and providing the
11632 # list of exported symbols of that shared object, eventually
11633 # decorated with the 'weak' keyword
11634 # *) the shared object with the F_LOADONLY flag set, to really avoid
11635 # it being seen by the linker.
11636 # At run time we better use the real file rather than another symlink,
11637 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11638
11639 case $with_aix_soname,$aix_use_runtimelinking in
11640 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11641 # soname into executable. Probably we can add versioning support to
11642 # collect2, so additional links can be useful in future.
11643 aix,yes) # traditional libtool
11644 dynamic_linker='AIX unversionable lib.so'
11645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11646 # instead of lib<name>.a to let people know that these are not
11647 # typical AIX shared libraries.
11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11649 ;;
11650 aix,no) # traditional AIX only
11651 dynamic_linker='AIX lib.a(lib.so.V)'
11652 # We preserve .a as extension for shared libraries through AIX4.2
11653 # and later when we are not doing run time linking.
11654 library_names_spec='$libname$release.a $libname.a'
11655 soname_spec='$libname$release$shared_ext$major'
11656 ;;
11657 svr4,*) # full svr4 only
11658 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11659 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11660 # We do not specify a path in Import Files, so LIBPATH fires.
11661 shlibpath_overrides_runpath=yes
11662 ;;
11663 *,yes) # both, prefer svr4
11664 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11665 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11666 # unpreferred sharedlib libNAME.a needs extra handling
11667 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"'
11668 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"'
11669 # We do not specify a path in Import Files, so LIBPATH fires.
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672 *,no) # both, prefer aix
11673 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11674 library_names_spec='$libname$release.a $libname.a'
11675 soname_spec='$libname$release$shared_ext$major'
11676 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11677 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)'
11678 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"'
11679 ;;
11680 esac
11681 shlibpath_var=LIBPATH
11682 fi
11683 ;;
11684
11685 amigaos*)
11686 case $host_cpu in
11687 powerpc)
11688 # Since July 2007 AmigaOS4 officially supports .so libraries.
11689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691 ;;
11692 m68k)
11693 library_names_spec='$libname.ixlibrary $libname.a'
11694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11695 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'
11696 ;;
11697 esac
11698 ;;
11699
11700 beos*)
11701 library_names_spec='$libname$shared_ext'
11702 dynamic_linker="$host_os ld.so"
11703 shlibpath_var=LIBRARY_PATH
11704 ;;
11705
11706 bsdi[45]*)
11707 version_type=linux # correct to gnu/linux during the next big refactor
11708 need_version=no
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710 soname_spec='$libname$release$shared_ext$major'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11715 # the default ld.so.conf also contains /usr/contrib/lib and
11716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11717 # libtool to hard-code these into programs
11718 ;;
11719
11720 cygwin* | mingw* | windows* | pw32* | cegcc*)
11721 version_type=windows
11722 shrext_cmds=.dll
11723 need_version=no
11724 need_lib_prefix=no
11725
11726 case $GCC,$cc_basename in
11727 yes,*)
11728 # gcc
11729 library_names_spec='$libname.dll.a'
11730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11731 # If user builds GCC with multilib enabled,
11732 # it should just install on $(libdir)
11733 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11734 if test xyes = x"$multilib"; then
11735 postinstall_cmds='base_file=`basename \$file`~
11736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11737 dldir=$destdir/`dirname \$dlpath`~
11738 $install_prog $dir/$dlname $destdir/$dlname~
11739 chmod a+x $destdir/$dlname~
11740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11741 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11742 fi'
11743 else
11744 postinstall_cmds='base_file=`basename \$file`~
11745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11746 dldir=$destdir/`dirname \$dlpath`~
11747 test -d \$dldir || mkdir -p \$dldir~
11748 $install_prog $dir/$dlname \$dldir/$dlname~
11749 chmod a+x \$dldir/$dlname~
11750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11752 fi'
11753 fi
11754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11755 dlpath=$dir/\$dldll~
11756 $RM \$dlpath'
11757 shlibpath_overrides_runpath=yes
11758
11759 case $host_os in
11760 cygwin*)
11761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11762 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11763
11764 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11765 ;;
11766 mingw* | windows* | cegcc*)
11767 # MinGW DLLs use traditional 'lib' prefix
11768 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11769 ;;
11770 pw32*)
11771 # pw32 DLLs use 'pw' prefix rather than 'lib'
11772 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11773 ;;
11774 esac
11775 dynamic_linker='Win32 ld.exe'
11776 ;;
11777
11778 *,cl* | *,icl*)
11779 # Native MSVC or ICC
11780 libname_spec='$name'
11781 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11782 library_names_spec='$libname.dll.lib'
11783
11784 case $build_os in
11785 mingw* | windows*)
11786 sys_lib_search_path_spec=
11787 lt_save_ifs=$IFS
11788 IFS=';'
11789 for lt_path in $LIB
11790 do
11791 IFS=$lt_save_ifs
11792 # Let DOS variable expansion print the short 8.3 style file name.
11793 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11795 done
11796 IFS=$lt_save_ifs
11797 # Convert to MSYS style.
11798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11799 ;;
11800 cygwin*)
11801 # Convert to unix form, then to dos form, then back to unix form
11802 # but this time dos style (no spaces!) so that the unix form looks
11803 # like /cygdrive/c/PROGRA~1:/cygdr...
11804 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11805 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11806 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11807 ;;
11808 *)
11809 sys_lib_search_path_spec=$LIB
11810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11811 # It is most probably a Windows format PATH.
11812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11813 else
11814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11815 fi
11816 # FIXME: find the short name or the path components, as spaces are
11817 # common. (e.g. "Program Files" -> "PROGRA~1")
11818 ;;
11819 esac
11820
11821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11822 postinstall_cmds='base_file=`basename \$file`~
11823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11824 dldir=$destdir/`dirname \$dlpath`~
11825 test -d \$dldir || mkdir -p \$dldir~
11826 $install_prog $dir/$dlname \$dldir/$dlname'
11827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11828 dlpath=$dir/\$dldll~
11829 $RM \$dlpath'
11830 shlibpath_overrides_runpath=yes
11831 dynamic_linker='Win32 link.exe'
11832 ;;
11833
11834 *)
11835 # Assume MSVC and ICC wrapper
11836 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11837 dynamic_linker='Win32 ld.exe'
11838 ;;
11839 esac
11840 # FIXME: first we should search . and the directory the executable is in
11841 shlibpath_var=PATH
11842 ;;
11843
11844 darwin* | rhapsody*)
11845 dynamic_linker="$host_os dyld"
11846 version_type=darwin
11847 need_lib_prefix=no
11848 need_version=no
11849 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11850 soname_spec='$libname$release$major$shared_ext'
11851 shlibpath_overrides_runpath=yes
11852 shlibpath_var=DYLD_LIBRARY_PATH
11853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11854
11855 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11857 ;;
11858
11859 dgux*)
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 need_lib_prefix=no
11862 need_version=no
11863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864 soname_spec='$libname$release$shared_ext$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 ;;
11867
11868 freebsd* | dragonfly* | midnightbsd*)
11869 # DragonFly does not have aout. When/if they implement a new
11870 # versioning mechanism, adjust this.
11871 if test -x /usr/bin/objformat; then
11872 objformat=`/usr/bin/objformat`
11873 else
11874 case $host_os in
11875 freebsd[23].*) objformat=aout ;;
11876 *) objformat=elf ;;
11877 esac
11878 fi
11879 version_type=freebsd-$objformat
11880 case $version_type in
11881 freebsd-elf*)
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 need_version=no
11885 need_lib_prefix=no
11886 ;;
11887 freebsd-*)
11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11889 need_version=yes
11890 ;;
11891 esac
11892 case $host_cpu in
11893 powerpc64)
11894 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11895 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11898 int test_pointer_size[sizeof (void *) - 5];
11899
11900 _ACEOF
11901 if ac_fn_c_try_compile "$LINENO"
11902 then :
11903 shlibpath_var=LD_LIBRARY_PATH
11904 else case e in #(
11905 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11906 esac
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11909 ;;
11910 *)
11911 shlibpath_var=LD_LIBRARY_PATH
11912 ;;
11913 esac
11914 case $host_os in
11915 freebsd2.*)
11916 shlibpath_overrides_runpath=yes
11917 ;;
11918 freebsd3.[01]* | freebsdelf3.[01]*)
11919 shlibpath_overrides_runpath=yes
11920 hardcode_into_libs=yes
11921 ;;
11922 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11923 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11924 shlibpath_overrides_runpath=no
11925 hardcode_into_libs=yes
11926 ;;
11927 *) # from 4.6 on, and DragonFly
11928 shlibpath_overrides_runpath=yes
11929 hardcode_into_libs=yes
11930 ;;
11931 esac
11932 ;;
11933
11934 haiku*)
11935 version_type=linux # correct to gnu/linux during the next big refactor
11936 need_lib_prefix=no
11937 need_version=no
11938 dynamic_linker="$host_os runtime_loader"
11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940 soname_spec='$libname$release$shared_ext$major'
11941 shlibpath_var=LIBRARY_PATH
11942 shlibpath_overrides_runpath=no
11943 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11944 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11945 hardcode_into_libs=no
11946 ;;
11947
11948 hpux9* | hpux10* | hpux11*)
11949 # Give a soname corresponding to the major version so that dld.sl refuses to
11950 # link against other versions.
11951 version_type=sunos
11952 need_lib_prefix=no
11953 need_version=no
11954 case $host_cpu in
11955 ia64*)
11956 shrext_cmds='.so'
11957 hardcode_into_libs=yes
11958 dynamic_linker="$host_os dld.so"
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 soname_spec='$libname$release$shared_ext$major'
11963 if test 32 = "$HPUX_IA64_MODE"; then
11964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11965 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11966 else
11967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11968 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11969 fi
11970 ;;
11971 hppa*64*)
11972 shrext_cmds='.sl'
11973 hardcode_into_libs=yes
11974 dynamic_linker="$host_os dld.sl"
11975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 soname_spec='$libname$release$shared_ext$major'
11979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11981 ;;
11982 *)
11983 shrext_cmds='.sl'
11984 dynamic_linker="$host_os dld.sl"
11985 shlibpath_var=SHLIB_PATH
11986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext$major'
11989 ;;
11990 esac
11991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11992 postinstall_cmds='chmod 555 $lib'
11993 # or fails outright, so override atomically:
11994 install_override_mode=555
11995 ;;
11996
11997 interix[3-9]*)
11998 version_type=linux # correct to gnu/linux during the next big refactor
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12002 soname_spec='$libname$release$shared_ext$major'
12003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 shlibpath_overrides_runpath=no
12006 hardcode_into_libs=yes
12007 ;;
12008
12009 irix5* | irix6* | nonstopux*)
12010 case $host_os in
12011 nonstopux*) version_type=nonstopux ;;
12012 *)
12013 if test yes = "$lt_cv_prog_gnu_ld"; then
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 else
12016 version_type=irix
12017 fi ;;
12018 esac
12019 need_lib_prefix=no
12020 need_version=no
12021 soname_spec='$libname$release$shared_ext$major'
12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12023 case $host_os in
12024 irix5* | nonstopux*)
12025 libsuff= shlibsuff=
12026 ;;
12027 *)
12028 case $LD in # libtool.m4 will add one of these switches to LD
12029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12030 libsuff= shlibsuff= libmagic=32-bit;;
12031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12032 libsuff=32 shlibsuff=N32 libmagic=N32;;
12033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12035 *) libsuff= shlibsuff= libmagic=never-match;;
12036 esac
12037 ;;
12038 esac
12039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12040 shlibpath_overrides_runpath=no
12041 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12042 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12043 hardcode_into_libs=yes
12044 ;;
12045
12046 # No shared lib support for Linux oldld, aout, or coff.
12047 linux*oldld* | linux*aout* | linux*coff*)
12048 dynamic_linker=no
12049 ;;
12050
12051 linux*android*)
12052 version_type=none # Android doesn't support versioned libraries.
12053 need_lib_prefix=no
12054 need_version=no
12055 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext'
12057 finish_cmds=
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060
12061 # This implies no fast_install, which is unacceptable.
12062 # Some rework will be needed to allow for fast_install
12063 # before this can be enabled.
12064 hardcode_into_libs=yes
12065
12066 dynamic_linker='Android linker'
12067 # -rpath works at least for libraries that are not overridden by
12068 # libraries installed in system locations.
12069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12070 ;;
12071
12072 # This must be glibc/ELF.
12073 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12074 version_type=linux # correct to gnu/linux during the next big refactor
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 soname_spec='$libname$release$shared_ext$major'
12079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=no
12082
12083 # Some binutils ld are patched to set DT_RUNPATH
12084 if test ${lt_cv_shlibpath_overrides_runpath+y}
12085 then :
12086 printf %s "(cached) " >&6
12087 else case e in #(
12088 e) lt_cv_shlibpath_overrides_runpath=no
12089 save_LDFLAGS=$LDFLAGS
12090 save_libdir=$libdir
12091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 int
12097 main (void)
12098 {
12099
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"
12105 then :
12106 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12107 then :
12108 lt_cv_shlibpath_overrides_runpath=yes
12109 fi
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LDFLAGS=$save_LDFLAGS
12114 libdir=$save_libdir
12115 ;;
12116 esac
12117 fi
12118
12119 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12120
12121 # This implies no fast_install, which is unacceptable.
12122 # Some rework will be needed to allow for fast_install
12123 # before this can be enabled.
12124 hardcode_into_libs=yes
12125
12126 # Ideally, we could use ldconfig to report *all* directories which are
12127 # searched for libraries, however this is still not possible. Aside from not
12128 # being certain /sbin/ldconfig is available, command
12129 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12130 # even though it is searched at run-time. Try to do the best guess by
12131 # appending ld.so.conf contents (and includes) to the search path.
12132 if test -f /etc/ld.so.conf; then
12133 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' ' '`
12134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12135 fi
12136
12137 # We used to test for /lib/ld.so.1 and disable shared libraries on
12138 # powerpc, because MkLinux only supported shared libraries with the
12139 # GNU dynamic linker. Since this was broken with cross compilers,
12140 # most powerpc-linux boxes support dynamic linking these days and
12141 # people can always --disable-shared, the test was removed, and we
12142 # assume the GNU/Linux dynamic linker is in use.
12143 dynamic_linker='GNU/Linux ld.so'
12144 ;;
12145
12146 netbsdelf*-gnu)
12147 version_type=linux
12148 need_lib_prefix=no
12149 need_version=no
12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12151 soname_spec='$libname$release$shared_ext$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12154 hardcode_into_libs=yes
12155 dynamic_linker='NetBSD ld.elf_so'
12156 ;;
12157
12158 netbsd*)
12159 version_type=sunos
12160 need_lib_prefix=no
12161 need_version=no
12162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165 dynamic_linker='NetBSD (a.out) ld.so'
12166 else
12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168 soname_spec='$libname$release$shared_ext$major'
12169 dynamic_linker='NetBSD ld.elf_so'
12170 fi
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 ;;
12175
12176 *-mlibc)
12177 version_type=linux # correct to gnu/linux during the next big refactor
12178 need_lib_prefix=no
12179 need_version=no
12180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12181 soname_spec='$libname$release$shared_ext$major'
12182 dynamic_linker='mlibc ld.so'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=no
12185 hardcode_into_libs=yes
12186 ;;
12187
12188 newsos6)
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 shlibpath_var=LD_LIBRARY_PATH
12192 shlibpath_overrides_runpath=yes
12193 ;;
12194
12195 *nto* | *qnx*)
12196 version_type=qnx
12197 need_lib_prefix=no
12198 need_version=no
12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200 soname_spec='$libname$release$shared_ext$major'
12201 shlibpath_var=LD_LIBRARY_PATH
12202 shlibpath_overrides_runpath=no
12203 hardcode_into_libs=yes
12204 dynamic_linker='ldqnx.so'
12205 ;;
12206
12207 openbsd*)
12208 version_type=sunos
12209 sys_lib_dlsearch_path_spec=/usr/lib
12210 need_lib_prefix=no
12211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12212 need_version=no
12213 else
12214 need_version=yes
12215 fi
12216 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=yes
12220 ;;
12221
12222 os2*)
12223 libname_spec='$name'
12224 version_type=windows
12225 shrext_cmds=.dll
12226 need_version=no
12227 need_lib_prefix=no
12228 # OS/2 can only load a DLL with a base name of 8 characters or less.
12229 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12230 v=$($ECHO $release$versuffix | tr -d .-);
12231 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12232 $ECHO $n$v`$shared_ext'
12233 library_names_spec='${libname}_dll.$libext'
12234 dynamic_linker='OS/2 ld.exe'
12235 shlibpath_var=BEGINLIBPATH
12236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12238 postinstall_cmds='base_file=`basename \$file`~
12239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12240 dldir=$destdir/`dirname \$dlpath`~
12241 test -d \$dldir || mkdir -p \$dldir~
12242 $install_prog $dir/$dlname \$dldir/$dlname~
12243 chmod a+x \$dldir/$dlname~
12244 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12245 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12246 fi'
12247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12248 dlpath=$dir/\$dldll~
12249 $RM \$dlpath'
12250 ;;
12251
12252 osf3* | osf4* | osf5*)
12253 version_type=osf
12254 need_lib_prefix=no
12255 need_version=no
12256 soname_spec='$libname$release$shared_ext$major'
12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12261 ;;
12262
12263 rdos*)
12264 dynamic_linker=no
12265 ;;
12266
12267 serenity*)
12268 version_type=linux # correct to gnu/linux during the next big refactor
12269 need_lib_prefix=no
12270 need_version=no
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272 soname_spec='$libname$release$shared_ext$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=no
12275 dynamic_linker='SerenityOS LibELF'
12276 ;;
12277
12278 solaris*)
12279 version_type=linux # correct to gnu/linux during the next big refactor
12280 need_lib_prefix=no
12281 need_version=no
12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12283 soname_spec='$libname$release$shared_ext$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 # ldd complains unless libraries are executable
12288 postinstall_cmds='chmod +x $lib'
12289 ;;
12290
12291 sunos4*)
12292 version_type=sunos
12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 if test yes = "$with_gnu_ld"; then
12298 need_lib_prefix=no
12299 fi
12300 need_version=yes
12301 ;;
12302
12303 sysv4 | sysv4.3*)
12304 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12306 soname_spec='$libname$release$shared_ext$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 case $host_vendor in
12309 sni)
12310 shlibpath_overrides_runpath=no
12311 need_lib_prefix=no
12312 runpath_var=LD_RUN_PATH
12313 ;;
12314 siemens)
12315 need_lib_prefix=no
12316 ;;
12317 motorola)
12318 need_lib_prefix=no
12319 need_version=no
12320 shlibpath_overrides_runpath=no
12321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12322 ;;
12323 esac
12324 ;;
12325
12326 sysv4*MP*)
12327 if test -d /usr/nec; then
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12330 soname_spec='$libname$shared_ext.$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 fi
12333 ;;
12334
12335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12336 version_type=sco
12337 need_lib_prefix=no
12338 need_version=no
12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12340 soname_spec='$libname$release$shared_ext$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 shlibpath_overrides_runpath=yes
12343 hardcode_into_libs=yes
12344 if test yes = "$with_gnu_ld"; then
12345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12346 else
12347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12348 case $host_os in
12349 sco3.2v5*)
12350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351 ;;
12352 esac
12353 fi
12354 sys_lib_dlsearch_path_spec='/usr/lib'
12355 ;;
12356
12357 tpf*)
12358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12359 version_type=linux # correct to gnu/linux during the next big refactor
12360 need_lib_prefix=no
12361 need_version=no
12362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=no
12365 hardcode_into_libs=yes
12366 ;;
12367
12368 uts4*)
12369 version_type=linux # correct to gnu/linux during the next big refactor
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 ;;
12374
12375 emscripten*)
12376 version_type=none
12377 need_lib_prefix=no
12378 need_version=no
12379 library_names_spec='$libname$release$shared_ext'
12380 soname_spec='$libname$release$shared_ext'
12381 finish_cmds=
12382 dynamic_linker="Emscripten linker"
12383 lt_prog_compiler_wl=
12384 lt_prog_compiler_pic=
12385 lt_prog_compiler_static=
12386
12387
12388 if test yes = "$GCC"; then
12389 lt_prog_compiler_wl='-Wl,'
12390 lt_prog_compiler_static='-static'
12391
12392 case $host_os in
12393 aix*)
12394 # All AIX code is PIC.
12395 if test ia64 = "$host_cpu"; then
12396 # AIX 5 now supports IA64 processor
12397 lt_prog_compiler_static='-Bstatic'
12398 fi
12399 lt_prog_compiler_pic='-fPIC'
12400 ;;
12401
12402 amigaos*)
12403 case $host_cpu in
12404 powerpc)
12405 # see comment about AmigaOS4 .so support
12406 lt_prog_compiler_pic='-fPIC'
12407 ;;
12408 m68k)
12409 # FIXME: we need at least 68020 code to build shared libraries, but
12410 # adding the '-m68020' flag to GCC prevents building anything better,
12411 # like '-m68040'.
12412 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12413 ;;
12414 esac
12415 ;;
12416
12417 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12418 # PIC is the default for these OSes.
12419 ;;
12420
12421 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12422 # This hack is so that the source file can tell whether it is being
12423 # built for inclusion in a dll (and should export symbols for example).
12424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12425 # (--disable-auto-import) libraries
12426 lt_prog_compiler_pic='-DDLL_EXPORT'
12427 case $host_os in
12428 os2*)
12429 lt_prog_compiler_static='$wl-static'
12430 ;;
12431 esac
12432 ;;
12433
12434 darwin* | rhapsody*)
12435 # PIC is the default on this platform
12436 # Common symbols not allowed in MH_DYLIB files
12437 lt_prog_compiler_pic='-fno-common'
12438 ;;
12439
12440 haiku*)
12441 # PIC is the default for Haiku.
12442 # The "-static" flag exists, but is broken.
12443 lt_prog_compiler_static=
12444 ;;
12445
12446 hpux*)
12447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12449 # sets the default TLS model and affects inlining.
12450 case $host_cpu in
12451 hppa*64*)
12452 # +Z the default
12453 ;;
12454 *)
12455 lt_prog_compiler_pic='-fPIC'
12456 ;;
12457 esac
12458 ;;
12459
12460 interix[3-9]*)
12461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12462 # Instead, we relocate shared libraries at runtime.
12463 ;;
12464
12465 msdosdjgpp*)
12466 # Just because we use GCC doesn't mean we suddenly get shared libraries
12467 # on systems that don't support them.
12468 lt_prog_compiler_can_build_shared=no
12469 enable_shared=no
12470 ;;
12471
12472 *nto* | *qnx*)
12473 # QNX uses GNU C++, but need to define -shared option too, otherwise
12474 # it will coredump.
12475 lt_prog_compiler_pic='-fPIC -shared'
12476 ;;
12477
12478 sysv4*MP*)
12479 if test -d /usr/nec; then
12480 lt_prog_compiler_pic=-Kconform_pic
12481 fi
12482 ;;
12483
12484 *)
12485 lt_prog_compiler_pic='-fPIC'
12486 ;;
12487 esac
12488
12489 case $cc_basename in
12490 nvcc*) # Cuda Compiler Driver 2.2
12491 lt_prog_compiler_wl='-Xlinker '
12492 if test -n "$lt_prog_compiler_pic"; then
12493 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12494 fi
12495 ;;
12496 esac
12497 else
12498 # PORTME Check for flag to pass linker flags through the system compiler.
12499 case $host_os in
12500 aix*)
12501 lt_prog_compiler_wl='-Wl,'
12502 if test ia64 = "$host_cpu"; then
12503 # AIX 5 now supports IA64 processor
12504 lt_prog_compiler_static='-Bstatic'
12505 else
12506 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12507 fi
12508 ;;
12509
12510 darwin* | rhapsody*)
12511 # PIC is the default on this platform
12512 # Common symbols not allowed in MH_DYLIB files
12513 lt_prog_compiler_pic='-fno-common'
12514 case $cc_basename in
12515 nagfor*)
12516 # NAG Fortran compiler
12517 lt_prog_compiler_wl='-Wl,-Wl,,'
12518 lt_prog_compiler_pic='-PIC'
12519 lt_prog_compiler_static='-Bstatic'
12520 ;;
12521 esac
12522 ;;
12523
12524 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12525 # This hack is so that the source file can tell whether it is being
12526 # built for inclusion in a dll (and should export symbols for example).
12527 lt_prog_compiler_pic='-DDLL_EXPORT'
12528 case $host_os in
12529 os2*)
12530 lt_prog_compiler_static='$wl-static'
12531 ;;
12532 esac
12533 ;;
12534
12535 hpux9* | hpux10* | hpux11*)
12536 lt_prog_compiler_wl='-Wl,'
12537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12538 # not for PA HP-UX.
12539 case $host_cpu in
12540 hppa*64*|ia64*)
12541 # +Z the default
12542 ;;
12543 *)
12544 lt_prog_compiler_pic='+Z'
12545 ;;
12546 esac
12547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12548 lt_prog_compiler_static='$wl-a ${wl}archive'
12549 ;;
12550
12551 irix5* | irix6* | nonstopux*)
12552 lt_prog_compiler_wl='-Wl,'
12553 # PIC (with -KPIC) is the default.
12554 lt_prog_compiler_static='-non_shared'
12555 ;;
12556
12557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12558 case $cc_basename in
12559 # old Intel for x86_64, which still supported -KPIC.
12560 ecc*)
12561 lt_prog_compiler_wl='-Wl,'
12562 lt_prog_compiler_pic='-KPIC'
12563 lt_prog_compiler_static='-static'
12564 ;;
12565 *flang* | ftn | f18* | f95*)
12566 # Flang compiler.
12567 lt_prog_compiler_wl='-Wl,'
12568 lt_prog_compiler_pic='-fPIC'
12569 lt_prog_compiler_static='-static'
12570 ;;
12571 # icc used to be incompatible with GCC.
12572 # ICC 10 doesn't accept -KPIC any more.
12573 icc* | ifort*)
12574 lt_prog_compiler_wl='-Wl,'
12575 lt_prog_compiler_pic='-fPIC'
12576 lt_prog_compiler_static='-static'
12577 ;;
12578 # Lahey Fortran 8.1.
12579 lf95*)
12580 lt_prog_compiler_wl='-Wl,'
12581 lt_prog_compiler_pic='--shared'
12582 lt_prog_compiler_static='--static'
12583 ;;
12584 nagfor*)
12585 # NAG Fortran compiler
12586 lt_prog_compiler_wl='-Wl,-Wl,,'
12587 lt_prog_compiler_pic='-PIC'
12588 lt_prog_compiler_static='-Bstatic'
12589 ;;
12590 tcc*)
12591 # Fabrice Bellard et al's Tiny C Compiler
12592 lt_prog_compiler_wl='-Wl,'
12593 lt_prog_compiler_pic='-fPIC'
12594 lt_prog_compiler_static='-static'
12595 ;;
12596 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12597 # Portland Group compilers (*not* the Pentium gcc compiler,
12598 # which looks to be a dead project)
12599 lt_prog_compiler_wl='-Wl,'
12600 lt_prog_compiler_pic='-fpic'
12601 lt_prog_compiler_static='-Bstatic'
12602 ;;
12603 ccc*)
12604 lt_prog_compiler_wl='-Wl,'
12605 # All Alpha code is PIC.
12606 lt_prog_compiler_static='-non_shared'
12607 ;;
12608 xl* | bgxl* | bgf* | mpixl*)
12609 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12610 lt_prog_compiler_wl='-Wl,'
12611 lt_prog_compiler_pic='-qpic'
12612 lt_prog_compiler_static='-qstaticlink'
12613 ;;
12614 *)
12615 case `$CC -V 2>&1 | $SED 5q` in
12616 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12618 lt_prog_compiler_pic='-KPIC'
12619 lt_prog_compiler_static='-Bstatic'
12620 lt_prog_compiler_wl=''
12621 ;;
12622 *Sun\ F* | *Sun*Fortran*)
12623 lt_prog_compiler_pic='-KPIC'
12624 lt_prog_compiler_static='-Bstatic'
12625 lt_prog_compiler_wl='-Qoption ld '
12626 ;;
12627 *Sun\ C*)
12628 # Sun C 5.9
12629 lt_prog_compiler_pic='-KPIC'
12630 lt_prog_compiler_static='-Bstatic'
12631 lt_prog_compiler_wl='-Wl,'
12632 ;;
12633 *Intel*\ [CF]*Compiler*)
12634 lt_prog_compiler_wl='-Wl,'
12635 lt_prog_compiler_pic='-fPIC'
12636 lt_prog_compiler_static='-static'
12637 ;;
12638 *Portland\ Group*)
12639 lt_prog_compiler_wl='-Wl,'
12640 lt_prog_compiler_pic='-fpic'
12641 lt_prog_compiler_static='-Bstatic'
12642 ;;
12643 esac
12644 ;;
12645 esac
12646 ;;
12647
12648 newsos6)
12649 lt_prog_compiler_pic='-KPIC'
12650 lt_prog_compiler_static='-Bstatic'
12651 ;;
12652
12653 *-mlibc)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-fPIC'
12656 lt_prog_compiler_static='-static'
12657 ;;
12658
12659 *nto* | *qnx*)
12660 # QNX uses GNU C++, but need to define -shared option too, otherwise
12661 # it will coredump.
12662 lt_prog_compiler_pic='-fPIC -shared'
12663 ;;
12664
12665 osf3* | osf4* | osf5*)
12666 lt_prog_compiler_wl='-Wl,'
12667 # All OSF/1 code is PIC.
12668 lt_prog_compiler_static='-non_shared'
12669 ;;
12670
12671 rdos*)
12672 lt_prog_compiler_static='-non_shared'
12673 ;;
12674
12675 serenity*)
12676 ;;
12677
12678 solaris*)
12679 lt_prog_compiler_pic='-KPIC'
12680 lt_prog_compiler_static='-Bstatic'
12681 case $cc_basename in
12682 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12683 lt_prog_compiler_wl='-Qoption ld ';;
12684 *)
12685 lt_prog_compiler_wl='-Wl,';;
12686 esac
12687 ;;
12688
12689 sunos4*)
12690 lt_prog_compiler_wl='-Qoption ld '
12691 lt_prog_compiler_pic='-PIC'
12692 lt_prog_compiler_static='-Bstatic'
12693 ;;
12694
12695 sysv4 | sysv4.2uw2* | sysv4.3*)
12696 lt_prog_compiler_wl='-Wl,'
12697 lt_prog_compiler_pic='-KPIC'
12698 lt_prog_compiler_static='-Bstatic'
12699 ;;
12700
12701 sysv4*MP*)
12702 if test -d /usr/nec; then
12703 lt_prog_compiler_pic='-Kconform_pic'
12704 lt_prog_compiler_static='-Bstatic'
12705 fi
12706 ;;
12707
12708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12709 lt_prog_compiler_wl='-Wl,'
12710 lt_prog_compiler_pic='-KPIC'
12711 lt_prog_compiler_static='-Bstatic'
12712 ;;
12713
12714 unicos*)
12715 lt_prog_compiler_wl='-Wl,'
12716 lt_prog_compiler_can_build_shared=no
12717 ;;
12718
12719 uts4*)
12720 lt_prog_compiler_pic='-pic'
12721 lt_prog_compiler_static='-Bstatic'
12722 ;;
12723
12724 *)
12725 lt_prog_compiler_can_build_shared=no
12726 ;;
12727 esac
12728 fi
12729
12730 case $host_os in
12731 # For platforms that do not support PIC, -DPIC is meaningless:
12732 *djgpp*)
12733 lt_prog_compiler_pic=
12734 ;;
12735 *)
12736 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12737 ;;
12738 esac
12739
12740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12741 printf %s "checking for $compiler option to produce PIC... " >&6; }
12742 if test ${lt_cv_prog_compiler_pic+y}
12743 then :
12744 printf %s "(cached) " >&6
12745 else case e in #(
12746 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12747 esac
12748 fi
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12750 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12751 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12752
12753 #
12754 # Check to make sure the PIC flag actually works.
12755 #
12756 if test -n "$lt_prog_compiler_pic"; then
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12758 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12759 if test ${lt_cv_prog_compiler_pic_works+y}
12760 then :
12761 printf %s "(cached) " >&6
12762 else case e in #(
12763 e) lt_cv_prog_compiler_pic_works=no
12764 ac_outfile=conftest.$ac_objext
12765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 # The option is referenced via a variable to avoid confusing sed.
12772 lt_compile=`echo "$ac_compile" | $SED \
12773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12775 -e 's:$: $lt_compiler_flag:'`
12776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12777 (eval "$lt_compile" 2>conftest.err)
12778 ac_status=$?
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 if (exit $ac_status) && test -s "$ac_outfile"; then
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings other than the usual output.
12784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12787 lt_cv_prog_compiler_pic_works=yes
12788 fi
12789 fi
12790 $RM conftest*
12791 ;;
12792 esac
12793 fi
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12795 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12796
12797 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12798 case $lt_prog_compiler_pic in
12799 "" | " "*) ;;
12800 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12801 esac
12802 else
12803 lt_prog_compiler_pic=
12804 lt_prog_compiler_can_build_shared=no
12805 fi
12806
12807 fi
12808
12809
12810
12811
12812
12813 #
12814 # Check to make sure the static flag actually works.
12815 #
12816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12818 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12819 if test ${lt_cv_prog_compiler_static_works+y}
12820 then :
12821 printf %s "(cached) " >&6
12822 else case e in #(
12823 e) lt_cv_prog_compiler_static_works=no
12824 save_LDFLAGS=$LDFLAGS
12825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12828 # The linker can only warn and ignore the option if not recognized
12829 # So say no if there are warnings
12830 if test -s conftest.err; then
12831 # Append any errors to the config.log.
12832 cat conftest.err 1>&5
12833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12835 if diff conftest.exp conftest.er2 >/dev/null; then
12836 lt_cv_prog_compiler_static_works=yes
12837 fi
12838 else
12839 lt_cv_prog_compiler_static_works=yes
12840 fi
12841 fi
12842 $RM -r conftest*
12843 LDFLAGS=$save_LDFLAGS
12844 ;;
12845 esac
12846 fi
12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12848 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12849
12850 if test yes = "$lt_cv_prog_compiler_static_works"; then
12851 :
12852 else
12853 lt_prog_compiler_static=
12854 fi
12855
12856
12857
12858 ='-fPIC'
12859 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12860 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'
12861 archive_cmds_need_lc=no
12862 no_undefined_flag=
12863 ;;
12864
12865 *)
12866 dynamic_linker=no
12867 ;;
12868 esac
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12870 printf "%s\n" "$dynamic_linker" >&6; }
12871 test no = "$dynamic_linker" && can_build_shared=no
12872
12873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12874 if test yes = "$GCC"; then
12875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12876 fi
12877
12878 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12879 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12880 fi
12881
12882 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12883 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12884 fi
12885
12886 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12887 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12888
12889 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12890 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12891
12892 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12893 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12992 printf %s "checking how to hardcode library paths into programs... " >&6; }
12993 hardcode_action=
12994 if test -n "$hardcode_libdir_flag_spec" ||
12995 test -n "$runpath_var" ||
12996 test yes = "$hardcode_automatic"; then
12997
12998 # We can hardcode non-existent directories.
12999 if test no != "$hardcode_direct" &&
13000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13001 # have to relink, otherwise we might link with an installed library
13002 # when we should be linking with a yet-to-be-installed one
13003 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13004 test no != "$hardcode_minus_L"; then
13005 # Linking always hardcodes the temporary library directory.
13006 hardcode_action=relink
13007 else
13008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13009 hardcode_action=immediate
13010 fi
13011 else
13012 # We cannot hardcode anything, or else we can only hardcode existing
13013 # directories.
13014 hardcode_action=unsupported
13015 fi
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13017 printf "%s\n" "$hardcode_action" >&6; }
13018
13019 if test relink = "$hardcode_action" ||
13020 test yes = "$inherit_rpath"; then
13021 # Fast installation is not supported
13022 enable_fast_install=no
13023 elif test yes = "$shlibpath_overrides_runpath" ||
13024 test no = "$enable_shared"; then
13025 # Fast installation is not necessary
13026 enable_fast_install=needless
13027 fi
13028
13029
13030
13031
13032
13033
13034 if test yes != "$enable_dlopen"; then
13035 enable_dlopen=unknown
13036 enable_dlopen_self=unknown
13037 enable_dlopen_self_static=unknown
13038 else
13039 lt_cv_dlopen=no
13040 lt_cv_dlopen_libs=
13041
13042 case $host_os in
13043 beos*)
13044 lt_cv_dlopen=load_add_on
13045 lt_cv_dlopen_libs=
13046 lt_cv_dlopen_self=yes
13047 ;;
13048
13049 mingw* | windows* | pw32* | cegcc*)
13050 lt_cv_dlopen=LoadLibrary
13051 lt_cv_dlopen_libs=
13052 ;;
13053
13054 cygwin*)
13055 lt_cv_dlopen=dlopen
13056 lt_cv_dlopen_libs=
13057 ;;
13058
13059 darwin*)
13060 # if libdl is installed we need to link against it
13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13062 printf %s "checking for dlopen in -ldl... " >&6; }
13063 if test ${ac_cv_lib_dl_dlopen+y}
13064 then :
13065 printf %s "(cached) " >&6
13066 else case e in #(
13067 e) ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-ldl $LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply.
13075 The 'extern "C"' is for builds by C++ compilers;
13076 although this is not generally supported in C code supporting it here
13077 has little cost and some practical benefit (sr 110532). */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 char dlopen (void);
13082 int
13083 main (void)
13084 {
13085 return dlopen ();
13086 ;
13087 return 0;
13088 }
13089 _ACEOF
13090 if ac_fn_c_try_link "$LINENO"
13091 then :
13092 ac_cv_lib_dl_dlopen=yes
13093 else case e in #(
13094 e) ac_cv_lib_dl_dlopen=no ;;
13095 esac
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS ;;
13100 esac
13101 fi
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13103 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13104 if test "x$ac_cv_lib_dl_dlopen" = xyes
13105 then :
13106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13107 else case e in #(
13108 e)
13109 lt_cv_dlopen=dyld
13110 lt_cv_dlopen_libs=
13111 lt_cv_dlopen_self=yes
13112 ;;
13113 esac
13114 fi
13115
13116 ;;
13117
13118 tpf*)
13119 # Don't try to run any link tests for TPF. We know it's impossible
13120 # because TPF is a cross-compiler, and we know how we open DSOs.
13121 lt_cv_dlopen=dlopen
13122 lt_cv_dlopen_libs=
13123 lt_cv_dlopen_self=no
13124 ;;
13125
13126 *)
13127 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13128 if test "x$ac_cv_func_shl_load" = xyes
13129 then :
13130 lt_cv_dlopen=shl_load
13131 else case e in #(
13132 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13133 printf %s "checking for shl_load in -ldld... " >&6; }
13134 if test ${ac_cv_lib_dld_shl_load+y}
13135 then :
13136 printf %s "(cached) " >&6
13137 else case e in #(
13138 e) ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-ldld $LIBS"
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142
13143 /* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply.
13146 The 'extern "C"' is for builds by C++ compilers;
13147 although this is not generally supported in C code supporting it here
13148 has little cost and some practical benefit (sr 110532). */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char shl_load (void);
13153 int
13154 main (void)
13155 {
13156 return shl_load ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"
13162 then :
13163 ac_cv_lib_dld_shl_load=yes
13164 else case e in #(
13165 e) ac_cv_lib_dld_shl_load=no ;;
13166 esac
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS ;;
13171 esac
13172 fi
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13174 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13175 if test "x$ac_cv_lib_dld_shl_load" = xyes
13176 then :
13177 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13178 else case e in #(
13179 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13180 if test "x$ac_cv_func_dlopen" = xyes
13181 then :
13182 lt_cv_dlopen=dlopen
13183 else case e in #(
13184 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13185 printf %s "checking for dlopen in -ldl... " >&6; }
13186 if test ${ac_cv_lib_dl_dlopen+y}
13187 then :
13188 printf %s "(cached) " >&6
13189 else case e in #(
13190 e) ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-ldl $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply.
13198 The 'extern "C"' is for builds by C++ compilers;
13199 although this is not generally supported in C code supporting it here
13200 has little cost and some practical benefit (sr 110532). */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char dlopen (void);
13205 int
13206 main (void)
13207 {
13208 return dlopen ();
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"
13214 then :
13215 ac_cv_lib_dl_dlopen=yes
13216 else case e in #(
13217 e) ac_cv_lib_dl_dlopen=no ;;
13218 esac
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS ;;
13223 esac
13224 fi
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13226 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13227 if test "x$ac_cv_lib_dl_dlopen" = xyes
13228 then :
13229 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13230 else case e in #(
13231 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13232 printf %s "checking for dlopen in -lsvld... " >&6; }
13233 if test ${ac_cv_lib_svld_dlopen+y}
13234 then :
13235 printf %s "(cached) " >&6
13236 else case e in #(
13237 e) ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-lsvld $LIBS"
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply.
13245 The 'extern "C"' is for builds by C++ compilers;
13246 although this is not generally supported in C code supporting it here
13247 has little cost and some practical benefit (sr 110532). */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char dlopen (void);
13252 int
13253 main (void)
13254 {
13255 return dlopen ();
13256 ;
13257 return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"
13261 then :
13262 ac_cv_lib_svld_dlopen=yes
13263 else case e in #(
13264 e) ac_cv_lib_svld_dlopen=no ;;
13265 esac
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS ;;
13270 esac
13271 fi
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13273 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13274 if test "x$ac_cv_lib_svld_dlopen" = xyes
13275 then :
13276 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13277 else case e in #(
13278 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13279 printf %s "checking for dld_link in -ldld... " >&6; }
13280 if test ${ac_cv_lib_dld_dld_link+y}
13281 then :
13282 printf %s "(cached) " >&6
13283 else case e in #(
13284 e) ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-ldld $LIBS"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply.
13292 The 'extern "C"' is for builds by C++ compilers;
13293 although this is not generally supported in C code supporting it here
13294 has little cost and some practical benefit (sr 110532). */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char dld_link (void);
13299 int
13300 main (void)
13301 {
13302 return dld_link ();
13303 ;
13304 return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"
13308 then :
13309 ac_cv_lib_dld_dld_link=yes
13310 else case e in #(
13311 e) ac_cv_lib_dld_dld_link=no ;;
13312 esac
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13315 conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS ;;
13317 esac
13318 fi
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13320 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13321 if test "x$ac_cv_lib_dld_dld_link" = xyes
13322 then :
13323 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13324 fi
13325
13326 ;;
13327 esac
13328 fi
13329
13330 ;;
13331 esac
13332 fi
13333
13334 ;;
13335 esac
13336 fi
13337
13338 ;;
13339 esac
13340 fi
13341
13342 ;;
13343 esac
13344 fi
13345
13346 ;;
13347 esac
13348
13349 if test no = "$lt_cv_dlopen"; then
13350 enable_dlopen=no
13351 else
13352 enable_dlopen=yes
13353 fi
13354
13355 case $lt_cv_dlopen in
13356 dlopen)
13357 save_CPPFLAGS=$CPPFLAGS
13358 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13359
13360 save_LDFLAGS=$LDFLAGS
13361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13362
13363 save_LIBS=$LIBS
13364 LIBS="$lt_cv_dlopen_libs $LIBS"
13365
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13367 printf %s "checking whether a program can dlopen itself... " >&6; }
13368 if test ${lt_cv_dlopen_self+y}
13369 then :
13370 printf %s "(cached) " >&6
13371 else case e in #(
13372 e) if test yes = "$cross_compiling"; then :
13373 lt_cv_dlopen_self=cross
13374 else
13375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13376 lt_status=$lt_dlunknown
13377 cat > conftest.$ac_ext <<_LT_EOF
13378 #line $LINENO "configure"
13379 #include "confdefs.h"
13380
13381 #if HAVE_DLFCN_H
13382 #include <dlfcn.h>
13383 #endif
13384
13385 #include <stdio.h>
13386
13387 #ifdef RTLD_GLOBAL
13388 # define LT_DLGLOBAL RTLD_GLOBAL
13389 #else
13390 # ifdef DL_GLOBAL
13391 # define LT_DLGLOBAL DL_GLOBAL
13392 # else
13393 # define LT_DLGLOBAL 0
13394 # endif
13395 #endif
13396
13397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13398 find out it does not work in some platform. */
13399 #ifndef LT_DLLAZY_OR_NOW
13400 # ifdef RTLD_LAZY
13401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13402 # else
13403 # ifdef DL_LAZY
13404 # define LT_DLLAZY_OR_NOW DL_LAZY
13405 # else
13406 # ifdef RTLD_NOW
13407 # define LT_DLLAZY_OR_NOW RTLD_NOW
13408 # else
13409 # ifdef DL_NOW
13410 # define LT_DLLAZY_OR_NOW DL_NOW
13411 # else
13412 # define LT_DLLAZY_OR_NOW 0
13413 # endif
13414 # endif
13415 # endif
13416 # endif
13417 #endif
13418
13419 /* When -fvisibility=hidden is used, assume the code has been annotated
13420 correspondingly for the symbols needed. */
13421 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13422 int fnord (void) __attribute__((visibility("default")));
13423 #endif
13424
13425 int fnord (void) { return 42; }
13426 int main (void)
13427 {
13428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13429 int status = $lt_dlunknown;
13430
13431 if (self)
13432 {
13433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13434 else
13435 {
13436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13437 else puts (dlerror ());
13438 }
13439 /* dlclose (self); */
13440 }
13441 else
13442 puts (dlerror ());
13443
13444 return status;
13445 }
13446 _LT_EOF
13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13448 (eval $ac_link) 2>&5
13449 ac_status=$?
13450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13452 (./conftest; exit; ) >&5 2>/dev/null
13453 lt_status=$?
13454 case x$lt_status in
13455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13458 esac
13459 else :
13460 # compilation failed
13461 lt_cv_dlopen_self=no
13462 fi
13463 fi
13464 rm -fr conftest*
13465
13466 ;;
13467 esac
13468 fi
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13470 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13471
13472 if test yes = "$lt_cv_dlopen_self"; then
13473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13475 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13476 if test ${lt_cv_dlopen_self_static+y}
13477 then :
13478 printf %s "(cached) " >&6
13479 else case e in #(
13480 e) if test yes = "$cross_compiling"; then :
13481 lt_cv_dlopen_self_static=cross
13482 else
13483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13484 lt_status=$lt_dlunknown
13485 cat > conftest.$ac_ext <<_LT_EOF
13486 #line $LINENO "configure"
13487 #include "confdefs.h"
13488
13489 #if HAVE_DLFCN_H
13490 #include <dlfcn.h>
13491 #endif
13492
13493 #include <stdio.h>
13494
13495 #ifdef RTLD_GLOBAL
13496 # define LT_DLGLOBAL RTLD_GLOBAL
13497 #else
13498 # ifdef DL_GLOBAL
13499 # define LT_DLGLOBAL DL_GLOBAL
13500 # else
13501 # define LT_DLGLOBAL 0
13502 # endif
13503 #endif
13504
13505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13506 find out it does not work in some platform. */
13507 #ifndef LT_DLLAZY_OR_NOW
13508 # ifdef RTLD_LAZY
13509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13510 # else
13511 # ifdef DL_LAZY
13512 # define LT_DLLAZY_OR_NOW DL_LAZY
13513 # else
13514 # ifdef RTLD_NOW
13515 # define LT_DLLAZY_OR_NOW RTLD_NOW
13516 # else
13517 # ifdef DL_NOW
13518 # define LT_DLLAZY_OR_NOW DL_NOW
13519 # else
13520 # define LT_DLLAZY_OR_NOW 0
13521 # endif
13522 # endif
13523 # endif
13524 # endif
13525 #endif
13526
13527 /* When -fvisibility=hidden is used, assume the code has been annotated
13528 correspondingly for the symbols needed. */
13529 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13530 int fnord (void) __attribute__((visibility("default")));
13531 #endif
13532
13533 int fnord (void) { return 42; }
13534 int main (void)
13535 {
13536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13537 int status = $lt_dlunknown;
13538
13539 if (self)
13540 {
13541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13542 else
13543 {
13544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13545 else puts (dlerror ());
13546 }
13547 /* dlclose (self); */
13548 }
13549 else
13550 puts (dlerror ());
13551
13552 return status;
13553 }
13554 _LT_EOF
13555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13556 (eval $ac_link) 2>&5
13557 ac_status=$?
13558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13560 (./conftest; exit; ) >&5 2>/dev/null
13561 lt_status=$?
13562 case x$lt_status in
13563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13566 esac
13567 else :
13568 # compilation failed
13569 lt_cv_dlopen_self_static=no
13570 fi
13571 fi
13572 rm -fr conftest*
13573
13574 ;;
13575 esac
13576 fi
13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13578 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13579 fi
13580
13581 CPPFLAGS=$save_CPPFLAGS
13582 LDFLAGS=$save_LDFLAGS
13583 LIBS=$save_LIBS
13584 ;;
13585 esac
13586
13587 case $lt_cv_dlopen_self in
13588 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13589 *) enable_dlopen_self=unknown ;;
13590 esac
13591
13592 case $lt_cv_dlopen_self_static in
13593 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13594 *) enable_dlopen_self_static=unknown ;;
13595 esac
13596 fi
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614 striplib=
13615 old_striplib=
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13617 printf %s "checking whether stripping libraries is possible... " >&6; }
13618 if test -z "$STRIP"; then
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 printf "%s\n" "no" >&6; }
13621 else
13622 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13623 old_striplib="$STRIP --strip-debug"
13624 striplib="$STRIP --strip-unneeded"
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 printf "%s\n" "yes" >&6; }
13627 else
13628 case $host_os in
13629 darwin*)
13630 # FIXME - insert some real tests, host_os isn't really good enough
13631 striplib="$STRIP -x"
13632 old_striplib="$STRIP -S"
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634 printf "%s\n" "yes" >&6; }
13635 ;;
13636 freebsd*)
13637 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13638 old_striplib="$STRIP --strip-debug"
13639 striplib="$STRIP --strip-unneeded"
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641 printf "%s\n" "yes" >&6; }
13642 else
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 printf "%s\n" "no" >&6; }
13645 fi
13646 ;;
13647 *)
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 printf "%s\n" "no" >&6; }
13650 ;;
13651 esac
13652 fi
13653 fi
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 # Report what library types will actually be built
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13668 printf %s "checking if libtool supports shared libraries... " >&6; }
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13670 printf "%s\n" "$can_build_shared" >&6; }
13671
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13673 printf %s "checking whether to build shared libraries... " >&6; }
13674 test no = "$can_build_shared" && enable_shared=no
13675
13676 # On AIX, shared libraries and static libraries use the same namespace, and
13677 # are all built from PIC.
13678 case $host_os in
13679 aix3*)
13680 test yes = "$enable_shared" && enable_static=no
13681 if test -n "$RANLIB"; then
13682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13683 postinstall_cmds='$RANLIB $lib'
13684 fi
13685 ;;
13686
13687 aix[4-9]*)
13688 if test ia64 != "$host_cpu"; then
13689 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13690 yes,aix,yes) ;; # shared object as lib.so file only
13691 yes,svr4,*) ;; # shared object as lib.so archive member only
13692 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13693 esac
13694 fi
13695 ;;
13696 esac
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13698 printf "%s\n" "$enable_shared" >&6; }
13699
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13701 printf %s "checking whether to build static libraries... " >&6; }
13702 # Make sure either enable_shared or enable_static is yes.
13703 test yes = "$enable_shared" || enable_static=yes
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13705 printf "%s\n" "$enable_static" >&6; }
13706
13707
13708
13709
13710 fi
13711 ac_ext=c
13712 ac_cpp='$CPP $CPPFLAGS'
13713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716
13717 CC=$lt_save_CC
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733 ac_config_commands="$ac_config_commands libtool"
13734
13735
13736
13737
13738 # Only expand once:
13739
13740
13741
13742 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13755 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13756 if test ${ac_cv_c_undeclared_builtin_options+y}
13757 then :
13758 printf %s "(cached) " >&6
13759 else case e in #(
13760 e) ac_save_CFLAGS=$CFLAGS
13761 ac_cv_c_undeclared_builtin_options='cannot detect'
13762 for ac_arg in '' -fno-builtin; do
13763 CFLAGS="$ac_save_CFLAGS $ac_arg"
13764 # This test program should *not* compile successfully.
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767
13768 int
13769 main (void)
13770 {
13771 (void) strchr;
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"
13777 then :
13778
13779 else case e in #(
13780 e) # This test program should compile successfully.
13781 # No library function is consistently available on
13782 # freestanding implementations, so test against a dummy
13783 # declaration. Include always-available headers on the
13784 # off chance that they somehow elicit warnings.
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 #include <float.h>
13788 #include <limits.h>
13789 #include <stdarg.h>
13790 #include <stddef.h>
13791 extern void ac_decl (int, char *);
13792
13793 int
13794 main (void)
13795 {
13796 (void) ac_decl (0, (char *) 0);
13797 (void) ac_decl;
13798
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_compile "$LINENO"
13804 then :
13805 if test x"$ac_arg" = x
13806 then :
13807 ac_cv_c_undeclared_builtin_options='none needed'
13808 else case e in #(
13809 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13810 esac
13811 fi
13812 break
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13815 esac
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13818 done
13819 CFLAGS=$ac_save_CFLAGS
13820 ;;
13821 esac
13822 fi
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13824 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13825 case $ac_cv_c_undeclared_builtin_options in #(
13826 'cannot detect') :
13827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13828 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13829 as_fn_error $? "cannot make $CC report undeclared builtins
13830 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13831 'none needed') :
13832 ac_c_undeclared_builtin_options='' ;; #(
13833 *) :
13834 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13835 esac
13836
13837
13838
13839
13840
13841 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13842 if test "x$ac_cv_have_decl___clang__" = xyes
13843 then :
13844 CLANGCC="yes"
13845 else case e in #(
13846 e) CLANGCC="no" ;;
13847 esac
13848 fi
13849 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13850 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13851 then :
13852 INTELCC="yes"
13853 else case e in #(
13854 e) INTELCC="no" ;;
13855 esac
13856 fi
13857 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13858 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13859 then :
13860 SUNCC="yes"
13861 else case e in #(
13862 e) SUNCC="no" ;;
13863 esac
13864 fi
13865
13866
13867
13868
13869
13870
13871
13872
13873 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13874 if test -n "$ac_tool_prefix"; then
13875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 printf %s "checking for $ac_word... " >&6; }
13879 if test ${ac_cv_path_PKG_CONFIG+y}
13880 then :
13881 printf %s "(cached) " >&6
13882 else case e in #(
13883 e) case $PKG_CONFIG in
13884 [\\/]* | ?:[\\/]*)
13885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13886 ;;
13887 *)
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13890 do
13891 IFS=$as_save_IFS
13892 case $as_dir in #(((
13893 '') as_dir=./ ;;
13894 */) ;;
13895 *) as_dir=$as_dir/ ;;
13896 esac
13897 for ac_exec_ext in '' $ac_executable_extensions; do
13898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13899 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13901 break 2
13902 fi
13903 done
13904 done
13905 IFS=$as_save_IFS
13906
13907 ;;
13908 esac ;;
13909 esac
13910 fi
13911 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13912 if test -n "$PKG_CONFIG"; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13914 printf "%s\n" "$PKG_CONFIG" >&6; }
13915 else
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 printf "%s\n" "no" >&6; }
13918 fi
13919
13920
13921 fi
13922 if test -z "$ac_cv_path_PKG_CONFIG"; then
13923 ac_pt_PKG_CONFIG=$PKG_CONFIG
13924 # Extract the first word of "pkg-config", so it can be a program name with args.
13925 set dummy pkg-config; ac_word=$2
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 printf %s "checking for $ac_word... " >&6; }
13928 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13929 then :
13930 printf %s "(cached) " >&6
13931 else case e in #(
13932 e) case $ac_pt_PKG_CONFIG in
13933 [\\/]* | ?:[\\/]*)
13934 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13935 ;;
13936 *)
13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13939 do
13940 IFS=$as_save_IFS
13941 case $as_dir in #(((
13942 '') as_dir=./ ;;
13943 */) ;;
13944 *) as_dir=$as_dir/ ;;
13945 esac
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13948 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13950 break 2
13951 fi
13952 done
13953 done
13954 IFS=$as_save_IFS
13955
13956 ;;
13957 esac ;;
13958 esac
13959 fi
13960 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13961 if test -n "$ac_pt_PKG_CONFIG"; then
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13963 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13964 else
13965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 printf "%s\n" "no" >&6; }
13967 fi
13968
13969 if test "x$ac_pt_PKG_CONFIG" = x; then
13970 PKG_CONFIG=""
13971 else
13972 case $cross_compiling:$ac_tool_warned in
13973 yes:)
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13976 ac_tool_warned=yes ;;
13977 esac
13978 PKG_CONFIG=$ac_pt_PKG_CONFIG
13979 fi
13980 else
13981 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13982 fi
13983
13984 fi
13985 if test -n "$PKG_CONFIG"; then
13986 _pkg_min_version=0.9.0
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13988 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13989 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991 printf "%s\n" "yes" >&6; }
13992 else
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 printf "%s\n" "no" >&6; }
13995 PKG_CONFIG=""
13996 fi
13997 fi
13998
13999
14000
14001
14002
14003 # Check whether --enable-selective-werror was given.
14004 if test ${enable_selective_werror+y}
14005 then :
14006 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14007 else case e in #(
14008 e) SELECTIVE_WERROR=yes ;;
14009 esac
14010 fi
14011
14012
14013
14014
14015
14016 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14017 if test "x$SUNCC" = "xyes"; then
14018 BASE_CFLAGS="-v"
14019 else
14020 BASE_CFLAGS=""
14021 fi
14022
14023 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037 xorg_testset_save_CFLAGS="$CFLAGS"
14038
14039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14043 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14044 then :
14045 printf %s "(cached) " >&6
14046 else case e in #(
14047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049 int i;
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"
14052 then :
14053 xorg_cv_cc_flag_unknown_warning_option=yes
14054 else case e in #(
14055 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14056 esac
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14059 esac
14060 fi
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14064 CFLAGS="$xorg_testset_save_CFLAGS"
14065 fi
14066
14067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14070 fi
14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14075 then :
14076 printf %s "(cached) " >&6
14077 else case e in #(
14078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 int i;
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"
14083 then :
14084 xorg_cv_cc_flag_unused_command_line_argument=yes
14085 else case e in #(
14086 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14087 esac
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14090 esac
14091 fi
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14095 CFLAGS="$xorg_testset_save_CFLAGS"
14096 fi
14097
14098 found="no"
14099
14100 if test $found = "no" ; then
14101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14107 fi
14108
14109 CFLAGS="$CFLAGS -Wall"
14110
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14112 printf %s "checking if $CC supports -Wall... " >&6; }
14113 cacheid=xorg_cv_cc_flag__Wall
14114 if eval test \${$cacheid+y}
14115 then :
14116 printf %s "(cached) " >&6
14117 else case e in #(
14118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 int i;
14121 int
14122 main (void)
14123 {
14124
14125 ;
14126 return 0;
14127 }
14128 _ACEOF
14129 if ac_fn_c_try_link "$LINENO"
14130 then :
14131 eval $cacheid=yes
14132 else case e in #(
14133 e) eval $cacheid=no ;;
14134 esac
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14137 conftest$ac_exeext conftest.$ac_ext ;;
14138 esac
14139 fi
14140
14141
14142 CFLAGS="$xorg_testset_save_CFLAGS"
14143
14144 eval supported=\$$cacheid
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14146 printf "%s\n" "$supported" >&6; }
14147 if test "$supported" = "yes" ; then
14148 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14149 found="yes"
14150 fi
14151 fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167 xorg_testset_save_CFLAGS="$CFLAGS"
14168
14169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14173 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14174 then :
14175 printf %s "(cached) " >&6
14176 else case e in #(
14177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 int i;
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"
14182 then :
14183 xorg_cv_cc_flag_unknown_warning_option=yes
14184 else case e in #(
14185 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14186 esac
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14189 esac
14190 fi
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14194 CFLAGS="$xorg_testset_save_CFLAGS"
14195 fi
14196
14197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 fi
14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14205 then :
14206 printf %s "(cached) " >&6
14207 else case e in #(
14208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 int i;
14211 _ACEOF
14212 if ac_fn_c_try_compile "$LINENO"
14213 then :
14214 xorg_cv_cc_flag_unused_command_line_argument=yes
14215 else case e in #(
14216 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14217 esac
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14220 esac
14221 fi
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14225 CFLAGS="$xorg_testset_save_CFLAGS"
14226 fi
14227
14228 found="no"
14229
14230 if test $found = "no" ; then
14231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14233 fi
14234
14235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14237 fi
14238
14239 CFLAGS="$CFLAGS -Wpointer-arith"
14240
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14242 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14243 cacheid=xorg_cv_cc_flag__Wpointer_arith
14244 if eval test \${$cacheid+y}
14245 then :
14246 printf %s "(cached) " >&6
14247 else case e in #(
14248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 int i;
14251 int
14252 main (void)
14253 {
14254
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_c_try_link "$LINENO"
14260 then :
14261 eval $cacheid=yes
14262 else case e in #(
14263 e) eval $cacheid=no ;;
14264 esac
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14267 conftest$ac_exeext conftest.$ac_ext ;;
14268 esac
14269 fi
14270
14271
14272 CFLAGS="$xorg_testset_save_CFLAGS"
14273
14274 eval supported=\$$cacheid
14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14276 printf "%s\n" "$supported" >&6; }
14277 if test "$supported" = "yes" ; then
14278 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14279 found="yes"
14280 fi
14281 fi
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297 xorg_testset_save_CFLAGS="$CFLAGS"
14298
14299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14303 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14304 then :
14305 printf %s "(cached) " >&6
14306 else case e in #(
14307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 int i;
14310 _ACEOF
14311 if ac_fn_c_try_compile "$LINENO"
14312 then :
14313 xorg_cv_cc_flag_unknown_warning_option=yes
14314 else case e in #(
14315 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14316 esac
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14319 esac
14320 fi
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14322 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14324 CFLAGS="$xorg_testset_save_CFLAGS"
14325 fi
14326
14327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330 fi
14331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14333 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14334 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14335 then :
14336 printf %s "(cached) " >&6
14337 else case e in #(
14338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 int i;
14341 _ACEOF
14342 if ac_fn_c_try_compile "$LINENO"
14343 then :
14344 xorg_cv_cc_flag_unused_command_line_argument=yes
14345 else case e in #(
14346 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14347 esac
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14350 esac
14351 fi
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14353 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14355 CFLAGS="$xorg_testset_save_CFLAGS"
14356 fi
14357
14358 found="no"
14359
14360 if test $found = "no" ; then
14361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14363 fi
14364
14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367 fi
14368
14369 CFLAGS="$CFLAGS -Wmissing-declarations"
14370
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14372 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14373 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14374 if eval test \${$cacheid+y}
14375 then :
14376 printf %s "(cached) " >&6
14377 else case e in #(
14378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 int i;
14381 int
14382 main (void)
14383 {
14384
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"
14390 then :
14391 eval $cacheid=yes
14392 else case e in #(
14393 e) eval $cacheid=no ;;
14394 esac
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14397 conftest$ac_exeext conftest.$ac_ext ;;
14398 esac
14399 fi
14400
14401
14402 CFLAGS="$xorg_testset_save_CFLAGS"
14403
14404 eval supported=\$$cacheid
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14406 printf "%s\n" "$supported" >&6; }
14407 if test "$supported" = "yes" ; then
14408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14409 found="yes"
14410 fi
14411 fi
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427 xorg_testset_save_CFLAGS="$CFLAGS"
14428
14429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14433 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14434 then :
14435 printf %s "(cached) " >&6
14436 else case e in #(
14437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 int i;
14440 _ACEOF
14441 if ac_fn_c_try_compile "$LINENO"
14442 then :
14443 xorg_cv_cc_flag_unknown_warning_option=yes
14444 else case e in #(
14445 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14446 esac
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14449 esac
14450 fi
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14454 CFLAGS="$xorg_testset_save_CFLAGS"
14455 fi
14456
14457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14460 fi
14461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14465 then :
14466 printf %s "(cached) " >&6
14467 else case e in #(
14468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 int i;
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"
14473 then :
14474 xorg_cv_cc_flag_unused_command_line_argument=yes
14475 else case e in #(
14476 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14477 esac
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14480 esac
14481 fi
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14485 CFLAGS="$xorg_testset_save_CFLAGS"
14486 fi
14487
14488 found="no"
14489
14490 if test $found = "no" ; then
14491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14493 fi
14494
14495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14497 fi
14498
14499 CFLAGS="$CFLAGS -Wformat=2"
14500
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14502 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14503 cacheid=xorg_cv_cc_flag__Wformat_2
14504 if eval test \${$cacheid+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else case e in #(
14508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 int i;
14511 int
14512 main (void)
14513 {
14514
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 if ac_fn_c_try_link "$LINENO"
14520 then :
14521 eval $cacheid=yes
14522 else case e in #(
14523 e) eval $cacheid=no ;;
14524 esac
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14527 conftest$ac_exeext conftest.$ac_ext ;;
14528 esac
14529 fi
14530
14531
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533
14534 eval supported=\$$cacheid
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536 printf "%s\n" "$supported" >&6; }
14537 if test "$supported" = "yes" ; then
14538 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14539 found="yes"
14540 fi
14541 fi
14542
14543 if test $found = "no" ; then
14544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14546 fi
14547
14548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14550 fi
14551
14552 CFLAGS="$CFLAGS -Wformat"
14553
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14555 printf %s "checking if $CC supports -Wformat... " >&6; }
14556 cacheid=xorg_cv_cc_flag__Wformat
14557 if eval test \${$cacheid+y}
14558 then :
14559 printf %s "(cached) " >&6
14560 else case e in #(
14561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 int i;
14564 int
14565 main (void)
14566 {
14567
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 if ac_fn_c_try_link "$LINENO"
14573 then :
14574 eval $cacheid=yes
14575 else case e in #(
14576 e) eval $cacheid=no ;;
14577 esac
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14580 conftest$ac_exeext conftest.$ac_ext ;;
14581 esac
14582 fi
14583
14584
14585 CFLAGS="$xorg_testset_save_CFLAGS"
14586
14587 eval supported=\$$cacheid
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14589 printf "%s\n" "$supported" >&6; }
14590 if test "$supported" = "yes" ; then
14591 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14592 found="yes"
14593 fi
14594 fi
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612 xorg_testset_save_CFLAGS="$CFLAGS"
14613
14614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14618 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14619 then :
14620 printf %s "(cached) " >&6
14621 else case e in #(
14622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 int i;
14625 _ACEOF
14626 if ac_fn_c_try_compile "$LINENO"
14627 then :
14628 xorg_cv_cc_flag_unknown_warning_option=yes
14629 else case e in #(
14630 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14631 esac
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14634 esac
14635 fi
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14639 CFLAGS="$xorg_testset_save_CFLAGS"
14640 fi
14641
14642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14645 fi
14646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14650 then :
14651 printf %s "(cached) " >&6
14652 else case e in #(
14653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 int i;
14656 _ACEOF
14657 if ac_fn_c_try_compile "$LINENO"
14658 then :
14659 xorg_cv_cc_flag_unused_command_line_argument=yes
14660 else case e in #(
14661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14662 esac
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14665 esac
14666 fi
14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14670 CFLAGS="$xorg_testset_save_CFLAGS"
14671 fi
14672
14673 found="no"
14674
14675 if test $found = "no" ; then
14676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14678 fi
14679
14680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14682 fi
14683
14684 CFLAGS="$CFLAGS -Wstrict-prototypes"
14685
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14687 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14688 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14689 if eval test \${$cacheid+y}
14690 then :
14691 printf %s "(cached) " >&6
14692 else case e in #(
14693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695 int i;
14696 int
14697 main (void)
14698 {
14699
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_link "$LINENO"
14705 then :
14706 eval $cacheid=yes
14707 else case e in #(
14708 e) eval $cacheid=no ;;
14709 esac
14710 fi
14711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14712 conftest$ac_exeext conftest.$ac_ext ;;
14713 esac
14714 fi
14715
14716
14717 CFLAGS="$xorg_testset_save_CFLAGS"
14718
14719 eval supported=\$$cacheid
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14721 printf "%s\n" "$supported" >&6; }
14722 if test "$supported" = "yes" ; then
14723 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14724 found="yes"
14725 fi
14726 fi
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742 xorg_testset_save_CFLAGS="$CFLAGS"
14743
14744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14749 then :
14750 printf %s "(cached) " >&6
14751 else case e in #(
14752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754 int i;
14755 _ACEOF
14756 if ac_fn_c_try_compile "$LINENO"
14757 then :
14758 xorg_cv_cc_flag_unknown_warning_option=yes
14759 else case e in #(
14760 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14761 esac
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14764 esac
14765 fi
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14769 CFLAGS="$xorg_testset_save_CFLAGS"
14770 fi
14771
14772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14775 fi
14776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14780 then :
14781 printf %s "(cached) " >&6
14782 else case e in #(
14783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 int i;
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"
14788 then :
14789 xorg_cv_cc_flag_unused_command_line_argument=yes
14790 else case e in #(
14791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14792 esac
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14795 esac
14796 fi
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14800 CFLAGS="$xorg_testset_save_CFLAGS"
14801 fi
14802
14803 found="no"
14804
14805 if test $found = "no" ; then
14806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808 fi
14809
14810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14812 fi
14813
14814 CFLAGS="$CFLAGS -Wmissing-prototypes"
14815
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14817 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14818 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14819 if eval test \${$cacheid+y}
14820 then :
14821 printf %s "(cached) " >&6
14822 else case e in #(
14823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 int i;
14826 int
14827 main (void)
14828 {
14829
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"
14835 then :
14836 eval $cacheid=yes
14837 else case e in #(
14838 e) eval $cacheid=no ;;
14839 esac
14840 fi
14841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14842 conftest$ac_exeext conftest.$ac_ext ;;
14843 esac
14844 fi
14845
14846
14847 CFLAGS="$xorg_testset_save_CFLAGS"
14848
14849 eval supported=\$$cacheid
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14851 printf "%s\n" "$supported" >&6; }
14852 if test "$supported" = "yes" ; then
14853 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14854 found="yes"
14855 fi
14856 fi
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 xorg_testset_save_CFLAGS="$CFLAGS"
14873
14874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14878 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14879 then :
14880 printf %s "(cached) " >&6
14881 else case e in #(
14882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14884 int i;
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"
14887 then :
14888 xorg_cv_cc_flag_unknown_warning_option=yes
14889 else case e in #(
14890 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14891 esac
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14894 esac
14895 fi
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14899 CFLAGS="$xorg_testset_save_CFLAGS"
14900 fi
14901
14902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14905 fi
14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14910 then :
14911 printf %s "(cached) " >&6
14912 else case e in #(
14913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915 int i;
14916 _ACEOF
14917 if ac_fn_c_try_compile "$LINENO"
14918 then :
14919 xorg_cv_cc_flag_unused_command_line_argument=yes
14920 else case e in #(
14921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14922 esac
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14925 esac
14926 fi
14927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14930 CFLAGS="$xorg_testset_save_CFLAGS"
14931 fi
14932
14933 found="no"
14934
14935 if test $found = "no" ; then
14936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14938 fi
14939
14940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14942 fi
14943
14944 CFLAGS="$CFLAGS -Wnested-externs"
14945
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14947 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14948 cacheid=xorg_cv_cc_flag__Wnested_externs
14949 if eval test \${$cacheid+y}
14950 then :
14951 printf %s "(cached) " >&6
14952 else case e in #(
14953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14955 int i;
14956 int
14957 main (void)
14958 {
14959
14960 ;
14961 return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_link "$LINENO"
14965 then :
14966 eval $cacheid=yes
14967 else case e in #(
14968 e) eval $cacheid=no ;;
14969 esac
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14972 conftest$ac_exeext conftest.$ac_ext ;;
14973 esac
14974 fi
14975
14976
14977 CFLAGS="$xorg_testset_save_CFLAGS"
14978
14979 eval supported=\$$cacheid
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14981 printf "%s\n" "$supported" >&6; }
14982 if test "$supported" = "yes" ; then
14983 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14984 found="yes"
14985 fi
14986 fi
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002 xorg_testset_save_CFLAGS="$CFLAGS"
15003
15004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15008 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15009 then :
15010 printf %s "(cached) " >&6
15011 else case e in #(
15012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 int i;
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"
15017 then :
15018 xorg_cv_cc_flag_unknown_warning_option=yes
15019 else case e in #(
15020 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15021 esac
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15024 esac
15025 fi
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15029 CFLAGS="$xorg_testset_save_CFLAGS"
15030 fi
15031
15032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035 fi
15036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15040 then :
15041 printf %s "(cached) " >&6
15042 else case e in #(
15043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 int i;
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"
15048 then :
15049 xorg_cv_cc_flag_unused_command_line_argument=yes
15050 else case e in #(
15051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15052 esac
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15055 esac
15056 fi
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15060 CFLAGS="$xorg_testset_save_CFLAGS"
15061 fi
15062
15063 found="no"
15064
15065 if test $found = "no" ; then
15066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068 fi
15069
15070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15072 fi
15073
15074 CFLAGS="$CFLAGS -Wbad-function-cast"
15075
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15077 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15078 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15079 if eval test \${$cacheid+y}
15080 then :
15081 printf %s "(cached) " >&6
15082 else case e in #(
15083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085 int i;
15086 int
15087 main (void)
15088 {
15089
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"
15095 then :
15096 eval $cacheid=yes
15097 else case e in #(
15098 e) eval $cacheid=no ;;
15099 esac
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15102 conftest$ac_exeext conftest.$ac_ext ;;
15103 esac
15104 fi
15105
15106
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108
15109 eval supported=\$$cacheid
15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15111 printf "%s\n" "$supported" >&6; }
15112 if test "$supported" = "yes" ; then
15113 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15114 found="yes"
15115 fi
15116 fi
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132 xorg_testset_save_CFLAGS="$CFLAGS"
15133
15134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15138 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15139 then :
15140 printf %s "(cached) " >&6
15141 else case e in #(
15142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 int i;
15145 _ACEOF
15146 if ac_fn_c_try_compile "$LINENO"
15147 then :
15148 xorg_cv_cc_flag_unknown_warning_option=yes
15149 else case e in #(
15150 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15151 esac
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15154 esac
15155 fi
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15159 CFLAGS="$xorg_testset_save_CFLAGS"
15160 fi
15161
15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165 fi
15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15170 then :
15171 printf %s "(cached) " >&6
15172 else case e in #(
15173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 int i;
15176 _ACEOF
15177 if ac_fn_c_try_compile "$LINENO"
15178 then :
15179 xorg_cv_cc_flag_unused_command_line_argument=yes
15180 else case e in #(
15181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15182 esac
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15185 esac
15186 fi
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15190 CFLAGS="$xorg_testset_save_CFLAGS"
15191 fi
15192
15193 found="no"
15194
15195 if test $found = "no" ; then
15196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198 fi
15199
15200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202 fi
15203
15204 CFLAGS="$CFLAGS -Wold-style-definition"
15205
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15207 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15208 cacheid=xorg_cv_cc_flag__Wold_style_definition
15209 if eval test \${$cacheid+y}
15210 then :
15211 printf %s "(cached) " >&6
15212 else case e in #(
15213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 int i;
15216 int
15217 main (void)
15218 {
15219
15220 ;
15221 return 0;
15222 }
15223 _ACEOF
15224 if ac_fn_c_try_link "$LINENO"
15225 then :
15226 eval $cacheid=yes
15227 else case e in #(
15228 e) eval $cacheid=no ;;
15229 esac
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15232 conftest$ac_exeext conftest.$ac_ext ;;
15233 esac
15234 fi
15235
15236
15237 CFLAGS="$xorg_testset_save_CFLAGS"
15238
15239 eval supported=\$$cacheid
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15241 printf "%s\n" "$supported" >&6; }
15242 if test "$supported" = "yes" ; then
15243 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15244 found="yes"
15245 fi
15246 fi
15247
15248 if test $found = "no" ; then
15249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15251 fi
15252
15253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15255 fi
15256
15257 CFLAGS="$CFLAGS -fd"
15258
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15260 printf %s "checking if $CC supports -fd... " >&6; }
15261 cacheid=xorg_cv_cc_flag__fd
15262 if eval test \${$cacheid+y}
15263 then :
15264 printf %s "(cached) " >&6
15265 else case e in #(
15266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15268 int i;
15269 int
15270 main (void)
15271 {
15272
15273 ;
15274 return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_link "$LINENO"
15278 then :
15279 eval $cacheid=yes
15280 else case e in #(
15281 e) eval $cacheid=no ;;
15282 esac
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15285 conftest$ac_exeext conftest.$ac_ext ;;
15286 esac
15287 fi
15288
15289
15290 CFLAGS="$xorg_testset_save_CFLAGS"
15291
15292 eval supported=\$$cacheid
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15294 printf "%s\n" "$supported" >&6; }
15295 if test "$supported" = "yes" ; then
15296 BASE_CFLAGS="$BASE_CFLAGS -fd"
15297 found="yes"
15298 fi
15299 fi
15300
15301
15302
15303
15304
15305 # This chunk adds additional warnings that could catch undesired effects.
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 xorg_testset_save_CFLAGS="$CFLAGS"
15320
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15325 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15326 then :
15327 printf %s "(cached) " >&6
15328 else case e in #(
15329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331 int i;
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"
15334 then :
15335 xorg_cv_cc_flag_unknown_warning_option=yes
15336 else case e in #(
15337 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15338 esac
15339 fi
15340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15341 esac
15342 fi
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15344 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15346 CFLAGS="$xorg_testset_save_CFLAGS"
15347 fi
15348
15349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15352 fi
15353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15355 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15356 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15357 then :
15358 printf %s "(cached) " >&6
15359 else case e in #(
15360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 int i;
15363 _ACEOF
15364 if ac_fn_c_try_compile "$LINENO"
15365 then :
15366 xorg_cv_cc_flag_unused_command_line_argument=yes
15367 else case e in #(
15368 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15369 esac
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15372 esac
15373 fi
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15375 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15377 CFLAGS="$xorg_testset_save_CFLAGS"
15378 fi
15379
15380 found="no"
15381
15382 if test $found = "no" ; then
15383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15385 fi
15386
15387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15389 fi
15390
15391 CFLAGS="$CFLAGS -Wunused"
15392
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15394 printf %s "checking if $CC supports -Wunused... " >&6; }
15395 cacheid=xorg_cv_cc_flag__Wunused
15396 if eval test \${$cacheid+y}
15397 then :
15398 printf %s "(cached) " >&6
15399 else case e in #(
15400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 int i;
15403 int
15404 main (void)
15405 {
15406
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"
15412 then :
15413 eval $cacheid=yes
15414 else case e in #(
15415 e) eval $cacheid=no ;;
15416 esac
15417 fi
15418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15419 conftest$ac_exeext conftest.$ac_ext ;;
15420 esac
15421 fi
15422
15423
15424 CFLAGS="$xorg_testset_save_CFLAGS"
15425
15426 eval supported=\$$cacheid
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15428 printf "%s\n" "$supported" >&6; }
15429 if test "$supported" = "yes" ; then
15430 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15431 found="yes"
15432 fi
15433 fi
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449 xorg_testset_save_CFLAGS="$CFLAGS"
15450
15451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15455 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15456 then :
15457 printf %s "(cached) " >&6
15458 else case e in #(
15459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 int i;
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"
15464 then :
15465 xorg_cv_cc_flag_unknown_warning_option=yes
15466 else case e in #(
15467 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15468 esac
15469 fi
15470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15471 esac
15472 fi
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15476 CFLAGS="$xorg_testset_save_CFLAGS"
15477 fi
15478
15479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 fi
15483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15487 then :
15488 printf %s "(cached) " >&6
15489 else case e in #(
15490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 int i;
15493 _ACEOF
15494 if ac_fn_c_try_compile "$LINENO"
15495 then :
15496 xorg_cv_cc_flag_unused_command_line_argument=yes
15497 else case e in #(
15498 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15499 esac
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15502 esac
15503 fi
15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15505 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15507 CFLAGS="$xorg_testset_save_CFLAGS"
15508 fi
15509
15510 found="no"
15511
15512 if test $found = "no" ; then
15513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15515 fi
15516
15517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15519 fi
15520
15521 CFLAGS="$CFLAGS -Wuninitialized"
15522
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15524 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15525 cacheid=xorg_cv_cc_flag__Wuninitialized
15526 if eval test \${$cacheid+y}
15527 then :
15528 printf %s "(cached) " >&6
15529 else case e in #(
15530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 int i;
15533 int
15534 main (void)
15535 {
15536
15537 ;
15538 return 0;
15539 }
15540 _ACEOF
15541 if ac_fn_c_try_link "$LINENO"
15542 then :
15543 eval $cacheid=yes
15544 else case e in #(
15545 e) eval $cacheid=no ;;
15546 esac
15547 fi
15548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15549 conftest$ac_exeext conftest.$ac_ext ;;
15550 esac
15551 fi
15552
15553
15554 CFLAGS="$xorg_testset_save_CFLAGS"
15555
15556 eval supported=\$$cacheid
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15558 printf "%s\n" "$supported" >&6; }
15559 if test "$supported" = "yes" ; then
15560 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15561 found="yes"
15562 fi
15563 fi
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579 xorg_testset_save_CFLAGS="$CFLAGS"
15580
15581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15586 then :
15587 printf %s "(cached) " >&6
15588 else case e in #(
15589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 int i;
15592 _ACEOF
15593 if ac_fn_c_try_compile "$LINENO"
15594 then :
15595 xorg_cv_cc_flag_unknown_warning_option=yes
15596 else case e in #(
15597 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15598 esac
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15601 esac
15602 fi
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15606 CFLAGS="$xorg_testset_save_CFLAGS"
15607 fi
15608
15609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612 fi
15613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15617 then :
15618 printf %s "(cached) " >&6
15619 else case e in #(
15620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 int i;
15623 _ACEOF
15624 if ac_fn_c_try_compile "$LINENO"
15625 then :
15626 xorg_cv_cc_flag_unused_command_line_argument=yes
15627 else case e in #(
15628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15629 esac
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15632 esac
15633 fi
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15637 CFLAGS="$xorg_testset_save_CFLAGS"
15638 fi
15639
15640 found="no"
15641
15642 if test $found = "no" ; then
15643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15645 fi
15646
15647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15649 fi
15650
15651 CFLAGS="$CFLAGS -Wshadow"
15652
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15654 printf %s "checking if $CC supports -Wshadow... " >&6; }
15655 cacheid=xorg_cv_cc_flag__Wshadow
15656 if eval test \${$cacheid+y}
15657 then :
15658 printf %s "(cached) " >&6
15659 else case e in #(
15660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 int i;
15663 int
15664 main (void)
15665 {
15666
15667 ;
15668 return 0;
15669 }
15670 _ACEOF
15671 if ac_fn_c_try_link "$LINENO"
15672 then :
15673 eval $cacheid=yes
15674 else case e in #(
15675 e) eval $cacheid=no ;;
15676 esac
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15679 conftest$ac_exeext conftest.$ac_ext ;;
15680 esac
15681 fi
15682
15683
15684 CFLAGS="$xorg_testset_save_CFLAGS"
15685
15686 eval supported=\$$cacheid
15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15688 printf "%s\n" "$supported" >&6; }
15689 if test "$supported" = "yes" ; then
15690 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15691 found="yes"
15692 fi
15693 fi
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709 xorg_testset_save_CFLAGS="$CFLAGS"
15710
15711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15716 then :
15717 printf %s "(cached) " >&6
15718 else case e in #(
15719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int i;
15722 _ACEOF
15723 if ac_fn_c_try_compile "$LINENO"
15724 then :
15725 xorg_cv_cc_flag_unknown_warning_option=yes
15726 else case e in #(
15727 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15728 esac
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15731 esac
15732 fi
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15736 CFLAGS="$xorg_testset_save_CFLAGS"
15737 fi
15738
15739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15742 fi
15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15747 then :
15748 printf %s "(cached) " >&6
15749 else case e in #(
15750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"
15755 then :
15756 xorg_cv_cc_flag_unused_command_line_argument=yes
15757 else case e in #(
15758 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15759 esac
15760 fi
15761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15762 esac
15763 fi
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15765 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15767 CFLAGS="$xorg_testset_save_CFLAGS"
15768 fi
15769
15770 found="no"
15771
15772 if test $found = "no" ; then
15773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15775 fi
15776
15777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15779 fi
15780
15781 CFLAGS="$CFLAGS -Wmissing-noreturn"
15782
15783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15784 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15785 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15786 if eval test \${$cacheid+y}
15787 then :
15788 printf %s "(cached) " >&6
15789 else case e in #(
15790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 int i;
15793 int
15794 main (void)
15795 {
15796
15797 ;
15798 return 0;
15799 }
15800 _ACEOF
15801 if ac_fn_c_try_link "$LINENO"
15802 then :
15803 eval $cacheid=yes
15804 else case e in #(
15805 e) eval $cacheid=no ;;
15806 esac
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15809 conftest$ac_exeext conftest.$ac_ext ;;
15810 esac
15811 fi
15812
15813
15814 CFLAGS="$xorg_testset_save_CFLAGS"
15815
15816 eval supported=\$$cacheid
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15818 printf "%s\n" "$supported" >&6; }
15819 if test "$supported" = "yes" ; then
15820 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15821 found="yes"
15822 fi
15823 fi
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839 xorg_testset_save_CFLAGS="$CFLAGS"
15840
15841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15844 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15845 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15846 then :
15847 printf %s "(cached) " >&6
15848 else case e in #(
15849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int i;
15852 _ACEOF
15853 if ac_fn_c_try_compile "$LINENO"
15854 then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15856 else case e in #(
15857 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15858 esac
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15861 esac
15862 fi
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15864 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15866 CFLAGS="$xorg_testset_save_CFLAGS"
15867 fi
15868
15869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15872 fi
15873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15875 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15876 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15877 then :
15878 printf %s "(cached) " >&6
15879 else case e in #(
15880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 int i;
15883 _ACEOF
15884 if ac_fn_c_try_compile "$LINENO"
15885 then :
15886 xorg_cv_cc_flag_unused_command_line_argument=yes
15887 else case e in #(
15888 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15889 esac
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15892 esac
15893 fi
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15897 CFLAGS="$xorg_testset_save_CFLAGS"
15898 fi
15899
15900 found="no"
15901
15902 if test $found = "no" ; then
15903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15905 fi
15906
15907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909 fi
15910
15911 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15912
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15914 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15915 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15916 if eval test \${$cacheid+y}
15917 then :
15918 printf %s "(cached) " >&6
15919 else case e in #(
15920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15922 int i;
15923 int
15924 main (void)
15925 {
15926
15927 ;
15928 return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_link "$LINENO"
15932 then :
15933 eval $cacheid=yes
15934 else case e in #(
15935 e) eval $cacheid=no ;;
15936 esac
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15939 conftest$ac_exeext conftest.$ac_ext ;;
15940 esac
15941 fi
15942
15943
15944 CFLAGS="$xorg_testset_save_CFLAGS"
15945
15946 eval supported=\$$cacheid
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15948 printf "%s\n" "$supported" >&6; }
15949 if test "$supported" = "yes" ; then
15950 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15951 found="yes"
15952 fi
15953 fi
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969 xorg_testset_save_CFLAGS="$CFLAGS"
15970
15971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15974 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15975 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15976 then :
15977 printf %s "(cached) " >&6
15978 else case e in #(
15979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 int i;
15982 _ACEOF
15983 if ac_fn_c_try_compile "$LINENO"
15984 then :
15985 xorg_cv_cc_flag_unknown_warning_option=yes
15986 else case e in #(
15987 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15988 esac
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15991 esac
15992 fi
15993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15994 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15996 CFLAGS="$xorg_testset_save_CFLAGS"
15997 fi
15998
15999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002 fi
16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16005 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16006 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else case e in #(
16010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012 int i;
16013 _ACEOF
16014 if ac_fn_c_try_compile "$LINENO"
16015 then :
16016 xorg_cv_cc_flag_unused_command_line_argument=yes
16017 else case e in #(
16018 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16019 esac
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16022 esac
16023 fi
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16025 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16027 CFLAGS="$xorg_testset_save_CFLAGS"
16028 fi
16029
16030 found="no"
16031
16032 if test $found = "no" ; then
16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16035 fi
16036
16037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 fi
16040
16041 CFLAGS="$CFLAGS -Wredundant-decls"
16042
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16044 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16045 cacheid=xorg_cv_cc_flag__Wredundant_decls
16046 if eval test \${$cacheid+y}
16047 then :
16048 printf %s "(cached) " >&6
16049 else case e in #(
16050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 int i;
16053 int
16054 main (void)
16055 {
16056
16057 ;
16058 return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"
16062 then :
16063 eval $cacheid=yes
16064 else case e in #(
16065 e) eval $cacheid=no ;;
16066 esac
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16069 conftest$ac_exeext conftest.$ac_ext ;;
16070 esac
16071 fi
16072
16073
16074 CFLAGS="$xorg_testset_save_CFLAGS"
16075
16076 eval supported=\$$cacheid
16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16078 printf "%s\n" "$supported" >&6; }
16079 if test "$supported" = "yes" ; then
16080 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16081 found="yes"
16082 fi
16083 fi
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099 xorg_testset_save_CFLAGS="$CFLAGS"
16100
16101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16104 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16105 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16106 then :
16107 printf %s "(cached) " >&6
16108 else case e in #(
16109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111 int i;
16112 _ACEOF
16113 if ac_fn_c_try_compile "$LINENO"
16114 then :
16115 xorg_cv_cc_flag_unknown_warning_option=yes
16116 else case e in #(
16117 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16118 esac
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16121 esac
16122 fi
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16126 CFLAGS="$xorg_testset_save_CFLAGS"
16127 fi
16128
16129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132 fi
16133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16137 then :
16138 printf %s "(cached) " >&6
16139 else case e in #(
16140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 int i;
16143 _ACEOF
16144 if ac_fn_c_try_compile "$LINENO"
16145 then :
16146 xorg_cv_cc_flag_unused_command_line_argument=yes
16147 else case e in #(
16148 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16149 esac
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16152 esac
16153 fi
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16157 CFLAGS="$xorg_testset_save_CFLAGS"
16158 fi
16159
16160 found="no"
16161
16162 if test $found = "no" ; then
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 fi
16166
16167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169 fi
16170
16171 CFLAGS="$CFLAGS -Wlogical-op"
16172
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16174 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16175 cacheid=xorg_cv_cc_flag__Wlogical_op
16176 if eval test \${$cacheid+y}
16177 then :
16178 printf %s "(cached) " >&6
16179 else case e in #(
16180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 int i;
16183 int
16184 main (void)
16185 {
16186
16187 ;
16188 return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_c_try_link "$LINENO"
16192 then :
16193 eval $cacheid=yes
16194 else case e in #(
16195 e) eval $cacheid=no ;;
16196 esac
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16199 conftest$ac_exeext conftest.$ac_ext ;;
16200 esac
16201 fi
16202
16203
16204 CFLAGS="$xorg_testset_save_CFLAGS"
16205
16206 eval supported=\$$cacheid
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16208 printf "%s\n" "$supported" >&6; }
16209 if test "$supported" = "yes" ; then
16210 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16211 found="yes"
16212 fi
16213 fi
16214
16215
16216
16217 # These are currently disabled because they are noisy. They will be enabled
16218 # in the future once the codebase is sufficiently modernized to silence
16219 # them. For now, I don't want them to drown out the other warnings.
16220 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16221 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16222 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16223
16224 # Turn some warnings into errors, so we don't accidentally get successful builds
16225 # when there are problems that should be fixed.
16226
16227 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241 xorg_testset_save_CFLAGS="$CFLAGS"
16242
16243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else case e in #(
16251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 int i;
16254 _ACEOF
16255 if ac_fn_c_try_compile "$LINENO"
16256 then :
16257 xorg_cv_cc_flag_unknown_warning_option=yes
16258 else case e in #(
16259 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16260 esac
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16263 esac
16264 fi
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16266 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16268 CFLAGS="$xorg_testset_save_CFLAGS"
16269 fi
16270
16271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16274 fi
16275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16277 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16278 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16279 then :
16280 printf %s "(cached) " >&6
16281 else case e in #(
16282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 int i;
16285 _ACEOF
16286 if ac_fn_c_try_compile "$LINENO"
16287 then :
16288 xorg_cv_cc_flag_unused_command_line_argument=yes
16289 else case e in #(
16290 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16291 esac
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16294 esac
16295 fi
16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16299 CFLAGS="$xorg_testset_save_CFLAGS"
16300 fi
16301
16302 found="no"
16303
16304 if test $found = "no" ; then
16305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16307 fi
16308
16309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16311 fi
16312
16313 CFLAGS="$CFLAGS -Werror=implicit"
16314
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16316 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16317 cacheid=xorg_cv_cc_flag__Werror_implicit
16318 if eval test \${$cacheid+y}
16319 then :
16320 printf %s "(cached) " >&6
16321 else case e in #(
16322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 int i;
16325 int
16326 main (void)
16327 {
16328
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 if ac_fn_c_try_link "$LINENO"
16334 then :
16335 eval $cacheid=yes
16336 else case e in #(
16337 e) eval $cacheid=no ;;
16338 esac
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16341 conftest$ac_exeext conftest.$ac_ext ;;
16342 esac
16343 fi
16344
16345
16346 CFLAGS="$xorg_testset_save_CFLAGS"
16347
16348 eval supported=\$$cacheid
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16350 printf "%s\n" "$supported" >&6; }
16351 if test "$supported" = "yes" ; then
16352 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16353 found="yes"
16354 fi
16355 fi
16356
16357 if test $found = "no" ; then
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 fi
16361
16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364 fi
16365
16366 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16367
16368 { 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
16369 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16370 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16371 if eval test \${$cacheid+y}
16372 then :
16373 printf %s "(cached) " >&6
16374 else case e in #(
16375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 int i;
16378 int
16379 main (void)
16380 {
16381
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_c_try_link "$LINENO"
16387 then :
16388 eval $cacheid=yes
16389 else case e in #(
16390 e) eval $cacheid=no ;;
16391 esac
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16394 conftest$ac_exeext conftest.$ac_ext ;;
16395 esac
16396 fi
16397
16398
16399 CFLAGS="$xorg_testset_save_CFLAGS"
16400
16401 eval supported=\$$cacheid
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16403 printf "%s\n" "$supported" >&6; }
16404 if test "$supported" = "yes" ; then
16405 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16406 found="yes"
16407 fi
16408 fi
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 xorg_testset_save_CFLAGS="$CFLAGS"
16425
16426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16430 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16431 then :
16432 printf %s "(cached) " >&6
16433 else case e in #(
16434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 int i;
16437 _ACEOF
16438 if ac_fn_c_try_compile "$LINENO"
16439 then :
16440 xorg_cv_cc_flag_unknown_warning_option=yes
16441 else case e in #(
16442 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16443 esac
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16446 esac
16447 fi
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16449 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16451 CFLAGS="$xorg_testset_save_CFLAGS"
16452 fi
16453
16454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16457 fi
16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16460 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16461 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16462 then :
16463 printf %s "(cached) " >&6
16464 else case e in #(
16465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 int i;
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"
16470 then :
16471 xorg_cv_cc_flag_unused_command_line_argument=yes
16472 else case e in #(
16473 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16474 esac
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16477 esac
16478 fi
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16480 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16482 CFLAGS="$xorg_testset_save_CFLAGS"
16483 fi
16484
16485 found="no"
16486
16487 if test $found = "no" ; then
16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494 fi
16495
16496 CFLAGS="$CFLAGS -Werror=nonnull"
16497
16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16499 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16500 cacheid=xorg_cv_cc_flag__Werror_nonnull
16501 if eval test \${$cacheid+y}
16502 then :
16503 printf %s "(cached) " >&6
16504 else case e in #(
16505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507 int i;
16508 int
16509 main (void)
16510 {
16511
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"
16517 then :
16518 eval $cacheid=yes
16519 else case e in #(
16520 e) eval $cacheid=no ;;
16521 esac
16522 fi
16523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16524 conftest$ac_exeext conftest.$ac_ext ;;
16525 esac
16526 fi
16527
16528
16529 CFLAGS="$xorg_testset_save_CFLAGS"
16530
16531 eval supported=\$$cacheid
16532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16533 printf "%s\n" "$supported" >&6; }
16534 if test "$supported" = "yes" ; then
16535 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16536 found="yes"
16537 fi
16538 fi
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554 xorg_testset_save_CFLAGS="$CFLAGS"
16555
16556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16561 then :
16562 printf %s "(cached) " >&6
16563 else case e in #(
16564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 int i;
16567 _ACEOF
16568 if ac_fn_c_try_compile "$LINENO"
16569 then :
16570 xorg_cv_cc_flag_unknown_warning_option=yes
16571 else case e in #(
16572 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16573 esac
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16576 esac
16577 fi
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16581 CFLAGS="$xorg_testset_save_CFLAGS"
16582 fi
16583
16584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16587 fi
16588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16592 then :
16593 printf %s "(cached) " >&6
16594 else case e in #(
16595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 int i;
16598 _ACEOF
16599 if ac_fn_c_try_compile "$LINENO"
16600 then :
16601 xorg_cv_cc_flag_unused_command_line_argument=yes
16602 else case e in #(
16603 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16604 esac
16605 fi
16606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16607 esac
16608 fi
16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16610 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16612 CFLAGS="$xorg_testset_save_CFLAGS"
16613 fi
16614
16615 found="no"
16616
16617 if test $found = "no" ; then
16618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620 fi
16621
16622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624 fi
16625
16626 CFLAGS="$CFLAGS -Werror=init-self"
16627
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16629 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16630 cacheid=xorg_cv_cc_flag__Werror_init_self
16631 if eval test \${$cacheid+y}
16632 then :
16633 printf %s "(cached) " >&6
16634 else case e in #(
16635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16637 int i;
16638 int
16639 main (void)
16640 {
16641
16642 ;
16643 return 0;
16644 }
16645 _ACEOF
16646 if ac_fn_c_try_link "$LINENO"
16647 then :
16648 eval $cacheid=yes
16649 else case e in #(
16650 e) eval $cacheid=no ;;
16651 esac
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16654 conftest$ac_exeext conftest.$ac_ext ;;
16655 esac
16656 fi
16657
16658
16659 CFLAGS="$xorg_testset_save_CFLAGS"
16660
16661 eval supported=\$$cacheid
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16663 printf "%s\n" "$supported" >&6; }
16664 if test "$supported" = "yes" ; then
16665 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16666 found="yes"
16667 fi
16668 fi
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684 xorg_testset_save_CFLAGS="$CFLAGS"
16685
16686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16689 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16690 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16691 then :
16692 printf %s "(cached) " >&6
16693 else case e in #(
16694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696 int i;
16697 _ACEOF
16698 if ac_fn_c_try_compile "$LINENO"
16699 then :
16700 xorg_cv_cc_flag_unknown_warning_option=yes
16701 else case e in #(
16702 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16703 esac
16704 fi
16705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16706 esac
16707 fi
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16709 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16711 CFLAGS="$xorg_testset_save_CFLAGS"
16712 fi
16713
16714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16717 fi
16718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16720 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16721 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16722 then :
16723 printf %s "(cached) " >&6
16724 else case e in #(
16725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727 int i;
16728 _ACEOF
16729 if ac_fn_c_try_compile "$LINENO"
16730 then :
16731 xorg_cv_cc_flag_unused_command_line_argument=yes
16732 else case e in #(
16733 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16734 esac
16735 fi
16736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16737 esac
16738 fi
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 found="no"
16746
16747 if test $found = "no" ; then
16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750 fi
16751
16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754 fi
16755
16756 CFLAGS="$CFLAGS -Werror=main"
16757
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16759 printf %s "checking if $CC supports -Werror=main... " >&6; }
16760 cacheid=xorg_cv_cc_flag__Werror_main
16761 if eval test \${$cacheid+y}
16762 then :
16763 printf %s "(cached) " >&6
16764 else case e in #(
16765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 int i;
16768 int
16769 main (void)
16770 {
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"
16777 then :
16778 eval $cacheid=yes
16779 else case e in #(
16780 e) eval $cacheid=no ;;
16781 esac
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16784 conftest$ac_exeext conftest.$ac_ext ;;
16785 esac
16786 fi
16787
16788
16789 CFLAGS="$xorg_testset_save_CFLAGS"
16790
16791 eval supported=\$$cacheid
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16793 printf "%s\n" "$supported" >&6; }
16794 if test "$supported" = "yes" ; then
16795 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16796 found="yes"
16797 fi
16798 fi
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814 xorg_testset_save_CFLAGS="$CFLAGS"
16815
16816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16821 then :
16822 printf %s "(cached) " >&6
16823 else case e in #(
16824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 int i;
16827 _ACEOF
16828 if ac_fn_c_try_compile "$LINENO"
16829 then :
16830 xorg_cv_cc_flag_unknown_warning_option=yes
16831 else case e in #(
16832 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16833 esac
16834 fi
16835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16836 esac
16837 fi
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16841 CFLAGS="$xorg_testset_save_CFLAGS"
16842 fi
16843
16844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 fi
16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else case e in #(
16855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 _ACEOF
16859 if ac_fn_c_try_compile "$LINENO"
16860 then :
16861 xorg_cv_cc_flag_unused_command_line_argument=yes
16862 else case e in #(
16863 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16864 esac
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16867 esac
16868 fi
16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16870 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16872 CFLAGS="$xorg_testset_save_CFLAGS"
16873 fi
16874
16875 found="no"
16876
16877 if test $found = "no" ; then
16878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880 fi
16881
16882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884 fi
16885
16886 CFLAGS="$CFLAGS -Werror=missing-braces"
16887
16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16889 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16890 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16891 if eval test \${$cacheid+y}
16892 then :
16893 printf %s "(cached) " >&6
16894 else case e in #(
16895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 int i;
16898 int
16899 main (void)
16900 {
16901
16902 ;
16903 return 0;
16904 }
16905 _ACEOF
16906 if ac_fn_c_try_link "$LINENO"
16907 then :
16908 eval $cacheid=yes
16909 else case e in #(
16910 e) eval $cacheid=no ;;
16911 esac
16912 fi
16913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16914 conftest$ac_exeext conftest.$ac_ext ;;
16915 esac
16916 fi
16917
16918
16919 CFLAGS="$xorg_testset_save_CFLAGS"
16920
16921 eval supported=\$$cacheid
16922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16923 printf "%s\n" "$supported" >&6; }
16924 if test "$supported" = "yes" ; then
16925 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16926 found="yes"
16927 fi
16928 fi
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944 xorg_testset_save_CFLAGS="$CFLAGS"
16945
16946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16951 then :
16952 printf %s "(cached) " >&6
16953 else case e in #(
16954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 int i;
16957 _ACEOF
16958 if ac_fn_c_try_compile "$LINENO"
16959 then :
16960 xorg_cv_cc_flag_unknown_warning_option=yes
16961 else case e in #(
16962 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16963 esac
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16966 esac
16967 fi
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16969 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16971 CFLAGS="$xorg_testset_save_CFLAGS"
16972 fi
16973
16974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 fi
16978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16980 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16981 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16982 then :
16983 printf %s "(cached) " >&6
16984 else case e in #(
16985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987 int i;
16988 _ACEOF
16989 if ac_fn_c_try_compile "$LINENO"
16990 then :
16991 xorg_cv_cc_flag_unused_command_line_argument=yes
16992 else case e in #(
16993 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16994 esac
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16997 esac
16998 fi
16999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17002 CFLAGS="$xorg_testset_save_CFLAGS"
17003 fi
17004
17005 found="no"
17006
17007 if test $found = "no" ; then
17008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17010 fi
17011
17012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17014 fi
17015
17016 CFLAGS="$CFLAGS -Werror=sequence-point"
17017
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17019 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17020 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17021 if eval test \${$cacheid+y}
17022 then :
17023 printf %s "(cached) " >&6
17024 else case e in #(
17025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 int i;
17028 int
17029 main (void)
17030 {
17031
17032 ;
17033 return 0;
17034 }
17035 _ACEOF
17036 if ac_fn_c_try_link "$LINENO"
17037 then :
17038 eval $cacheid=yes
17039 else case e in #(
17040 e) eval $cacheid=no ;;
17041 esac
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17044 conftest$ac_exeext conftest.$ac_ext ;;
17045 esac
17046 fi
17047
17048
17049 CFLAGS="$xorg_testset_save_CFLAGS"
17050
17051 eval supported=\$$cacheid
17052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17053 printf "%s\n" "$supported" >&6; }
17054 if test "$supported" = "yes" ; then
17055 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17056 found="yes"
17057 fi
17058 fi
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074 xorg_testset_save_CFLAGS="$CFLAGS"
17075
17076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17080 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17081 then :
17082 printf %s "(cached) " >&6
17083 else case e in #(
17084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17086 int i;
17087 _ACEOF
17088 if ac_fn_c_try_compile "$LINENO"
17089 then :
17090 xorg_cv_cc_flag_unknown_warning_option=yes
17091 else case e in #(
17092 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17093 esac
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17096 esac
17097 fi
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17101 CFLAGS="$xorg_testset_save_CFLAGS"
17102 fi
17103
17104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107 fi
17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17112 then :
17113 printf %s "(cached) " >&6
17114 else case e in #(
17115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117 int i;
17118 _ACEOF
17119 if ac_fn_c_try_compile "$LINENO"
17120 then :
17121 xorg_cv_cc_flag_unused_command_line_argument=yes
17122 else case e in #(
17123 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17124 esac
17125 fi
17126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17127 esac
17128 fi
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17132 CFLAGS="$xorg_testset_save_CFLAGS"
17133 fi
17134
17135 found="no"
17136
17137 if test $found = "no" ; then
17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140 fi
17141
17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144 fi
17145
17146 CFLAGS="$CFLAGS -Werror=return-type"
17147
17148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17149 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17150 cacheid=xorg_cv_cc_flag__Werror_return_type
17151 if eval test \${$cacheid+y}
17152 then :
17153 printf %s "(cached) " >&6
17154 else case e in #(
17155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 int i;
17158 int
17159 main (void)
17160 {
17161
17162 ;
17163 return 0;
17164 }
17165 _ACEOF
17166 if ac_fn_c_try_link "$LINENO"
17167 then :
17168 eval $cacheid=yes
17169 else case e in #(
17170 e) eval $cacheid=no ;;
17171 esac
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17174 conftest$ac_exeext conftest.$ac_ext ;;
17175 esac
17176 fi
17177
17178
17179 CFLAGS="$xorg_testset_save_CFLAGS"
17180
17181 eval supported=\$$cacheid
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17183 printf "%s\n" "$supported" >&6; }
17184 if test "$supported" = "yes" ; then
17185 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17186 found="yes"
17187 fi
17188 fi
17189
17190 if test $found = "no" ; then
17191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17193 fi
17194
17195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17197 fi
17198
17199 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17200
17201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17202 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17203 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17204 if eval test \${$cacheid+y}
17205 then :
17206 printf %s "(cached) " >&6
17207 else case e in #(
17208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17210 int i;
17211 int
17212 main (void)
17213 {
17214
17215 ;
17216 return 0;
17217 }
17218 _ACEOF
17219 if ac_fn_c_try_link "$LINENO"
17220 then :
17221 eval $cacheid=yes
17222 else case e in #(
17223 e) eval $cacheid=no ;;
17224 esac
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17227 conftest$ac_exeext conftest.$ac_ext ;;
17228 esac
17229 fi
17230
17231
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233
17234 eval supported=\$$cacheid
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17236 printf "%s\n" "$supported" >&6; }
17237 if test "$supported" = "yes" ; then
17238 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17239 found="yes"
17240 fi
17241 fi
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257 xorg_testset_save_CFLAGS="$CFLAGS"
17258
17259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17264 then :
17265 printf %s "(cached) " >&6
17266 else case e in #(
17267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17269 int i;
17270 _ACEOF
17271 if ac_fn_c_try_compile "$LINENO"
17272 then :
17273 xorg_cv_cc_flag_unknown_warning_option=yes
17274 else case e in #(
17275 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17276 esac
17277 fi
17278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17279 esac
17280 fi
17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285 fi
17286
17287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17290 fi
17291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17295 then :
17296 printf %s "(cached) " >&6
17297 else case e in #(
17298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300 int i;
17301 _ACEOF
17302 if ac_fn_c_try_compile "$LINENO"
17303 then :
17304 xorg_cv_cc_flag_unused_command_line_argument=yes
17305 else case e in #(
17306 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17307 esac
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17310 esac
17311 fi
17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17315 CFLAGS="$xorg_testset_save_CFLAGS"
17316 fi
17317
17318 found="no"
17319
17320 if test $found = "no" ; then
17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17323 fi
17324
17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17327 fi
17328
17329 CFLAGS="$CFLAGS -Werror=trigraphs"
17330
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17332 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17333 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17334 if eval test \${$cacheid+y}
17335 then :
17336 printf %s "(cached) " >&6
17337 else case e in #(
17338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340 int i;
17341 int
17342 main (void)
17343 {
17344
17345 ;
17346 return 0;
17347 }
17348 _ACEOF
17349 if ac_fn_c_try_link "$LINENO"
17350 then :
17351 eval $cacheid=yes
17352 else case e in #(
17353 e) eval $cacheid=no ;;
17354 esac
17355 fi
17356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17357 conftest$ac_exeext conftest.$ac_ext ;;
17358 esac
17359 fi
17360
17361
17362 CFLAGS="$xorg_testset_save_CFLAGS"
17363
17364 eval supported=\$$cacheid
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17366 printf "%s\n" "$supported" >&6; }
17367 if test "$supported" = "yes" ; then
17368 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17369 found="yes"
17370 fi
17371 fi
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387 xorg_testset_save_CFLAGS="$CFLAGS"
17388
17389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17394 then :
17395 printf %s "(cached) " >&6
17396 else case e in #(
17397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 int i;
17400 _ACEOF
17401 if ac_fn_c_try_compile "$LINENO"
17402 then :
17403 xorg_cv_cc_flag_unknown_warning_option=yes
17404 else case e in #(
17405 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17406 esac
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17409 esac
17410 fi
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414 CFLAGS="$xorg_testset_save_CFLAGS"
17415 fi
17416
17417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17420 fi
17421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17425 then :
17426 printf %s "(cached) " >&6
17427 else case e in #(
17428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430 int i;
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"
17433 then :
17434 xorg_cv_cc_flag_unused_command_line_argument=yes
17435 else case e in #(
17436 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17437 esac
17438 fi
17439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17440 esac
17441 fi
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17443 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17445 CFLAGS="$xorg_testset_save_CFLAGS"
17446 fi
17447
17448 found="no"
17449
17450 if test $found = "no" ; then
17451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17453 fi
17454
17455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17457 fi
17458
17459 CFLAGS="$CFLAGS -Werror=array-bounds"
17460
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17462 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17463 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17464 if eval test \${$cacheid+y}
17465 then :
17466 printf %s "(cached) " >&6
17467 else case e in #(
17468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17470 int i;
17471 int
17472 main (void)
17473 {
17474
17475 ;
17476 return 0;
17477 }
17478 _ACEOF
17479 if ac_fn_c_try_link "$LINENO"
17480 then :
17481 eval $cacheid=yes
17482 else case e in #(
17483 e) eval $cacheid=no ;;
17484 esac
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17487 conftest$ac_exeext conftest.$ac_ext ;;
17488 esac
17489 fi
17490
17491
17492 CFLAGS="$xorg_testset_save_CFLAGS"
17493
17494 eval supported=\$$cacheid
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17496 printf "%s\n" "$supported" >&6; }
17497 if test "$supported" = "yes" ; then
17498 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17499 found="yes"
17500 fi
17501 fi
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517 xorg_testset_save_CFLAGS="$CFLAGS"
17518
17519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17522 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17523 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17524 then :
17525 printf %s "(cached) " >&6
17526 else case e in #(
17527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 int i;
17530 _ACEOF
17531 if ac_fn_c_try_compile "$LINENO"
17532 then :
17533 xorg_cv_cc_flag_unknown_warning_option=yes
17534 else case e in #(
17535 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17536 esac
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17539 esac
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17542 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545 fi
17546
17547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550 fi
17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17553 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17554 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17555 then :
17556 printf %s "(cached) " >&6
17557 else case e in #(
17558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 int i;
17561 _ACEOF
17562 if ac_fn_c_try_compile "$LINENO"
17563 then :
17564 xorg_cv_cc_flag_unused_command_line_argument=yes
17565 else case e in #(
17566 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17567 esac
17568 fi
17569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17570 esac
17571 fi
17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17575 CFLAGS="$xorg_testset_save_CFLAGS"
17576 fi
17577
17578 found="no"
17579
17580 if test $found = "no" ; then
17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17583 fi
17584
17585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17587 fi
17588
17589 CFLAGS="$CFLAGS -Werror=write-strings"
17590
17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17592 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17593 cacheid=xorg_cv_cc_flag__Werror_write_strings
17594 if eval test \${$cacheid+y}
17595 then :
17596 printf %s "(cached) " >&6
17597 else case e in #(
17598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600 int i;
17601 int
17602 main (void)
17603 {
17604
17605 ;
17606 return 0;
17607 }
17608 _ACEOF
17609 if ac_fn_c_try_link "$LINENO"
17610 then :
17611 eval $cacheid=yes
17612 else case e in #(
17613 e) eval $cacheid=no ;;
17614 esac
17615 fi
17616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17617 conftest$ac_exeext conftest.$ac_ext ;;
17618 esac
17619 fi
17620
17621
17622 CFLAGS="$xorg_testset_save_CFLAGS"
17623
17624 eval supported=\$$cacheid
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17626 printf "%s\n" "$supported" >&6; }
17627 if test "$supported" = "yes" ; then
17628 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17629 found="yes"
17630 fi
17631 fi
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647 xorg_testset_save_CFLAGS="$CFLAGS"
17648
17649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17652 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17653 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17654 then :
17655 printf %s "(cached) " >&6
17656 else case e in #(
17657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 int i;
17660 _ACEOF
17661 if ac_fn_c_try_compile "$LINENO"
17662 then :
17663 xorg_cv_cc_flag_unknown_warning_option=yes
17664 else case e in #(
17665 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17666 esac
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17669 esac
17670 fi
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17674 CFLAGS="$xorg_testset_save_CFLAGS"
17675 fi
17676
17677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17680 fi
17681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17685 then :
17686 printf %s "(cached) " >&6
17687 else case e in #(
17688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17690 int i;
17691 _ACEOF
17692 if ac_fn_c_try_compile "$LINENO"
17693 then :
17694 xorg_cv_cc_flag_unused_command_line_argument=yes
17695 else case e in #(
17696 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17697 esac
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17700 esac
17701 fi
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17703 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17705 CFLAGS="$xorg_testset_save_CFLAGS"
17706 fi
17707
17708 found="no"
17709
17710 if test $found = "no" ; then
17711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713 fi
17714
17715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17717 fi
17718
17719 CFLAGS="$CFLAGS -Werror=address"
17720
17721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17722 printf %s "checking if $CC supports -Werror=address... " >&6; }
17723 cacheid=xorg_cv_cc_flag__Werror_address
17724 if eval test \${$cacheid+y}
17725 then :
17726 printf %s "(cached) " >&6
17727 else case e in #(
17728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730 int i;
17731 int
17732 main (void)
17733 {
17734
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"
17740 then :
17741 eval $cacheid=yes
17742 else case e in #(
17743 e) eval $cacheid=no ;;
17744 esac
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17747 conftest$ac_exeext conftest.$ac_ext ;;
17748 esac
17749 fi
17750
17751
17752 CFLAGS="$xorg_testset_save_CFLAGS"
17753
17754 eval supported=\$$cacheid
17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17756 printf "%s\n" "$supported" >&6; }
17757 if test "$supported" = "yes" ; then
17758 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17759 found="yes"
17760 fi
17761 fi
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777 xorg_testset_save_CFLAGS="$CFLAGS"
17778
17779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17782 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17783 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17784 then :
17785 printf %s "(cached) " >&6
17786 else case e in #(
17787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 int i;
17790 _ACEOF
17791 if ac_fn_c_try_compile "$LINENO"
17792 then :
17793 xorg_cv_cc_flag_unknown_warning_option=yes
17794 else case e in #(
17795 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17796 esac
17797 fi
17798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17799 esac
17800 fi
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17802 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17804 CFLAGS="$xorg_testset_save_CFLAGS"
17805 fi
17806
17807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810 fi
17811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17813 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17814 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17815 then :
17816 printf %s "(cached) " >&6
17817 else case e in #(
17818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17820 int i;
17821 _ACEOF
17822 if ac_fn_c_try_compile "$LINENO"
17823 then :
17824 xorg_cv_cc_flag_unused_command_line_argument=yes
17825 else case e in #(
17826 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17827 esac
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17830 esac
17831 fi
17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17833 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17835 CFLAGS="$xorg_testset_save_CFLAGS"
17836 fi
17837
17838 found="no"
17839
17840 if test $found = "no" ; then
17841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17843 fi
17844
17845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17847 fi
17848
17849 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17850
17851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17852 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17853 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17854 if eval test \${$cacheid+y}
17855 then :
17856 printf %s "(cached) " >&6
17857 else case e in #(
17858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860 int i;
17861 int
17862 main (void)
17863 {
17864
17865 ;
17866 return 0;
17867 }
17868 _ACEOF
17869 if ac_fn_c_try_link "$LINENO"
17870 then :
17871 eval $cacheid=yes
17872 else case e in #(
17873 e) eval $cacheid=no ;;
17874 esac
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17877 conftest$ac_exeext conftest.$ac_ext ;;
17878 esac
17879 fi
17880
17881
17882 CFLAGS="$xorg_testset_save_CFLAGS"
17883
17884 eval supported=\$$cacheid
17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17886 printf "%s\n" "$supported" >&6; }
17887 if test "$supported" = "yes" ; then
17888 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17889 found="yes"
17890 fi
17891 fi
17892
17893 if test $found = "no" ; then
17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17896 fi
17897
17898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17900 fi
17901
17902 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17905 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17906 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17907 if eval test \${$cacheid+y}
17908 then :
17909 printf %s "(cached) " >&6
17910 else case e in #(
17911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 int i;
17914 int
17915 main (void)
17916 {
17917
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"
17923 then :
17924 eval $cacheid=yes
17925 else case e in #(
17926 e) eval $cacheid=no ;;
17927 esac
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17930 conftest$ac_exeext conftest.$ac_ext ;;
17931 esac
17932 fi
17933
17934
17935 CFLAGS="$xorg_testset_save_CFLAGS"
17936
17937 eval supported=\$$cacheid
17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17939 printf "%s\n" "$supported" >&6; }
17940 if test "$supported" = "yes" ; then
17941 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17942 found="yes"
17943 fi
17944 fi
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960 xorg_testset_save_CFLAGS="$CFLAGS"
17961
17962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17966 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17967 then :
17968 printf %s "(cached) " >&6
17969 else case e in #(
17970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 int i;
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"
17975 then :
17976 xorg_cv_cc_flag_unknown_warning_option=yes
17977 else case e in #(
17978 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17979 esac
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17982 esac
17983 fi
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17987 CFLAGS="$xorg_testset_save_CFLAGS"
17988 fi
17989
17990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993 fi
17994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17998 then :
17999 printf %s "(cached) " >&6
18000 else case e in #(
18001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003 int i;
18004 _ACEOF
18005 if ac_fn_c_try_compile "$LINENO"
18006 then :
18007 xorg_cv_cc_flag_unused_command_line_argument=yes
18008 else case e in #(
18009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18010 esac
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18013 esac
18014 fi
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018 CFLAGS="$xorg_testset_save_CFLAGS"
18019 fi
18020
18021 found="no"
18022
18023 if test $found = "no" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027
18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030 fi
18031
18032 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18033
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18035 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18036 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18037 if eval test \${$cacheid+y}
18038 then :
18039 printf %s "(cached) " >&6
18040 else case e in #(
18041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 int i;
18044 int
18045 main (void)
18046 {
18047
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 if ac_fn_c_try_link "$LINENO"
18053 then :
18054 eval $cacheid=yes
18055 else case e in #(
18056 e) eval $cacheid=no ;;
18057 esac
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18060 conftest$ac_exeext conftest.$ac_ext ;;
18061 esac
18062 fi
18063
18064
18065 CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067 eval supported=\$$cacheid
18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069 printf "%s\n" "$supported" >&6; }
18070 if test "$supported" = "yes" ; then
18071 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18072 found="yes"
18073 fi
18074 fi
18075
18076 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18077 else
18078 { 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
18079 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;}
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093 xorg_testset_save_CFLAGS="$CFLAGS"
18094
18095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18100 then :
18101 printf %s "(cached) " >&6
18102 else case e in #(
18103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18105 int i;
18106 _ACEOF
18107 if ac_fn_c_try_compile "$LINENO"
18108 then :
18109 xorg_cv_cc_flag_unknown_warning_option=yes
18110 else case e in #(
18111 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18112 esac
18113 fi
18114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18115 esac
18116 fi
18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18120 CFLAGS="$xorg_testset_save_CFLAGS"
18121 fi
18122
18123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18126 fi
18127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18131 then :
18132 printf %s "(cached) " >&6
18133 else case e in #(
18134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 int i;
18137 _ACEOF
18138 if ac_fn_c_try_compile "$LINENO"
18139 then :
18140 xorg_cv_cc_flag_unused_command_line_argument=yes
18141 else case e in #(
18142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18143 esac
18144 fi
18145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18146 esac
18147 fi
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18149 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18151 CFLAGS="$xorg_testset_save_CFLAGS"
18152 fi
18153
18154 found="no"
18155
18156 if test $found = "no" ; then
18157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18159 fi
18160
18161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18163 fi
18164
18165 CFLAGS="$CFLAGS -Wimplicit"
18166
18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18168 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18169 cacheid=xorg_cv_cc_flag__Wimplicit
18170 if eval test \${$cacheid+y}
18171 then :
18172 printf %s "(cached) " >&6
18173 else case e in #(
18174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 int i;
18177 int
18178 main (void)
18179 {
18180
18181 ;
18182 return 0;
18183 }
18184 _ACEOF
18185 if ac_fn_c_try_link "$LINENO"
18186 then :
18187 eval $cacheid=yes
18188 else case e in #(
18189 e) eval $cacheid=no ;;
18190 esac
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18193 conftest$ac_exeext conftest.$ac_ext ;;
18194 esac
18195 fi
18196
18197
18198 CFLAGS="$xorg_testset_save_CFLAGS"
18199
18200 eval supported=\$$cacheid
18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18202 printf "%s\n" "$supported" >&6; }
18203 if test "$supported" = "yes" ; then
18204 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18205 found="yes"
18206 fi
18207 fi
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223 xorg_testset_save_CFLAGS="$CFLAGS"
18224
18225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18229 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18230 then :
18231 printf %s "(cached) " >&6
18232 else case e in #(
18233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235 int i;
18236 _ACEOF
18237 if ac_fn_c_try_compile "$LINENO"
18238 then :
18239 xorg_cv_cc_flag_unknown_warning_option=yes
18240 else case e in #(
18241 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18242 esac
18243 fi
18244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18245 esac
18246 fi
18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18250 CFLAGS="$xorg_testset_save_CFLAGS"
18251 fi
18252
18253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18256 fi
18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18261 then :
18262 printf %s "(cached) " >&6
18263 else case e in #(
18264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 int i;
18267 _ACEOF
18268 if ac_fn_c_try_compile "$LINENO"
18269 then :
18270 xorg_cv_cc_flag_unused_command_line_argument=yes
18271 else case e in #(
18272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18273 esac
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18276 esac
18277 fi
18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18281 CFLAGS="$xorg_testset_save_CFLAGS"
18282 fi
18283
18284 found="no"
18285
18286 if test $found = "no" ; then
18287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18289 fi
18290
18291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18293 fi
18294
18295 CFLAGS="$CFLAGS -Wnonnull"
18296
18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18298 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18299 cacheid=xorg_cv_cc_flag__Wnonnull
18300 if eval test \${$cacheid+y}
18301 then :
18302 printf %s "(cached) " >&6
18303 else case e in #(
18304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306 int i;
18307 int
18308 main (void)
18309 {
18310
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"
18316 then :
18317 eval $cacheid=yes
18318 else case e in #(
18319 e) eval $cacheid=no ;;
18320 esac
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18323 conftest$ac_exeext conftest.$ac_ext ;;
18324 esac
18325 fi
18326
18327
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329
18330 eval supported=\$$cacheid
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18332 printf "%s\n" "$supported" >&6; }
18333 if test "$supported" = "yes" ; then
18334 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18335 found="yes"
18336 fi
18337 fi
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353 xorg_testset_save_CFLAGS="$CFLAGS"
18354
18355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18358 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18359 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18360 then :
18361 printf %s "(cached) " >&6
18362 else case e in #(
18363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365 int i;
18366 _ACEOF
18367 if ac_fn_c_try_compile "$LINENO"
18368 then :
18369 xorg_cv_cc_flag_unknown_warning_option=yes
18370 else case e in #(
18371 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18372 esac
18373 fi
18374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18375 esac
18376 fi
18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18380 CFLAGS="$xorg_testset_save_CFLAGS"
18381 fi
18382
18383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18386 fi
18387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18391 then :
18392 printf %s "(cached) " >&6
18393 else case e in #(
18394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395 /* end confdefs.h. */
18396 int i;
18397 _ACEOF
18398 if ac_fn_c_try_compile "$LINENO"
18399 then :
18400 xorg_cv_cc_flag_unused_command_line_argument=yes
18401 else case e in #(
18402 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18403 esac
18404 fi
18405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18406 esac
18407 fi
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18411 CFLAGS="$xorg_testset_save_CFLAGS"
18412 fi
18413
18414 found="no"
18415
18416 if test $found = "no" ; then
18417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18419 fi
18420
18421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18423 fi
18424
18425 CFLAGS="$CFLAGS -Winit-self"
18426
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18428 printf %s "checking if $CC supports -Winit-self... " >&6; }
18429 cacheid=xorg_cv_cc_flag__Winit_self
18430 if eval test \${$cacheid+y}
18431 then :
18432 printf %s "(cached) " >&6
18433 else case e in #(
18434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436 int i;
18437 int
18438 main (void)
18439 {
18440
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 if ac_fn_c_try_link "$LINENO"
18446 then :
18447 eval $cacheid=yes
18448 else case e in #(
18449 e) eval $cacheid=no ;;
18450 esac
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18453 conftest$ac_exeext conftest.$ac_ext ;;
18454 esac
18455 fi
18456
18457
18458 CFLAGS="$xorg_testset_save_CFLAGS"
18459
18460 eval supported=\$$cacheid
18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18462 printf "%s\n" "$supported" >&6; }
18463 if test "$supported" = "yes" ; then
18464 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18465 found="yes"
18466 fi
18467 fi
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483 xorg_testset_save_CFLAGS="$CFLAGS"
18484
18485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18490 then :
18491 printf %s "(cached) " >&6
18492 else case e in #(
18493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495 int i;
18496 _ACEOF
18497 if ac_fn_c_try_compile "$LINENO"
18498 then :
18499 xorg_cv_cc_flag_unknown_warning_option=yes
18500 else case e in #(
18501 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18502 esac
18503 fi
18504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18505 esac
18506 fi
18507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18508 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18510 CFLAGS="$xorg_testset_save_CFLAGS"
18511 fi
18512
18513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18516 fi
18517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18521 then :
18522 printf %s "(cached) " >&6
18523 else case e in #(
18524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526 int i;
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"
18529 then :
18530 xorg_cv_cc_flag_unused_command_line_argument=yes
18531 else case e in #(
18532 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18533 esac
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18536 esac
18537 fi
18538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18539 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18541 CFLAGS="$xorg_testset_save_CFLAGS"
18542 fi
18543
18544 found="no"
18545
18546 if test $found = "no" ; then
18547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18549 fi
18550
18551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18553 fi
18554
18555 CFLAGS="$CFLAGS -Wmain"
18556
18557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18558 printf %s "checking if $CC supports -Wmain... " >&6; }
18559 cacheid=xorg_cv_cc_flag__Wmain
18560 if eval test \${$cacheid+y}
18561 then :
18562 printf %s "(cached) " >&6
18563 else case e in #(
18564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 int i;
18567 int
18568 main (void)
18569 {
18570
18571 ;
18572 return 0;
18573 }
18574 _ACEOF
18575 if ac_fn_c_try_link "$LINENO"
18576 then :
18577 eval $cacheid=yes
18578 else case e in #(
18579 e) eval $cacheid=no ;;
18580 esac
18581 fi
18582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18583 conftest$ac_exeext conftest.$ac_ext ;;
18584 esac
18585 fi
18586
18587
18588 CFLAGS="$xorg_testset_save_CFLAGS"
18589
18590 eval supported=\$$cacheid
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18592 printf "%s\n" "$supported" >&6; }
18593 if test "$supported" = "yes" ; then
18594 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18595 found="yes"
18596 fi
18597 fi
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613 xorg_testset_save_CFLAGS="$CFLAGS"
18614
18615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18620 then :
18621 printf %s "(cached) " >&6
18622 else case e in #(
18623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18625 int i;
18626 _ACEOF
18627 if ac_fn_c_try_compile "$LINENO"
18628 then :
18629 xorg_cv_cc_flag_unknown_warning_option=yes
18630 else case e in #(
18631 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18632 esac
18633 fi
18634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18635 esac
18636 fi
18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18638 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18640 CFLAGS="$xorg_testset_save_CFLAGS"
18641 fi
18642
18643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18646 fi
18647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18649 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18650 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18651 then :
18652 printf %s "(cached) " >&6
18653 else case e in #(
18654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18656 int i;
18657 _ACEOF
18658 if ac_fn_c_try_compile "$LINENO"
18659 then :
18660 xorg_cv_cc_flag_unused_command_line_argument=yes
18661 else case e in #(
18662 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18663 esac
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18666 esac
18667 fi
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18669 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18671 CFLAGS="$xorg_testset_save_CFLAGS"
18672 fi
18673
18674 found="no"
18675
18676 if test $found = "no" ; then
18677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18679 fi
18680
18681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18683 fi
18684
18685 CFLAGS="$CFLAGS -Wmissing-braces"
18686
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18688 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18689 cacheid=xorg_cv_cc_flag__Wmissing_braces
18690 if eval test \${$cacheid+y}
18691 then :
18692 printf %s "(cached) " >&6
18693 else case e in #(
18694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18696 int i;
18697 int
18698 main (void)
18699 {
18700
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 if ac_fn_c_try_link "$LINENO"
18706 then :
18707 eval $cacheid=yes
18708 else case e in #(
18709 e) eval $cacheid=no ;;
18710 esac
18711 fi
18712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18713 conftest$ac_exeext conftest.$ac_ext ;;
18714 esac
18715 fi
18716
18717
18718 CFLAGS="$xorg_testset_save_CFLAGS"
18719
18720 eval supported=\$$cacheid
18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18722 printf "%s\n" "$supported" >&6; }
18723 if test "$supported" = "yes" ; then
18724 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18725 found="yes"
18726 fi
18727 fi
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743 xorg_testset_save_CFLAGS="$CFLAGS"
18744
18745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18748 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18749 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18750 then :
18751 printf %s "(cached) " >&6
18752 else case e in #(
18753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 int i;
18756 _ACEOF
18757 if ac_fn_c_try_compile "$LINENO"
18758 then :
18759 xorg_cv_cc_flag_unknown_warning_option=yes
18760 else case e in #(
18761 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18762 esac
18763 fi
18764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18765 esac
18766 fi
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18768 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18770 CFLAGS="$xorg_testset_save_CFLAGS"
18771 fi
18772
18773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18776 fi
18777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18779 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18780 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18781 then :
18782 printf %s "(cached) " >&6
18783 else case e in #(
18784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18786 int i;
18787 _ACEOF
18788 if ac_fn_c_try_compile "$LINENO"
18789 then :
18790 xorg_cv_cc_flag_unused_command_line_argument=yes
18791 else case e in #(
18792 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18793 esac
18794 fi
18795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18796 esac
18797 fi
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18801 CFLAGS="$xorg_testset_save_CFLAGS"
18802 fi
18803
18804 found="no"
18805
18806 if test $found = "no" ; then
18807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18809 fi
18810
18811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18813 fi
18814
18815 CFLAGS="$CFLAGS -Wsequence-point"
18816
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18818 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18819 cacheid=xorg_cv_cc_flag__Wsequence_point
18820 if eval test \${$cacheid+y}
18821 then :
18822 printf %s "(cached) " >&6
18823 else case e in #(
18824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826 int i;
18827 int
18828 main (void)
18829 {
18830
18831 ;
18832 return 0;
18833 }
18834 _ACEOF
18835 if ac_fn_c_try_link "$LINENO"
18836 then :
18837 eval $cacheid=yes
18838 else case e in #(
18839 e) eval $cacheid=no ;;
18840 esac
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18843 conftest$ac_exeext conftest.$ac_ext ;;
18844 esac
18845 fi
18846
18847
18848 CFLAGS="$xorg_testset_save_CFLAGS"
18849
18850 eval supported=\$$cacheid
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18852 printf "%s\n" "$supported" >&6; }
18853 if test "$supported" = "yes" ; then
18854 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18855 found="yes"
18856 fi
18857 fi
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873 xorg_testset_save_CFLAGS="$CFLAGS"
18874
18875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18880 then :
18881 printf %s "(cached) " >&6
18882 else case e in #(
18883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885 int i;
18886 _ACEOF
18887 if ac_fn_c_try_compile "$LINENO"
18888 then :
18889 xorg_cv_cc_flag_unknown_warning_option=yes
18890 else case e in #(
18891 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18892 esac
18893 fi
18894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18895 esac
18896 fi
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18898 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18900 CFLAGS="$xorg_testset_save_CFLAGS"
18901 fi
18902
18903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18906 fi
18907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18909 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18910 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18911 then :
18912 printf %s "(cached) " >&6
18913 else case e in #(
18914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18916 int i;
18917 _ACEOF
18918 if ac_fn_c_try_compile "$LINENO"
18919 then :
18920 xorg_cv_cc_flag_unused_command_line_argument=yes
18921 else case e in #(
18922 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18923 esac
18924 fi
18925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18926 esac
18927 fi
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18929 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18931 CFLAGS="$xorg_testset_save_CFLAGS"
18932 fi
18933
18934 found="no"
18935
18936 if test $found = "no" ; then
18937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18939 fi
18940
18941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18943 fi
18944
18945 CFLAGS="$CFLAGS -Wreturn-type"
18946
18947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18948 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18949 cacheid=xorg_cv_cc_flag__Wreturn_type
18950 if eval test \${$cacheid+y}
18951 then :
18952 printf %s "(cached) " >&6
18953 else case e in #(
18954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956 int i;
18957 int
18958 main (void)
18959 {
18960
18961 ;
18962 return 0;
18963 }
18964 _ACEOF
18965 if ac_fn_c_try_link "$LINENO"
18966 then :
18967 eval $cacheid=yes
18968 else case e in #(
18969 e) eval $cacheid=no ;;
18970 esac
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18973 conftest$ac_exeext conftest.$ac_ext ;;
18974 esac
18975 fi
18976
18977
18978 CFLAGS="$xorg_testset_save_CFLAGS"
18979
18980 eval supported=\$$cacheid
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18982 printf "%s\n" "$supported" >&6; }
18983 if test "$supported" = "yes" ; then
18984 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18985 found="yes"
18986 fi
18987 fi
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003 xorg_testset_save_CFLAGS="$CFLAGS"
19004
19005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19008 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19009 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19010 then :
19011 printf %s "(cached) " >&6
19012 else case e in #(
19013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015 int i;
19016 _ACEOF
19017 if ac_fn_c_try_compile "$LINENO"
19018 then :
19019 xorg_cv_cc_flag_unknown_warning_option=yes
19020 else case e in #(
19021 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19022 esac
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19025 esac
19026 fi
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19030 CFLAGS="$xorg_testset_save_CFLAGS"
19031 fi
19032
19033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19036 fi
19037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19041 then :
19042 printf %s "(cached) " >&6
19043 else case e in #(
19044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 int i;
19047 _ACEOF
19048 if ac_fn_c_try_compile "$LINENO"
19049 then :
19050 xorg_cv_cc_flag_unused_command_line_argument=yes
19051 else case e in #(
19052 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19053 esac
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19056 esac
19057 fi
19058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19059 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19061 CFLAGS="$xorg_testset_save_CFLAGS"
19062 fi
19063
19064 found="no"
19065
19066 if test $found = "no" ; then
19067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19069 fi
19070
19071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19073 fi
19074
19075 CFLAGS="$CFLAGS -Wtrigraphs"
19076
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19078 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19079 cacheid=xorg_cv_cc_flag__Wtrigraphs
19080 if eval test \${$cacheid+y}
19081 then :
19082 printf %s "(cached) " >&6
19083 else case e in #(
19084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19086 int i;
19087 int
19088 main (void)
19089 {
19090
19091 ;
19092 return 0;
19093 }
19094 _ACEOF
19095 if ac_fn_c_try_link "$LINENO"
19096 then :
19097 eval $cacheid=yes
19098 else case e in #(
19099 e) eval $cacheid=no ;;
19100 esac
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19103 conftest$ac_exeext conftest.$ac_ext ;;
19104 esac
19105 fi
19106
19107
19108 CFLAGS="$xorg_testset_save_CFLAGS"
19109
19110 eval supported=\$$cacheid
19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19112 printf "%s\n" "$supported" >&6; }
19113 if test "$supported" = "yes" ; then
19114 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19115 found="yes"
19116 fi
19117 fi
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133 xorg_testset_save_CFLAGS="$CFLAGS"
19134
19135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19138 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19139 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19140 then :
19141 printf %s "(cached) " >&6
19142 else case e in #(
19143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19145 int i;
19146 _ACEOF
19147 if ac_fn_c_try_compile "$LINENO"
19148 then :
19149 xorg_cv_cc_flag_unknown_warning_option=yes
19150 else case e in #(
19151 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19152 esac
19153 fi
19154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19155 esac
19156 fi
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19160 CFLAGS="$xorg_testset_save_CFLAGS"
19161 fi
19162
19163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19166 fi
19167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19171 then :
19172 printf %s "(cached) " >&6
19173 else case e in #(
19174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19176 int i;
19177 _ACEOF
19178 if ac_fn_c_try_compile "$LINENO"
19179 then :
19180 xorg_cv_cc_flag_unused_command_line_argument=yes
19181 else case e in #(
19182 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19183 esac
19184 fi
19185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19186 esac
19187 fi
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19189 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19191 CFLAGS="$xorg_testset_save_CFLAGS"
19192 fi
19193
19194 found="no"
19195
19196 if test $found = "no" ; then
19197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19199 fi
19200
19201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19203 fi
19204
19205 CFLAGS="$CFLAGS -Warray-bounds"
19206
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19208 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19209 cacheid=xorg_cv_cc_flag__Warray_bounds
19210 if eval test \${$cacheid+y}
19211 then :
19212 printf %s "(cached) " >&6
19213 else case e in #(
19214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 int i;
19217 int
19218 main (void)
19219 {
19220
19221 ;
19222 return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_link "$LINENO"
19226 then :
19227 eval $cacheid=yes
19228 else case e in #(
19229 e) eval $cacheid=no ;;
19230 esac
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19233 conftest$ac_exeext conftest.$ac_ext ;;
19234 esac
19235 fi
19236
19237
19238 CFLAGS="$xorg_testset_save_CFLAGS"
19239
19240 eval supported=\$$cacheid
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19242 printf "%s\n" "$supported" >&6; }
19243 if test "$supported" = "yes" ; then
19244 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19245 found="yes"
19246 fi
19247 fi
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263 xorg_testset_save_CFLAGS="$CFLAGS"
19264
19265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19270 then :
19271 printf %s "(cached) " >&6
19272 else case e in #(
19273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275 int i;
19276 _ACEOF
19277 if ac_fn_c_try_compile "$LINENO"
19278 then :
19279 xorg_cv_cc_flag_unknown_warning_option=yes
19280 else case e in #(
19281 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19282 esac
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19285 esac
19286 fi
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19290 CFLAGS="$xorg_testset_save_CFLAGS"
19291 fi
19292
19293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19296 fi
19297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19301 then :
19302 printf %s "(cached) " >&6
19303 else case e in #(
19304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306 int i;
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"
19309 then :
19310 xorg_cv_cc_flag_unused_command_line_argument=yes
19311 else case e in #(
19312 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19313 esac
19314 fi
19315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19316 esac
19317 fi
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19319 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19321 CFLAGS="$xorg_testset_save_CFLAGS"
19322 fi
19323
19324 found="no"
19325
19326 if test $found = "no" ; then
19327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19329 fi
19330
19331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19333 fi
19334
19335 CFLAGS="$CFLAGS -Wwrite-strings"
19336
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19338 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19339 cacheid=xorg_cv_cc_flag__Wwrite_strings
19340 if eval test \${$cacheid+y}
19341 then :
19342 printf %s "(cached) " >&6
19343 else case e in #(
19344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19346 int i;
19347 int
19348 main (void)
19349 {
19350
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"
19356 then :
19357 eval $cacheid=yes
19358 else case e in #(
19359 e) eval $cacheid=no ;;
19360 esac
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19363 conftest$ac_exeext conftest.$ac_ext ;;
19364 esac
19365 fi
19366
19367
19368 CFLAGS="$xorg_testset_save_CFLAGS"
19369
19370 eval supported=\$$cacheid
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19372 printf "%s\n" "$supported" >&6; }
19373 if test "$supported" = "yes" ; then
19374 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19375 found="yes"
19376 fi
19377 fi
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393 xorg_testset_save_CFLAGS="$CFLAGS"
19394
19395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19399 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19400 then :
19401 printf %s "(cached) " >&6
19402 else case e in #(
19403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19405 int i;
19406 _ACEOF
19407 if ac_fn_c_try_compile "$LINENO"
19408 then :
19409 xorg_cv_cc_flag_unknown_warning_option=yes
19410 else case e in #(
19411 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19412 esac
19413 fi
19414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19415 esac
19416 fi
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19420 CFLAGS="$xorg_testset_save_CFLAGS"
19421 fi
19422
19423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19426 fi
19427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19431 then :
19432 printf %s "(cached) " >&6
19433 else case e in #(
19434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19436 int i;
19437 _ACEOF
19438 if ac_fn_c_try_compile "$LINENO"
19439 then :
19440 xorg_cv_cc_flag_unused_command_line_argument=yes
19441 else case e in #(
19442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19443 esac
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19446 esac
19447 fi
19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19451 CFLAGS="$xorg_testset_save_CFLAGS"
19452 fi
19453
19454 found="no"
19455
19456 if test $found = "no" ; then
19457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19459 fi
19460
19461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19463 fi
19464
19465 CFLAGS="$CFLAGS -Waddress"
19466
19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19468 printf %s "checking if $CC supports -Waddress... " >&6; }
19469 cacheid=xorg_cv_cc_flag__Waddress
19470 if eval test \${$cacheid+y}
19471 then :
19472 printf %s "(cached) " >&6
19473 else case e in #(
19474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 int i;
19477 int
19478 main (void)
19479 {
19480
19481 ;
19482 return 0;
19483 }
19484 _ACEOF
19485 if ac_fn_c_try_link "$LINENO"
19486 then :
19487 eval $cacheid=yes
19488 else case e in #(
19489 e) eval $cacheid=no ;;
19490 esac
19491 fi
19492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19493 conftest$ac_exeext conftest.$ac_ext ;;
19494 esac
19495 fi
19496
19497
19498 CFLAGS="$xorg_testset_save_CFLAGS"
19499
19500 eval supported=\$$cacheid
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19502 printf "%s\n" "$supported" >&6; }
19503 if test "$supported" = "yes" ; then
19504 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19505 found="yes"
19506 fi
19507 fi
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523 xorg_testset_save_CFLAGS="$CFLAGS"
19524
19525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19529 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19530 then :
19531 printf %s "(cached) " >&6
19532 else case e in #(
19533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 int i;
19536 _ACEOF
19537 if ac_fn_c_try_compile "$LINENO"
19538 then :
19539 xorg_cv_cc_flag_unknown_warning_option=yes
19540 else case e in #(
19541 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19542 esac
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19545 esac
19546 fi
19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19550 CFLAGS="$xorg_testset_save_CFLAGS"
19551 fi
19552
19553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19556 fi
19557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19561 then :
19562 printf %s "(cached) " >&6
19563 else case e in #(
19564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19566 int i;
19567 _ACEOF
19568 if ac_fn_c_try_compile "$LINENO"
19569 then :
19570 xorg_cv_cc_flag_unused_command_line_argument=yes
19571 else case e in #(
19572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19573 esac
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19576 esac
19577 fi
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19581 CFLAGS="$xorg_testset_save_CFLAGS"
19582 fi
19583
19584 found="no"
19585
19586 if test $found = "no" ; then
19587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19589 fi
19590
19591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19593 fi
19594
19595 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19596
19597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19598 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19599 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19600 if eval test \${$cacheid+y}
19601 then :
19602 printf %s "(cached) " >&6
19603 else case e in #(
19604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 int i;
19607 int
19608 main (void)
19609 {
19610
19611 ;
19612 return 0;
19613 }
19614 _ACEOF
19615 if ac_fn_c_try_link "$LINENO"
19616 then :
19617 eval $cacheid=yes
19618 else case e in #(
19619 e) eval $cacheid=no ;;
19620 esac
19621 fi
19622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19623 conftest$ac_exeext conftest.$ac_ext ;;
19624 esac
19625 fi
19626
19627
19628 CFLAGS="$xorg_testset_save_CFLAGS"
19629
19630 eval supported=\$$cacheid
19631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19632 printf "%s\n" "$supported" >&6; }
19633 if test "$supported" = "yes" ; then
19634 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19635 found="yes"
19636 fi
19637 fi
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653 xorg_testset_save_CFLAGS="$CFLAGS"
19654
19655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19658 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19659 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19660 then :
19661 printf %s "(cached) " >&6
19662 else case e in #(
19663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19665 int i;
19666 _ACEOF
19667 if ac_fn_c_try_compile "$LINENO"
19668 then :
19669 xorg_cv_cc_flag_unknown_warning_option=yes
19670 else case e in #(
19671 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19672 esac
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19675 esac
19676 fi
19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19678 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19680 CFLAGS="$xorg_testset_save_CFLAGS"
19681 fi
19682
19683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19686 fi
19687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19689 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19690 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19691 then :
19692 printf %s "(cached) " >&6
19693 else case e in #(
19694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19696 int i;
19697 _ACEOF
19698 if ac_fn_c_try_compile "$LINENO"
19699 then :
19700 xorg_cv_cc_flag_unused_command_line_argument=yes
19701 else case e in #(
19702 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19703 esac
19704 fi
19705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19706 esac
19707 fi
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19711 CFLAGS="$xorg_testset_save_CFLAGS"
19712 fi
19713
19714 found="no"
19715
19716 if test $found = "no" ; then
19717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19719 fi
19720
19721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19723 fi
19724
19725 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19726
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19728 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19729 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19730 if eval test \${$cacheid+y}
19731 then :
19732 printf %s "(cached) " >&6
19733 else case e in #(
19734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19736 int i;
19737 int
19738 main (void)
19739 {
19740
19741 ;
19742 return 0;
19743 }
19744 _ACEOF
19745 if ac_fn_c_try_link "$LINENO"
19746 then :
19747 eval $cacheid=yes
19748 else case e in #(
19749 e) eval $cacheid=no ;;
19750 esac
19751 fi
19752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19753 conftest$ac_exeext conftest.$ac_ext ;;
19754 esac
19755 fi
19756
19757
19758 CFLAGS="$xorg_testset_save_CFLAGS"
19759
19760 eval supported=\$$cacheid
19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19762 printf "%s\n" "$supported" >&6; }
19763 if test "$supported" = "yes" ; then
19764 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19765 found="yes"
19766 fi
19767 fi
19768
19769
19770 fi
19771
19772
19773
19774
19775
19776
19777
19778 CWARNFLAGS="$BASE_CFLAGS"
19779 if test "x$GCC" = xyes ; then
19780 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19781 fi
19782
19783
19784
19785
19786
19787
19788
19789
19790 # Check whether --enable-strict-compilation was given.
19791 if test ${enable_strict_compilation+y}
19792 then :
19793 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19794 else case e in #(
19795 e) STRICT_COMPILE=no ;;
19796 esac
19797 fi
19798
19799
19800
19801
19802
19803
19804 STRICT_CFLAGS=""
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818 xorg_testset_save_CFLAGS="$CFLAGS"
19819
19820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19823 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19824 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19825 then :
19826 printf %s "(cached) " >&6
19827 else case e in #(
19828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 int i;
19831 _ACEOF
19832 if ac_fn_c_try_compile "$LINENO"
19833 then :
19834 xorg_cv_cc_flag_unknown_warning_option=yes
19835 else case e in #(
19836 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19837 esac
19838 fi
19839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19840 esac
19841 fi
19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19843 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19845 CFLAGS="$xorg_testset_save_CFLAGS"
19846 fi
19847
19848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19851 fi
19852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19854 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19855 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19856 then :
19857 printf %s "(cached) " >&6
19858 else case e in #(
19859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860 /* end confdefs.h. */
19861 int i;
19862 _ACEOF
19863 if ac_fn_c_try_compile "$LINENO"
19864 then :
19865 xorg_cv_cc_flag_unused_command_line_argument=yes
19866 else case e in #(
19867 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19868 esac
19869 fi
19870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19871 esac
19872 fi
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19874 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19876 CFLAGS="$xorg_testset_save_CFLAGS"
19877 fi
19878
19879 found="no"
19880
19881 if test $found = "no" ; then
19882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19884 fi
19885
19886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19888 fi
19889
19890 CFLAGS="$CFLAGS -pedantic"
19891
19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19893 printf %s "checking if $CC supports -pedantic... " >&6; }
19894 cacheid=xorg_cv_cc_flag__pedantic
19895 if eval test \${$cacheid+y}
19896 then :
19897 printf %s "(cached) " >&6
19898 else case e in #(
19899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h. */
19901 int i;
19902 int
19903 main (void)
19904 {
19905
19906 ;
19907 return 0;
19908 }
19909 _ACEOF
19910 if ac_fn_c_try_link "$LINENO"
19911 then :
19912 eval $cacheid=yes
19913 else case e in #(
19914 e) eval $cacheid=no ;;
19915 esac
19916 fi
19917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19918 conftest$ac_exeext conftest.$ac_ext ;;
19919 esac
19920 fi
19921
19922
19923 CFLAGS="$xorg_testset_save_CFLAGS"
19924
19925 eval supported=\$$cacheid
19926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19927 printf "%s\n" "$supported" >&6; }
19928 if test "$supported" = "yes" ; then
19929 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19930 found="yes"
19931 fi
19932 fi
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948 xorg_testset_save_CFLAGS="$CFLAGS"
19949
19950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19954 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19955 then :
19956 printf %s "(cached) " >&6
19957 else case e in #(
19958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959 /* end confdefs.h. */
19960 int i;
19961 _ACEOF
19962 if ac_fn_c_try_compile "$LINENO"
19963 then :
19964 xorg_cv_cc_flag_unknown_warning_option=yes
19965 else case e in #(
19966 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19967 esac
19968 fi
19969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19970 esac
19971 fi
19972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19973 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19975 CFLAGS="$xorg_testset_save_CFLAGS"
19976 fi
19977
19978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19981 fi
19982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19984 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19985 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19986 then :
19987 printf %s "(cached) " >&6
19988 else case e in #(
19989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h. */
19991 int i;
19992 _ACEOF
19993 if ac_fn_c_try_compile "$LINENO"
19994 then :
19995 xorg_cv_cc_flag_unused_command_line_argument=yes
19996 else case e in #(
19997 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19998 esac
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20001 esac
20002 fi
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20006 CFLAGS="$xorg_testset_save_CFLAGS"
20007 fi
20008
20009 found="no"
20010
20011 if test $found = "no" ; then
20012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20014 fi
20015
20016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20018 fi
20019
20020 CFLAGS="$CFLAGS -Werror"
20021
20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20023 printf %s "checking if $CC supports -Werror... " >&6; }
20024 cacheid=xorg_cv_cc_flag__Werror
20025 if eval test \${$cacheid+y}
20026 then :
20027 printf %s "(cached) " >&6
20028 else case e in #(
20029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20031 int i;
20032 int
20033 main (void)
20034 {
20035
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_link "$LINENO"
20041 then :
20042 eval $cacheid=yes
20043 else case e in #(
20044 e) eval $cacheid=no ;;
20045 esac
20046 fi
20047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20048 conftest$ac_exeext conftest.$ac_ext ;;
20049 esac
20050 fi
20051
20052
20053 CFLAGS="$xorg_testset_save_CFLAGS"
20054
20055 eval supported=\$$cacheid
20056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20057 printf "%s\n" "$supported" >&6; }
20058 if test "$supported" = "yes" ; then
20059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20060 found="yes"
20061 fi
20062 fi
20063
20064 if test $found = "no" ; then
20065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20067 fi
20068
20069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20071 fi
20072
20073 CFLAGS="$CFLAGS -errwarn"
20074
20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20076 printf %s "checking if $CC supports -errwarn... " >&6; }
20077 cacheid=xorg_cv_cc_flag__errwarn
20078 if eval test \${$cacheid+y}
20079 then :
20080 printf %s "(cached) " >&6
20081 else case e in #(
20082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20084 int i;
20085 int
20086 main (void)
20087 {
20088
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 if ac_fn_c_try_link "$LINENO"
20094 then :
20095 eval $cacheid=yes
20096 else case e in #(
20097 e) eval $cacheid=no ;;
20098 esac
20099 fi
20100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20101 conftest$ac_exeext conftest.$ac_ext ;;
20102 esac
20103 fi
20104
20105
20106 CFLAGS="$xorg_testset_save_CFLAGS"
20107
20108 eval supported=\$$cacheid
20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20110 printf "%s\n" "$supported" >&6; }
20111 if test "$supported" = "yes" ; then
20112 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20113 found="yes"
20114 fi
20115 fi
20116
20117
20118
20119 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20120 # activate it with -Werror, so we add it here explicitly.
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134 xorg_testset_save_CFLAGS="$CFLAGS"
20135
20136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20139 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20140 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20141 then :
20142 printf %s "(cached) " >&6
20143 else case e in #(
20144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20146 int i;
20147 _ACEOF
20148 if ac_fn_c_try_compile "$LINENO"
20149 then :
20150 xorg_cv_cc_flag_unknown_warning_option=yes
20151 else case e in #(
20152 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20153 esac
20154 fi
20155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20156 esac
20157 fi
20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20159 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20161 CFLAGS="$xorg_testset_save_CFLAGS"
20162 fi
20163
20164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20167 fi
20168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20170 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20171 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20172 then :
20173 printf %s "(cached) " >&6
20174 else case e in #(
20175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20177 int i;
20178 _ACEOF
20179 if ac_fn_c_try_compile "$LINENO"
20180 then :
20181 xorg_cv_cc_flag_unused_command_line_argument=yes
20182 else case e in #(
20183 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20184 esac
20185 fi
20186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20187 esac
20188 fi
20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20192 CFLAGS="$xorg_testset_save_CFLAGS"
20193 fi
20194
20195 found="no"
20196
20197 if test $found = "no" ; then
20198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20200 fi
20201
20202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20204 fi
20205
20206 CFLAGS="$CFLAGS -Werror=attributes"
20207
20208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20209 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20210 cacheid=xorg_cv_cc_flag__Werror_attributes
20211 if eval test \${$cacheid+y}
20212 then :
20213 printf %s "(cached) " >&6
20214 else case e in #(
20215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20217 int i;
20218 int
20219 main (void)
20220 {
20221
20222 ;
20223 return 0;
20224 }
20225 _ACEOF
20226 if ac_fn_c_try_link "$LINENO"
20227 then :
20228 eval $cacheid=yes
20229 else case e in #(
20230 e) eval $cacheid=no ;;
20231 esac
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20234 conftest$ac_exeext conftest.$ac_ext ;;
20235 esac
20236 fi
20237
20238
20239 CFLAGS="$xorg_testset_save_CFLAGS"
20240
20241 eval supported=\$$cacheid
20242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20243 printf "%s\n" "$supported" >&6; }
20244 if test "$supported" = "yes" ; then
20245 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20246 found="yes"
20247 fi
20248 fi
20249
20250
20251
20252 if test "x$STRICT_COMPILE" = "xyes"; then
20253 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20254 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20255 fi
20256
20257
20258
20259
20260
20261
20262
20263
20264 cat >>confdefs.h <<_ACEOF
20265 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20266 _ACEOF
20267
20268 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20269 if test "x$PVM" = "x"; then
20270 PVM="0"
20271 fi
20272
20273 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20274
20275 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20276 if test "x$PVP" = "x"; then
20277 PVP="0"
20278 fi
20279
20280 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20281
20282
20283
20284 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20285 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20286 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20287 touch \$(top_srcdir)/ChangeLog; \
20288 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20289
20290
20291
20292
20293 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20294 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20295 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20296 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20297 touch \$(top_srcdir)/INSTALL; \
20298 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20299
20300
20301
20302
20303
20304
20305 case $host_os in
20306 solaris*)
20307 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20308 # check for a man page file found in later versions that use
20309 # traditional section numbers instead
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20311 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20312 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20313 then :
20314 printf %s "(cached) " >&6
20315 else case e in #(
20316 e) test "$cross_compiling" = yes &&
20317 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20318 if test -r "/usr/share/man/man7/attributes.7"; then
20319 ac_cv_file__usr_share_man_man7_attributes_7=yes
20320 else
20321 ac_cv_file__usr_share_man_man7_attributes_7=no
20322 fi ;;
20323 esac
20324 fi
20325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20326 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20327 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20328 then :
20329 SYSV_MAN_SECTIONS=false
20330 else case e in #(
20331 e) SYSV_MAN_SECTIONS=true ;;
20332 esac
20333 fi
20334
20335 ;;
20336 *) SYSV_MAN_SECTIONS=false ;;
20337 esac
20338
20339 if test x$APP_MAN_SUFFIX = x ; then
20340 APP_MAN_SUFFIX=1
20341 fi
20342 if test x$APP_MAN_DIR = x ; then
20343 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20344 fi
20345
20346 if test x$LIB_MAN_SUFFIX = x ; then
20347 LIB_MAN_SUFFIX=3
20348 fi
20349 if test x$LIB_MAN_DIR = x ; then
20350 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20351 fi
20352
20353 if test x$FILE_MAN_SUFFIX = x ; then
20354 case $SYSV_MAN_SECTIONS in
20355 true) FILE_MAN_SUFFIX=4 ;;
20356 *) FILE_MAN_SUFFIX=5 ;;
20357 esac
20358 fi
20359 if test x$FILE_MAN_DIR = x ; then
20360 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20361 fi
20362
20363 if test x$MISC_MAN_SUFFIX = x ; then
20364 case $SYSV_MAN_SECTIONS in
20365 true) MISC_MAN_SUFFIX=5 ;;
20366 *) MISC_MAN_SUFFIX=7 ;;
20367 esac
20368 fi
20369 if test x$MISC_MAN_DIR = x ; then
20370 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20371 fi
20372
20373 if test x$DRIVER_MAN_SUFFIX = x ; then
20374 case $SYSV_MAN_SECTIONS in
20375 true) DRIVER_MAN_SUFFIX=7 ;;
20376 *) DRIVER_MAN_SUFFIX=4 ;;
20377 esac
20378 fi
20379 if test x$DRIVER_MAN_DIR = x ; then
20380 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20381 fi
20382
20383 if test x$ADMIN_MAN_SUFFIX = x ; then
20384 case $SYSV_MAN_SECTIONS in
20385 true) ADMIN_MAN_SUFFIX=1m ;;
20386 *) ADMIN_MAN_SUFFIX=8 ;;
20387 esac
20388 fi
20389 if test x$ADMIN_MAN_DIR = x ; then
20390 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20391 fi
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407 XORG_MAN_PAGE="X Version 11"
20408
20409 MAN_SUBSTS="\
20410 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20411 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20412 -e 's|__xservername__|Xorg|g' \
20413 -e 's|__xconfigfile__|xorg.conf|g' \
20414 -e 's|__projectroot__|\$(prefix)|g' \
20415 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20416 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20417 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20418 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20419 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20420 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20421 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20422
20423
20424
20425
20426 AM_DEFAULT_VERBOSITY=0
20427
20428
20429
20430
20431
20432 # Check whether --enable-malloc0returnsnull was given.
20433 if test ${enable_malloc0returnsnull+y}
20434 then :
20435 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20436 else case e in #(
20437 e) MALLOC_ZERO_RETURNS_NULL=yes ;;
20438 esac
20439 fi
20440
20441
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5
20443 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; }
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20445 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20446
20447 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20448 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20449 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20450 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20451 else
20452 MALLOC_ZERO_CFLAGS=""
20453 XMALLOC_ZERO_CFLAGS=""
20454 XTMALLOC_ZERO_CFLAGS=""
20455 fi
20456
20457
20458
20459
20460
20461
20462 # Obtain compiler/linker options for dependencies
20463
20464 pkg_failed=no
20465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XXF86VM" >&5
20466 printf %s "checking for XXF86VM... " >&6; }
20467
20468 if test -n "$XXF86VM_CFLAGS"; then
20469 pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS"
20470 elif test -n "$PKG_CONFIG"; then
20471 if test -n "$PKG_CONFIG" && \
20472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5
20473 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5
20474 ac_status=$?
20475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20476 test $ac_status = 0; }; then
20477 pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null`
20478 test "x$?" != "x0" && pkg_failed=yes
20479 else
20480 pkg_failed=yes
20481 fi
20482 else
20483 pkg_failed=untried
20484 fi
20485 if test -n "$XXF86VM_LIBS"; then
20486 pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS"
20487 elif test -n "$PKG_CONFIG"; then
20488 if test -n "$PKG_CONFIG" && \
20489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5
20490 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5
20491 ac_status=$?
20492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }; then
20494 pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null`
20495 test "x$?" != "x0" && pkg_failed=yes
20496 else
20497 pkg_failed=yes
20498 fi
20499 else
20500 pkg_failed=untried
20501 fi
20502
20503
20504
20505 if test $pkg_failed = yes; then
20506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20507 printf "%s\n" "no" >&6; }
20508
20509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20510 _pkg_short_errors_supported=yes
20511 else
20512 _pkg_short_errors_supported=no
20513 fi
20514 if test $_pkg_short_errors_supported = yes; then
20515 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1`
20516 else
20517 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1`
20518 fi
20519 # Put the nasty error message in config.log where it belongs
20520 echo "$XXF86VM_PKG_ERRORS" >&5
20521
20522 as_fn_error $? "Package requirements (xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1) were not met:
20523
20524 $XXF86VM_PKG_ERRORS
20525
20526 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20527 installed software in a non-standard prefix.
20528
20529 Alternatively, you may set the environment variables XXF86VM_CFLAGS
20530 and XXF86VM_LIBS to avoid the need to call pkg-config.
20531 See the pkg-config man page for more details." "$LINENO" 5
20532 elif test $pkg_failed = untried; then
20533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 printf "%s\n" "no" >&6; }
20535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20536 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20537 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20538 is in your PATH or set the PKG_CONFIG environment variable to the full
20539 path to pkg-config.
20540
20541 Alternatively, you may set the environment variables XXF86VM_CFLAGS
20542 and XXF86VM_LIBS to avoid the need to call pkg-config.
20543 See the pkg-config man page for more details.
20544
20545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20546 See 'config.log' for more details" "$LINENO" 5; }
20547 else
20548 XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS
20549 XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20551 printf "%s\n" "yes" >&6; }
20552
20553 fi
20554
20555 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86vm.pc"
20556
20557 cat >confcache <<\_ACEOF
20558 # This file is a shell script that caches the results of configure
20559 # tests run on this system so they can be shared between configure
20560 # scripts and configure runs, see configure's option --config-cache.
20561 # It is not useful on other systems. If it contains results you don't
20562 # want to keep, you may remove or edit it.
20563 #
20564 # config.status only pays attention to the cache file if you give it
20565 # the --recheck option to rerun configure.
20566 #
20567 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20568 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20569 # following values.
20570
20571 _ACEOF
20572
20573 # The following way of writing the cache mishandles newlines in values,
20574 # but we know of no workaround that is simple, portable, and efficient.
20575 # So, we kill variables containing newlines.
20576 # Ultrix sh set writes to stderr and can't be redirected directly,
20577 # and sets the high bit in the cache file unless we assign to the vars.
20578 (
20579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20580 eval ac_val=\$$ac_var
20581 case $ac_val in #(
20582 *${as_nl}*)
20583 case $ac_var in #(
20584 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20585 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20586 esac
20587 case $ac_var in #(
20588 _ | IFS | as_nl) ;; #(
20589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20590 *) { eval $ac_var=; unset $ac_var;} ;;
20591 esac ;;
20592 esac
20593 done
20594
20595 (set) 2>&1 |
20596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20597 *${as_nl}ac_space=\ *)
20598 # 'set' does not quote correctly, so add quotes: double-quote
20599 # substitution turns \\\\ into \\, and sed turns \\ into \.
20600 sed -n \
20601 "s/'/'\\\\''/g;
20602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20603 ;; #(
20604 *)
20605 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20607 ;;
20608 esac |
20609 sort
20610 ) |
20611 sed '
20612 /^ac_cv_env_/b end
20613 t clear
20614 :clear
20615 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20616 t end
20617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20618 :end' >>confcache
20619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20620 if test -w "$cache_file"; then
20621 if test "x$cache_file" != "x/dev/null"; then
20622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20623 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20624 if test ! -f "$cache_file" || test -h "$cache_file"; then
20625 cat confcache >"$cache_file"
20626 else
20627 case $cache_file in #(
20628 */* | ?:*)
20629 mv -f confcache "$cache_file"$$ &&
20630 mv -f "$cache_file"$$ "$cache_file" ;; #(
20631 *)
20632 mv -f confcache "$cache_file" ;;
20633 esac
20634 fi
20635 fi
20636 else
20637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20638 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20639 fi
20640 fi
20641 rm -f confcache
20642
20643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20644 # Let make expand exec_prefix.
20645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20646
20647 DEFS=-DHAVE_CONFIG_H
20648
20649 ac_libobjs=
20650 ac_ltlibobjs=
20651 U=
20652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20653 # 1. Remove the extension, and $U if already installed.
20654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20655 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20657 # will be set to the directory where LIBOBJS objects are built.
20658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20660 done
20661 LIBOBJS=$ac_libobjs
20662
20663 LTLIBOBJS=$ac_ltlibobjs
20664
20665
20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20667 printf %s "checking that generated files are newer than configure... " >&6; }
20668 if test -n "$am_sleep_pid"; then
20669 # Hide warnings about reused PIDs.
20670 wait $am_sleep_pid 2>/dev/null
20671 fi
20672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20673 printf "%s\n" "done" >&6; }
20674 case $enable_silent_rules in # (((
20675 yes) AM_DEFAULT_VERBOSITY=0;;
20676 no) AM_DEFAULT_VERBOSITY=1;;
20677 esac
20678 if test $am_cv_make_support_nested_variables = yes; then
20679 AM_V='$(V)'
20680 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20681 else
20682 AM_V=$AM_DEFAULT_VERBOSITY
20683 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20684 fi
20685
20686 if test -n "$EXEEXT"; then
20687 am__EXEEXT_TRUE=
20688 am__EXEEXT_FALSE='#'
20689 else
20690 am__EXEEXT_TRUE='#'
20691 am__EXEEXT_FALSE=
20692 fi
20693
20694 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20695 as_fn_error $? "conditional \"AMDEP\" was never defined.
20696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20697 fi
20698 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20699 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20701 fi
20702
20703 : "${CONFIG_STATUS=./config.status}"
20704 ac_write_fail=0
20705 ac_clean_files_save=$ac_clean_files
20706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20708 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20709 as_write_fail=0
20710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20711 #! $SHELL
20712 # Generated by $as_me.
20713 # Run this file to recreate the current configuration.
20714 # Compiler output produced by configure, useful for debugging
20715 # configure, is in config.log if it exists.
20716
20717 debug=false
20718 ac_cs_recheck=false
20719 ac_cs_silent=false
20720
20721 SHELL=\${CONFIG_SHELL-$SHELL}
20722 export SHELL
20723 _ASEOF
20724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20725 ## -------------------- ##
20726 ## M4sh Initialization. ##
20727 ## -------------------- ##
20728
20729 # Be more Bourne compatible
20730 DUALCASE=1; export DUALCASE # for MKS sh
20731 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20732 then :
20733 emulate sh
20734 NULLCMD=:
20735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20736 # is contrary to our usage. Disable this feature.
20737 alias -g '${1+"$@"}'='"$@"'
20738 setopt NO_GLOB_SUBST
20739 else case e in #(
20740 e) case `(set -o) 2>/dev/null` in #(
20741 *posix*) :
20742 set -o posix ;; #(
20743 *) :
20744 ;;
20745 esac ;;
20746 esac
20747 fi
20748
20749
20750
20751 # Reset variables that may have inherited troublesome values from
20752 # the environment.
20753
20754 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20755 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20756 # side effect of setting IFS to empty, thus disabling word splitting.)
20757 # Quoting is to prevent editors from complaining about space-tab.
20758 as_nl='
20759 '
20760 export as_nl
20761 IFS=" "" $as_nl"
20762
20763 PS1='$ '
20764 PS2='> '
20765 PS4='+ '
20766
20767 # Ensure predictable behavior from utilities with locale-dependent output.
20768 LC_ALL=C
20769 export LC_ALL
20770 LANGUAGE=C
20771 export LANGUAGE
20772
20773 # We cannot yet rely on "unset" to work, but we need these variables
20774 # to be unset--not just set to an empty or harmless value--now, to
20775 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20776 # also avoids known problems related to "unset" and subshell syntax
20777 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20778 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20779 do eval test \${$as_var+y} \
20780 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20781 done
20782
20783 # Ensure that fds 0, 1, and 2 are open.
20784 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20785 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20786 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20787
20788 # The user is always right.
20789 if ${PATH_SEPARATOR+false} :; then
20790 PATH_SEPARATOR=:
20791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20793 PATH_SEPARATOR=';'
20794 }
20795 fi
20796
20797
20798 # Find who we are. Look in the path if we contain no directory separator.
20799 as_myself=
20800 case $0 in #((
20801 *[\\/]* ) as_myself=$0 ;;
20802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20803 for as_dir in $PATH
20804 do
20805 IFS=$as_save_IFS
20806 case $as_dir in #(((
20807 '') as_dir=./ ;;
20808 */) ;;
20809 *) as_dir=$as_dir/ ;;
20810 esac
20811 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20812 done
20813 IFS=$as_save_IFS
20814
20815 ;;
20816 esac
20817 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20818 # in which case we are not to be found in the path.
20819 if test "x$as_myself" = x; then
20820 as_myself=$0
20821 fi
20822 if test ! -f "$as_myself"; then
20823 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20824 exit 1
20825 fi
20826
20827
20828
20829 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20830 # ----------------------------------------
20831 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20832 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20833 # script with STATUS, using 1 if that was 0.
20834 as_fn_error ()
20835 {
20836 as_status=$1; test $as_status -eq 0 && as_status=1
20837 if test "$4"; then
20838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20840 fi
20841 printf "%s\n" "$as_me: error: $2" >&2
20842 as_fn_exit $as_status
20843 } # as_fn_error
20844
20845
20846 # as_fn_set_status STATUS
20847 # -----------------------
20848 # Set $? to STATUS, without forking.
20849 as_fn_set_status ()
20850 {
20851 return $1
20852 } # as_fn_set_status
20853
20854 # as_fn_exit STATUS
20855 # -----------------
20856 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20857 as_fn_exit ()
20858 {
20859 set +e
20860 as_fn_set_status $1
20861 exit $1
20862 } # as_fn_exit
20863
20864 # as_fn_unset VAR
20865 # ---------------
20866 # Portably unset VAR.
20867 as_fn_unset ()
20868 {
20869 { eval $1=; unset $1;}
20870 }
20871 as_unset=as_fn_unset
20872
20873 # as_fn_append VAR VALUE
20874 # ----------------------
20875 # Append the text in VALUE to the end of the definition contained in VAR. Take
20876 # advantage of any shell optimizations that allow amortized linear growth over
20877 # repeated appends, instead of the typical quadratic growth present in naive
20878 # implementations.
20879 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20880 then :
20881 eval 'as_fn_append ()
20882 {
20883 eval $1+=\$2
20884 }'
20885 else case e in #(
20886 e) as_fn_append ()
20887 {
20888 eval $1=\$$1\$2
20889 } ;;
20890 esac
20891 fi # as_fn_append
20892
20893 # as_fn_arith ARG...
20894 # ------------------
20895 # Perform arithmetic evaluation on the ARGs, and store the result in the
20896 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20897 # must be portable across $(()) and expr.
20898 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20899 then :
20900 eval 'as_fn_arith ()
20901 {
20902 as_val=$(( $* ))
20903 }'
20904 else case e in #(
20905 e) as_fn_arith ()
20906 {
20907 as_val=`expr "$@" || test $? -eq 1`
20908 } ;;
20909 esac
20910 fi # as_fn_arith
20911
20912
20913 if expr a : '\(a\)' >/dev/null 2>&1 &&
20914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20915 as_expr=expr
20916 else
20917 as_expr=false
20918 fi
20919
20920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20921 as_basename=basename
20922 else
20923 as_basename=false
20924 fi
20925
20926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20927 as_dirname=dirname
20928 else
20929 as_dirname=false
20930 fi
20931
20932 as_me=`$as_basename -- "$0" ||
20933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20934 X"$0" : 'X\(//\)$' \| \
20935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20936 printf "%s\n" X/"$0" |
20937 sed '/^.*\/\([^/][^/]*\)\/*$/{
20938 s//\1/
20939 q
20940 }
20941 /^X\/\(\/\/\)$/{
20942 s//\1/
20943 q
20944 }
20945 /^X\/\(\/\).*/{
20946 s//\1/
20947 q
20948 }
20949 s/.*/./; q'`
20950
20951 # Avoid depending upon Character Ranges.
20952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20955 as_cr_digits='0123456789'
20956 as_cr_alnum=$as_cr_Letters$as_cr_digits
20957
20958
20959 # Determine whether it's possible to make 'echo' print without a newline.
20960 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20961 # for compatibility with existing Makefiles.
20962 ECHO_C= ECHO_N= ECHO_T=
20963 case `echo -n x` in #(((((
20964 -n*)
20965 case `echo 'xy\c'` in
20966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20967 xy) ECHO_C='\c';;
20968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20969 ECHO_T=' ';;
20970 esac;;
20971 *)
20972 ECHO_N='-n';;
20973 esac
20974
20975 # For backward compatibility with old third-party macros, we provide
20976 # the shell variables $as_echo and $as_echo_n. New code should use
20977 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20978 as_echo='printf %s\n'
20979 as_echo_n='printf %s'
20980
20981 rm -f conf$$ conf$$.exe conf$$.file
20982 if test -d conf$$.dir; then
20983 rm -f conf$$.dir/conf$$.file
20984 else
20985 rm -f conf$$.dir
20986 mkdir conf$$.dir 2>/dev/null
20987 fi
20988 if (echo >conf$$.file) 2>/dev/null; then
20989 if ln -s conf$$.file conf$$ 2>/dev/null; then
20990 as_ln_s='ln -s'
20991 # ... but there are two gotchas:
20992 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20993 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20994 # In both cases, we have to default to 'cp -pR'.
20995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20996 as_ln_s='cp -pR'
20997 elif ln conf$$.file conf$$ 2>/dev/null; then
20998 as_ln_s=ln
20999 else
21000 as_ln_s='cp -pR'
21001 fi
21002 else
21003 as_ln_s='cp -pR'
21004 fi
21005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21006 rmdir conf$$.dir 2>/dev/null
21007
21008
21009 # as_fn_mkdir_p
21010 # -------------
21011 # Create "$as_dir" as a directory, including parents if necessary.
21012 as_fn_mkdir_p ()
21013 {
21014
21015 case $as_dir in #(
21016 -*) as_dir=./$as_dir;;
21017 esac
21018 test -d "$as_dir" || eval $as_mkdir_p || {
21019 as_dirs=
21020 while :; do
21021 case $as_dir in #(
21022 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21023 *) as_qdir=$as_dir;;
21024 esac
21025 as_dirs="'$as_qdir' $as_dirs"
21026 as_dir=`$as_dirname -- "$as_dir" ||
21027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21028 X"$as_dir" : 'X\(//\)[^/]' \| \
21029 X"$as_dir" : 'X\(//\)$' \| \
21030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21031 printf "%s\n" X"$as_dir" |
21032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21033 s//\1/
21034 q
21035 }
21036 /^X\(\/\/\)[^/].*/{
21037 s//\1/
21038 q
21039 }
21040 /^X\(\/\/\)$/{
21041 s//\1/
21042 q
21043 }
21044 /^X\(\/\).*/{
21045 s//\1/
21046 q
21047 }
21048 s/.*/./; q'`
21049 test -d "$as_dir" && break
21050 done
21051 test -z "$as_dirs" || eval "mkdir $as_dirs"
21052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21053
21054
21055 } # as_fn_mkdir_p
21056 if mkdir -p . 2>/dev/null; then
21057 as_mkdir_p='mkdir -p "$as_dir"'
21058 else
21059 test -d ./-p && rmdir ./-p
21060 as_mkdir_p=false
21061 fi
21062
21063
21064 # as_fn_executable_p FILE
21065 # -----------------------
21066 # Test if FILE is an executable regular file.
21067 as_fn_executable_p ()
21068 {
21069 test -f "$1" && test -x "$1"
21070 } # as_fn_executable_p
21071 as_test_x='test -x'
21072 as_executable_p=as_fn_executable_p
21073
21074 # Sed expression to map a string onto a valid CPP name.
21075 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21076 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21077
21078 # Sed expression to map a string onto a valid variable name.
21079 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21080 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21081
21082
21083 exec 6>&1
21084 ## ----------------------------------- ##
21085 ## Main body of $CONFIG_STATUS script. ##
21086 ## ----------------------------------- ##
21087 _ASEOF
21088 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21089
21090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21091 # Save the log message, to keep $0 and so on meaningful, and to
21092 # report actual input values of CONFIG_FILES etc. instead of their
21093 # values after options handling.
21094 ac_log="
21095 This file was extended by libXxf86vm $as_me 1.1.7, which was
21096 generated by GNU Autoconf 2.72. Invocation command line was
21097
21098 CONFIG_FILES = $CONFIG_FILES
21099 CONFIG_HEADERS = $CONFIG_HEADERS
21100 CONFIG_LINKS = $CONFIG_LINKS
21101 CONFIG_COMMANDS = $CONFIG_COMMANDS
21102 $ $0 $@
21103
21104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21105 "
21106
21107 _ACEOF
21108
21109 case $ac_config_files in *"
21110 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21111 esac
21112
21113 case $ac_config_headers in *"
21114 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21115 esac
21116
21117
21118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21119 # Files that config.status was made for.
21120 config_files="$ac_config_files"
21121 config_headers="$ac_config_headers"
21122 config_commands="$ac_config_commands"
21123
21124 _ACEOF
21125
21126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21127 ac_cs_usage="\
21128 '$as_me' instantiates files and other configuration actions
21129 from templates according to the current configuration. Unless the files
21130 and actions are specified as TAGs, all are instantiated by default.
21131
21132 Usage: $0 [OPTION]... [TAG]...
21133
21134 -h, --help print this help, then exit
21135 -V, --version print version number and configuration settings, then exit
21136 --config print configuration, then exit
21137 -q, --quiet, --silent
21138 do not print progress messages
21139 -d, --debug don't remove temporary files
21140 --recheck update $as_me by reconfiguring in the same conditions
21141 --file=FILE[:TEMPLATE]
21142 instantiate the configuration file FILE
21143 --header=FILE[:TEMPLATE]
21144 instantiate the configuration header FILE
21145
21146 Configuration files:
21147 $config_files
21148
21149 Configuration headers:
21150 $config_headers
21151
21152 Configuration commands:
21153 $config_commands
21154
21155 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>."
21156
21157 _ACEOF
21158 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21159 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21161 ac_cs_config='$ac_cs_config_escaped'
21162 ac_cs_version="\\
21163 libXxf86vm config.status 1.1.7
21164 configured by $0, generated by GNU Autoconf 2.72,
21165 with options \\"\$ac_cs_config\\"
21166
21167 Copyright (C) 2023 Free Software Foundation, Inc.
21168 This config.status script is free software; the Free Software Foundation
21169 gives unlimited permission to copy, distribute and modify it."
21170
21171 ac_pwd='$ac_pwd'
21172 srcdir='$srcdir'
21173 INSTALL='$INSTALL'
21174 MKDIR_P='$MKDIR_P'
21175 AWK='$AWK'
21176 test -n "\$AWK" || AWK=awk
21177 _ACEOF
21178
21179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21180 # The default lists apply if the user does not specify any file.
21181 ac_need_defaults=:
21182 while test $# != 0
21183 do
21184 case $1 in
21185 --*=?*)
21186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21188 ac_shift=:
21189 ;;
21190 --*=)
21191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21192 ac_optarg=
21193 ac_shift=:
21194 ;;
21195 *)
21196 ac_option=$1
21197 ac_optarg=$2
21198 ac_shift=shift
21199 ;;
21200 esac
21201
21202 case $ac_option in
21203 # Handling of the options.
21204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21205 ac_cs_recheck=: ;;
21206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21207 printf "%s\n" "$ac_cs_version"; exit ;;
21208 --config | --confi | --conf | --con | --co | --c )
21209 printf "%s\n" "$ac_cs_config"; exit ;;
21210 --debug | --debu | --deb | --de | --d | -d )
21211 debug=: ;;
21212 --file | --fil | --fi | --f )
21213 $ac_shift
21214 case $ac_optarg in
21215 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21216 '') as_fn_error $? "missing file argument" ;;
21217 esac
21218 as_fn_append CONFIG_FILES " '$ac_optarg'"
21219 ac_need_defaults=false;;
21220 --header | --heade | --head | --hea )
21221 $ac_shift
21222 case $ac_optarg in
21223 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21224 esac
21225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21226 ac_need_defaults=false;;
21227 --he | --h)
21228 # Conflict between --help and --header
21229 as_fn_error $? "ambiguous option: '$1'
21230 Try '$0 --help' for more information.";;
21231 --help | --hel | -h )
21232 printf "%s\n" "$ac_cs_usage"; exit ;;
21233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21235 ac_cs_silent=: ;;
21236
21237 # This is an error.
21238 -*) as_fn_error $? "unrecognized option: '$1'
21239 Try '$0 --help' for more information." ;;
21240
21241 *) as_fn_append ac_config_targets " $1"
21242 ac_need_defaults=false ;;
21243
21244 esac
21245 shift
21246 done
21247
21248 ac_configure_extra_args=
21249
21250 if $ac_cs_silent; then
21251 exec 6>/dev/null
21252 ac_configure_extra_args="$ac_configure_extra_args --silent"
21253 fi
21254
21255 _ACEOF
21256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21257 if \$ac_cs_recheck; then
21258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21259 shift
21260 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21261 CONFIG_SHELL='$SHELL'
21262 export CONFIG_SHELL
21263 exec "\$@"
21264 fi
21265
21266 _ACEOF
21267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21268 exec 5>>config.log
21269 {
21270 echo
21271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21272 ## Running $as_me. ##
21273 _ASBOX
21274 printf "%s\n" "$ac_log"
21275 } >&5
21276
21277 _ACEOF
21278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279 #
21280 # INIT-COMMANDS
21281 #
21282 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21283
21284
21285 # The HP-UX ksh and POSIX shell print the target directory to stdout
21286 # if CDPATH is set.
21287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21288
21289 sed_quote_subst='$sed_quote_subst'
21290 double_quote_subst='$double_quote_subst'
21291 delay_variable_subst='$delay_variable_subst'
21292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21298 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21299 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21300 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21301 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21302 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21303 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21304 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21305 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21306 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21307 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21308 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21309 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21310 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21311 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21312 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21313 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21314 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21315 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21316 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21317 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21318 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21319 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21320 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21321 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21322 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21323 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21324 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21325 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21326 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21327 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21328 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21329 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21330 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21331 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21332 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21333 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21334 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21335 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21336 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21337 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21338 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21339 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21340 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21341 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21342 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21343 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21344 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21345 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21346 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21347 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21348 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21349 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21350 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21351 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21352 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"`'
21353 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21354 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21355 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21356 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21357 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21358 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21359 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21360 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21361 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21362 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21363 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21364 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21365 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21366 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21367 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21368 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21369 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21370 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21371 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21372 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21373 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21374 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21375 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21376 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21377 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21378 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21379 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21380 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21381 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21382 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21383 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21384 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21385 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21386 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21387 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21388 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21389 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21390 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21391 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21392 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21393 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21394 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21395 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21396 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21397 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21398 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21399 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21400 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21401 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21402 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21403 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21404 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21405 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21406 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21407 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21408 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21409 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21410 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21411 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21412 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21413 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21414 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21415 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21416 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21417 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21418 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21419 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21420 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21421 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21422 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21423 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21424 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21425 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21426 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21427 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21428 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21429
21430 LTCC='$LTCC'
21431 LTCFLAGS='$LTCFLAGS'
21432 compiler='$compiler_DEFAULT'
21433
21434 # A function that is used when there is no print builtin or printf.
21435 func_fallback_echo ()
21436 {
21437 eval 'cat <<_LTECHO_EOF
21438 \$1
21439 _LTECHO_EOF'
21440 }
21441
21442 # Quote evaled strings.
21443 for var in SHELL \
21444 ECHO \
21445 PATH_SEPARATOR \
21446 SED \
21447 GREP \
21448 EGREP \
21449 FGREP \
21450 LD \
21451 NM \
21452 LN_S \
21453 lt_SP2NL \
21454 lt_NL2SP \
21455 reload_flag \
21456 FILECMD \
21457 OBJDUMP \
21458 deplibs_check_method \
21459 file_magic_cmd \
21460 file_magic_glob \
21461 want_nocaseglob \
21462 DLLTOOL \
21463 sharedlib_from_linklib_cmd \
21464 AR \
21465 archiver_list_spec \
21466 STRIP \
21467 RANLIB \
21468 CC \
21469 CFLAGS \
21470 compiler \
21471 lt_cv_sys_global_symbol_pipe \
21472 lt_cv_sys_global_symbol_to_cdecl \
21473 lt_cv_sys_global_symbol_to_import \
21474 lt_cv_sys_global_symbol_to_c_name_address \
21475 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21476 lt_cv_nm_interface \
21477 nm_file_list_spec \
21478 lt_cv_truncate_bin \
21479 lt_prog_compiler_no_builtin_flag \
21480 lt_prog_compiler_pic \
21481 lt_prog_compiler_wl \
21482 lt_prog_compiler_static \
21483 lt_cv_prog_compiler_c_o \
21484 need_locks \
21485 MANIFEST_TOOL \
21486 DSYMUTIL \
21487 NMEDIT \
21488 LIPO \
21489 OTOOL \
21490 OTOOL64 \
21491 shrext_cmds \
21492 export_dynamic_flag_spec \
21493 whole_archive_flag_spec \
21494 compiler_needs_object \
21495 with_gnu_ld \
21496 allow_undefined_flag \
21497 no_undefined_flag \
21498 hardcode_libdir_flag_spec \
21499 hardcode_libdir_separator \
21500 exclude_expsyms \
21501 include_expsyms \
21502 file_list_spec \
21503 variables_saved_for_relink \
21504 libname_spec \
21505 library_names_spec \
21506 soname_spec \
21507 install_override_mode \
21508 finish_eval \
21509 old_striplib \
21510 striplib; do
21511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21512 *[\\\\\\\`\\"\\\$]*)
21513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21514 ;;
21515 *)
21516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21517 ;;
21518 esac
21519 done
21520
21521 # Double-quote double-evaled strings.
21522 for var in reload_cmds \
21523 old_postinstall_cmds \
21524 old_postuninstall_cmds \
21525 old_archive_cmds \
21526 extract_expsyms_cmds \
21527 old_archive_from_new_cmds \
21528 old_archive_from_expsyms_cmds \
21529 archive_cmds \
21530 archive_expsym_cmds \
21531 module_cmds \
21532 module_expsym_cmds \
21533 export_symbols_cmds \
21534 prelink_cmds \
21535 postlink_cmds \
21536 postinstall_cmds \
21537 postuninstall_cmds \
21538 finish_cmds \
21539 sys_lib_search_path_spec \
21540 configure_time_dlsearch_path \
21541 configure_time_lt_sys_library_path; do
21542 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21543 *[\\\\\\\`\\"\\\$]*)
21544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21545 ;;
21546 *)
21547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21548 ;;
21549 esac
21550 done
21551
21552 ac_aux_dir='$ac_aux_dir'
21553
21554 # See if we are running on zsh, and set the options that allow our
21555 # commands through without removal of \ escapes INIT.
21556 if test -n "\${ZSH_VERSION+set}"; then
21557 setopt NO_GLOB_SUBST
21558 fi
21559
21560
21561 PACKAGE='$PACKAGE'
21562 VERSION='$VERSION'
21563 RM='$RM'
21564 ofile='$ofile'
21565
21566
21567
21568
21569 _ACEOF
21570
21571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21572
21573 # Handling of arguments.
21574 for ac_config_target in $ac_config_targets
21575 do
21576 case $ac_config_target in
21577 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21578 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21579 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21580 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21581 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21582 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21583 "xxf86vm.pc") CONFIG_FILES="$CONFIG_FILES xxf86vm.pc" ;;
21584
21585 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21586 esac
21587 done
21588
21589
21590 # If the user did not use the arguments to specify the items to instantiate,
21591 # then the envvar interface is used. Set only those that are not.
21592 # We use the long form for the default assignment because of an extremely
21593 # bizarre bug on SunOS 4.1.3.
21594 if $ac_need_defaults; then
21595 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21596 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21597 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21598 fi
21599
21600 # Have a temporary directory for convenience. Make it in the build tree
21601 # simply because there is no reason against having it here, and in addition,
21602 # creating and moving files from /tmp can sometimes cause problems.
21603 # Hook for its removal unless debugging.
21604 # Note that there is a small window in which the directory will not be cleaned:
21605 # after its creation but before its name has been assigned to '$tmp'.
21606 $debug ||
21607 {
21608 tmp= ac_tmp=
21609 trap 'exit_status=$?
21610 : "${ac_tmp:=$tmp}"
21611 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21612 ' 0
21613 trap 'as_fn_exit 1' 1 2 13 15
21614 }
21615 # Create a (secure) tmp directory for tmp files.
21616
21617 {
21618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21619 test -d "$tmp"
21620 } ||
21621 {
21622 tmp=./conf$$-$RANDOM
21623 (umask 077 && mkdir "$tmp")
21624 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21625 ac_tmp=$tmp
21626
21627 # Set up the scripts for CONFIG_FILES section.
21628 # No need to generate them if there are no CONFIG_FILES.
21629 # This happens for instance with './config.status config.h'.
21630 if test -n "$CONFIG_FILES"; then
21631
21632
21633 ac_cr=`echo X | tr X '\015'`
21634 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21635 # But we know of no other shell where ac_cr would be empty at this
21636 # point, so we can use a bashism as a fallback.
21637 if test "x$ac_cr" = x; then
21638 eval ac_cr=\$\'\\r\'
21639 fi
21640 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21641 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21642 ac_cs_awk_cr='\\r'
21643 else
21644 ac_cs_awk_cr=$ac_cr
21645 fi
21646
21647 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21648 _ACEOF
21649
21650
21651 {
21652 echo "cat >conf$$subs.awk <<_ACEOF" &&
21653 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21654 echo "_ACEOF"
21655 } >conf$$subs.sh ||
21656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21657 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21658 ac_delim='%!_!# '
21659 for ac_last_try in false false false false false :; do
21660 . ./conf$$subs.sh ||
21661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21662
21663 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21664 if test $ac_delim_n = $ac_delim_num; then
21665 break
21666 elif $ac_last_try; then
21667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21668 else
21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21670 fi
21671 done
21672 rm -f conf$$subs.sh
21673
21674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21675 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21676 _ACEOF
21677 sed -n '
21678 h
21679 s/^/S["/; s/!.*/"]=/
21680 p
21681 g
21682 s/^[^!]*!//
21683 :repl
21684 t repl
21685 s/'"$ac_delim"'$//
21686 t delim
21687 :nl
21688 h
21689 s/\(.\{148\}\)..*/\1/
21690 t more1
21691 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21692 p
21693 n
21694 b repl
21695 :more1
21696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21697 p
21698 g
21699 s/.\{148\}//
21700 t nl
21701 :delim
21702 h
21703 s/\(.\{148\}\)..*/\1/
21704 t more2
21705 s/["\\]/\\&/g; s/^/"/; s/$/"/
21706 p
21707 b
21708 :more2
21709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21710 p
21711 g
21712 s/.\{148\}//
21713 t delim
21714 ' <conf$$subs.awk | sed '
21715 /^[^""]/{
21716 N
21717 s/\n//
21718 }
21719 ' >>$CONFIG_STATUS || ac_write_fail=1
21720 rm -f conf$$subs.awk
21721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21722 _ACAWK
21723 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21724 for (key in S) S_is_set[key] = 1
21725 FS = ""
21726
21727 }
21728 {
21729 line = $ 0
21730 nfields = split(line, field, "@")
21731 substed = 0
21732 len = length(field[1])
21733 for (i = 2; i < nfields; i++) {
21734 key = field[i]
21735 keylen = length(key)
21736 if (S_is_set[key]) {
21737 value = S[key]
21738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21739 len += length(value) + length(field[++i])
21740 substed = 1
21741 } else
21742 len += 1 + keylen
21743 }
21744
21745 print line
21746 }
21747
21748 _ACAWK
21749 _ACEOF
21750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21751 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21752 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21753 else
21754 cat
21755 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21756 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21757 _ACEOF
21758
21759 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21760 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21761 # trailing colons and then remove the whole line if VPATH becomes empty
21762 # (actually we leave an empty line to preserve line numbers).
21763 if test "x$srcdir" = x.; then
21764 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21765 h
21766 s///
21767 s/^/:/
21768 s/[ ]*$/:/
21769 s/:\$(srcdir):/:/g
21770 s/:\${srcdir}:/:/g
21771 s/:@srcdir@:/:/g
21772 s/^:*//
21773 s/:*$//
21774 x
21775 s/\(=[ ]*\).*/\1/
21776 G
21777 s/\n//
21778 s/^[^=]*=[ ]*$//
21779 }'
21780 fi
21781
21782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21783 fi # test -n "$CONFIG_FILES"
21784
21785 # Set up the scripts for CONFIG_HEADERS section.
21786 # No need to generate them if there are no CONFIG_HEADERS.
21787 # This happens for instance with './config.status Makefile'.
21788 if test -n "$CONFIG_HEADERS"; then
21789 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21790 BEGIN {
21791 _ACEOF
21792
21793 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21794 # here-document in config.status, that substitutes the proper values into
21795 # config.h.in to produce config.h.
21796
21797 # Create a delimiter string that does not exist in confdefs.h, to ease
21798 # handling of long lines.
21799 ac_delim='%!_!# '
21800 for ac_last_try in false false :; do
21801 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21802 if test -z "$ac_tt"; then
21803 break
21804 elif $ac_last_try; then
21805 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21806 else
21807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21808 fi
21809 done
21810
21811 # For the awk script, D is an array of macro values keyed by name,
21812 # likewise P contains macro parameters if any. Preserve backslash
21813 # newline sequences.
21814
21815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21816 sed -n '
21817 s/.\{148\}/&'"$ac_delim"'/g
21818 t rset
21819 :rset
21820 s/^[ ]*#[ ]*define[ ][ ]*/ /
21821 t def
21822 d
21823 :def
21824 s/\\$//
21825 t bsnl
21826 s/["\\]/\\&/g
21827 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21828 D["\1"]=" \3"/p
21829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21830 d
21831 :bsnl
21832 s/["\\]/\\&/g
21833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21834 D["\1"]=" \3\\\\\\n"\\/p
21835 t cont
21836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21837 t cont
21838 d
21839 :cont
21840 n
21841 s/.\{148\}/&'"$ac_delim"'/g
21842 t clear
21843 :clear
21844 s/\\$//
21845 t bsnlc
21846 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21847 d
21848 :bsnlc
21849 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21850 b cont
21851 ' <confdefs.h | sed '
21852 s/'"$ac_delim"'/"\\\
21853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21854
21855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21856 for (key in D) D_is_set[key] = 1
21857 FS = ""
21858 }
21859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21860 line = \$ 0
21861 split(line, arg, " ")
21862 if (arg[1] == "#") {
21863 defundef = arg[2]
21864 mac1 = arg[3]
21865 } else {
21866 defundef = substr(arg[1], 2)
21867 mac1 = arg[2]
21868 }
21869 split(mac1, mac2, "(") #)
21870 macro = mac2[1]
21871 prefix = substr(line, 1, index(line, defundef) - 1)
21872 if (D_is_set[macro]) {
21873 # Preserve the white space surrounding the "#".
21874 print prefix "define", macro P[macro] D[macro]
21875 next
21876 } else {
21877 # Replace #undef with comments. This is necessary, for example,
21878 # in the case of _POSIX_SOURCE, which is predefined and required
21879 # on some systems where configure will not decide to define it.
21880 if (defundef == "undef") {
21881 print "/*", prefix defundef, macro, "*/"
21882 next
21883 }
21884 }
21885 }
21886 { print }
21887 _ACAWK
21888 _ACEOF
21889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21890 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21891 fi # test -n "$CONFIG_HEADERS"
21892
21893
21894 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21895 shift
21896 for ac_tag
21897 do
21898 case $ac_tag in
21899 :[FHLC]) ac_mode=$ac_tag; continue;;
21900 esac
21901 case $ac_mode$ac_tag in
21902 :[FHL]*:*);;
21903 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21904 :[FH]-) ac_tag=-:-;;
21905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21906 esac
21907 ac_save_IFS=$IFS
21908 IFS=:
21909 set x $ac_tag
21910 IFS=$ac_save_IFS
21911 shift
21912 ac_file=$1
21913 shift
21914
21915 case $ac_mode in
21916 :L) ac_source=$1;;
21917 :[FH])
21918 ac_file_inputs=
21919 for ac_f
21920 do
21921 case $ac_f in
21922 -) ac_f="$ac_tmp/stdin";;
21923 *) # Look for the file first in the build tree, then in the source tree
21924 # (if the path is not absolute). The absolute path cannot be DOS-style,
21925 # because $ac_f cannot contain ':'.
21926 test -f "$ac_f" ||
21927 case $ac_f in
21928 [\\/$]*) false;;
21929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21930 esac ||
21931 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21932 esac
21933 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21934 as_fn_append ac_file_inputs " '$ac_f'"
21935 done
21936
21937 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21938 # use $as_me), people would be surprised to read:
21939 # /* config.h. Generated by config.status. */
21940 configure_input='Generated from '`
21941 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21942 `' by configure.'
21943 if test x"$ac_file" != x-; then
21944 configure_input="$ac_file. $configure_input"
21945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21946 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21947 fi
21948 # Neutralize special characters interpreted by sed in replacement strings.
21949 case $configure_input in #(
21950 *\&* | *\|* | *\\* )
21951 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21952 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21953 *) ac_sed_conf_input=$configure_input;;
21954 esac
21955
21956 case $ac_tag in
21957 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21959 esac
21960 ;;
21961 esac
21962
21963 ac_dir=`$as_dirname -- "$ac_file" ||
21964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21965 X"$ac_file" : 'X\(//\)[^/]' \| \
21966 X"$ac_file" : 'X\(//\)$' \| \
21967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21968 printf "%s\n" X"$ac_file" |
21969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21970 s//\1/
21971 q
21972 }
21973 /^X\(\/\/\)[^/].*/{
21974 s//\1/
21975 q
21976 }
21977 /^X\(\/\/\)$/{
21978 s//\1/
21979 q
21980 }
21981 /^X\(\/\).*/{
21982 s//\1/
21983 q
21984 }
21985 s/.*/./; q'`
21986 as_dir="$ac_dir"; as_fn_mkdir_p
21987 ac_builddir=.
21988
21989 case "$ac_dir" in
21990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21991 *)
21992 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21993 # A ".." for each directory in $ac_dir_suffix.
21994 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21995 case $ac_top_builddir_sub in
21996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21998 esac ;;
21999 esac
22000 ac_abs_top_builddir=$ac_pwd
22001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22002 # for backward compatibility:
22003 ac_top_builddir=$ac_top_build_prefix
22004
22005 case $srcdir in
22006 .) # We are building in place.
22007 ac_srcdir=.
22008 ac_top_srcdir=$ac_top_builddir_sub
22009 ac_abs_top_srcdir=$ac_pwd ;;
22010 [\\/]* | ?:[\\/]* ) # Absolute name.
22011 ac_srcdir=$srcdir$ac_dir_suffix;
22012 ac_top_srcdir=$srcdir
22013 ac_abs_top_srcdir=$srcdir ;;
22014 *) # Relative name.
22015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22016 ac_top_srcdir=$ac_top_build_prefix$srcdir
22017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22018 esac
22019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22020
22021
22022 case $ac_mode in
22023 :F)
22024 #
22025 # CONFIG_FILE
22026 #
22027
22028 case $INSTALL in
22029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22031 esac
22032 ac_MKDIR_P=$MKDIR_P
22033 case $MKDIR_P in
22034 [\\/$]* | ?:[\\/]* ) ;;
22035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22036 esac
22037 _ACEOF
22038
22039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22040 # If the template does not know about datarootdir, expand it.
22041 # FIXME: This hack should be removed a few years after 2.60.
22042 ac_datarootdir_hack=; ac_datarootdir_seen=
22043 ac_sed_dataroot='
22044 /datarootdir/ {
22045 p
22046 q
22047 }
22048 /@datadir@/p
22049 /@docdir@/p
22050 /@infodir@/p
22051 /@localedir@/p
22052 /@mandir@/p'
22053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22054 *datarootdir*) ac_datarootdir_seen=yes;;
22055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22057 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22058 _ACEOF
22059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22060 ac_datarootdir_hack='
22061 s&@datadir@&$datadir&g
22062 s&@docdir@&$docdir&g
22063 s&@infodir@&$infodir&g
22064 s&@localedir@&$localedir&g
22065 s&@mandir@&$mandir&g
22066 s&\\\${datarootdir}&$datarootdir&g' ;;
22067 esac
22068 _ACEOF
22069
22070 # Neutralize VPATH when '$srcdir' = '.'.
22071 # Shell code in configure.ac might set extrasub.
22072 # FIXME: do we really want to maintain this feature?
22073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22074 ac_sed_extra="$ac_vpsub
22075 $extrasub
22076 _ACEOF
22077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22078 :t
22079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22080 s|@configure_input@|$ac_sed_conf_input|;t t
22081 s&@top_builddir@&$ac_top_builddir_sub&;t t
22082 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22083 s&@srcdir@&$ac_srcdir&;t t
22084 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22085 s&@top_srcdir@&$ac_top_srcdir&;t t
22086 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22087 s&@builddir@&$ac_builddir&;t t
22088 s&@abs_builddir@&$ac_abs_builddir&;t t
22089 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22090 s&@INSTALL@&$ac_INSTALL&;t t
22091 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22092 $ac_datarootdir_hack
22093 "
22094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22096
22097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22100 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22102 which seems to be undefined. Please make sure it is defined" >&5
22103 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22104 which seems to be undefined. Please make sure it is defined" >&2;}
22105
22106 rm -f "$ac_tmp/stdin"
22107 case $ac_file in
22108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22110 esac \
22111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22112 ;;
22113 :H)
22114 #
22115 # CONFIG_HEADER
22116 #
22117 if test x"$ac_file" != x-; then
22118 {
22119 printf "%s\n" "/* $configure_input */" >&1 \
22120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22121 } >"$ac_tmp/config.h" \
22122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22123 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22125 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22126 else
22127 rm -f "$ac_file"
22128 mv "$ac_tmp/config.h" "$ac_file" \
22129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22130 fi
22131 else
22132 printf "%s\n" "/* $configure_input */" >&1 \
22133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22134 || as_fn_error $? "could not create -" "$LINENO" 5
22135 fi
22136 # Compute "$ac_file"'s index in $config_headers.
22137 _am_arg="$ac_file"
22138 _am_stamp_count=1
22139 for _am_header in $config_headers :; do
22140 case $_am_header in
22141 $_am_arg | $_am_arg:* )
22142 break ;;
22143 * )
22144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22145 esac
22146 done
22147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22149 X"$_am_arg" : 'X\(//\)[^/]' \| \
22150 X"$_am_arg" : 'X\(//\)$' \| \
22151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22152 printf "%s\n" X"$_am_arg" |
22153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22154 s//\1/
22155 q
22156 }
22157 /^X\(\/\/\)[^/].*/{
22158 s//\1/
22159 q
22160 }
22161 /^X\(\/\/\)$/{
22162 s//\1/
22163 q
22164 }
22165 /^X\(\/\).*/{
22166 s//\1/
22167 q
22168 }
22169 s/.*/./; q'`/stamp-h$_am_stamp_count
22170 ;;
22171
22172 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22173 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22174 ;;
22175 esac
22176
22177
22178 case $ac_file$ac_mode in
22179 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22180 # Older Autoconf quotes --file arguments for eval, but not when files
22181 # are listed without --file. Let's play safe and only enable the eval
22182 # if we detect the quoting.
22183 # TODO: see whether this extra hack can be removed once we start
22184 # requiring Autoconf 2.70 or later.
22185 case $CONFIG_FILES in #(
22186 *\'*) :
22187 eval set x "$CONFIG_FILES" ;; #(
22188 *) :
22189 set x $CONFIG_FILES ;; #(
22190 *) :
22191 ;;
22192 esac
22193 shift
22194 # Used to flag and report bootstrapping failures.
22195 am_rc=0
22196 for am_mf
22197 do
22198 # Strip MF so we end up with the name of the file.
22199 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22200 # Check whether this is an Automake generated Makefile which includes
22201 # dependency-tracking related rules and includes.
22202 # Grep'ing the whole file directly is not great: AIX grep has a line
22203 # limit of 2048, but all sed's we know have understand at least 4000.
22204 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22205 || continue
22206 am_dirpart=`$as_dirname -- "$am_mf" ||
22207 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22208 X"$am_mf" : 'X\(//\)[^/]' \| \
22209 X"$am_mf" : 'X\(//\)$' \| \
22210 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22211 printf "%s\n" X"$am_mf" |
22212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\/\)[^/].*/{
22217 s//\1/
22218 q
22219 }
22220 /^X\(\/\/\)$/{
22221 s//\1/
22222 q
22223 }
22224 /^X\(\/\).*/{
22225 s//\1/
22226 q
22227 }
22228 s/.*/./; q'`
22229 am_filepart=`$as_basename -- "$am_mf" ||
22230 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22231 X"$am_mf" : 'X\(//\)$' \| \
22232 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22233 printf "%s\n" X/"$am_mf" |
22234 sed '/^.*\/\([^/][^/]*\)\/*$/{
22235 s//\1/
22236 q
22237 }
22238 /^X\/\(\/\/\)$/{
22239 s//\1/
22240 q
22241 }
22242 /^X\/\(\/\).*/{
22243 s//\1/
22244 q
22245 }
22246 s/.*/./; q'`
22247 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22248 && sed -e '/# am--include-marker/d' "$am_filepart" \
22249 | $MAKE -f - am--depfiles" >&5
22250 (cd "$am_dirpart" \
22251 && sed -e '/# am--include-marker/d' "$am_filepart" \
22252 | $MAKE -f - am--depfiles) >&5 2>&5
22253 ac_status=$?
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } || am_rc=$?
22256 done
22257 if test $am_rc -ne 0; then
22258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22259 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22260 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22261 for automatic dependency tracking. If GNU make was not used, consider
22262 re-running the configure script with MAKE=\"gmake\" (or whatever is
22263 necessary). You can also try re-running configure with the
22264 '--disable-dependency-tracking' option to at least be able to build
22265 the package (albeit without support for automatic dependency tracking).
22266 See 'config.log' for more details" "$LINENO" 5; }
22267 fi
22268 { am_dirpart=; unset am_dirpart;}
22269 { am_filepart=; unset am_filepart;}
22270 { am_mf=; unset am_mf;}
22271 { am_rc=; unset am_rc;}
22272 rm -f conftest-deps.mk
22273 }
22274 ;;
22275 "libtool":C)
22276
22277 # See if we are running on zsh, and set the options that allow our
22278 # commands through without removal of \ escapes.
22279 if test -n "${ZSH_VERSION+set}"; then
22280 setopt NO_GLOB_SUBST
22281 fi
22282
22283 cfgfile=${ofile}T
22284 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22285 $RM "$cfgfile"
22286
22287 cat <<_LT_EOF >> "$cfgfile"
22288 #! $SHELL
22289 # Generated automatically by $as_me ($PACKAGE) $VERSION
22290 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22291
22292 # Provide generalized library-building support services.
22293 # Written by Gordon Matzigkeit, 1996
22294
22295 # Copyright (C) 2024 Free Software Foundation, Inc.
22296 # This is free software; see the source for copying conditions. There is NO
22297 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22298
22299 # GNU Libtool is free software; you can redistribute it and/or modify
22300 # it under the terms of the GNU General Public License as published by
22301 # the Free Software Foundation; either version 2 of the License, or
22302 # (at your option) any later version.
22303 #
22304 # As a special exception to the GNU General Public License, if you
22305 # distribute this file as part of a program or library that is built
22306 # using GNU Libtool, you may include this file under the same
22307 # distribution terms that you use for the rest of that program.
22308 #
22309 # GNU Libtool is distributed in the hope that it will be useful, but
22310 # WITHOUT ANY WARRANTY; without even the implied warranty of
22311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22312 # GNU General Public License for more details.
22313 #
22314 # You should have received a copy of the GNU General Public License
22315 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22316
22317
22318 # The names of the tagged configurations supported by this script.
22319 available_tags=''
22320
22321 # Configured defaults for sys_lib_dlsearch_path munging.
22322 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22323
22324 # ### BEGIN LIBTOOL CONFIG
22325
22326 # Which release of libtool.m4 was used?
22327 macro_version=$macro_version
22328 macro_revision=$macro_revision
22329
22330 # Whether or not to build shared libraries.
22331 build_libtool_libs=$enable_shared
22332
22333 # Whether or not to build static libraries.
22334 build_old_libs=$enable_static
22335
22336 # What type of objects to build.
22337 pic_mode=$pic_mode
22338
22339 # Whether or not to optimize for fast installation.
22340 fast_install=$enable_fast_install
22341
22342 # Shared archive member basename,for filename based shared library versioning on AIX.
22343 shared_archive_member_spec=$shared_archive_member_spec
22344
22345 # Shell to use when invoking shell scripts.
22346 SHELL=$lt_SHELL
22347
22348 # An echo program that protects backslashes.
22349 ECHO=$lt_ECHO
22350
22351 # The PATH separator for the build system.
22352 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22353
22354 # The host system.
22355 host_alias=$host_alias
22356 host=$host
22357 host_os=$host_os
22358
22359 # The build system.
22360 build_alias=$build_alias
22361 build=$build
22362 build_os=$build_os
22363
22364 # A sed program that does not truncate output.
22365 SED=$lt_SED
22366
22367 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22368 Xsed="\$SED -e 1s/^X//"
22369
22370 # A grep program that handles long lines.
22371 GREP=$lt_GREP
22372
22373 # An ERE matcher.
22374 EGREP=$lt_EGREP
22375
22376 # A literal string matcher.
22377 FGREP=$lt_FGREP
22378
22379 # A BSD- or MS-compatible name lister.
22380 NM=$lt_NM
22381
22382 # Whether we need soft or hard links.
22383 LN_S=$lt_LN_S
22384
22385 # What is the maximum length of a command?
22386 max_cmd_len=$max_cmd_len
22387
22388 # Object file suffix (normally "o").
22389 objext=$ac_objext
22390
22391 # Executable file suffix (normally "").
22392 exeext=$exeext
22393
22394 # whether the shell understands "unset".
22395 lt_unset=$lt_unset
22396
22397 # turn spaces into newlines.
22398 SP2NL=$lt_lt_SP2NL
22399
22400 # turn newlines into spaces.
22401 NL2SP=$lt_lt_NL2SP
22402
22403 # convert \$build file names to \$host format.
22404 to_host_file_cmd=$lt_cv_to_host_file_cmd
22405
22406 # convert \$build files to toolchain format.
22407 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22408
22409 # A file(cmd) program that detects file types.
22410 FILECMD=$lt_FILECMD
22411
22412 # An object symbol dumper.
22413 OBJDUMP=$lt_OBJDUMP
22414
22415 # Method to check whether dependent libraries are shared objects.
22416 deplibs_check_method=$lt_deplibs_check_method
22417
22418 # Command to use when deplibs_check_method = "file_magic".
22419 file_magic_cmd=$lt_file_magic_cmd
22420
22421 # How to find potential files when deplibs_check_method = "file_magic".
22422 file_magic_glob=$lt_file_magic_glob
22423
22424 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22425 want_nocaseglob=$lt_want_nocaseglob
22426
22427 # DLL creation program.
22428 DLLTOOL=$lt_DLLTOOL
22429
22430 # Command to associate shared and link libraries.
22431 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22432
22433 # The archiver.
22434 AR=$lt_AR
22435
22436 # Flags to create an archive (by configure).
22437 lt_ar_flags=$lt_ar_flags
22438
22439 # Flags to create an archive.
22440 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22441
22442 # How to feed a file listing to the archiver.
22443 archiver_list_spec=$lt_archiver_list_spec
22444
22445 # A symbol stripping program.
22446 STRIP=$lt_STRIP
22447
22448 # Commands used to install an old-style archive.
22449 RANLIB=$lt_RANLIB
22450 old_postinstall_cmds=$lt_old_postinstall_cmds
22451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22452
22453 # Whether to use a lock for old archive extraction.
22454 lock_old_archive_extraction=$lock_old_archive_extraction
22455
22456 # A C compiler.
22457 LTCC=$lt_CC
22458
22459 # LTCC compiler flags.
22460 LTCFLAGS=$lt_CFLAGS
22461
22462 # Take the output of nm and produce a listing of raw symbols and C names.
22463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22464
22465 # Transform the output of nm in a proper C declaration.
22466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22467
22468 # Transform the output of nm into a list of symbols to manually relocate.
22469 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22470
22471 # Transform the output of nm in a C name address pair.
22472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22473
22474 # Transform the output of nm in a C name address pair when lib prefix is needed.
22475 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22476
22477 # The name lister interface.
22478 nm_interface=$lt_lt_cv_nm_interface
22479
22480 # Specify filename containing input files for \$NM.
22481 nm_file_list_spec=$lt_nm_file_list_spec
22482
22483 # The root where to search for dependent libraries,and where our libraries should be installed.
22484 lt_sysroot=$lt_sysroot
22485
22486 # Command to truncate a binary pipe.
22487 lt_truncate_bin=$lt_lt_cv_truncate_bin
22488
22489 # The name of the directory that contains temporary libtool files.
22490 objdir=$objdir
22491
22492 # Used to examine libraries when file_magic_cmd begins with "file".
22493 MAGIC_CMD=$MAGIC_CMD
22494
22495 # Must we lock files when doing compilation?
22496 need_locks=$lt_need_locks
22497
22498 # Manifest tool.
22499 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22500
22501 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22502 DSYMUTIL=$lt_DSYMUTIL
22503
22504 # Tool to change global to local symbols on Mac OS X.
22505 NMEDIT=$lt_NMEDIT
22506
22507 # Tool to manipulate fat objects and archives on Mac OS X.
22508 LIPO=$lt_LIPO
22509
22510 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22511 OTOOL=$lt_OTOOL
22512
22513 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22514 OTOOL64=$lt_OTOOL64
22515
22516 # Old archive suffix (normally "a").
22517 libext=$libext
22518
22519 # Shared library suffix (normally ".so").
22520 shrext_cmds=$lt_shrext_cmds
22521
22522 # The commands to extract the exported symbol list from a shared archive.
22523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22524
22525 # Variables whose values should be saved in libtool wrapper scripts and
22526 # restored at link time.
22527 variables_saved_for_relink=$lt_variables_saved_for_relink
22528
22529 # Do we need the "lib" prefix for modules?
22530 need_lib_prefix=$need_lib_prefix
22531
22532 # Do we need a version for libraries?
22533 need_version=$need_version
22534
22535 # Library versioning type.
22536 version_type=$version_type
22537
22538 # Shared library runtime path variable.
22539 runpath_var=$runpath_var
22540
22541 # Shared library path variable.
22542 shlibpath_var=$shlibpath_var
22543
22544 # Is shlibpath searched before the hard-coded library search path?
22545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22546
22547 # Format of library name prefix.
22548 libname_spec=$lt_libname_spec
22549
22550 # List of archive names. First name is the real one, the rest are links.
22551 # The last name is the one that the linker finds with -lNAME
22552 library_names_spec=$lt_library_names_spec
22553
22554 # The coded name of the library, if different from the real name.
22555 soname_spec=$lt_soname_spec
22556
22557 # Permission mode override for installation of shared libraries.
22558 install_override_mode=$lt_install_override_mode
22559
22560 # Command to use after installation of a shared archive.
22561 postinstall_cmds=$lt_postinstall_cmds
22562
22563 # Command to use after uninstallation of a shared archive.
22564 postuninstall_cmds=$lt_postuninstall_cmds
22565
22566 # Commands used to finish a libtool library installation in a directory.
22567 finish_cmds=$lt_finish_cmds
22568
22569 # As "finish_cmds", except a single script fragment to be evaled but
22570 # not shown.
22571 finish_eval=$lt_finish_eval
22572
22573 # Whether we should hardcode library paths into libraries.
22574 hardcode_into_libs=$hardcode_into_libs
22575
22576 # Compile-time system search path for libraries.
22577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22578
22579 # Detected run-time system search path for libraries.
22580 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22581
22582 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22583 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22584
22585 # Whether dlopen is supported.
22586 dlopen_support=$enable_dlopen
22587
22588 # Whether dlopen of programs is supported.
22589 dlopen_self=$enable_dlopen_self
22590
22591 # Whether dlopen of statically linked programs is supported.
22592 dlopen_self_static=$enable_dlopen_self_static
22593
22594 # Commands to strip libraries.
22595 old_striplib=$lt_old_striplib
22596 striplib=$lt_striplib
22597
22598
22599 # The linker used to build libraries.
22600 LD=$lt_LD
22601
22602 # How to create reloadable object files.
22603 reload_flag=$lt_reload_flag
22604 reload_cmds=$lt_reload_cmds
22605
22606 # Commands used to build an old-style archive.
22607 old_archive_cmds=$lt_old_archive_cmds
22608
22609 # A language specific compiler.
22610 CC=$lt_compiler
22611
22612 # Is the compiler the GNU compiler?
22613 with_gcc=$GCC
22614
22615 # Compiler flag to turn off builtin functions.
22616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22617
22618 # Additional compiler flags for building library objects.
22619 pic_flag=$lt_lt_prog_compiler_pic
22620
22621 # How to pass a linker flag through the compiler.
22622 wl=$lt_lt_prog_compiler_wl
22623
22624 # Compiler flag to prevent dynamic linking.
22625 link_static_flag=$lt_lt_prog_compiler_static
22626
22627 # Does compiler simultaneously support -c and -o options?
22628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22629
22630 # Whether or not to add -lc for building shared libraries.
22631 build_libtool_need_lc=$archive_cmds_need_lc
22632
22633 # Whether or not to disallow shared libs when runtime libs are static.
22634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22635
22636 # Compiler flag to allow reflexive dlopens.
22637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22638
22639 # Compiler flag to generate shared objects directly from archives.
22640 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22641
22642 # Whether the compiler copes with passing no objects directly.
22643 compiler_needs_object=$lt_compiler_needs_object
22644
22645 # Create an old-style archive from a shared archive.
22646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22647
22648 # Create a temporary old-style archive to link instead of a shared archive.
22649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22650
22651 # Commands used to build a shared archive.
22652 archive_cmds=$lt_archive_cmds
22653 archive_expsym_cmds=$lt_archive_expsym_cmds
22654
22655 # Commands used to build a loadable module if different from building
22656 # a shared archive.
22657 module_cmds=$lt_module_cmds
22658 module_expsym_cmds=$lt_module_expsym_cmds
22659
22660 # Whether we are building with GNU ld or not.
22661 with_gnu_ld=$lt_with_gnu_ld
22662
22663 # Flag that allows shared libraries with undefined symbols to be built.
22664 allow_undefined_flag=$lt_allow_undefined_flag
22665
22666 # Flag that enforces no undefined symbols.
22667 no_undefined_flag=$lt_no_undefined_flag
22668
22669 # Flag to hardcode \$libdir into a binary during linking.
22670 # This must work even if \$libdir does not exist
22671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22672
22673 # Whether we need a single "-rpath" flag with a separated argument.
22674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22675
22676 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22677 # DIR into the resulting binary.
22678 hardcode_direct=$hardcode_direct
22679
22680 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22681 # DIR into the resulting binary and the resulting library dependency is
22682 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22683 # library is relocated.
22684 hardcode_direct_absolute=$hardcode_direct_absolute
22685
22686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22687 # into the resulting binary.
22688 hardcode_minus_L=$hardcode_minus_L
22689
22690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22691 # into the resulting binary.
22692 hardcode_shlibpath_var=$hardcode_shlibpath_var
22693
22694 # Set to "yes" if building a shared library automatically hardcodes DIR
22695 # into the library and all subsequent libraries and executables linked
22696 # against it.
22697 hardcode_automatic=$hardcode_automatic
22698
22699 # Set to yes if linker adds runtime paths of dependent libraries
22700 # to runtime path list.
22701 inherit_rpath=$inherit_rpath
22702
22703 # Whether libtool must link a program against all its dependency libraries.
22704 link_all_deplibs=$link_all_deplibs
22705
22706 # Set to "yes" if exported symbols are required.
22707 always_export_symbols=$always_export_symbols
22708
22709 # The commands to list exported symbols.
22710 export_symbols_cmds=$lt_export_symbols_cmds
22711
22712 # Symbols that should not be listed in the preloaded symbols.
22713 exclude_expsyms=$lt_exclude_expsyms
22714
22715 # Symbols that must always be exported.
22716 include_expsyms=$lt_include_expsyms
22717
22718 # Commands necessary for linking programs (against libraries) with templates.
22719 prelink_cmds=$lt_prelink_cmds
22720
22721 # Commands necessary for finishing linking programs.
22722 postlink_cmds=$lt_postlink_cmds
22723
22724 # Specify filename containing input files.
22725 file_list_spec=$lt_file_list_spec
22726
22727 # How to hardcode a shared library path into an executable.
22728 hardcode_action=$hardcode_action
22729
22730 # ### END LIBTOOL CONFIG
22731
22732 _LT_EOF
22733
22734 cat <<'_LT_EOF' >> "$cfgfile"
22735
22736 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22737
22738 # func_munge_path_list VARIABLE PATH
22739 # -----------------------------------
22740 # VARIABLE is name of variable containing _space_ separated list of
22741 # directories to be munged by the contents of PATH, which is string
22742 # having a format:
22743 # "DIR[:DIR]:"
22744 # string "DIR[ DIR]" will be prepended to VARIABLE
22745 # ":DIR[:DIR]"
22746 # string "DIR[ DIR]" will be appended to VARIABLE
22747 # "DIRP[:DIRP]::[DIRA:]DIRA"
22748 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22749 # "DIRA[ DIRA]" will be appended to VARIABLE
22750 # "DIR[:DIR]"
22751 # VARIABLE will be replaced by "DIR[ DIR]"
22752 func_munge_path_list ()
22753 {
22754 case x$2 in
22755 x)
22756 ;;
22757 *:)
22758 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22759 ;;
22760 x:*)
22761 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22762 ;;
22763 *::*)
22764 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22765 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22766 ;;
22767 *)
22768 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22769 ;;
22770 esac
22771 }
22772
22773
22774 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22775 func_cc_basename ()
22776 {
22777 for cc_temp in $*""; do
22778 case $cc_temp in
22779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22781 \-*) ;;
22782 *) break;;
22783 esac
22784 done
22785 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22786 }
22787
22788
22789 # ### END FUNCTIONS SHARED WITH CONFIGURE
22790
22791 _LT_EOF
22792
22793 case $host_os in
22794 aix3*)
22795 cat <<\_LT_EOF >> "$cfgfile"
22796 # AIX sometimes has problems with the GCC collect2 program. For some
22797 # reason, if we set the COLLECT_NAMES environment variable, the problems
22798 # vanish in a puff of smoke.
22799 if test set != "${COLLECT_NAMES+set}"; then
22800 COLLECT_NAMES=
22801 export COLLECT_NAMES
22802 fi
22803 _LT_EOF
22804 ;;
22805 esac
22806
22807
22808
22809 ltmain=$ac_aux_dir/ltmain.sh
22810
22811
22812 # We use sed instead of cat because bash on DJGPP gets confused if
22813 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22814 # text mode, it properly converts lines to CR/LF. This bash problem
22815 # is reportedly fixed, but why not run on old versions too?
22816 $SED '$q' "$ltmain" >> "$cfgfile" \
22817 || (rm -f "$cfgfile"; exit 1)
22818
22819 mv -f "$cfgfile" "$ofile" ||
22820 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22821 chmod +x "$ofile"
22822
22823 ;;
22824
22825 esac
22826 done # for ac_tag
22827
22828
22829 as_fn_exit 0
22830 _ACEOF
22831 ac_clean_files=$ac_clean_files_save
22832
22833 test $ac_write_fail = 0 ||
22834 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22835
22836
22837 # configure is writing to config.log, and then calls config.status.
22838 # config.status does its own redirection, appending to config.log.
22839 # Unfortunately, on DOS this fails, as config.log is still kept open
22840 # by configure, so config.status won't be able to write to it; its
22841 # output is simply discarded. So we exec the FD to /dev/null,
22842 # effectively closing config.log, so it can be properly (re)opened and
22843 # appended to by config.status. When coming back to configure, we
22844 # need to make the FD available again.
22845 if test "$no_create" != yes; then
22846 ac_cs_success=:
22847 ac_config_status_args=
22848 test "$silent" = yes &&
22849 ac_config_status_args="$ac_config_status_args --quiet"
22850 exec 5>/dev/null
22851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22852 exec 5>>config.log
22853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22854 # would make configure fail if this is the last instruction.
22855 $ac_cs_success || as_fn_exit 1
22856 fi
22857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22859 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22860 fi
22861
22862
22863