configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXScrnSaver 1.2.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/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/libxscrnsaver/-/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='libXScrnSaver'
617 PACKAGE_TARNAME='libXScrnSaver'
618 PACKAGE_VERSION='1.2.5'
619 PACKAGE_STRING='libXScrnSaver 1.2.5'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/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 MAKE_LINT_LIB_FALSE
661 MAKE_LINT_LIB_TRUE
662 LINTLIB
663 LINT_FALSE
664 LINT_TRUE
665 LINT_FLAGS
666 LINT
667 XSCRNSAVER_LIBS
668 XSCRNSAVER_CFLAGS
669 XTMALLOC_ZERO_CFLAGS
670 XMALLOC_ZERO_CFLAGS
671 MALLOC_ZERO_CFLAGS
672 MAN_SUBSTS
673 XORG_MAN_PAGE
674 ADMIN_MAN_DIR
675 DRIVER_MAN_DIR
676 MISC_MAN_DIR
677 FILE_MAN_DIR
678 LIB_MAN_DIR
679 APP_MAN_DIR
680 ADMIN_MAN_SUFFIX
681 DRIVER_MAN_SUFFIX
682 MISC_MAN_SUFFIX
683 FILE_MAN_SUFFIX
684 LIB_MAN_SUFFIX
685 APP_MAN_SUFFIX
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 am__xargs_n
742 am__rm_f_notfound
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_shared
818 enable_static
819 enable_pic
820 with_pic
821 enable_fast_install
822 enable_aix_soname
823 with_aix_soname
824 enable_dependency_tracking
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_selective_werror
829 enable_strict_compilation
830 enable_malloc0returnsnull
831 with_lint
832 enable_lint_library
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 LT_SYS_LIBRARY_PATH
843 PKG_CONFIG
844 PKG_CONFIG_PATH
845 PKG_CONFIG_LIBDIR
846 XSCRNSAVER_CFLAGS
847 XSCRNSAVER_LIBS
848 LINT
849 LINT_FLAGS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: '$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: '$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: '$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: '$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: '$ac_option'
1244 Try '$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: '$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 'configure' configures libXScrnSaver 1.2.5 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print 'checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for '--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or '..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, 'make install' will install all the files in
1425 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than '$ac_default_prefix' using '--prefix',
1427 for instance '--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of libXScrnSaver 1.2.5:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --enable-aix-soname=aix|svr4|both
1486 shared library versioning (aka "SONAME") variant to
1487 provide on AIX, [default=aix].
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --disable-selective-werror
1494 Turn off selective compiler errors. (default:
1495 enabled)
1496 --enable-strict-compilation
1497 Enable all warnings from compiler and make them
1498 errors (default: disabled)
1499 --enable-malloc0returnsnull
1500 assume malloc(0) can return NULL (default: yes)
1501 --enable-lint-library Create lint library (default: disabled)
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508 compiler's sysroot if not specified).
1509 --with-lint Use a lint-style source code checker (default:
1510 disabled)
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 LT_SYS_LIBRARY_PATH
1521 User-defined run-time library search path.
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 XSCRNSAVER_CFLAGS
1528 C compiler flags for XSCRNSAVER, overriding pkg-config
1529 XSCRNSAVER_LIBS
1530 linker flags for XSCRNSAVER, overriding pkg-config
1531 LINT Path to a lint-style command
1532 LINT_FLAGS Flags for the lint-style command
1533
1534 Use these variables to override the choices made by 'configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for configure.gnu first; this name is used for a wrapper for
1584 # Metaconfig's "Configure" on case-insensitive file systems.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 libXScrnSaver configure 1.2.5
1602 generated by GNU Autoconf 2.72
1603
1604 Copyright (C) 2023 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest.beam
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 printf "%s\n" "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext
1641 then :
1642 ac_retval=0
1643 else case e in #(
1644 e) printf "%s\n" "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1 ;;
1648 esac
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 printf "%s\n" "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1683 }
1684 then :
1685 ac_retval=0
1686 else case e in #(
1687 e) printf "%s\n" "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1 ;;
1691 esac
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else case e in #(
1716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"
1722 then :
1723 eval "$3=yes"
1724 else case e in #(
1725 e) eval "$3=no" ;;
1726 esac
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1729 esac
1730 fi
1731 eval ac_res=\$$3
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 printf "%s\n" "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else case e in #(
1750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1754 #define $2 innocuous_$2
1755
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $2 (void); below. */
1758
1759 #include <limits.h>
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 (void);
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main (void)
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"
1785 then :
1786 eval "$3=yes"
1787 else case e in #(
1788 e) eval "$3=no" ;;
1789 esac
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1792 conftest$ac_exeext conftest.$ac_ext ;;
1793 esac
1794 fi
1795 eval ac_res=\$$3
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf "%s\n" "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801
1802 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1803 # ------------------------------------------------------------------
1804 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1806 ac_fn_check_decl ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 as_decl_name=`echo $2|sed 's/ *(.*//'`
1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1811 printf %s "checking whether $as_decl_name is declared... " >&6; }
1812 if eval test \${$3+y}
1813 then :
1814 printf %s "(cached) " >&6
1815 else case e in #(
1816 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1817 eval ac_save_FLAGS=\$$6
1818 as_fn_append $6 " $5"
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main (void)
1824 {
1825 #ifndef $as_decl_name
1826 #ifdef __cplusplus
1827 (void) $as_decl_use;
1828 #else
1829 (void) $as_decl_name;
1830 #endif
1831 #endif
1832
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"
1838 then :
1839 eval "$3=yes"
1840 else case e in #(
1841 e) eval "$3=no" ;;
1842 esac
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1845 eval $6=\$ac_save_FLAGS
1846 ;;
1847 esac
1848 fi
1849 eval ac_res=\$$3
1850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 printf "%s\n" "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_check_decl
1855 ac_configure_args_raw=
1856 for ac_arg
1857 do
1858 case $ac_arg in
1859 *\'*)
1860 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 esac
1862 as_fn_append ac_configure_args_raw " '$ac_arg'"
1863 done
1864
1865 case $ac_configure_args_raw in
1866 *$as_nl*)
1867 ac_safe_unquote= ;;
1868 *)
1869 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1870 ac_unsafe_a="$ac_unsafe_z#~"
1871 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1872 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1873 esac
1874
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by libXScrnSaver $as_me 1.2.5, which was
1880 generated by GNU Autoconf 2.72. Invocation command line was
1881
1882 $ $0$ac_configure_args_raw
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 case $as_dir in #(((
1916 '') as_dir=./ ;;
1917 */) ;;
1918 *) as_dir=$as_dir/ ;;
1919 esac
1920 printf "%s\n" "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Sanitize IFS.
1991 IFS=" "" $as_nl"
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 printf "%s\n" "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 printf "%s\n" "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 printf "%s\n" "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 printf "%s\n" "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 printf "%s\n" "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 printf "%s\n" "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 printf "%s\n" "$as_me: caught signal $ac_signal"
2072 printf "%s\n" "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077 ' 0
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2082
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2085
2086 printf "%s\n" "/* confdefs.h */" > confdefs.h
2087
2088 # Predefined preprocessor variables.
2089
2090 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 if test -n "$CONFIG_SITE"; then
2106 ac_site_files="$CONFIG_SITE"
2107 elif test "x$prefix" != xNONE; then
2108 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2109 else
2110 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2111 fi
2112
2113 for ac_site_file in $ac_site_files
2114 do
2115 case $ac_site_file in #(
2116 */*) :
2117 ;; #(
2118 *) :
2119 ac_site_file=./$ac_site_file ;;
2120 esac
2121 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file" \
2126 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2128 as_fn_error $? "failed to load site script $ac_site_file
2129 See 'config.log' for more details" "$LINENO" 5; }
2130 fi
2131 done
2132
2133 if test -r "$cache_file"; then
2134 # Some versions of bash will fail to source /dev/null (special files
2135 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2136 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2139 case $cache_file in
2140 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141 *) . "./$cache_file";;
2142 esac
2143 fi
2144 else
2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2147 >$cache_file
2148 fi
2149
2150 # Test code for whether the C compiler supports C89 (global declarations)
2151 ac_c_conftest_c89_globals='
2152 /* Does the compiler advertise C89 conformance?
2153 Do not test the value of __STDC__, because some compilers set it to 0
2154 while being otherwise adequately conformant. */
2155 #if !defined __STDC__
2156 # error "Compiler does not advertise C89 conformance"
2157 #endif
2158
2159 #include <stddef.h>
2160 #include <stdarg.h>
2161 struct stat;
2162 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2163 struct buf { int x; };
2164 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2165 static char *e (char **p, int i)
2166 {
2167 return p[i];
2168 }
2169 static char *f (char * (*g) (char **, int), char **p, ...)
2170 {
2171 char *s;
2172 va_list v;
2173 va_start (v,p);
2174 s = g (p, va_arg (v,int));
2175 va_end (v);
2176 return s;
2177 }
2178
2179 /* C89 style stringification. */
2180 #define noexpand_stringify(a) #a
2181 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2182
2183 /* C89 style token pasting. Exercises some of the corner cases that
2184 e.g. old MSVC gets wrong, but not very hard. */
2185 #define noexpand_concat(a,b) a##b
2186 #define expand_concat(a,b) noexpand_concat(a,b)
2187 extern int vA;
2188 extern int vbee;
2189 #define aye A
2190 #define bee B
2191 int *pvA = &expand_concat(v,aye);
2192 int *pvbee = &noexpand_concat(v,bee);
2193
2194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2195 function prototypes and stuff, but not \xHH hex character constants.
2196 These do not provoke an error unfortunately, instead are silently treated
2197 as an "x". The following induces an error, until -std is added to get
2198 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2199 array size at least. It is necessary to write \x00 == 0 to get something
2200 that is true only with -std. */
2201 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2202
2203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2204 inside strings and character constants. */
2205 #define FOO(x) '\''x'\''
2206 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2207
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2212 int, int);'
2213
2214 # Test code for whether the C compiler supports C89 (body of main).
2215 ac_c_conftest_c89_main='
2216 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2217 '
2218
2219 # Test code for whether the C compiler supports C99 (global declarations)
2220 ac_c_conftest_c99_globals='
2221 /* Does the compiler advertise C99 conformance? */
2222 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2223 # error "Compiler does not advertise C99 conformance"
2224 #endif
2225
2226 // See if C++-style comments work.
2227
2228 #include <stdbool.h>
2229 extern int puts (const char *);
2230 extern int printf (const char *, ...);
2231 extern int dprintf (int, const char *, ...);
2232 extern void *malloc (size_t);
2233 extern void free (void *);
2234
2235 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2236 // dprintf is used instead of fprintf to avoid needing to declare
2237 // FILE and stderr.
2238 #define debug(...) dprintf (2, __VA_ARGS__)
2239 #define showlist(...) puts (#__VA_ARGS__)
2240 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2241 static void
2242 test_varargs_macros (void)
2243 {
2244 int x = 1234;
2245 int y = 5678;
2246 debug ("Flag");
2247 debug ("X = %d\n", x);
2248 showlist (The first, second, and third items.);
2249 report (x>y, "x is %d but y is %d", x, y);
2250 }
2251
2252 // Check long long types.
2253 #define BIG64 18446744073709551615ull
2254 #define BIG32 4294967295ul
2255 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2256 #if !BIG_OK
2257 #error "your preprocessor is broken"
2258 #endif
2259 #if BIG_OK
2260 #else
2261 #error "your preprocessor is broken"
2262 #endif
2263 static long long int bignum = -9223372036854775807LL;
2264 static unsigned long long int ubignum = BIG64;
2265
2266 struct incomplete_array
2267 {
2268 int datasize;
2269 double data[];
2270 };
2271
2272 struct named_init {
2273 int number;
2274 const wchar_t *name;
2275 double average;
2276 };
2277
2278 typedef const char *ccp;
2279
2280 static inline int
2281 test_restrict (ccp restrict text)
2282 {
2283 // Iterate through items via the restricted pointer.
2284 // Also check for declarations in for loops.
2285 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2286 continue;
2287 return 0;
2288 }
2289
2290 // Check varargs and va_copy.
2291 static bool
2292 test_varargs (const char *format, ...)
2293 {
2294 va_list args;
2295 va_start (args, format);
2296 va_list args_copy;
2297 va_copy (args_copy, args);
2298
2299 const char *str = "";
2300 int number = 0;
2301 float fnumber = 0;
2302
2303 while (*format)
2304 {
2305 switch (*format++)
2306 {
2307 case '\''s'\'': // string
2308 str = va_arg (args_copy, const char *);
2309 break;
2310 case '\''d'\'': // int
2311 number = va_arg (args_copy, int);
2312 break;
2313 case '\''f'\'': // float
2314 fnumber = va_arg (args_copy, double);
2315 break;
2316 default:
2317 break;
2318 }
2319 }
2320 va_end (args_copy);
2321 va_end (args);
2322
2323 return *str && number && fnumber;
2324 }
2325 '
2326
2327 # Test code for whether the C compiler supports C99 (body of main).
2328 ac_c_conftest_c99_main='
2329 // Check bool.
2330 _Bool success = false;
2331 success |= (argc != 0);
2332
2333 // Check restrict.
2334 if (test_restrict ("String literal") == 0)
2335 success = true;
2336 char *restrict newvar = "Another string";
2337
2338 // Check varargs.
2339 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2340 test_varargs_macros ();
2341
2342 // Check flexible array members.
2343 struct incomplete_array *ia =
2344 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2345 ia->datasize = 10;
2346 for (int i = 0; i < ia->datasize; ++i)
2347 ia->data[i] = i * 1.234;
2348 // Work around memory leak warnings.
2349 free (ia);
2350
2351 // Check named initializers.
2352 struct named_init ni = {
2353 .number = 34,
2354 .name = L"Test wide string",
2355 .average = 543.34343,
2356 };
2357
2358 ni.number = 58;
2359
2360 int dynamic_array[ni.number];
2361 dynamic_array[0] = argv[0][0];
2362 dynamic_array[ni.number - 1] = 543;
2363
2364 // work around unused variable warnings
2365 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2366 || dynamic_array[ni.number - 1] != 543);
2367 '
2368
2369 # Test code for whether the C compiler supports C11 (global declarations)
2370 ac_c_conftest_c11_globals='
2371 /* Does the compiler advertise C11 conformance? */
2372 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2373 # error "Compiler does not advertise C11 conformance"
2374 #endif
2375
2376 // Check _Alignas.
2377 char _Alignas (double) aligned_as_double;
2378 char _Alignas (0) no_special_alignment;
2379 extern char aligned_as_int;
2380 char _Alignas (0) _Alignas (int) aligned_as_int;
2381
2382 // Check _Alignof.
2383 enum
2384 {
2385 int_alignment = _Alignof (int),
2386 int_array_alignment = _Alignof (int[100]),
2387 char_alignment = _Alignof (char)
2388 };
2389 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2390
2391 // Check _Noreturn.
2392 int _Noreturn does_not_return (void) { for (;;) continue; }
2393
2394 // Check _Static_assert.
2395 struct test_static_assert
2396 {
2397 int x;
2398 _Static_assert (sizeof (int) <= sizeof (long int),
2399 "_Static_assert does not work in struct");
2400 long int y;
2401 };
2402
2403 // Check UTF-8 literals.
2404 #define u8 syntax error!
2405 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2406
2407 // Check duplicate typedefs.
2408 typedef long *long_ptr;
2409 typedef long int *long_ptr;
2410 typedef long_ptr long_ptr;
2411
2412 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2413 struct anonymous
2414 {
2415 union {
2416 struct { int i; int j; };
2417 struct { int k; long int l; } w;
2418 };
2419 int m;
2420 } v1;
2421 '
2422
2423 # Test code for whether the C compiler supports C11 (body of main).
2424 ac_c_conftest_c11_main='
2425 _Static_assert ((offsetof (struct anonymous, i)
2426 == offsetof (struct anonymous, w.k)),
2427 "Anonymous union alignment botch");
2428 v1.i = 2;
2429 v1.w.k = 5;
2430 ok |= v1.i != 5;
2431 '
2432
2433 # Test code for whether the C compiler supports C11 (complete).
2434 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2435 ${ac_c_conftest_c99_globals}
2436 ${ac_c_conftest_c11_globals}
2437
2438 int
2439 main (int argc, char **argv)
2440 {
2441 int ok = 0;
2442 ${ac_c_conftest_c89_main}
2443 ${ac_c_conftest_c99_main}
2444 ${ac_c_conftest_c11_main}
2445 return ok;
2446 }
2447 "
2448
2449 # Test code for whether the C compiler supports C99 (complete).
2450 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2451 ${ac_c_conftest_c99_globals}
2452
2453 int
2454 main (int argc, char **argv)
2455 {
2456 int ok = 0;
2457 ${ac_c_conftest_c89_main}
2458 ${ac_c_conftest_c99_main}
2459 return ok;
2460 }
2461 "
2462
2463 # Test code for whether the C compiler supports C89 (complete).
2464 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2465
2466 int
2467 main (int argc, char **argv)
2468 {
2469 int ok = 0;
2470 ${ac_c_conftest_c89_main}
2471 return ok;
2472 }
2473 "
2474
2475 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2476 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2477 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2478 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2479 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2480 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2481 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2482 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2483 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2484
2485 # Auxiliary files required by this configure script.
2486 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2487
2488 # Locations in which to look for auxiliary files.
2489 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2490
2491 # Search for a directory containing all of the required auxiliary files,
2492 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2493 # If we don't find one directory that contains all the files we need,
2494 # we report the set of missing files from the *first* directory in
2495 # $ac_aux_dir_candidates and give up.
2496 ac_missing_aux_files=""
2497 ac_first_candidate=:
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 as_found=false
2501 for as_dir in $ac_aux_dir_candidates
2502 do
2503 IFS=$as_save_IFS
2504 case $as_dir in #(((
2505 '') as_dir=./ ;;
2506 */) ;;
2507 *) as_dir=$as_dir/ ;;
2508 esac
2509 as_found=:
2510
2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2512 ac_aux_dir_found=yes
2513 ac_install_sh=
2514 for ac_aux in $ac_aux_files
2515 do
2516 # As a special case, if "install-sh" is required, that requirement
2517 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2518 # and $ac_install_sh is set appropriately for whichever one is found.
2519 if test x"$ac_aux" = x"install-sh"
2520 then
2521 if test -f "${as_dir}install-sh"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2523 ac_install_sh="${as_dir}install-sh -c"
2524 elif test -f "${as_dir}install.sh"; then
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2526 ac_install_sh="${as_dir}install.sh -c"
2527 elif test -f "${as_dir}shtool"; then
2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2529 ac_install_sh="${as_dir}shtool install -c"
2530 else
2531 ac_aux_dir_found=no
2532 if $ac_first_candidate; then
2533 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2534 else
2535 break
2536 fi
2537 fi
2538 else
2539 if test -f "${as_dir}${ac_aux}"; then
2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2541 else
2542 ac_aux_dir_found=no
2543 if $ac_first_candidate; then
2544 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2545 else
2546 break
2547 fi
2548 fi
2549 fi
2550 done
2551 if test "$ac_aux_dir_found" = yes; then
2552 ac_aux_dir="$as_dir"
2553 break
2554 fi
2555 ac_first_candidate=false
2556
2557 as_found=false
2558 done
2559 IFS=$as_save_IFS
2560 if $as_found
2561 then :
2562
2563 else case e in #(
2564 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2565 esac
2566 fi
2567
2568
2569 # These three variables are undocumented and unsupported,
2570 # and are intended to be withdrawn in a future Autoconf release.
2571 # They can cause serious problems if a builder's source tree is in a directory
2572 # whose full name contains unusual characters.
2573 if test -f "${ac_aux_dir}config.guess"; then
2574 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2575 fi
2576 if test -f "${ac_aux_dir}config.sub"; then
2577 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2578 fi
2579 if test -f "$ac_aux_dir/configure"; then
2580 ac_configure="$SHELL ${ac_aux_dir}configure"
2581 fi
2582
2583 # Check that the precious variables saved in the cache have kept the same
2584 # value.
2585 ac_cache_corrupted=false
2586 for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2594 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2598 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2601 *)
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2608 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2612 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2616 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2618 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632 done
2633 if $ac_cache_corrupted; then
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2635 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2639 and start over" "$LINENO" 5
2640 fi
2641 ## -------------------- ##
2642 ## Main body of script. ##
2643 ## -------------------- ##
2644
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652
2653 ac_config_headers="$ac_config_headers config.h"
2654
2655
2656
2657 # Initialize Automake
2658 am__api_version='1.18'
2659
2660
2661
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2668 # AIX /bin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677 printf %s "checking for a BSD-compatible install... " >&6; }
2678 if test -z "$INSTALL"; then
2679 if test ${ac_cv_path_install+y}
2680 then :
2681 printf %s "(cached) " >&6
2682 else case e in #(
2683 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 case $as_dir in #(((
2688 '') as_dir=./ ;;
2689 */) ;;
2690 *) as_dir=$as_dir/ ;;
2691 esac
2692 # Account for fact that we put trailing slashes in our PATH walk.
2693 case $as_dir in #((
2694 ./ | /[cC]/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2697 /usr/ucb/* ) ;;
2698 *)
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2701 # by default.
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2708 :
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2712 :
2713 else
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2717 mkdir conftest.dir
2718 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2722 then
2723 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2724 break 3
2725 fi
2726 fi
2727 fi
2728 done
2729 done
2730 ;;
2731 esac
2732
2733 done
2734 IFS=$as_save_IFS
2735
2736 rm -rf conftest.one conftest.two conftest.dir
2737 ;;
2738 esac
2739 fi
2740 if test ${ac_cv_path_install+y}; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2748 fi
2749 fi
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751 printf "%s\n" "$INSTALL" >&6; }
2752
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2762 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2763 if test ${am_cv_sleep_fractional_seconds+y}
2764 then :
2765 printf %s "(cached) " >&6
2766 else case e in #(
2767 e) if sleep 0.001 2>/dev/null
2768 then :
2769 am_cv_sleep_fractional_seconds=yes
2770 else case e in #(
2771 e) am_cv_sleep_fractional_seconds=no ;;
2772 esac
2773 fi
2774 ;;
2775 esac
2776 fi
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2778 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2779
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2781 printf %s "checking filesystem timestamp resolution... " >&6; }
2782 if test ${am_cv_filesystem_timestamp_resolution+y}
2783 then :
2784 printf %s "(cached) " >&6
2785 else case e in #(
2786 e) # Default to the worst case.
2787 am_cv_filesystem_timestamp_resolution=2
2788
2789 # Only try to go finer than 1 sec if sleep can do it.
2790 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2791 # - 1 sec is not much of a win compared to 2 sec, and
2792 # - it takes 2 seconds to perform the test whether 1 sec works.
2793 #
2794 # Instead, just use the default 2s on platforms that have 1s resolution,
2795 # accept the extra 1s delay when using $sleep in the Automake tests, in
2796 # exchange for not incurring the 2s delay for running the test for all
2797 # packages.
2798 #
2799 am_try_resolutions=
2800 if test "$am_cv_sleep_fractional_seconds" = yes; then
2801 # Even a millisecond often causes a bunch of false positives,
2802 # so just try a hundredth of a second. The time saved between .001 and
2803 # .01 is not terribly consequential.
2804 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2805 fi
2806
2807 # In order to catch current-generation FAT out, we must *modify* files
2808 # that already exist; the *creation* timestamp is finer. Use names
2809 # that make ls -t sort them differently when they have equal
2810 # timestamps than when they have distinct timestamps, keeping
2811 # in mind that ls -t prints the *newest* file first.
2812 rm -f conftest.ts?
2813 : > conftest.ts1
2814 : > conftest.ts2
2815 : > conftest.ts3
2816
2817 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2818 # clobber the current shell's arguments. (Outer-level square brackets
2819 # are removed by m4; they're present so that m4 does not expand
2820 # <dollar><star>; be careful, easy to get confused.)
2821 if (
2822 set X `ls -t conftest.ts[12]` &&
2823 {
2824 test "$*" != "X conftest.ts1 conftest.ts2" ||
2825 test "$*" != "X conftest.ts2 conftest.ts1";
2826 }
2827 ); then :; else
2828 # If neither matched, then we have a broken ls. This can happen
2829 # if, for instance, CONFIG_SHELL is bash and it inherits a
2830 # broken ls alias from the environment. This has actually
2831 # happened. Such a system could not be considered "sane".
2832 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2834 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2835 as_fn_error $? "ls -t produces unexpected output.
2836 Make sure there is not a broken ls alias in your environment.
2837 See 'config.log' for more details" "$LINENO" 5; }
2838 fi
2839
2840 for am_try_res in $am_try_resolutions; do
2841 # Any one fine-grained sleep might happen to cross the boundary
2842 # between two values of a coarser actual resolution, but if we do
2843 # two fine-grained sleeps in a row, at least one of them will fall
2844 # entirely within a coarse interval.
2845 echo alpha > conftest.ts1
2846 sleep $am_try_res
2847 echo beta > conftest.ts2
2848 sleep $am_try_res
2849 echo gamma > conftest.ts3
2850
2851 # We assume that 'ls -t' will make use of high-resolution
2852 # timestamps if the operating system supports them at all.
2853 if (set X `ls -t conftest.ts?` &&
2854 test "$2" = conftest.ts3 &&
2855 test "$3" = conftest.ts2 &&
2856 test "$4" = conftest.ts1); then
2857 #
2858 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2859 # because we don't need to test make.
2860 make_ok=true
2861 if test $am_try_res != 1; then
2862 # But if we've succeeded so far with a subsecond resolution, we
2863 # have one more thing to check: make. It can happen that
2864 # everything else supports the subsecond mtimes, but make doesn't;
2865 # notably on macOS, which ships make 3.81 from 2006 (the last one
2866 # released under GPLv2). https://bugs.gnu.org/68808
2867 #
2868 # We test $MAKE if it is defined in the environment, else "make".
2869 # It might get overridden later, but our hope is that in practice
2870 # it does not matter: it is the system "make" which is (by far)
2871 # the most likely to be broken, whereas if the user overrides it,
2872 # probably they did so with a better, or at least not worse, make.
2873 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2874 #
2875 # Create a Makefile (real tab character here):
2876 rm -f conftest.mk
2877 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2878 echo ' touch conftest.ts2' >>conftest.mk
2879 #
2880 # Now, running
2881 # touch conftest.ts1; touch conftest.ts2; make
2882 # should touch ts1 because ts2 is newer. This could happen by luck,
2883 # but most often, it will fail if make's support is insufficient. So
2884 # test for several consecutive successes.
2885 #
2886 # (We reuse conftest.ts[12] because we still want to modify existing
2887 # files, not create new ones, per above.)
2888 n=0
2889 make=${MAKE-make}
2890 until test $n -eq 3; do
2891 echo one > conftest.ts1
2892 sleep $am_try_res
2893 echo two > conftest.ts2 # ts2 should now be newer than ts1
2894 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2895 make_ok=false
2896 break # out of $n loop
2897 fi
2898 n=`expr $n + 1`
2899 done
2900 fi
2901 #
2902 if $make_ok; then
2903 # Everything we know to check worked out, so call this resolution good.
2904 am_cv_filesystem_timestamp_resolution=$am_try_res
2905 break # out of $am_try_res loop
2906 fi
2907 # Otherwise, we'll go on to check the next resolution.
2908 fi
2909 done
2910 rm -f conftest.ts?
2911 # (end _am_filesystem_timestamp_resolution)
2912 ;;
2913 esac
2914 fi
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2916 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2917
2918 # This check should not be cached, as it may vary across builds of
2919 # different projects.
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921 printf %s "checking whether build environment is sane... " >&6; }
2922 # Reject unsafe characters in $srcdir or the absolute working directory
2923 # name. Accept space and tab only in the latter.
2924 am_lf='
2925 '
2926 case `pwd` in
2927 *[\\\"\#\$\&\'\`$am_lf]*)
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 printf "%s\n" "no" >&6; }
2930 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2931 esac
2932 case $srcdir in
2933 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 printf "%s\n" "no" >&6; }
2936 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2937 esac
2938
2939 # Do 'set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2943 # directory).
2944 am_build_env_is_sane=no
2945 am_has_slept=no
2946 rm -f conftest.file
2947 for am_try in 1 2; do
2948 echo "timestamp, slept: $am_has_slept" > conftest.file
2949 if (
2950 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2951 if test "$*" = "X"; then
2952 # -L didn't work.
2953 set X `ls -t "$srcdir/configure" conftest.file`
2954 fi
2955 test "$2" = conftest.file
2956 ); then
2957 am_build_env_is_sane=yes
2958 break
2959 fi
2960 # Just in case.
2961 sleep "$am_cv_filesystem_timestamp_resolution"
2962 am_has_slept=yes
2963 done
2964
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2966 printf "%s\n" "$am_build_env_is_sane" >&6; }
2967 if test "$am_build_env_is_sane" = no; then
2968 as_fn_error $? "newly created file is older than distributed files!
2969 Check your system clock" "$LINENO" 5
2970 fi
2971
2972 # If we didn't sleep, we still need to ensure time stamps of config.status and
2973 # generated files are strictly newer.
2974 am_sleep_pid=
2975 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2976 then :
2977
2978 else case e in #(
2979 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2980 am_sleep_pid=$!
2981 ;;
2982 esac
2983 fi
2984
2985 rm -f conftest.file
2986
2987 test "$program_prefix" != NONE &&
2988 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2989 # Use a double $ so make ignores it.
2990 test "$program_suffix" != NONE &&
2991 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2992 # Double any \ or $.
2993 # By default was 's,x,x', remove it if useless.
2994 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2995 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2996
2997
2998 # Expand $ac_aux_dir to an absolute path.
2999 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3000
3001
3002 if test x"${MISSING+set}" != xset; then
3003 MISSING="\${SHELL} '$am_aux_dir/missing'"
3004 fi
3005 # Use eval to expand $SHELL
3006 if eval "$MISSING --is-lightweight"; then
3007 am_missing_run="$MISSING "
3008 else
3009 am_missing_run=
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3011 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3012 fi
3013
3014 if test x"${install_sh+set}" != xset; then
3015 case $am_aux_dir in
3016 *\ * | *\ *)
3017 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3018 *)
3019 install_sh="\${SHELL} $am_aux_dir/install-sh"
3020 esac
3021 fi
3022
3023 # Installed binaries are usually stripped using 'strip' when the user
3024 # run "make install-strip". However 'strip' might not be the right
3025 # tool to use in cross-compilation environments, therefore Automake
3026 # will honor the 'STRIP' environment variable to overrule this program.
3027 if test "$cross_compiling" != no; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}strip; ac_word=$2
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 printf %s "checking for $ac_word... " >&6; }
3033 if test ${ac_cv_prog_STRIP+y}
3034 then :
3035 printf %s "(cached) " >&6
3036 else case e in #(
3037 e) if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 case $as_dir in #(((
3045 '') as_dir=./ ;;
3046 */) ;;
3047 *) as_dir=$as_dir/ ;;
3048 esac
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi ;;
3060 esac
3061 fi
3062 STRIP=$ac_cv_prog_STRIP
3063 if test -n "$STRIP"; then
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065 printf "%s\n" "$STRIP" >&6; }
3066 else
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 printf "%s\n" "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip; ac_word=$2
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 printf %s "checking for $ac_word... " >&6; }
3079 if test ${ac_cv_prog_ac_ct_STRIP+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else case e in #(
3083 e) if test -n "$ac_ct_STRIP"; then
3084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 case $as_dir in #(((
3091 '') as_dir=./ ;;
3092 */) ;;
3093 *) as_dir=$as_dir/ ;;
3094 esac
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP="strip"
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi ;;
3106 esac
3107 fi
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 printf "%s\n" "$ac_ct_STRIP" >&6; }
3112 else
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 printf "%s\n" "no" >&6; }
3115 fi
3116
3117 if test "x$ac_ct_STRIP" = x; then
3118 STRIP=":"
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 STRIP=$ac_ct_STRIP
3127 fi
3128 else
3129 STRIP="$ac_cv_prog_STRIP"
3130 fi
3131
3132 fi
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134
3135
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3137 printf %s "checking for a race-free mkdir -p... " >&6; }
3138 if test -z "$MKDIR_P"; then
3139 if test ${ac_cv_path_mkdir+y}
3140 then :
3141 printf %s "(cached) " >&6
3142 else case e in #(
3143 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3145 do
3146 IFS=$as_save_IFS
3147 case $as_dir in #(((
3148 '') as_dir=./ ;;
3149 */) ;;
3150 *) as_dir=$as_dir/ ;;
3151 esac
3152 for ac_prog in mkdir gmkdir; do
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3155 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3156 'mkdir ('*'coreutils) '* | \
3157 *'BusyBox '* | \
3158 'mkdir (fileutils) '4.1*)
3159 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3160 break 3;;
3161 esac
3162 done
3163 done
3164 done
3165 IFS=$as_save_IFS
3166 ;;
3167 esac
3168 fi
3169
3170 test -d ./--version && rmdir ./--version
3171 if test ${ac_cv_path_mkdir+y}; then
3172 MKDIR_P="$ac_cv_path_mkdir -p"
3173 else
3174 # As a last resort, use plain mkdir -p,
3175 # in the hope it doesn't have the bugs of ancient mkdir.
3176 MKDIR_P='mkdir -p'
3177 fi
3178 fi
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3180 printf "%s\n" "$MKDIR_P" >&6; }
3181
3182 for ac_prog in gawk mawk nawk awk
3183 do
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 printf %s "checking for $ac_word... " >&6; }
3188 if test ${ac_cv_prog_AWK+y}
3189 then :
3190 printf %s "(cached) " >&6
3191 else case e in #(
3192 e) if test -n "$AWK"; then
3193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 case $as_dir in #(((
3200 '') as_dir=./ ;;
3201 */) ;;
3202 *) as_dir=$as_dir/ ;;
3203 esac
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi ;;
3215 esac
3216 fi
3217 AWK=$ac_cv_prog_AWK
3218 if test -n "$AWK"; then
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3220 printf "%s\n" "$AWK" >&6; }
3221 else
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 printf "%s\n" "no" >&6; }
3224 fi
3225
3226
3227 test -n "$AWK" && break
3228 done
3229
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3231 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3232 set x ${MAKE-make}
3233 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3234 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else case e in #(
3238 e) cat >conftest.make <<\_ACEOF
3239 SHELL = /bin/sh
3240 all:
3241 @echo '@@@%%%=$(MAKE)=@@@%%%'
3242 _ACEOF
3243 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3244 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3245 *@@@%%%=?*=@@@%%%*)
3246 eval ac_cv_prog_make_${ac_make}_set=yes;;
3247 *)
3248 eval ac_cv_prog_make_${ac_make}_set=no;;
3249 esac
3250 rm -f conftest.make ;;
3251 esac
3252 fi
3253 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 printf "%s\n" "yes" >&6; }
3256 SET_MAKE=
3257 else
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3260 SET_MAKE="MAKE=${MAKE-make}"
3261 fi
3262
3263 rm -rf .tst 2>/dev/null
3264 mkdir .tst 2>/dev/null
3265 if test -d .tst; then
3266 am__leading_dot=.
3267 else
3268 am__leading_dot=_
3269 fi
3270 rmdir .tst 2>/dev/null
3271
3272 AM_DEFAULT_VERBOSITY=1
3273 # Check whether --enable-silent-rules was given.
3274 if test ${enable_silent_rules+y}
3275 then :
3276 enableval=$enable_silent_rules;
3277 fi
3278
3279 am_make=${MAKE-make}
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3281 printf %s "checking whether $am_make supports nested variables... " >&6; }
3282 if test ${am_cv_make_support_nested_variables+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else case e in #(
3286 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3287 BAR0=false
3288 BAR1=true
3289 V=1
3290 am__doit:
3291 @$(TRUE)
3292 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3293 am_cv_make_support_nested_variables=yes
3294 else
3295 am_cv_make_support_nested_variables=no
3296 fi ;;
3297 esac
3298 fi
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3300 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3301 AM_BACKSLASH='\'
3302
3303 am__rm_f_notfound=
3304 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3305 then :
3306
3307 else case e in #(
3308 e) am__rm_f_notfound='""' ;;
3309 esac
3310 fi
3311
3312
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3314 printf %s "checking xargs -n works... " >&6; }
3315 if test ${am_cv_xargs_n_works+y}
3316 then :
3317 printf %s "(cached) " >&6
3318 else case e in #(
3319 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3320 3"
3321 then :
3322 am_cv_xargs_n_works=yes
3323 else case e in #(
3324 e) am_cv_xargs_n_works=no ;;
3325 esac
3326 fi ;;
3327 esac
3328 fi
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3330 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3331 if test "$am_cv_xargs_n_works" = yes
3332 then :
3333 am__xargs_n='xargs -n'
3334 else case e in #(
3335 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3336 ;;
3337 esac
3338 fi
3339
3340 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3341 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3342 # is not polluted with repeated "-I."
3343 am__isrc=' -I$(srcdir)'
3344 # test to see if srcdir already configured
3345 if test -f $srcdir/config.status; then
3346 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3347 fi
3348 fi
3349
3350 # test whether we have cygpath
3351 if test -z "$CYGPATH_W"; then
3352 if (cygpath --version) >/dev/null 2>/dev/null; then
3353 CYGPATH_W='cygpath -w'
3354 else
3355 CYGPATH_W=echo
3356 fi
3357 fi
3358
3359
3360 # Define the identity of the package.
3361 PACKAGE='libXScrnSaver'
3362 VERSION='1.2.5'
3363
3364
3365 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3366
3367
3368 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3369
3370 # Some tools Automake needs.
3371
3372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3373
3374
3375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3376
3377
3378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3379
3380
3381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3382
3383
3384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3385
3386 # For better backward compatibility. To be removed once Automake 1.9.x
3387 # dies out for good. For more background, see:
3388 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3389 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3390 mkdir_p='$(MKDIR_P)'
3391
3392 # We need awk for the "check" target (and possibly the TAP driver). The
3393 # system "awk" is bad on some platforms.
3394 # Always define AMTAR for backward compatibility. Yes, it's still used
3395 # in the wild :-( We should find a proper way to deprecate it ...
3396 AMTAR='$${TAR-tar}'
3397
3398
3399 # We'll loop over all known methods to create a tar archive until one works.
3400 _am_tools='gnutar plaintar pax cpio none'
3401
3402 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3403 # There is notably a 21 bits limit for the UID and the GID. In fact,
3404 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3405 # and bug#13588).
3406 am_max_uid=2097151 # 2^21 - 1
3407 am_max_gid=$am_max_uid
3408 # The $UID and $GID variables are not portable, so we need to resort
3409 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3410 # below are definitely unexpected, so allow the users to see them
3411 # (that is, avoid stderr redirection).
3412 am_uid=`id -u || echo unknown`
3413 am_gid=`id -g || echo unknown`
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3415 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3416 if test x$am_uid = xunknown; then
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3418 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3419 elif test $am_uid -le $am_max_uid; then
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 printf "%s\n" "yes" >&6; }
3422 else
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 printf "%s\n" "no" >&6; }
3425 _am_tools=none
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3428 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3429 if test x$gm_gid = xunknown; then
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3431 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3432 elif test $am_gid -le $am_max_gid; then
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 printf "%s\n" "yes" >&6; }
3435 else
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 printf "%s\n" "no" >&6; }
3438 _am_tools=none
3439 fi
3440
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3442 printf %s "checking how to create a ustar tar archive... " >&6; }
3443
3444 # Go ahead even if we have the value already cached. We do so because we
3445 # need to set the values for the 'am__tar' and 'am__untar' variables.
3446 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3447
3448 for _am_tool in $_am_tools; do
3449 case $_am_tool in
3450 gnutar)
3451 for _am_tar in tar gnutar gtar; do
3452 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3453 ($_am_tar --version) >&5 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && break
3457 done
3458 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3459 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3460 am__untar="$_am_tar -xf -"
3461 ;;
3462 plaintar)
3463 # Must skip GNU tar: if it does not support --format= it doesn't create
3464 # ustar tarball either.
3465 (tar --version) >/dev/null 2>&1 && continue
3466 am__tar='tar chf - "$$tardir"'
3467 am__tar_='tar chf - "$tardir"'
3468 am__untar='tar xf -'
3469 ;;
3470 pax)
3471 am__tar='pax -L -x ustar -w "$$tardir"'
3472 am__tar_='pax -L -x ustar -w "$tardir"'
3473 am__untar='pax -r'
3474 ;;
3475 cpio)
3476 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3477 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3478 am__untar='cpio -i -H ustar -d'
3479 ;;
3480 none)
3481 am__tar=false
3482 am__tar_=false
3483 am__untar=false
3484 ;;
3485 esac
3486
3487 # If the value was cached, stop now. We just wanted to have am__tar
3488 # and am__untar set.
3489 test -n "${am_cv_prog_tar_ustar}" && break
3490
3491 # tar/untar a dummy directory, and stop if the command works.
3492 rm -rf conftest.dir
3493 mkdir conftest.dir
3494 echo GrepMe > conftest.dir/file
3495 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3496 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }
3500 rm -rf conftest.dir
3501 if test -s conftest.tar; then
3502 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3503 ($am__untar <conftest.tar) >&5 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3508 (cat conftest.dir/file) >&5 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3513 fi
3514 done
3515 rm -rf conftest.dir
3516
3517 if test ${am_cv_prog_tar_ustar+y}
3518 then :
3519 printf %s "(cached) " >&6
3520 else case e in #(
3521 e) am_cv_prog_tar_ustar=$_am_tool ;;
3522 esac
3523 fi
3524
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3526 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3527
3528
3529
3530
3531
3532 # Variables for tags utilities; see am/tags.am
3533 if test -z "$CTAGS"; then
3534 CTAGS=ctags
3535 fi
3536
3537 if test -z "$ETAGS"; then
3538 ETAGS=etags
3539 fi
3540
3541 if test -z "$CSCOPE"; then
3542 CSCOPE=cscope
3543 fi
3544
3545
3546
3547
3548
3549
3550
3551
3552 # Initialize libtool
3553 case `pwd` in
3554 *\ * | *\ *)
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3556 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3557 esac
3558
3559
3560
3561 macro_version='2.5.4'
3562 macro_revision='2.5.4'
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577 ltmain=$ac_aux_dir/ltmain.sh
3578
3579
3580
3581 # Make sure we can run config.sub.
3582 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3583 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3584
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3586 printf %s "checking build system type... " >&6; }
3587 if test ${ac_cv_build+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) ac_build_alias=$build_alias
3592 test "x$ac_build_alias" = x &&
3593 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3594 test "x$ac_build_alias" = x &&
3595 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3596 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3597 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3598 ;;
3599 esac
3600 fi
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3602 printf "%s\n" "$ac_cv_build" >&6; }
3603 case $ac_cv_build in
3604 *-*-*) ;;
3605 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3606 esac
3607 build=$ac_cv_build
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_build
3610 shift
3611 build_cpu=$1
3612 build_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 build_os=$*
3617 IFS=$ac_save_IFS
3618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3622 printf %s "checking host system type... " >&6; }
3623 if test ${ac_cv_host+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else case e in #(
3627 e) if test "x$host_alias" = x; then
3628 ac_cv_host=$ac_cv_build
3629 else
3630 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3631 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3632 fi
3633 ;;
3634 esac
3635 fi
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3637 printf "%s\n" "$ac_cv_host" >&6; }
3638 case $ac_cv_host in
3639 *-*-*) ;;
3640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3641 esac
3642 host=$ac_cv_host
3643 ac_save_IFS=$IFS; IFS='-'
3644 set x $ac_cv_host
3645 shift
3646 host_cpu=$1
3647 host_vendor=$2
3648 shift; shift
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3651 host_os=$*
3652 IFS=$ac_save_IFS
3653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3654
3655
3656 # Backslashify metacharacters that are still active within
3657 # double-quoted strings.
3658 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3659
3660 # Same as above, but do not quote variable references.
3661 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3662
3663 # Sed substitution to delay expansion of an escaped shell variable in a
3664 # double_quote_subst'ed string.
3665 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3666
3667 # Sed substitution to delay expansion of an escaped single quote.
3668 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3669
3670 # Sed substitution to avoid accidental globbing in evaled expressions
3671 no_glob_subst='s/\*/\\\*/g'
3672
3673 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3674 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3675 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3676
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3678 printf %s "checking how to print strings... " >&6; }
3679 # Test print first, because it will be a builtin if present.
3680 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3681 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3682 ECHO='print -r --'
3683 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3684 ECHO='printf %s\n'
3685 else
3686 # Use this function as a fallback that always works.
3687 func_fallback_echo ()
3688 {
3689 eval 'cat <<_LTECHO_EOF
3690 $1
3691 _LTECHO_EOF'
3692 }
3693 ECHO='func_fallback_echo'
3694 fi
3695
3696 # func_echo_all arg...
3697 # Invoke $ECHO with all args, space-separated.
3698 func_echo_all ()
3699 {
3700 $ECHO ""
3701 }
3702
3703 case $ECHO in
3704 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3705 printf "%s\n" "printf" >&6; } ;;
3706 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3707 printf "%s\n" "print -r" >&6; } ;;
3708 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3709 printf "%s\n" "cat" >&6; } ;;
3710 esac
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734 DEPDIR="${am__leading_dot}deps"
3735
3736 ac_config_commands="$ac_config_commands depfiles"
3737
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3739 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3740 cat > confinc.mk << 'END'
3741 am__doit:
3742 @echo this is the am__doit target >confinc.out
3743 .PHONY: am__doit
3744 END
3745 am__include="#"
3746 am__quote=
3747 # BSD make does it like this.
3748 echo '.include "confinc.mk" # ignored' > confmf.BSD
3749 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3750 echo 'include confinc.mk # ignored' > confmf.GNU
3751 _am_result=no
3752 for s in GNU BSD; do
3753 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3754 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }
3758 case $?:`cat confinc.out 2>/dev/null` in #(
3759 '0:this is the am__doit target') :
3760 case $s in #(
3761 BSD) :
3762 am__include='.include' am__quote='"' ;; #(
3763 *) :
3764 am__include='include' am__quote='' ;;
3765 esac ;; #(
3766 *) :
3767 ;;
3768 esac
3769 if test "$am__include" != "#"; then
3770 _am_result="yes ($s style)"
3771 break
3772 fi
3773 done
3774 rm -f confinc.* confmf.*
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3776 printf "%s\n" "${_am_result}" >&6; }
3777
3778 # Check whether --enable-dependency-tracking was given.
3779 if test ${enable_dependency_tracking+y}
3780 then :
3781 enableval=$enable_dependency_tracking;
3782 fi
3783
3784 if test "x$enable_dependency_tracking" != xno; then
3785 am_depcomp="$ac_aux_dir/depcomp"
3786 AMDEPBACKSLASH='\'
3787 am__nodep='_no'
3788 fi
3789 if test "x$enable_dependency_tracking" != xno; then
3790 AMDEP_TRUE=
3791 AMDEP_FALSE='#'
3792 else
3793 AMDEP_TRUE='#'
3794 AMDEP_FALSE=
3795 fi
3796
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 if test -n "$ac_tool_prefix"; then
3804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 printf %s "checking for $ac_word... " >&6; }
3808 if test ${ac_cv_prog_CC+y}
3809 then :
3810 printf %s "(cached) " >&6
3811 else case e in #(
3812 e) if test -n "$CC"; then
3813 ac_cv_prog_CC="$CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818 IFS=$as_save_IFS
3819 case $as_dir in #(((
3820 '') as_dir=./ ;;
3821 */) ;;
3822 *) as_dir=$as_dir/ ;;
3823 esac
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830 done
3831 done
3832 IFS=$as_save_IFS
3833
3834 fi ;;
3835 esac
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 printf "%s\n" "$CC" >&6; }
3841 else
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
3844 fi
3845
3846
3847 fi
3848 if test -z "$ac_cv_prog_CC"; then
3849 ac_ct_CC=$CC
3850 # Extract the first word of "gcc", so it can be a program name with args.
3851 set dummy gcc; ac_word=$2
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_ac_ct_CC+y}
3855 then :
3856 printf %s "(cached) " >&6
3857 else case e in #(
3858 e) if test -n "$ac_ct_CC"; then
3859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 case $as_dir in #(((
3866 '') as_dir=./ ;;
3867 */) ;;
3868 *) as_dir=$as_dir/ ;;
3869 esac
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_ac_ct_CC="gcc"
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 fi ;;
3881 esac
3882 fi
3883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3884 if test -n "$ac_ct_CC"; then
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3886 printf "%s\n" "$ac_ct_CC" >&6; }
3887 else
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 printf "%s\n" "no" >&6; }
3890 fi
3891
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901 CC=$ac_ct_CC
3902 fi
3903 else
3904 CC="$ac_cv_prog_CC"
3905 fi
3906
3907 if test -z "$CC"; then
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}cc; ac_word=$2
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 printf %s "checking for $ac_word... " >&6; }
3913 if test ${ac_cv_prog_CC+y}
3914 then :
3915 printf %s "(cached) " >&6
3916 else case e in #(
3917 e) if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 case $as_dir in #(((
3925 '') as_dir=./ ;;
3926 */) ;;
3927 *) as_dir=$as_dir/ ;;
3928 esac
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CC="${ac_tool_prefix}cc"
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi ;;
3940 esac
3941 fi
3942 CC=$ac_cv_prog_CC
3943 if test -n "$CC"; then
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945 printf "%s\n" "$CC" >&6; }
3946 else
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 printf "%s\n" "no" >&6; }
3949 fi
3950
3951
3952 fi
3953 fi
3954 if test -z "$CC"; then
3955 # Extract the first word of "cc", so it can be a program name with args.
3956 set dummy cc; ac_word=$2
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 printf %s "checking for $ac_word... " >&6; }
3959 if test ${ac_cv_prog_CC+y}
3960 then :
3961 printf %s "(cached) " >&6
3962 else case e in #(
3963 e) if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 ac_prog_rejected=no
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 case $as_dir in #(((
3972 '') as_dir=./ ;;
3973 */) ;;
3974 *) as_dir=$as_dir/ ;;
3975 esac
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3978 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3979 ac_prog_rejected=yes
3980 continue
3981 fi
3982 ac_cv_prog_CC="cc"
3983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 if test $ac_prog_rejected = yes; then
3991 # We found a bogon in the path, so make sure we never use it.
3992 set dummy $ac_cv_prog_CC
3993 shift
3994 if test $# != 0; then
3995 # We chose a different compiler from the bogus one.
3996 # However, it has the same basename, so the bogon will be chosen
3997 # first if we set CC to just the basename; use the full file name.
3998 shift
3999 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4000 fi
4001 fi
4002 fi ;;
4003 esac
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 printf "%s\n" "$CC" >&6; }
4009 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf "%s\n" "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$CC"; then
4017 if test -n "$ac_tool_prefix"; then
4018 for ac_prog in cl.exe
4019 do
4020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_CC+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else case e in #(
4028 e) if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 case $as_dir in #(((
4036 '') as_dir=./ ;;
4037 */) ;;
4038 *) as_dir=$as_dir/ ;;
4039 esac
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi ;;
4051 esac
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 printf "%s\n" "$CC" >&6; }
4057 else
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 printf "%s\n" "no" >&6; }
4060 fi
4061
4062
4063 test -n "$CC" && break
4064 done
4065 fi
4066 if test -z "$CC"; then
4067 ac_ct_CC=$CC
4068 for ac_prog in cl.exe
4069 do
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071 set dummy $ac_prog; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_ac_ct_CC+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else case e in #(
4078 e) if test -n "$ac_ct_CC"; then
4079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 case $as_dir in #(((
4086 '') as_dir=./ ;;
4087 */) ;;
4088 *) as_dir=$as_dir/ ;;
4089 esac
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_ac_ct_CC="$ac_prog"
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi ;;
4101 esac
4102 fi
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106 printf "%s\n" "$ac_ct_CC" >&6; }
4107 else
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 printf "%s\n" "no" >&6; }
4110 fi
4111
4112
4113 test -n "$ac_ct_CC" && break
4114 done
4115
4116 if test "x$ac_ct_CC" = x; then
4117 CC=""
4118 else
4119 case $cross_compiling:$ac_tool_warned in
4120 yes:)
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123 ac_tool_warned=yes ;;
4124 esac
4125 CC=$ac_ct_CC
4126 fi
4127 fi
4128
4129 fi
4130 if test -z "$CC"; then
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}clang; ac_word=$2
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 printf %s "checking for $ac_word... " >&6; }
4136 if test ${ac_cv_prog_CC+y}
4137 then :
4138 printf %s "(cached) " >&6
4139 else case e in #(
4140 e) if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146 IFS=$as_save_IFS
4147 case $as_dir in #(((
4148 '') as_dir=./ ;;
4149 */) ;;
4150 *) as_dir=$as_dir/ ;;
4151 esac
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4154 ac_cv_prog_CC="${ac_tool_prefix}clang"
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 fi ;;
4163 esac
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 printf "%s\n" "$CC" >&6; }
4169 else
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 printf "%s\n" "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
4178 # Extract the first word of "clang", so it can be a program name with args.
4179 set dummy clang; ac_word=$2
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 printf %s "checking for $ac_word... " >&6; }
4182 if test ${ac_cv_prog_ac_ct_CC+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else case e in #(
4186 e) if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 case $as_dir in #(((
4194 '') as_dir=./ ;;
4195 */) ;;
4196 *) as_dir=$as_dir/ ;;
4197 esac
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_CC="clang"
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204 done
4205 done
4206 IFS=$as_save_IFS
4207
4208 fi ;;
4209 esac
4210 fi
4211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4212 if test -n "$ac_ct_CC"; then
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4214 printf "%s\n" "$ac_ct_CC" >&6; }
4215 else
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 printf "%s\n" "no" >&6; }
4218 fi
4219
4220 if test "x$ac_ct_CC" = x; then
4221 CC=""
4222 else
4223 case $cross_compiling:$ac_tool_warned in
4224 yes:)
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4226 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4227 ac_tool_warned=yes ;;
4228 esac
4229 CC=$ac_ct_CC
4230 fi
4231 else
4232 CC="$ac_cv_prog_CC"
4233 fi
4234
4235 fi
4236
4237
4238 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4239 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4240 as_fn_error $? "no acceptable C compiler found in \$PATH
4241 See 'config.log' for more details" "$LINENO" 5; }
4242
4243 # Provide some information about the compiler.
4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4245 set X $ac_compile
4246 ac_compiler=$2
4247 for ac_option in --version -v -V -qversion -version; do
4248 { { ac_try="$ac_compiler $ac_option >&5"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 printf "%s\n" "$ac_try_echo"; } >&5
4255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4256 ac_status=$?
4257 if test -s conftest.err; then
4258 sed '10a\
4259 ... rest of stderr output deleted ...
4260 10q' conftest.err >conftest.er1
4261 cat conftest.er1 >&5
4262 fi
4263 rm -f conftest.er1 conftest.err
4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }
4266 done
4267
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270
4271 int
4272 main (void)
4273 {
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 ac_clean_files_save=$ac_clean_files
4280 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4281 # Try to create an executable without -o first, disregard a.out.
4282 # It will help us diagnose broken compilers, and finding out an intuition
4283 # of exeext.
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4285 printf %s "checking whether the C compiler works... " >&6; }
4286 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4287
4288 # The possible output files:
4289 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4290
4291 ac_rmfiles=
4292 for ac_file in $ac_files
4293 do
4294 case $ac_file in
4295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4297 esac
4298 done
4299 rm -f $ac_rmfiles
4300
4301 if { { ac_try="$ac_link_default"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 printf "%s\n" "$ac_try_echo"; } >&5
4308 (eval "$ac_link_default") 2>&5
4309 ac_status=$?
4310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }
4312 then :
4313 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4314 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4316 # so that the user can short-circuit this test for compilers unknown to
4317 # Autoconf.
4318 for ac_file in $ac_files ''
4319 do
4320 test -f "$ac_file" || continue
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4323 ;;
4324 [ab].out )
4325 # We found the default executable, but exeext='' is most
4326 # certainly right.
4327 break;;
4328 *.* )
4329 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4330 then :; else
4331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4332 fi
4333 # We set ac_cv_exeext here because the later test for it is not
4334 # safe: cross compilers may not add the suffix if given an '-o'
4335 # argument, so we may need to know it at that point already.
4336 # Even if this section looks crufty: it has the advantage of
4337 # actually working.
4338 break;;
4339 * )
4340 break;;
4341 esac
4342 done
4343 test "$ac_cv_exeext" = no && ac_cv_exeext=
4344
4345 else case e in #(
4346 e) ac_file='' ;;
4347 esac
4348 fi
4349 if test -z "$ac_file"
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 printf "%s\n" "no" >&6; }
4353 printf "%s\n" "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4357 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4358 as_fn_error 77 "C compiler cannot create executables
4359 See 'config.log' for more details" "$LINENO" 5; }
4360 else case e in #(
4361 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 printf "%s\n" "yes" >&6; } ;;
4363 esac
4364 fi
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4366 printf %s "checking for C compiler default output file name... " >&6; }
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4368 printf "%s\n" "$ac_file" >&6; }
4369 ac_exeext=$ac_cv_exeext
4370
4371 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4372 ac_clean_files=$ac_clean_files_save
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4374 printf %s "checking for suffix of executables... " >&6; }
4375 if { { ac_try="$ac_link"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 printf "%s\n" "$ac_try_echo"; } >&5
4382 (eval "$ac_link") 2>&5
4383 ac_status=$?
4384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; }
4386 then :
4387 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4388 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4389 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4390 # 'rm'.
4391 for ac_file in conftest.exe conftest conftest.*; do
4392 test -f "$ac_file" || continue
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4396 break;;
4397 * ) break;;
4398 esac
4399 done
4400 else case e in #(
4401 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4402 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4403 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4404 See 'config.log' for more details" "$LINENO" 5; } ;;
4405 esac
4406 fi
4407 rm -f conftest conftest$ac_cv_exeext
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4409 printf "%s\n" "$ac_cv_exeext" >&6; }
4410
4411 rm -f conftest.$ac_ext
4412 EXEEXT=$ac_cv_exeext
4413 ac_exeext=$EXEEXT
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <stdio.h>
4417 int
4418 main (void)
4419 {
4420 FILE *f = fopen ("conftest.out", "w");
4421 if (!f)
4422 return 1;
4423 return ferror (f) || fclose (f) != 0;
4424
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 ac_clean_files="$ac_clean_files conftest.out"
4430 # Check that the compiler produces executables we can run. If not, either
4431 # the compiler is broken, or we cross compile.
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4433 printf %s "checking whether we are cross compiling... " >&6; }
4434 if test "$cross_compiling" != yes; then
4435 { { ac_try="$ac_link"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 printf "%s\n" "$ac_try_echo"; } >&5
4442 (eval "$ac_link") 2>&5
4443 ac_status=$?
4444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4446 if { ac_try='./conftest$ac_cv_exeext'
4447 { { case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 printf "%s\n" "$ac_try_echo"; } >&5
4453 (eval "$ac_try") 2>&5
4454 ac_status=$?
4455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }; }; then
4457 cross_compiling=no
4458 else
4459 if test "$cross_compiling" = maybe; then
4460 cross_compiling=yes
4461 else
4462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4463 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4464 as_fn_error 77 "cannot run C compiled programs.
4465 If you meant to cross compile, use '--host'.
4466 See 'config.log' for more details" "$LINENO" 5; }
4467 fi
4468 fi
4469 fi
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4471 printf "%s\n" "$cross_compiling" >&6; }
4472
4473 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4474 conftest.o conftest.obj conftest.out
4475 ac_clean_files=$ac_clean_files_save
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4477 printf %s "checking for suffix of object files... " >&6; }
4478 if test ${ac_cv_objext+y}
4479 then :
4480 printf %s "(cached) " >&6
4481 else case e in #(
4482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484
4485 int
4486 main (void)
4487 {
4488
4489 ;
4490 return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest.o conftest.obj
4494 if { { ac_try="$ac_compile"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 printf "%s\n" "$ac_try_echo"; } >&5
4501 (eval "$ac_compile") 2>&5
4502 ac_status=$?
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505 then :
4506 for ac_file in conftest.o conftest.obj conftest.*; do
4507 test -f "$ac_file" || continue;
4508 case $ac_file in
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4511 break;;
4512 esac
4513 done
4514 else case e in #(
4515 e) printf "%s\n" "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4519 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4520 as_fn_error $? "cannot compute suffix of object files: cannot compile
4521 See 'config.log' for more details" "$LINENO" 5; } ;;
4522 esac
4523 fi
4524 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4525 esac
4526 fi
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4528 printf "%s\n" "$ac_cv_objext" >&6; }
4529 OBJEXT=$ac_cv_objext
4530 ac_objext=$OBJEXT
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4532 printf %s "checking whether the compiler supports GNU C... " >&6; }
4533 if test ${ac_cv_c_compiler_gnu+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else case e in #(
4537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 int
4541 main (void)
4542 {
4543 #ifndef __GNUC__
4544 choke me
4545 #endif
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"
4552 then :
4553 ac_compiler_gnu=yes
4554 else case e in #(
4555 e) ac_compiler_gnu=no ;;
4556 esac
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4560 ;;
4561 esac
4562 fi
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4564 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567 if test $ac_compiler_gnu = yes; then
4568 GCC=yes
4569 else
4570 GCC=
4571 fi
4572 ac_test_CFLAGS=${CFLAGS+y}
4573 ac_save_CFLAGS=$CFLAGS
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4575 printf %s "checking whether $CC accepts -g... " >&6; }
4576 if test ${ac_cv_prog_cc_g+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else case e in #(
4580 e) ac_save_c_werror_flag=$ac_c_werror_flag
4581 ac_c_werror_flag=yes
4582 ac_cv_prog_cc_g=no
4583 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
4598 else case e in #(
4599 e) CFLAGS=""
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main (void)
4605 {
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"
4612 then :
4613
4614 else case e in #(
4615 e) ac_c_werror_flag=$ac_save_c_werror_flag
4616 CFLAGS="-g"
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619
4620 int
4621 main (void)
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"
4629 then :
4630 ac_cv_prog_cc_g=yes
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4633 esac
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4636 esac
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4639 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4640 esac
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4644 if test $ac_test_CFLAGS; then
4645 CFLAGS=$ac_save_CFLAGS
4646 elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4648 CFLAGS="-g -O2"
4649 else
4650 CFLAGS="-g"
4651 fi
4652 else
4653 if test "$GCC" = yes; then
4654 CFLAGS="-O2"
4655 else
4656 CFLAGS=
4657 fi
4658 fi
4659 ac_prog_cc_stdc=no
4660 if test x$ac_prog_cc_stdc = xno
4661 then :
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4663 printf %s "checking for $CC option to enable C11 features... " >&6; }
4664 if test ${ac_cv_prog_cc_c11+y}
4665 then :
4666 printf %s "(cached) " >&6
4667 else case e in #(
4668 e) ac_cv_prog_cc_c11=no
4669 ac_save_CC=$CC
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 $ac_c_conftest_c11_program
4673 _ACEOF
4674 for ac_arg in '' -std=gnu11
4675 do
4676 CC="$ac_save_CC $ac_arg"
4677 if ac_fn_c_try_compile "$LINENO"
4678 then :
4679 ac_cv_prog_cc_c11=$ac_arg
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.beam
4682 test "x$ac_cv_prog_cc_c11" != "xno" && break
4683 done
4684 rm -f conftest.$ac_ext
4685 CC=$ac_save_CC ;;
4686 esac
4687 fi
4688
4689 if test "x$ac_cv_prog_cc_c11" = xno
4690 then :
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692 printf "%s\n" "unsupported" >&6; }
4693 else case e in #(
4694 e) if test "x$ac_cv_prog_cc_c11" = x
4695 then :
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4697 printf "%s\n" "none needed" >&6; }
4698 else case e in #(
4699 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4700 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4701 CC="$CC $ac_cv_prog_cc_c11" ;;
4702 esac
4703 fi
4704 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4705 ac_prog_cc_stdc=c11 ;;
4706 esac
4707 fi
4708 fi
4709 if test x$ac_prog_cc_stdc = xno
4710 then :
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4712 printf %s "checking for $CC option to enable C99 features... " >&6; }
4713 if test ${ac_cv_prog_cc_c99+y}
4714 then :
4715 printf %s "(cached) " >&6
4716 else case e in #(
4717 e) ac_cv_prog_cc_c99=no
4718 ac_save_CC=$CC
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 $ac_c_conftest_c99_program
4722 _ACEOF
4723 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4724 do
4725 CC="$ac_save_CC $ac_arg"
4726 if ac_fn_c_try_compile "$LINENO"
4727 then :
4728 ac_cv_prog_cc_c99=$ac_arg
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.beam
4731 test "x$ac_cv_prog_cc_c99" != "xno" && break
4732 done
4733 rm -f conftest.$ac_ext
4734 CC=$ac_save_CC ;;
4735 esac
4736 fi
4737
4738 if test "x$ac_cv_prog_cc_c99" = xno
4739 then :
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 printf "%s\n" "unsupported" >&6; }
4742 else case e in #(
4743 e) if test "x$ac_cv_prog_cc_c99" = x
4744 then :
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4746 printf "%s\n" "none needed" >&6; }
4747 else case e in #(
4748 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4750 CC="$CC $ac_cv_prog_cc_c99" ;;
4751 esac
4752 fi
4753 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4754 ac_prog_cc_stdc=c99 ;;
4755 esac
4756 fi
4757 fi
4758 if test x$ac_prog_cc_stdc = xno
4759 then :
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4761 printf %s "checking for $CC option to enable C89 features... " >&6; }
4762 if test ${ac_cv_prog_cc_c89+y}
4763 then :
4764 printf %s "(cached) " >&6
4765 else case e in #(
4766 e) ac_cv_prog_cc_c89=no
4767 ac_save_CC=$CC
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 $ac_c_conftest_c89_program
4771 _ACEOF
4772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4773 do
4774 CC="$ac_save_CC $ac_arg"
4775 if ac_fn_c_try_compile "$LINENO"
4776 then :
4777 ac_cv_prog_cc_c89=$ac_arg
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.beam
4780 test "x$ac_cv_prog_cc_c89" != "xno" && break
4781 done
4782 rm -f conftest.$ac_ext
4783 CC=$ac_save_CC ;;
4784 esac
4785 fi
4786
4787 if test "x$ac_cv_prog_cc_c89" = xno
4788 then :
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 printf "%s\n" "unsupported" >&6; }
4791 else case e in #(
4792 e) if test "x$ac_cv_prog_cc_c89" = x
4793 then :
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4795 printf "%s\n" "none needed" >&6; }
4796 else case e in #(
4797 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4798 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4799 CC="$CC $ac_cv_prog_cc_c89" ;;
4800 esac
4801 fi
4802 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4803 ac_prog_cc_stdc=c89 ;;
4804 esac
4805 fi
4806 fi
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4821 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4822 if test ${am_cv_prog_cc_c_o+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else case e in #(
4826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main (void)
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 # Make sure it works both with $CC and with simple cc.
4838 # Following AC_PROG_CC_C_O, we do the test twice because some
4839 # compilers refuse to overwrite an existing .o file with -o,
4840 # though they will create one.
4841 am_cv_prog_cc_c_o=yes
4842 for am_i in 1 2; do
4843 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4844 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } \
4848 && test -f conftest2.$ac_objext; then
4849 : OK
4850 else
4851 am_cv_prog_cc_c_o=no
4852 break
4853 fi
4854 done
4855 # aligned with autoconf, so not including core; see bug#72225.
4856 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4857 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4858 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4859 unset am_i ;;
4860 esac
4861 fi
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4863 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4864 if test "$am_cv_prog_cc_c_o" != yes; then
4865 # Losing compiler, so override with the script.
4866 # FIXME: It is wrong to rewrite CC.
4867 # But if we don't then we get into trouble of one sort or another.
4868 # A longer-term fix would be to have automake use am__CC in this case,
4869 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4870 CC="$am_aux_dir/compile $CC"
4871 fi
4872 ac_ext=c
4873 ac_cpp='$CPP $CPPFLAGS'
4874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877
4878
4879 depcc="$CC" am_compiler_list=
4880
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4882 printf %s "checking dependency style of $depcc... " >&6; }
4883 if test ${am_cv_CC_dependencies_compiler_type+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else case e in #(
4887 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4888 # We make a subdir and do the tests there. Otherwise we can end up
4889 # making bogus files that we don't know about and never remove. For
4890 # instance it was reported that on HP-UX the gcc test will end up
4891 # making a dummy file named 'D' -- because '-MD' means "put the output
4892 # in D".
4893 rm -rf conftest.dir
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 am__universal=false
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914 esac
4915
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4920 #
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4924 : > sub/conftest.c
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4928 # Solaris 10 /bin/sh.
4929 echo '/* dummy */' > sub/conftst$i.h
4930 done
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle '-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs.
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4939 case $depmode in
4940 gcc)
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4943 ;;
4944 nosideeffect)
4945 # After this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested.
4947 if test "x$enable_dependency_tracking" = xyes; then
4948 continue
4949 else
4950 break
4951 fi
4952 ;;
4953 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4954 # This compiler won't grok '-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4958 am__minus_obj=
4959 ;;
4960 none) break ;;
4961 esac
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thus:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4981 break
4982 fi
4983 fi
4984 done
4985
4986 cd ..
4987 rm -rf conftest.dir
4988 else
4989 am_cv_CC_dependencies_compiler_type=none
4990 fi
4991 ;;
4992 esac
4993 fi
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4995 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4996 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4997
4998 if
4999 test "x$enable_dependency_tracking" != xno \
5000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5001 am__fastdepCC_TRUE=
5002 am__fastdepCC_FALSE='#'
5003 else
5004 am__fastdepCC_TRUE='#'
5005 am__fastdepCC_FALSE=
5006 fi
5007
5008
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5010 printf %s "checking for a sed that does not truncate output... " >&6; }
5011 if test ${ac_cv_path_SED+y}
5012 then :
5013 printf %s "(cached) " >&6
5014 else case e in #(
5015 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5016 for ac_i in 1 2 3 4 5 6 7; do
5017 ac_script="$ac_script$as_nl$ac_script"
5018 done
5019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5020 { ac_script=; unset ac_script;}
5021 if test -z "$SED"; then
5022 ac_path_SED_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 case $as_dir in #(((
5029 '') as_dir=./ ;;
5030 */) ;;
5031 *) as_dir=$as_dir/ ;;
5032 esac
5033 for ac_prog in sed gsed
5034 do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5037 as_fn_executable_p "$ac_path_SED" || continue
5038 # Check for GNU ac_path_SED and select it if it is found.
5039 # Check for GNU $ac_path_SED
5040 case `"$ac_path_SED" --version 2>&1` in #(
5041 *GNU*)
5042 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5043 #(
5044 *)
5045 ac_count=0
5046 printf %s 0123456789 >"conftest.in"
5047 while :
5048 do
5049 cat "conftest.in" "conftest.in" >"conftest.tmp"
5050 mv "conftest.tmp" "conftest.in"
5051 cp "conftest.in" "conftest.nl"
5052 printf "%s\n" '' >> "conftest.nl"
5053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5055 as_fn_arith $ac_count + 1 && ac_count=$as_val
5056 if test $ac_count -gt ${ac_path_SED_max-0}; then
5057 # Best one so far, save it but keep looking for a better one
5058 ac_cv_path_SED="$ac_path_SED"
5059 ac_path_SED_max=$ac_count
5060 fi
5061 # 10*(2^10) chars as input seems more than enough
5062 test $ac_count -gt 10 && break
5063 done
5064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 esac
5066
5067 $ac_path_SED_found && break 3
5068 done
5069 done
5070 done
5071 IFS=$as_save_IFS
5072 if test -z "$ac_cv_path_SED"; then
5073 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5074 fi
5075 else
5076 ac_cv_path_SED=$SED
5077 fi
5078 ;;
5079 esac
5080 fi
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5082 printf "%s\n" "$ac_cv_path_SED" >&6; }
5083 SED="$ac_cv_path_SED"
5084 rm -f conftest.sed
5085
5086 test -z "$SED" && SED=sed
5087 Xsed="$SED -e 1s/^X//"
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 printf %s "checking for grep that handles long lines and -e... " >&6; }
5101 if test ${ac_cv_path_GREP+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else case e in #(
5105 e) if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 case $as_dir in #(((
5113 '') as_dir=./ ;;
5114 */) ;;
5115 *) as_dir=$as_dir/ ;;
5116 esac
5117 for ac_prog in grep ggrep
5118 do
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5121 as_fn_executable_p "$ac_path_GREP" || continue
5122 # Check for GNU ac_path_GREP and select it if it is found.
5123 # Check for GNU $ac_path_GREP
5124 case `"$ac_path_GREP" --version 2>&1` in #(
5125 *GNU*)
5126 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5127 #(
5128 *)
5129 ac_count=0
5130 printf %s 0123456789 >"conftest.in"
5131 while :
5132 do
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 printf "%s\n" 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP="$ac_path_GREP"
5143 ac_path_GREP_max=$ac_count
5144 fi
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5150
5151 $ac_path_GREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5158 fi
5159 else
5160 ac_cv_path_GREP=$GREP
5161 fi
5162 ;;
5163 esac
5164 fi
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5168
5169
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 printf %s "checking for egrep... " >&6; }
5172 if test ${ac_cv_path_EGREP+y}
5173 then :
5174 printf %s "(cached) " >&6
5175 else case e in #(
5176 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177 then ac_cv_path_EGREP="$GREP -E"
5178 else
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 do
5185 IFS=$as_save_IFS
5186 case $as_dir in #(((
5187 '') as_dir=./ ;;
5188 */) ;;
5189 *) as_dir=$as_dir/ ;;
5190 esac
5191 for ac_prog in egrep
5192 do
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5195 as_fn_executable_p "$ac_path_EGREP" || continue
5196 # Check for GNU ac_path_EGREP and select it if it is found.
5197 # Check for GNU $ac_path_EGREP
5198 case `"$ac_path_EGREP" --version 2>&1` in #(
5199 *GNU*)
5200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5201 #(
5202 *)
5203 ac_count=0
5204 printf %s 0123456789 >"conftest.in"
5205 while :
5206 do
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 printf "%s\n" 'EGREP' >> "conftest.nl"
5211 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_EGREP="$ac_path_EGREP"
5217 ac_path_EGREP_max=$ac_count
5218 fi
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5221 done
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 esac
5224
5225 $ac_path_EGREP_found && break 3
5226 done
5227 done
5228 done
5229 IFS=$as_save_IFS
5230 if test -z "$ac_cv_path_EGREP"; then
5231 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 fi
5233 else
5234 ac_cv_path_EGREP=$EGREP
5235 fi
5236
5237 fi ;;
5238 esac
5239 fi
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5243
5244 EGREP_TRADITIONAL=$EGREP
5245 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5246
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5248 printf %s "checking for fgrep... " >&6; }
5249 if test ${ac_cv_path_FGREP+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else case e in #(
5253 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5254 then ac_cv_path_FGREP="$GREP -F"
5255 else
5256 if test -z "$FGREP"; then
5257 ac_path_FGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262 IFS=$as_save_IFS
5263 case $as_dir in #(((
5264 '') as_dir=./ ;;
5265 */) ;;
5266 *) as_dir=$as_dir/ ;;
5267 esac
5268 for ac_prog in fgrep
5269 do
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5272 as_fn_executable_p "$ac_path_FGREP" || continue
5273 # Check for GNU ac_path_FGREP and select it if it is found.
5274 # Check for GNU $ac_path_FGREP
5275 case `"$ac_path_FGREP" --version 2>&1` in #(
5276 *GNU*)
5277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278 #(
5279 *)
5280 ac_count=0
5281 printf %s 0123456789 >"conftest.in"
5282 while :
5283 do
5284 cat "conftest.in" "conftest.in" >"conftest.tmp"
5285 mv "conftest.tmp" "conftest.in"
5286 cp "conftest.in" "conftest.nl"
5287 printf "%s\n" 'FGREP' >> "conftest.nl"
5288 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5290 as_fn_arith $ac_count + 1 && ac_count=$as_val
5291 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5292 # Best one so far, save it but keep looking for a better one
5293 ac_cv_path_FGREP="$ac_path_FGREP"
5294 ac_path_FGREP_max=$ac_count
5295 fi
5296 # 10*(2^10) chars as input seems more than enough
5297 test $ac_count -gt 10 && break
5298 done
5299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5300 esac
5301
5302 $ac_path_FGREP_found && break 3
5303 done
5304 done
5305 done
5306 IFS=$as_save_IFS
5307 if test -z "$ac_cv_path_FGREP"; then
5308 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5309 fi
5310 else
5311 ac_cv_path_FGREP=$FGREP
5312 fi
5313
5314 fi ;;
5315 esac
5316 fi
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5318 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5319 FGREP="$ac_cv_path_FGREP"
5320
5321
5322 test -z "$GREP" && GREP=grep
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 # Check whether --with-gnu-ld was given.
5343 if test ${with_gnu_ld+y}
5344 then :
5345 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5346 else case e in #(
5347 e) with_gnu_ld=no ;;
5348 esac
5349 fi
5350
5351 ac_prog=ld
5352 if test yes = "$GCC"; then
5353 # Check if gcc -print-prog-name=ld gives a path.
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5355 printf %s "checking for ld used by $CC... " >&6; }
5356 case $host in
5357 *-*-mingw* | *-*-windows*)
5358 # gcc leaves a trailing carriage return, which upsets mingw
5359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5360 *)
5361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5362 esac
5363 case $ac_prog in
5364 # Accept absolute paths.
5365 [\\/]* | ?:[\\/]*)
5366 re_direlt='/[^/][^/]*/\.\./'
5367 # Canonicalize the pathname of ld
5368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5371 done
5372 test -z "$LD" && LD=$ac_prog
5373 ;;
5374 "")
5375 # If it fails, then pretend we aren't using GCC.
5376 ac_prog=ld
5377 ;;
5378 *)
5379 # If it is relative, then search for the first ld in PATH.
5380 with_gnu_ld=unknown
5381 ;;
5382 esac
5383 elif test yes = "$with_gnu_ld"; then
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5385 printf %s "checking for GNU ld... " >&6; }
5386 else
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5388 printf %s "checking for non-GNU ld... " >&6; }
5389 fi
5390 if test ${lt_cv_path_LD+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else case e in #(
5394 e) if test -z "$LD"; then
5395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5396 for ac_dir in $PATH; do
5397 IFS=$lt_save_ifs
5398 test -z "$ac_dir" && ac_dir=.
5399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5400 lt_cv_path_LD=$ac_dir/$ac_prog
5401 # Check to see if the program is GNU ld. I'd rather use --version,
5402 # but apparently some variants of GNU ld only accept -v.
5403 # Break only if it was the GNU/non-GNU ld that we prefer.
5404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5405 *GNU* | *'with BFD'*)
5406 test no != "$with_gnu_ld" && break
5407 ;;
5408 *)
5409 test yes != "$with_gnu_ld" && break
5410 ;;
5411 esac
5412 fi
5413 done
5414 IFS=$lt_save_ifs
5415 else
5416 lt_cv_path_LD=$LD # Let the user override the test with a path.
5417 fi ;;
5418 esac
5419 fi
5420
5421 LD=$lt_cv_path_LD
5422 if test -n "$LD"; then
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5424 printf "%s\n" "$LD" >&6; }
5425 else
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 printf "%s\n" "no" >&6; }
5428 fi
5429 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5431 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5432 if test ${lt_cv_prog_gnu_ld+y}
5433 then :
5434 printf %s "(cached) " >&6
5435 else case e in #(
5436 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5437 case `$LD -v 2>&1 </dev/null` in
5438 *GNU* | *'with BFD'*)
5439 lt_cv_prog_gnu_ld=yes
5440 ;;
5441 *)
5442 lt_cv_prog_gnu_ld=no
5443 ;;
5444 esac ;;
5445 esac
5446 fi
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5448 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5449 with_gnu_ld=$lt_cv_prog_gnu_ld
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5460 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5461 if test ${lt_cv_path_NM+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) if test -n "$NM"; then
5466 # Let the user override the test.
5467 lt_cv_path_NM=$NM
5468 else
5469 lt_nm_to_check=${ac_tool_prefix}nm
5470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471 lt_nm_to_check="$lt_nm_to_check nm"
5472 fi
5473 for lt_tmp_nm in $lt_nm_to_check; do
5474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476 IFS=$lt_save_ifs
5477 test -z "$ac_dir" && ac_dir=.
5478 tmp_nm=$ac_dir/$lt_tmp_nm
5479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5480 # Check to see if the nm accepts a BSD-compat flag.
5481 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5482 # nm: unknown option "B" ignored
5483 # Tru64's nm complains that /dev/null is an invalid object file
5484 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5485 case $build_os in
5486 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5487 *) lt_bad_file=/dev/null ;;
5488 esac
5489 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5490 *$lt_bad_file* | *'Invalid file or object type'*)
5491 lt_cv_path_NM="$tmp_nm -B"
5492 break 2
5493 ;;
5494 *)
5495 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5496 */dev/null*)
5497 lt_cv_path_NM="$tmp_nm -p"
5498 break 2
5499 ;;
5500 *)
5501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5502 continue # so that we can try to find one that supports BSD flags
5503 ;;
5504 esac
5505 ;;
5506 esac
5507 fi
5508 done
5509 IFS=$lt_save_ifs
5510 done
5511 : ${lt_cv_path_NM=no}
5512 fi ;;
5513 esac
5514 fi
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5516 printf "%s\n" "$lt_cv_path_NM" >&6; }
5517 if test no != "$lt_cv_path_NM"; then
5518 NM=$lt_cv_path_NM
5519 else
5520 # Didn't find any BSD compatible name lister, look for dumpbin.
5521 if test -n "$DUMPBIN"; then :
5522 # Let the user override the test.
5523 else
5524 if test -n "$ac_tool_prefix"; then
5525 for ac_prog in dumpbin "link -dump"
5526 do
5527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 printf %s "checking for $ac_word... " >&6; }
5531 if test ${ac_cv_prog_DUMPBIN+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else case e in #(
5535 e) if test -n "$DUMPBIN"; then
5536 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 case $as_dir in #(((
5543 '') as_dir=./ ;;
5544 */) ;;
5545 *) as_dir=$as_dir/ ;;
5546 esac
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi ;;
5558 esac
5559 fi
5560 DUMPBIN=$ac_cv_prog_DUMPBIN
5561 if test -n "$DUMPBIN"; then
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5563 printf "%s\n" "$DUMPBIN" >&6; }
5564 else
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 printf "%s\n" "no" >&6; }
5567 fi
5568
5569
5570 test -n "$DUMPBIN" && break
5571 done
5572 fi
5573 if test -z "$DUMPBIN"; then
5574 ac_ct_DUMPBIN=$DUMPBIN
5575 for ac_prog in dumpbin "link -dump"
5576 do
5577 # Extract the first word of "$ac_prog", so it can be a program name with args.
5578 set dummy $ac_prog; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else case e in #(
5585 e) if test -n "$ac_ct_DUMPBIN"; then
5586 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi ;;
5608 esac
5609 fi
5610 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5613 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5614 else
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 printf "%s\n" "no" >&6; }
5617 fi
5618
5619
5620 test -n "$ac_ct_DUMPBIN" && break
5621 done
5622
5623 if test "x$ac_ct_DUMPBIN" = x; then
5624 DUMPBIN=":"
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 DUMPBIN=$ac_ct_DUMPBIN
5633 fi
5634 fi
5635
5636 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5637 *COFF*)
5638 DUMPBIN="$DUMPBIN -symbols -headers"
5639 ;;
5640 *)
5641 DUMPBIN=:
5642 ;;
5643 esac
5644 fi
5645
5646 if test : != "$DUMPBIN"; then
5647 NM=$DUMPBIN
5648 fi
5649 fi
5650 test -z "$NM" && NM=nm
5651
5652
5653
5654
5655
5656
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5658 printf %s "checking the name lister ($NM) interface... " >&6; }
5659 if test ${lt_cv_nm_interface+y}
5660 then :
5661 printf %s "(cached) " >&6
5662 else case e in #(
5663 e) lt_cv_nm_interface="BSD nm"
5664 echo "int some_variable = 0;" > conftest.$ac_ext
5665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5666 (eval "$ac_compile" 2>conftest.err)
5667 cat conftest.err >&5
5668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5670 cat conftest.err >&5
5671 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5672 cat conftest.out >&5
5673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5674 lt_cv_nm_interface="MS dumpbin"
5675 fi
5676 rm -f conftest* ;;
5677 esac
5678 fi
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5680 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5681
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5683 printf %s "checking whether ln -s works... " >&6; }
5684 LN_S=$as_ln_s
5685 if test "$LN_S" = "ln -s"; then
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 printf "%s\n" "yes" >&6; }
5688 else
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5690 printf "%s\n" "no, using $LN_S" >&6; }
5691 fi
5692
5693 # find the maximum length of command line arguments
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5695 printf %s "checking the maximum length of command line arguments... " >&6; }
5696 if test ${lt_cv_sys_max_cmd_len+y}
5697 then :
5698 printf %s "(cached) " >&6
5699 else case e in #(
5700 e) i=0
5701 teststring=ABCD
5702
5703 case $build_os in
5704 msdosdjgpp*)
5705 # On DJGPP, this test can blow up pretty badly due to problems in libc
5706 # (any single argument exceeding 2000 bytes causes a buffer overrun
5707 # during glob expansion). Even if it were fixed, the result of this
5708 # check would be larger than it should be.
5709 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5710 ;;
5711
5712 gnu* | ironclad*)
5713 # Under GNU Hurd and Ironclad, this test is not required because there
5714 # is no limit to the length of command line arguments.
5715 # Libtool will interpret -1 as no limit whatsoever
5716 lt_cv_sys_max_cmd_len=-1;
5717 ;;
5718
5719 cygwin* | mingw* | windows* | cegcc*)
5720 # On Win9x/ME, this test blows up -- it succeeds, but takes
5721 # about 5 minutes as the teststring grows exponentially.
5722 # Worse, since 9x/ME are not pre-emptively multitasking,
5723 # you end up with a "frozen" computer, even though with patience
5724 # the test eventually succeeds (with a max line length of 256k).
5725 # Instead, let's just punt: use the minimum linelength reported by
5726 # all of the supported platforms: 8192 (on NT/2K/XP).
5727 lt_cv_sys_max_cmd_len=8192;
5728 ;;
5729
5730 mint*)
5731 # On MiNT this can take a long time and run out of memory.
5732 lt_cv_sys_max_cmd_len=8192;
5733 ;;
5734
5735 amigaos*)
5736 # On AmigaOS with pdksh, this test takes hours, literally.
5737 # So we just punt and use a minimum line length of 8192.
5738 lt_cv_sys_max_cmd_len=8192;
5739 ;;
5740
5741 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5742 # This has been around since 386BSD, at least. Likely further.
5743 if test -x /sbin/sysctl; then
5744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5745 elif test -x /usr/sbin/sysctl; then
5746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5747 else
5748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5749 fi
5750 # And add a safety zone
5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5753 ;;
5754
5755 interix*)
5756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5757 lt_cv_sys_max_cmd_len=196608
5758 ;;
5759
5760 os2*)
5761 # The test takes a long time on OS/2.
5762 lt_cv_sys_max_cmd_len=8192
5763 ;;
5764
5765 osf*)
5766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5768 # nice to cause kernel panics so lets avoid the loop below.
5769 # First set a reasonable default.
5770 lt_cv_sys_max_cmd_len=16384
5771 #
5772 if test -x /sbin/sysconfig; then
5773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5774 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5775 esac
5776 fi
5777 ;;
5778 sco3.2v5*)
5779 lt_cv_sys_max_cmd_len=102400
5780 ;;
5781 sysv5* | sco5v6* | sysv4.2uw2*)
5782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5783 if test -n "$kargmax"; then
5784 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5785 else
5786 lt_cv_sys_max_cmd_len=32768
5787 fi
5788 ;;
5789 *)
5790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5791 if test -n "$lt_cv_sys_max_cmd_len" && \
5792 test undefined != "$lt_cv_sys_max_cmd_len"; then
5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5795 else
5796 # Make teststring a little bigger before we do anything with it.
5797 # a 1K string should be a reasonable start.
5798 for i in 1 2 3 4 5 6 7 8; do
5799 teststring=$teststring$teststring
5800 done
5801 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5802 # If test is not a shell built-in, we'll probably end up computing a
5803 # maximum length that is only half of the actual maximum length, but
5804 # we can't tell.
5805 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5806 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5807 test 17 != "$i" # 1/2 MB should be enough
5808 do
5809 i=`expr $i + 1`
5810 teststring=$teststring$teststring
5811 done
5812 # Only check the string length outside the loop.
5813 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5814 teststring=
5815 # Add a significant safety factor because C++ compilers can tack on
5816 # massive amounts of additional arguments before passing them to the
5817 # linker. It appears as though 1/2 is a usable value.
5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5819 fi
5820 ;;
5821 esac
5822 ;;
5823 esac
5824 fi
5825
5826 if test -n "$lt_cv_sys_max_cmd_len"; then
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5828 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5829 else
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5831 printf "%s\n" "none" >&6; }
5832 fi
5833 max_cmd_len=$lt_cv_sys_max_cmd_len
5834
5835
5836
5837
5838
5839
5840 : ${CP="cp -f"}
5841 : ${MV="mv -f"}
5842 : ${RM="rm -f"}
5843
5844 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5845 lt_unset=unset
5846 else
5847 lt_unset=false
5848 fi
5849
5850
5851
5852
5853
5854 # test EBCDIC or ASCII
5855 case `echo X|tr X '\101'` in
5856 A) # ASCII based system
5857 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5858 lt_SP2NL='tr \040 \012'
5859 lt_NL2SP='tr \015\012 \040\040'
5860 ;;
5861 *) # EBCDIC based system
5862 lt_SP2NL='tr \100 \n'
5863 lt_NL2SP='tr \r\n \100\100'
5864 ;;
5865 esac
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5876 printf %s "checking how to convert $build file names to $host format... " >&6; }
5877 if test ${lt_cv_to_host_file_cmd+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) case $host in
5882 *-*-mingw* )
5883 case $build in
5884 *-*-mingw* | *-*-windows* ) # actually msys
5885 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5886 ;;
5887 *-*-cygwin* )
5888 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5889 ;;
5890 * ) # otherwise, assume *nix
5891 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5892 ;;
5893 esac
5894 ;;
5895 *-*-cygwin* )
5896 case $build in
5897 *-*-mingw* | *-*-windows* ) # actually msys
5898 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5899 ;;
5900 *-*-cygwin* )
5901 lt_cv_to_host_file_cmd=func_convert_file_noop
5902 ;;
5903 * ) # otherwise, assume *nix
5904 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5905 ;;
5906 esac
5907 ;;
5908 * ) # unhandled hosts (and "normal" native builds)
5909 lt_cv_to_host_file_cmd=func_convert_file_noop
5910 ;;
5911 esac
5912 ;;
5913 esac
5914 fi
5915
5916 to_host_file_cmd=$lt_cv_to_host_file_cmd
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5918 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5919
5920
5921
5922
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5925 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5926 if test ${lt_cv_to_tool_file_cmd+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else case e in #(
5930 e) #assume ordinary cross tools, or native build.
5931 lt_cv_to_tool_file_cmd=func_convert_file_noop
5932 case $host in
5933 *-*-mingw* | *-*-windows* )
5934 case $build in
5935 *-*-mingw* | *-*-windows* ) # actually msys
5936 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5937 ;;
5938 esac
5939 ;;
5940 esac
5941 ;;
5942 esac
5943 fi
5944
5945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5947 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5948
5949
5950
5951
5952
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5954 printf %s "checking for $LD option to reload object files... " >&6; }
5955 if test ${lt_cv_ld_reload_flag+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else case e in #(
5959 e) lt_cv_ld_reload_flag='-r' ;;
5960 esac
5961 fi
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5964 reload_flag=$lt_cv_ld_reload_flag
5965 case $reload_flag in
5966 "" | " "*) ;;
5967 *) reload_flag=" $reload_flag" ;;
5968 esac
5969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970 case $host_os in
5971 cygwin* | mingw* | windows* | pw32* | cegcc*)
5972 if test yes != "$GCC"; then
5973 reload_cmds=false
5974 fi
5975 ;;
5976 darwin*)
5977 if test yes = "$GCC"; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5979 else
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 fi
5982 ;;
5983 esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 # Extract the first word of "file", so it can be a program name with args.
5994 set dummy file; ac_word=$2
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 printf %s "checking for $ac_word... " >&6; }
5997 if test ${ac_cv_prog_FILECMD+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else case e in #(
6001 e) if test -n "$FILECMD"; then
6002 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 case $as_dir in #(((
6009 '') as_dir=./ ;;
6010 */) ;;
6011 *) as_dir=$as_dir/ ;;
6012 esac
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_FILECMD="file"
6016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6024 fi ;;
6025 esac
6026 fi
6027 FILECMD=$ac_cv_prog_FILECMD
6028 if test -n "$FILECMD"; then
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6030 printf "%s\n" "$FILECMD" >&6; }
6031 else
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 printf "%s\n" "no" >&6; }
6034 fi
6035
6036
6037
6038
6039
6040
6041
6042
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 printf %s "checking for $ac_word... " >&6; }
6048 if test ${ac_cv_prog_OBJDUMP+y}
6049 then :
6050 printf %s "(cached) " >&6
6051 else case e in #(
6052 e) if test -n "$OBJDUMP"; then
6053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 case $as_dir in #(((
6060 '') as_dir=./ ;;
6061 */) ;;
6062 *) as_dir=$as_dir/ ;;
6063 esac
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi ;;
6075 esac
6076 fi
6077 OBJDUMP=$ac_cv_prog_OBJDUMP
6078 if test -n "$OBJDUMP"; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6080 printf "%s\n" "$OBJDUMP" >&6; }
6081 else
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 printf "%s\n" "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_OBJDUMP"; then
6089 ac_ct_OBJDUMP=$OBJDUMP
6090 # Extract the first word of "objdump", so it can be a program name with args.
6091 set dummy objdump; ac_word=$2
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 printf %s "checking for $ac_word... " >&6; }
6094 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6095 then :
6096 printf %s "(cached) " >&6
6097 else case e in #(
6098 e) if test -n "$ac_ct_OBJDUMP"; then
6099 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 case $as_dir in #(((
6106 '') as_dir=./ ;;
6107 */) ;;
6108 *) as_dir=$as_dir/ ;;
6109 esac
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120 fi ;;
6121 esac
6122 fi
6123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6126 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6127 else
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6130 fi
6131
6132 if test "x$ac_ct_OBJDUMP" = x; then
6133 OBJDUMP="false"
6134 else
6135 case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141 OBJDUMP=$ac_ct_OBJDUMP
6142 fi
6143 else
6144 OBJDUMP="$ac_cv_prog_OBJDUMP"
6145 fi
6146
6147 test -z "$OBJDUMP" && OBJDUMP=objdump
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6158 printf %s "checking how to recognize dependent libraries... " >&6; }
6159 if test ${lt_cv_deplibs_check_method+y}
6160 then :
6161 printf %s "(cached) " >&6
6162 else case e in #(
6163 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6164 lt_cv_file_magic_test_file=
6165 lt_cv_deplibs_check_method='unknown'
6166 # Need to set the preceding variable on all platforms that support
6167 # interlibrary dependencies.
6168 # 'none' -- dependencies not supported.
6169 # 'unknown' -- same as none, but documents that we really don't know.
6170 # 'pass_all' -- all dependencies passed with no checks.
6171 # 'file_magic [[regex]]' -- check by looking for files in library path
6172 # that responds to the $file_magic_cmd with a given extended regex.
6173 # If you have 'file' or equivalent on your system and you're not sure
6174 # whether 'pass_all' will *always* work, you probably want this one.
6175
6176 case $host_os in
6177 aix[4-9]*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 beos*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184
6185 bsdi[45]*)
6186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6187 lt_cv_file_magic_cmd='$FILECMD -L'
6188 lt_cv_file_magic_test_file=/shlib/libc.so
6189 ;;
6190
6191 cygwin*)
6192 # func_win32_libid is a shell function defined in ltmain.sh
6193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6194 lt_cv_file_magic_cmd='func_win32_libid'
6195 ;;
6196
6197 mingw* | windows* | pw32*)
6198 # Base MSYS/MinGW do not provide the 'file' command needed by
6199 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6200 # unless we find 'file', for example because we are cross-compiling.
6201 if ( file / ) >/dev/null 2>&1; then
6202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6203 lt_cv_file_magic_cmd='func_win32_libid'
6204 else
6205 # Keep this pattern in sync with the one in func_win32_libid.
6206 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6207 lt_cv_file_magic_cmd='$OBJDUMP -f'
6208 fi
6209 ;;
6210
6211 cegcc*)
6212 # use the weaker test based on 'objdump'. See mingw*.
6213 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6214 lt_cv_file_magic_cmd='$OBJDUMP -f'
6215 ;;
6216
6217 darwin* | rhapsody*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 freebsd* | dragonfly* | midnightbsd*)
6222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6223 case $host_cpu in
6224 i*86 )
6225 # Not sure whether the presence of OpenBSD here was a mistake.
6226 # Let's accept both of them until this is cleared up.
6227 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6228 lt_cv_file_magic_cmd=$FILECMD
6229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6230 ;;
6231 esac
6232 else
6233 lt_cv_deplibs_check_method=pass_all
6234 fi
6235 ;;
6236
6237 haiku*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241 hpux10.20* | hpux11*)
6242 lt_cv_file_magic_cmd=$FILECMD
6243 case $host_cpu in
6244 ia64*)
6245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6246 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6247 ;;
6248 hppa*64*)
6249 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]'
6250 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6251 ;;
6252 *)
6253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6254 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6255 ;;
6256 esac
6257 ;;
6258
6259 interix[3-9]*)
6260 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6262 ;;
6263
6264 irix5* | irix6* | nonstopux*)
6265 case $LD in
6266 *-32|*"-32 ") libmagic=32-bit;;
6267 *-n32|*"-n32 ") libmagic=N32;;
6268 *-64|*"-64 ") libmagic=64-bit;;
6269 *) libmagic=never-match;;
6270 esac
6271 lt_cv_deplibs_check_method=pass_all
6272 ;;
6273
6274 # This must be glibc/ELF.
6275 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278
6279 *-mlibc)
6280 lt_cv_deplibs_check_method=pass_all
6281 ;;
6282
6283 netbsd* | netbsdelf*-gnu)
6284 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6286 else
6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6288 fi
6289 ;;
6290
6291 newos6*)
6292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6293 lt_cv_file_magic_cmd=$FILECMD
6294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6295 ;;
6296
6297 *nto* | *qnx*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 openbsd*)
6302 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6304 else
6305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6306 fi
6307 ;;
6308
6309 osf3* | osf4* | osf5*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313 rdos*)
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317 serenity*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320
6321 solaris*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 sysv4 | sysv4.3*)
6330 case $host_vendor in
6331 motorola)
6332 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]'
6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6334 ;;
6335 ncr)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338 sequent)
6339 lt_cv_file_magic_cmd='/bin/file'
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6341 ;;
6342 sni)
6343 lt_cv_file_magic_cmd='/bin/file'
6344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6345 lt_cv_file_magic_test_file=/lib/libc.so
6346 ;;
6347 siemens)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350 pc)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353 esac
6354 ;;
6355
6356 tpf*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359 os2*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362 esac
6363 ;;
6364 esac
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6367 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6368
6369 file_magic_glob=
6370 want_nocaseglob=no
6371 if test "$build" = "$host"; then
6372 case $host_os in
6373 mingw* | windows* | pw32*)
6374 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6375 want_nocaseglob=yes
6376 else
6377 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6378 fi
6379 ;;
6380 esac
6381 fi
6382
6383 file_magic_cmd=$lt_cv_file_magic_cmd
6384 deplibs_check_method=$lt_cv_deplibs_check_method
6385 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_DLLTOOL+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else case e in #(
6417 e) if test -n "$DLLTOOL"; then
6418 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi ;;
6440 esac
6441 fi
6442 DLLTOOL=$ac_cv_prog_DLLTOOL
6443 if test -n "$DLLTOOL"; then
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6445 printf "%s\n" "$DLLTOOL" >&6; }
6446 else
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 printf "%s\n" "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_DLLTOOL"; then
6454 ac_ct_DLLTOOL=$DLLTOOL
6455 # Extract the first word of "dlltool", so it can be a program name with args.
6456 set dummy dlltool; ac_word=$2
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 printf %s "checking for $ac_word... " >&6; }
6459 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else case e in #(
6463 e) if test -n "$ac_ct_DLLTOOL"; then
6464 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 case $as_dir in #(((
6471 '') as_dir=./ ;;
6472 */) ;;
6473 *) as_dir=$as_dir/ ;;
6474 esac
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi ;;
6486 esac
6487 fi
6488 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6489 if test -n "$ac_ct_DLLTOOL"; then
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6491 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6492 else
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 printf "%s\n" "no" >&6; }
6495 fi
6496
6497 if test "x$ac_ct_DLLTOOL" = x; then
6498 DLLTOOL="false"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 DLLTOOL=$ac_ct_DLLTOOL
6507 fi
6508 else
6509 DLLTOOL="$ac_cv_prog_DLLTOOL"
6510 fi
6511
6512 test -z "$DLLTOOL" && DLLTOOL=dlltool
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6524 printf %s "checking how to associate runtime and link libraries... " >&6; }
6525 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6526 then :
6527 printf %s "(cached) " >&6
6528 else case e in #(
6529 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6530
6531 case $host_os in
6532 cygwin* | mingw* | windows* | pw32* | cegcc*)
6533 # two different shell functions defined in ltmain.sh;
6534 # decide which one to use based on capabilities of $DLLTOOL
6535 case `$DLLTOOL --help 2>&1` in
6536 *--identify-strict*)
6537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6538 ;;
6539 *)
6540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6541 ;;
6542 esac
6543 ;;
6544 *)
6545 # fallback: assume linklib IS sharedlib
6546 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6547 ;;
6548 esac
6549 ;;
6550 esac
6551 fi
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6553 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6554 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6555 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6556
6557
6558
6559
6560
6561
6562
6563
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 printf %s "checking for $ac_word... " >&6; }
6569 if test ${ac_cv_prog_RANLIB+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else case e in #(
6573 e) if test -n "$RANLIB"; then
6574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 case $as_dir in #(((
6581 '') as_dir=./ ;;
6582 */) ;;
6583 *) as_dir=$as_dir/ ;;
6584 esac
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi ;;
6596 esac
6597 fi
6598 RANLIB=$ac_cv_prog_RANLIB
6599 if test -n "$RANLIB"; then
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6601 printf "%s\n" "$RANLIB" >&6; }
6602 else
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 printf "%s\n" "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_RANLIB"; then
6610 ac_ct_RANLIB=$RANLIB
6611 # Extract the first word of "ranlib", so it can be a program name with args.
6612 set dummy ranlib; ac_word=$2
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 printf %s "checking for $ac_word... " >&6; }
6615 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else case e in #(
6619 e) if test -n "$ac_ct_RANLIB"; then
6620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 case $as_dir in #(((
6627 '') as_dir=./ ;;
6628 */) ;;
6629 *) as_dir=$as_dir/ ;;
6630 esac
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_RANLIB="ranlib"
6634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi ;;
6642 esac
6643 fi
6644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6645 if test -n "$ac_ct_RANLIB"; then
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6647 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6648 else
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 printf "%s\n" "no" >&6; }
6651 fi
6652
6653 if test "x$ac_ct_RANLIB" = x; then
6654 RANLIB=":"
6655 else
6656 case $cross_compiling:$ac_tool_warned in
6657 yes:)
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6661 esac
6662 RANLIB=$ac_ct_RANLIB
6663 fi
6664 else
6665 RANLIB="$ac_cv_prog_RANLIB"
6666 fi
6667
6668 if test -n "$ac_tool_prefix"; then
6669 for ac_prog in ar
6670 do
6671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 printf %s "checking for $ac_word... " >&6; }
6675 if test ${ac_cv_prog_AR+y}
6676 then :
6677 printf %s "(cached) " >&6
6678 else case e in #(
6679 e) if test -n "$AR"; then
6680 ac_cv_prog_AR="$AR" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 case $as_dir in #(((
6687 '') as_dir=./ ;;
6688 */) ;;
6689 *) as_dir=$as_dir/ ;;
6690 esac
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi ;;
6702 esac
6703 fi
6704 AR=$ac_cv_prog_AR
6705 if test -n "$AR"; then
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6707 printf "%s\n" "$AR" >&6; }
6708 else
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 printf "%s\n" "no" >&6; }
6711 fi
6712
6713
6714 test -n "$AR" && break
6715 done
6716 fi
6717 if test -z "$AR"; then
6718 ac_ct_AR=$AR
6719 for ac_prog in ar
6720 do
6721 # Extract the first word of "$ac_prog", so it can be a program name with args.
6722 set dummy $ac_prog; ac_word=$2
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 printf %s "checking for $ac_word... " >&6; }
6725 if test ${ac_cv_prog_ac_ct_AR+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) if test -n "$ac_ct_AR"; then
6730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 case $as_dir in #(((
6737 '') as_dir=./ ;;
6738 */) ;;
6739 *) as_dir=$as_dir/ ;;
6740 esac
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_ac_ct_AR="$ac_prog"
6744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi ;;
6752 esac
6753 fi
6754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6755 if test -n "$ac_ct_AR"; then
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6757 printf "%s\n" "$ac_ct_AR" >&6; }
6758 else
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 printf "%s\n" "no" >&6; }
6761 fi
6762
6763
6764 test -n "$ac_ct_AR" && break
6765 done
6766
6767 if test "x$ac_ct_AR" = x; then
6768 AR="false"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 AR=$ac_ct_AR
6777 fi
6778 fi
6779
6780 : ${AR=ar}
6781
6782
6783
6784
6785
6786
6787 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6788 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6789 # higher priority because that's what people were doing historically (setting
6790 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6791 # variable obsoleted/removed.
6792
6793 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6794 lt_ar_flags=$AR_FLAGS
6795
6796
6797
6798
6799
6800
6801 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6802 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6803
6804
6805
6806
6807
6808
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6810 printf %s "checking for archiver @FILE support... " >&6; }
6811 if test ${lt_cv_ar_at_file+y}
6812 then :
6813 printf %s "(cached) " >&6
6814 else case e in #(
6815 e) lt_cv_ar_at_file=no
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818
6819 int
6820 main (void)
6821 {
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"
6828 then :
6829 echo conftest.$ac_objext > conftest.lst
6830 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6832 (eval $lt_ar_try) 2>&5
6833 ac_status=$?
6834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }
6836 if test 0 -eq "$ac_status"; then
6837 # Ensure the archiver fails upon bogus file names.
6838 rm -f conftest.$ac_objext libconftest.a
6839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6840 (eval $lt_ar_try) 2>&5
6841 ac_status=$?
6842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }
6844 if test 0 -ne "$ac_status"; then
6845 lt_cv_ar_at_file=@
6846 fi
6847 fi
6848 rm -f conftest.* libconftest.a
6849
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6852 ;;
6853 esac
6854 fi
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6856 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6857
6858 if test no = "$lt_cv_ar_at_file"; then
6859 archiver_list_spec=
6860 else
6861 archiver_list_spec=$lt_cv_ar_at_file
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}strip; ac_word=$2
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 printf %s "checking for $ac_word... " >&6; }
6875 if test ${ac_cv_prog_STRIP+y}
6876 then :
6877 printf %s "(cached) " >&6
6878 else case e in #(
6879 e) if test -n "$STRIP"; then
6880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 case $as_dir in #(((
6887 '') as_dir=./ ;;
6888 */) ;;
6889 *) as_dir=$as_dir/ ;;
6890 esac
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi ;;
6902 esac
6903 fi
6904 STRIP=$ac_cv_prog_STRIP
6905 if test -n "$STRIP"; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6907 printf "%s\n" "$STRIP" >&6; }
6908 else
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf "%s\n" "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_STRIP"; then
6916 ac_ct_STRIP=$STRIP
6917 # Extract the first word of "strip", so it can be a program name with args.
6918 set dummy strip; ac_word=$2
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 printf %s "checking for $ac_word... " >&6; }
6921 if test ${ac_cv_prog_ac_ct_STRIP+y}
6922 then :
6923 printf %s "(cached) " >&6
6924 else case e in #(
6925 e) if test -n "$ac_ct_STRIP"; then
6926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931 IFS=$as_save_IFS
6932 case $as_dir in #(((
6933 '') as_dir=./ ;;
6934 */) ;;
6935 *) as_dir=$as_dir/ ;;
6936 esac
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_ac_ct_STRIP="strip"
6940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi ;;
6948 esac
6949 fi
6950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6951 if test -n "$ac_ct_STRIP"; then
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6953 printf "%s\n" "$ac_ct_STRIP" >&6; }
6954 else
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 printf "%s\n" "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_STRIP" = x; then
6960 STRIP=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 STRIP=$ac_ct_STRIP
6969 fi
6970 else
6971 STRIP="$ac_cv_prog_STRIP"
6972 fi
6973
6974 test -z "$STRIP" && STRIP=:
6975
6976
6977
6978
6979
6980
6981
6982 test -z "$RANLIB" && RANLIB=:
6983
6984
6985
6986
6987
6988
6989 # Determine commands to create old-style static archives.
6990 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6991 old_postinstall_cmds='chmod 644 $oldlib'
6992 old_postuninstall_cmds=
6993
6994 if test -n "$RANLIB"; then
6995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6997 fi
6998
6999 case $host_os in
7000 darwin*)
7001 lock_old_archive_extraction=yes ;;
7002 *)
7003 lock_old_archive_extraction=no ;;
7004 esac
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 # If no C compiler was specified, use CC.
7045 LTCC=${LTCC-"$CC"}
7046
7047 # If no C compiler flags were specified, use CFLAGS.
7048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7049
7050 # Allow CC to be a program name with arguments.
7051 compiler=$CC
7052
7053
7054 # Check for command to grab the raw symbol name followed by C symbol from nm.
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7056 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7057 if test ${lt_cv_sys_global_symbol_pipe+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else case e in #(
7061 e)
7062 # These are sane defaults that work on at least a few old systems.
7063 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7064
7065 # Character class describing NM global symbol codes.
7066 symcode='[BCDEGRST]'
7067
7068 # Regexp to match symbols that can be accessed directly from C.
7069 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7070
7071 # Define system-specific variables.
7072 case $host_os in
7073 aix*)
7074 symcode='[BCDT]'
7075 ;;
7076 cygwin* | mingw* | windows* | pw32* | cegcc*)
7077 symcode='[ABCDGISTW]'
7078 ;;
7079 hpux*)
7080 if test ia64 = "$host_cpu"; then
7081 symcode='[ABCDEGRST]'
7082 fi
7083 ;;
7084 irix* | nonstopux*)
7085 symcode='[BCDEGRST]'
7086 ;;
7087 osf*)
7088 symcode='[BCDEGQRST]'
7089 ;;
7090 solaris*)
7091 symcode='[BCDRT]'
7092 ;;
7093 sco3.2v5*)
7094 symcode='[DT]'
7095 ;;
7096 sysv4.2uw2*)
7097 symcode='[DT]'
7098 ;;
7099 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7100 symcode='[ABDT]'
7101 ;;
7102 sysv4)
7103 symcode='[DFNSTU]'
7104 ;;
7105 esac
7106
7107 # If we're using GNU nm, then use its standard symbol codes.
7108 case `$NM -V 2>&1` in
7109 *GNU* | *'with BFD'*)
7110 symcode='[ABCDGIRSTW]' ;;
7111 esac
7112
7113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7114 # Gets list of data symbols to import.
7115 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7116 # Adjust the below global symbol transforms to fixup imported variables.
7117 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7118 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7119 lt_c_name_lib_hook="\
7120 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7121 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7122 else
7123 # Disable hooks by default.
7124 lt_cv_sys_global_symbol_to_import=
7125 lt_cdecl_hook=
7126 lt_c_name_hook=
7127 lt_c_name_lib_hook=
7128 fi
7129
7130 # Transform an extracted symbol line into a proper C declaration.
7131 # Some systems (esp. on ia64) link data and code symbols differently,
7132 # so use this general approach.
7133 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7134 $lt_cdecl_hook\
7135 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7136 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7137
7138 # Transform an extracted symbol line into symbol name and symbol address
7139 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7140 $lt_c_name_hook\
7141 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7142 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7143
7144 # Transform an extracted symbol line into symbol name with lib prefix and
7145 # symbol address.
7146 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7147 $lt_c_name_lib_hook\
7148 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7149 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7150 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7151
7152 # Handle CRLF in mingw tool chain
7153 opt_cr=
7154 case $build_os in
7155 mingw* | windows*)
7156 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7157 ;;
7158 esac
7159
7160 # Try without a prefix underscore, then with it.
7161 for ac_symprfx in "" "_"; do
7162
7163 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7164 symxfrm="\\1 $ac_symprfx\\2 \\2"
7165
7166 # Write the raw and C identifiers.
7167 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7168 # Fake it for dumpbin and say T for any non-static function,
7169 # D for any global variable and I for any imported variable.
7170 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7171 # which start with @ or ?.
7172 lt_cv_sys_global_symbol_pipe="$AWK '"\
7173 " {last_section=section; section=\$ 3};"\
7174 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7175 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7176 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7177 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7178 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7179 " \$ 0!~/External *\|/{next};"\
7180 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7181 " {if(hide[section]) next};"\
7182 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7183 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7184 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7185 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7186 " ' prfx=^$ac_symprfx"
7187 else
7188 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7189 fi
7190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7191
7192 # Check to see that the pipe works correctly.
7193 pipe_works=no
7194
7195 rm -f conftest*
7196 cat > conftest.$ac_ext <<_LT_EOF
7197 #ifdef __cplusplus
7198 extern "C" {
7199 #endif
7200 char nm_test_var;
7201 void nm_test_func(void);
7202 void nm_test_func(void){}
7203 #ifdef __cplusplus
7204 }
7205 #endif
7206 int main(void){nm_test_var='a';nm_test_func();return(0);}
7207 _LT_EOF
7208
7209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7210 (eval $ac_compile) 2>&5
7211 ac_status=$?
7212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213 test $ac_status = 0; }; then
7214 # Now try to grab the symbols.
7215 nlist=conftest.nm
7216 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7217 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7218 # Try sorting and uniquifying the output.
7219 if sort "$nlist" | uniq > "$nlist"T; then
7220 mv -f "$nlist"T "$nlist"
7221 else
7222 rm -f "$nlist"T
7223 fi
7224
7225 # Make sure that we snagged all the symbols we need.
7226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7228 cat <<_LT_EOF > conftest.$ac_ext
7229 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7230 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7231 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7232 relocations are performed -- see ld's documentation on pseudo-relocs. */
7233 # define LT_DLSYM_CONST
7234 #elif defined __osf__
7235 /* This system does not cope well with relocations in const data. */
7236 # define LT_DLSYM_CONST
7237 #else
7238 # define LT_DLSYM_CONST const
7239 #endif
7240
7241 #ifdef __cplusplus
7242 extern "C" {
7243 #endif
7244
7245 _LT_EOF
7246 # Now generate the symbol file.
7247 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7248
7249 cat <<_LT_EOF >> conftest.$ac_ext
7250
7251 /* The mapping between symbol names and symbols. */
7252 LT_DLSYM_CONST struct {
7253 const char *name;
7254 void *address;
7255 }
7256 lt__PROGRAM__LTX_preloaded_symbols[] =
7257 {
7258 { "@PROGRAM@", (void *) 0 },
7259 _LT_EOF
7260 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7261 cat <<\_LT_EOF >> conftest.$ac_ext
7262 {0, (void *) 0}
7263 };
7264
7265 /* This works around a problem in FreeBSD linker */
7266 #ifdef FREEBSD_WORKAROUND
7267 static const void *lt_preloaded_setup() {
7268 return lt__PROGRAM__LTX_preloaded_symbols;
7269 }
7270 #endif
7271
7272 #ifdef __cplusplus
7273 }
7274 #endif
7275 _LT_EOF
7276 # Now try linking the two files.
7277 mv conftest.$ac_objext conftstm.$ac_objext
7278 lt_globsym_save_LIBS=$LIBS
7279 lt_globsym_save_CFLAGS=$CFLAGS
7280 LIBS=conftstm.$ac_objext
7281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7283 (eval $ac_link) 2>&5
7284 ac_status=$?
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7287 pipe_works=yes
7288 fi
7289 LIBS=$lt_globsym_save_LIBS
7290 CFLAGS=$lt_globsym_save_CFLAGS
7291 else
7292 echo "cannot find nm_test_func in $nlist" >&5
7293 fi
7294 else
7295 echo "cannot find nm_test_var in $nlist" >&5
7296 fi
7297 else
7298 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7299 fi
7300 else
7301 echo "$progname: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 fi
7304 rm -rf conftest* conftst*
7305
7306 # Do not use the global_symbol_pipe unless it works.
7307 if test yes = "$pipe_works"; then
7308 break
7309 else
7310 lt_cv_sys_global_symbol_pipe=
7311 fi
7312 done
7313 ;;
7314 esac
7315 fi
7316
7317 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7318 lt_cv_sys_global_symbol_to_cdecl=
7319 fi
7320 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7322 printf "%s\n" "failed" >&6; }
7323 else
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7325 printf "%s\n" "ok" >&6; }
7326 fi
7327
7328 # Response file support.
7329 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7330 nm_file_list_spec='@'
7331 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7332 nm_file_list_spec='@'
7333 fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7372 printf %s "checking for sysroot... " >&6; }
7373
7374 # Check whether --with-sysroot was given.
7375 if test ${with_sysroot+y}
7376 then :
7377 withval=$with_sysroot;
7378 else case e in #(
7379 e) with_sysroot=no ;;
7380 esac
7381 fi
7382
7383
7384 lt_sysroot=
7385 case $with_sysroot in #(
7386 yes)
7387 if test yes = "$GCC"; then
7388 # Trim trailing / since we'll always append absolute paths and we want
7389 # to avoid //, if only for less confusing output for the user.
7390 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7391 fi
7392 ;; #(
7393 /*)
7394 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7395 ;; #(
7396 no|'')
7397 ;; #(
7398 *)
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7400 printf "%s\n" "$with_sysroot" >&6; }
7401 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7402 ;;
7403 esac
7404
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7406 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7407
7408
7409
7410
7411
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7413 printf %s "checking for a working dd... " >&6; }
7414 if test ${ac_cv_path_lt_DD+y}
7415 then :
7416 printf %s "(cached) " >&6
7417 else case e in #(
7418 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7419 cat conftest.i conftest.i >conftest2.i
7420 : ${lt_DD:=$DD}
7421 if test -z "$lt_DD"; then
7422 ac_path_lt_DD_found=false
7423 # Loop through the user's path and test for each of PROGNAME-LIST
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427 IFS=$as_save_IFS
7428 case $as_dir in #(((
7429 '') as_dir=./ ;;
7430 */) ;;
7431 *) as_dir=$as_dir/ ;;
7432 esac
7433 for ac_prog in dd
7434 do
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7437 as_fn_executable_p "$ac_path_lt_DD" || continue
7438 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7439 cmp -s conftest.i conftest.out \
7440 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7441 fi
7442 $ac_path_lt_DD_found && break 3
7443 done
7444 done
7445 done
7446 IFS=$as_save_IFS
7447 if test -z "$ac_cv_path_lt_DD"; then
7448 :
7449 fi
7450 else
7451 ac_cv_path_lt_DD=$lt_DD
7452 fi
7453
7454 rm -f conftest.i conftest2.i conftest.out ;;
7455 esac
7456 fi
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7458 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7459
7460
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7462 printf %s "checking how to truncate binary pipes... " >&6; }
7463 if test ${lt_cv_truncate_bin+y}
7464 then :
7465 printf %s "(cached) " >&6
7466 else case e in #(
7467 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7468 cat conftest.i conftest.i >conftest2.i
7469 lt_cv_truncate_bin=
7470 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7471 cmp -s conftest.i conftest.out \
7472 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7473 fi
7474 rm -f conftest.i conftest2.i conftest.out
7475 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7476 esac
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7479 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7480
7481
7482
7483
7484
7485
7486
7487 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7488 func_cc_basename ()
7489 {
7490 for cc_temp in $*""; do
7491 case $cc_temp in
7492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7494 \-*) ;;
7495 *) break;;
7496 esac
7497 done
7498 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7499 }
7500
7501 # Check whether --enable-libtool-lock was given.
7502 if test ${enable_libtool_lock+y}
7503 then :
7504 enableval=$enable_libtool_lock;
7505 fi
7506
7507 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7508
7509 # Some flags need to be propagated to the compiler or linker for good
7510 # libtool support.
7511 case $host in
7512 ia64-*-hpux*)
7513 # Find out what ABI is being produced by ac_compile, and set mode
7514 # options accordingly.
7515 echo 'int i;' > conftest.$ac_ext
7516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7517 (eval $ac_compile) 2>&5
7518 ac_status=$?
7519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520 test $ac_status = 0; }; then
7521 case `$FILECMD conftest.$ac_objext` in
7522 *ELF-32*)
7523 HPUX_IA64_MODE=32
7524 ;;
7525 *ELF-64*)
7526 HPUX_IA64_MODE=64
7527 ;;
7528 esac
7529 fi
7530 rm -rf conftest*
7531 ;;
7532 *-*-irix6*)
7533 # Find out what ABI is being produced by ac_compile, and set linker
7534 # options accordingly.
7535 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537 (eval $ac_compile) 2>&5
7538 ac_status=$?
7539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 if test yes = "$lt_cv_prog_gnu_ld"; then
7542 case `$FILECMD conftest.$ac_objext` in
7543 *32-bit*)
7544 LD="${LD-ld} -melf32bsmip"
7545 ;;
7546 *N32*)
7547 LD="${LD-ld} -melf32bmipn32"
7548 ;;
7549 *64-bit*)
7550 LD="${LD-ld} -melf64bmip"
7551 ;;
7552 esac
7553 else
7554 case `$FILECMD conftest.$ac_objext` in
7555 *32-bit*)
7556 LD="${LD-ld} -32"
7557 ;;
7558 *N32*)
7559 LD="${LD-ld} -n32"
7560 ;;
7561 *64-bit*)
7562 LD="${LD-ld} -64"
7563 ;;
7564 esac
7565 fi
7566 fi
7567 rm -rf conftest*
7568 ;;
7569
7570 mips64*-*linux*)
7571 # Find out what ABI is being produced by ac_compile, and set linker
7572 # options accordingly.
7573 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
7577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 emul=elf
7580 case `$FILECMD conftest.$ac_objext` in
7581 *32-bit*)
7582 emul="${emul}32"
7583 ;;
7584 *64-bit*)
7585 emul="${emul}64"
7586 ;;
7587 esac
7588 case `$FILECMD conftest.$ac_objext` in
7589 *MSB*)
7590 emul="${emul}btsmip"
7591 ;;
7592 *LSB*)
7593 emul="${emul}ltsmip"
7594 ;;
7595 esac
7596 case `$FILECMD conftest.$ac_objext` in
7597 *N32*)
7598 emul="${emul}n32"
7599 ;;
7600 esac
7601 LD="${LD-ld} -m $emul"
7602 fi
7603 rm -rf conftest*
7604 ;;
7605
7606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7607 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7608 # Find out what ABI is being produced by ac_compile, and set linker
7609 # options accordingly. Note that the listed cases only cover the
7610 # situations where additional linker options are needed (such as when
7611 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7612 # vice versa); the common cases where no linker options are needed do
7613 # not appear in the list.
7614 echo 'int i;' > conftest.$ac_ext
7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7616 (eval $ac_compile) 2>&5
7617 ac_status=$?
7618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; }; then
7620 case `$FILECMD conftest.o` in
7621 *32-bit*)
7622 case $host in
7623 x86_64-*kfreebsd*-gnu)
7624 LD="${LD-ld} -m elf_i386_fbsd"
7625 ;;
7626 x86_64-*linux*|x86_64-gnu*)
7627 case `$FILECMD conftest.o` in
7628 *x86-64*)
7629 LD="${LD-ld} -m elf32_x86_64"
7630 ;;
7631 *)
7632 LD="${LD-ld} -m elf_i386"
7633 ;;
7634 esac
7635 ;;
7636 powerpc64le-*linux*)
7637 LD="${LD-ld} -m elf32lppclinux"
7638 ;;
7639 powerpc64-*linux*)
7640 LD="${LD-ld} -m elf32ppclinux"
7641 ;;
7642 s390x-*linux*)
7643 LD="${LD-ld} -m elf_s390"
7644 ;;
7645 sparc64-*linux*)
7646 LD="${LD-ld} -m elf32_sparc"
7647 ;;
7648 esac
7649 ;;
7650 *64-bit*)
7651 case $host in
7652 x86_64-*kfreebsd*-gnu)
7653 LD="${LD-ld} -m elf_x86_64_fbsd"
7654 ;;
7655 x86_64-*linux*|x86_64-gnu*)
7656 LD="${LD-ld} -m elf_x86_64"
7657 ;;
7658 powerpcle-*linux*)
7659 LD="${LD-ld} -m elf64lppc"
7660 ;;
7661 powerpc-*linux*)
7662 LD="${LD-ld} -m elf64ppc"
7663 ;;
7664 s390*-*linux*|s390*-*tpf*)
7665 LD="${LD-ld} -m elf64_s390"
7666 ;;
7667 sparc*-*linux*)
7668 LD="${LD-ld} -m elf64_sparc"
7669 ;;
7670 esac
7671 ;;
7672 esac
7673 fi
7674 rm -rf conftest*
7675 ;;
7676
7677 *-*-sco3.2v5*)
7678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7679 SAVE_CFLAGS=$CFLAGS
7680 CFLAGS="$CFLAGS -belf"
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7682 printf %s "checking whether the C compiler needs -belf... " >&6; }
7683 if test ${lt_cv_cc_needs_belf+y}
7684 then :
7685 printf %s "(cached) " >&6
7686 else case e in #(
7687 e) ac_ext=c
7688 ac_cpp='$CPP $CPPFLAGS'
7689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695
7696 int
7697 main (void)
7698 {
7699
7700 ;
7701 return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_link "$LINENO"
7705 then :
7706 lt_cv_cc_needs_belf=yes
7707 else case e in #(
7708 e) lt_cv_cc_needs_belf=no ;;
7709 esac
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7712 conftest$ac_exeext conftest.$ac_ext
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 ;;
7719 esac
7720 fi
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7722 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7723 if test yes != "$lt_cv_cc_needs_belf"; then
7724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7725 CFLAGS=$SAVE_CFLAGS
7726 fi
7727 ;;
7728 *-*solaris*)
7729 # Find out what ABI is being produced by ac_compile, and set linker
7730 # options accordingly.
7731 echo 'int i;' > conftest.$ac_ext
7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733 (eval $ac_compile) 2>&5
7734 ac_status=$?
7735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 case `$FILECMD conftest.o` in
7738 *64-bit*)
7739 case $lt_cv_prog_gnu_ld in
7740 yes*)
7741 case $host in
7742 i?86-*-solaris*|x86_64-*-solaris*)
7743 LD="${LD-ld} -m elf_x86_64"
7744 ;;
7745 sparc*-*-solaris*)
7746 LD="${LD-ld} -m elf64_sparc"
7747 ;;
7748 esac
7749 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7750 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7751 LD=${LD-ld}_sol2
7752 fi
7753 ;;
7754 *)
7755 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7756 LD="${LD-ld} -64"
7757 fi
7758 ;;
7759 esac
7760 ;;
7761 esac
7762 fi
7763 rm -rf conftest*
7764 ;;
7765 esac
7766
7767 need_locks=$enable_libtool_lock
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}mt; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else case e in #(
7778 e) if test -n "$MANIFEST_TOOL"; then
7779 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 case $as_dir in #(((
7786 '') as_dir=./ ;;
7787 */) ;;
7788 *) as_dir=$as_dir/ ;;
7789 esac
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi ;;
7801 esac
7802 fi
7803 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7804 if test -n "$MANIFEST_TOOL"; then
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7806 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7807 else
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 printf "%s\n" "no" >&6; }
7810 fi
7811
7812
7813 fi
7814 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7815 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7816 # Extract the first word of "mt", so it can be a program name with args.
7817 set dummy mt; ac_word=$2
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 printf %s "checking for $ac_word... " >&6; }
7820 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7821 then :
7822 printf %s "(cached) " >&6
7823 else case e in #(
7824 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7825 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 case $as_dir in #(((
7832 '') as_dir=./ ;;
7833 */) ;;
7834 *) as_dir=$as_dir/ ;;
7835 esac
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846 fi ;;
7847 esac
7848 fi
7849 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7850 if test -n "$ac_ct_MANIFEST_TOOL"; then
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7852 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7853 else
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 printf "%s\n" "no" >&6; }
7856 fi
7857
7858 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7859 MANIFEST_TOOL=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862 yes:)
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7868 fi
7869 else
7870 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7871 fi
7872
7873 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7875 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7876 if test ${lt_cv_path_manifest_tool+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else case e in #(
7880 e) lt_cv_path_manifest_tool=no
7881 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7882 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7883 cat conftest.err >&5
7884 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7885 lt_cv_path_manifest_tool=yes
7886 fi
7887 rm -f conftest* ;;
7888 esac
7889 fi
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7891 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7892 if test yes != "$lt_cv_path_manifest_tool"; then
7893 MANIFEST_TOOL=:
7894 fi
7895
7896
7897
7898
7899
7900
7901 case $host_os in
7902 rhapsody* | darwin*)
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 printf %s "checking for $ac_word... " >&6; }
7908 if test ${ac_cv_prog_DSYMUTIL+y}
7909 then :
7910 printf %s "(cached) " >&6
7911 else case e in #(
7912 e) if test -n "$DSYMUTIL"; then
7913 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918 IFS=$as_save_IFS
7919 case $as_dir in #(((
7920 '') as_dir=./ ;;
7921 */) ;;
7922 *) as_dir=$as_dir/ ;;
7923 esac
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi ;;
7935 esac
7936 fi
7937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7938 if test -n "$DSYMUTIL"; then
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7940 printf "%s\n" "$DSYMUTIL" >&6; }
7941 else
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 printf "%s\n" "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_DSYMUTIL"; then
7949 ac_ct_DSYMUTIL=$DSYMUTIL
7950 # Extract the first word of "dsymutil", so it can be a program name with args.
7951 set dummy dsymutil; ac_word=$2
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 printf %s "checking for $ac_word... " >&6; }
7954 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7955 then :
7956 printf %s "(cached) " >&6
7957 else case e in #(
7958 e) if test -n "$ac_ct_DSYMUTIL"; then
7959 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 case $as_dir in #(((
7966 '') as_dir=./ ;;
7967 */) ;;
7968 *) as_dir=$as_dir/ ;;
7969 esac
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi ;;
7981 esac
7982 fi
7983 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7984 if test -n "$ac_ct_DSYMUTIL"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7986 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 printf "%s\n" "no" >&6; }
7990 fi
7991
7992 if test "x$ac_ct_DSYMUTIL" = x; then
7993 DSYMUTIL=":"
7994 else
7995 case $cross_compiling:$ac_tool_warned in
7996 yes:)
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001 DSYMUTIL=$ac_ct_DSYMUTIL
8002 fi
8003 else
8004 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8005 fi
8006
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_NMEDIT+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else case e in #(
8016 e) if test -n "$NMEDIT"; then
8017 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi ;;
8039 esac
8040 fi
8041 NMEDIT=$ac_cv_prog_NMEDIT
8042 if test -n "$NMEDIT"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8044 printf "%s\n" "$NMEDIT" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050
8051 fi
8052 if test -z "$ac_cv_prog_NMEDIT"; then
8053 ac_ct_NMEDIT=$NMEDIT
8054 # Extract the first word of "nmedit", so it can be a program name with args.
8055 set dummy nmedit; ac_word=$2
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 printf %s "checking for $ac_word... " >&6; }
8058 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else case e in #(
8062 e) if test -n "$ac_ct_NMEDIT"; then
8063 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 case $as_dir in #(((
8070 '') as_dir=./ ;;
8071 */) ;;
8072 *) as_dir=$as_dir/ ;;
8073 esac
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi ;;
8085 esac
8086 fi
8087 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8088 if test -n "$ac_ct_NMEDIT"; then
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8090 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8091 else
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 printf "%s\n" "no" >&6; }
8094 fi
8095
8096 if test "x$ac_ct_NMEDIT" = x; then
8097 NMEDIT=":"
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8104 esac
8105 NMEDIT=$ac_ct_NMEDIT
8106 fi
8107 else
8108 NMEDIT="$ac_cv_prog_NMEDIT"
8109 fi
8110
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 printf %s "checking for $ac_word... " >&6; }
8116 if test ${ac_cv_prog_LIPO+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else case e in #(
8120 e) if test -n "$LIPO"; then
8121 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi ;;
8143 esac
8144 fi
8145 LIPO=$ac_cv_prog_LIPO
8146 if test -n "$LIPO"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8148 printf "%s\n" "$LIPO" >&6; }
8149 else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 printf "%s\n" "no" >&6; }
8152 fi
8153
8154
8155 fi
8156 if test -z "$ac_cv_prog_LIPO"; then
8157 ac_ct_LIPO=$LIPO
8158 # Extract the first word of "lipo", so it can be a program name with args.
8159 set dummy lipo; ac_word=$2
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 printf %s "checking for $ac_word... " >&6; }
8162 if test ${ac_cv_prog_ac_ct_LIPO+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else case e in #(
8166 e) if test -n "$ac_ct_LIPO"; then
8167 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 case $as_dir in #(((
8174 '') as_dir=./ ;;
8175 */) ;;
8176 *) as_dir=$as_dir/ ;;
8177 esac
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_LIPO="lipo"
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi ;;
8189 esac
8190 fi
8191 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8192 if test -n "$ac_ct_LIPO"; then
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8194 printf "%s\n" "$ac_ct_LIPO" >&6; }
8195 else
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 printf "%s\n" "no" >&6; }
8198 fi
8199
8200 if test "x$ac_ct_LIPO" = x; then
8201 LIPO=":"
8202 else
8203 case $cross_compiling:$ac_tool_warned in
8204 yes:)
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207 ac_tool_warned=yes ;;
8208 esac
8209 LIPO=$ac_ct_LIPO
8210 fi
8211 else
8212 LIPO="$ac_cv_prog_LIPO"
8213 fi
8214
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}otool; ac_word=$2
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_OTOOL+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$OTOOL"; then
8225 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi ;;
8247 esac
8248 fi
8249 OTOOL=$ac_cv_prog_OTOOL
8250 if test -n "$OTOOL"; then
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8252 printf "%s\n" "$OTOOL" >&6; }
8253 else
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 printf "%s\n" "no" >&6; }
8256 fi
8257
8258
8259 fi
8260 if test -z "$ac_cv_prog_OTOOL"; then
8261 ac_ct_OTOOL=$OTOOL
8262 # Extract the first word of "otool", so it can be a program name with args.
8263 set dummy otool; ac_word=$2
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 printf %s "checking for $ac_word... " >&6; }
8266 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else case e in #(
8270 e) if test -n "$ac_ct_OTOOL"; then
8271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 case $as_dir in #(((
8278 '') as_dir=./ ;;
8279 */) ;;
8280 *) as_dir=$as_dir/ ;;
8281 esac
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_ac_ct_OTOOL="otool"
8285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292 fi ;;
8293 esac
8294 fi
8295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8296 if test -n "$ac_ct_OTOOL"; then
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8298 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8299 else
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 printf "%s\n" "no" >&6; }
8302 fi
8303
8304 if test "x$ac_ct_OTOOL" = x; then
8305 OTOOL=":"
8306 else
8307 case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8312 esac
8313 OTOOL=$ac_ct_OTOOL
8314 fi
8315 else
8316 OTOOL="$ac_cv_prog_OTOOL"
8317 fi
8318
8319 if test -n "$ac_tool_prefix"; then
8320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 printf %s "checking for $ac_word... " >&6; }
8324 if test ${ac_cv_prog_OTOOL64+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) if test -n "$OTOOL64"; then
8329 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 case $as_dir in #(((
8336 '') as_dir=./ ;;
8337 */) ;;
8338 *) as_dir=$as_dir/ ;;
8339 esac
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi ;;
8351 esac
8352 fi
8353 OTOOL64=$ac_cv_prog_OTOOL64
8354 if test -n "$OTOOL64"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8356 printf "%s\n" "$OTOOL64" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_OTOOL64"; then
8365 ac_ct_OTOOL64=$OTOOL64
8366 # Extract the first word of "otool64", so it can be a program name with args.
8367 set dummy otool64; ac_word=$2
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else case e in #(
8374 e) if test -n "$ac_ct_OTOOL64"; then
8375 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 case $as_dir in #(((
8382 '') as_dir=./ ;;
8383 */) ;;
8384 *) as_dir=$as_dir/ ;;
8385 esac
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_ac_ct_OTOOL64="otool64"
8389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi ;;
8397 esac
8398 fi
8399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8400 if test -n "$ac_ct_OTOOL64"; then
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8402 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8403 else
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 printf "%s\n" "no" >&6; }
8406 fi
8407
8408 if test "x$ac_ct_OTOOL64" = x; then
8409 OTOOL64=":"
8410 else
8411 case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417 OTOOL64=$ac_ct_OTOOL64
8418 fi
8419 else
8420 OTOOL64="$ac_cv_prog_OTOOL64"
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8450 printf %s "checking for -single_module linker flag... " >&6; }
8451 if test ${lt_cv_apple_cc_single_mod+y}
8452 then :
8453 printf %s "(cached) " >&6
8454 else case e in #(
8455 e) lt_cv_apple_cc_single_mod=no
8456 if test -z "$LT_MULTI_MODULE"; then
8457 # By default we will add the -single_module flag. You can override
8458 # by either setting the environment variable LT_MULTI_MODULE
8459 # non-empty at configure time, or by adding -multi_module to the
8460 # link flags.
8461 rm -rf libconftest.dylib*
8462 echo "int foo(void){return 1;}" > conftest.c
8463 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464 -dynamiclib -Wl,-single_module conftest.c" >&5
8465 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8466 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8467 _lt_result=$?
8468 # If there is a non-empty error log, and "single_module"
8469 # appears in it, assume the flag caused a linker warning
8470 if test -s conftest.err && $GREP single_module conftest.err; then
8471 cat conftest.err >&5
8472 # Otherwise, if the output was created with a 0 exit code from
8473 # the compiler, it worked.
8474 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8475 lt_cv_apple_cc_single_mod=yes
8476 else
8477 cat conftest.err >&5
8478 fi
8479 rm -rf libconftest.dylib*
8480 rm -f conftest.*
8481 fi ;;
8482 esac
8483 fi
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8485 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8486
8487 # Feature test to disable chained fixups since it is not
8488 # compatible with '-undefined dynamic_lookup'
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8490 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8491 if test ${lt_cv_support_no_fixup_chains+y}
8492 then :
8493 printf %s "(cached) " >&6
8494 else case e in #(
8495 e) save_LDFLAGS=$LDFLAGS
8496 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499
8500 int
8501 main (void)
8502 {
8503
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"
8509 then :
8510 lt_cv_support_no_fixup_chains=yes
8511 else case e in #(
8512 e) lt_cv_support_no_fixup_chains=no
8513 ;;
8514 esac
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LDFLAGS=$save_LDFLAGS
8519
8520 ;;
8521 esac
8522 fi
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8524 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8525
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8527 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8528 if test ${lt_cv_ld_exported_symbols_list+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else case e in #(
8532 e) lt_cv_ld_exported_symbols_list=no
8533 save_LDFLAGS=$LDFLAGS
8534 echo "_main" > conftest.sym
8535 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538
8539 int
8540 main (void)
8541 {
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"
8548 then :
8549 lt_cv_ld_exported_symbols_list=yes
8550 else case e in #(
8551 e) lt_cv_ld_exported_symbols_list=no ;;
8552 esac
8553 fi
8554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8555 conftest$ac_exeext conftest.$ac_ext
8556 LDFLAGS=$save_LDFLAGS
8557 ;;
8558 esac
8559 fi
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8561 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8562
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8564 printf %s "checking for -force_load linker flag... " >&6; }
8565 if test ${lt_cv_ld_force_load+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else case e in #(
8569 e) lt_cv_ld_force_load=no
8570 cat > conftest.c << _LT_EOF
8571 int forced_loaded() { return 2;}
8572 _LT_EOF
8573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8575 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8576 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8577 echo "$RANLIB libconftest.a" >&5
8578 $RANLIB libconftest.a 2>&5
8579 cat > conftest.c << _LT_EOF
8580 int main(void) { return 0;}
8581 _LT_EOF
8582 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8583 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8584 _lt_result=$?
8585 if test -s conftest.err && $GREP force_load conftest.err; then
8586 cat conftest.err >&5
8587 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8588 lt_cv_ld_force_load=yes
8589 else
8590 cat conftest.err >&5
8591 fi
8592 rm -f conftest.err libconftest.a conftest conftest.c
8593 rm -rf conftest.dSYM
8594 ;;
8595 esac
8596 fi
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8598 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8599 case $host_os in
8600 rhapsody* | darwin1.[012])
8601 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8602 darwin1.*)
8603 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8604 darwin*)
8605 case $MACOSX_DEPLOYMENT_TARGET,$host in
8606 10.[012],*|,*powerpc*-darwin[5-8]*)
8607 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8608 *)
8609 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8610 if test yes = "$lt_cv_support_no_fixup_chains"; then
8611 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8612 fi
8613 ;;
8614 esac
8615 ;;
8616 esac
8617 if test yes = "$lt_cv_apple_cc_single_mod"; then
8618 _lt_dar_single_mod='$single_module'
8619 fi
8620 _lt_dar_needs_single_mod=no
8621 case $host_os in
8622 rhapsody* | darwin1.*)
8623 _lt_dar_needs_single_mod=yes ;;
8624 darwin*)
8625 # When targeting Mac OS X 10.4 (darwin 8) or later,
8626 # -single_module is the default and -multi_module is unsupported.
8627 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8628 # target any OS version that needs -single_module.
8629 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8630 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8631 _lt_dar_needs_single_mod=yes ;;
8632 esac
8633 ;;
8634 esac
8635 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8636 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8637 else
8638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8639 fi
8640 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8641 _lt_dsymutil='~$DSYMUTIL $lib || :'
8642 else
8643 _lt_dsymutil=
8644 fi
8645 ;;
8646 esac
8647
8648 # func_munge_path_list VARIABLE PATH
8649 # -----------------------------------
8650 # VARIABLE is name of variable containing _space_ separated list of
8651 # directories to be munged by the contents of PATH, which is string
8652 # having a format:
8653 # "DIR[:DIR]:"
8654 # string "DIR[ DIR]" will be prepended to VARIABLE
8655 # ":DIR[:DIR]"
8656 # string "DIR[ DIR]" will be appended to VARIABLE
8657 # "DIRP[:DIRP]::[DIRA:]DIRA"
8658 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8659 # "DIRA[ DIRA]" will be appended to VARIABLE
8660 # "DIR[:DIR]"
8661 # VARIABLE will be replaced by "DIR[ DIR]"
8662 func_munge_path_list ()
8663 {
8664 case x$2 in
8665 x)
8666 ;;
8667 *:)
8668 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8669 ;;
8670 x:*)
8671 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8672 ;;
8673 *::*)
8674 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8675 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8676 ;;
8677 *)
8678 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8679 ;;
8680 esac
8681 }
8682
8683 ac_header= ac_cache=
8684 for ac_item in $ac_header_c_list
8685 do
8686 if test $ac_cache; then
8687 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8688 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8689 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8690 fi
8691 ac_header= ac_cache=
8692 elif test $ac_header; then
8693 ac_cache=$ac_item
8694 else
8695 ac_header=$ac_item
8696 fi
8697 done
8698
8699
8700
8701
8702
8703
8704
8705
8706 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8707 then :
8708
8709 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8710
8711 fi
8712 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8713 "
8714 if test "x$ac_cv_header_dlfcn_h" = xyes
8715 then :
8716 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8717
8718 fi
8719
8720
8721
8722
8723
8724 # Set options
8725
8726
8727
8728 enable_dlopen=no
8729
8730
8731 enable_win32_dll=no
8732
8733
8734 # Check whether --enable-shared was given.
8735 if test ${enable_shared+y}
8736 then :
8737 enableval=$enable_shared; p=${PACKAGE-default}
8738 case $enableval in
8739 yes) enable_shared=yes ;;
8740 no) enable_shared=no ;;
8741 *)
8742 enable_shared=no
8743 # Look at the argument we got. We use all the common list separators.
8744 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8745 for pkg in $enableval; do
8746 IFS=$lt_save_ifs
8747 if test "X$pkg" = "X$p"; then
8748 enable_shared=yes
8749 fi
8750 done
8751 IFS=$lt_save_ifs
8752 ;;
8753 esac
8754 else case e in #(
8755 e) enable_shared=yes ;;
8756 esac
8757 fi
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767 # Check whether --enable-static was given.
8768 if test ${enable_static+y}
8769 then :
8770 enableval=$enable_static; p=${PACKAGE-default}
8771 case $enableval in
8772 yes) enable_static=yes ;;
8773 no) enable_static=no ;;
8774 *)
8775 enable_static=no
8776 # Look at the argument we got. We use all the common list separators.
8777 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8778 for pkg in $enableval; do
8779 IFS=$lt_save_ifs
8780 if test "X$pkg" = "X$p"; then
8781 enable_static=yes
8782 fi
8783 done
8784 IFS=$lt_save_ifs
8785 ;;
8786 esac
8787 else case e in #(
8788 e) enable_static=yes ;;
8789 esac
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 # Check whether --enable-pic was given.
8801 if test ${enable_pic+y}
8802 then :
8803 enableval=$enable_pic; lt_p=${PACKAGE-default}
8804 case $enableval in
8805 yes|no) pic_mode=$enableval ;;
8806 *)
8807 pic_mode=default
8808 # Look at the argument we got. We use all the common list separators.
8809 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8810 for lt_pkg in $enableval; do
8811 IFS=$lt_save_ifs
8812 if test "X$lt_pkg" = "X$lt_p"; then
8813 pic_mode=yes
8814 fi
8815 done
8816 IFS=$lt_save_ifs
8817 ;;
8818 esac
8819 else case e in #(
8820 e) # Check whether --with-pic was given.
8821 if test ${with_pic+y}
8822 then :
8823 withval=$with_pic; lt_p=${PACKAGE-default}
8824 case $withval in
8825 yes|no) pic_mode=$withval ;;
8826 *)
8827 pic_mode=default
8828 # Look at the argument we got. We use all the common list separators.
8829 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8830 for lt_pkg in $withval; do
8831 IFS=$lt_save_ifs
8832 if test "X$lt_pkg" = "X$lt_p"; then
8833 pic_mode=yes
8834 fi
8835 done
8836 IFS=$lt_save_ifs
8837 ;;
8838 esac
8839 else case e in #(
8840 e) pic_mode=default ;;
8841 esac
8842 fi
8843
8844 ;;
8845 esac
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854
8855 # Check whether --enable-fast-install was given.
8856 if test ${enable_fast_install+y}
8857 then :
8858 enableval=$enable_fast_install; p=${PACKAGE-default}
8859 case $enableval in
8860 yes) enable_fast_install=yes ;;
8861 no) enable_fast_install=no ;;
8862 *)
8863 enable_fast_install=no
8864 # Look at the argument we got. We use all the common list separators.
8865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8866 for pkg in $enableval; do
8867 IFS=$lt_save_ifs
8868 if test "X$pkg" = "X$p"; then
8869 enable_fast_install=yes
8870 fi
8871 done
8872 IFS=$lt_save_ifs
8873 ;;
8874 esac
8875 else case e in #(
8876 e) enable_fast_install=yes ;;
8877 esac
8878 fi
8879
8880
8881
8882
8883
8884
8885
8886
8887 shared_archive_member_spec=
8888 case $host,$enable_shared in
8889 power*-*-aix[5-9]*,yes)
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8891 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8892 # Check whether --enable-aix-soname was given.
8893 if test ${enable_aix_soname+y}
8894 then :
8895 enableval=$enable_aix_soname; case $enableval in
8896 aix|svr4|both)
8897 ;;
8898 *)
8899 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8900 ;;
8901 esac
8902 lt_cv_with_aix_soname=$enable_aix_soname
8903 else case e in #(
8904 e) # Check whether --with-aix-soname was given.
8905 if test ${with_aix_soname+y}
8906 then :
8907 withval=$with_aix_soname; case $withval in
8908 aix|svr4|both)
8909 ;;
8910 *)
8911 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8912 ;;
8913 esac
8914 lt_cv_with_aix_soname=$with_aix_soname
8915 else case e in #(
8916 e) if test ${lt_cv_with_aix_soname+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else case e in #(
8920 e) lt_cv_with_aix_soname=aix ;;
8921 esac
8922 fi
8923 ;;
8924 esac
8925 fi
8926
8927 enable_aix_soname=$lt_cv_with_aix_soname ;;
8928 esac
8929 fi
8930
8931 with_aix_soname=$enable_aix_soname
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8933 printf "%s\n" "$with_aix_soname" >&6; }
8934 if test aix != "$with_aix_soname"; then
8935 # For the AIX way of multilib, we name the shared archive member
8936 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8937 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8938 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8939 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8940 if test 64 = "${OBJECT_MODE-32}"; then
8941 shared_archive_member_spec=shr_64
8942 else
8943 shared_archive_member_spec=shr
8944 fi
8945 fi
8946 ;;
8947 *)
8948 with_aix_soname=aix
8949 ;;
8950 esac
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 # This can be used to rebuild libtool when needed
8962 LIBTOOL_DEPS=$ltmain
8963
8964 # Always use our own libtool.
8965 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996 test -z "$LN_S" && LN_S="ln -s"
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 if test -n "${ZSH_VERSION+set}"; then
9012 setopt NO_GLOB_SUBST
9013 fi
9014
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9016 printf %s "checking for objdir... " >&6; }
9017 if test ${lt_cv_objdir+y}
9018 then :
9019 printf %s "(cached) " >&6
9020 else case e in #(
9021 e) rm -f .libs 2>/dev/null
9022 mkdir .libs 2>/dev/null
9023 if test -d .libs; then
9024 lt_cv_objdir=.libs
9025 else
9026 # MS-DOS does not allow filenames that begin with a dot.
9027 lt_cv_objdir=_libs
9028 fi
9029 rmdir .libs 2>/dev/null ;;
9030 esac
9031 fi
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9033 printf "%s\n" "$lt_cv_objdir" >&6; }
9034 objdir=$lt_cv_objdir
9035
9036
9037
9038
9039
9040 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9041
9042
9043
9044
9045 case $host_os in
9046 aix3*)
9047 # AIX sometimes has problems with the GCC collect2 program. For some
9048 # reason, if we set the COLLECT_NAMES environment variable, the problems
9049 # vanish in a puff of smoke.
9050 if test set != "${COLLECT_NAMES+set}"; then
9051 COLLECT_NAMES=
9052 export COLLECT_NAMES
9053 fi
9054 ;;
9055 esac
9056
9057 # Global variables:
9058 ofile=libtool
9059 can_build_shared=yes
9060
9061 # All known linkers require a '.a' archive for static linking (except MSVC and
9062 # ICC, which need '.lib').
9063 libext=a
9064
9065 with_gnu_ld=$lt_cv_prog_gnu_ld
9066
9067 old_CC=$CC
9068 old_CFLAGS=$CFLAGS
9069
9070 # Set sane defaults for various variables
9071 test -z "$CC" && CC=cc
9072 test -z "$LTCC" && LTCC=$CC
9073 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9074 test -z "$LD" && LD=ld
9075 test -z "$ac_objext" && ac_objext=o
9076
9077 func_cc_basename $compiler
9078 cc_basename=$func_cc_basename_result
9079
9080
9081 # Only perform the check for file, if the check method requires it
9082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9083 case $deplibs_check_method in
9084 file_magic*)
9085 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9087 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9088 if test ${lt_cv_path_MAGIC_CMD+y}
9089 then :
9090 printf %s "(cached) " >&6
9091 else case e in #(
9092 e) case $MAGIC_CMD in
9093 [\\/*] | ?:[\\/]*)
9094 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9095 ;;
9096 *)
9097 lt_save_MAGIC_CMD=$MAGIC_CMD
9098 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9100 for ac_dir in $ac_dummy; do
9101 IFS=$lt_save_ifs
9102 test -z "$ac_dir" && ac_dir=.
9103 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9104 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9105 if test -n "$file_magic_test_file"; then
9106 case $deplibs_check_method in
9107 "file_magic "*)
9108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9109 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9111 $EGREP "$file_magic_regex" > /dev/null; then
9112 :
9113 else
9114 cat <<_LT_EOF 1>&2
9115
9116 *** Warning: the command libtool uses to detect shared libraries,
9117 *** $file_magic_cmd, produces output that libtool cannot recognize.
9118 *** The result is that libtool may fail to recognize shared libraries
9119 *** as such. This will affect the creation of libtool libraries that
9120 *** depend on shared libraries, but programs linked with such libtool
9121 *** libraries will work regardless of this problem. Nevertheless, you
9122 *** may want to report the problem to your system manager and/or to
9123 *** bug-libtool@gnu.org
9124
9125 _LT_EOF
9126 fi ;;
9127 esac
9128 fi
9129 break
9130 fi
9131 done
9132 IFS=$lt_save_ifs
9133 MAGIC_CMD=$lt_save_MAGIC_CMD
9134 ;;
9135 esac ;;
9136 esac
9137 fi
9138
9139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9140 if test -n "$MAGIC_CMD"; then
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9142 printf "%s\n" "$MAGIC_CMD" >&6; }
9143 else
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 printf "%s\n" "no" >&6; }
9146 fi
9147
9148
9149
9150
9151
9152 if test -z "$lt_cv_path_MAGIC_CMD"; then
9153 if test -n "$ac_tool_prefix"; then
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9155 printf %s "checking for file... " >&6; }
9156 if test ${lt_cv_path_MAGIC_CMD+y}
9157 then :
9158 printf %s "(cached) " >&6
9159 else case e in #(
9160 e) case $MAGIC_CMD in
9161 [\\/*] | ?:[\\/]*)
9162 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9163 ;;
9164 *)
9165 lt_save_MAGIC_CMD=$MAGIC_CMD
9166 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9169 IFS=$lt_save_ifs
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f "$ac_dir/file"; then
9172 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9175 "file_magic "*)
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9180 :
9181 else
9182 cat <<_LT_EOF 1>&2
9183
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such. This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem. Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9192
9193 _LT_EOF
9194 fi ;;
9195 esac
9196 fi
9197 break
9198 fi
9199 done
9200 IFS=$lt_save_ifs
9201 MAGIC_CMD=$lt_save_MAGIC_CMD
9202 ;;
9203 esac ;;
9204 esac
9205 fi
9206
9207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9208 if test -n "$MAGIC_CMD"; then
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9210 printf "%s\n" "$MAGIC_CMD" >&6; }
9211 else
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 printf "%s\n" "no" >&6; }
9214 fi
9215
9216
9217 else
9218 MAGIC_CMD=:
9219 fi
9220 fi
9221
9222 fi
9223 ;;
9224 esac
9225
9226 # Use C for the default configuration in the libtool script
9227
9228 lt_save_CC=$CC
9229 ac_ext=c
9230 ac_cpp='$CPP $CPPFLAGS'
9231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9234
9235
9236 # Source file extension for C test sources.
9237 ac_ext=c
9238
9239 # Object file extension for compiled C test sources.
9240 objext=o
9241 objext=$objext
9242
9243 # Code to be used in simple compile tests
9244 lt_simple_compile_test_code="int some_variable = 0;"
9245
9246 # Code to be used in simple link tests
9247 lt_simple_link_test_code='int main(void){return(0);}'
9248
9249
9250
9251
9252
9253
9254
9255 # If no C compiler was specified, use CC.
9256 LTCC=${LTCC-"$CC"}
9257
9258 # If no C compiler flags were specified, use CFLAGS.
9259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9260
9261 # Allow CC to be a program name with arguments.
9262 compiler=$CC
9263
9264 # Save the default compiler, since it gets overwritten when the other
9265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9266 compiler_DEFAULT=$CC
9267
9268 # save warnings/boilerplate of simple test code
9269 ac_outfile=conftest.$ac_objext
9270 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9271 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9272 _lt_compiler_boilerplate=`cat conftest.err`
9273 $RM conftest*
9274
9275 ac_outfile=conftest.$ac_objext
9276 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9278 _lt_linker_boilerplate=`cat conftest.err`
9279 $RM -r conftest*
9280
9281
9282 ## CAVEAT EMPTOR:
9283 ## There is no encapsulation within the following macros, do not change
9284 ## the running order or otherwise move them around unless you know exactly
9285 ## what you are doing...
9286 if test -n "$compiler"; then
9287
9288 lt_prog_compiler_no_builtin_flag=
9289
9290 if test yes = "$GCC"; then
9291 case $cc_basename in
9292 nvcc*)
9293 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9294 *)
9295 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9296 esac
9297
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9299 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9300 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9301 then :
9302 printf %s "(cached) " >&6
9303 else case e in #(
9304 e) lt_cv_prog_compiler_rtti_exceptions=no
9305 ac_outfile=conftest.$ac_objext
9306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9307 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9308 # Insert the option either (1) after the last *FLAGS variable, or
9309 # (2) before a word containing "conftest.", or (3) at the end.
9310 # Note that $ac_compile itself does not contain backslashes and begins
9311 # with a dollar sign (not a hyphen), so the echo should work correctly.
9312 # The option is referenced via a variable to avoid confusing sed.
9313 lt_compile=`echo "$ac_compile" | $SED \
9314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9316 -e 's:$: $lt_compiler_flag:'`
9317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9318 (eval "$lt_compile" 2>conftest.err)
9319 ac_status=$?
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 if (exit $ac_status) && test -s "$ac_outfile"; then
9323 # The compiler can only warn and ignore the option if not recognized
9324 # So say no if there are warnings other than the usual output.
9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9328 lt_cv_prog_compiler_rtti_exceptions=yes
9329 fi
9330 fi
9331 $RM conftest*
9332 ;;
9333 esac
9334 fi
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9336 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9337
9338 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9340 else
9341 :
9342 fi
9343
9344 fi
9345
9346
9347
9348
9349
9350
9351 lt_prog_compiler_wl=
9352 lt_prog_compiler_pic=
9353 lt_prog_compiler_static=
9354
9355
9356 if test yes = "$GCC"; then
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_static='-static'
9359
9360 case $host_os in
9361 aix*)
9362 # All AIX code is PIC.
9363 if test ia64 = "$host_cpu"; then
9364 # AIX 5 now supports IA64 processor
9365 lt_prog_compiler_static='-Bstatic'
9366 fi
9367 lt_prog_compiler_pic='-fPIC'
9368 ;;
9369
9370 amigaos*)
9371 case $host_cpu in
9372 powerpc)
9373 # see comment about AmigaOS4 .so support
9374 lt_prog_compiler_pic='-fPIC'
9375 ;;
9376 m68k)
9377 # FIXME: we need at least 68020 code to build shared libraries, but
9378 # adding the '-m68020' flag to GCC prevents building anything better,
9379 # like '-m68040'.
9380 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9381 ;;
9382 esac
9383 ;;
9384
9385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9386 # PIC is the default for these OSes.
9387 ;;
9388
9389 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9390 # This hack is so that the source file can tell whether it is being
9391 # built for inclusion in a dll (and should export symbols for example).
9392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9393 # (--disable-auto-import) libraries
9394 lt_prog_compiler_pic='-DDLL_EXPORT'
9395 case $host_os in
9396 os2*)
9397 lt_prog_compiler_static='$wl-static'
9398 ;;
9399 esac
9400 ;;
9401
9402 darwin* | rhapsody*)
9403 # PIC is the default on this platform
9404 # Common symbols not allowed in MH_DYLIB files
9405 lt_prog_compiler_pic='-fno-common'
9406 ;;
9407
9408 haiku*)
9409 # PIC is the default for Haiku.
9410 # The "-static" flag exists, but is broken.
9411 lt_prog_compiler_static=
9412 ;;
9413
9414 hpux*)
9415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9417 # sets the default TLS model and affects inlining.
9418 case $host_cpu in
9419 hppa*64*)
9420 # +Z the default
9421 ;;
9422 *)
9423 lt_prog_compiler_pic='-fPIC'
9424 ;;
9425 esac
9426 ;;
9427
9428 interix[3-9]*)
9429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9430 # Instead, we relocate shared libraries at runtime.
9431 ;;
9432
9433 msdosdjgpp*)
9434 # Just because we use GCC doesn't mean we suddenly get shared libraries
9435 # on systems that don't support them.
9436 lt_prog_compiler_can_build_shared=no
9437 enable_shared=no
9438 ;;
9439
9440 *nto* | *qnx*)
9441 # QNX uses GNU C++, but need to define -shared option too, otherwise
9442 # it will coredump.
9443 lt_prog_compiler_pic='-fPIC -shared'
9444 ;;
9445
9446 sysv4*MP*)
9447 if test -d /usr/nec; then
9448 lt_prog_compiler_pic=-Kconform_pic
9449 fi
9450 ;;
9451
9452 *)
9453 lt_prog_compiler_pic='-fPIC'
9454 ;;
9455 esac
9456
9457 case $cc_basename in
9458 nvcc*) # Cuda Compiler Driver 2.2
9459 lt_prog_compiler_wl='-Xlinker '
9460 if test -n "$lt_prog_compiler_pic"; then
9461 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9462 fi
9463 ;;
9464 esac
9465 else
9466 # PORTME Check for flag to pass linker flags through the system compiler.
9467 case $host_os in
9468 aix*)
9469 lt_prog_compiler_wl='-Wl,'
9470 if test ia64 = "$host_cpu"; then
9471 # AIX 5 now supports IA64 processor
9472 lt_prog_compiler_static='-Bstatic'
9473 else
9474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9475 fi
9476 ;;
9477
9478 darwin* | rhapsody*)
9479 # PIC is the default on this platform
9480 # Common symbols not allowed in MH_DYLIB files
9481 lt_prog_compiler_pic='-fno-common'
9482 case $cc_basename in
9483 nagfor*)
9484 # NAG Fortran compiler
9485 lt_prog_compiler_wl='-Wl,-Wl,,'
9486 lt_prog_compiler_pic='-PIC'
9487 lt_prog_compiler_static='-Bstatic'
9488 ;;
9489 esac
9490 ;;
9491
9492 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9493 # This hack is so that the source file can tell whether it is being
9494 # built for inclusion in a dll (and should export symbols for example).
9495 lt_prog_compiler_pic='-DDLL_EXPORT'
9496 case $host_os in
9497 os2*)
9498 lt_prog_compiler_static='$wl-static'
9499 ;;
9500 esac
9501 ;;
9502
9503 hpux9* | hpux10* | hpux11*)
9504 lt_prog_compiler_wl='-Wl,'
9505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9506 # not for PA HP-UX.
9507 case $host_cpu in
9508 hppa*64*|ia64*)
9509 # +Z the default
9510 ;;
9511 *)
9512 lt_prog_compiler_pic='+Z'
9513 ;;
9514 esac
9515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9516 lt_prog_compiler_static='$wl-a ${wl}archive'
9517 ;;
9518
9519 irix5* | irix6* | nonstopux*)
9520 lt_prog_compiler_wl='-Wl,'
9521 # PIC (with -KPIC) is the default.
9522 lt_prog_compiler_static='-non_shared'
9523 ;;
9524
9525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9526 case $cc_basename in
9527 # old Intel for x86_64, which still supported -KPIC.
9528 ecc*)
9529 lt_prog_compiler_wl='-Wl,'
9530 lt_prog_compiler_pic='-KPIC'
9531 lt_prog_compiler_static='-static'
9532 ;;
9533 *flang* | ftn | f18* | f95*)
9534 # Flang compiler.
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fPIC'
9537 lt_prog_compiler_static='-static'
9538 ;;
9539 # icc used to be incompatible with GCC.
9540 # ICC 10 doesn't accept -KPIC any more.
9541 icc* | ifort*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-fPIC'
9544 lt_prog_compiler_static='-static'
9545 ;;
9546 # Lahey Fortran 8.1.
9547 lf95*)
9548 lt_prog_compiler_wl='-Wl,'
9549 lt_prog_compiler_pic='--shared'
9550 lt_prog_compiler_static='--static'
9551 ;;
9552 nagfor*)
9553 # NAG Fortran compiler
9554 lt_prog_compiler_wl='-Wl,-Wl,,'
9555 lt_prog_compiler_pic='-PIC'
9556 lt_prog_compiler_static='-Bstatic'
9557 ;;
9558 tcc*)
9559 # Fabrice Bellard et al's Tiny C Compiler
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-fPIC'
9562 lt_prog_compiler_static='-static'
9563 ;;
9564 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9565 # Portland Group compilers (*not* the Pentium gcc compiler,
9566 # which looks to be a dead project)
9567 lt_prog_compiler_wl='-Wl,'
9568 lt_prog_compiler_pic='-fpic'
9569 lt_prog_compiler_static='-Bstatic'
9570 ;;
9571 ccc*)
9572 lt_prog_compiler_wl='-Wl,'
9573 # All Alpha code is PIC.
9574 lt_prog_compiler_static='-non_shared'
9575 ;;
9576 xl* | bgxl* | bgf* | mpixl*)
9577 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9578 lt_prog_compiler_wl='-Wl,'
9579 lt_prog_compiler_pic='-qpic'
9580 lt_prog_compiler_static='-qstaticlink'
9581 ;;
9582 *)
9583 case `$CC -V 2>&1 | $SED 5q` in
9584 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9585 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9586 lt_prog_compiler_pic='-KPIC'
9587 lt_prog_compiler_static='-Bstatic'
9588 lt_prog_compiler_wl=''
9589 ;;
9590 *Sun\ F* | *Sun*Fortran*)
9591 lt_prog_compiler_pic='-KPIC'
9592 lt_prog_compiler_static='-Bstatic'
9593 lt_prog_compiler_wl='-Qoption ld '
9594 ;;
9595 *Sun\ C*)
9596 # Sun C 5.9
9597 lt_prog_compiler_pic='-KPIC'
9598 lt_prog_compiler_static='-Bstatic'
9599 lt_prog_compiler_wl='-Wl,'
9600 ;;
9601 *Intel*\ [CF]*Compiler*)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-fPIC'
9604 lt_prog_compiler_static='-static'
9605 ;;
9606 *Portland\ Group*)
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_pic='-fpic'
9609 lt_prog_compiler_static='-Bstatic'
9610 ;;
9611 esac
9612 ;;
9613 esac
9614 ;;
9615
9616 newsos6)
9617 lt_prog_compiler_pic='-KPIC'
9618 lt_prog_compiler_static='-Bstatic'
9619 ;;
9620
9621 *-mlibc)
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='-fPIC'
9624 lt_prog_compiler_static='-static'
9625 ;;
9626
9627 *nto* | *qnx*)
9628 # QNX uses GNU C++, but need to define -shared option too, otherwise
9629 # it will coredump.
9630 lt_prog_compiler_pic='-fPIC -shared'
9631 ;;
9632
9633 osf3* | osf4* | osf5*)
9634 lt_prog_compiler_wl='-Wl,'
9635 # All OSF/1 code is PIC.
9636 lt_prog_compiler_static='-non_shared'
9637 ;;
9638
9639 rdos*)
9640 lt_prog_compiler_static='-non_shared'
9641 ;;
9642
9643 serenity*)
9644 ;;
9645
9646 solaris*)
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 case $cc_basename in
9650 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9651 lt_prog_compiler_wl='-Qoption ld ';;
9652 *)
9653 lt_prog_compiler_wl='-Wl,';;
9654 esac
9655 ;;
9656
9657 sunos4*)
9658 lt_prog_compiler_wl='-Qoption ld '
9659 lt_prog_compiler_pic='-PIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 ;;
9662
9663 sysv4 | sysv4.2uw2* | sysv4.3*)
9664 lt_prog_compiler_wl='-Wl,'
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9667 ;;
9668
9669 sysv4*MP*)
9670 if test -d /usr/nec; then
9671 lt_prog_compiler_pic='-Kconform_pic'
9672 lt_prog_compiler_static='-Bstatic'
9673 fi
9674 ;;
9675
9676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-Bstatic'
9680 ;;
9681
9682 unicos*)
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_can_build_shared=no
9685 ;;
9686
9687 uts4*)
9688 lt_prog_compiler_pic='-pic'
9689 lt_prog_compiler_static='-Bstatic'
9690 ;;
9691
9692 *)
9693 lt_prog_compiler_can_build_shared=no
9694 ;;
9695 esac
9696 fi
9697
9698 case $host_os in
9699 # For platforms that do not support PIC, -DPIC is meaningless:
9700 *djgpp*)
9701 lt_prog_compiler_pic=
9702 ;;
9703 *)
9704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9705 ;;
9706 esac
9707
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9709 printf %s "checking for $compiler option to produce PIC... " >&6; }
9710 if test ${lt_cv_prog_compiler_pic+y}
9711 then :
9712 printf %s "(cached) " >&6
9713 else case e in #(
9714 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9715 esac
9716 fi
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9718 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9719 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9720
9721 #
9722 # Check to make sure the PIC flag actually works.
9723 #
9724 if test -n "$lt_prog_compiler_pic"; then
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9726 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9727 if test ${lt_cv_prog_compiler_pic_works+y}
9728 then :
9729 printf %s "(cached) " >&6
9730 else case e in #(
9731 e) lt_cv_prog_compiler_pic_works=no
9732 ac_outfile=conftest.$ac_objext
9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9735 # Insert the option either (1) after the last *FLAGS variable, or
9736 # (2) before a word containing "conftest.", or (3) at the end.
9737 # Note that $ac_compile itself does not contain backslashes and begins
9738 # with a dollar sign (not a hyphen), so the echo should work correctly.
9739 # The option is referenced via a variable to avoid confusing sed.
9740 lt_compile=`echo "$ac_compile" | $SED \
9741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9743 -e 's:$: $lt_compiler_flag:'`
9744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9745 (eval "$lt_compile" 2>conftest.err)
9746 ac_status=$?
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 if (exit $ac_status) && test -s "$ac_outfile"; then
9750 # The compiler can only warn and ignore the option if not recognized
9751 # So say no if there are warnings other than the usual output.
9752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9755 lt_cv_prog_compiler_pic_works=yes
9756 fi
9757 fi
9758 $RM conftest*
9759 ;;
9760 esac
9761 fi
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9763 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9764
9765 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9766 case $lt_prog_compiler_pic in
9767 "" | " "*) ;;
9768 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9769 esac
9770 else
9771 lt_prog_compiler_pic=
9772 lt_prog_compiler_can_build_shared=no
9773 fi
9774
9775 fi
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787 #
9788 # Check to make sure the static flag actually works.
9789 #
9790 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9792 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9793 if test ${lt_cv_prog_compiler_static_works+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else case e in #(
9797 e) lt_cv_prog_compiler_static_works=no
9798 save_LDFLAGS=$LDFLAGS
9799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9802 # The linker can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 if test -s conftest.err; then
9805 # Append any errors to the config.log.
9806 cat conftest.err 1>&5
9807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809 if diff conftest.exp conftest.er2 >/dev/null; then
9810 lt_cv_prog_compiler_static_works=yes
9811 fi
9812 else
9813 lt_cv_prog_compiler_static_works=yes
9814 fi
9815 fi
9816 $RM -r conftest*
9817 LDFLAGS=$save_LDFLAGS
9818 ;;
9819 esac
9820 fi
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9822 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9823
9824 if test yes = "$lt_cv_prog_compiler_static_works"; then
9825 :
9826 else
9827 lt_prog_compiler_static=
9828 fi
9829
9830
9831
9832
9833
9834
9835
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9837 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9838 if test ${lt_cv_prog_compiler_c_o+y}
9839 then :
9840 printf %s "(cached) " >&6
9841 else case e in #(
9842 e) lt_cv_prog_compiler_c_o=no
9843 $RM -r conftest 2>/dev/null
9844 mkdir conftest
9845 cd conftest
9846 mkdir out
9847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848
9849 lt_compiler_flag="-o out/conftest2.$ac_objext"
9850 # Insert the option either (1) after the last *FLAGS variable, or
9851 # (2) before a word containing "conftest.", or (3) at the end.
9852 # Note that $ac_compile itself does not contain backslashes and begins
9853 # with a dollar sign (not a hyphen), so the echo should work correctly.
9854 lt_compile=`echo "$ac_compile" | $SED \
9855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9857 -e 's:$: $lt_compiler_flag:'`
9858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9859 (eval "$lt_compile" 2>out/conftest.err)
9860 ac_status=$?
9861 cat out/conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9864 then
9865 # The compiler can only warn and ignore the option if not recognized
9866 # So say no if there are warnings
9867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9870 lt_cv_prog_compiler_c_o=yes
9871 fi
9872 fi
9873 chmod u+w . 2>&5
9874 $RM conftest*
9875 # SGI C++ compiler will create directory out/ii_files/ for
9876 # template instantiation
9877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9878 $RM out/* && rmdir out
9879 cd ..
9880 $RM -r conftest
9881 $RM conftest*
9882 ;;
9883 esac
9884 fi
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9886 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9887
9888
9889
9890
9891
9892
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9894 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9895 if test ${lt_cv_prog_compiler_c_o+y}
9896 then :
9897 printf %s "(cached) " >&6
9898 else case e in #(
9899 e) lt_cv_prog_compiler_c_o=no
9900 $RM -r conftest 2>/dev/null
9901 mkdir conftest
9902 cd conftest
9903 mkdir out
9904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9905
9906 lt_compiler_flag="-o out/conftest2.$ac_objext"
9907 # Insert the option either (1) after the last *FLAGS variable, or
9908 # (2) before a word containing "conftest.", or (3) at the end.
9909 # Note that $ac_compile itself does not contain backslashes and begins
9910 # with a dollar sign (not a hyphen), so the echo should work correctly.
9911 lt_compile=`echo "$ac_compile" | $SED \
9912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9914 -e 's:$: $lt_compiler_flag:'`
9915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9916 (eval "$lt_compile" 2>out/conftest.err)
9917 ac_status=$?
9918 cat out/conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9921 then
9922 # The compiler can only warn and ignore the option if not recognized
9923 # So say no if there are warnings
9924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9927 lt_cv_prog_compiler_c_o=yes
9928 fi
9929 fi
9930 chmod u+w . 2>&5
9931 $RM conftest*
9932 # SGI C++ compiler will create directory out/ii_files/ for
9933 # template instantiation
9934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9935 $RM out/* && rmdir out
9936 cd ..
9937 $RM -r conftest
9938 $RM conftest*
9939 ;;
9940 esac
9941 fi
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9943 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9944
9945
9946
9947
9948 hard_links=nottested
9949 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9950 # do not overwrite the value of need_locks provided by the user
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9952 printf %s "checking if we can lock with hard links... " >&6; }
9953 hard_links=yes
9954 $RM conftest*
9955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9956 touch conftest.a
9957 ln conftest.a conftest.b 2>&5 || hard_links=no
9958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9960 printf "%s\n" "$hard_links" >&6; }
9961 if test no = "$hard_links"; then
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9963 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9964 need_locks=warn
9965 fi
9966 else
9967 need_locks=no
9968 fi
9969
9970
9971
9972
9973
9974
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9976 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9977
9978 runpath_var=
9979 allow_undefined_flag=
9980 always_export_symbols=no
9981 archive_cmds=
9982 archive_expsym_cmds=
9983 compiler_needs_object=no
9984 enable_shared_with_static_runtimes=no
9985 export_dynamic_flag_spec=
9986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9987 hardcode_automatic=no
9988 hardcode_direct=no
9989 hardcode_direct_absolute=no
9990 hardcode_libdir_flag_spec=
9991 hardcode_libdir_separator=
9992 hardcode_minus_L=no
9993 hardcode_shlibpath_var=unsupported
9994 inherit_rpath=no
9995 link_all_deplibs=unknown
9996 module_cmds=
9997 module_expsym_cmds=
9998 old_archive_from_new_cmds=
9999 old_archive_from_expsyms_cmds=
10000 thread_safe_flag_spec=
10001 whole_archive_flag_spec=
10002 # include_expsyms should be a list of space-separated symbols to be *always*
10003 # included in the symbol list
10004 include_expsyms=
10005 # exclude_expsyms can be an extended regexp of symbols to exclude
10006 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10007 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10008 # as well as any symbol that contains 'd'.
10009 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10010 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10011 # platforms (ab)use it in PIC code, but their linkers get confused if
10012 # the symbol is explicitly referenced. Since portable code cannot
10013 # rely on this symbol name, it's probably fine to never include it in
10014 # preloaded symbol tables.
10015 # Exclude shared library initialization/finalization symbols.
10016 extract_expsyms_cmds=
10017
10018 case $host_os in
10019 cygwin* | mingw* | windows* | pw32* | cegcc*)
10020 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10021 # When not using gcc, we currently assume that we are using
10022 # Microsoft Visual C++ or Intel C++ Compiler.
10023 if test yes != "$GCC"; then
10024 with_gnu_ld=no
10025 fi
10026 ;;
10027 interix*)
10028 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10029 with_gnu_ld=yes
10030 ;;
10031 esac
10032
10033 ld_shlibs=yes
10034
10035 # On some targets, GNU ld is compatible enough with the native linker
10036 # that we're better off using the native interface for both.
10037 lt_use_gnu_ld_interface=no
10038 if test yes = "$with_gnu_ld"; then
10039 case $host_os in
10040 aix*)
10041 # The AIX port of GNU ld has always aspired to compatibility
10042 # with the native linker. However, as the warning in the GNU ld
10043 # block says, versions before 2.19.5* couldn't really create working
10044 # shared libraries, regardless of the interface used.
10045 case `$LD -v 2>&1` in
10046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10049 *)
10050 lt_use_gnu_ld_interface=yes
10051 ;;
10052 esac
10053 ;;
10054 *)
10055 lt_use_gnu_ld_interface=yes
10056 ;;
10057 esac
10058 fi
10059
10060 if test yes = "$lt_use_gnu_ld_interface"; then
10061 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 wlarc='$wl'
10063
10064 # Set some defaults for GNU ld with shared library support. These
10065 # are reset later if shared libraries are not supported. Putting them
10066 # here allows them to be overridden if necessary.
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069 export_dynamic_flag_spec='$wl--export-dynamic'
10070 # ancient GNU ld didn't support --whole-archive et. al.
10071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10073 else
10074 whole_archive_flag_spec=
10075 fi
10076 supports_anon_versioning=no
10077 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10078 *GNU\ gold*) supports_anon_versioning=yes ;;
10079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082 *\ 2.11.*) ;; # other 2.11 versions
10083 *) supports_anon_versioning=yes ;;
10084 esac
10085
10086 # See if GNU ld supports shared libraries.
10087 case $host_os in
10088 aix[3-9]*)
10089 # On AIX/PPC, the GNU linker is very broken
10090 if test ia64 != "$host_cpu"; then
10091 ld_shlibs=no
10092 cat <<_LT_EOF 1>&2
10093
10094 *** Warning: the GNU linker, at least up to release 2.19, is reported
10095 *** to be unable to reliably create shared libraries on AIX.
10096 *** Therefore, libtool is disabling shared libraries support. If you
10097 *** really care for shared libraries, you may want to install binutils
10098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10099 *** You will then need to restart the configuration process.
10100
10101 _LT_EOF
10102 fi
10103 ;;
10104
10105 amigaos*)
10106 case $host_cpu in
10107 powerpc)
10108 # see comment about AmigaOS4 .so support
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110 archive_expsym_cmds=''
10111 ;;
10112 m68k)
10113 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)'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_minus_L=yes
10116 ;;
10117 esac
10118 ;;
10119
10120 beos*)
10121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 allow_undefined_flag=unsupported
10123 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10124 # support --undefined. This deserves some investigation. FIXME
10125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10126 else
10127 ld_shlibs=no
10128 fi
10129 ;;
10130
10131 cygwin* | mingw* | windows* | pw32* | cegcc*)
10132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133 # as there is no search path for DLLs.
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 export_dynamic_flag_spec='$wl--export-all-symbols'
10136 allow_undefined_flag=unsupported
10137 always_export_symbols=no
10138 enable_shared_with_static_runtimes=yes
10139 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'
10140 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10141 file_list_spec='@'
10142
10143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10145 # If the export-symbols file already is a .def file, use it as
10146 # is; otherwise, prepend EXPORTS...
10147 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10148 cp $export_symbols $output_objdir/$soname.def;
10149 else
10150 echo EXPORTS > $output_objdir/$soname.def;
10151 cat $export_symbols >> $output_objdir/$soname.def;
10152 fi~
10153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 else
10155 ld_shlibs=no
10156 fi
10157 ;;
10158
10159 haiku*)
10160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10161 link_all_deplibs=no
10162 ;;
10163
10164 os2*)
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_minus_L=yes
10167 allow_undefined_flag=unsupported
10168 shrext_cmds=.dll
10169 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10172 $ECHO EXPORTS >> $output_objdir/$libname.def~
10173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10175 emximp -o $lib $output_objdir/$libname.def'
10176 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10179 $ECHO EXPORTS >> $output_objdir/$libname.def~
10180 prefix_cmds="$SED"~
10181 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10182 prefix_cmds="$prefix_cmds -e 1d";
10183 fi~
10184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10187 emximp -o $lib $output_objdir/$libname.def'
10188 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10189 enable_shared_with_static_runtimes=yes
10190 file_list_spec='@'
10191 ;;
10192
10193 interix[3-9]*)
10194 hardcode_direct=no
10195 hardcode_shlibpath_var=no
10196 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10197 export_dynamic_flag_spec='$wl-E'
10198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10199 # Instead, shared libraries are loaded at an image base (0x10000000 by
10200 # default) and relocated if they conflict, which is a slow very memory
10201 # consuming and fragmenting process. To avoid this, we pick a random,
10202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10205 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'
10206 ;;
10207
10208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10209 tmp_diet=no
10210 if test linux-dietlibc = "$host_os"; then
10211 case $cc_basename in
10212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10213 esac
10214 fi
10215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10216 && test no = "$tmp_diet"
10217 then
10218 tmp_addflag=' $pic_flag'
10219 tmp_sharedflag='-shared'
10220 case $cc_basename,$host_cpu in
10221 pgcc*) # Portland Group C compiler
10222 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'
10223 tmp_addflag=' $pic_flag'
10224 ;;
10225 pgf77* | pgf90* | pgf95* | pgfortran*)
10226 # Portland Group f77 and f90 compilers
10227 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'
10228 tmp_addflag=' $pic_flag -Mnomain' ;;
10229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10230 tmp_addflag=' -i_dynamic' ;;
10231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10232 tmp_addflag=' -i_dynamic -nofor_main' ;;
10233 ifc* | ifort*) # Intel Fortran compiler
10234 tmp_addflag=' -nofor_main' ;;
10235 lf95*) # Lahey Fortran 8.1
10236 whole_archive_flag_spec=
10237 tmp_sharedflag='--shared' ;;
10238 nagfor*) # NAGFOR 5.3
10239 tmp_sharedflag='-Wl,-shared' ;;
10240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10241 tmp_sharedflag='-qmkshrobj'
10242 tmp_addflag= ;;
10243 nvcc*) # Cuda Compiler Driver 2.2
10244 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'
10245 compiler_needs_object=yes
10246 ;;
10247 esac
10248 case `$CC -V 2>&1 | $SED 5q` in
10249 *Sun\ C*) # Sun C 5.9
10250 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'
10251 compiler_needs_object=yes
10252 tmp_sharedflag='-G' ;;
10253 *Sun\ F*) # Sun Fortran 8.3
10254 tmp_sharedflag='-G' ;;
10255 esac
10256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10257
10258 if test yes = "$supports_anon_versioning"; then
10259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10260 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10261 echo "local: *; };" >> $output_objdir/$libname.ver~
10262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10263 fi
10264
10265 case $cc_basename in
10266 tcc*)
10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268 export_dynamic_flag_spec='-rdynamic'
10269 ;;
10270 xlf* | bgf* | bgxlf* | mpixlf*)
10271 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10272 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10275 if test yes = "$supports_anon_versioning"; then
10276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10277 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10278 echo "local: *; };" >> $output_objdir/$libname.ver~
10279 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10280 fi
10281 ;;
10282 esac
10283 else
10284 ld_shlibs=no
10285 fi
10286 ;;
10287
10288 *-mlibc)
10289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10290 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10291 ;;
10292
10293 netbsd* | netbsdelf*-gnu)
10294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10296 wlarc=
10297 else
10298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10299 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10300 fi
10301 ;;
10302
10303 solaris*)
10304 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10305 ld_shlibs=no
10306 cat <<_LT_EOF 1>&2
10307
10308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10309 *** create shared libraries on Solaris systems. Therefore, libtool
10310 *** is disabling shared libraries support. We urge you to upgrade GNU
10311 *** binutils to release 2.9.1 or newer. Another option is to modify
10312 *** your PATH or compiler configuration so that the native linker is
10313 *** used, and then restart.
10314
10315 _LT_EOF
10316 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10318 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10319 else
10320 ld_shlibs=no
10321 fi
10322 ;;
10323
10324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10325 case `$LD -v 2>&1` in
10326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10327 ld_shlibs=no
10328 cat <<_LT_EOF 1>&2
10329
10330 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10331 *** reliably create shared libraries on SCO systems. Therefore, libtool
10332 *** is disabling shared libraries support. We urge you to upgrade GNU
10333 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10334 *** your PATH or compiler configuration so that the native linker is
10335 *** used, and then restart.
10336
10337 _LT_EOF
10338 ;;
10339 *)
10340 # For security reasons, it is highly recommended that you always
10341 # use absolute paths for naming shared libraries, and exclude the
10342 # DT_RUNPATH tag from executables and libraries. But doing so
10343 # requires that you compile everything twice, which is a pain.
10344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10348 else
10349 ld_shlibs=no
10350 fi
10351 ;;
10352 esac
10353 ;;
10354
10355 sunos4*)
10356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10357 wlarc=
10358 hardcode_direct=yes
10359 hardcode_shlibpath_var=no
10360 ;;
10361
10362 *)
10363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10365 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10366 else
10367 ld_shlibs=no
10368 fi
10369 ;;
10370 esac
10371
10372 if test no = "$ld_shlibs"; then
10373 runpath_var=
10374 hardcode_libdir_flag_spec=
10375 export_dynamic_flag_spec=
10376 whole_archive_flag_spec=
10377 fi
10378 else
10379 # PORTME fill in a description of your system's linker (not GNU ld)
10380 case $host_os in
10381 aix3*)
10382 allow_undefined_flag=unsupported
10383 always_export_symbols=yes
10384 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'
10385 # Note: this linker hardcodes the directories in LIBPATH if there
10386 # are no directories specified by -L.
10387 hardcode_minus_L=yes
10388 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10389 # Neither direct hardcoding nor static linking is supported with a
10390 # broken collect2.
10391 hardcode_direct=unsupported
10392 fi
10393 ;;
10394
10395 aix[4-9]*)
10396 if test ia64 = "$host_cpu"; then
10397 # On IA64, the linker does run time linking by default, so we don't
10398 # have to do anything special.
10399 aix_use_runtimelinking=no
10400 exp_sym_flag='-Bexport'
10401 no_entry_flag=
10402 else
10403 # If we're using GNU nm, then we don't want the "-C" option.
10404 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10405 # Without the "-l" option, or with the "-B" option, AIX nm treats
10406 # weak defined symbols like other global defined symbols, whereas
10407 # GNU nm marks them as "W".
10408 # While the 'weak' keyword is ignored in the Export File, we need
10409 # it in the Import File for the 'aix-soname' feature, so we have
10410 # to replace the "-B" option with "-P" for AIX nm.
10411 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10412 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'
10413 else
10414 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'
10415 fi
10416 aix_use_runtimelinking=no
10417
10418 # Test if we are trying to use run time linking or normal
10419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10420 # have runtime linking enabled, and use it for executables.
10421 # For shared libraries, we enable/disable runtime linking
10422 # depending on the kind of the shared library created -
10423 # when "with_aix_soname,aix_use_runtimelinking" is:
10424 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10425 # "aix,yes" lib.so shared, rtl:yes, for executables
10426 # lib.a static archive
10427 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10428 # lib.a(lib.so.V) shared, rtl:no, for executables
10429 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10430 # lib.a(lib.so.V) shared, rtl:no
10431 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10432 # lib.a static archive
10433 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10434 for ld_flag in $LDFLAGS; do
10435 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10436 aix_use_runtimelinking=yes
10437 break
10438 fi
10439 done
10440 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10441 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10442 # so we don't have lib.a shared libs to link our executables.
10443 # We have to force runtime linking in this case.
10444 aix_use_runtimelinking=yes
10445 LDFLAGS="$LDFLAGS -Wl,-brtl"
10446 fi
10447 ;;
10448 esac
10449
10450 exp_sym_flag='-bexport'
10451 no_entry_flag='-bnoentry'
10452 fi
10453
10454 # When large executables or shared objects are built, AIX ld can
10455 # have problems creating the table of contents. If linking a library
10456 # or program results in "error TOC overflow" add -mminimal-toc to
10457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10459
10460 archive_cmds=''
10461 hardcode_direct=yes
10462 hardcode_direct_absolute=yes
10463 hardcode_libdir_separator=':'
10464 link_all_deplibs=yes
10465 file_list_spec='$wl-f,'
10466 case $with_aix_soname,$aix_use_runtimelinking in
10467 aix,*) ;; # traditional, no import file
10468 svr4,* | *,yes) # use import file
10469 # The Import File defines what to hardcode.
10470 hardcode_direct=no
10471 hardcode_direct_absolute=no
10472 ;;
10473 esac
10474
10475 if test yes = "$GCC"; then
10476 case $host_os in aix4.[012]|aix4.[012].*)
10477 # We only want to do this on AIX 4.2 and lower, the check
10478 # below for broken collect2 doesn't work under 4.3+
10479 collect2name=`$CC -print-prog-name=collect2`
10480 if test -f "$collect2name" &&
10481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10482 then
10483 # We have reworked collect2
10484 :
10485 else
10486 # We have old collect2
10487 hardcode_direct=unsupported
10488 # It fails to find uninstalled libraries when the uninstalled
10489 # path is not listed in the libpath. Setting hardcode_minus_L
10490 # to unsupported forces relinking
10491 hardcode_minus_L=yes
10492 hardcode_libdir_flag_spec='-L$libdir'
10493 hardcode_libdir_separator=
10494 fi
10495 ;;
10496 esac
10497 shared_flag='-shared'
10498 if test yes = "$aix_use_runtimelinking"; then
10499 shared_flag="$shared_flag "'$wl-G'
10500 fi
10501 # Need to ensure runtime linking is disabled for the traditional
10502 # shared library, or the linker may eventually find shared libraries
10503 # /with/ Import File - we do not want to mix them.
10504 shared_flag_aix='-shared'
10505 shared_flag_svr4='-shared $wl-G'
10506 else
10507 # not using gcc
10508 if test ia64 = "$host_cpu"; then
10509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10510 # chokes on -Wl,-G. The following line is correct:
10511 shared_flag='-G'
10512 else
10513 if test yes = "$aix_use_runtimelinking"; then
10514 shared_flag='$wl-G'
10515 else
10516 shared_flag='$wl-bM:SRE'
10517 fi
10518 shared_flag_aix='$wl-bM:SRE'
10519 shared_flag_svr4='$wl-G'
10520 fi
10521 fi
10522
10523 export_dynamic_flag_spec='$wl-bexpall'
10524 # It seems that -bexpall does not export symbols beginning with
10525 # underscore (_), so it is better to generate a list of symbols to export.
10526 always_export_symbols=yes
10527 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10528 # Warning - without using the other runtime loading flags (-brtl),
10529 # -berok will link without error, but may produce a broken library.
10530 allow_undefined_flag='-berok'
10531 # Determine the default libpath from the value encoded in an
10532 # empty executable.
10533 if test set = "${lt_cv_aix_libpath+set}"; then
10534 aix_libpath=$lt_cv_aix_libpath
10535 else
10536 if test ${lt_cv_aix_libpath_+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542
10543 int
10544 main (void)
10545 {
10546
10547 ;
10548 return 0;
10549 }
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"
10552 then :
10553
10554 lt_aix_libpath_sed='
10555 /Import File Strings/,/^$/ {
10556 /^0/ {
10557 s/^0 *\([^ ]*\) *$/\1/
10558 p
10559 }
10560 }'
10561 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10562 # Check for a 64-bit object if we didn't find anything.
10563 if test -z "$lt_cv_aix_libpath_"; then
10564 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10565 fi
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10568 conftest$ac_exeext conftest.$ac_ext
10569 if test -z "$lt_cv_aix_libpath_"; then
10570 lt_cv_aix_libpath_=/usr/lib:/lib
10571 fi
10572 ;;
10573 esac
10574 fi
10575
10576 aix_libpath=$lt_cv_aix_libpath_
10577 fi
10578
10579 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10580 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
10581 else
10582 if test ia64 = "$host_cpu"; then
10583 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10584 allow_undefined_flag="-z nodefs"
10585 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"
10586 else
10587 # Determine the default libpath from the value encoded in an
10588 # empty executable.
10589 if test set = "${lt_cv_aix_libpath+set}"; then
10590 aix_libpath=$lt_cv_aix_libpath
10591 else
10592 if test ${lt_cv_aix_libpath_+y}
10593 then :
10594 printf %s "(cached) " >&6
10595 else case e in #(
10596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598
10599 int
10600 main (void)
10601 {
10602
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_link "$LINENO"
10608 then :
10609
10610 lt_aix_libpath_sed='
10611 /Import File Strings/,/^$/ {
10612 /^0/ {
10613 s/^0 *\([^ ]*\) *$/\1/
10614 p
10615 }
10616 }'
10617 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10618 # Check for a 64-bit object if we didn't find anything.
10619 if test -z "$lt_cv_aix_libpath_"; then
10620 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10621 fi
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test -z "$lt_cv_aix_libpath_"; then
10626 lt_cv_aix_libpath_=/usr/lib:/lib
10627 fi
10628 ;;
10629 esac
10630 fi
10631
10632 aix_libpath=$lt_cv_aix_libpath_
10633 fi
10634
10635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10636 # Warning - without using the other run time loading flags,
10637 # -berok will link without error, but may produce a broken library.
10638 no_undefined_flag=' $wl-bernotok'
10639 allow_undefined_flag=' $wl-berok'
10640 if test yes = "$with_gnu_ld"; then
10641 # We only use this code for GNU lds that support --whole-archive.
10642 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10643 else
10644 # Exported symbols can be pulled into shared objects from archives
10645 whole_archive_flag_spec='$convenience'
10646 fi
10647 archive_cmds_need_lc=yes
10648 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10649 # -brtl affects multiple linker settings, -berok does not and is overridden later
10650 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10651 if test svr4 != "$with_aix_soname"; then
10652 # This is similar to how AIX traditionally builds its shared libraries.
10653 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'
10654 fi
10655 if test aix != "$with_aix_soname"; then
10656 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'
10657 else
10658 # used by -dlpreopen to get the symbols
10659 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10660 fi
10661 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10662 fi
10663 fi
10664 ;;
10665
10666 amigaos*)
10667 case $host_cpu in
10668 powerpc)
10669 # see comment about AmigaOS4 .so support
10670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10671 archive_expsym_cmds=''
10672 ;;
10673 m68k)
10674 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)'
10675 hardcode_libdir_flag_spec='-L$libdir'
10676 hardcode_minus_L=yes
10677 ;;
10678 esac
10679 ;;
10680
10681 bsdi[45]*)
10682 export_dynamic_flag_spec=-rdynamic
10683 ;;
10684
10685 cygwin* | mingw* | windows* | pw32* | cegcc*)
10686 # When not using gcc, we currently assume that we are using
10687 # Microsoft Visual C++ or Intel C++ Compiler.
10688 # hardcode_libdir_flag_spec is actually meaningless, as there is
10689 # no search path for DLLs.
10690 case $cc_basename in
10691 cl* | icl*)
10692 # Native MSVC or ICC
10693 hardcode_libdir_flag_spec=' '
10694 allow_undefined_flag=unsupported
10695 always_export_symbols=yes
10696 file_list_spec='@'
10697 # Tell ltmain to make .lib files, not .a files.
10698 libext=lib
10699 # Tell ltmain to make .dll files, not .so files.
10700 shrext_cmds=.dll
10701 # FIXME: Setting linknames here is a bad hack.
10702 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10703 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10704 cp "$export_symbols" "$output_objdir/$soname.def";
10705 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10706 else
10707 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10708 fi~
10709 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10710 linknames='
10711 # The linker will not automatically build a static lib if we build a DLL.
10712 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10713 enable_shared_with_static_runtimes=yes
10714 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10716 # Don't use ranlib
10717 old_postinstall_cmds='chmod 644 $oldlib'
10718 postlink_cmds='lt_outputfile="@OUTPUT@"~
10719 lt_tool_outputfile="@TOOL_OUTPUT@"~
10720 case $lt_outputfile in
10721 *.exe|*.EXE) ;;
10722 *)
10723 lt_outputfile=$lt_outputfile.exe
10724 lt_tool_outputfile=$lt_tool_outputfile.exe
10725 ;;
10726 esac~
10727 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10728 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10729 $RM "$lt_outputfile.manifest";
10730 fi'
10731 ;;
10732 *)
10733 # Assume MSVC and ICC wrapper
10734 hardcode_libdir_flag_spec=' '
10735 allow_undefined_flag=unsupported
10736 # Tell ltmain to make .lib files, not .a files.
10737 libext=lib
10738 # Tell ltmain to make .dll files, not .so files.
10739 shrext_cmds=.dll
10740 # FIXME: Setting linknames here is a bad hack.
10741 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10742 # The linker will automatically build a .lib file if we build a DLL.
10743 old_archive_from_new_cmds='true'
10744 # FIXME: Should let the user specify the lib program.
10745 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10746 enable_shared_with_static_runtimes=yes
10747 ;;
10748 esac
10749 ;;
10750
10751 darwin* | rhapsody*)
10752
10753
10754 archive_cmds_need_lc=no
10755 hardcode_direct=no
10756 hardcode_automatic=yes
10757 hardcode_shlibpath_var=unsupported
10758 if test yes = "$lt_cv_ld_force_load"; then
10759 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\"`'
10760
10761 else
10762 whole_archive_flag_spec=''
10763 fi
10764 link_all_deplibs=yes
10765 allow_undefined_flag=$_lt_dar_allow_undefined
10766 case $cc_basename in
10767 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10768 *) _lt_dar_can_shared=$GCC ;;
10769 esac
10770 if test yes = "$_lt_dar_can_shared"; then
10771 output_verbose_link_cmd=func_echo_all
10772 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10773 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10774 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"
10775 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"
10776
10777 else
10778 ld_shlibs=no
10779 fi
10780
10781 ;;
10782
10783 dgux*)
10784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10785 hardcode_libdir_flag_spec='-L$libdir'
10786 hardcode_shlibpath_var=no
10787 ;;
10788
10789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10790 # support. Future versions do this automatically, but an explicit c++rt0.o
10791 # does not break anything, and helps significantly (at the cost of a little
10792 # extra space).
10793 freebsd2.2*)
10794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10795 hardcode_libdir_flag_spec='-R$libdir'
10796 hardcode_direct=yes
10797 hardcode_shlibpath_var=no
10798 ;;
10799
10800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10801 freebsd2.*)
10802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_direct=yes
10804 hardcode_minus_L=yes
10805 hardcode_shlibpath_var=no
10806 ;;
10807
10808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10809 freebsd* | dragonfly* | midnightbsd*)
10810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10811 hardcode_libdir_flag_spec='-R$libdir'
10812 hardcode_direct=yes
10813 hardcode_shlibpath_var=no
10814 ;;
10815
10816 hpux9*)
10817 if test yes = "$GCC"; then
10818 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'
10819 else
10820 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'
10821 fi
10822 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10823 hardcode_libdir_separator=:
10824 hardcode_direct=yes
10825
10826 # hardcode_minus_L: Not really in the search PATH,
10827 # but as the default location of the library.
10828 hardcode_minus_L=yes
10829 export_dynamic_flag_spec='$wl-E'
10830 ;;
10831
10832 hpux10*)
10833 if test yes,no = "$GCC,$with_gnu_ld"; then
10834 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10835 else
10836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10837 fi
10838 if test no = "$with_gnu_ld"; then
10839 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10840 hardcode_libdir_separator=:
10841 hardcode_direct=yes
10842 hardcode_direct_absolute=yes
10843 export_dynamic_flag_spec='$wl-E'
10844 # hardcode_minus_L: Not really in the search PATH,
10845 # but as the default location of the library.
10846 hardcode_minus_L=yes
10847 fi
10848 ;;
10849
10850 hpux11*)
10851 if test yes,no = "$GCC,$with_gnu_ld"; then
10852 case $host_cpu in
10853 hppa*64*)
10854 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 ;;
10856 ia64*)
10857 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10858 ;;
10859 *)
10860 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10861 ;;
10862 esac
10863 else
10864 case $host_cpu in
10865 hppa*64*)
10866 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 ;;
10868 ia64*)
10869 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10870 ;;
10871 *)
10872
10873 # Older versions of the 11.00 compiler do not understand -b yet
10874 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10876 printf %s "checking if $CC understands -b... " >&6; }
10877 if test ${lt_cv_prog_compiler__b+y}
10878 then :
10879 printf %s "(cached) " >&6
10880 else case e in #(
10881 e) lt_cv_prog_compiler__b=no
10882 save_LDFLAGS=$LDFLAGS
10883 LDFLAGS="$LDFLAGS -b"
10884 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10886 # The linker can only warn and ignore the option if not recognized
10887 # So say no if there are warnings
10888 if test -s conftest.err; then
10889 # Append any errors to the config.log.
10890 cat conftest.err 1>&5
10891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10893 if diff conftest.exp conftest.er2 >/dev/null; then
10894 lt_cv_prog_compiler__b=yes
10895 fi
10896 else
10897 lt_cv_prog_compiler__b=yes
10898 fi
10899 fi
10900 $RM -r conftest*
10901 LDFLAGS=$save_LDFLAGS
10902 ;;
10903 esac
10904 fi
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10906 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10907
10908 if test yes = "$lt_cv_prog_compiler__b"; then
10909 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10910 else
10911 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10912 fi
10913
10914 ;;
10915 esac
10916 fi
10917 if test no = "$with_gnu_ld"; then
10918 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10919 hardcode_libdir_separator=:
10920
10921 case $host_cpu in
10922 hppa*64*|ia64*)
10923 hardcode_direct=no
10924 hardcode_shlibpath_var=no
10925 ;;
10926 *)
10927 hardcode_direct=yes
10928 hardcode_direct_absolute=yes
10929 export_dynamic_flag_spec='$wl-E'
10930
10931 # hardcode_minus_L: Not really in the search PATH,
10932 # but as the default location of the library.
10933 hardcode_minus_L=yes
10934 ;;
10935 esac
10936 fi
10937 ;;
10938
10939 irix5* | irix6* | nonstopux*)
10940 if test yes = "$GCC"; then
10941 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'
10942 # Try to use the -exported_symbol ld option, if it does not
10943 # work, assume that -exports_file does not work either and
10944 # implicitly export all symbols.
10945 # This should be the same for all languages, so no per-tag cache variable.
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10947 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10948 if test ${lt_cv_irix_exported_symbol+y}
10949 then :
10950 printf %s "(cached) " >&6
10951 else case e in #(
10952 e) save_LDFLAGS=$LDFLAGS
10953 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 int foo (void) { return 0; }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"
10959 then :
10960 lt_cv_irix_exported_symbol=yes
10961 else case e in #(
10962 e) lt_cv_irix_exported_symbol=no ;;
10963 esac
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LDFLAGS=$save_LDFLAGS ;;
10968 esac
10969 fi
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10971 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10972 if test yes = "$lt_cv_irix_exported_symbol"; then
10973 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'
10974 fi
10975 else
10976 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'
10977 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'
10978 fi
10979 archive_cmds_need_lc='no'
10980 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10981 hardcode_libdir_separator=:
10982 inherit_rpath=yes
10983 link_all_deplibs=yes
10984 ;;
10985
10986 linux*)
10987 case $cc_basename in
10988 tcc*)
10989 # Fabrice Bellard et al's Tiny C Compiler
10990 ld_shlibs=yes
10991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10993 ;;
10994 esac
10995 ;;
10996
10997 *-mlibc)
10998 ;;
10999
11000 netbsd* | netbsdelf*-gnu)
11001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11003 else
11004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11005 fi
11006 hardcode_libdir_flag_spec='-R$libdir'
11007 hardcode_direct=yes
11008 hardcode_shlibpath_var=no
11009 ;;
11010
11011 newsos6)
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_direct=yes
11014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11015 hardcode_libdir_separator=:
11016 hardcode_shlibpath_var=no
11017 ;;
11018
11019 *nto* | *qnx*)
11020 ;;
11021
11022 openbsd*)
11023 if test -f /usr/libexec/ld.so; then
11024 hardcode_direct=yes
11025 hardcode_shlibpath_var=no
11026 hardcode_direct_absolute=yes
11027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11030 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11031 export_dynamic_flag_spec='$wl-E'
11032 else
11033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11035 fi
11036 else
11037 ld_shlibs=no
11038 fi
11039 ;;
11040
11041 os2*)
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 hardcode_minus_L=yes
11044 allow_undefined_flag=unsupported
11045 shrext_cmds=.dll
11046 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11049 $ECHO EXPORTS >> $output_objdir/$libname.def~
11050 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11051 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11052 emximp -o $lib $output_objdir/$libname.def'
11053 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11054 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11055 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11056 $ECHO EXPORTS >> $output_objdir/$libname.def~
11057 prefix_cmds="$SED"~
11058 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11059 prefix_cmds="$prefix_cmds -e 1d";
11060 fi~
11061 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11062 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11063 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11064 emximp -o $lib $output_objdir/$libname.def'
11065 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11066 enable_shared_with_static_runtimes=yes
11067 file_list_spec='@'
11068 ;;
11069
11070 osf3*)
11071 if test yes = "$GCC"; then
11072 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11073 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'
11074 else
11075 allow_undefined_flag=' -expect_unresolved \*'
11076 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'
11077 fi
11078 archive_cmds_need_lc='no'
11079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11080 hardcode_libdir_separator=:
11081 ;;
11082
11083 osf4* | osf5*) # as osf3* with the addition of -msym flag
11084 if test yes = "$GCC"; then
11085 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11086 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'
11087 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11088 else
11089 allow_undefined_flag=' -expect_unresolved \*'
11090 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'
11091 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~
11092 $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'
11093
11094 # Both c and cxx compiler support -rpath directly
11095 hardcode_libdir_flag_spec='-rpath $libdir'
11096 fi
11097 archive_cmds_need_lc='no'
11098 hardcode_libdir_separator=:
11099 ;;
11100
11101 serenity*)
11102 ;;
11103
11104 solaris*)
11105 no_undefined_flag=' -z defs'
11106 if test yes = "$GCC"; then
11107 wlarc='$wl'
11108 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11110 $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'
11111 else
11112 case `$CC -V 2>&1` in
11113 *"Compilers 5.0"*)
11114 wlarc=''
11115 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11117 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11118 ;;
11119 *)
11120 wlarc='$wl'
11121 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11123 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11124 ;;
11125 esac
11126 fi
11127 hardcode_libdir_flag_spec='-R$libdir'
11128 hardcode_shlibpath_var=no
11129 case $host_os in
11130 solaris2.[0-5] | solaris2.[0-5].*) ;;
11131 *)
11132 # The compiler driver will combine and reorder linker options,
11133 # but understands '-z linker_flag'. GCC discards it without '$wl',
11134 # but is careful enough not to reorder.
11135 # Supported since Solaris 2.6 (maybe 2.5.1?)
11136 if test yes = "$GCC"; then
11137 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11138 else
11139 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11140 fi
11141 ;;
11142 esac
11143 link_all_deplibs=yes
11144 ;;
11145
11146 sunos4*)
11147 if test sequent = "$host_vendor"; then
11148 # Use $CC to link under sequent, because it throws in some extra .o
11149 # files that make .init and .fini sections work.
11150 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11151 else
11152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11153 fi
11154 hardcode_libdir_flag_spec='-L$libdir'
11155 hardcode_direct=yes
11156 hardcode_minus_L=yes
11157 hardcode_shlibpath_var=no
11158 ;;
11159
11160 sysv4)
11161 case $host_vendor in
11162 sni)
11163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_direct=yes # is this really true???
11165 ;;
11166 siemens)
11167 ## LD is ld it makes a PLAMLIB
11168 ## CC just makes a GrossModule.
11169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11170 reload_cmds='$CC -r -o $output$reload_objs'
11171 hardcode_direct=no
11172 ;;
11173 motorola)
11174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11176 ;;
11177 esac
11178 runpath_var='LD_RUN_PATH'
11179 hardcode_shlibpath_var=no
11180 ;;
11181
11182 sysv4.3*)
11183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11184 hardcode_shlibpath_var=no
11185 export_dynamic_flag_spec='-Bexport'
11186 ;;
11187
11188 sysv4*MP*)
11189 if test -d /usr/nec; then
11190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11191 hardcode_shlibpath_var=no
11192 runpath_var=LD_RUN_PATH
11193 hardcode_runpath_var=yes
11194 ld_shlibs=yes
11195 fi
11196 ;;
11197
11198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11199 no_undefined_flag='$wl-z,text'
11200 archive_cmds_need_lc=no
11201 hardcode_shlibpath_var=no
11202 runpath_var='LD_RUN_PATH'
11203
11204 if test yes = "$GCC"; then
11205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11207 else
11208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 fi
11211 ;;
11212
11213 sysv5* | sco3.2v5* | sco5v6*)
11214 # Note: We CANNOT use -z defs as we might desire, because we do not
11215 # link with -lc, and that would cause any symbols used from libc to
11216 # always be unresolved, which means just about no library would
11217 # ever link correctly. If we're not using GNU ld we use -z text
11218 # though, which does catch some bad symbols but isn't as heavy-handed
11219 # as -z defs.
11220 no_undefined_flag='$wl-z,text'
11221 allow_undefined_flag='$wl-z,nodefs'
11222 archive_cmds_need_lc=no
11223 hardcode_shlibpath_var=no
11224 hardcode_libdir_flag_spec='$wl-R,$libdir'
11225 hardcode_libdir_separator=':'
11226 link_all_deplibs=yes
11227 export_dynamic_flag_spec='$wl-Bexport'
11228 runpath_var='LD_RUN_PATH'
11229
11230 if test yes = "$GCC"; then
11231 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11232 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11233 else
11234 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11235 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11236 fi
11237 ;;
11238
11239 uts4*)
11240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11241 hardcode_libdir_flag_spec='-L$libdir'
11242 hardcode_shlibpath_var=no
11243 ;;
11244
11245 *)
11246 ld_shlibs=no
11247 ;;
11248 esac
11249
11250 if test sni = "$host_vendor"; then
11251 case $host in
11252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11253 export_dynamic_flag_spec='$wl-Blargedynsym'
11254 ;;
11255 esac
11256 fi
11257 fi
11258
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11260 printf "%s\n" "$ld_shlibs" >&6; }
11261 test no = "$ld_shlibs" && can_build_shared=no
11262
11263 with_gnu_ld=$with_gnu_ld
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279 #
11280 # Do we need to explicitly link libc?
11281 #
11282 case "x$archive_cmds_need_lc" in
11283 x|xyes)
11284 # Assume -lc should be added
11285 archive_cmds_need_lc=yes
11286
11287 if test yes,yes = "$GCC,$enable_shared"; then
11288 case $archive_cmds in
11289 *'~'*)
11290 # FIXME: we may have to deal with multi-command sequences.
11291 ;;
11292 '$CC '*)
11293 # Test whether the compiler implicitly links with -lc since on some
11294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11295 # to ld, don't add -lc before -lgcc.
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11297 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11298 if test ${lt_cv_archive_cmds_need_lc+y}
11299 then :
11300 printf %s "(cached) " >&6
11301 else case e in #(
11302 e) $RM conftest*
11303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11304
11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11306 (eval $ac_compile) 2>&5
11307 ac_status=$?
11308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; } 2>conftest.err; then
11310 soname=conftest
11311 lib=conftest
11312 libobjs=conftest.$ac_objext
11313 deplibs=
11314 wl=$lt_prog_compiler_wl
11315 pic_flag=$lt_prog_compiler_pic
11316 compiler_flags=-v
11317 linker_flags=-v
11318 verstring=
11319 output_objdir=.
11320 libname=conftest
11321 lt_save_allow_undefined_flag=$allow_undefined_flag
11322 allow_undefined_flag=
11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11324 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11325 ac_status=$?
11326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; }
11328 then
11329 lt_cv_archive_cmds_need_lc=no
11330 else
11331 lt_cv_archive_cmds_need_lc=yes
11332 fi
11333 allow_undefined_flag=$lt_save_allow_undefined_flag
11334 else
11335 cat conftest.err 1>&5
11336 fi
11337 $RM conftest*
11338 ;;
11339 esac
11340 fi
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11342 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11343 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11344 ;;
11345 esac
11346 fi
11347 ;;
11348 esac
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
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11502 printf %s "checking dynamic linker characteristics... " >&6; }
11503
11504 if test yes = "$GCC"; then
11505 case $host_os in
11506 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11507 *) lt_awk_arg='/^libraries:/' ;;
11508 esac
11509 case $host_os in
11510 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11511 *) lt_sed_strip_eq='s|=/|/|g' ;;
11512 esac
11513 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11514 case $lt_search_path_spec in
11515 *\;*)
11516 # if the path contains ";" then we assume it to be the separator
11517 # otherwise default to the standard path separator (i.e. ":") - it is
11518 # assumed that no part of a normal pathname contains ";" but that should
11519 # okay in the real world where ";" in dirpaths is itself problematic.
11520 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11521 ;;
11522 *)
11523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11524 ;;
11525 esac
11526 # Ok, now we have the path, separated by spaces, we can step through it
11527 # and add multilib dir if necessary...
11528 lt_tmp_lt_search_path_spec=
11529 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11530 # ...but if some path component already ends with the multilib dir we assume
11531 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11532 case "$lt_multi_os_dir; $lt_search_path_spec " in
11533 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11534 lt_multi_os_dir=
11535 ;;
11536 esac
11537 for lt_sys_path in $lt_search_path_spec; do
11538 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11539 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11540 elif test -n "$lt_multi_os_dir"; then
11541 test -d "$lt_sys_path" && \
11542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11543 fi
11544 done
11545 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11546 BEGIN {RS = " "; FS = "/|\n";} {
11547 lt_foo = "";
11548 lt_count = 0;
11549 for (lt_i = NF; lt_i > 0; lt_i--) {
11550 if ($lt_i != "" && $lt_i != ".") {
11551 if ($lt_i == "..") {
11552 lt_count++;
11553 } else {
11554 if (lt_count == 0) {
11555 lt_foo = "/" $lt_i lt_foo;
11556 } else {
11557 lt_count--;
11558 }
11559 }
11560 }
11561 }
11562 if (lt_foo != "") { lt_freq[lt_foo]++; }
11563 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11564 }'`
11565 # AWK program above erroneously prepends '/' to C:/dos/paths
11566 # for these hosts.
11567 case $host_os in
11568 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11569 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11570 esac
11571 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11572 else
11573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11574 fi
11575 library_names_spec=
11576 libname_spec='lib$name'
11577 soname_spec=
11578 shrext_cmds=.so
11579 postinstall_cmds=
11580 postuninstall_cmds=
11581 finish_cmds=
11582 finish_eval=
11583 shlibpath_var=
11584 shlibpath_overrides_runpath=unknown
11585 version_type=none
11586 dynamic_linker="$host_os ld.so"
11587 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11588 need_lib_prefix=unknown
11589 hardcode_into_libs=no
11590
11591 # when you set need_version to no, make sure it does not cause -set_version
11592 # flags to be left without arguments
11593 need_version=unknown
11594
11595
11596
11597 case $host_os in
11598 aix3*)
11599 version_type=linux # correct to gnu/linux during the next big refactor
11600 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11601 shlibpath_var=LIBPATH
11602
11603 # AIX 3 has no versioning support, so we append a major version to the name.
11604 soname_spec='$libname$release$shared_ext$major'
11605 ;;
11606
11607 aix[4-9]*)
11608 version_type=linux # correct to gnu/linux during the next big refactor
11609 need_lib_prefix=no
11610 need_version=no
11611 hardcode_into_libs=yes
11612 if test ia64 = "$host_cpu"; then
11613 # AIX 5 supports IA64
11614 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 else
11617 # With GCC up to 2.95.x, collect2 would create an import file
11618 # for dependence libraries. The import file would start with
11619 # the line '#! .'. This would cause the generated library to
11620 # depend on '.', always an invalid library. This was fixed in
11621 # development snapshots of GCC prior to 3.0.
11622 case $host_os in
11623 aix4 | aix4.[01] | aix4.[01].*)
11624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11625 echo ' yes '
11626 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11627 :
11628 else
11629 can_build_shared=no
11630 fi
11631 ;;
11632 esac
11633 # Using Import Files as archive members, it is possible to support
11634 # filename-based versioning of shared library archives on AIX. While
11635 # this would work for both with and without runtime linking, it will
11636 # prevent static linking of such archives. So we do filename-based
11637 # shared library versioning with .so extension only, which is used
11638 # when both runtime linking and shared linking is enabled.
11639 # Unfortunately, runtime linking may impact performance, so we do
11640 # not want this to be the default eventually. Also, we use the
11641 # versioned .so libs for executables only if there is the -brtl
11642 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11643 # To allow for filename-based versioning support, we need to create
11644 # libNAME.so.V as an archive file, containing:
11645 # *) an Import File, referring to the versioned filename of the
11646 # archive as well as the shared archive member, telling the
11647 # bitwidth (32 or 64) of that shared object, and providing the
11648 # list of exported symbols of that shared object, eventually
11649 # decorated with the 'weak' keyword
11650 # *) the shared object with the F_LOADONLY flag set, to really avoid
11651 # it being seen by the linker.
11652 # At run time we better use the real file rather than another symlink,
11653 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11654
11655 case $with_aix_soname,$aix_use_runtimelinking in
11656 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11657 # soname into executable. Probably we can add versioning support to
11658 # collect2, so additional links can be useful in future.
11659 aix,yes) # traditional libtool
11660 dynamic_linker='AIX unversionable lib.so'
11661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11662 # instead of lib<name>.a to let people know that these are not
11663 # typical AIX shared libraries.
11664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11665 ;;
11666 aix,no) # traditional AIX only
11667 dynamic_linker='AIX lib.a(lib.so.V)'
11668 # We preserve .a as extension for shared libraries through AIX4.2
11669 # and later when we are not doing run time linking.
11670 library_names_spec='$libname$release.a $libname.a'
11671 soname_spec='$libname$release$shared_ext$major'
11672 ;;
11673 svr4,*) # full svr4 only
11674 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11675 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11676 # We do not specify a path in Import Files, so LIBPATH fires.
11677 shlibpath_overrides_runpath=yes
11678 ;;
11679 *,yes) # both, prefer svr4
11680 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11681 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11682 # unpreferred sharedlib libNAME.a needs extra handling
11683 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"'
11684 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"'
11685 # We do not specify a path in Import Files, so LIBPATH fires.
11686 shlibpath_overrides_runpath=yes
11687 ;;
11688 *,no) # both, prefer aix
11689 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11690 library_names_spec='$libname$release.a $libname.a'
11691 soname_spec='$libname$release$shared_ext$major'
11692 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11693 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)'
11694 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"'
11695 ;;
11696 esac
11697 shlibpath_var=LIBPATH
11698 fi
11699 ;;
11700
11701 amigaos*)
11702 case $host_cpu in
11703 powerpc)
11704 # Since July 2007 AmigaOS4 officially supports .so libraries.
11705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11707 ;;
11708 m68k)
11709 library_names_spec='$libname.ixlibrary $libname.a'
11710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11711 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'
11712 ;;
11713 esac
11714 ;;
11715
11716 beos*)
11717 library_names_spec='$libname$shared_ext'
11718 dynamic_linker="$host_os ld.so"
11719 shlibpath_var=LIBRARY_PATH
11720 ;;
11721
11722 bsdi[45]*)
11723 version_type=linux # correct to gnu/linux during the next big refactor
11724 need_version=no
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 soname_spec='$libname$release$shared_ext$major'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11731 # the default ld.so.conf also contains /usr/contrib/lib and
11732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11733 # libtool to hard-code these into programs
11734 ;;
11735
11736 cygwin* | mingw* | windows* | pw32* | cegcc*)
11737 version_type=windows
11738 shrext_cmds=.dll
11739 need_version=no
11740 need_lib_prefix=no
11741
11742 case $GCC,$cc_basename in
11743 yes,*)
11744 # gcc
11745 library_names_spec='$libname.dll.a'
11746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11747 # If user builds GCC with multilib enabled,
11748 # it should just install on $(libdir)
11749 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11750 if test xyes = x"$multilib"; then
11751 postinstall_cmds='base_file=`basename \$file`~
11752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11753 dldir=$destdir/`dirname \$dlpath`~
11754 $install_prog $dir/$dlname $destdir/$dlname~
11755 chmod a+x $destdir/$dlname~
11756 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11757 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11758 fi'
11759 else
11760 postinstall_cmds='base_file=`basename \$file`~
11761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11762 dldir=$destdir/`dirname \$dlpath`~
11763 test -d \$dldir || mkdir -p \$dldir~
11764 $install_prog $dir/$dlname \$dldir/$dlname~
11765 chmod a+x \$dldir/$dlname~
11766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11768 fi'
11769 fi
11770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11771 dlpath=$dir/\$dldll~
11772 $RM \$dlpath'
11773 shlibpath_overrides_runpath=yes
11774
11775 case $host_os in
11776 cygwin*)
11777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11778 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11779
11780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11781 ;;
11782 mingw* | windows* | cegcc*)
11783 # MinGW DLLs use traditional 'lib' prefix
11784 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11785 ;;
11786 pw32*)
11787 # pw32 DLLs use 'pw' prefix rather than 'lib'
11788 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11789 ;;
11790 esac
11791 dynamic_linker='Win32 ld.exe'
11792 ;;
11793
11794 *,cl* | *,icl*)
11795 # Native MSVC or ICC
11796 libname_spec='$name'
11797 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11798 library_names_spec='$libname.dll.lib'
11799
11800 case $build_os in
11801 mingw* | windows*)
11802 sys_lib_search_path_spec=
11803 lt_save_ifs=$IFS
11804 IFS=';'
11805 for lt_path in $LIB
11806 do
11807 IFS=$lt_save_ifs
11808 # Let DOS variable expansion print the short 8.3 style file name.
11809 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11810 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11811 done
11812 IFS=$lt_save_ifs
11813 # Convert to MSYS style.
11814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11815 ;;
11816 cygwin*)
11817 # Convert to unix form, then to dos form, then back to unix form
11818 # but this time dos style (no spaces!) so that the unix form looks
11819 # like /cygdrive/c/PROGRA~1:/cygdr...
11820 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11821 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11822 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11823 ;;
11824 *)
11825 sys_lib_search_path_spec=$LIB
11826 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11827 # It is most probably a Windows format PATH.
11828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11829 else
11830 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11831 fi
11832 # FIXME: find the short name or the path components, as spaces are
11833 # common. (e.g. "Program Files" -> "PROGRA~1")
11834 ;;
11835 esac
11836
11837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11838 postinstall_cmds='base_file=`basename \$file`~
11839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11840 dldir=$destdir/`dirname \$dlpath`~
11841 test -d \$dldir || mkdir -p \$dldir~
11842 $install_prog $dir/$dlname \$dldir/$dlname'
11843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11844 dlpath=$dir/\$dldll~
11845 $RM \$dlpath'
11846 shlibpath_overrides_runpath=yes
11847 dynamic_linker='Win32 link.exe'
11848 ;;
11849
11850 *)
11851 # Assume MSVC and ICC wrapper
11852 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11853 dynamic_linker='Win32 ld.exe'
11854 ;;
11855 esac
11856 # FIXME: first we should search . and the directory the executable is in
11857 shlibpath_var=PATH
11858 ;;
11859
11860 darwin* | rhapsody*)
11861 dynamic_linker="$host_os dyld"
11862 version_type=darwin
11863 need_lib_prefix=no
11864 need_version=no
11865 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11866 soname_spec='$libname$release$major$shared_ext'
11867 shlibpath_overrides_runpath=yes
11868 shlibpath_var=DYLD_LIBRARY_PATH
11869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11870
11871 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11873 ;;
11874
11875 dgux*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 ;;
11883
11884 freebsd* | dragonfly* | midnightbsd*)
11885 # DragonFly does not have aout. When/if they implement a new
11886 # versioning mechanism, adjust this.
11887 if test -x /usr/bin/objformat; then
11888 objformat=`/usr/bin/objformat`
11889 else
11890 case $host_os in
11891 freebsd[23].*) objformat=aout ;;
11892 *) objformat=elf ;;
11893 esac
11894 fi
11895 version_type=freebsd-$objformat
11896 case $version_type in
11897 freebsd-elf*)
11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11899 soname_spec='$libname$release$shared_ext$major'
11900 need_version=no
11901 need_lib_prefix=no
11902 ;;
11903 freebsd-*)
11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11905 need_version=yes
11906 ;;
11907 esac
11908 case $host_cpu in
11909 powerpc64)
11910 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11911 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914 int test_pointer_size[sizeof (void *) - 5];
11915
11916 _ACEOF
11917 if ac_fn_c_try_compile "$LINENO"
11918 then :
11919 shlibpath_var=LD_LIBRARY_PATH
11920 else case e in #(
11921 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11922 esac
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11925 ;;
11926 *)
11927 shlibpath_var=LD_LIBRARY_PATH
11928 ;;
11929 esac
11930 case $host_os in
11931 freebsd2.*)
11932 shlibpath_overrides_runpath=yes
11933 ;;
11934 freebsd3.[01]* | freebsdelf3.[01]*)
11935 shlibpath_overrides_runpath=yes
11936 hardcode_into_libs=yes
11937 ;;
11938 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11939 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11940 shlibpath_overrides_runpath=no
11941 hardcode_into_libs=yes
11942 ;;
11943 *) # from 4.6 on, and DragonFly
11944 shlibpath_overrides_runpath=yes
11945 hardcode_into_libs=yes
11946 ;;
11947 esac
11948 ;;
11949
11950 haiku*)
11951 version_type=linux # correct to gnu/linux during the next big refactor
11952 need_lib_prefix=no
11953 need_version=no
11954 dynamic_linker="$host_os runtime_loader"
11955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956 soname_spec='$libname$release$shared_ext$major'
11957 shlibpath_var=LIBRARY_PATH
11958 shlibpath_overrides_runpath=no
11959 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11960 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11961 hardcode_into_libs=no
11962 ;;
11963
11964 hpux9* | hpux10* | hpux11*)
11965 # Give a soname corresponding to the major version so that dld.sl refuses to
11966 # link against other versions.
11967 version_type=sunos
11968 need_lib_prefix=no
11969 need_version=no
11970 case $host_cpu in
11971 ia64*)
11972 shrext_cmds='.so'
11973 hardcode_into_libs=yes
11974 dynamic_linker="$host_os dld.so"
11975 shlibpath_var=LD_LIBRARY_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 if test 32 = "$HPUX_IA64_MODE"; then
11980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11981 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11982 else
11983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11984 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11985 fi
11986 ;;
11987 hppa*64*)
11988 shrext_cmds='.sl'
11989 hardcode_into_libs=yes
11990 dynamic_linker="$host_os dld.sl"
11991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997 ;;
11998 *)
11999 shrext_cmds='.sl'
12000 dynamic_linker="$host_os dld.sl"
12001 shlibpath_var=SHLIB_PATH
12002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12004 soname_spec='$libname$release$shared_ext$major'
12005 ;;
12006 esac
12007 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12008 postinstall_cmds='chmod 555 $lib'
12009 # or fails outright, so override atomically:
12010 install_override_mode=555
12011 ;;
12012
12013 interix[3-9]*)
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 need_lib_prefix=no
12016 need_version=no
12017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12018 soname_spec='$libname$release$shared_ext$major'
12019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 shlibpath_overrides_runpath=no
12022 hardcode_into_libs=yes
12023 ;;
12024
12025 irix5* | irix6* | nonstopux*)
12026 case $host_os in
12027 nonstopux*) version_type=nonstopux ;;
12028 *)
12029 if test yes = "$lt_cv_prog_gnu_ld"; then
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 else
12032 version_type=irix
12033 fi ;;
12034 esac
12035 need_lib_prefix=no
12036 need_version=no
12037 soname_spec='$libname$release$shared_ext$major'
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12039 case $host_os in
12040 irix5* | nonstopux*)
12041 libsuff= shlibsuff=
12042 ;;
12043 *)
12044 case $LD in # libtool.m4 will add one of these switches to LD
12045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12046 libsuff= shlibsuff= libmagic=32-bit;;
12047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12048 libsuff=32 shlibsuff=N32 libmagic=N32;;
12049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12051 *) libsuff= shlibsuff= libmagic=never-match;;
12052 esac
12053 ;;
12054 esac
12055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12056 shlibpath_overrides_runpath=no
12057 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12058 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12059 hardcode_into_libs=yes
12060 ;;
12061
12062 # No shared lib support for Linux oldld, aout, or coff.
12063 linux*oldld* | linux*aout* | linux*coff*)
12064 dynamic_linker=no
12065 ;;
12066
12067 linux*android*)
12068 version_type=none # Android doesn't support versioned libraries.
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext'
12073 finish_cmds=
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=yes
12076
12077 # This implies no fast_install, which is unacceptable.
12078 # Some rework will be needed to allow for fast_install
12079 # before this can be enabled.
12080 hardcode_into_libs=yes
12081
12082 dynamic_linker='Android linker'
12083 # -rpath works at least for libraries that are not overridden by
12084 # libraries installed in system locations.
12085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12086 ;;
12087
12088 # This must be glibc/ELF.
12089 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 need_lib_prefix=no
12092 need_version=no
12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094 soname_spec='$libname$release$shared_ext$major'
12095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=no
12098
12099 # Some binutils ld are patched to set DT_RUNPATH
12100 if test ${lt_cv_shlibpath_overrides_runpath+y}
12101 then :
12102 printf %s "(cached) " >&6
12103 else case e in #(
12104 e) lt_cv_shlibpath_overrides_runpath=no
12105 save_LDFLAGS=$LDFLAGS
12106 save_libdir=$libdir
12107 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12108 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111
12112 int
12113 main (void)
12114 {
12115
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"
12121 then :
12122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12123 then :
12124 lt_cv_shlibpath_overrides_runpath=yes
12125 fi
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LDFLAGS=$save_LDFLAGS
12130 libdir=$save_libdir
12131 ;;
12132 esac
12133 fi
12134
12135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12136
12137 # This implies no fast_install, which is unacceptable.
12138 # Some rework will be needed to allow for fast_install
12139 # before this can be enabled.
12140 hardcode_into_libs=yes
12141
12142 # Ideally, we could use ldconfig to report *all* directories which are
12143 # searched for libraries, however this is still not possible. Aside from not
12144 # being certain /sbin/ldconfig is available, command
12145 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12146 # even though it is searched at run-time. Try to do the best guess by
12147 # appending ld.so.conf contents (and includes) to the search path.
12148 if test -f /etc/ld.so.conf; then
12149 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' ' '`
12150 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12151 fi
12152
12153 # We used to test for /lib/ld.so.1 and disable shared libraries on
12154 # powerpc, because MkLinux only supported shared libraries with the
12155 # GNU dynamic linker. Since this was broken with cross compilers,
12156 # most powerpc-linux boxes support dynamic linking these days and
12157 # people can always --disable-shared, the test was removed, and we
12158 # assume the GNU/Linux dynamic linker is in use.
12159 dynamic_linker='GNU/Linux ld.so'
12160 ;;
12161
12162 netbsdelf*-gnu)
12163 version_type=linux
12164 need_lib_prefix=no
12165 need_version=no
12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12167 soname_spec='$libname$release$shared_ext$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=no
12170 hardcode_into_libs=yes
12171 dynamic_linker='NetBSD ld.elf_so'
12172 ;;
12173
12174 netbsd*)
12175 version_type=sunos
12176 need_lib_prefix=no
12177 need_version=no
12178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181 dynamic_linker='NetBSD (a.out) ld.so'
12182 else
12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12184 soname_spec='$libname$release$shared_ext$major'
12185 dynamic_linker='NetBSD ld.elf_so'
12186 fi
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=yes
12189 hardcode_into_libs=yes
12190 ;;
12191
12192 *-mlibc)
12193 version_type=linux # correct to gnu/linux during the next big refactor
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12197 soname_spec='$libname$release$shared_ext$major'
12198 dynamic_linker='mlibc ld.so'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=no
12201 hardcode_into_libs=yes
12202 ;;
12203
12204 newsos6)
12205 version_type=linux # correct to gnu/linux during the next big refactor
12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 shlibpath_overrides_runpath=yes
12209 ;;
12210
12211 *nto* | *qnx*)
12212 version_type=qnx
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216 soname_spec='$libname$release$shared_ext$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=no
12219 hardcode_into_libs=yes
12220 dynamic_linker='ldqnx.so'
12221 ;;
12222
12223 openbsd*)
12224 version_type=sunos
12225 sys_lib_dlsearch_path_spec=/usr/lib
12226 need_lib_prefix=no
12227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12228 need_version=no
12229 else
12230 need_version=yes
12231 fi
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 ;;
12237
12238 os2*)
12239 libname_spec='$name'
12240 version_type=windows
12241 shrext_cmds=.dll
12242 need_version=no
12243 need_lib_prefix=no
12244 # OS/2 can only load a DLL with a base name of 8 characters or less.
12245 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12246 v=$($ECHO $release$versuffix | tr -d .-);
12247 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12248 $ECHO $n$v`$shared_ext'
12249 library_names_spec='${libname}_dll.$libext'
12250 dynamic_linker='OS/2 ld.exe'
12251 shlibpath_var=BEGINLIBPATH
12252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12254 postinstall_cmds='base_file=`basename \$file`~
12255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12256 dldir=$destdir/`dirname \$dlpath`~
12257 test -d \$dldir || mkdir -p \$dldir~
12258 $install_prog $dir/$dlname \$dldir/$dlname~
12259 chmod a+x \$dldir/$dlname~
12260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12262 fi'
12263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12264 dlpath=$dir/\$dldll~
12265 $RM \$dlpath'
12266 ;;
12267
12268 osf3* | osf4* | osf5*)
12269 version_type=osf
12270 need_lib_prefix=no
12271 need_version=no
12272 soname_spec='$libname$release$shared_ext$major'
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12277 ;;
12278
12279 rdos*)
12280 dynamic_linker=no
12281 ;;
12282
12283 serenity*)
12284 version_type=linux # correct to gnu/linux during the next big refactor
12285 need_lib_prefix=no
12286 need_version=no
12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12288 soname_spec='$libname$release$shared_ext$major'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=no
12291 dynamic_linker='SerenityOS LibELF'
12292 ;;
12293
12294 solaris*)
12295 version_type=linux # correct to gnu/linux during the next big refactor
12296 need_lib_prefix=no
12297 need_version=no
12298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12299 soname_spec='$libname$release$shared_ext$major'
12300 shlibpath_var=LD_LIBRARY_PATH
12301 shlibpath_overrides_runpath=yes
12302 hardcode_into_libs=yes
12303 # ldd complains unless libraries are executable
12304 postinstall_cmds='chmod +x $lib'
12305 ;;
12306
12307 sunos4*)
12308 version_type=sunos
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 shlibpath_overrides_runpath=yes
12313 if test yes = "$with_gnu_ld"; then
12314 need_lib_prefix=no
12315 fi
12316 need_version=yes
12317 ;;
12318
12319 sysv4 | sysv4.3*)
12320 version_type=linux # correct to gnu/linux during the next big refactor
12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322 soname_spec='$libname$release$shared_ext$major'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 case $host_vendor in
12325 sni)
12326 shlibpath_overrides_runpath=no
12327 need_lib_prefix=no
12328 runpath_var=LD_RUN_PATH
12329 ;;
12330 siemens)
12331 need_lib_prefix=no
12332 ;;
12333 motorola)
12334 need_lib_prefix=no
12335 need_version=no
12336 shlibpath_overrides_runpath=no
12337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12338 ;;
12339 esac
12340 ;;
12341
12342 sysv4*MP*)
12343 if test -d /usr/nec; then
12344 version_type=linux # correct to gnu/linux during the next big refactor
12345 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12346 soname_spec='$libname$shared_ext.$major'
12347 shlibpath_var=LD_LIBRARY_PATH
12348 fi
12349 ;;
12350
12351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12352 version_type=sco
12353 need_lib_prefix=no
12354 need_version=no
12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12356 soname_spec='$libname$release$shared_ext$major'
12357 shlibpath_var=LD_LIBRARY_PATH
12358 shlibpath_overrides_runpath=yes
12359 hardcode_into_libs=yes
12360 if test yes = "$with_gnu_ld"; then
12361 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12362 else
12363 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12364 case $host_os in
12365 sco3.2v5*)
12366 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12367 ;;
12368 esac
12369 fi
12370 sys_lib_dlsearch_path_spec='/usr/lib'
12371 ;;
12372
12373 tpf*)
12374 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12375 version_type=linux # correct to gnu/linux during the next big refactor
12376 need_lib_prefix=no
12377 need_version=no
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=no
12381 hardcode_into_libs=yes
12382 ;;
12383
12384 uts4*)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12387 soname_spec='$libname$release$shared_ext$major'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 ;;
12390
12391 emscripten*)
12392 version_type=none
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='$libname$release$shared_ext'
12396 soname_spec='$libname$release$shared_ext'
12397 finish_cmds=
12398 dynamic_linker="Emscripten linker"
12399 lt_prog_compiler_wl=
12400 lt_prog_compiler_pic=
12401 lt_prog_compiler_static=
12402
12403
12404 if test yes = "$GCC"; then
12405 lt_prog_compiler_wl='-Wl,'
12406 lt_prog_compiler_static='-static'
12407
12408 case $host_os in
12409 aix*)
12410 # All AIX code is PIC.
12411 if test ia64 = "$host_cpu"; then
12412 # AIX 5 now supports IA64 processor
12413 lt_prog_compiler_static='-Bstatic'
12414 fi
12415 lt_prog_compiler_pic='-fPIC'
12416 ;;
12417
12418 amigaos*)
12419 case $host_cpu in
12420 powerpc)
12421 # see comment about AmigaOS4 .so support
12422 lt_prog_compiler_pic='-fPIC'
12423 ;;
12424 m68k)
12425 # FIXME: we need at least 68020 code to build shared libraries, but
12426 # adding the '-m68020' flag to GCC prevents building anything better,
12427 # like '-m68040'.
12428 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12429 ;;
12430 esac
12431 ;;
12432
12433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12434 # PIC is the default for these OSes.
12435 ;;
12436
12437 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12438 # This hack is so that the source file can tell whether it is being
12439 # built for inclusion in a dll (and should export symbols for example).
12440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12441 # (--disable-auto-import) libraries
12442 lt_prog_compiler_pic='-DDLL_EXPORT'
12443 case $host_os in
12444 os2*)
12445 lt_prog_compiler_static='$wl-static'
12446 ;;
12447 esac
12448 ;;
12449
12450 darwin* | rhapsody*)
12451 # PIC is the default on this platform
12452 # Common symbols not allowed in MH_DYLIB files
12453 lt_prog_compiler_pic='-fno-common'
12454 ;;
12455
12456 haiku*)
12457 # PIC is the default for Haiku.
12458 # The "-static" flag exists, but is broken.
12459 lt_prog_compiler_static=
12460 ;;
12461
12462 hpux*)
12463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12465 # sets the default TLS model and affects inlining.
12466 case $host_cpu in
12467 hppa*64*)
12468 # +Z the default
12469 ;;
12470 *)
12471 lt_prog_compiler_pic='-fPIC'
12472 ;;
12473 esac
12474 ;;
12475
12476 interix[3-9]*)
12477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12478 # Instead, we relocate shared libraries at runtime.
12479 ;;
12480
12481 msdosdjgpp*)
12482 # Just because we use GCC doesn't mean we suddenly get shared libraries
12483 # on systems that don't support them.
12484 lt_prog_compiler_can_build_shared=no
12485 enable_shared=no
12486 ;;
12487
12488 *nto* | *qnx*)
12489 # QNX uses GNU C++, but need to define -shared option too, otherwise
12490 # it will coredump.
12491 lt_prog_compiler_pic='-fPIC -shared'
12492 ;;
12493
12494 sysv4*MP*)
12495 if test -d /usr/nec; then
12496 lt_prog_compiler_pic=-Kconform_pic
12497 fi
12498 ;;
12499
12500 *)
12501 lt_prog_compiler_pic='-fPIC'
12502 ;;
12503 esac
12504
12505 case $cc_basename in
12506 nvcc*) # Cuda Compiler Driver 2.2
12507 lt_prog_compiler_wl='-Xlinker '
12508 if test -n "$lt_prog_compiler_pic"; then
12509 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12510 fi
12511 ;;
12512 esac
12513 else
12514 # PORTME Check for flag to pass linker flags through the system compiler.
12515 case $host_os in
12516 aix*)
12517 lt_prog_compiler_wl='-Wl,'
12518 if test ia64 = "$host_cpu"; then
12519 # AIX 5 now supports IA64 processor
12520 lt_prog_compiler_static='-Bstatic'
12521 else
12522 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12523 fi
12524 ;;
12525
12526 darwin* | rhapsody*)
12527 # PIC is the default on this platform
12528 # Common symbols not allowed in MH_DYLIB files
12529 lt_prog_compiler_pic='-fno-common'
12530 case $cc_basename in
12531 nagfor*)
12532 # NAG Fortran compiler
12533 lt_prog_compiler_wl='-Wl,-Wl,,'
12534 lt_prog_compiler_pic='-PIC'
12535 lt_prog_compiler_static='-Bstatic'
12536 ;;
12537 esac
12538 ;;
12539
12540 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 lt_prog_compiler_pic='-DDLL_EXPORT'
12544 case $host_os in
12545 os2*)
12546 lt_prog_compiler_static='$wl-static'
12547 ;;
12548 esac
12549 ;;
12550
12551 hpux9* | hpux10* | hpux11*)
12552 lt_prog_compiler_wl='-Wl,'
12553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12554 # not for PA HP-UX.
12555 case $host_cpu in
12556 hppa*64*|ia64*)
12557 # +Z the default
12558 ;;
12559 *)
12560 lt_prog_compiler_pic='+Z'
12561 ;;
12562 esac
12563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12564 lt_prog_compiler_static='$wl-a ${wl}archive'
12565 ;;
12566
12567 irix5* | irix6* | nonstopux*)
12568 lt_prog_compiler_wl='-Wl,'
12569 # PIC (with -KPIC) is the default.
12570 lt_prog_compiler_static='-non_shared'
12571 ;;
12572
12573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12574 case $cc_basename in
12575 # old Intel for x86_64, which still supported -KPIC.
12576 ecc*)
12577 lt_prog_compiler_wl='-Wl,'
12578 lt_prog_compiler_pic='-KPIC'
12579 lt_prog_compiler_static='-static'
12580 ;;
12581 *flang* | ftn | f18* | f95*)
12582 # Flang compiler.
12583 lt_prog_compiler_wl='-Wl,'
12584 lt_prog_compiler_pic='-fPIC'
12585 lt_prog_compiler_static='-static'
12586 ;;
12587 # icc used to be incompatible with GCC.
12588 # ICC 10 doesn't accept -KPIC any more.
12589 icc* | ifort*)
12590 lt_prog_compiler_wl='-Wl,'
12591 lt_prog_compiler_pic='-fPIC'
12592 lt_prog_compiler_static='-static'
12593 ;;
12594 # Lahey Fortran 8.1.
12595 lf95*)
12596 lt_prog_compiler_wl='-Wl,'
12597 lt_prog_compiler_pic='--shared'
12598 lt_prog_compiler_static='--static'
12599 ;;
12600 nagfor*)
12601 # NAG Fortran compiler
12602 lt_prog_compiler_wl='-Wl,-Wl,,'
12603 lt_prog_compiler_pic='-PIC'
12604 lt_prog_compiler_static='-Bstatic'
12605 ;;
12606 tcc*)
12607 # Fabrice Bellard et al's Tiny C Compiler
12608 lt_prog_compiler_wl='-Wl,'
12609 lt_prog_compiler_pic='-fPIC'
12610 lt_prog_compiler_static='-static'
12611 ;;
12612 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12613 # Portland Group compilers (*not* the Pentium gcc compiler,
12614 # which looks to be a dead project)
12615 lt_prog_compiler_wl='-Wl,'
12616 lt_prog_compiler_pic='-fpic'
12617 lt_prog_compiler_static='-Bstatic'
12618 ;;
12619 ccc*)
12620 lt_prog_compiler_wl='-Wl,'
12621 # All Alpha code is PIC.
12622 lt_prog_compiler_static='-non_shared'
12623 ;;
12624 xl* | bgxl* | bgf* | mpixl*)
12625 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12626 lt_prog_compiler_wl='-Wl,'
12627 lt_prog_compiler_pic='-qpic'
12628 lt_prog_compiler_static='-qstaticlink'
12629 ;;
12630 *)
12631 case `$CC -V 2>&1 | $SED 5q` in
12632 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12634 lt_prog_compiler_pic='-KPIC'
12635 lt_prog_compiler_static='-Bstatic'
12636 lt_prog_compiler_wl=''
12637 ;;
12638 *Sun\ F* | *Sun*Fortran*)
12639 lt_prog_compiler_pic='-KPIC'
12640 lt_prog_compiler_static='-Bstatic'
12641 lt_prog_compiler_wl='-Qoption ld '
12642 ;;
12643 *Sun\ C*)
12644 # Sun C 5.9
12645 lt_prog_compiler_pic='-KPIC'
12646 lt_prog_compiler_static='-Bstatic'
12647 lt_prog_compiler_wl='-Wl,'
12648 ;;
12649 *Intel*\ [CF]*Compiler*)
12650 lt_prog_compiler_wl='-Wl,'
12651 lt_prog_compiler_pic='-fPIC'
12652 lt_prog_compiler_static='-static'
12653 ;;
12654 *Portland\ Group*)
12655 lt_prog_compiler_wl='-Wl,'
12656 lt_prog_compiler_pic='-fpic'
12657 lt_prog_compiler_static='-Bstatic'
12658 ;;
12659 esac
12660 ;;
12661 esac
12662 ;;
12663
12664 newsos6)
12665 lt_prog_compiler_pic='-KPIC'
12666 lt_prog_compiler_static='-Bstatic'
12667 ;;
12668
12669 *-mlibc)
12670 lt_prog_compiler_wl='-Wl,'
12671 lt_prog_compiler_pic='-fPIC'
12672 lt_prog_compiler_static='-static'
12673 ;;
12674
12675 *nto* | *qnx*)
12676 # QNX uses GNU C++, but need to define -shared option too, otherwise
12677 # it will coredump.
12678 lt_prog_compiler_pic='-fPIC -shared'
12679 ;;
12680
12681 osf3* | osf4* | osf5*)
12682 lt_prog_compiler_wl='-Wl,'
12683 # All OSF/1 code is PIC.
12684 lt_prog_compiler_static='-non_shared'
12685 ;;
12686
12687 rdos*)
12688 lt_prog_compiler_static='-non_shared'
12689 ;;
12690
12691 serenity*)
12692 ;;
12693
12694 solaris*)
12695 lt_prog_compiler_pic='-KPIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 case $cc_basename in
12698 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12699 lt_prog_compiler_wl='-Qoption ld ';;
12700 *)
12701 lt_prog_compiler_wl='-Wl,';;
12702 esac
12703 ;;
12704
12705 sunos4*)
12706 lt_prog_compiler_wl='-Qoption ld '
12707 lt_prog_compiler_pic='-PIC'
12708 lt_prog_compiler_static='-Bstatic'
12709 ;;
12710
12711 sysv4 | sysv4.2uw2* | sysv4.3*)
12712 lt_prog_compiler_wl='-Wl,'
12713 lt_prog_compiler_pic='-KPIC'
12714 lt_prog_compiler_static='-Bstatic'
12715 ;;
12716
12717 sysv4*MP*)
12718 if test -d /usr/nec; then
12719 lt_prog_compiler_pic='-Kconform_pic'
12720 lt_prog_compiler_static='-Bstatic'
12721 fi
12722 ;;
12723
12724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12725 lt_prog_compiler_wl='-Wl,'
12726 lt_prog_compiler_pic='-KPIC'
12727 lt_prog_compiler_static='-Bstatic'
12728 ;;
12729
12730 unicos*)
12731 lt_prog_compiler_wl='-Wl,'
12732 lt_prog_compiler_can_build_shared=no
12733 ;;
12734
12735 uts4*)
12736 lt_prog_compiler_pic='-pic'
12737 lt_prog_compiler_static='-Bstatic'
12738 ;;
12739
12740 *)
12741 lt_prog_compiler_can_build_shared=no
12742 ;;
12743 esac
12744 fi
12745
12746 case $host_os in
12747 # For platforms that do not support PIC, -DPIC is meaningless:
12748 *djgpp*)
12749 lt_prog_compiler_pic=
12750 ;;
12751 *)
12752 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12753 ;;
12754 esac
12755
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12757 printf %s "checking for $compiler option to produce PIC... " >&6; }
12758 if test ${lt_cv_prog_compiler_pic+y}
12759 then :
12760 printf %s "(cached) " >&6
12761 else case e in #(
12762 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12763 esac
12764 fi
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12766 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12767 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12768
12769 #
12770 # Check to make sure the PIC flag actually works.
12771 #
12772 if test -n "$lt_prog_compiler_pic"; then
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12774 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12775 if test ${lt_cv_prog_compiler_pic_works+y}
12776 then :
12777 printf %s "(cached) " >&6
12778 else case e in #(
12779 e) lt_cv_prog_compiler_pic_works=no
12780 ac_outfile=conftest.$ac_objext
12781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12782 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12783 # Insert the option either (1) after the last *FLAGS variable, or
12784 # (2) before a word containing "conftest.", or (3) at the end.
12785 # Note that $ac_compile itself does not contain backslashes and begins
12786 # with a dollar sign (not a hyphen), so the echo should work correctly.
12787 # The option is referenced via a variable to avoid confusing sed.
12788 lt_compile=`echo "$ac_compile" | $SED \
12789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12791 -e 's:$: $lt_compiler_flag:'`
12792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12793 (eval "$lt_compile" 2>conftest.err)
12794 ac_status=$?
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 if (exit $ac_status) && test -s "$ac_outfile"; then
12798 # The compiler can only warn and ignore the option if not recognized
12799 # So say no if there are warnings other than the usual output.
12800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12803 lt_cv_prog_compiler_pic_works=yes
12804 fi
12805 fi
12806 $RM conftest*
12807 ;;
12808 esac
12809 fi
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12811 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12812
12813 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12814 case $lt_prog_compiler_pic in
12815 "" | " "*) ;;
12816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12817 esac
12818 else
12819 lt_prog_compiler_pic=
12820 lt_prog_compiler_can_build_shared=no
12821 fi
12822
12823 fi
12824
12825
12826
12827
12828
12829 #
12830 # Check to make sure the static flag actually works.
12831 #
12832 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12834 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12835 if test ${lt_cv_prog_compiler_static_works+y}
12836 then :
12837 printf %s "(cached) " >&6
12838 else case e in #(
12839 e) lt_cv_prog_compiler_static_works=no
12840 save_LDFLAGS=$LDFLAGS
12841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12844 # The linker can only warn and ignore the option if not recognized
12845 # So say no if there are warnings
12846 if test -s conftest.err; then
12847 # Append any errors to the config.log.
12848 cat conftest.err 1>&5
12849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12851 if diff conftest.exp conftest.er2 >/dev/null; then
12852 lt_cv_prog_compiler_static_works=yes
12853 fi
12854 else
12855 lt_cv_prog_compiler_static_works=yes
12856 fi
12857 fi
12858 $RM -r conftest*
12859 LDFLAGS=$save_LDFLAGS
12860 ;;
12861 esac
12862 fi
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12864 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12865
12866 if test yes = "$lt_cv_prog_compiler_static_works"; then
12867 :
12868 else
12869 lt_prog_compiler_static=
12870 fi
12871
12872
12873
12874 ='-fPIC'
12875 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12876 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'
12877 archive_cmds_need_lc=no
12878 no_undefined_flag=
12879 ;;
12880
12881 *)
12882 dynamic_linker=no
12883 ;;
12884 esac
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12886 printf "%s\n" "$dynamic_linker" >&6; }
12887 test no = "$dynamic_linker" && can_build_shared=no
12888
12889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12890 if test yes = "$GCC"; then
12891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12892 fi
12893
12894 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12895 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12896 fi
12897
12898 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12899 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12900 fi
12901
12902 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12903 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12904
12905 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12906 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12907
12908 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12909 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13008 printf %s "checking how to hardcode library paths into programs... " >&6; }
13009 hardcode_action=
13010 if test -n "$hardcode_libdir_flag_spec" ||
13011 test -n "$runpath_var" ||
13012 test yes = "$hardcode_automatic"; then
13013
13014 # We can hardcode non-existent directories.
13015 if test no != "$hardcode_direct" &&
13016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13017 # have to relink, otherwise we might link with an installed library
13018 # when we should be linking with a yet-to-be-installed one
13019 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13020 test no != "$hardcode_minus_L"; then
13021 # Linking always hardcodes the temporary library directory.
13022 hardcode_action=relink
13023 else
13024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13025 hardcode_action=immediate
13026 fi
13027 else
13028 # We cannot hardcode anything, or else we can only hardcode existing
13029 # directories.
13030 hardcode_action=unsupported
13031 fi
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13033 printf "%s\n" "$hardcode_action" >&6; }
13034
13035 if test relink = "$hardcode_action" ||
13036 test yes = "$inherit_rpath"; then
13037 # Fast installation is not supported
13038 enable_fast_install=no
13039 elif test yes = "$shlibpath_overrides_runpath" ||
13040 test no = "$enable_shared"; then
13041 # Fast installation is not necessary
13042 enable_fast_install=needless
13043 fi
13044
13045
13046
13047
13048
13049
13050 if test yes != "$enable_dlopen"; then
13051 enable_dlopen=unknown
13052 enable_dlopen_self=unknown
13053 enable_dlopen_self_static=unknown
13054 else
13055 lt_cv_dlopen=no
13056 lt_cv_dlopen_libs=
13057
13058 case $host_os in
13059 beos*)
13060 lt_cv_dlopen=load_add_on
13061 lt_cv_dlopen_libs=
13062 lt_cv_dlopen_self=yes
13063 ;;
13064
13065 mingw* | windows* | pw32* | cegcc*)
13066 lt_cv_dlopen=LoadLibrary
13067 lt_cv_dlopen_libs=
13068 ;;
13069
13070 cygwin*)
13071 lt_cv_dlopen=dlopen
13072 lt_cv_dlopen_libs=
13073 ;;
13074
13075 darwin*)
13076 # if libdl is installed we need to link against it
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13078 printf %s "checking for dlopen in -ldl... " >&6; }
13079 if test ${ac_cv_lib_dl_dlopen+y}
13080 then :
13081 printf %s "(cached) " >&6
13082 else case e in #(
13083 e) ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-ldl $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply.
13091 The 'extern "C"' is for builds by C++ compilers;
13092 although this is not generally supported in C code supporting it here
13093 has little cost and some practical benefit (sr 110532). */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char dlopen (void);
13098 int
13099 main (void)
13100 {
13101 return dlopen ();
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"
13107 then :
13108 ac_cv_lib_dl_dlopen=yes
13109 else case e in #(
13110 e) ac_cv_lib_dl_dlopen=no ;;
13111 esac
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13114 conftest$ac_exeext conftest.$ac_ext
13115 LIBS=$ac_check_lib_save_LIBS ;;
13116 esac
13117 fi
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13119 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13120 if test "x$ac_cv_lib_dl_dlopen" = xyes
13121 then :
13122 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13123 else case e in #(
13124 e)
13125 lt_cv_dlopen=dyld
13126 lt_cv_dlopen_libs=
13127 lt_cv_dlopen_self=yes
13128 ;;
13129 esac
13130 fi
13131
13132 ;;
13133
13134 tpf*)
13135 # Don't try to run any link tests for TPF. We know it's impossible
13136 # because TPF is a cross-compiler, and we know how we open DSOs.
13137 lt_cv_dlopen=dlopen
13138 lt_cv_dlopen_libs=
13139 lt_cv_dlopen_self=no
13140 ;;
13141
13142 *)
13143 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13144 if test "x$ac_cv_func_shl_load" = xyes
13145 then :
13146 lt_cv_dlopen=shl_load
13147 else case e in #(
13148 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13149 printf %s "checking for shl_load in -ldld... " >&6; }
13150 if test ${ac_cv_lib_dld_shl_load+y}
13151 then :
13152 printf %s "(cached) " >&6
13153 else case e in #(
13154 e) ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-ldld $LIBS"
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply.
13162 The 'extern "C"' is for builds by C++ compilers;
13163 although this is not generally supported in C code supporting it here
13164 has little cost and some practical benefit (sr 110532). */
13165 #ifdef __cplusplus
13166 extern "C"
13167 #endif
13168 char shl_load (void);
13169 int
13170 main (void)
13171 {
13172 return shl_load ();
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"
13178 then :
13179 ac_cv_lib_dld_shl_load=yes
13180 else case e in #(
13181 e) ac_cv_lib_dld_shl_load=no ;;
13182 esac
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS ;;
13187 esac
13188 fi
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13190 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13191 if test "x$ac_cv_lib_dld_shl_load" = xyes
13192 then :
13193 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13194 else case e in #(
13195 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13196 if test "x$ac_cv_func_dlopen" = xyes
13197 then :
13198 lt_cv_dlopen=dlopen
13199 else case e in #(
13200 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13201 printf %s "checking for dlopen in -ldl... " >&6; }
13202 if test ${ac_cv_lib_dl_dlopen+y}
13203 then :
13204 printf %s "(cached) " >&6
13205 else case e in #(
13206 e) ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-ldl $LIBS"
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply.
13214 The 'extern "C"' is for builds by C++ compilers;
13215 although this is not generally supported in C code supporting it here
13216 has little cost and some practical benefit (sr 110532). */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char dlopen (void);
13221 int
13222 main (void)
13223 {
13224 return dlopen ();
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"
13230 then :
13231 ac_cv_lib_dl_dlopen=yes
13232 else case e in #(
13233 e) ac_cv_lib_dl_dlopen=no ;;
13234 esac
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13237 conftest$ac_exeext conftest.$ac_ext
13238 LIBS=$ac_check_lib_save_LIBS ;;
13239 esac
13240 fi
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13242 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13243 if test "x$ac_cv_lib_dl_dlopen" = xyes
13244 then :
13245 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13246 else case e in #(
13247 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13248 printf %s "checking for dlopen in -lsvld... " >&6; }
13249 if test ${ac_cv_lib_svld_dlopen+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else case e in #(
13253 e) ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-lsvld $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply.
13261 The 'extern "C"' is for builds by C++ compilers;
13262 although this is not generally supported in C code supporting it here
13263 has little cost and some practical benefit (sr 110532). */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 char dlopen (void);
13268 int
13269 main (void)
13270 {
13271 return dlopen ();
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_c_try_link "$LINENO"
13277 then :
13278 ac_cv_lib_svld_dlopen=yes
13279 else case e in #(
13280 e) ac_cv_lib_svld_dlopen=no ;;
13281 esac
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13284 conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS ;;
13286 esac
13287 fi
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13289 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13290 if test "x$ac_cv_lib_svld_dlopen" = xyes
13291 then :
13292 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13293 else case e in #(
13294 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13295 printf %s "checking for dld_link in -ldld... " >&6; }
13296 if test ${ac_cv_lib_dld_dld_link+y}
13297 then :
13298 printf %s "(cached) " >&6
13299 else case e in #(
13300 e) ac_check_lib_save_LIBS=$LIBS
13301 LIBS="-ldld $LIBS"
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply.
13308 The 'extern "C"' is for builds by C++ compilers;
13309 although this is not generally supported in C code supporting it here
13310 has little cost and some practical benefit (sr 110532). */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char dld_link (void);
13315 int
13316 main (void)
13317 {
13318 return dld_link ();
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"
13324 then :
13325 ac_cv_lib_dld_dld_link=yes
13326 else case e in #(
13327 e) ac_cv_lib_dld_dld_link=no ;;
13328 esac
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS ;;
13333 esac
13334 fi
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13336 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13337 if test "x$ac_cv_lib_dld_dld_link" = xyes
13338 then :
13339 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13340 fi
13341
13342 ;;
13343 esac
13344 fi
13345
13346 ;;
13347 esac
13348 fi
13349
13350 ;;
13351 esac
13352 fi
13353
13354 ;;
13355 esac
13356 fi
13357
13358 ;;
13359 esac
13360 fi
13361
13362 ;;
13363 esac
13364
13365 if test no = "$lt_cv_dlopen"; then
13366 enable_dlopen=no
13367 else
13368 enable_dlopen=yes
13369 fi
13370
13371 case $lt_cv_dlopen in
13372 dlopen)
13373 save_CPPFLAGS=$CPPFLAGS
13374 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13375
13376 save_LDFLAGS=$LDFLAGS
13377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13378
13379 save_LIBS=$LIBS
13380 LIBS="$lt_cv_dlopen_libs $LIBS"
13381
13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13383 printf %s "checking whether a program can dlopen itself... " >&6; }
13384 if test ${lt_cv_dlopen_self+y}
13385 then :
13386 printf %s "(cached) " >&6
13387 else case e in #(
13388 e) if test yes = "$cross_compiling"; then :
13389 lt_cv_dlopen_self=cross
13390 else
13391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13392 lt_status=$lt_dlunknown
13393 cat > conftest.$ac_ext <<_LT_EOF
13394 #line $LINENO "configure"
13395 #include "confdefs.h"
13396
13397 #if HAVE_DLFCN_H
13398 #include <dlfcn.h>
13399 #endif
13400
13401 #include <stdio.h>
13402
13403 #ifdef RTLD_GLOBAL
13404 # define LT_DLGLOBAL RTLD_GLOBAL
13405 #else
13406 # ifdef DL_GLOBAL
13407 # define LT_DLGLOBAL DL_GLOBAL
13408 # else
13409 # define LT_DLGLOBAL 0
13410 # endif
13411 #endif
13412
13413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13414 find out it does not work in some platform. */
13415 #ifndef LT_DLLAZY_OR_NOW
13416 # ifdef RTLD_LAZY
13417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13418 # else
13419 # ifdef DL_LAZY
13420 # define LT_DLLAZY_OR_NOW DL_LAZY
13421 # else
13422 # ifdef RTLD_NOW
13423 # define LT_DLLAZY_OR_NOW RTLD_NOW
13424 # else
13425 # ifdef DL_NOW
13426 # define LT_DLLAZY_OR_NOW DL_NOW
13427 # else
13428 # define LT_DLLAZY_OR_NOW 0
13429 # endif
13430 # endif
13431 # endif
13432 # endif
13433 #endif
13434
13435 /* When -fvisibility=hidden is used, assume the code has been annotated
13436 correspondingly for the symbols needed. */
13437 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13438 int fnord (void) __attribute__((visibility("default")));
13439 #endif
13440
13441 int fnord (void) { return 42; }
13442 int main (void)
13443 {
13444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13445 int status = $lt_dlunknown;
13446
13447 if (self)
13448 {
13449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13450 else
13451 {
13452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13453 else puts (dlerror ());
13454 }
13455 /* dlclose (self); */
13456 }
13457 else
13458 puts (dlerror ());
13459
13460 return status;
13461 }
13462 _LT_EOF
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13464 (eval $ac_link) 2>&5
13465 ac_status=$?
13466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13468 (./conftest; exit; ) >&5 2>/dev/null
13469 lt_status=$?
13470 case x$lt_status in
13471 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13472 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13473 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13474 esac
13475 else :
13476 # compilation failed
13477 lt_cv_dlopen_self=no
13478 fi
13479 fi
13480 rm -fr conftest*
13481
13482 ;;
13483 esac
13484 fi
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13486 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13487
13488 if test yes = "$lt_cv_dlopen_self"; then
13489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13491 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13492 if test ${lt_cv_dlopen_self_static+y}
13493 then :
13494 printf %s "(cached) " >&6
13495 else case e in #(
13496 e) if test yes = "$cross_compiling"; then :
13497 lt_cv_dlopen_self_static=cross
13498 else
13499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13500 lt_status=$lt_dlunknown
13501 cat > conftest.$ac_ext <<_LT_EOF
13502 #line $LINENO "configure"
13503 #include "confdefs.h"
13504
13505 #if HAVE_DLFCN_H
13506 #include <dlfcn.h>
13507 #endif
13508
13509 #include <stdio.h>
13510
13511 #ifdef RTLD_GLOBAL
13512 # define LT_DLGLOBAL RTLD_GLOBAL
13513 #else
13514 # ifdef DL_GLOBAL
13515 # define LT_DLGLOBAL DL_GLOBAL
13516 # else
13517 # define LT_DLGLOBAL 0
13518 # endif
13519 #endif
13520
13521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13522 find out it does not work in some platform. */
13523 #ifndef LT_DLLAZY_OR_NOW
13524 # ifdef RTLD_LAZY
13525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13526 # else
13527 # ifdef DL_LAZY
13528 # define LT_DLLAZY_OR_NOW DL_LAZY
13529 # else
13530 # ifdef RTLD_NOW
13531 # define LT_DLLAZY_OR_NOW RTLD_NOW
13532 # else
13533 # ifdef DL_NOW
13534 # define LT_DLLAZY_OR_NOW DL_NOW
13535 # else
13536 # define LT_DLLAZY_OR_NOW 0
13537 # endif
13538 # endif
13539 # endif
13540 # endif
13541 #endif
13542
13543 /* When -fvisibility=hidden is used, assume the code has been annotated
13544 correspondingly for the symbols needed. */
13545 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13546 int fnord (void) __attribute__((visibility("default")));
13547 #endif
13548
13549 int fnord (void) { return 42; }
13550 int main (void)
13551 {
13552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13553 int status = $lt_dlunknown;
13554
13555 if (self)
13556 {
13557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13558 else
13559 {
13560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13561 else puts (dlerror ());
13562 }
13563 /* dlclose (self); */
13564 }
13565 else
13566 puts (dlerror ());
13567
13568 return status;
13569 }
13570 _LT_EOF
13571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13572 (eval $ac_link) 2>&5
13573 ac_status=$?
13574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13575 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13576 (./conftest; exit; ) >&5 2>/dev/null
13577 lt_status=$?
13578 case x$lt_status in
13579 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13580 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13581 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13582 esac
13583 else :
13584 # compilation failed
13585 lt_cv_dlopen_self_static=no
13586 fi
13587 fi
13588 rm -fr conftest*
13589
13590 ;;
13591 esac
13592 fi
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13594 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13595 fi
13596
13597 CPPFLAGS=$save_CPPFLAGS
13598 LDFLAGS=$save_LDFLAGS
13599 LIBS=$save_LIBS
13600 ;;
13601 esac
13602
13603 case $lt_cv_dlopen_self in
13604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13605 *) enable_dlopen_self=unknown ;;
13606 esac
13607
13608 case $lt_cv_dlopen_self_static in
13609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13610 *) enable_dlopen_self_static=unknown ;;
13611 esac
13612 fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630 striplib=
13631 old_striplib=
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13633 printf %s "checking whether stripping libraries is possible... " >&6; }
13634 if test -z "$STRIP"; then
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 printf "%s\n" "no" >&6; }
13637 else
13638 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13639 old_striplib="$STRIP --strip-debug"
13640 striplib="$STRIP --strip-unneeded"
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642 printf "%s\n" "yes" >&6; }
13643 else
13644 case $host_os in
13645 darwin*)
13646 # FIXME - insert some real tests, host_os isn't really good enough
13647 striplib="$STRIP -x"
13648 old_striplib="$STRIP -S"
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13650 printf "%s\n" "yes" >&6; }
13651 ;;
13652 freebsd*)
13653 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13654 old_striplib="$STRIP --strip-debug"
13655 striplib="$STRIP --strip-unneeded"
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13657 printf "%s\n" "yes" >&6; }
13658 else
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 printf "%s\n" "no" >&6; }
13661 fi
13662 ;;
13663 *)
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 printf "%s\n" "no" >&6; }
13666 ;;
13667 esac
13668 fi
13669 fi
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682 # Report what library types will actually be built
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13684 printf %s "checking if libtool supports shared libraries... " >&6; }
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13686 printf "%s\n" "$can_build_shared" >&6; }
13687
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13689 printf %s "checking whether to build shared libraries... " >&6; }
13690 test no = "$can_build_shared" && enable_shared=no
13691
13692 # On AIX, shared libraries and static libraries use the same namespace, and
13693 # are all built from PIC.
13694 case $host_os in
13695 aix3*)
13696 test yes = "$enable_shared" && enable_static=no
13697 if test -n "$RANLIB"; then
13698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13699 postinstall_cmds='$RANLIB $lib'
13700 fi
13701 ;;
13702
13703 aix[4-9]*)
13704 if test ia64 != "$host_cpu"; then
13705 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13706 yes,aix,yes) ;; # shared object as lib.so file only
13707 yes,svr4,*) ;; # shared object as lib.so archive member only
13708 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13709 esac
13710 fi
13711 ;;
13712 esac
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13714 printf "%s\n" "$enable_shared" >&6; }
13715
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13717 printf %s "checking whether to build static libraries... " >&6; }
13718 # Make sure either enable_shared or enable_static is yes.
13719 test yes = "$enable_shared" || enable_static=yes
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13721 printf "%s\n" "$enable_static" >&6; }
13722
13723
13724
13725
13726 fi
13727 ac_ext=c
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732
13733 CC=$lt_save_CC
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749 ac_config_commands="$ac_config_commands libtool"
13750
13751
13752
13753
13754 # Only expand once:
13755
13756
13757
13758 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13771 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13772 if test ${ac_cv_c_undeclared_builtin_options+y}
13773 then :
13774 printf %s "(cached) " >&6
13775 else case e in #(
13776 e) ac_save_CFLAGS=$CFLAGS
13777 ac_cv_c_undeclared_builtin_options='cannot detect'
13778 for ac_arg in '' -fno-builtin; do
13779 CFLAGS="$ac_save_CFLAGS $ac_arg"
13780 # This test program should *not* compile successfully.
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783
13784 int
13785 main (void)
13786 {
13787 (void) strchr;
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_compile "$LINENO"
13793 then :
13794
13795 else case e in #(
13796 e) # This test program should compile successfully.
13797 # No library function is consistently available on
13798 # freestanding implementations, so test against a dummy
13799 # declaration. Include always-available headers on the
13800 # off chance that they somehow elicit warnings.
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <float.h>
13804 #include <limits.h>
13805 #include <stdarg.h>
13806 #include <stddef.h>
13807 extern void ac_decl (int, char *);
13808
13809 int
13810 main (void)
13811 {
13812 (void) ac_decl (0, (char *) 0);
13813 (void) ac_decl;
13814
13815 ;
13816 return 0;
13817 }
13818 _ACEOF
13819 if ac_fn_c_try_compile "$LINENO"
13820 then :
13821 if test x"$ac_arg" = x
13822 then :
13823 ac_cv_c_undeclared_builtin_options='none needed'
13824 else case e in #(
13825 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13826 esac
13827 fi
13828 break
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13831 esac
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13834 done
13835 CFLAGS=$ac_save_CFLAGS
13836 ;;
13837 esac
13838 fi
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13840 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13841 case $ac_cv_c_undeclared_builtin_options in #(
13842 'cannot detect') :
13843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13844 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13845 as_fn_error $? "cannot make $CC report undeclared builtins
13846 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13847 'none needed') :
13848 ac_c_undeclared_builtin_options='' ;; #(
13849 *) :
13850 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13851 esac
13852
13853
13854
13855
13856
13857 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13858 if test "x$ac_cv_have_decl___clang__" = xyes
13859 then :
13860 CLANGCC="yes"
13861 else case e in #(
13862 e) CLANGCC="no" ;;
13863 esac
13864 fi
13865 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13866 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13867 then :
13868 INTELCC="yes"
13869 else case e in #(
13870 e) INTELCC="no" ;;
13871 esac
13872 fi
13873 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13874 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13875 then :
13876 SUNCC="yes"
13877 else case e in #(
13878 e) SUNCC="no" ;;
13879 esac
13880 fi
13881
13882
13883
13884
13885
13886
13887
13888
13889 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13890 if test -n "$ac_tool_prefix"; then
13891 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13892 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 printf %s "checking for $ac_word... " >&6; }
13895 if test ${ac_cv_path_PKG_CONFIG+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else case e in #(
13899 e) case $PKG_CONFIG in
13900 [\\/]* | ?:[\\/]*)
13901 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13902 ;;
13903 *)
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907 IFS=$as_save_IFS
13908 case $as_dir in #(((
13909 '') as_dir=./ ;;
13910 */) ;;
13911 *) as_dir=$as_dir/ ;;
13912 esac
13913 for ac_exec_ext in '' $ac_executable_extensions; do
13914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13915 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13917 break 2
13918 fi
13919 done
13920 done
13921 IFS=$as_save_IFS
13922
13923 ;;
13924 esac ;;
13925 esac
13926 fi
13927 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13928 if test -n "$PKG_CONFIG"; then
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13930 printf "%s\n" "$PKG_CONFIG" >&6; }
13931 else
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 printf "%s\n" "no" >&6; }
13934 fi
13935
13936
13937 fi
13938 if test -z "$ac_cv_path_PKG_CONFIG"; then
13939 ac_pt_PKG_CONFIG=$PKG_CONFIG
13940 # Extract the first word of "pkg-config", so it can be a program name with args.
13941 set dummy pkg-config; ac_word=$2
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943 printf %s "checking for $ac_word... " >&6; }
13944 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13945 then :
13946 printf %s "(cached) " >&6
13947 else case e in #(
13948 e) case $ac_pt_PKG_CONFIG in
13949 [\\/]* | ?:[\\/]*)
13950 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13951 ;;
13952 *)
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956 IFS=$as_save_IFS
13957 case $as_dir in #(((
13958 '') as_dir=./ ;;
13959 */) ;;
13960 *) as_dir=$as_dir/ ;;
13961 esac
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13964 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13966 break 2
13967 fi
13968 done
13969 done
13970 IFS=$as_save_IFS
13971
13972 ;;
13973 esac ;;
13974 esac
13975 fi
13976 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13977 if test -n "$ac_pt_PKG_CONFIG"; then
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13979 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13980 else
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 printf "%s\n" "no" >&6; }
13983 fi
13984
13985 if test "x$ac_pt_PKG_CONFIG" = x; then
13986 PKG_CONFIG=""
13987 else
13988 case $cross_compiling:$ac_tool_warned in
13989 yes:)
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13992 ac_tool_warned=yes ;;
13993 esac
13994 PKG_CONFIG=$ac_pt_PKG_CONFIG
13995 fi
13996 else
13997 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13998 fi
13999
14000 fi
14001 if test -n "$PKG_CONFIG"; then
14002 _pkg_min_version=0.9.0
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14004 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14005 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 printf "%s\n" "yes" >&6; }
14008 else
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 printf "%s\n" "no" >&6; }
14011 PKG_CONFIG=""
14012 fi
14013 fi
14014
14015
14016
14017
14018
14019 # Check whether --enable-selective-werror was given.
14020 if test ${enable_selective_werror+y}
14021 then :
14022 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14023 else case e in #(
14024 e) SELECTIVE_WERROR=yes ;;
14025 esac
14026 fi
14027
14028
14029
14030
14031
14032 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14033 if test "x$SUNCC" = "xyes"; then
14034 BASE_CFLAGS="-v"
14035 else
14036 BASE_CFLAGS=""
14037 fi
14038
14039 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053 xorg_testset_save_CFLAGS="$CFLAGS"
14054
14055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14059 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14060 then :
14061 printf %s "(cached) " >&6
14062 else case e in #(
14063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 int i;
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"
14068 then :
14069 xorg_cv_cc_flag_unknown_warning_option=yes
14070 else case e in #(
14071 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14072 esac
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14075 esac
14076 fi
14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14080 CFLAGS="$xorg_testset_save_CFLAGS"
14081 fi
14082
14083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14086 fi
14087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14091 then :
14092 printf %s "(cached) " >&6
14093 else case e in #(
14094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 int i;
14097 _ACEOF
14098 if ac_fn_c_try_compile "$LINENO"
14099 then :
14100 xorg_cv_cc_flag_unused_command_line_argument=yes
14101 else case e in #(
14102 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14103 esac
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14106 esac
14107 fi
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14111 CFLAGS="$xorg_testset_save_CFLAGS"
14112 fi
14113
14114 found="no"
14115
14116 if test $found = "no" ; then
14117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14119 fi
14120
14121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14123 fi
14124
14125 CFLAGS="$CFLAGS -Wall"
14126
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14128 printf %s "checking if $CC supports -Wall... " >&6; }
14129 cacheid=xorg_cv_cc_flag__Wall
14130 if eval test \${$cacheid+y}
14131 then :
14132 printf %s "(cached) " >&6
14133 else case e in #(
14134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 int i;
14137 int
14138 main (void)
14139 {
14140
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"
14146 then :
14147 eval $cacheid=yes
14148 else case e in #(
14149 e) eval $cacheid=no ;;
14150 esac
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14153 conftest$ac_exeext conftest.$ac_ext ;;
14154 esac
14155 fi
14156
14157
14158 CFLAGS="$xorg_testset_save_CFLAGS"
14159
14160 eval supported=\$$cacheid
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14162 printf "%s\n" "$supported" >&6; }
14163 if test "$supported" = "yes" ; then
14164 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14165 found="yes"
14166 fi
14167 fi
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183 xorg_testset_save_CFLAGS="$CFLAGS"
14184
14185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14190 then :
14191 printf %s "(cached) " >&6
14192 else case e in #(
14193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 int i;
14196 _ACEOF
14197 if ac_fn_c_try_compile "$LINENO"
14198 then :
14199 xorg_cv_cc_flag_unknown_warning_option=yes
14200 else case e in #(
14201 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14202 esac
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14205 esac
14206 fi
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14210 CFLAGS="$xorg_testset_save_CFLAGS"
14211 fi
14212
14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 fi
14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14221 then :
14222 printf %s "(cached) " >&6
14223 else case e in #(
14224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"
14229 then :
14230 xorg_cv_cc_flag_unused_command_line_argument=yes
14231 else case e in #(
14232 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14233 esac
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14236 esac
14237 fi
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14241 CFLAGS="$xorg_testset_save_CFLAGS"
14242 fi
14243
14244 found="no"
14245
14246 if test $found = "no" ; then
14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14249 fi
14250
14251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14253 fi
14254
14255 CFLAGS="$CFLAGS -Wpointer-arith"
14256
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14258 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14259 cacheid=xorg_cv_cc_flag__Wpointer_arith
14260 if eval test \${$cacheid+y}
14261 then :
14262 printf %s "(cached) " >&6
14263 else case e in #(
14264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266 int i;
14267 int
14268 main (void)
14269 {
14270
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"
14276 then :
14277 eval $cacheid=yes
14278 else case e in #(
14279 e) eval $cacheid=no ;;
14280 esac
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14283 conftest$ac_exeext conftest.$ac_ext ;;
14284 esac
14285 fi
14286
14287
14288 CFLAGS="$xorg_testset_save_CFLAGS"
14289
14290 eval supported=\$$cacheid
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14292 printf "%s\n" "$supported" >&6; }
14293 if test "$supported" = "yes" ; then
14294 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14295 found="yes"
14296 fi
14297 fi
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313 xorg_testset_save_CFLAGS="$CFLAGS"
14314
14315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14320 then :
14321 printf %s "(cached) " >&6
14322 else case e in #(
14323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else case e in #(
14331 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14332 esac
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14335 esac
14336 fi
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14340 CFLAGS="$xorg_testset_save_CFLAGS"
14341 fi
14342
14343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346 fi
14347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14351 then :
14352 printf %s "(cached) " >&6
14353 else case e in #(
14354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 int i;
14357 _ACEOF
14358 if ac_fn_c_try_compile "$LINENO"
14359 then :
14360 xorg_cv_cc_flag_unused_command_line_argument=yes
14361 else case e in #(
14362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14366 esac
14367 fi
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372 fi
14373
14374 found="no"
14375
14376 if test $found = "no" ; then
14377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379 fi
14380
14381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383 fi
14384
14385 CFLAGS="$CFLAGS -Wmissing-declarations"
14386
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14388 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14389 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14390 if eval test \${$cacheid+y}
14391 then :
14392 printf %s "(cached) " >&6
14393 else case e in #(
14394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 int i;
14397 int
14398 main (void)
14399 {
14400
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"
14406 then :
14407 eval $cacheid=yes
14408 else case e in #(
14409 e) eval $cacheid=no ;;
14410 esac
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413 conftest$ac_exeext conftest.$ac_ext ;;
14414 esac
14415 fi
14416
14417
14418 CFLAGS="$xorg_testset_save_CFLAGS"
14419
14420 eval supported=\$$cacheid
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14422 printf "%s\n" "$supported" >&6; }
14423 if test "$supported" = "yes" ; then
14424 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14425 found="yes"
14426 fi
14427 fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443 xorg_testset_save_CFLAGS="$CFLAGS"
14444
14445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14450 then :
14451 printf %s "(cached) " >&6
14452 else case e in #(
14453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 int i;
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"
14458 then :
14459 xorg_cv_cc_flag_unknown_warning_option=yes
14460 else case e in #(
14461 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14462 esac
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14465 esac
14466 fi
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14468 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14470 CFLAGS="$xorg_testset_save_CFLAGS"
14471 fi
14472
14473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476 fi
14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else case e in #(
14484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 int i;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"
14489 then :
14490 xorg_cv_cc_flag_unused_command_line_argument=yes
14491 else case e in #(
14492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14493 esac
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14496 esac
14497 fi
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14499 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502 fi
14503
14504 found="no"
14505
14506 if test $found = "no" ; then
14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509 fi
14510
14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513 fi
14514
14515 CFLAGS="$CFLAGS -Wformat=2"
14516
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14518 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14519 cacheid=xorg_cv_cc_flag__Wformat_2
14520 if eval test \${$cacheid+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else case e in #(
14524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 int
14528 main (void)
14529 {
14530
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"
14536 then :
14537 eval $cacheid=yes
14538 else case e in #(
14539 e) eval $cacheid=no ;;
14540 esac
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543 conftest$ac_exeext conftest.$ac_ext ;;
14544 esac
14545 fi
14546
14547
14548 CFLAGS="$xorg_testset_save_CFLAGS"
14549
14550 eval supported=\$$cacheid
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14552 printf "%s\n" "$supported" >&6; }
14553 if test "$supported" = "yes" ; then
14554 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14555 found="yes"
14556 fi
14557 fi
14558
14559 if test $found = "no" ; then
14560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562 fi
14563
14564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14566 fi
14567
14568 CFLAGS="$CFLAGS -Wformat"
14569
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14571 printf %s "checking if $CC supports -Wformat... " >&6; }
14572 cacheid=xorg_cv_cc_flag__Wformat
14573 if eval test \${$cacheid+y}
14574 then :
14575 printf %s "(cached) " >&6
14576 else case e in #(
14577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14579 int i;
14580 int
14581 main (void)
14582 {
14583
14584 ;
14585 return 0;
14586 }
14587 _ACEOF
14588 if ac_fn_c_try_link "$LINENO"
14589 then :
14590 eval $cacheid=yes
14591 else case e in #(
14592 e) eval $cacheid=no ;;
14593 esac
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14596 conftest$ac_exeext conftest.$ac_ext ;;
14597 esac
14598 fi
14599
14600
14601 CFLAGS="$xorg_testset_save_CFLAGS"
14602
14603 eval supported=\$$cacheid
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14605 printf "%s\n" "$supported" >&6; }
14606 if test "$supported" = "yes" ; then
14607 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14608 found="yes"
14609 fi
14610 fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628 xorg_testset_save_CFLAGS="$CFLAGS"
14629
14630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14635 then :
14636 printf %s "(cached) " >&6
14637 else case e in #(
14638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 int i;
14641 _ACEOF
14642 if ac_fn_c_try_compile "$LINENO"
14643 then :
14644 xorg_cv_cc_flag_unknown_warning_option=yes
14645 else case e in #(
14646 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14647 esac
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14650 esac
14651 fi
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14655 CFLAGS="$xorg_testset_save_CFLAGS"
14656 fi
14657
14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661 fi
14662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14666 then :
14667 printf %s "(cached) " >&6
14668 else case e in #(
14669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 int i;
14672 _ACEOF
14673 if ac_fn_c_try_compile "$LINENO"
14674 then :
14675 xorg_cv_cc_flag_unused_command_line_argument=yes
14676 else case e in #(
14677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14678 esac
14679 fi
14680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14681 esac
14682 fi
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14686 CFLAGS="$xorg_testset_save_CFLAGS"
14687 fi
14688
14689 found="no"
14690
14691 if test $found = "no" ; then
14692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694 fi
14695
14696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14698 fi
14699
14700 CFLAGS="$CFLAGS -Wstrict-prototypes"
14701
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14703 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14704 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14705 if eval test \${$cacheid+y}
14706 then :
14707 printf %s "(cached) " >&6
14708 else case e in #(
14709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 int i;
14712 int
14713 main (void)
14714 {
14715
14716 ;
14717 return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_link "$LINENO"
14721 then :
14722 eval $cacheid=yes
14723 else case e in #(
14724 e) eval $cacheid=no ;;
14725 esac
14726 fi
14727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14728 conftest$ac_exeext conftest.$ac_ext ;;
14729 esac
14730 fi
14731
14732
14733 CFLAGS="$xorg_testset_save_CFLAGS"
14734
14735 eval supported=\$$cacheid
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14737 printf "%s\n" "$supported" >&6; }
14738 if test "$supported" = "yes" ; then
14739 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14740 found="yes"
14741 fi
14742 fi
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758 xorg_testset_save_CFLAGS="$CFLAGS"
14759
14760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14765 then :
14766 printf %s "(cached) " >&6
14767 else case e in #(
14768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 int i;
14771 _ACEOF
14772 if ac_fn_c_try_compile "$LINENO"
14773 then :
14774 xorg_cv_cc_flag_unknown_warning_option=yes
14775 else case e in #(
14776 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14777 esac
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14780 esac
14781 fi
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14785 CFLAGS="$xorg_testset_save_CFLAGS"
14786 fi
14787
14788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791 fi
14792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14796 then :
14797 printf %s "(cached) " >&6
14798 else case e in #(
14799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801 int i;
14802 _ACEOF
14803 if ac_fn_c_try_compile "$LINENO"
14804 then :
14805 xorg_cv_cc_flag_unused_command_line_argument=yes
14806 else case e in #(
14807 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14808 esac
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14811 esac
14812 fi
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14814 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14816 CFLAGS="$xorg_testset_save_CFLAGS"
14817 fi
14818
14819 found="no"
14820
14821 if test $found = "no" ; then
14822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824 fi
14825
14826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14828 fi
14829
14830 CFLAGS="$CFLAGS -Wmissing-prototypes"
14831
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14833 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14834 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14835 if eval test \${$cacheid+y}
14836 then :
14837 printf %s "(cached) " >&6
14838 else case e in #(
14839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 int i;
14842 int
14843 main (void)
14844 {
14845
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"
14851 then :
14852 eval $cacheid=yes
14853 else case e in #(
14854 e) eval $cacheid=no ;;
14855 esac
14856 fi
14857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14858 conftest$ac_exeext conftest.$ac_ext ;;
14859 esac
14860 fi
14861
14862
14863 CFLAGS="$xorg_testset_save_CFLAGS"
14864
14865 eval supported=\$$cacheid
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14867 printf "%s\n" "$supported" >&6; }
14868 if test "$supported" = "yes" ; then
14869 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14870 found="yes"
14871 fi
14872 fi
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888 xorg_testset_save_CFLAGS="$CFLAGS"
14889
14890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14893 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14894 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14895 then :
14896 printf %s "(cached) " >&6
14897 else case e in #(
14898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 int i;
14901 _ACEOF
14902 if ac_fn_c_try_compile "$LINENO"
14903 then :
14904 xorg_cv_cc_flag_unknown_warning_option=yes
14905 else case e in #(
14906 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14907 esac
14908 fi
14909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14910 esac
14911 fi
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14915 CFLAGS="$xorg_testset_save_CFLAGS"
14916 fi
14917
14918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14921 fi
14922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14926 then :
14927 printf %s "(cached) " >&6
14928 else case e in #(
14929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 int i;
14932 _ACEOF
14933 if ac_fn_c_try_compile "$LINENO"
14934 then :
14935 xorg_cv_cc_flag_unused_command_line_argument=yes
14936 else case e in #(
14937 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14938 esac
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14941 esac
14942 fi
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14944 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14946 CFLAGS="$xorg_testset_save_CFLAGS"
14947 fi
14948
14949 found="no"
14950
14951 if test $found = "no" ; then
14952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954 fi
14955
14956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14958 fi
14959
14960 CFLAGS="$CFLAGS -Wnested-externs"
14961
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14963 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14964 cacheid=xorg_cv_cc_flag__Wnested_externs
14965 if eval test \${$cacheid+y}
14966 then :
14967 printf %s "(cached) " >&6
14968 else case e in #(
14969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 int i;
14972 int
14973 main (void)
14974 {
14975
14976 ;
14977 return 0;
14978 }
14979 _ACEOF
14980 if ac_fn_c_try_link "$LINENO"
14981 then :
14982 eval $cacheid=yes
14983 else case e in #(
14984 e) eval $cacheid=no ;;
14985 esac
14986 fi
14987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14988 conftest$ac_exeext conftest.$ac_ext ;;
14989 esac
14990 fi
14991
14992
14993 CFLAGS="$xorg_testset_save_CFLAGS"
14994
14995 eval supported=\$$cacheid
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14997 printf "%s\n" "$supported" >&6; }
14998 if test "$supported" = "yes" ; then
14999 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15000 found="yes"
15001 fi
15002 fi
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018 xorg_testset_save_CFLAGS="$CFLAGS"
15019
15020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15023 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15024 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15025 then :
15026 printf %s "(cached) " >&6
15027 else case e in #(
15028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 int i;
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"
15033 then :
15034 xorg_cv_cc_flag_unknown_warning_option=yes
15035 else case e in #(
15036 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15037 esac
15038 fi
15039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15040 esac
15041 fi
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15043 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15045 CFLAGS="$xorg_testset_save_CFLAGS"
15046 fi
15047
15048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051 fi
15052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15055 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15056 then :
15057 printf %s "(cached) " >&6
15058 else case e in #(
15059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 int i;
15062 _ACEOF
15063 if ac_fn_c_try_compile "$LINENO"
15064 then :
15065 xorg_cv_cc_flag_unused_command_line_argument=yes
15066 else case e in #(
15067 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15068 esac
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15071 esac
15072 fi
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15076 CFLAGS="$xorg_testset_save_CFLAGS"
15077 fi
15078
15079 found="no"
15080
15081 if test $found = "no" ; then
15082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084 fi
15085
15086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15088 fi
15089
15090 CFLAGS="$CFLAGS -Wbad-function-cast"
15091
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15093 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15094 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15095 if eval test \${$cacheid+y}
15096 then :
15097 printf %s "(cached) " >&6
15098 else case e in #(
15099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101 int i;
15102 int
15103 main (void)
15104 {
15105
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"
15111 then :
15112 eval $cacheid=yes
15113 else case e in #(
15114 e) eval $cacheid=no ;;
15115 esac
15116 fi
15117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15118 conftest$ac_exeext conftest.$ac_ext ;;
15119 esac
15120 fi
15121
15122
15123 CFLAGS="$xorg_testset_save_CFLAGS"
15124
15125 eval supported=\$$cacheid
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15127 printf "%s\n" "$supported" >&6; }
15128 if test "$supported" = "yes" ; then
15129 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15130 found="yes"
15131 fi
15132 fi
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148 xorg_testset_save_CFLAGS="$CFLAGS"
15149
15150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15153 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15154 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else case e in #(
15158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 int i;
15161 _ACEOF
15162 if ac_fn_c_try_compile "$LINENO"
15163 then :
15164 xorg_cv_cc_flag_unknown_warning_option=yes
15165 else case e in #(
15166 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15167 esac
15168 fi
15169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15170 esac
15171 fi
15172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15173 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15175 CFLAGS="$xorg_testset_save_CFLAGS"
15176 fi
15177
15178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181 fi
15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15186 then :
15187 printf %s "(cached) " >&6
15188 else case e in #(
15189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 int i;
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"
15194 then :
15195 xorg_cv_cc_flag_unused_command_line_argument=yes
15196 else case e in #(
15197 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15198 esac
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15201 esac
15202 fi
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15204 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15206 CFLAGS="$xorg_testset_save_CFLAGS"
15207 fi
15208
15209 found="no"
15210
15211 if test $found = "no" ; then
15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15214 fi
15215
15216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15218 fi
15219
15220 CFLAGS="$CFLAGS -Wold-style-definition"
15221
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15223 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15224 cacheid=xorg_cv_cc_flag__Wold_style_definition
15225 if eval test \${$cacheid+y}
15226 then :
15227 printf %s "(cached) " >&6
15228 else case e in #(
15229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 int
15233 main (void)
15234 {
15235
15236 ;
15237 return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_link "$LINENO"
15241 then :
15242 eval $cacheid=yes
15243 else case e in #(
15244 e) eval $cacheid=no ;;
15245 esac
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15248 conftest$ac_exeext conftest.$ac_ext ;;
15249 esac
15250 fi
15251
15252
15253 CFLAGS="$xorg_testset_save_CFLAGS"
15254
15255 eval supported=\$$cacheid
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15257 printf "%s\n" "$supported" >&6; }
15258 if test "$supported" = "yes" ; then
15259 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15260 found="yes"
15261 fi
15262 fi
15263
15264 if test $found = "no" ; then
15265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267 fi
15268
15269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15271 fi
15272
15273 CFLAGS="$CFLAGS -fd"
15274
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15276 printf %s "checking if $CC supports -fd... " >&6; }
15277 cacheid=xorg_cv_cc_flag__fd
15278 if eval test \${$cacheid+y}
15279 then :
15280 printf %s "(cached) " >&6
15281 else case e in #(
15282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 int i;
15285 int
15286 main (void)
15287 {
15288
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"
15294 then :
15295 eval $cacheid=yes
15296 else case e in #(
15297 e) eval $cacheid=no ;;
15298 esac
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15301 conftest$ac_exeext conftest.$ac_ext ;;
15302 esac
15303 fi
15304
15305
15306 CFLAGS="$xorg_testset_save_CFLAGS"
15307
15308 eval supported=\$$cacheid
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15310 printf "%s\n" "$supported" >&6; }
15311 if test "$supported" = "yes" ; then
15312 BASE_CFLAGS="$BASE_CFLAGS -fd"
15313 found="yes"
15314 fi
15315 fi
15316
15317
15318
15319
15320
15321 # This chunk adds additional warnings that could catch undesired effects.
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335 xorg_testset_save_CFLAGS="$CFLAGS"
15336
15337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else case e in #(
15345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 int i;
15348 _ACEOF
15349 if ac_fn_c_try_compile "$LINENO"
15350 then :
15351 xorg_cv_cc_flag_unknown_warning_option=yes
15352 else case e in #(
15353 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15354 esac
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15357 esac
15358 fi
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15362 CFLAGS="$xorg_testset_save_CFLAGS"
15363 fi
15364
15365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 fi
15369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15373 then :
15374 printf %s "(cached) " >&6
15375 else case e in #(
15376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 int i;
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"
15381 then :
15382 xorg_cv_cc_flag_unused_command_line_argument=yes
15383 else case e in #(
15384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15385 esac
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15388 esac
15389 fi
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15393 CFLAGS="$xorg_testset_save_CFLAGS"
15394 fi
15395
15396 found="no"
15397
15398 if test $found = "no" ; then
15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401 fi
15402
15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15405 fi
15406
15407 CFLAGS="$CFLAGS -Wunused"
15408
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15410 printf %s "checking if $CC supports -Wunused... " >&6; }
15411 cacheid=xorg_cv_cc_flag__Wunused
15412 if eval test \${$cacheid+y}
15413 then :
15414 printf %s "(cached) " >&6
15415 else case e in #(
15416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 int i;
15419 int
15420 main (void)
15421 {
15422
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_link "$LINENO"
15428 then :
15429 eval $cacheid=yes
15430 else case e in #(
15431 e) eval $cacheid=no ;;
15432 esac
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15435 conftest$ac_exeext conftest.$ac_ext ;;
15436 esac
15437 fi
15438
15439
15440 CFLAGS="$xorg_testset_save_CFLAGS"
15441
15442 eval supported=\$$cacheid
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15444 printf "%s\n" "$supported" >&6; }
15445 if test "$supported" = "yes" ; then
15446 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15447 found="yes"
15448 fi
15449 fi
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465 xorg_testset_save_CFLAGS="$CFLAGS"
15466
15467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15472 then :
15473 printf %s "(cached) " >&6
15474 else case e in #(
15475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 int i;
15478 _ACEOF
15479 if ac_fn_c_try_compile "$LINENO"
15480 then :
15481 xorg_cv_cc_flag_unknown_warning_option=yes
15482 else case e in #(
15483 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15484 esac
15485 fi
15486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15487 esac
15488 fi
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15492 CFLAGS="$xorg_testset_save_CFLAGS"
15493 fi
15494
15495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498 fi
15499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else case e in #(
15506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 int i;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"
15511 then :
15512 xorg_cv_cc_flag_unused_command_line_argument=yes
15513 else case e in #(
15514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15515 esac
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15518 esac
15519 fi
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15523 CFLAGS="$xorg_testset_save_CFLAGS"
15524 fi
15525
15526 found="no"
15527
15528 if test $found = "no" ; then
15529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15531 fi
15532
15533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15535 fi
15536
15537 CFLAGS="$CFLAGS -Wuninitialized"
15538
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15540 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15541 cacheid=xorg_cv_cc_flag__Wuninitialized
15542 if eval test \${$cacheid+y}
15543 then :
15544 printf %s "(cached) " >&6
15545 else case e in #(
15546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 int i;
15549 int
15550 main (void)
15551 {
15552
15553 ;
15554 return 0;
15555 }
15556 _ACEOF
15557 if ac_fn_c_try_link "$LINENO"
15558 then :
15559 eval $cacheid=yes
15560 else case e in #(
15561 e) eval $cacheid=no ;;
15562 esac
15563 fi
15564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15565 conftest$ac_exeext conftest.$ac_ext ;;
15566 esac
15567 fi
15568
15569
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571
15572 eval supported=\$$cacheid
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15574 printf "%s\n" "$supported" >&6; }
15575 if test "$supported" = "yes" ; then
15576 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15577 found="yes"
15578 fi
15579 fi
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 xorg_testset_save_CFLAGS="$CFLAGS"
15596
15597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15600 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15601 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15602 then :
15603 printf %s "(cached) " >&6
15604 else case e in #(
15605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15607 int i;
15608 _ACEOF
15609 if ac_fn_c_try_compile "$LINENO"
15610 then :
15611 xorg_cv_cc_flag_unknown_warning_option=yes
15612 else case e in #(
15613 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15614 esac
15615 fi
15616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15617 esac
15618 fi
15619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15622 CFLAGS="$xorg_testset_save_CFLAGS"
15623 fi
15624
15625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15628 fi
15629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15633 then :
15634 printf %s "(cached) " >&6
15635 else case e in #(
15636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 int i;
15639 _ACEOF
15640 if ac_fn_c_try_compile "$LINENO"
15641 then :
15642 xorg_cv_cc_flag_unused_command_line_argument=yes
15643 else case e in #(
15644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15645 esac
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15648 esac
15649 fi
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15653 CFLAGS="$xorg_testset_save_CFLAGS"
15654 fi
15655
15656 found="no"
15657
15658 if test $found = "no" ; then
15659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15661 fi
15662
15663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15665 fi
15666
15667 CFLAGS="$CFLAGS -Wshadow"
15668
15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15670 printf %s "checking if $CC supports -Wshadow... " >&6; }
15671 cacheid=xorg_cv_cc_flag__Wshadow
15672 if eval test \${$cacheid+y}
15673 then :
15674 printf %s "(cached) " >&6
15675 else case e in #(
15676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 int i;
15679 int
15680 main (void)
15681 {
15682
15683 ;
15684 return 0;
15685 }
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"
15688 then :
15689 eval $cacheid=yes
15690 else case e in #(
15691 e) eval $cacheid=no ;;
15692 esac
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15695 conftest$ac_exeext conftest.$ac_ext ;;
15696 esac
15697 fi
15698
15699
15700 CFLAGS="$xorg_testset_save_CFLAGS"
15701
15702 eval supported=\$$cacheid
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15704 printf "%s\n" "$supported" >&6; }
15705 if test "$supported" = "yes" ; then
15706 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15707 found="yes"
15708 fi
15709 fi
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725 xorg_testset_save_CFLAGS="$CFLAGS"
15726
15727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15730 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15731 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15732 then :
15733 printf %s "(cached) " >&6
15734 else case e in #(
15735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 int i;
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"
15740 then :
15741 xorg_cv_cc_flag_unknown_warning_option=yes
15742 else case e in #(
15743 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15744 esac
15745 fi
15746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15747 esac
15748 fi
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15752 CFLAGS="$xorg_testset_save_CFLAGS"
15753 fi
15754
15755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15758 fi
15759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15763 then :
15764 printf %s "(cached) " >&6
15765 else case e in #(
15766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 int i;
15769 _ACEOF
15770 if ac_fn_c_try_compile "$LINENO"
15771 then :
15772 xorg_cv_cc_flag_unused_command_line_argument=yes
15773 else case e in #(
15774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15775 esac
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15778 esac
15779 fi
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15783 CFLAGS="$xorg_testset_save_CFLAGS"
15784 fi
15785
15786 found="no"
15787
15788 if test $found = "no" ; then
15789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15791 fi
15792
15793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15795 fi
15796
15797 CFLAGS="$CFLAGS -Wmissing-noreturn"
15798
15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15800 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15801 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15802 if eval test \${$cacheid+y}
15803 then :
15804 printf %s "(cached) " >&6
15805 else case e in #(
15806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 int i;
15809 int
15810 main (void)
15811 {
15812
15813 ;
15814 return 0;
15815 }
15816 _ACEOF
15817 if ac_fn_c_try_link "$LINENO"
15818 then :
15819 eval $cacheid=yes
15820 else case e in #(
15821 e) eval $cacheid=no ;;
15822 esac
15823 fi
15824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15825 conftest$ac_exeext conftest.$ac_ext ;;
15826 esac
15827 fi
15828
15829
15830 CFLAGS="$xorg_testset_save_CFLAGS"
15831
15832 eval supported=\$$cacheid
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15834 printf "%s\n" "$supported" >&6; }
15835 if test "$supported" = "yes" ; then
15836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15837 found="yes"
15838 fi
15839 fi
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855 xorg_testset_save_CFLAGS="$CFLAGS"
15856
15857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15862 then :
15863 printf %s "(cached) " >&6
15864 else case e in #(
15865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 int i;
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"
15870 then :
15871 xorg_cv_cc_flag_unknown_warning_option=yes
15872 else case e in #(
15873 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15874 esac
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15877 esac
15878 fi
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15882 CFLAGS="$xorg_testset_save_CFLAGS"
15883 fi
15884
15885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888 fi
15889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15893 then :
15894 printf %s "(cached) " >&6
15895 else case e in #(
15896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 int i;
15899 _ACEOF
15900 if ac_fn_c_try_compile "$LINENO"
15901 then :
15902 xorg_cv_cc_flag_unused_command_line_argument=yes
15903 else case e in #(
15904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15905 esac
15906 fi
15907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15908 esac
15909 fi
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15913 CFLAGS="$xorg_testset_save_CFLAGS"
15914 fi
15915
15916 found="no"
15917
15918 if test $found = "no" ; then
15919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921 fi
15922
15923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15925 fi
15926
15927 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15928
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15930 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15931 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15932 if eval test \${$cacheid+y}
15933 then :
15934 printf %s "(cached) " >&6
15935 else case e in #(
15936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 int i;
15939 int
15940 main (void)
15941 {
15942
15943 ;
15944 return 0;
15945 }
15946 _ACEOF
15947 if ac_fn_c_try_link "$LINENO"
15948 then :
15949 eval $cacheid=yes
15950 else case e in #(
15951 e) eval $cacheid=no ;;
15952 esac
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15955 conftest$ac_exeext conftest.$ac_ext ;;
15956 esac
15957 fi
15958
15959
15960 CFLAGS="$xorg_testset_save_CFLAGS"
15961
15962 eval supported=\$$cacheid
15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15964 printf "%s\n" "$supported" >&6; }
15965 if test "$supported" = "yes" ; then
15966 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15967 found="yes"
15968 fi
15969 fi
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985 xorg_testset_save_CFLAGS="$CFLAGS"
15986
15987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15992 then :
15993 printf %s "(cached) " >&6
15994 else case e in #(
15995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 int i;
15998 _ACEOF
15999 if ac_fn_c_try_compile "$LINENO"
16000 then :
16001 xorg_cv_cc_flag_unknown_warning_option=yes
16002 else case e in #(
16003 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16004 esac
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16007 esac
16008 fi
16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16010 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16012 CFLAGS="$xorg_testset_save_CFLAGS"
16013 fi
16014
16015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 fi
16019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16021 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16022 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16023 then :
16024 printf %s "(cached) " >&6
16025 else case e in #(
16026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16028 int i;
16029 _ACEOF
16030 if ac_fn_c_try_compile "$LINENO"
16031 then :
16032 xorg_cv_cc_flag_unused_command_line_argument=yes
16033 else case e in #(
16034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16035 esac
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16038 esac
16039 fi
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16043 CFLAGS="$xorg_testset_save_CFLAGS"
16044 fi
16045
16046 found="no"
16047
16048 if test $found = "no" ; then
16049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16051 fi
16052
16053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16055 fi
16056
16057 CFLAGS="$CFLAGS -Wredundant-decls"
16058
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16060 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16061 cacheid=xorg_cv_cc_flag__Wredundant_decls
16062 if eval test \${$cacheid+y}
16063 then :
16064 printf %s "(cached) " >&6
16065 else case e in #(
16066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068 int i;
16069 int
16070 main (void)
16071 {
16072
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 if ac_fn_c_try_link "$LINENO"
16078 then :
16079 eval $cacheid=yes
16080 else case e in #(
16081 e) eval $cacheid=no ;;
16082 esac
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16085 conftest$ac_exeext conftest.$ac_ext ;;
16086 esac
16087 fi
16088
16089
16090 CFLAGS="$xorg_testset_save_CFLAGS"
16091
16092 eval supported=\$$cacheid
16093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16094 printf "%s\n" "$supported" >&6; }
16095 if test "$supported" = "yes" ; then
16096 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16097 found="yes"
16098 fi
16099 fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115 xorg_testset_save_CFLAGS="$CFLAGS"
16116
16117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16120 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16121 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16122 then :
16123 printf %s "(cached) " >&6
16124 else case e in #(
16125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 int i;
16128 _ACEOF
16129 if ac_fn_c_try_compile "$LINENO"
16130 then :
16131 xorg_cv_cc_flag_unknown_warning_option=yes
16132 else case e in #(
16133 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16134 esac
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16137 esac
16138 fi
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16142 CFLAGS="$xorg_testset_save_CFLAGS"
16143 fi
16144
16145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148 fi
16149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16153 then :
16154 printf %s "(cached) " >&6
16155 else case e in #(
16156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16159 _ACEOF
16160 if ac_fn_c_try_compile "$LINENO"
16161 then :
16162 xorg_cv_cc_flag_unused_command_line_argument=yes
16163 else case e in #(
16164 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16165 esac
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16168 esac
16169 fi
16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16171 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16173 CFLAGS="$xorg_testset_save_CFLAGS"
16174 fi
16175
16176 found="no"
16177
16178 if test $found = "no" ; then
16179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16181 fi
16182
16183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16185 fi
16186
16187 CFLAGS="$CFLAGS -Wlogical-op"
16188
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16190 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16191 cacheid=xorg_cv_cc_flag__Wlogical_op
16192 if eval test \${$cacheid+y}
16193 then :
16194 printf %s "(cached) " >&6
16195 else case e in #(
16196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 int i;
16199 int
16200 main (void)
16201 {
16202
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_link "$LINENO"
16208 then :
16209 eval $cacheid=yes
16210 else case e in #(
16211 e) eval $cacheid=no ;;
16212 esac
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16215 conftest$ac_exeext conftest.$ac_ext ;;
16216 esac
16217 fi
16218
16219
16220 CFLAGS="$xorg_testset_save_CFLAGS"
16221
16222 eval supported=\$$cacheid
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16224 printf "%s\n" "$supported" >&6; }
16225 if test "$supported" = "yes" ; then
16226 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16227 found="yes"
16228 fi
16229 fi
16230
16231
16232
16233 # These are currently disabled because they are noisy. They will be enabled
16234 # in the future once the codebase is sufficiently modernized to silence
16235 # them. For now, I don't want them to drown out the other warnings.
16236 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16237 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16238 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16239
16240 # Turn some warnings into errors, so we don't accidentally get successful builds
16241 # when there are problems that should be fixed.
16242
16243 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257 xorg_testset_save_CFLAGS="$CFLAGS"
16258
16259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16264 then :
16265 printf %s "(cached) " >&6
16266 else case e in #(
16267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 int i;
16270 _ACEOF
16271 if ac_fn_c_try_compile "$LINENO"
16272 then :
16273 xorg_cv_cc_flag_unknown_warning_option=yes
16274 else case e in #(
16275 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16276 esac
16277 fi
16278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16279 esac
16280 fi
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16284 CFLAGS="$xorg_testset_save_CFLAGS"
16285 fi
16286
16287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290 fi
16291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16295 then :
16296 printf %s "(cached) " >&6
16297 else case e in #(
16298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 int i;
16301 _ACEOF
16302 if ac_fn_c_try_compile "$LINENO"
16303 then :
16304 xorg_cv_cc_flag_unused_command_line_argument=yes
16305 else case e in #(
16306 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16307 esac
16308 fi
16309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16310 esac
16311 fi
16312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16315 CFLAGS="$xorg_testset_save_CFLAGS"
16316 fi
16317
16318 found="no"
16319
16320 if test $found = "no" ; then
16321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323 fi
16324
16325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16327 fi
16328
16329 CFLAGS="$CFLAGS -Werror=implicit"
16330
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16332 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16333 cacheid=xorg_cv_cc_flag__Werror_implicit
16334 if eval test \${$cacheid+y}
16335 then :
16336 printf %s "(cached) " >&6
16337 else case e in #(
16338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340 int i;
16341 int
16342 main (void)
16343 {
16344
16345 ;
16346 return 0;
16347 }
16348 _ACEOF
16349 if ac_fn_c_try_link "$LINENO"
16350 then :
16351 eval $cacheid=yes
16352 else case e in #(
16353 e) eval $cacheid=no ;;
16354 esac
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16357 conftest$ac_exeext conftest.$ac_ext ;;
16358 esac
16359 fi
16360
16361
16362 CFLAGS="$xorg_testset_save_CFLAGS"
16363
16364 eval supported=\$$cacheid
16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16366 printf "%s\n" "$supported" >&6; }
16367 if test "$supported" = "yes" ; then
16368 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16369 found="yes"
16370 fi
16371 fi
16372
16373 if test $found = "no" ; then
16374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376 fi
16377
16378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16380 fi
16381
16382 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16383
16384 { 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
16385 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16386 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16387 if eval test \${$cacheid+y}
16388 then :
16389 printf %s "(cached) " >&6
16390 else case e in #(
16391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 int i;
16394 int
16395 main (void)
16396 {
16397
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_link "$LINENO"
16403 then :
16404 eval $cacheid=yes
16405 else case e in #(
16406 e) eval $cacheid=no ;;
16407 esac
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16410 conftest$ac_exeext conftest.$ac_ext ;;
16411 esac
16412 fi
16413
16414
16415 CFLAGS="$xorg_testset_save_CFLAGS"
16416
16417 eval supported=\$$cacheid
16418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16419 printf "%s\n" "$supported" >&6; }
16420 if test "$supported" = "yes" ; then
16421 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16422 found="yes"
16423 fi
16424 fi
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440 xorg_testset_save_CFLAGS="$CFLAGS"
16441
16442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16447 then :
16448 printf %s "(cached) " >&6
16449 else case e in #(
16450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 int i;
16453 _ACEOF
16454 if ac_fn_c_try_compile "$LINENO"
16455 then :
16456 xorg_cv_cc_flag_unknown_warning_option=yes
16457 else case e in #(
16458 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16459 esac
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16462 esac
16463 fi
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16467 CFLAGS="$xorg_testset_save_CFLAGS"
16468 fi
16469
16470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473 fi
16474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16478 then :
16479 printf %s "(cached) " >&6
16480 else case e in #(
16481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 int i;
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"
16486 then :
16487 xorg_cv_cc_flag_unused_command_line_argument=yes
16488 else case e in #(
16489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16490 esac
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16493 esac
16494 fi
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16498 CFLAGS="$xorg_testset_save_CFLAGS"
16499 fi
16500
16501 found="no"
16502
16503 if test $found = "no" ; then
16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506 fi
16507
16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16510 fi
16511
16512 CFLAGS="$CFLAGS -Werror=nonnull"
16513
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16515 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16516 cacheid=xorg_cv_cc_flag__Werror_nonnull
16517 if eval test \${$cacheid+y}
16518 then :
16519 printf %s "(cached) " >&6
16520 else case e in #(
16521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 int i;
16524 int
16525 main (void)
16526 {
16527
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"
16533 then :
16534 eval $cacheid=yes
16535 else case e in #(
16536 e) eval $cacheid=no ;;
16537 esac
16538 fi
16539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16540 conftest$ac_exeext conftest.$ac_ext ;;
16541 esac
16542 fi
16543
16544
16545 CFLAGS="$xorg_testset_save_CFLAGS"
16546
16547 eval supported=\$$cacheid
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16549 printf "%s\n" "$supported" >&6; }
16550 if test "$supported" = "yes" ; then
16551 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16552 found="yes"
16553 fi
16554 fi
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570 xorg_testset_save_CFLAGS="$CFLAGS"
16571
16572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16576 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16577 then :
16578 printf %s "(cached) " >&6
16579 else case e in #(
16580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 int i;
16583 _ACEOF
16584 if ac_fn_c_try_compile "$LINENO"
16585 then :
16586 xorg_cv_cc_flag_unknown_warning_option=yes
16587 else case e in #(
16588 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16589 esac
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16592 esac
16593 fi
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16597 CFLAGS="$xorg_testset_save_CFLAGS"
16598 fi
16599
16600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16603 fi
16604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16608 then :
16609 printf %s "(cached) " >&6
16610 else case e in #(
16611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 int i;
16614 _ACEOF
16615 if ac_fn_c_try_compile "$LINENO"
16616 then :
16617 xorg_cv_cc_flag_unused_command_line_argument=yes
16618 else case e in #(
16619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16620 esac
16621 fi
16622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16623 esac
16624 fi
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16626 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16628 CFLAGS="$xorg_testset_save_CFLAGS"
16629 fi
16630
16631 found="no"
16632
16633 if test $found = "no" ; then
16634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16636 fi
16637
16638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16640 fi
16641
16642 CFLAGS="$CFLAGS -Werror=init-self"
16643
16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16645 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16646 cacheid=xorg_cv_cc_flag__Werror_init_self
16647 if eval test \${$cacheid+y}
16648 then :
16649 printf %s "(cached) " >&6
16650 else case e in #(
16651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 int i;
16654 int
16655 main (void)
16656 {
16657
16658 ;
16659 return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_link "$LINENO"
16663 then :
16664 eval $cacheid=yes
16665 else case e in #(
16666 e) eval $cacheid=no ;;
16667 esac
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16670 conftest$ac_exeext conftest.$ac_ext ;;
16671 esac
16672 fi
16673
16674
16675 CFLAGS="$xorg_testset_save_CFLAGS"
16676
16677 eval supported=\$$cacheid
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16679 printf "%s\n" "$supported" >&6; }
16680 if test "$supported" = "yes" ; then
16681 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16682 found="yes"
16683 fi
16684 fi
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700 xorg_testset_save_CFLAGS="$CFLAGS"
16701
16702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16707 then :
16708 printf %s "(cached) " >&6
16709 else case e in #(
16710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16712 int i;
16713 _ACEOF
16714 if ac_fn_c_try_compile "$LINENO"
16715 then :
16716 xorg_cv_cc_flag_unknown_warning_option=yes
16717 else case e in #(
16718 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16719 esac
16720 fi
16721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16722 esac
16723 fi
16724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16727 CFLAGS="$xorg_testset_save_CFLAGS"
16728 fi
16729
16730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733 fi
16734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16738 then :
16739 printf %s "(cached) " >&6
16740 else case e in #(
16741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 int i;
16744 _ACEOF
16745 if ac_fn_c_try_compile "$LINENO"
16746 then :
16747 xorg_cv_cc_flag_unused_command_line_argument=yes
16748 else case e in #(
16749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16750 esac
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16753 esac
16754 fi
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16758 CFLAGS="$xorg_testset_save_CFLAGS"
16759 fi
16760
16761 found="no"
16762
16763 if test $found = "no" ; then
16764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766 fi
16767
16768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16770 fi
16771
16772 CFLAGS="$CFLAGS -Werror=main"
16773
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16775 printf %s "checking if $CC supports -Werror=main... " >&6; }
16776 cacheid=xorg_cv_cc_flag__Werror_main
16777 if eval test \${$cacheid+y}
16778 then :
16779 printf %s "(cached) " >&6
16780 else case e in #(
16781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783 int i;
16784 int
16785 main (void)
16786 {
16787
16788 ;
16789 return 0;
16790 }
16791 _ACEOF
16792 if ac_fn_c_try_link "$LINENO"
16793 then :
16794 eval $cacheid=yes
16795 else case e in #(
16796 e) eval $cacheid=no ;;
16797 esac
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16800 conftest$ac_exeext conftest.$ac_ext ;;
16801 esac
16802 fi
16803
16804
16805 CFLAGS="$xorg_testset_save_CFLAGS"
16806
16807 eval supported=\$$cacheid
16808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16809 printf "%s\n" "$supported" >&6; }
16810 if test "$supported" = "yes" ; then
16811 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16812 found="yes"
16813 fi
16814 fi
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830 xorg_testset_save_CFLAGS="$CFLAGS"
16831
16832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16836 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16837 then :
16838 printf %s "(cached) " >&6
16839 else case e in #(
16840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 int i;
16843 _ACEOF
16844 if ac_fn_c_try_compile "$LINENO"
16845 then :
16846 xorg_cv_cc_flag_unknown_warning_option=yes
16847 else case e in #(
16848 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16849 esac
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16852 esac
16853 fi
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16857 CFLAGS="$xorg_testset_save_CFLAGS"
16858 fi
16859
16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16863 fi
16864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16868 then :
16869 printf %s "(cached) " >&6
16870 else case e in #(
16871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 int i;
16874 _ACEOF
16875 if ac_fn_c_try_compile "$LINENO"
16876 then :
16877 xorg_cv_cc_flag_unused_command_line_argument=yes
16878 else case e in #(
16879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16880 esac
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16883 esac
16884 fi
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16888 CFLAGS="$xorg_testset_save_CFLAGS"
16889 fi
16890
16891 found="no"
16892
16893 if test $found = "no" ; then
16894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16896 fi
16897
16898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16900 fi
16901
16902 CFLAGS="$CFLAGS -Werror=missing-braces"
16903
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16905 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16906 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16907 if eval test \${$cacheid+y}
16908 then :
16909 printf %s "(cached) " >&6
16910 else case e in #(
16911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913 int i;
16914 int
16915 main (void)
16916 {
16917
16918 ;
16919 return 0;
16920 }
16921 _ACEOF
16922 if ac_fn_c_try_link "$LINENO"
16923 then :
16924 eval $cacheid=yes
16925 else case e in #(
16926 e) eval $cacheid=no ;;
16927 esac
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16930 conftest$ac_exeext conftest.$ac_ext ;;
16931 esac
16932 fi
16933
16934
16935 CFLAGS="$xorg_testset_save_CFLAGS"
16936
16937 eval supported=\$$cacheid
16938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16939 printf "%s\n" "$supported" >&6; }
16940 if test "$supported" = "yes" ; then
16941 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16942 found="yes"
16943 fi
16944 fi
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960 xorg_testset_save_CFLAGS="$CFLAGS"
16961
16962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16966 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16967 then :
16968 printf %s "(cached) " >&6
16969 else case e in #(
16970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 int i;
16973 _ACEOF
16974 if ac_fn_c_try_compile "$LINENO"
16975 then :
16976 xorg_cv_cc_flag_unknown_warning_option=yes
16977 else case e in #(
16978 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16979 esac
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16982 esac
16983 fi
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16987 CFLAGS="$xorg_testset_save_CFLAGS"
16988 fi
16989
16990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 fi
16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16998 then :
16999 printf %s "(cached) " >&6
17000 else case e in #(
17001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 int i;
17004 _ACEOF
17005 if ac_fn_c_try_compile "$LINENO"
17006 then :
17007 xorg_cv_cc_flag_unused_command_line_argument=yes
17008 else case e in #(
17009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17010 esac
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17013 esac
17014 fi
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17018 CFLAGS="$xorg_testset_save_CFLAGS"
17019 fi
17020
17021 found="no"
17022
17023 if test $found = "no" ; then
17024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17026 fi
17027
17028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17030 fi
17031
17032 CFLAGS="$CFLAGS -Werror=sequence-point"
17033
17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17035 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17036 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17037 if eval test \${$cacheid+y}
17038 then :
17039 printf %s "(cached) " >&6
17040 else case e in #(
17041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 int i;
17044 int
17045 main (void)
17046 {
17047
17048 ;
17049 return 0;
17050 }
17051 _ACEOF
17052 if ac_fn_c_try_link "$LINENO"
17053 then :
17054 eval $cacheid=yes
17055 else case e in #(
17056 e) eval $cacheid=no ;;
17057 esac
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17060 conftest$ac_exeext conftest.$ac_ext ;;
17061 esac
17062 fi
17063
17064
17065 CFLAGS="$xorg_testset_save_CFLAGS"
17066
17067 eval supported=\$$cacheid
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17069 printf "%s\n" "$supported" >&6; }
17070 if test "$supported" = "yes" ; then
17071 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17072 found="yes"
17073 fi
17074 fi
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090 xorg_testset_save_CFLAGS="$CFLAGS"
17091
17092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17097 then :
17098 printf %s "(cached) " >&6
17099 else case e in #(
17100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"
17105 then :
17106 xorg_cv_cc_flag_unknown_warning_option=yes
17107 else case e in #(
17108 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17109 esac
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17112 esac
17113 fi
17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17117 CFLAGS="$xorg_testset_save_CFLAGS"
17118 fi
17119
17120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123 fi
17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17128 then :
17129 printf %s "(cached) " >&6
17130 else case e in #(
17131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 int i;
17134 _ACEOF
17135 if ac_fn_c_try_compile "$LINENO"
17136 then :
17137 xorg_cv_cc_flag_unused_command_line_argument=yes
17138 else case e in #(
17139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17140 esac
17141 fi
17142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17143 esac
17144 fi
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149 fi
17150
17151 found="no"
17152
17153 if test $found = "no" ; then
17154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156 fi
17157
17158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160 fi
17161
17162 CFLAGS="$CFLAGS -Werror=return-type"
17163
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17165 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17166 cacheid=xorg_cv_cc_flag__Werror_return_type
17167 if eval test \${$cacheid+y}
17168 then :
17169 printf %s "(cached) " >&6
17170 else case e in #(
17171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173 int i;
17174 int
17175 main (void)
17176 {
17177
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 if ac_fn_c_try_link "$LINENO"
17183 then :
17184 eval $cacheid=yes
17185 else case e in #(
17186 e) eval $cacheid=no ;;
17187 esac
17188 fi
17189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17190 conftest$ac_exeext conftest.$ac_ext ;;
17191 esac
17192 fi
17193
17194
17195 CFLAGS="$xorg_testset_save_CFLAGS"
17196
17197 eval supported=\$$cacheid
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17199 printf "%s\n" "$supported" >&6; }
17200 if test "$supported" = "yes" ; then
17201 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17202 found="yes"
17203 fi
17204 fi
17205
17206 if test $found = "no" ; then
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 fi
17210
17211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 fi
17214
17215 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17216
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17218 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17219 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17220 if eval test \${$cacheid+y}
17221 then :
17222 printf %s "(cached) " >&6
17223 else case e in #(
17224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226 int i;
17227 int
17228 main (void)
17229 {
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237 eval $cacheid=yes
17238 else case e in #(
17239 e) eval $cacheid=no ;;
17240 esac
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17243 conftest$ac_exeext conftest.$ac_ext ;;
17244 esac
17245 fi
17246
17247
17248 CFLAGS="$xorg_testset_save_CFLAGS"
17249
17250 eval supported=\$$cacheid
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17252 printf "%s\n" "$supported" >&6; }
17253 if test "$supported" = "yes" ; then
17254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17255 found="yes"
17256 fi
17257 fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273 xorg_testset_save_CFLAGS="$CFLAGS"
17274
17275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17279 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17280 then :
17281 printf %s "(cached) " >&6
17282 else case e in #(
17283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 int i;
17286 _ACEOF
17287 if ac_fn_c_try_compile "$LINENO"
17288 then :
17289 xorg_cv_cc_flag_unknown_warning_option=yes
17290 else case e in #(
17291 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17292 esac
17293 fi
17294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17295 esac
17296 fi
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17300 CFLAGS="$xorg_testset_save_CFLAGS"
17301 fi
17302
17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17306 fi
17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17311 then :
17312 printf %s "(cached) " >&6
17313 else case e in #(
17314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17316 int i;
17317 _ACEOF
17318 if ac_fn_c_try_compile "$LINENO"
17319 then :
17320 xorg_cv_cc_flag_unused_command_line_argument=yes
17321 else case e in #(
17322 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17323 esac
17324 fi
17325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17326 esac
17327 fi
17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17329 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17331 CFLAGS="$xorg_testset_save_CFLAGS"
17332 fi
17333
17334 found="no"
17335
17336 if test $found = "no" ; then
17337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17339 fi
17340
17341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17343 fi
17344
17345 CFLAGS="$CFLAGS -Werror=trigraphs"
17346
17347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17348 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17349 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17350 if eval test \${$cacheid+y}
17351 then :
17352 printf %s "(cached) " >&6
17353 else case e in #(
17354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 int i;
17357 int
17358 main (void)
17359 {
17360
17361 ;
17362 return 0;
17363 }
17364 _ACEOF
17365 if ac_fn_c_try_link "$LINENO"
17366 then :
17367 eval $cacheid=yes
17368 else case e in #(
17369 e) eval $cacheid=no ;;
17370 esac
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17373 conftest$ac_exeext conftest.$ac_ext ;;
17374 esac
17375 fi
17376
17377
17378 CFLAGS="$xorg_testset_save_CFLAGS"
17379
17380 eval supported=\$$cacheid
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17382 printf "%s\n" "$supported" >&6; }
17383 if test "$supported" = "yes" ; then
17384 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17385 found="yes"
17386 fi
17387 fi
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403 xorg_testset_save_CFLAGS="$CFLAGS"
17404
17405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17409 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17410 then :
17411 printf %s "(cached) " >&6
17412 else case e in #(
17413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 int i;
17416 _ACEOF
17417 if ac_fn_c_try_compile "$LINENO"
17418 then :
17419 xorg_cv_cc_flag_unknown_warning_option=yes
17420 else case e in #(
17421 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17422 esac
17423 fi
17424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17425 esac
17426 fi
17427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17430 CFLAGS="$xorg_testset_save_CFLAGS"
17431 fi
17432
17433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17436 fi
17437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17441 then :
17442 printf %s "(cached) " >&6
17443 else case e in #(
17444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446 int i;
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"
17449 then :
17450 xorg_cv_cc_flag_unused_command_line_argument=yes
17451 else case e in #(
17452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17453 esac
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17456 esac
17457 fi
17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17461 CFLAGS="$xorg_testset_save_CFLAGS"
17462 fi
17463
17464 found="no"
17465
17466 if test $found = "no" ; then
17467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17469 fi
17470
17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17473 fi
17474
17475 CFLAGS="$CFLAGS -Werror=array-bounds"
17476
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17478 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17479 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17480 if eval test \${$cacheid+y}
17481 then :
17482 printf %s "(cached) " >&6
17483 else case e in #(
17484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 int i;
17487 int
17488 main (void)
17489 {
17490
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 if ac_fn_c_try_link "$LINENO"
17496 then :
17497 eval $cacheid=yes
17498 else case e in #(
17499 e) eval $cacheid=no ;;
17500 esac
17501 fi
17502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17503 conftest$ac_exeext conftest.$ac_ext ;;
17504 esac
17505 fi
17506
17507
17508 CFLAGS="$xorg_testset_save_CFLAGS"
17509
17510 eval supported=\$$cacheid
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17512 printf "%s\n" "$supported" >&6; }
17513 if test "$supported" = "yes" ; then
17514 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17515 found="yes"
17516 fi
17517 fi
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533 xorg_testset_save_CFLAGS="$CFLAGS"
17534
17535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17540 then :
17541 printf %s "(cached) " >&6
17542 else case e in #(
17543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 int i;
17546 _ACEOF
17547 if ac_fn_c_try_compile "$LINENO"
17548 then :
17549 xorg_cv_cc_flag_unknown_warning_option=yes
17550 else case e in #(
17551 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17552 esac
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17555 esac
17556 fi
17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17560 CFLAGS="$xorg_testset_save_CFLAGS"
17561 fi
17562
17563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566 fi
17567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17571 then :
17572 printf %s "(cached) " >&6
17573 else case e in #(
17574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576 int i;
17577 _ACEOF
17578 if ac_fn_c_try_compile "$LINENO"
17579 then :
17580 xorg_cv_cc_flag_unused_command_line_argument=yes
17581 else case e in #(
17582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17583 esac
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17586 esac
17587 fi
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17591 CFLAGS="$xorg_testset_save_CFLAGS"
17592 fi
17593
17594 found="no"
17595
17596 if test $found = "no" ; then
17597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599 fi
17600
17601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17603 fi
17604
17605 CFLAGS="$CFLAGS -Werror=write-strings"
17606
17607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17608 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17609 cacheid=xorg_cv_cc_flag__Werror_write_strings
17610 if eval test \${$cacheid+y}
17611 then :
17612 printf %s "(cached) " >&6
17613 else case e in #(
17614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 int i;
17617 int
17618 main (void)
17619 {
17620
17621 ;
17622 return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"
17626 then :
17627 eval $cacheid=yes
17628 else case e in #(
17629 e) eval $cacheid=no ;;
17630 esac
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17633 conftest$ac_exeext conftest.$ac_ext ;;
17634 esac
17635 fi
17636
17637
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640 eval supported=\$$cacheid
17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642 printf "%s\n" "$supported" >&6; }
17643 if test "$supported" = "yes" ; then
17644 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17645 found="yes"
17646 fi
17647 fi
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663 xorg_testset_save_CFLAGS="$CFLAGS"
17664
17665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17670 then :
17671 printf %s "(cached) " >&6
17672 else case e in #(
17673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 int i;
17676 _ACEOF
17677 if ac_fn_c_try_compile "$LINENO"
17678 then :
17679 xorg_cv_cc_flag_unknown_warning_option=yes
17680 else case e in #(
17681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17682 esac
17683 fi
17684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17685 esac
17686 fi
17687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17690 CFLAGS="$xorg_testset_save_CFLAGS"
17691 fi
17692
17693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17696 fi
17697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17701 then :
17702 printf %s "(cached) " >&6
17703 else case e in #(
17704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706 int i;
17707 _ACEOF
17708 if ac_fn_c_try_compile "$LINENO"
17709 then :
17710 xorg_cv_cc_flag_unused_command_line_argument=yes
17711 else case e in #(
17712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17713 esac
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17716 esac
17717 fi
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17721 CFLAGS="$xorg_testset_save_CFLAGS"
17722 fi
17723
17724 found="no"
17725
17726 if test $found = "no" ; then
17727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17729 fi
17730
17731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17733 fi
17734
17735 CFLAGS="$CFLAGS -Werror=address"
17736
17737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17738 printf %s "checking if $CC supports -Werror=address... " >&6; }
17739 cacheid=xorg_cv_cc_flag__Werror_address
17740 if eval test \${$cacheid+y}
17741 then :
17742 printf %s "(cached) " >&6
17743 else case e in #(
17744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17746 int i;
17747 int
17748 main (void)
17749 {
17750
17751 ;
17752 return 0;
17753 }
17754 _ACEOF
17755 if ac_fn_c_try_link "$LINENO"
17756 then :
17757 eval $cacheid=yes
17758 else case e in #(
17759 e) eval $cacheid=no ;;
17760 esac
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17763 conftest$ac_exeext conftest.$ac_ext ;;
17764 esac
17765 fi
17766
17767
17768 CFLAGS="$xorg_testset_save_CFLAGS"
17769
17770 eval supported=\$$cacheid
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17772 printf "%s\n" "$supported" >&6; }
17773 if test "$supported" = "yes" ; then
17774 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17775 found="yes"
17776 fi
17777 fi
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 xorg_testset_save_CFLAGS="$CFLAGS"
17794
17795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17800 then :
17801 printf %s "(cached) " >&6
17802 else case e in #(
17803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805 int i;
17806 _ACEOF
17807 if ac_fn_c_try_compile "$LINENO"
17808 then :
17809 xorg_cv_cc_flag_unknown_warning_option=yes
17810 else case e in #(
17811 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17812 esac
17813 fi
17814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17815 esac
17816 fi
17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17820 CFLAGS="$xorg_testset_save_CFLAGS"
17821 fi
17822
17823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17826 fi
17827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17831 then :
17832 printf %s "(cached) " >&6
17833 else case e in #(
17834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 int i;
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"
17839 then :
17840 xorg_cv_cc_flag_unused_command_line_argument=yes
17841 else case e in #(
17842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17843 esac
17844 fi
17845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17846 esac
17847 fi
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17851 CFLAGS="$xorg_testset_save_CFLAGS"
17852 fi
17853
17854 found="no"
17855
17856 if test $found = "no" ; then
17857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17859 fi
17860
17861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17863 fi
17864
17865 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17866
17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17868 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17869 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17870 if eval test \${$cacheid+y}
17871 then :
17872 printf %s "(cached) " >&6
17873 else case e in #(
17874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h. */
17876 int i;
17877 int
17878 main (void)
17879 {
17880
17881 ;
17882 return 0;
17883 }
17884 _ACEOF
17885 if ac_fn_c_try_link "$LINENO"
17886 then :
17887 eval $cacheid=yes
17888 else case e in #(
17889 e) eval $cacheid=no ;;
17890 esac
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893 conftest$ac_exeext conftest.$ac_ext ;;
17894 esac
17895 fi
17896
17897
17898 CFLAGS="$xorg_testset_save_CFLAGS"
17899
17900 eval supported=\$$cacheid
17901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17902 printf "%s\n" "$supported" >&6; }
17903 if test "$supported" = "yes" ; then
17904 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17905 found="yes"
17906 fi
17907 fi
17908
17909 if test $found = "no" ; then
17910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912 fi
17913
17914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916 fi
17917
17918 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17919
17920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17921 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17922 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17923 if eval test \${$cacheid+y}
17924 then :
17925 printf %s "(cached) " >&6
17926 else case e in #(
17927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 int i;
17930 int
17931 main (void)
17932 {
17933
17934 ;
17935 return 0;
17936 }
17937 _ACEOF
17938 if ac_fn_c_try_link "$LINENO"
17939 then :
17940 eval $cacheid=yes
17941 else case e in #(
17942 e) eval $cacheid=no ;;
17943 esac
17944 fi
17945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17946 conftest$ac_exeext conftest.$ac_ext ;;
17947 esac
17948 fi
17949
17950
17951 CFLAGS="$xorg_testset_save_CFLAGS"
17952
17953 eval supported=\$$cacheid
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17955 printf "%s\n" "$supported" >&6; }
17956 if test "$supported" = "yes" ; then
17957 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17958 found="yes"
17959 fi
17960 fi
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976 xorg_testset_save_CFLAGS="$CFLAGS"
17977
17978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17982 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17983 then :
17984 printf %s "(cached) " >&6
17985 else case e in #(
17986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988 int i;
17989 _ACEOF
17990 if ac_fn_c_try_compile "$LINENO"
17991 then :
17992 xorg_cv_cc_flag_unknown_warning_option=yes
17993 else case e in #(
17994 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17995 esac
17996 fi
17997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17998 esac
17999 fi
18000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18003 CFLAGS="$xorg_testset_save_CFLAGS"
18004 fi
18005
18006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18009 fi
18010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18014 then :
18015 printf %s "(cached) " >&6
18016 else case e in #(
18017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019 int i;
18020 _ACEOF
18021 if ac_fn_c_try_compile "$LINENO"
18022 then :
18023 xorg_cv_cc_flag_unused_command_line_argument=yes
18024 else case e in #(
18025 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18026 esac
18027 fi
18028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18029 esac
18030 fi
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18032 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18034 CFLAGS="$xorg_testset_save_CFLAGS"
18035 fi
18036
18037 found="no"
18038
18039 if test $found = "no" ; then
18040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18042 fi
18043
18044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18046 fi
18047
18048 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18049
18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18051 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18052 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18053 if eval test \${$cacheid+y}
18054 then :
18055 printf %s "(cached) " >&6
18056 else case e in #(
18057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059 int i;
18060 int
18061 main (void)
18062 {
18063
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"
18069 then :
18070 eval $cacheid=yes
18071 else case e in #(
18072 e) eval $cacheid=no ;;
18073 esac
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18076 conftest$ac_exeext conftest.$ac_ext ;;
18077 esac
18078 fi
18079
18080
18081 CFLAGS="$xorg_testset_save_CFLAGS"
18082
18083 eval supported=\$$cacheid
18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18085 printf "%s\n" "$supported" >&6; }
18086 if test "$supported" = "yes" ; then
18087 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18088 found="yes"
18089 fi
18090 fi
18091
18092 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18093 else
18094 { 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
18095 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;}
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109 xorg_testset_save_CFLAGS="$CFLAGS"
18110
18111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18116 then :
18117 printf %s "(cached) " >&6
18118 else case e in #(
18119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 int i;
18122 _ACEOF
18123 if ac_fn_c_try_compile "$LINENO"
18124 then :
18125 xorg_cv_cc_flag_unknown_warning_option=yes
18126 else case e in #(
18127 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18128 esac
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18131 esac
18132 fi
18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18136 CFLAGS="$xorg_testset_save_CFLAGS"
18137 fi
18138
18139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18142 fi
18143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18147 then :
18148 printf %s "(cached) " >&6
18149 else case e in #(
18150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 int i;
18153 _ACEOF
18154 if ac_fn_c_try_compile "$LINENO"
18155 then :
18156 xorg_cv_cc_flag_unused_command_line_argument=yes
18157 else case e in #(
18158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18159 esac
18160 fi
18161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18162 esac
18163 fi
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18167 CFLAGS="$xorg_testset_save_CFLAGS"
18168 fi
18169
18170 found="no"
18171
18172 if test $found = "no" ; then
18173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18175 fi
18176
18177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18179 fi
18180
18181 CFLAGS="$CFLAGS -Wimplicit"
18182
18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18184 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18185 cacheid=xorg_cv_cc_flag__Wimplicit
18186 if eval test \${$cacheid+y}
18187 then :
18188 printf %s "(cached) " >&6
18189 else case e in #(
18190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 int i;
18193 int
18194 main (void)
18195 {
18196
18197 ;
18198 return 0;
18199 }
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"
18202 then :
18203 eval $cacheid=yes
18204 else case e in #(
18205 e) eval $cacheid=no ;;
18206 esac
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18209 conftest$ac_exeext conftest.$ac_ext ;;
18210 esac
18211 fi
18212
18213
18214 CFLAGS="$xorg_testset_save_CFLAGS"
18215
18216 eval supported=\$$cacheid
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18218 printf "%s\n" "$supported" >&6; }
18219 if test "$supported" = "yes" ; then
18220 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18221 found="yes"
18222 fi
18223 fi
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239 xorg_testset_save_CFLAGS="$CFLAGS"
18240
18241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18246 then :
18247 printf %s "(cached) " >&6
18248 else case e in #(
18249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 int i;
18252 _ACEOF
18253 if ac_fn_c_try_compile "$LINENO"
18254 then :
18255 xorg_cv_cc_flag_unknown_warning_option=yes
18256 else case e in #(
18257 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18258 esac
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18261 esac
18262 fi
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18266 CFLAGS="$xorg_testset_save_CFLAGS"
18267 fi
18268
18269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18272 fi
18273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else case e in #(
18280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282 int i;
18283 _ACEOF
18284 if ac_fn_c_try_compile "$LINENO"
18285 then :
18286 xorg_cv_cc_flag_unused_command_line_argument=yes
18287 else case e in #(
18288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18289 esac
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18292 esac
18293 fi
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18297 CFLAGS="$xorg_testset_save_CFLAGS"
18298 fi
18299
18300 found="no"
18301
18302 if test $found = "no" ; then
18303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18305 fi
18306
18307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18309 fi
18310
18311 CFLAGS="$CFLAGS -Wnonnull"
18312
18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18314 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18315 cacheid=xorg_cv_cc_flag__Wnonnull
18316 if eval test \${$cacheid+y}
18317 then :
18318 printf %s "(cached) " >&6
18319 else case e in #(
18320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h. */
18322 int i;
18323 int
18324 main (void)
18325 {
18326
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"
18332 then :
18333 eval $cacheid=yes
18334 else case e in #(
18335 e) eval $cacheid=no ;;
18336 esac
18337 fi
18338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18339 conftest$ac_exeext conftest.$ac_ext ;;
18340 esac
18341 fi
18342
18343
18344 CFLAGS="$xorg_testset_save_CFLAGS"
18345
18346 eval supported=\$$cacheid
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18348 printf "%s\n" "$supported" >&6; }
18349 if test "$supported" = "yes" ; then
18350 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18351 found="yes"
18352 fi
18353 fi
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369 xorg_testset_save_CFLAGS="$CFLAGS"
18370
18371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18376 then :
18377 printf %s "(cached) " >&6
18378 else case e in #(
18379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380 /* end confdefs.h. */
18381 int i;
18382 _ACEOF
18383 if ac_fn_c_try_compile "$LINENO"
18384 then :
18385 xorg_cv_cc_flag_unknown_warning_option=yes
18386 else case e in #(
18387 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18388 esac
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18391 esac
18392 fi
18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18396 CFLAGS="$xorg_testset_save_CFLAGS"
18397 fi
18398
18399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18402 fi
18403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18407 then :
18408 printf %s "(cached) " >&6
18409 else case e in #(
18410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 int i;
18413 _ACEOF
18414 if ac_fn_c_try_compile "$LINENO"
18415 then :
18416 xorg_cv_cc_flag_unused_command_line_argument=yes
18417 else case e in #(
18418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18419 esac
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18422 esac
18423 fi
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18427 CFLAGS="$xorg_testset_save_CFLAGS"
18428 fi
18429
18430 found="no"
18431
18432 if test $found = "no" ; then
18433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18435 fi
18436
18437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18439 fi
18440
18441 CFLAGS="$CFLAGS -Winit-self"
18442
18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18444 printf %s "checking if $CC supports -Winit-self... " >&6; }
18445 cacheid=xorg_cv_cc_flag__Winit_self
18446 if eval test \${$cacheid+y}
18447 then :
18448 printf %s "(cached) " >&6
18449 else case e in #(
18450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452 int i;
18453 int
18454 main (void)
18455 {
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_link "$LINENO"
18462 then :
18463 eval $cacheid=yes
18464 else case e in #(
18465 e) eval $cacheid=no ;;
18466 esac
18467 fi
18468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18469 conftest$ac_exeext conftest.$ac_ext ;;
18470 esac
18471 fi
18472
18473
18474 CFLAGS="$xorg_testset_save_CFLAGS"
18475
18476 eval supported=\$$cacheid
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18478 printf "%s\n" "$supported" >&6; }
18479 if test "$supported" = "yes" ; then
18480 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18481 found="yes"
18482 fi
18483 fi
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499 xorg_testset_save_CFLAGS="$CFLAGS"
18500
18501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18506 then :
18507 printf %s "(cached) " >&6
18508 else case e in #(
18509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18511 int i;
18512 _ACEOF
18513 if ac_fn_c_try_compile "$LINENO"
18514 then :
18515 xorg_cv_cc_flag_unknown_warning_option=yes
18516 else case e in #(
18517 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18518 esac
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18521 esac
18522 fi
18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18526 CFLAGS="$xorg_testset_save_CFLAGS"
18527 fi
18528
18529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18532 fi
18533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18537 then :
18538 printf %s "(cached) " >&6
18539 else case e in #(
18540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 int i;
18543 _ACEOF
18544 if ac_fn_c_try_compile "$LINENO"
18545 then :
18546 xorg_cv_cc_flag_unused_command_line_argument=yes
18547 else case e in #(
18548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18549 esac
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18552 esac
18553 fi
18554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18557 CFLAGS="$xorg_testset_save_CFLAGS"
18558 fi
18559
18560 found="no"
18561
18562 if test $found = "no" ; then
18563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18565 fi
18566
18567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18569 fi
18570
18571 CFLAGS="$CFLAGS -Wmain"
18572
18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18574 printf %s "checking if $CC supports -Wmain... " >&6; }
18575 cacheid=xorg_cv_cc_flag__Wmain
18576 if eval test \${$cacheid+y}
18577 then :
18578 printf %s "(cached) " >&6
18579 else case e in #(
18580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18582 int i;
18583 int
18584 main (void)
18585 {
18586
18587 ;
18588 return 0;
18589 }
18590 _ACEOF
18591 if ac_fn_c_try_link "$LINENO"
18592 then :
18593 eval $cacheid=yes
18594 else case e in #(
18595 e) eval $cacheid=no ;;
18596 esac
18597 fi
18598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18599 conftest$ac_exeext conftest.$ac_ext ;;
18600 esac
18601 fi
18602
18603
18604 CFLAGS="$xorg_testset_save_CFLAGS"
18605
18606 eval supported=\$$cacheid
18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18608 printf "%s\n" "$supported" >&6; }
18609 if test "$supported" = "yes" ; then
18610 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18611 found="yes"
18612 fi
18613 fi
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629 xorg_testset_save_CFLAGS="$CFLAGS"
18630
18631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18636 then :
18637 printf %s "(cached) " >&6
18638 else case e in #(
18639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641 int i;
18642 _ACEOF
18643 if ac_fn_c_try_compile "$LINENO"
18644 then :
18645 xorg_cv_cc_flag_unknown_warning_option=yes
18646 else case e in #(
18647 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18648 esac
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18651 esac
18652 fi
18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18656 CFLAGS="$xorg_testset_save_CFLAGS"
18657 fi
18658
18659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18662 fi
18663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18667 then :
18668 printf %s "(cached) " >&6
18669 else case e in #(
18670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672 int i;
18673 _ACEOF
18674 if ac_fn_c_try_compile "$LINENO"
18675 then :
18676 xorg_cv_cc_flag_unused_command_line_argument=yes
18677 else case e in #(
18678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18679 esac
18680 fi
18681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18682 esac
18683 fi
18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18687 CFLAGS="$xorg_testset_save_CFLAGS"
18688 fi
18689
18690 found="no"
18691
18692 if test $found = "no" ; then
18693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18695 fi
18696
18697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18699 fi
18700
18701 CFLAGS="$CFLAGS -Wmissing-braces"
18702
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18704 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18705 cacheid=xorg_cv_cc_flag__Wmissing_braces
18706 if eval test \${$cacheid+y}
18707 then :
18708 printf %s "(cached) " >&6
18709 else case e in #(
18710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712 int i;
18713 int
18714 main (void)
18715 {
18716
18717 ;
18718 return 0;
18719 }
18720 _ACEOF
18721 if ac_fn_c_try_link "$LINENO"
18722 then :
18723 eval $cacheid=yes
18724 else case e in #(
18725 e) eval $cacheid=no ;;
18726 esac
18727 fi
18728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18729 conftest$ac_exeext conftest.$ac_ext ;;
18730 esac
18731 fi
18732
18733
18734 CFLAGS="$xorg_testset_save_CFLAGS"
18735
18736 eval supported=\$$cacheid
18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18738 printf "%s\n" "$supported" >&6; }
18739 if test "$supported" = "yes" ; then
18740 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18741 found="yes"
18742 fi
18743 fi
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759 xorg_testset_save_CFLAGS="$CFLAGS"
18760
18761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18766 then :
18767 printf %s "(cached) " >&6
18768 else case e in #(
18769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 int i;
18772 _ACEOF
18773 if ac_fn_c_try_compile "$LINENO"
18774 then :
18775 xorg_cv_cc_flag_unknown_warning_option=yes
18776 else case e in #(
18777 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18778 esac
18779 fi
18780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18781 esac
18782 fi
18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18786 CFLAGS="$xorg_testset_save_CFLAGS"
18787 fi
18788
18789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18792 fi
18793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18797 then :
18798 printf %s "(cached) " >&6
18799 else case e in #(
18800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18802 int i;
18803 _ACEOF
18804 if ac_fn_c_try_compile "$LINENO"
18805 then :
18806 xorg_cv_cc_flag_unused_command_line_argument=yes
18807 else case e in #(
18808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18809 esac
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18812 esac
18813 fi
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18817 CFLAGS="$xorg_testset_save_CFLAGS"
18818 fi
18819
18820 found="no"
18821
18822 if test $found = "no" ; then
18823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18825 fi
18826
18827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18829 fi
18830
18831 CFLAGS="$CFLAGS -Wsequence-point"
18832
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18834 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18835 cacheid=xorg_cv_cc_flag__Wsequence_point
18836 if eval test \${$cacheid+y}
18837 then :
18838 printf %s "(cached) " >&6
18839 else case e in #(
18840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842 int i;
18843 int
18844 main (void)
18845 {
18846
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 if ac_fn_c_try_link "$LINENO"
18852 then :
18853 eval $cacheid=yes
18854 else case e in #(
18855 e) eval $cacheid=no ;;
18856 esac
18857 fi
18858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18859 conftest$ac_exeext conftest.$ac_ext ;;
18860 esac
18861 fi
18862
18863
18864 CFLAGS="$xorg_testset_save_CFLAGS"
18865
18866 eval supported=\$$cacheid
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18868 printf "%s\n" "$supported" >&6; }
18869 if test "$supported" = "yes" ; then
18870 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18871 found="yes"
18872 fi
18873 fi
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889 xorg_testset_save_CFLAGS="$CFLAGS"
18890
18891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18896 then :
18897 printf %s "(cached) " >&6
18898 else case e in #(
18899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18901 int i;
18902 _ACEOF
18903 if ac_fn_c_try_compile "$LINENO"
18904 then :
18905 xorg_cv_cc_flag_unknown_warning_option=yes
18906 else case e in #(
18907 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18908 esac
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18911 esac
18912 fi
18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18916 CFLAGS="$xorg_testset_save_CFLAGS"
18917 fi
18918
18919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922 fi
18923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18927 then :
18928 printf %s "(cached) " >&6
18929 else case e in #(
18930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18932 int i;
18933 _ACEOF
18934 if ac_fn_c_try_compile "$LINENO"
18935 then :
18936 xorg_cv_cc_flag_unused_command_line_argument=yes
18937 else case e in #(
18938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18939 esac
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18942 esac
18943 fi
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18947 CFLAGS="$xorg_testset_save_CFLAGS"
18948 fi
18949
18950 found="no"
18951
18952 if test $found = "no" ; then
18953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18955 fi
18956
18957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18959 fi
18960
18961 CFLAGS="$CFLAGS -Wreturn-type"
18962
18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18964 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18965 cacheid=xorg_cv_cc_flag__Wreturn_type
18966 if eval test \${$cacheid+y}
18967 then :
18968 printf %s "(cached) " >&6
18969 else case e in #(
18970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18972 int i;
18973 int
18974 main (void)
18975 {
18976
18977 ;
18978 return 0;
18979 }
18980 _ACEOF
18981 if ac_fn_c_try_link "$LINENO"
18982 then :
18983 eval $cacheid=yes
18984 else case e in #(
18985 e) eval $cacheid=no ;;
18986 esac
18987 fi
18988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18989 conftest$ac_exeext conftest.$ac_ext ;;
18990 esac
18991 fi
18992
18993
18994 CFLAGS="$xorg_testset_save_CFLAGS"
18995
18996 eval supported=\$$cacheid
18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18998 printf "%s\n" "$supported" >&6; }
18999 if test "$supported" = "yes" ; then
19000 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19001 found="yes"
19002 fi
19003 fi
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019 xorg_testset_save_CFLAGS="$CFLAGS"
19020
19021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19026 then :
19027 printf %s "(cached) " >&6
19028 else case e in #(
19029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19031 int i;
19032 _ACEOF
19033 if ac_fn_c_try_compile "$LINENO"
19034 then :
19035 xorg_cv_cc_flag_unknown_warning_option=yes
19036 else case e in #(
19037 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19038 esac
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19041 esac
19042 fi
19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19046 CFLAGS="$xorg_testset_save_CFLAGS"
19047 fi
19048
19049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19052 fi
19053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19057 then :
19058 printf %s "(cached) " >&6
19059 else case e in #(
19060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062 int i;
19063 _ACEOF
19064 if ac_fn_c_try_compile "$LINENO"
19065 then :
19066 xorg_cv_cc_flag_unused_command_line_argument=yes
19067 else case e in #(
19068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19069 esac
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19072 esac
19073 fi
19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19077 CFLAGS="$xorg_testset_save_CFLAGS"
19078 fi
19079
19080 found="no"
19081
19082 if test $found = "no" ; then
19083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19085 fi
19086
19087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19089 fi
19090
19091 CFLAGS="$CFLAGS -Wtrigraphs"
19092
19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19094 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19095 cacheid=xorg_cv_cc_flag__Wtrigraphs
19096 if eval test \${$cacheid+y}
19097 then :
19098 printf %s "(cached) " >&6
19099 else case e in #(
19100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19102 int i;
19103 int
19104 main (void)
19105 {
19106
19107 ;
19108 return 0;
19109 }
19110 _ACEOF
19111 if ac_fn_c_try_link "$LINENO"
19112 then :
19113 eval $cacheid=yes
19114 else case e in #(
19115 e) eval $cacheid=no ;;
19116 esac
19117 fi
19118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19119 conftest$ac_exeext conftest.$ac_ext ;;
19120 esac
19121 fi
19122
19123
19124 CFLAGS="$xorg_testset_save_CFLAGS"
19125
19126 eval supported=\$$cacheid
19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19128 printf "%s\n" "$supported" >&6; }
19129 if test "$supported" = "yes" ; then
19130 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19131 found="yes"
19132 fi
19133 fi
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149 xorg_testset_save_CFLAGS="$CFLAGS"
19150
19151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19156 then :
19157 printf %s "(cached) " >&6
19158 else case e in #(
19159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160 /* end confdefs.h. */
19161 int i;
19162 _ACEOF
19163 if ac_fn_c_try_compile "$LINENO"
19164 then :
19165 xorg_cv_cc_flag_unknown_warning_option=yes
19166 else case e in #(
19167 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19168 esac
19169 fi
19170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19171 esac
19172 fi
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19174 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19176 CFLAGS="$xorg_testset_save_CFLAGS"
19177 fi
19178
19179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19182 fi
19183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19187 then :
19188 printf %s "(cached) " >&6
19189 else case e in #(
19190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192 int i;
19193 _ACEOF
19194 if ac_fn_c_try_compile "$LINENO"
19195 then :
19196 xorg_cv_cc_flag_unused_command_line_argument=yes
19197 else case e in #(
19198 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19199 esac
19200 fi
19201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19202 esac
19203 fi
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19205 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19207 CFLAGS="$xorg_testset_save_CFLAGS"
19208 fi
19209
19210 found="no"
19211
19212 if test $found = "no" ; then
19213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19215 fi
19216
19217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19219 fi
19220
19221 CFLAGS="$CFLAGS -Warray-bounds"
19222
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19224 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19225 cacheid=xorg_cv_cc_flag__Warray_bounds
19226 if eval test \${$cacheid+y}
19227 then :
19228 printf %s "(cached) " >&6
19229 else case e in #(
19230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232 int i;
19233 int
19234 main (void)
19235 {
19236
19237 ;
19238 return 0;
19239 }
19240 _ACEOF
19241 if ac_fn_c_try_link "$LINENO"
19242 then :
19243 eval $cacheid=yes
19244 else case e in #(
19245 e) eval $cacheid=no ;;
19246 esac
19247 fi
19248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19249 conftest$ac_exeext conftest.$ac_ext ;;
19250 esac
19251 fi
19252
19253
19254 CFLAGS="$xorg_testset_save_CFLAGS"
19255
19256 eval supported=\$$cacheid
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19258 printf "%s\n" "$supported" >&6; }
19259 if test "$supported" = "yes" ; then
19260 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19261 found="yes"
19262 fi
19263 fi
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279 xorg_testset_save_CFLAGS="$CFLAGS"
19280
19281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19284 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19285 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19286 then :
19287 printf %s "(cached) " >&6
19288 else case e in #(
19289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291 int i;
19292 _ACEOF
19293 if ac_fn_c_try_compile "$LINENO"
19294 then :
19295 xorg_cv_cc_flag_unknown_warning_option=yes
19296 else case e in #(
19297 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19298 esac
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19301 esac
19302 fi
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19304 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19306 CFLAGS="$xorg_testset_save_CFLAGS"
19307 fi
19308
19309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19312 fi
19313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19317 then :
19318 printf %s "(cached) " >&6
19319 else case e in #(
19320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19322 int i;
19323 _ACEOF
19324 if ac_fn_c_try_compile "$LINENO"
19325 then :
19326 xorg_cv_cc_flag_unused_command_line_argument=yes
19327 else case e in #(
19328 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19329 esac
19330 fi
19331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19332 esac
19333 fi
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19335 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19337 CFLAGS="$xorg_testset_save_CFLAGS"
19338 fi
19339
19340 found="no"
19341
19342 if test $found = "no" ; then
19343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19345 fi
19346
19347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19349 fi
19350
19351 CFLAGS="$CFLAGS -Wwrite-strings"
19352
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19354 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19355 cacheid=xorg_cv_cc_flag__Wwrite_strings
19356 if eval test \${$cacheid+y}
19357 then :
19358 printf %s "(cached) " >&6
19359 else case e in #(
19360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19362 int i;
19363 int
19364 main (void)
19365 {
19366
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 if ac_fn_c_try_link "$LINENO"
19372 then :
19373 eval $cacheid=yes
19374 else case e in #(
19375 e) eval $cacheid=no ;;
19376 esac
19377 fi
19378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19379 conftest$ac_exeext conftest.$ac_ext ;;
19380 esac
19381 fi
19382
19383
19384 CFLAGS="$xorg_testset_save_CFLAGS"
19385
19386 eval supported=\$$cacheid
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19388 printf "%s\n" "$supported" >&6; }
19389 if test "$supported" = "yes" ; then
19390 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19391 found="yes"
19392 fi
19393 fi
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409 xorg_testset_save_CFLAGS="$CFLAGS"
19410
19411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19415 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19416 then :
19417 printf %s "(cached) " >&6
19418 else case e in #(
19419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421 int i;
19422 _ACEOF
19423 if ac_fn_c_try_compile "$LINENO"
19424 then :
19425 xorg_cv_cc_flag_unknown_warning_option=yes
19426 else case e in #(
19427 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19428 esac
19429 fi
19430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19431 esac
19432 fi
19433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19434 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19436 CFLAGS="$xorg_testset_save_CFLAGS"
19437 fi
19438
19439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19442 fi
19443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19445 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19446 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19447 then :
19448 printf %s "(cached) " >&6
19449 else case e in #(
19450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 int i;
19453 _ACEOF
19454 if ac_fn_c_try_compile "$LINENO"
19455 then :
19456 xorg_cv_cc_flag_unused_command_line_argument=yes
19457 else case e in #(
19458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19459 esac
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19462 esac
19463 fi
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19467 CFLAGS="$xorg_testset_save_CFLAGS"
19468 fi
19469
19470 found="no"
19471
19472 if test $found = "no" ; then
19473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19475 fi
19476
19477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19479 fi
19480
19481 CFLAGS="$CFLAGS -Waddress"
19482
19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19484 printf %s "checking if $CC supports -Waddress... " >&6; }
19485 cacheid=xorg_cv_cc_flag__Waddress
19486 if eval test \${$cacheid+y}
19487 then :
19488 printf %s "(cached) " >&6
19489 else case e in #(
19490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h. */
19492 int i;
19493 int
19494 main (void)
19495 {
19496
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_link "$LINENO"
19502 then :
19503 eval $cacheid=yes
19504 else case e in #(
19505 e) eval $cacheid=no ;;
19506 esac
19507 fi
19508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19509 conftest$ac_exeext conftest.$ac_ext ;;
19510 esac
19511 fi
19512
19513
19514 CFLAGS="$xorg_testset_save_CFLAGS"
19515
19516 eval supported=\$$cacheid
19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19518 printf "%s\n" "$supported" >&6; }
19519 if test "$supported" = "yes" ; then
19520 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19521 found="yes"
19522 fi
19523 fi
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539 xorg_testset_save_CFLAGS="$CFLAGS"
19540
19541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19545 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19546 then :
19547 printf %s "(cached) " >&6
19548 else case e in #(
19549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 int i;
19552 _ACEOF
19553 if ac_fn_c_try_compile "$LINENO"
19554 then :
19555 xorg_cv_cc_flag_unknown_warning_option=yes
19556 else case e in #(
19557 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19558 esac
19559 fi
19560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19561 esac
19562 fi
19563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19564 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19566 CFLAGS="$xorg_testset_save_CFLAGS"
19567 fi
19568
19569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19572 fi
19573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19575 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19576 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19577 then :
19578 printf %s "(cached) " >&6
19579 else case e in #(
19580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 int i;
19583 _ACEOF
19584 if ac_fn_c_try_compile "$LINENO"
19585 then :
19586 xorg_cv_cc_flag_unused_command_line_argument=yes
19587 else case e in #(
19588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19589 esac
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19592 esac
19593 fi
19594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19597 CFLAGS="$xorg_testset_save_CFLAGS"
19598 fi
19599
19600 found="no"
19601
19602 if test $found = "no" ; then
19603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19605 fi
19606
19607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19609 fi
19610
19611 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19612
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19614 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19615 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19616 if eval test \${$cacheid+y}
19617 then :
19618 printf %s "(cached) " >&6
19619 else case e in #(
19620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19622 int i;
19623 int
19624 main (void)
19625 {
19626
19627 ;
19628 return 0;
19629 }
19630 _ACEOF
19631 if ac_fn_c_try_link "$LINENO"
19632 then :
19633 eval $cacheid=yes
19634 else case e in #(
19635 e) eval $cacheid=no ;;
19636 esac
19637 fi
19638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19639 conftest$ac_exeext conftest.$ac_ext ;;
19640 esac
19641 fi
19642
19643
19644 CFLAGS="$xorg_testset_save_CFLAGS"
19645
19646 eval supported=\$$cacheid
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19648 printf "%s\n" "$supported" >&6; }
19649 if test "$supported" = "yes" ; then
19650 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19651 found="yes"
19652 fi
19653 fi
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669 xorg_testset_save_CFLAGS="$CFLAGS"
19670
19671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19676 then :
19677 printf %s "(cached) " >&6
19678 else case e in #(
19679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 int i;
19682 _ACEOF
19683 if ac_fn_c_try_compile "$LINENO"
19684 then :
19685 xorg_cv_cc_flag_unknown_warning_option=yes
19686 else case e in #(
19687 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19688 esac
19689 fi
19690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19691 esac
19692 fi
19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19696 CFLAGS="$xorg_testset_save_CFLAGS"
19697 fi
19698
19699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19702 fi
19703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19707 then :
19708 printf %s "(cached) " >&6
19709 else case e in #(
19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19712 int i;
19713 _ACEOF
19714 if ac_fn_c_try_compile "$LINENO"
19715 then :
19716 xorg_cv_cc_flag_unused_command_line_argument=yes
19717 else case e in #(
19718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19719 esac
19720 fi
19721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19722 esac
19723 fi
19724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19725 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19727 CFLAGS="$xorg_testset_save_CFLAGS"
19728 fi
19729
19730 found="no"
19731
19732 if test $found = "no" ; then
19733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19735 fi
19736
19737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19739 fi
19740
19741 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19742
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19744 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19745 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19746 if eval test \${$cacheid+y}
19747 then :
19748 printf %s "(cached) " >&6
19749 else case e in #(
19750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19752 int i;
19753 int
19754 main (void)
19755 {
19756
19757 ;
19758 return 0;
19759 }
19760 _ACEOF
19761 if ac_fn_c_try_link "$LINENO"
19762 then :
19763 eval $cacheid=yes
19764 else case e in #(
19765 e) eval $cacheid=no ;;
19766 esac
19767 fi
19768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19769 conftest$ac_exeext conftest.$ac_ext ;;
19770 esac
19771 fi
19772
19773
19774 CFLAGS="$xorg_testset_save_CFLAGS"
19775
19776 eval supported=\$$cacheid
19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19778 printf "%s\n" "$supported" >&6; }
19779 if test "$supported" = "yes" ; then
19780 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19781 found="yes"
19782 fi
19783 fi
19784
19785
19786 fi
19787
19788
19789
19790
19791
19792
19793
19794 CWARNFLAGS="$BASE_CFLAGS"
19795 if test "x$GCC" = xyes ; then
19796 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19797 fi
19798
19799
19800
19801
19802
19803
19804
19805
19806 # Check whether --enable-strict-compilation was given.
19807 if test ${enable_strict_compilation+y}
19808 then :
19809 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19810 else case e in #(
19811 e) STRICT_COMPILE=no ;;
19812 esac
19813 fi
19814
19815
19816
19817
19818
19819
19820 STRICT_CFLAGS=""
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834 xorg_testset_save_CFLAGS="$CFLAGS"
19835
19836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19841 then :
19842 printf %s "(cached) " >&6
19843 else case e in #(
19844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19846 int i;
19847 _ACEOF
19848 if ac_fn_c_try_compile "$LINENO"
19849 then :
19850 xorg_cv_cc_flag_unknown_warning_option=yes
19851 else case e in #(
19852 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19853 esac
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19856 esac
19857 fi
19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19861 CFLAGS="$xorg_testset_save_CFLAGS"
19862 fi
19863
19864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19867 fi
19868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19872 then :
19873 printf %s "(cached) " >&6
19874 else case e in #(
19875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19876 /* end confdefs.h. */
19877 int i;
19878 _ACEOF
19879 if ac_fn_c_try_compile "$LINENO"
19880 then :
19881 xorg_cv_cc_flag_unused_command_line_argument=yes
19882 else case e in #(
19883 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19884 esac
19885 fi
19886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19887 esac
19888 fi
19889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19892 CFLAGS="$xorg_testset_save_CFLAGS"
19893 fi
19894
19895 found="no"
19896
19897 if test $found = "no" ; then
19898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19900 fi
19901
19902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19904 fi
19905
19906 CFLAGS="$CFLAGS -pedantic"
19907
19908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19909 printf %s "checking if $CC supports -pedantic... " >&6; }
19910 cacheid=xorg_cv_cc_flag__pedantic
19911 if eval test \${$cacheid+y}
19912 then :
19913 printf %s "(cached) " >&6
19914 else case e in #(
19915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19917 int i;
19918 int
19919 main (void)
19920 {
19921
19922 ;
19923 return 0;
19924 }
19925 _ACEOF
19926 if ac_fn_c_try_link "$LINENO"
19927 then :
19928 eval $cacheid=yes
19929 else case e in #(
19930 e) eval $cacheid=no ;;
19931 esac
19932 fi
19933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19934 conftest$ac_exeext conftest.$ac_ext ;;
19935 esac
19936 fi
19937
19938
19939 CFLAGS="$xorg_testset_save_CFLAGS"
19940
19941 eval supported=\$$cacheid
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19943 printf "%s\n" "$supported" >&6; }
19944 if test "$supported" = "yes" ; then
19945 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19946 found="yes"
19947 fi
19948 fi
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964 xorg_testset_save_CFLAGS="$CFLAGS"
19965
19966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19970 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19971 then :
19972 printf %s "(cached) " >&6
19973 else case e in #(
19974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19976 int i;
19977 _ACEOF
19978 if ac_fn_c_try_compile "$LINENO"
19979 then :
19980 xorg_cv_cc_flag_unknown_warning_option=yes
19981 else case e in #(
19982 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19983 esac
19984 fi
19985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19986 esac
19987 fi
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19991 CFLAGS="$xorg_testset_save_CFLAGS"
19992 fi
19993
19994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19997 fi
19998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20002 then :
20003 printf %s "(cached) " >&6
20004 else case e in #(
20005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007 int i;
20008 _ACEOF
20009 if ac_fn_c_try_compile "$LINENO"
20010 then :
20011 xorg_cv_cc_flag_unused_command_line_argument=yes
20012 else case e in #(
20013 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20014 esac
20015 fi
20016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20017 esac
20018 fi
20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20022 CFLAGS="$xorg_testset_save_CFLAGS"
20023 fi
20024
20025 found="no"
20026
20027 if test $found = "no" ; then
20028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20030 fi
20031
20032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20034 fi
20035
20036 CFLAGS="$CFLAGS -Werror"
20037
20038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20039 printf %s "checking if $CC supports -Werror... " >&6; }
20040 cacheid=xorg_cv_cc_flag__Werror
20041 if eval test \${$cacheid+y}
20042 then :
20043 printf %s "(cached) " >&6
20044 else case e in #(
20045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20047 int i;
20048 int
20049 main (void)
20050 {
20051
20052 ;
20053 return 0;
20054 }
20055 _ACEOF
20056 if ac_fn_c_try_link "$LINENO"
20057 then :
20058 eval $cacheid=yes
20059 else case e in #(
20060 e) eval $cacheid=no ;;
20061 esac
20062 fi
20063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20064 conftest$ac_exeext conftest.$ac_ext ;;
20065 esac
20066 fi
20067
20068
20069 CFLAGS="$xorg_testset_save_CFLAGS"
20070
20071 eval supported=\$$cacheid
20072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20073 printf "%s\n" "$supported" >&6; }
20074 if test "$supported" = "yes" ; then
20075 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20076 found="yes"
20077 fi
20078 fi
20079
20080 if test $found = "no" ; then
20081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20083 fi
20084
20085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20087 fi
20088
20089 CFLAGS="$CFLAGS -errwarn"
20090
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20092 printf %s "checking if $CC supports -errwarn... " >&6; }
20093 cacheid=xorg_cv_cc_flag__errwarn
20094 if eval test \${$cacheid+y}
20095 then :
20096 printf %s "(cached) " >&6
20097 else case e in #(
20098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20100 int i;
20101 int
20102 main (void)
20103 {
20104
20105 ;
20106 return 0;
20107 }
20108 _ACEOF
20109 if ac_fn_c_try_link "$LINENO"
20110 then :
20111 eval $cacheid=yes
20112 else case e in #(
20113 e) eval $cacheid=no ;;
20114 esac
20115 fi
20116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20117 conftest$ac_exeext conftest.$ac_ext ;;
20118 esac
20119 fi
20120
20121
20122 CFLAGS="$xorg_testset_save_CFLAGS"
20123
20124 eval supported=\$$cacheid
20125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20126 printf "%s\n" "$supported" >&6; }
20127 if test "$supported" = "yes" ; then
20128 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20129 found="yes"
20130 fi
20131 fi
20132
20133
20134
20135 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20136 # activate it with -Werror, so we add it here explicitly.
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150 xorg_testset_save_CFLAGS="$CFLAGS"
20151
20152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20157 then :
20158 printf %s "(cached) " >&6
20159 else case e in #(
20160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20162 int i;
20163 _ACEOF
20164 if ac_fn_c_try_compile "$LINENO"
20165 then :
20166 xorg_cv_cc_flag_unknown_warning_option=yes
20167 else case e in #(
20168 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20169 esac
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20172 esac
20173 fi
20174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20175 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20177 CFLAGS="$xorg_testset_save_CFLAGS"
20178 fi
20179
20180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20183 fi
20184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20186 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20187 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20188 then :
20189 printf %s "(cached) " >&6
20190 else case e in #(
20191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192 /* end confdefs.h. */
20193 int i;
20194 _ACEOF
20195 if ac_fn_c_try_compile "$LINENO"
20196 then :
20197 xorg_cv_cc_flag_unused_command_line_argument=yes
20198 else case e in #(
20199 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20200 esac
20201 fi
20202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20203 esac
20204 fi
20205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20208 CFLAGS="$xorg_testset_save_CFLAGS"
20209 fi
20210
20211 found="no"
20212
20213 if test $found = "no" ; then
20214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20216 fi
20217
20218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20220 fi
20221
20222 CFLAGS="$CFLAGS -Werror=attributes"
20223
20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20225 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20226 cacheid=xorg_cv_cc_flag__Werror_attributes
20227 if eval test \${$cacheid+y}
20228 then :
20229 printf %s "(cached) " >&6
20230 else case e in #(
20231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20233 int i;
20234 int
20235 main (void)
20236 {
20237
20238 ;
20239 return 0;
20240 }
20241 _ACEOF
20242 if ac_fn_c_try_link "$LINENO"
20243 then :
20244 eval $cacheid=yes
20245 else case e in #(
20246 e) eval $cacheid=no ;;
20247 esac
20248 fi
20249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20250 conftest$ac_exeext conftest.$ac_ext ;;
20251 esac
20252 fi
20253
20254
20255 CFLAGS="$xorg_testset_save_CFLAGS"
20256
20257 eval supported=\$$cacheid
20258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20259 printf "%s\n" "$supported" >&6; }
20260 if test "$supported" = "yes" ; then
20261 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20262 found="yes"
20263 fi
20264 fi
20265
20266
20267
20268 if test "x$STRICT_COMPILE" = "xyes"; then
20269 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20270 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20271 fi
20272
20273
20274
20275
20276
20277
20278
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20282 _ACEOF
20283
20284 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20285 if test "x$PVM" = "x"; then
20286 PVM="0"
20287 fi
20288
20289 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20290
20291 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20292 if test "x$PVP" = "x"; then
20293 PVP="0"
20294 fi
20295
20296 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20297
20298
20299
20300 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20301 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20302 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20303 touch \$(top_srcdir)/ChangeLog; \
20304 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20305
20306
20307
20308
20309 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20310 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20311 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20312 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20313 touch \$(top_srcdir)/INSTALL; \
20314 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20315
20316
20317
20318
20319
20320
20321 case $host_os in
20322 solaris*)
20323 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20324 # check for a man page file found in later versions that use
20325 # traditional section numbers instead
20326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20327 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20328 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20329 then :
20330 printf %s "(cached) " >&6
20331 else case e in #(
20332 e) test "$cross_compiling" = yes &&
20333 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20334 if test -r "/usr/share/man/man7/attributes.7"; then
20335 ac_cv_file__usr_share_man_man7_attributes_7=yes
20336 else
20337 ac_cv_file__usr_share_man_man7_attributes_7=no
20338 fi ;;
20339 esac
20340 fi
20341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20342 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20343 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20344 then :
20345 SYSV_MAN_SECTIONS=false
20346 else case e in #(
20347 e) SYSV_MAN_SECTIONS=true ;;
20348 esac
20349 fi
20350
20351 ;;
20352 *) SYSV_MAN_SECTIONS=false ;;
20353 esac
20354
20355 if test x$APP_MAN_SUFFIX = x ; then
20356 APP_MAN_SUFFIX=1
20357 fi
20358 if test x$APP_MAN_DIR = x ; then
20359 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20360 fi
20361
20362 if test x$LIB_MAN_SUFFIX = x ; then
20363 LIB_MAN_SUFFIX=3
20364 fi
20365 if test x$LIB_MAN_DIR = x ; then
20366 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20367 fi
20368
20369 if test x$FILE_MAN_SUFFIX = x ; then
20370 case $SYSV_MAN_SECTIONS in
20371 true) FILE_MAN_SUFFIX=4 ;;
20372 *) FILE_MAN_SUFFIX=5 ;;
20373 esac
20374 fi
20375 if test x$FILE_MAN_DIR = x ; then
20376 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20377 fi
20378
20379 if test x$MISC_MAN_SUFFIX = x ; then
20380 case $SYSV_MAN_SECTIONS in
20381 true) MISC_MAN_SUFFIX=5 ;;
20382 *) MISC_MAN_SUFFIX=7 ;;
20383 esac
20384 fi
20385 if test x$MISC_MAN_DIR = x ; then
20386 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20387 fi
20388
20389 if test x$DRIVER_MAN_SUFFIX = x ; then
20390 case $SYSV_MAN_SECTIONS in
20391 true) DRIVER_MAN_SUFFIX=7 ;;
20392 *) DRIVER_MAN_SUFFIX=4 ;;
20393 esac
20394 fi
20395 if test x$DRIVER_MAN_DIR = x ; then
20396 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20397 fi
20398
20399 if test x$ADMIN_MAN_SUFFIX = x ; then
20400 case $SYSV_MAN_SECTIONS in
20401 true) ADMIN_MAN_SUFFIX=1m ;;
20402 *) ADMIN_MAN_SUFFIX=8 ;;
20403 esac
20404 fi
20405 if test x$ADMIN_MAN_DIR = x ; then
20406 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20407 fi
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423 XORG_MAN_PAGE="X Version 11"
20424
20425 MAN_SUBSTS="\
20426 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20427 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20428 -e 's|__xservername__|Xorg|g' \
20429 -e 's|__xconfigfile__|xorg.conf|g' \
20430 -e 's|__projectroot__|\$(prefix)|g' \
20431 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20432 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20433 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20434 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20435 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20436 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20437 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20438
20439
20440
20441
20442 AM_DEFAULT_VERBOSITY=0
20443
20444
20445
20446
20447
20448 # Check whether --enable-malloc0returnsnull was given.
20449 if test ${enable_malloc0returnsnull+y}
20450 then :
20451 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20452 else case e in #(
20453 e) MALLOC_ZERO_RETURNS_NULL=yes ;;
20454 esac
20455 fi
20456
20457
20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5
20459 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; }
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20461 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20462
20463 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20464 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20465 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20466 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20467 else
20468 MALLOC_ZERO_CFLAGS=""
20469 XMALLOC_ZERO_CFLAGS=""
20470 XTMALLOC_ZERO_CFLAGS=""
20471 fi
20472
20473
20474
20475
20476
20477
20478 # Obtain compiler/linker options for dependencies
20479
20480 pkg_failed=no
20481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5
20482 printf %s "checking for XSCRNSAVER... " >&6; }
20483
20484 if test -n "$XSCRNSAVER_CFLAGS"; then
20485 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS"
20486 elif test -n "$PKG_CONFIG"; then
20487 if test -n "$PKG_CONFIG" && \
20488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
20489 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
20490 ac_status=$?
20491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20492 test $ac_status = 0; }; then
20493 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
20494 test "x$?" != "x0" && pkg_failed=yes
20495 else
20496 pkg_failed=yes
20497 fi
20498 else
20499 pkg_failed=untried
20500 fi
20501 if test -n "$XSCRNSAVER_LIBS"; then
20502 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS"
20503 elif test -n "$PKG_CONFIG"; then
20504 if test -n "$PKG_CONFIG" && \
20505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
20506 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
20507 ac_status=$?
20508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20509 test $ac_status = 0; }; then
20510 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
20511 test "x$?" != "x0" && pkg_failed=yes
20512 else
20513 pkg_failed=yes
20514 fi
20515 else
20516 pkg_failed=untried
20517 fi
20518
20519
20520
20521 if test $pkg_failed = yes; then
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 printf "%s\n" "no" >&6; }
20524
20525 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20526 _pkg_short_errors_supported=yes
20527 else
20528 _pkg_short_errors_supported=no
20529 fi
20530 if test $_pkg_short_errors_supported = yes; then
20531 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
20532 else
20533 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
20534 fi
20535 # Put the nasty error message in config.log where it belongs
20536 echo "$XSCRNSAVER_PKG_ERRORS" >&5
20537
20538 as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met:
20539
20540 $XSCRNSAVER_PKG_ERRORS
20541
20542 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20543 installed software in a non-standard prefix.
20544
20545 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
20546 and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
20547 See the pkg-config man page for more details." "$LINENO" 5
20548 elif test $pkg_failed = untried; then
20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20550 printf "%s\n" "no" >&6; }
20551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20552 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20553 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20554 is in your PATH or set the PKG_CONFIG environment variable to the full
20555 path to pkg-config.
20556
20557 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
20558 and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
20559 See the pkg-config man page for more details.
20560
20561 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20562 See 'config.log' for more details" "$LINENO" 5; }
20563 else
20564 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS
20565 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS
20566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20567 printf "%s\n" "yes" >&6; }
20568
20569 fi
20570
20571 # Allow checking code with lint, sparse, etc.
20572
20573
20574
20575
20576
20577 # Check whether --with-lint was given.
20578 if test ${with_lint+y}
20579 then :
20580 withval=$with_lint; use_lint=$withval
20581 else case e in #(
20582 e) use_lint=no ;;
20583 esac
20584 fi
20585
20586
20587 # Obtain platform specific info like program name and options
20588 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20589 case $host_os in
20590 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20591 lint_name=splint
20592 lint_options="-badflag"
20593 ;;
20594 *freebsd* | *netbsd*)
20595 lint_name=lint
20596 lint_options="-u -b"
20597 ;;
20598 *solaris*)
20599 lint_name=lint
20600 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20601 ;;
20602 esac
20603
20604 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20605 if test "x$use_lint" = x"yes" ; then
20606 # Extract the first word of "$lint_name", so it can be a program name with args.
20607 set dummy $lint_name; ac_word=$2
20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20609 printf %s "checking for $ac_word... " >&6; }
20610 if test ${ac_cv_path_LINT+y}
20611 then :
20612 printf %s "(cached) " >&6
20613 else case e in #(
20614 e) case $LINT in
20615 [\\/]* | ?:[\\/]*)
20616 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20617 ;;
20618 *)
20619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20620 for as_dir in $PATH
20621 do
20622 IFS=$as_save_IFS
20623 case $as_dir in #(((
20624 '') as_dir=./ ;;
20625 */) ;;
20626 *) as_dir=$as_dir/ ;;
20627 esac
20628 for ac_exec_ext in '' $ac_executable_extensions; do
20629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20630 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20632 break 2
20633 fi
20634 done
20635 done
20636 IFS=$as_save_IFS
20637
20638 ;;
20639 esac ;;
20640 esac
20641 fi
20642 LINT=$ac_cv_path_LINT
20643 if test -n "$LINT"; then
20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20645 printf "%s\n" "$LINT" >&6; }
20646 else
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20648 printf "%s\n" "no" >&6; }
20649 fi
20650
20651
20652 if test "x$LINT" = "x"; then
20653 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20654 fi
20655 elif test "x$use_lint" = x"no" ; then
20656 if test "x$LINT" != "x"; then
20657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20658 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20659 fi
20660 else
20661 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20662 fi
20663
20664 # User supplied flags override default flags
20665 if test "x$LINT_FLAGS" != "x"; then
20666 lint_options=$LINT_FLAGS
20667 fi
20668
20669 LINT_FLAGS=$lint_options
20670
20671 if test "x$LINT" != x; then
20672 LINT_TRUE=
20673 LINT_FALSE='#'
20674 else
20675 LINT_TRUE='#'
20676 LINT_FALSE=
20677 fi
20678
20679
20680
20681
20682
20683 # Check whether --enable-lint-library was given.
20684 if test ${enable_lint_library+y}
20685 then :
20686 enableval=$enable_lint_library; make_lint_lib=$enableval
20687 else case e in #(
20688 e) make_lint_lib=no ;;
20689 esac
20690 fi
20691
20692
20693 if test "x$make_lint_lib" = x"yes" ; then
20694 LINTLIB=llib-lXss.ln
20695 if test "x$LINT" = "x"; then
20696 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20697 fi
20698 elif test "x$make_lint_lib" != x"no" ; then
20699 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20700 fi
20701
20702
20703 if test x$make_lint_lib != xno; then
20704 MAKE_LINT_LIB_TRUE=
20705 MAKE_LINT_LIB_FALSE='#'
20706 else
20707 MAKE_LINT_LIB_TRUE='#'
20708 MAKE_LINT_LIB_FALSE=
20709 fi
20710
20711
20712
20713
20714 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc"
20715
20716 cat >confcache <<\_ACEOF
20717 # This file is a shell script that caches the results of configure
20718 # tests run on this system so they can be shared between configure
20719 # scripts and configure runs, see configure's option --config-cache.
20720 # It is not useful on other systems. If it contains results you don't
20721 # want to keep, you may remove or edit it.
20722 #
20723 # config.status only pays attention to the cache file if you give it
20724 # the --recheck option to rerun configure.
20725 #
20726 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20727 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20728 # following values.
20729
20730 _ACEOF
20731
20732 # The following way of writing the cache mishandles newlines in values,
20733 # but we know of no workaround that is simple, portable, and efficient.
20734 # So, we kill variables containing newlines.
20735 # Ultrix sh set writes to stderr and can't be redirected directly,
20736 # and sets the high bit in the cache file unless we assign to the vars.
20737 (
20738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20739 eval ac_val=\$$ac_var
20740 case $ac_val in #(
20741 *${as_nl}*)
20742 case $ac_var in #(
20743 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20744 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20745 esac
20746 case $ac_var in #(
20747 _ | IFS | as_nl) ;; #(
20748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20749 *) { eval $ac_var=; unset $ac_var;} ;;
20750 esac ;;
20751 esac
20752 done
20753
20754 (set) 2>&1 |
20755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20756 *${as_nl}ac_space=\ *)
20757 # 'set' does not quote correctly, so add quotes: double-quote
20758 # substitution turns \\\\ into \\, and sed turns \\ into \.
20759 sed -n \
20760 "s/'/'\\\\''/g;
20761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20762 ;; #(
20763 *)
20764 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20766 ;;
20767 esac |
20768 sort
20769 ) |
20770 sed '
20771 /^ac_cv_env_/b end
20772 t clear
20773 :clear
20774 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20775 t end
20776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20777 :end' >>confcache
20778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20779 if test -w "$cache_file"; then
20780 if test "x$cache_file" != "x/dev/null"; then
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20782 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20783 if test ! -f "$cache_file" || test -h "$cache_file"; then
20784 cat confcache >"$cache_file"
20785 else
20786 case $cache_file in #(
20787 */* | ?:*)
20788 mv -f confcache "$cache_file"$$ &&
20789 mv -f "$cache_file"$$ "$cache_file" ;; #(
20790 *)
20791 mv -f confcache "$cache_file" ;;
20792 esac
20793 fi
20794 fi
20795 else
20796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20797 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20798 fi
20799 fi
20800 rm -f confcache
20801
20802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20803 # Let make expand exec_prefix.
20804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20805
20806 DEFS=-DHAVE_CONFIG_H
20807
20808 ac_libobjs=
20809 ac_ltlibobjs=
20810 U=
20811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20812 # 1. Remove the extension, and $U if already installed.
20813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20814 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20816 # will be set to the directory where LIBOBJS objects are built.
20817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20819 done
20820 LIBOBJS=$ac_libobjs
20821
20822 LTLIBOBJS=$ac_ltlibobjs
20823
20824
20825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20826 printf %s "checking that generated files are newer than configure... " >&6; }
20827 if test -n "$am_sleep_pid"; then
20828 # Hide warnings about reused PIDs.
20829 wait $am_sleep_pid 2>/dev/null
20830 fi
20831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20832 printf "%s\n" "done" >&6; }
20833 case $enable_silent_rules in # (((
20834 yes) AM_DEFAULT_VERBOSITY=0;;
20835 no) AM_DEFAULT_VERBOSITY=1;;
20836 esac
20837 if test $am_cv_make_support_nested_variables = yes; then
20838 AM_V='$(V)'
20839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20840 else
20841 AM_V=$AM_DEFAULT_VERBOSITY
20842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20843 fi
20844
20845 if test -n "$EXEEXT"; then
20846 am__EXEEXT_TRUE=
20847 am__EXEEXT_FALSE='#'
20848 else
20849 am__EXEEXT_TRUE='#'
20850 am__EXEEXT_FALSE=
20851 fi
20852
20853 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20854 as_fn_error $? "conditional \"AMDEP\" was never defined.
20855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20856 fi
20857 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20858 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20860 fi
20861 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20862 as_fn_error $? "conditional \"LINT\" was never defined.
20863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20864 fi
20865 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20866 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20868 fi
20869
20870 : "${CONFIG_STATUS=./config.status}"
20871 ac_write_fail=0
20872 ac_clean_files_save=$ac_clean_files
20873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20875 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20876 as_write_fail=0
20877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20878 #! $SHELL
20879 # Generated by $as_me.
20880 # Run this file to recreate the current configuration.
20881 # Compiler output produced by configure, useful for debugging
20882 # configure, is in config.log if it exists.
20883
20884 debug=false
20885 ac_cs_recheck=false
20886 ac_cs_silent=false
20887
20888 SHELL=\${CONFIG_SHELL-$SHELL}
20889 export SHELL
20890 _ASEOF
20891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20892 ## -------------------- ##
20893 ## M4sh Initialization. ##
20894 ## -------------------- ##
20895
20896 # Be more Bourne compatible
20897 DUALCASE=1; export DUALCASE # for MKS sh
20898 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20899 then :
20900 emulate sh
20901 NULLCMD=:
20902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20903 # is contrary to our usage. Disable this feature.
20904 alias -g '${1+"$@"}'='"$@"'
20905 setopt NO_GLOB_SUBST
20906 else case e in #(
20907 e) case `(set -o) 2>/dev/null` in #(
20908 *posix*) :
20909 set -o posix ;; #(
20910 *) :
20911 ;;
20912 esac ;;
20913 esac
20914 fi
20915
20916
20917
20918 # Reset variables that may have inherited troublesome values from
20919 # the environment.
20920
20921 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20922 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20923 # side effect of setting IFS to empty, thus disabling word splitting.)
20924 # Quoting is to prevent editors from complaining about space-tab.
20925 as_nl='
20926 '
20927 export as_nl
20928 IFS=" "" $as_nl"
20929
20930 PS1='$ '
20931 PS2='> '
20932 PS4='+ '
20933
20934 # Ensure predictable behavior from utilities with locale-dependent output.
20935 LC_ALL=C
20936 export LC_ALL
20937 LANGUAGE=C
20938 export LANGUAGE
20939
20940 # We cannot yet rely on "unset" to work, but we need these variables
20941 # to be unset--not just set to an empty or harmless value--now, to
20942 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20943 # also avoids known problems related to "unset" and subshell syntax
20944 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20945 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20946 do eval test \${$as_var+y} \
20947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20948 done
20949
20950 # Ensure that fds 0, 1, and 2 are open.
20951 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20952 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20953 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20954
20955 # The user is always right.
20956 if ${PATH_SEPARATOR+false} :; then
20957 PATH_SEPARATOR=:
20958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20960 PATH_SEPARATOR=';'
20961 }
20962 fi
20963
20964
20965 # Find who we are. Look in the path if we contain no directory separator.
20966 as_myself=
20967 case $0 in #((
20968 *[\\/]* ) as_myself=$0 ;;
20969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20970 for as_dir in $PATH
20971 do
20972 IFS=$as_save_IFS
20973 case $as_dir in #(((
20974 '') as_dir=./ ;;
20975 */) ;;
20976 *) as_dir=$as_dir/ ;;
20977 esac
20978 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20979 done
20980 IFS=$as_save_IFS
20981
20982 ;;
20983 esac
20984 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20985 # in which case we are not to be found in the path.
20986 if test "x$as_myself" = x; then
20987 as_myself=$0
20988 fi
20989 if test ! -f "$as_myself"; then
20990 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20991 exit 1
20992 fi
20993
20994
20995
20996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20997 # ----------------------------------------
20998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21000 # script with STATUS, using 1 if that was 0.
21001 as_fn_error ()
21002 {
21003 as_status=$1; test $as_status -eq 0 && as_status=1
21004 if test "$4"; then
21005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21007 fi
21008 printf "%s\n" "$as_me: error: $2" >&2
21009 as_fn_exit $as_status
21010 } # as_fn_error
21011
21012
21013 # as_fn_set_status STATUS
21014 # -----------------------
21015 # Set $? to STATUS, without forking.
21016 as_fn_set_status ()
21017 {
21018 return $1
21019 } # as_fn_set_status
21020
21021 # as_fn_exit STATUS
21022 # -----------------
21023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21024 as_fn_exit ()
21025 {
21026 set +e
21027 as_fn_set_status $1
21028 exit $1
21029 } # as_fn_exit
21030
21031 # as_fn_unset VAR
21032 # ---------------
21033 # Portably unset VAR.
21034 as_fn_unset ()
21035 {
21036 { eval $1=; unset $1;}
21037 }
21038 as_unset=as_fn_unset
21039
21040 # as_fn_append VAR VALUE
21041 # ----------------------
21042 # Append the text in VALUE to the end of the definition contained in VAR. Take
21043 # advantage of any shell optimizations that allow amortized linear growth over
21044 # repeated appends, instead of the typical quadratic growth present in naive
21045 # implementations.
21046 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21047 then :
21048 eval 'as_fn_append ()
21049 {
21050 eval $1+=\$2
21051 }'
21052 else case e in #(
21053 e) as_fn_append ()
21054 {
21055 eval $1=\$$1\$2
21056 } ;;
21057 esac
21058 fi # as_fn_append
21059
21060 # as_fn_arith ARG...
21061 # ------------------
21062 # Perform arithmetic evaluation on the ARGs, and store the result in the
21063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21064 # must be portable across $(()) and expr.
21065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21066 then :
21067 eval 'as_fn_arith ()
21068 {
21069 as_val=$(( $* ))
21070 }'
21071 else case e in #(
21072 e) as_fn_arith ()
21073 {
21074 as_val=`expr "$@" || test $? -eq 1`
21075 } ;;
21076 esac
21077 fi # as_fn_arith
21078
21079
21080 if expr a : '\(a\)' >/dev/null 2>&1 &&
21081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21082 as_expr=expr
21083 else
21084 as_expr=false
21085 fi
21086
21087 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21088 as_basename=basename
21089 else
21090 as_basename=false
21091 fi
21092
21093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21094 as_dirname=dirname
21095 else
21096 as_dirname=false
21097 fi
21098
21099 as_me=`$as_basename -- "$0" ||
21100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21101 X"$0" : 'X\(//\)$' \| \
21102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21103 printf "%s\n" X/"$0" |
21104 sed '/^.*\/\([^/][^/]*\)\/*$/{
21105 s//\1/
21106 q
21107 }
21108 /^X\/\(\/\/\)$/{
21109 s//\1/
21110 q
21111 }
21112 /^X\/\(\/\).*/{
21113 s//\1/
21114 q
21115 }
21116 s/.*/./; q'`
21117
21118 # Avoid depending upon Character Ranges.
21119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21122 as_cr_digits='0123456789'
21123 as_cr_alnum=$as_cr_Letters$as_cr_digits
21124
21125
21126 # Determine whether it's possible to make 'echo' print without a newline.
21127 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21128 # for compatibility with existing Makefiles.
21129 ECHO_C= ECHO_N= ECHO_T=
21130 case `echo -n x` in #(((((
21131 -n*)
21132 case `echo 'xy\c'` in
21133 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21134 xy) ECHO_C='\c';;
21135 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21136 ECHO_T=' ';;
21137 esac;;
21138 *)
21139 ECHO_N='-n';;
21140 esac
21141
21142 # For backward compatibility with old third-party macros, we provide
21143 # the shell variables $as_echo and $as_echo_n. New code should use
21144 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21145 as_echo='printf %s\n'
21146 as_echo_n='printf %s'
21147
21148 rm -f conf$$ conf$$.exe conf$$.file
21149 if test -d conf$$.dir; then
21150 rm -f conf$$.dir/conf$$.file
21151 else
21152 rm -f conf$$.dir
21153 mkdir conf$$.dir 2>/dev/null
21154 fi
21155 if (echo >conf$$.file) 2>/dev/null; then
21156 if ln -s conf$$.file conf$$ 2>/dev/null; then
21157 as_ln_s='ln -s'
21158 # ... but there are two gotchas:
21159 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21160 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21161 # In both cases, we have to default to 'cp -pR'.
21162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21163 as_ln_s='cp -pR'
21164 elif ln conf$$.file conf$$ 2>/dev/null; then
21165 as_ln_s=ln
21166 else
21167 as_ln_s='cp -pR'
21168 fi
21169 else
21170 as_ln_s='cp -pR'
21171 fi
21172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21173 rmdir conf$$.dir 2>/dev/null
21174
21175
21176 # as_fn_mkdir_p
21177 # -------------
21178 # Create "$as_dir" as a directory, including parents if necessary.
21179 as_fn_mkdir_p ()
21180 {
21181
21182 case $as_dir in #(
21183 -*) as_dir=./$as_dir;;
21184 esac
21185 test -d "$as_dir" || eval $as_mkdir_p || {
21186 as_dirs=
21187 while :; do
21188 case $as_dir in #(
21189 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21190 *) as_qdir=$as_dir;;
21191 esac
21192 as_dirs="'$as_qdir' $as_dirs"
21193 as_dir=`$as_dirname -- "$as_dir" ||
21194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195 X"$as_dir" : 'X\(//\)[^/]' \| \
21196 X"$as_dir" : 'X\(//\)$' \| \
21197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21198 printf "%s\n" X"$as_dir" |
21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21200 s//\1/
21201 q
21202 }
21203 /^X\(\/\/\)[^/].*/{
21204 s//\1/
21205 q
21206 }
21207 /^X\(\/\/\)$/{
21208 s//\1/
21209 q
21210 }
21211 /^X\(\/\).*/{
21212 s//\1/
21213 q
21214 }
21215 s/.*/./; q'`
21216 test -d "$as_dir" && break
21217 done
21218 test -z "$as_dirs" || eval "mkdir $as_dirs"
21219 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21220
21221
21222 } # as_fn_mkdir_p
21223 if mkdir -p . 2>/dev/null; then
21224 as_mkdir_p='mkdir -p "$as_dir"'
21225 else
21226 test -d ./-p && rmdir ./-p
21227 as_mkdir_p=false
21228 fi
21229
21230
21231 # as_fn_executable_p FILE
21232 # -----------------------
21233 # Test if FILE is an executable regular file.
21234 as_fn_executable_p ()
21235 {
21236 test -f "$1" && test -x "$1"
21237 } # as_fn_executable_p
21238 as_test_x='test -x'
21239 as_executable_p=as_fn_executable_p
21240
21241 # Sed expression to map a string onto a valid CPP name.
21242 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21243 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21244
21245 # Sed expression to map a string onto a valid variable name.
21246 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21247 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21248
21249
21250 exec 6>&1
21251 ## ----------------------------------- ##
21252 ## Main body of $CONFIG_STATUS script. ##
21253 ## ----------------------------------- ##
21254 _ASEOF
21255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21256
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21258 # Save the log message, to keep $0 and so on meaningful, and to
21259 # report actual input values of CONFIG_FILES etc. instead of their
21260 # values after options handling.
21261 ac_log="
21262 This file was extended by libXScrnSaver $as_me 1.2.5, which was
21263 generated by GNU Autoconf 2.72. Invocation command line was
21264
21265 CONFIG_FILES = $CONFIG_FILES
21266 CONFIG_HEADERS = $CONFIG_HEADERS
21267 CONFIG_LINKS = $CONFIG_LINKS
21268 CONFIG_COMMANDS = $CONFIG_COMMANDS
21269 $ $0 $@
21270
21271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21272 "
21273
21274 _ACEOF
21275
21276 case $ac_config_files in *"
21277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21278 esac
21279
21280 case $ac_config_headers in *"
21281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21282 esac
21283
21284
21285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21286 # Files that config.status was made for.
21287 config_files="$ac_config_files"
21288 config_headers="$ac_config_headers"
21289 config_commands="$ac_config_commands"
21290
21291 _ACEOF
21292
21293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21294 ac_cs_usage="\
21295 '$as_me' instantiates files and other configuration actions
21296 from templates according to the current configuration. Unless the files
21297 and actions are specified as TAGs, all are instantiated by default.
21298
21299 Usage: $0 [OPTION]... [TAG]...
21300
21301 -h, --help print this help, then exit
21302 -V, --version print version number and configuration settings, then exit
21303 --config print configuration, then exit
21304 -q, --quiet, --silent
21305 do not print progress messages
21306 -d, --debug don't remove temporary files
21307 --recheck update $as_me by reconfiguring in the same conditions
21308 --file=FILE[:TEMPLATE]
21309 instantiate the configuration file FILE
21310 --header=FILE[:TEMPLATE]
21311 instantiate the configuration header FILE
21312
21313 Configuration files:
21314 $config_files
21315
21316 Configuration headers:
21317 $config_headers
21318
21319 Configuration commands:
21320 $config_commands
21321
21322 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>."
21323
21324 _ACEOF
21325 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21326 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21328 ac_cs_config='$ac_cs_config_escaped'
21329 ac_cs_version="\\
21330 libXScrnSaver config.status 1.2.5
21331 configured by $0, generated by GNU Autoconf 2.72,
21332 with options \\"\$ac_cs_config\\"
21333
21334 Copyright (C) 2023 Free Software Foundation, Inc.
21335 This config.status script is free software; the Free Software Foundation
21336 gives unlimited permission to copy, distribute and modify it."
21337
21338 ac_pwd='$ac_pwd'
21339 srcdir='$srcdir'
21340 INSTALL='$INSTALL'
21341 MKDIR_P='$MKDIR_P'
21342 AWK='$AWK'
21343 test -n "\$AWK" || AWK=awk
21344 _ACEOF
21345
21346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21347 # The default lists apply if the user does not specify any file.
21348 ac_need_defaults=:
21349 while test $# != 0
21350 do
21351 case $1 in
21352 --*=?*)
21353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21355 ac_shift=:
21356 ;;
21357 --*=)
21358 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21359 ac_optarg=
21360 ac_shift=:
21361 ;;
21362 *)
21363 ac_option=$1
21364 ac_optarg=$2
21365 ac_shift=shift
21366 ;;
21367 esac
21368
21369 case $ac_option in
21370 # Handling of the options.
21371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21372 ac_cs_recheck=: ;;
21373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21374 printf "%s\n" "$ac_cs_version"; exit ;;
21375 --config | --confi | --conf | --con | --co | --c )
21376 printf "%s\n" "$ac_cs_config"; exit ;;
21377 --debug | --debu | --deb | --de | --d | -d )
21378 debug=: ;;
21379 --file | --fil | --fi | --f )
21380 $ac_shift
21381 case $ac_optarg in
21382 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21383 '') as_fn_error $? "missing file argument" ;;
21384 esac
21385 as_fn_append CONFIG_FILES " '$ac_optarg'"
21386 ac_need_defaults=false;;
21387 --header | --heade | --head | --hea )
21388 $ac_shift
21389 case $ac_optarg in
21390 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21391 esac
21392 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21393 ac_need_defaults=false;;
21394 --he | --h)
21395 # Conflict between --help and --header
21396 as_fn_error $? "ambiguous option: '$1'
21397 Try '$0 --help' for more information.";;
21398 --help | --hel | -h )
21399 printf "%s\n" "$ac_cs_usage"; exit ;;
21400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21401 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21402 ac_cs_silent=: ;;
21403
21404 # This is an error.
21405 -*) as_fn_error $? "unrecognized option: '$1'
21406 Try '$0 --help' for more information." ;;
21407
21408 *) as_fn_append ac_config_targets " $1"
21409 ac_need_defaults=false ;;
21410
21411 esac
21412 shift
21413 done
21414
21415 ac_configure_extra_args=
21416
21417 if $ac_cs_silent; then
21418 exec 6>/dev/null
21419 ac_configure_extra_args="$ac_configure_extra_args --silent"
21420 fi
21421
21422 _ACEOF
21423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21424 if \$ac_cs_recheck; then
21425 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21426 shift
21427 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21428 CONFIG_SHELL='$SHELL'
21429 export CONFIG_SHELL
21430 exec "\$@"
21431 fi
21432
21433 _ACEOF
21434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21435 exec 5>>config.log
21436 {
21437 echo
21438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21439 ## Running $as_me. ##
21440 _ASBOX
21441 printf "%s\n" "$ac_log"
21442 } >&5
21443
21444 _ACEOF
21445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21446 #
21447 # INIT-COMMANDS
21448 #
21449 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21450
21451
21452 # The HP-UX ksh and POSIX shell print the target directory to stdout
21453 # if CDPATH is set.
21454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21455
21456 sed_quote_subst='$sed_quote_subst'
21457 double_quote_subst='$double_quote_subst'
21458 delay_variable_subst='$delay_variable_subst'
21459 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21460 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21461 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21462 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21463 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21464 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21465 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21468 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21469 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21470 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21471 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21472 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21473 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21474 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21475 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21476 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21477 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21478 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21479 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21480 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21481 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21482 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21483 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21484 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21485 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21486 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21487 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21488 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21489 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21490 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21491 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21492 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21493 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21494 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21495 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21496 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21497 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21498 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21499 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21500 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21501 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21502 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21503 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21504 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21505 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21506 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21507 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21508 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21509 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21510 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21511 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21512 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21513 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21514 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21515 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21517 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21518 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21519 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"`'
21520 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21521 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21522 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21523 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21524 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21525 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21526 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21527 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21528 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21529 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21530 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21531 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21532 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21533 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21534 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21535 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21536 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21537 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21538 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21539 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21540 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21541 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21542 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21543 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21544 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21545 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21546 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21547 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21548 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21549 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21550 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21551 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21552 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21553 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21554 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21555 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21556 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21557 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21558 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21559 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21560 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21561 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21562 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21563 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21564 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21565 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21566 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21567 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21568 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21569 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21570 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21571 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21572 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21573 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21574 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21575 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21576 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21577 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21578 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21579 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21580 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21581 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21582 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21583 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21584 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21585 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21586 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21587 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21588 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21589 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21590 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21591 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21592 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21593 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21594 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21595 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21596
21597 LTCC='$LTCC'
21598 LTCFLAGS='$LTCFLAGS'
21599 compiler='$compiler_DEFAULT'
21600
21601 # A function that is used when there is no print builtin or printf.
21602 func_fallback_echo ()
21603 {
21604 eval 'cat <<_LTECHO_EOF
21605 \$1
21606 _LTECHO_EOF'
21607 }
21608
21609 # Quote evaled strings.
21610 for var in SHELL \
21611 ECHO \
21612 PATH_SEPARATOR \
21613 SED \
21614 GREP \
21615 EGREP \
21616 FGREP \
21617 LD \
21618 NM \
21619 LN_S \
21620 lt_SP2NL \
21621 lt_NL2SP \
21622 reload_flag \
21623 FILECMD \
21624 OBJDUMP \
21625 deplibs_check_method \
21626 file_magic_cmd \
21627 file_magic_glob \
21628 want_nocaseglob \
21629 DLLTOOL \
21630 sharedlib_from_linklib_cmd \
21631 AR \
21632 archiver_list_spec \
21633 STRIP \
21634 RANLIB \
21635 CC \
21636 CFLAGS \
21637 compiler \
21638 lt_cv_sys_global_symbol_pipe \
21639 lt_cv_sys_global_symbol_to_cdecl \
21640 lt_cv_sys_global_symbol_to_import \
21641 lt_cv_sys_global_symbol_to_c_name_address \
21642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21643 lt_cv_nm_interface \
21644 nm_file_list_spec \
21645 lt_cv_truncate_bin \
21646 lt_prog_compiler_no_builtin_flag \
21647 lt_prog_compiler_pic \
21648 lt_prog_compiler_wl \
21649 lt_prog_compiler_static \
21650 lt_cv_prog_compiler_c_o \
21651 need_locks \
21652 MANIFEST_TOOL \
21653 DSYMUTIL \
21654 NMEDIT \
21655 LIPO \
21656 OTOOL \
21657 OTOOL64 \
21658 shrext_cmds \
21659 export_dynamic_flag_spec \
21660 whole_archive_flag_spec \
21661 compiler_needs_object \
21662 with_gnu_ld \
21663 allow_undefined_flag \
21664 no_undefined_flag \
21665 hardcode_libdir_flag_spec \
21666 hardcode_libdir_separator \
21667 exclude_expsyms \
21668 include_expsyms \
21669 file_list_spec \
21670 variables_saved_for_relink \
21671 libname_spec \
21672 library_names_spec \
21673 soname_spec \
21674 install_override_mode \
21675 finish_eval \
21676 old_striplib \
21677 striplib; do
21678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21679 *[\\\\\\\`\\"\\\$]*)
21680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21681 ;;
21682 *)
21683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21684 ;;
21685 esac
21686 done
21687
21688 # Double-quote double-evaled strings.
21689 for var in reload_cmds \
21690 old_postinstall_cmds \
21691 old_postuninstall_cmds \
21692 old_archive_cmds \
21693 extract_expsyms_cmds \
21694 old_archive_from_new_cmds \
21695 old_archive_from_expsyms_cmds \
21696 archive_cmds \
21697 archive_expsym_cmds \
21698 module_cmds \
21699 module_expsym_cmds \
21700 export_symbols_cmds \
21701 prelink_cmds \
21702 postlink_cmds \
21703 postinstall_cmds \
21704 postuninstall_cmds \
21705 finish_cmds \
21706 sys_lib_search_path_spec \
21707 configure_time_dlsearch_path \
21708 configure_time_lt_sys_library_path; do
21709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21710 *[\\\\\\\`\\"\\\$]*)
21711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21712 ;;
21713 *)
21714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21715 ;;
21716 esac
21717 done
21718
21719 ac_aux_dir='$ac_aux_dir'
21720
21721 # See if we are running on zsh, and set the options that allow our
21722 # commands through without removal of \ escapes INIT.
21723 if test -n "\${ZSH_VERSION+set}"; then
21724 setopt NO_GLOB_SUBST
21725 fi
21726
21727
21728 PACKAGE='$PACKAGE'
21729 VERSION='$VERSION'
21730 RM='$RM'
21731 ofile='$ofile'
21732
21733
21734
21735
21736 _ACEOF
21737
21738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21739
21740 # Handling of arguments.
21741 for ac_config_target in $ac_config_targets
21742 do
21743 case $ac_config_target in
21744 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21748 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21749 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21750 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;;
21751
21752 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21753 esac
21754 done
21755
21756
21757 # If the user did not use the arguments to specify the items to instantiate,
21758 # then the envvar interface is used. Set only those that are not.
21759 # We use the long form for the default assignment because of an extremely
21760 # bizarre bug on SunOS 4.1.3.
21761 if $ac_need_defaults; then
21762 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21763 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21764 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21765 fi
21766
21767 # Have a temporary directory for convenience. Make it in the build tree
21768 # simply because there is no reason against having it here, and in addition,
21769 # creating and moving files from /tmp can sometimes cause problems.
21770 # Hook for its removal unless debugging.
21771 # Note that there is a small window in which the directory will not be cleaned:
21772 # after its creation but before its name has been assigned to '$tmp'.
21773 $debug ||
21774 {
21775 tmp= ac_tmp=
21776 trap 'exit_status=$?
21777 : "${ac_tmp:=$tmp}"
21778 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21779 ' 0
21780 trap 'as_fn_exit 1' 1 2 13 15
21781 }
21782 # Create a (secure) tmp directory for tmp files.
21783
21784 {
21785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21786 test -d "$tmp"
21787 } ||
21788 {
21789 tmp=./conf$$-$RANDOM
21790 (umask 077 && mkdir "$tmp")
21791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21792 ac_tmp=$tmp
21793
21794 # Set up the scripts for CONFIG_FILES section.
21795 # No need to generate them if there are no CONFIG_FILES.
21796 # This happens for instance with './config.status config.h'.
21797 if test -n "$CONFIG_FILES"; then
21798
21799
21800 ac_cr=`echo X | tr X '\015'`
21801 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21802 # But we know of no other shell where ac_cr would be empty at this
21803 # point, so we can use a bashism as a fallback.
21804 if test "x$ac_cr" = x; then
21805 eval ac_cr=\$\'\\r\'
21806 fi
21807 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21808 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21809 ac_cs_awk_cr='\\r'
21810 else
21811 ac_cs_awk_cr=$ac_cr
21812 fi
21813
21814 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21815 _ACEOF
21816
21817
21818 {
21819 echo "cat >conf$$subs.awk <<_ACEOF" &&
21820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21821 echo "_ACEOF"
21822 } >conf$$subs.sh ||
21823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21825 ac_delim='%!_!# '
21826 for ac_last_try in false false false false false :; do
21827 . ./conf$$subs.sh ||
21828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21829
21830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21831 if test $ac_delim_n = $ac_delim_num; then
21832 break
21833 elif $ac_last_try; then
21834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21835 else
21836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21837 fi
21838 done
21839 rm -f conf$$subs.sh
21840
21841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21842 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21843 _ACEOF
21844 sed -n '
21845 h
21846 s/^/S["/; s/!.*/"]=/
21847 p
21848 g
21849 s/^[^!]*!//
21850 :repl
21851 t repl
21852 s/'"$ac_delim"'$//
21853 t delim
21854 :nl
21855 h
21856 s/\(.\{148\}\)..*/\1/
21857 t more1
21858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21859 p
21860 n
21861 b repl
21862 :more1
21863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21864 p
21865 g
21866 s/.\{148\}//
21867 t nl
21868 :delim
21869 h
21870 s/\(.\{148\}\)..*/\1/
21871 t more2
21872 s/["\\]/\\&/g; s/^/"/; s/$/"/
21873 p
21874 b
21875 :more2
21876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21877 p
21878 g
21879 s/.\{148\}//
21880 t delim
21881 ' <conf$$subs.awk | sed '
21882 /^[^""]/{
21883 N
21884 s/\n//
21885 }
21886 ' >>$CONFIG_STATUS || ac_write_fail=1
21887 rm -f conf$$subs.awk
21888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21889 _ACAWK
21890 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21891 for (key in S) S_is_set[key] = 1
21892 FS = ""
21893
21894 }
21895 {
21896 line = $ 0
21897 nfields = split(line, field, "@")
21898 substed = 0
21899 len = length(field[1])
21900 for (i = 2; i < nfields; i++) {
21901 key = field[i]
21902 keylen = length(key)
21903 if (S_is_set[key]) {
21904 value = S[key]
21905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21906 len += length(value) + length(field[++i])
21907 substed = 1
21908 } else
21909 len += 1 + keylen
21910 }
21911
21912 print line
21913 }
21914
21915 _ACAWK
21916 _ACEOF
21917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21920 else
21921 cat
21922 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21923 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21924 _ACEOF
21925
21926 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21927 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21928 # trailing colons and then remove the whole line if VPATH becomes empty
21929 # (actually we leave an empty line to preserve line numbers).
21930 if test "x$srcdir" = x.; then
21931 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21932 h
21933 s///
21934 s/^/:/
21935 s/[ ]*$/:/
21936 s/:\$(srcdir):/:/g
21937 s/:\${srcdir}:/:/g
21938 s/:@srcdir@:/:/g
21939 s/^:*//
21940 s/:*$//
21941 x
21942 s/\(=[ ]*\).*/\1/
21943 G
21944 s/\n//
21945 s/^[^=]*=[ ]*$//
21946 }'
21947 fi
21948
21949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21950 fi # test -n "$CONFIG_FILES"
21951
21952 # Set up the scripts for CONFIG_HEADERS section.
21953 # No need to generate them if there are no CONFIG_HEADERS.
21954 # This happens for instance with './config.status Makefile'.
21955 if test -n "$CONFIG_HEADERS"; then
21956 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21957 BEGIN {
21958 _ACEOF
21959
21960 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21961 # here-document in config.status, that substitutes the proper values into
21962 # config.h.in to produce config.h.
21963
21964 # Create a delimiter string that does not exist in confdefs.h, to ease
21965 # handling of long lines.
21966 ac_delim='%!_!# '
21967 for ac_last_try in false false :; do
21968 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21969 if test -z "$ac_tt"; then
21970 break
21971 elif $ac_last_try; then
21972 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21973 else
21974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21975 fi
21976 done
21977
21978 # For the awk script, D is an array of macro values keyed by name,
21979 # likewise P contains macro parameters if any. Preserve backslash
21980 # newline sequences.
21981
21982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21983 sed -n '
21984 s/.\{148\}/&'"$ac_delim"'/g
21985 t rset
21986 :rset
21987 s/^[ ]*#[ ]*define[ ][ ]*/ /
21988 t def
21989 d
21990 :def
21991 s/\\$//
21992 t bsnl
21993 s/["\\]/\\&/g
21994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21995 D["\1"]=" \3"/p
21996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21997 d
21998 :bsnl
21999 s/["\\]/\\&/g
22000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22001 D["\1"]=" \3\\\\\\n"\\/p
22002 t cont
22003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22004 t cont
22005 d
22006 :cont
22007 n
22008 s/.\{148\}/&'"$ac_delim"'/g
22009 t clear
22010 :clear
22011 s/\\$//
22012 t bsnlc
22013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22014 d
22015 :bsnlc
22016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22017 b cont
22018 ' <confdefs.h | sed '
22019 s/'"$ac_delim"'/"\\\
22020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22021
22022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22023 for (key in D) D_is_set[key] = 1
22024 FS = ""
22025 }
22026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22027 line = \$ 0
22028 split(line, arg, " ")
22029 if (arg[1] == "#") {
22030 defundef = arg[2]
22031 mac1 = arg[3]
22032 } else {
22033 defundef = substr(arg[1], 2)
22034 mac1 = arg[2]
22035 }
22036 split(mac1, mac2, "(") #)
22037 macro = mac2[1]
22038 prefix = substr(line, 1, index(line, defundef) - 1)
22039 if (D_is_set[macro]) {
22040 # Preserve the white space surrounding the "#".
22041 print prefix "define", macro P[macro] D[macro]
22042 next
22043 } else {
22044 # Replace #undef with comments. This is necessary, for example,
22045 # in the case of _POSIX_SOURCE, which is predefined and required
22046 # on some systems where configure will not decide to define it.
22047 if (defundef == "undef") {
22048 print "/*", prefix defundef, macro, "*/"
22049 next
22050 }
22051 }
22052 }
22053 { print }
22054 _ACAWK
22055 _ACEOF
22056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22057 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22058 fi # test -n "$CONFIG_HEADERS"
22059
22060
22061 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22062 shift
22063 for ac_tag
22064 do
22065 case $ac_tag in
22066 :[FHLC]) ac_mode=$ac_tag; continue;;
22067 esac
22068 case $ac_mode$ac_tag in
22069 :[FHL]*:*);;
22070 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22071 :[FH]-) ac_tag=-:-;;
22072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22073 esac
22074 ac_save_IFS=$IFS
22075 IFS=:
22076 set x $ac_tag
22077 IFS=$ac_save_IFS
22078 shift
22079 ac_file=$1
22080 shift
22081
22082 case $ac_mode in
22083 :L) ac_source=$1;;
22084 :[FH])
22085 ac_file_inputs=
22086 for ac_f
22087 do
22088 case $ac_f in
22089 -) ac_f="$ac_tmp/stdin";;
22090 *) # Look for the file first in the build tree, then in the source tree
22091 # (if the path is not absolute). The absolute path cannot be DOS-style,
22092 # because $ac_f cannot contain ':'.
22093 test -f "$ac_f" ||
22094 case $ac_f in
22095 [\\/$]*) false;;
22096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22097 esac ||
22098 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22099 esac
22100 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22101 as_fn_append ac_file_inputs " '$ac_f'"
22102 done
22103
22104 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22105 # use $as_me), people would be surprised to read:
22106 # /* config.h. Generated by config.status. */
22107 configure_input='Generated from '`
22108 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22109 `' by configure.'
22110 if test x"$ac_file" != x-; then
22111 configure_input="$ac_file. $configure_input"
22112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22113 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22114 fi
22115 # Neutralize special characters interpreted by sed in replacement strings.
22116 case $configure_input in #(
22117 *\&* | *\|* | *\\* )
22118 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22120 *) ac_sed_conf_input=$configure_input;;
22121 esac
22122
22123 case $ac_tag in
22124 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22126 esac
22127 ;;
22128 esac
22129
22130 ac_dir=`$as_dirname -- "$ac_file" ||
22131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$ac_file" : 'X\(//\)[^/]' \| \
22133 X"$ac_file" : 'X\(//\)$' \| \
22134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22135 printf "%s\n" X"$ac_file" |
22136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22137 s//\1/
22138 q
22139 }
22140 /^X\(\/\/\)[^/].*/{
22141 s//\1/
22142 q
22143 }
22144 /^X\(\/\/\)$/{
22145 s//\1/
22146 q
22147 }
22148 /^X\(\/\).*/{
22149 s//\1/
22150 q
22151 }
22152 s/.*/./; q'`
22153 as_dir="$ac_dir"; as_fn_mkdir_p
22154 ac_builddir=.
22155
22156 case "$ac_dir" in
22157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22158 *)
22159 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22160 # A ".." for each directory in $ac_dir_suffix.
22161 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22162 case $ac_top_builddir_sub in
22163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22165 esac ;;
22166 esac
22167 ac_abs_top_builddir=$ac_pwd
22168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22169 # for backward compatibility:
22170 ac_top_builddir=$ac_top_build_prefix
22171
22172 case $srcdir in
22173 .) # We are building in place.
22174 ac_srcdir=.
22175 ac_top_srcdir=$ac_top_builddir_sub
22176 ac_abs_top_srcdir=$ac_pwd ;;
22177 [\\/]* | ?:[\\/]* ) # Absolute name.
22178 ac_srcdir=$srcdir$ac_dir_suffix;
22179 ac_top_srcdir=$srcdir
22180 ac_abs_top_srcdir=$srcdir ;;
22181 *) # Relative name.
22182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22183 ac_top_srcdir=$ac_top_build_prefix$srcdir
22184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22185 esac
22186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22187
22188
22189 case $ac_mode in
22190 :F)
22191 #
22192 # CONFIG_FILE
22193 #
22194
22195 case $INSTALL in
22196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22198 esac
22199 ac_MKDIR_P=$MKDIR_P
22200 case $MKDIR_P in
22201 [\\/$]* | ?:[\\/]* ) ;;
22202 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22203 esac
22204 _ACEOF
22205
22206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22207 # If the template does not know about datarootdir, expand it.
22208 # FIXME: This hack should be removed a few years after 2.60.
22209 ac_datarootdir_hack=; ac_datarootdir_seen=
22210 ac_sed_dataroot='
22211 /datarootdir/ {
22212 p
22213 q
22214 }
22215 /@datadir@/p
22216 /@docdir@/p
22217 /@infodir@/p
22218 /@localedir@/p
22219 /@mandir@/p'
22220 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22221 *datarootdir*) ac_datarootdir_seen=yes;;
22222 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22224 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22225 _ACEOF
22226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22227 ac_datarootdir_hack='
22228 s&@datadir@&$datadir&g
22229 s&@docdir@&$docdir&g
22230 s&@infodir@&$infodir&g
22231 s&@localedir@&$localedir&g
22232 s&@mandir@&$mandir&g
22233 s&\\\${datarootdir}&$datarootdir&g' ;;
22234 esac
22235 _ACEOF
22236
22237 # Neutralize VPATH when '$srcdir' = '.'.
22238 # Shell code in configure.ac might set extrasub.
22239 # FIXME: do we really want to maintain this feature?
22240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22241 ac_sed_extra="$ac_vpsub
22242 $extrasub
22243 _ACEOF
22244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22245 :t
22246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22247 s|@configure_input@|$ac_sed_conf_input|;t t
22248 s&@top_builddir@&$ac_top_builddir_sub&;t t
22249 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22250 s&@srcdir@&$ac_srcdir&;t t
22251 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22252 s&@top_srcdir@&$ac_top_srcdir&;t t
22253 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22254 s&@builddir@&$ac_builddir&;t t
22255 s&@abs_builddir@&$ac_abs_builddir&;t t
22256 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22257 s&@INSTALL@&$ac_INSTALL&;t t
22258 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22259 $ac_datarootdir_hack
22260 "
22261 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22262 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22263
22264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22265 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22267 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22269 which seems to be undefined. Please make sure it is defined" >&5
22270 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22271 which seems to be undefined. Please make sure it is defined" >&2;}
22272
22273 rm -f "$ac_tmp/stdin"
22274 case $ac_file in
22275 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22276 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22277 esac \
22278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22279 ;;
22280 :H)
22281 #
22282 # CONFIG_HEADER
22283 #
22284 if test x"$ac_file" != x-; then
22285 {
22286 printf "%s\n" "/* $configure_input */" >&1 \
22287 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22288 } >"$ac_tmp/config.h" \
22289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22290 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22292 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22293 else
22294 rm -f "$ac_file"
22295 mv "$ac_tmp/config.h" "$ac_file" \
22296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22297 fi
22298 else
22299 printf "%s\n" "/* $configure_input */" >&1 \
22300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22301 || as_fn_error $? "could not create -" "$LINENO" 5
22302 fi
22303 # Compute "$ac_file"'s index in $config_headers.
22304 _am_arg="$ac_file"
22305 _am_stamp_count=1
22306 for _am_header in $config_headers :; do
22307 case $_am_header in
22308 $_am_arg | $_am_arg:* )
22309 break ;;
22310 * )
22311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22312 esac
22313 done
22314 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22315 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22316 X"$_am_arg" : 'X\(//\)[^/]' \| \
22317 X"$_am_arg" : 'X\(//\)$' \| \
22318 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22319 printf "%s\n" X"$_am_arg" |
22320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22321 s//\1/
22322 q
22323 }
22324 /^X\(\/\/\)[^/].*/{
22325 s//\1/
22326 q
22327 }
22328 /^X\(\/\/\)$/{
22329 s//\1/
22330 q
22331 }
22332 /^X\(\/\).*/{
22333 s//\1/
22334 q
22335 }
22336 s/.*/./; q'`/stamp-h$_am_stamp_count
22337 ;;
22338
22339 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22340 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22341 ;;
22342 esac
22343
22344
22345 case $ac_file$ac_mode in
22346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22347 # Older Autoconf quotes --file arguments for eval, but not when files
22348 # are listed without --file. Let's play safe and only enable the eval
22349 # if we detect the quoting.
22350 # TODO: see whether this extra hack can be removed once we start
22351 # requiring Autoconf 2.70 or later.
22352 case $CONFIG_FILES in #(
22353 *\'*) :
22354 eval set x "$CONFIG_FILES" ;; #(
22355 *) :
22356 set x $CONFIG_FILES ;; #(
22357 *) :
22358 ;;
22359 esac
22360 shift
22361 # Used to flag and report bootstrapping failures.
22362 am_rc=0
22363 for am_mf
22364 do
22365 # Strip MF so we end up with the name of the file.
22366 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22367 # Check whether this is an Automake generated Makefile which includes
22368 # dependency-tracking related rules and includes.
22369 # Grep'ing the whole file directly is not great: AIX grep has a line
22370 # limit of 2048, but all sed's we know have understand at least 4000.
22371 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22372 || continue
22373 am_dirpart=`$as_dirname -- "$am_mf" ||
22374 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22375 X"$am_mf" : 'X\(//\)[^/]' \| \
22376 X"$am_mf" : 'X\(//\)$' \| \
22377 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22378 printf "%s\n" X"$am_mf" |
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22380 s//\1/
22381 q
22382 }
22383 /^X\(\/\/\)[^/].*/{
22384 s//\1/
22385 q
22386 }
22387 /^X\(\/\/\)$/{
22388 s//\1/
22389 q
22390 }
22391 /^X\(\/\).*/{
22392 s//\1/
22393 q
22394 }
22395 s/.*/./; q'`
22396 am_filepart=`$as_basename -- "$am_mf" ||
22397 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22398 X"$am_mf" : 'X\(//\)$' \| \
22399 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22400 printf "%s\n" X/"$am_mf" |
22401 sed '/^.*\/\([^/][^/]*\)\/*$/{
22402 s//\1/
22403 q
22404 }
22405 /^X\/\(\/\/\)$/{
22406 s//\1/
22407 q
22408 }
22409 /^X\/\(\/\).*/{
22410 s//\1/
22411 q
22412 }
22413 s/.*/./; q'`
22414 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22415 && sed -e '/# am--include-marker/d' "$am_filepart" \
22416 | $MAKE -f - am--depfiles" >&5
22417 (cd "$am_dirpart" \
22418 && sed -e '/# am--include-marker/d' "$am_filepart" \
22419 | $MAKE -f - am--depfiles) >&5 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } || am_rc=$?
22423 done
22424 if test $am_rc -ne 0; then
22425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22426 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22427 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22428 for automatic dependency tracking. If GNU make was not used, consider
22429 re-running the configure script with MAKE=\"gmake\" (or whatever is
22430 necessary). You can also try re-running configure with the
22431 '--disable-dependency-tracking' option to at least be able to build
22432 the package (albeit without support for automatic dependency tracking).
22433 See 'config.log' for more details" "$LINENO" 5; }
22434 fi
22435 { am_dirpart=; unset am_dirpart;}
22436 { am_filepart=; unset am_filepart;}
22437 { am_mf=; unset am_mf;}
22438 { am_rc=; unset am_rc;}
22439 rm -f conftest-deps.mk
22440 }
22441 ;;
22442 "libtool":C)
22443
22444 # See if we are running on zsh, and set the options that allow our
22445 # commands through without removal of \ escapes.
22446 if test -n "${ZSH_VERSION+set}"; then
22447 setopt NO_GLOB_SUBST
22448 fi
22449
22450 cfgfile=${ofile}T
22451 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22452 $RM "$cfgfile"
22453
22454 cat <<_LT_EOF >> "$cfgfile"
22455 #! $SHELL
22456 # Generated automatically by $as_me ($PACKAGE) $VERSION
22457 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22458
22459 # Provide generalized library-building support services.
22460 # Written by Gordon Matzigkeit, 1996
22461
22462 # Copyright (C) 2024 Free Software Foundation, Inc.
22463 # This is free software; see the source for copying conditions. There is NO
22464 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22465
22466 # GNU Libtool is free software; you can redistribute it and/or modify
22467 # it under the terms of the GNU General Public License as published by
22468 # the Free Software Foundation; either version 2 of the License, or
22469 # (at your option) any later version.
22470 #
22471 # As a special exception to the GNU General Public License, if you
22472 # distribute this file as part of a program or library that is built
22473 # using GNU Libtool, you may include this file under the same
22474 # distribution terms that you use for the rest of that program.
22475 #
22476 # GNU Libtool is distributed in the hope that it will be useful, but
22477 # WITHOUT ANY WARRANTY; without even the implied warranty of
22478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22479 # GNU General Public License for more details.
22480 #
22481 # You should have received a copy of the GNU General Public License
22482 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22483
22484
22485 # The names of the tagged configurations supported by this script.
22486 available_tags=''
22487
22488 # Configured defaults for sys_lib_dlsearch_path munging.
22489 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22490
22491 # ### BEGIN LIBTOOL CONFIG
22492
22493 # Which release of libtool.m4 was used?
22494 macro_version=$macro_version
22495 macro_revision=$macro_revision
22496
22497 # Whether or not to build shared libraries.
22498 build_libtool_libs=$enable_shared
22499
22500 # Whether or not to build static libraries.
22501 build_old_libs=$enable_static
22502
22503 # What type of objects to build.
22504 pic_mode=$pic_mode
22505
22506 # Whether or not to optimize for fast installation.
22507 fast_install=$enable_fast_install
22508
22509 # Shared archive member basename,for filename based shared library versioning on AIX.
22510 shared_archive_member_spec=$shared_archive_member_spec
22511
22512 # Shell to use when invoking shell scripts.
22513 SHELL=$lt_SHELL
22514
22515 # An echo program that protects backslashes.
22516 ECHO=$lt_ECHO
22517
22518 # The PATH separator for the build system.
22519 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22520
22521 # The host system.
22522 host_alias=$host_alias
22523 host=$host
22524 host_os=$host_os
22525
22526 # The build system.
22527 build_alias=$build_alias
22528 build=$build
22529 build_os=$build_os
22530
22531 # A sed program that does not truncate output.
22532 SED=$lt_SED
22533
22534 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22535 Xsed="\$SED -e 1s/^X//"
22536
22537 # A grep program that handles long lines.
22538 GREP=$lt_GREP
22539
22540 # An ERE matcher.
22541 EGREP=$lt_EGREP
22542
22543 # A literal string matcher.
22544 FGREP=$lt_FGREP
22545
22546 # A BSD- or MS-compatible name lister.
22547 NM=$lt_NM
22548
22549 # Whether we need soft or hard links.
22550 LN_S=$lt_LN_S
22551
22552 # What is the maximum length of a command?
22553 max_cmd_len=$max_cmd_len
22554
22555 # Object file suffix (normally "o").
22556 objext=$ac_objext
22557
22558 # Executable file suffix (normally "").
22559 exeext=$exeext
22560
22561 # whether the shell understands "unset".
22562 lt_unset=$lt_unset
22563
22564 # turn spaces into newlines.
22565 SP2NL=$lt_lt_SP2NL
22566
22567 # turn newlines into spaces.
22568 NL2SP=$lt_lt_NL2SP
22569
22570 # convert \$build file names to \$host format.
22571 to_host_file_cmd=$lt_cv_to_host_file_cmd
22572
22573 # convert \$build files to toolchain format.
22574 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22575
22576 # A file(cmd) program that detects file types.
22577 FILECMD=$lt_FILECMD
22578
22579 # An object symbol dumper.
22580 OBJDUMP=$lt_OBJDUMP
22581
22582 # Method to check whether dependent libraries are shared objects.
22583 deplibs_check_method=$lt_deplibs_check_method
22584
22585 # Command to use when deplibs_check_method = "file_magic".
22586 file_magic_cmd=$lt_file_magic_cmd
22587
22588 # How to find potential files when deplibs_check_method = "file_magic".
22589 file_magic_glob=$lt_file_magic_glob
22590
22591 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22592 want_nocaseglob=$lt_want_nocaseglob
22593
22594 # DLL creation program.
22595 DLLTOOL=$lt_DLLTOOL
22596
22597 # Command to associate shared and link libraries.
22598 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22599
22600 # The archiver.
22601 AR=$lt_AR
22602
22603 # Flags to create an archive (by configure).
22604 lt_ar_flags=$lt_ar_flags
22605
22606 # Flags to create an archive.
22607 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22608
22609 # How to feed a file listing to the archiver.
22610 archiver_list_spec=$lt_archiver_list_spec
22611
22612 # A symbol stripping program.
22613 STRIP=$lt_STRIP
22614
22615 # Commands used to install an old-style archive.
22616 RANLIB=$lt_RANLIB
22617 old_postinstall_cmds=$lt_old_postinstall_cmds
22618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22619
22620 # Whether to use a lock for old archive extraction.
22621 lock_old_archive_extraction=$lock_old_archive_extraction
22622
22623 # A C compiler.
22624 LTCC=$lt_CC
22625
22626 # LTCC compiler flags.
22627 LTCFLAGS=$lt_CFLAGS
22628
22629 # Take the output of nm and produce a listing of raw symbols and C names.
22630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22631
22632 # Transform the output of nm in a proper C declaration.
22633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22634
22635 # Transform the output of nm into a list of symbols to manually relocate.
22636 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22637
22638 # Transform the output of nm in a C name address pair.
22639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22640
22641 # Transform the output of nm in a C name address pair when lib prefix is needed.
22642 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22643
22644 # The name lister interface.
22645 nm_interface=$lt_lt_cv_nm_interface
22646
22647 # Specify filename containing input files for \$NM.
22648 nm_file_list_spec=$lt_nm_file_list_spec
22649
22650 # The root where to search for dependent libraries,and where our libraries should be installed.
22651 lt_sysroot=$lt_sysroot
22652
22653 # Command to truncate a binary pipe.
22654 lt_truncate_bin=$lt_lt_cv_truncate_bin
22655
22656 # The name of the directory that contains temporary libtool files.
22657 objdir=$objdir
22658
22659 # Used to examine libraries when file_magic_cmd begins with "file".
22660 MAGIC_CMD=$MAGIC_CMD
22661
22662 # Must we lock files when doing compilation?
22663 need_locks=$lt_need_locks
22664
22665 # Manifest tool.
22666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22667
22668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22669 DSYMUTIL=$lt_DSYMUTIL
22670
22671 # Tool to change global to local symbols on Mac OS X.
22672 NMEDIT=$lt_NMEDIT
22673
22674 # Tool to manipulate fat objects and archives on Mac OS X.
22675 LIPO=$lt_LIPO
22676
22677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22678 OTOOL=$lt_OTOOL
22679
22680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22681 OTOOL64=$lt_OTOOL64
22682
22683 # Old archive suffix (normally "a").
22684 libext=$libext
22685
22686 # Shared library suffix (normally ".so").
22687 shrext_cmds=$lt_shrext_cmds
22688
22689 # The commands to extract the exported symbol list from a shared archive.
22690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22691
22692 # Variables whose values should be saved in libtool wrapper scripts and
22693 # restored at link time.
22694 variables_saved_for_relink=$lt_variables_saved_for_relink
22695
22696 # Do we need the "lib" prefix for modules?
22697 need_lib_prefix=$need_lib_prefix
22698
22699 # Do we need a version for libraries?
22700 need_version=$need_version
22701
22702 # Library versioning type.
22703 version_type=$version_type
22704
22705 # Shared library runtime path variable.
22706 runpath_var=$runpath_var
22707
22708 # Shared library path variable.
22709 shlibpath_var=$shlibpath_var
22710
22711 # Is shlibpath searched before the hard-coded library search path?
22712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22713
22714 # Format of library name prefix.
22715 libname_spec=$lt_libname_spec
22716
22717 # List of archive names. First name is the real one, the rest are links.
22718 # The last name is the one that the linker finds with -lNAME
22719 library_names_spec=$lt_library_names_spec
22720
22721 # The coded name of the library, if different from the real name.
22722 soname_spec=$lt_soname_spec
22723
22724 # Permission mode override for installation of shared libraries.
22725 install_override_mode=$lt_install_override_mode
22726
22727 # Command to use after installation of a shared archive.
22728 postinstall_cmds=$lt_postinstall_cmds
22729
22730 # Command to use after uninstallation of a shared archive.
22731 postuninstall_cmds=$lt_postuninstall_cmds
22732
22733 # Commands used to finish a libtool library installation in a directory.
22734 finish_cmds=$lt_finish_cmds
22735
22736 # As "finish_cmds", except a single script fragment to be evaled but
22737 # not shown.
22738 finish_eval=$lt_finish_eval
22739
22740 # Whether we should hardcode library paths into libraries.
22741 hardcode_into_libs=$hardcode_into_libs
22742
22743 # Compile-time system search path for libraries.
22744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22745
22746 # Detected run-time system search path for libraries.
22747 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22748
22749 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22750 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22751
22752 # Whether dlopen is supported.
22753 dlopen_support=$enable_dlopen
22754
22755 # Whether dlopen of programs is supported.
22756 dlopen_self=$enable_dlopen_self
22757
22758 # Whether dlopen of statically linked programs is supported.
22759 dlopen_self_static=$enable_dlopen_self_static
22760
22761 # Commands to strip libraries.
22762 old_striplib=$lt_old_striplib
22763 striplib=$lt_striplib
22764
22765
22766 # The linker used to build libraries.
22767 LD=$lt_LD
22768
22769 # How to create reloadable object files.
22770 reload_flag=$lt_reload_flag
22771 reload_cmds=$lt_reload_cmds
22772
22773 # Commands used to build an old-style archive.
22774 old_archive_cmds=$lt_old_archive_cmds
22775
22776 # A language specific compiler.
22777 CC=$lt_compiler
22778
22779 # Is the compiler the GNU compiler?
22780 with_gcc=$GCC
22781
22782 # Compiler flag to turn off builtin functions.
22783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22784
22785 # Additional compiler flags for building library objects.
22786 pic_flag=$lt_lt_prog_compiler_pic
22787
22788 # How to pass a linker flag through the compiler.
22789 wl=$lt_lt_prog_compiler_wl
22790
22791 # Compiler flag to prevent dynamic linking.
22792 link_static_flag=$lt_lt_prog_compiler_static
22793
22794 # Does compiler simultaneously support -c and -o options?
22795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22796
22797 # Whether or not to add -lc for building shared libraries.
22798 build_libtool_need_lc=$archive_cmds_need_lc
22799
22800 # Whether or not to disallow shared libs when runtime libs are static.
22801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22802
22803 # Compiler flag to allow reflexive dlopens.
22804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22805
22806 # Compiler flag to generate shared objects directly from archives.
22807 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22808
22809 # Whether the compiler copes with passing no objects directly.
22810 compiler_needs_object=$lt_compiler_needs_object
22811
22812 # Create an old-style archive from a shared archive.
22813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22814
22815 # Create a temporary old-style archive to link instead of a shared archive.
22816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22817
22818 # Commands used to build a shared archive.
22819 archive_cmds=$lt_archive_cmds
22820 archive_expsym_cmds=$lt_archive_expsym_cmds
22821
22822 # Commands used to build a loadable module if different from building
22823 # a shared archive.
22824 module_cmds=$lt_module_cmds
22825 module_expsym_cmds=$lt_module_expsym_cmds
22826
22827 # Whether we are building with GNU ld or not.
22828 with_gnu_ld=$lt_with_gnu_ld
22829
22830 # Flag that allows shared libraries with undefined symbols to be built.
22831 allow_undefined_flag=$lt_allow_undefined_flag
22832
22833 # Flag that enforces no undefined symbols.
22834 no_undefined_flag=$lt_no_undefined_flag
22835
22836 # Flag to hardcode \$libdir into a binary during linking.
22837 # This must work even if \$libdir does not exist
22838 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22839
22840 # Whether we need a single "-rpath" flag with a separated argument.
22841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22842
22843 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22844 # DIR into the resulting binary.
22845 hardcode_direct=$hardcode_direct
22846
22847 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22848 # DIR into the resulting binary and the resulting library dependency is
22849 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22850 # library is relocated.
22851 hardcode_direct_absolute=$hardcode_direct_absolute
22852
22853 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22854 # into the resulting binary.
22855 hardcode_minus_L=$hardcode_minus_L
22856
22857 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22858 # into the resulting binary.
22859 hardcode_shlibpath_var=$hardcode_shlibpath_var
22860
22861 # Set to "yes" if building a shared library automatically hardcodes DIR
22862 # into the library and all subsequent libraries and executables linked
22863 # against it.
22864 hardcode_automatic=$hardcode_automatic
22865
22866 # Set to yes if linker adds runtime paths of dependent libraries
22867 # to runtime path list.
22868 inherit_rpath=$inherit_rpath
22869
22870 # Whether libtool must link a program against all its dependency libraries.
22871 link_all_deplibs=$link_all_deplibs
22872
22873 # Set to "yes" if exported symbols are required.
22874 always_export_symbols=$always_export_symbols
22875
22876 # The commands to list exported symbols.
22877 export_symbols_cmds=$lt_export_symbols_cmds
22878
22879 # Symbols that should not be listed in the preloaded symbols.
22880 exclude_expsyms=$lt_exclude_expsyms
22881
22882 # Symbols that must always be exported.
22883 include_expsyms=$lt_include_expsyms
22884
22885 # Commands necessary for linking programs (against libraries) with templates.
22886 prelink_cmds=$lt_prelink_cmds
22887
22888 # Commands necessary for finishing linking programs.
22889 postlink_cmds=$lt_postlink_cmds
22890
22891 # Specify filename containing input files.
22892 file_list_spec=$lt_file_list_spec
22893
22894 # How to hardcode a shared library path into an executable.
22895 hardcode_action=$hardcode_action
22896
22897 # ### END LIBTOOL CONFIG
22898
22899 _LT_EOF
22900
22901 cat <<'_LT_EOF' >> "$cfgfile"
22902
22903 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22904
22905 # func_munge_path_list VARIABLE PATH
22906 # -----------------------------------
22907 # VARIABLE is name of variable containing _space_ separated list of
22908 # directories to be munged by the contents of PATH, which is string
22909 # having a format:
22910 # "DIR[:DIR]:"
22911 # string "DIR[ DIR]" will be prepended to VARIABLE
22912 # ":DIR[:DIR]"
22913 # string "DIR[ DIR]" will be appended to VARIABLE
22914 # "DIRP[:DIRP]::[DIRA:]DIRA"
22915 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22916 # "DIRA[ DIRA]" will be appended to VARIABLE
22917 # "DIR[:DIR]"
22918 # VARIABLE will be replaced by "DIR[ DIR]"
22919 func_munge_path_list ()
22920 {
22921 case x$2 in
22922 x)
22923 ;;
22924 *:)
22925 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22926 ;;
22927 x:*)
22928 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22929 ;;
22930 *::*)
22931 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22932 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22933 ;;
22934 *)
22935 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22936 ;;
22937 esac
22938 }
22939
22940
22941 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22942 func_cc_basename ()
22943 {
22944 for cc_temp in $*""; do
22945 case $cc_temp in
22946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22948 \-*) ;;
22949 *) break;;
22950 esac
22951 done
22952 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22953 }
22954
22955
22956 # ### END FUNCTIONS SHARED WITH CONFIGURE
22957
22958 _LT_EOF
22959
22960 case $host_os in
22961 aix3*)
22962 cat <<\_LT_EOF >> "$cfgfile"
22963 # AIX sometimes has problems with the GCC collect2 program. For some
22964 # reason, if we set the COLLECT_NAMES environment variable, the problems
22965 # vanish in a puff of smoke.
22966 if test set != "${COLLECT_NAMES+set}"; then
22967 COLLECT_NAMES=
22968 export COLLECT_NAMES
22969 fi
22970 _LT_EOF
22971 ;;
22972 esac
22973
22974
22975
22976 ltmain=$ac_aux_dir/ltmain.sh
22977
22978
22979 # We use sed instead of cat because bash on DJGPP gets confused if
22980 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22981 # text mode, it properly converts lines to CR/LF. This bash problem
22982 # is reportedly fixed, but why not run on old versions too?
22983 $SED '$q' "$ltmain" >> "$cfgfile" \
22984 || (rm -f "$cfgfile"; exit 1)
22985
22986 mv -f "$cfgfile" "$ofile" ||
22987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22988 chmod +x "$ofile"
22989
22990 ;;
22991
22992 esac
22993 done # for ac_tag
22994
22995
22996 as_fn_exit 0
22997 _ACEOF
22998 ac_clean_files=$ac_clean_files_save
22999
23000 test $ac_write_fail = 0 ||
23001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23002
23003
23004 # configure is writing to config.log, and then calls config.status.
23005 # config.status does its own redirection, appending to config.log.
23006 # Unfortunately, on DOS this fails, as config.log is still kept open
23007 # by configure, so config.status won't be able to write to it; its
23008 # output is simply discarded. So we exec the FD to /dev/null,
23009 # effectively closing config.log, so it can be properly (re)opened and
23010 # appended to by config.status. When coming back to configure, we
23011 # need to make the FD available again.
23012 if test "$no_create" != yes; then
23013 ac_cs_success=:
23014 ac_config_status_args=
23015 test "$silent" = yes &&
23016 ac_config_status_args="$ac_config_status_args --quiet"
23017 exec 5>/dev/null
23018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23019 exec 5>>config.log
23020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23021 # would make configure fail if this is the last instruction.
23022 $ac_cs_success || as_fn_exit 1
23023 fi
23024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23026 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23027 fi
23028
23029
23030