configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXcursor 1.2.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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/libxcursor/-/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='libXcursor'
617 PACKAGE_TARNAME='libXcursor'
618 PACKAGE_VERSION='1.2.2'
619 PACKAGE_STRING='libXcursor 1.2.2'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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 LINT_FALSE
661 LINT_TRUE
662 LINT_FLAGS
663 LINT
664 XCURSOR_LIBS
665 XCURSOR_CFLAGS
666 XCURSORPATH
667 ICONDIR
668 MAN_SUBSTS
669 XORG_MAN_PAGE
670 ADMIN_MAN_DIR
671 DRIVER_MAN_DIR
672 MISC_MAN_DIR
673 FILE_MAN_DIR
674 LIB_MAN_DIR
675 APP_MAN_DIR
676 ADMIN_MAN_SUFFIX
677 DRIVER_MAN_SUFFIX
678 MISC_MAN_SUFFIX
679 FILE_MAN_SUFFIX
680 LIB_MAN_SUFFIX
681 APP_MAN_SUFFIX
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 ac_ct_AR
699 AR
700 DLLTOOL
701 OBJDUMP
702 FILECMD
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 CSCOPE
726 ETAGS
727 CTAGS
728 am__fastdepCC_FALSE
729 am__fastdepCC_TRUE
730 CCDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 am__include
736 DEPDIR
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 runstatedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL
806 am__quote'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_dependency_tracking
811 enable_silent_rules
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_aix_soname
817 with_gnu_ld
818 with_sysroot
819 enable_libtool_lock
820 enable_selective_werror
821 enable_strict_compilation
822 with_icondir
823 with_cursorpath
824 with_lint
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 LT_SYS_LIBRARY_PATH
835 PKG_CONFIG
836 PKG_CONFIG_PATH
837 PKG_CONFIG_LIBDIR
838 XCURSOR_CFLAGS
839 XCURSOR_LIBS
840 LINT
841 LINT_FLAGS'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: '$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: '$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -runstatedir | --runstatedir | --runstatedi | --runstated \
1132 | --runstate | --runstat | --runsta | --runst | --runs \
1133 | --run | --ru | --r)
1134 ac_prev=runstatedir ;;
1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137 | --run=* | --ru=* | --r=*)
1138 runstatedir=$ac_optarg ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: '$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: '$ac_useropt'"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: '$ac_option'
1236 Try '$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir runstatedir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: '$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 printf "%s\n" X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 'configure' configures libXcursor 1.2.2 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print 'checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for '--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or '..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, 'make install' will install all the files in
1417 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than '$ac_default_prefix' using '--prefix',
1419 for instance '--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcursor]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of libXcursor 1.2.2:";;
1462 esac
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --enable-silent-rules less verbose build output (undo: "make V=1")
1474 --disable-silent-rules verbose build output (undo: "make V=0")
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-selective-werror
1481 Turn off selective compiler errors. (default:
1482 enabled)
1483 --enable-strict-compilation
1484 Enable all warnings from compiler and make them
1485 errors (default: disabled)
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-aix-soname=aix|svr4|both
1493 shared library versioning (aka "SONAME") variant to
1494 provide on AIX, [default=aix].
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1497 compiler's sysroot if not specified).
1498 --with-icondir=<path> Set default icon directory (default:
1499 ${datadir}/icons)
1500 --with-cursorpath=<paths>
1501 Set default search path for cursors
1502 --with-lint Use a lint-style source code checker (default:
1503 disabled)
1504
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1513 LT_SYS_LIBRARY_PATH
1514 User-defined run-time library search path.
1515 PKG_CONFIG path to pkg-config utility
1516 PKG_CONFIG_PATH
1517 directories to add to pkg-config's search path
1518 PKG_CONFIG_LIBDIR
1519 path overriding pkg-config's built-in search path
1520 XCURSOR_CFLAGS
1521 C compiler flags for XCURSOR, overriding pkg-config
1522 XCURSOR_LIBS
1523 linker flags for XCURSOR, overriding pkg-config
1524 LINT Path to a lint-style command
1525 LINT_FLAGS Flags for the lint-style command
1526
1527 Use these variables to override the choices made by 'configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for configure.gnu first; this name is used for a wrapper for
1577 # Metaconfig's "Configure" on case-insensitive file systems.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 libXcursor configure 1.2.2
1595 generated by GNU Autoconf 2.72
1596
1597 Copyright (C) 2023 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1602 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest.beam
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 printf "%s\n" "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext
1634 then :
1635 ac_retval=0
1636 else case e in #(
1637 e) printf "%s\n" "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1 ;;
1641 esac
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_compile
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 printf %s "checking for $2... " >&6; }
1657 if eval test \${$3+y}
1658 then :
1659 printf %s "(cached) " >&6
1660 else case e in #(
1661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 $4
1664 #include <$2>
1665 _ACEOF
1666 if ac_fn_c_try_compile "$LINENO"
1667 then :
1668 eval "$3=yes"
1669 else case e in #(
1670 e) eval "$3=no" ;;
1671 esac
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1674 esac
1675 fi
1676 eval ac_res=\$$3
1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 printf "%s\n" "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 printf "%s\n" "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest$ac_exeext
1711 }
1712 then :
1713 ac_retval=0
1714 else case e in #(
1715 e) printf "%s\n" "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1 ;;
1719 esac
1720 fi
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_link
1730
1731 # ac_fn_c_check_func LINENO FUNC VAR
1732 # ----------------------------------
1733 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1734 ac_fn_c_check_func ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 printf %s "checking for $2... " >&6; }
1739 if eval test \${$3+y}
1740 then :
1741 printf %s "(cached) " >&6
1742 else case e in #(
1743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (void); below. */
1751
1752 #include <limits.h>
1753 #undef $2
1754
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 (void);
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1768
1769 int
1770 main (void)
1771 {
1772 return $2 ();
1773 ;
1774 return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"
1778 then :
1779 eval "$3=yes"
1780 else case e in #(
1781 e) eval "$3=no" ;;
1782 esac
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785 conftest$ac_exeext conftest.$ac_ext ;;
1786 esac
1787 fi
1788 eval ac_res=\$$3
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 printf "%s\n" "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_func
1794
1795 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1796 # ------------------------------------------------------------------
1797 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1798 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1799 ac_fn_check_decl ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 as_decl_name=`echo $2|sed 's/ *(.*//'`
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1804 printf %s "checking whether $as_decl_name is declared... " >&6; }
1805 if eval test \${$3+y}
1806 then :
1807 printf %s "(cached) " >&6
1808 else case e in #(
1809 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1810 eval ac_save_FLAGS=\$$6
1811 as_fn_append $6 " $5"
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 int
1816 main (void)
1817 {
1818 #ifndef $as_decl_name
1819 #ifdef __cplusplus
1820 (void) $as_decl_use;
1821 #else
1822 (void) $as_decl_name;
1823 #endif
1824 #endif
1825
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"
1831 then :
1832 eval "$3=yes"
1833 else case e in #(
1834 e) eval "$3=no" ;;
1835 esac
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1838 eval $6=\$ac_save_FLAGS
1839 ;;
1840 esac
1841 fi
1842 eval ac_res=\$$3
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 printf "%s\n" "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_check_decl
1848 ac_configure_args_raw=
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 *\'*)
1853 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 esac
1855 as_fn_append ac_configure_args_raw " '$ac_arg'"
1856 done
1857
1858 case $ac_configure_args_raw in
1859 *$as_nl*)
1860 ac_safe_unquote= ;;
1861 *)
1862 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1863 ac_unsafe_a="$ac_unsafe_z#~"
1864 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866 esac
1867
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1871
1872 It was created by libXcursor $as_me 1.2.2, which was
1873 generated by GNU Autoconf 2.72. Invocation command line was
1874
1875 $ $0$ac_configure_args_raw
1876
1877 _ACEOF
1878 exec 5>>config.log
1879 {
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1884
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901
1902 _ASUNAME
1903
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 case $as_dir in #(((
1909 '') as_dir=./ ;;
1910 */) ;;
1911 *) as_dir=$as_dir/ ;;
1912 esac
1913 printf "%s\n" "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1916
1917 } >&5
1918
1919 cat >&5 <<_ACEOF
1920
1921
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1925
1926 _ACEOF
1927
1928
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1939 do
1940 for ac_arg
1941 do
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 2)
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1965 ;;
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1968 fi
1969 as_fn_append ac_configure_args " '$ac_arg'"
1970 ;;
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1976
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Sanitize IFS.
1984 IFS=" "" $as_nl"
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 printf "%s\n" "## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##"
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994 (
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022 )
2023 echo
2024
2025 printf "%s\n" "## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##"
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 printf "%s\n" "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 printf "%s\n" "## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##"
2043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
2056 printf "%s\n" "## ----------- ##
2057 ## confdefs.h. ##
2058 ## ----------- ##"
2059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
2064 printf "%s\n" "$as_me: caught signal $ac_signal"
2065 printf "%s\n" "$as_me: exit $exit_status"
2066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070 ' 0
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 done
2074 ac_signal=0
2075
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2078
2079 printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081 # Predefined preprocessor variables.
2082
2083 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 if test -n "$CONFIG_SITE"; then
2099 ac_site_files="$CONFIG_SITE"
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102 else
2103 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104 fi
2105
2106 for ac_site_file in $ac_site_files
2107 do
2108 case $ac_site_file in #(
2109 */*) :
2110 ;; #(
2111 *) :
2112 ac_site_file=./$ac_site_file ;;
2113 esac
2114 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2120 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See 'config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2144 # Test code for whether the C compiler supports C89 (global declarations)
2145 ac_c_conftest_c89_globals='
2146 /* Does the compiler advertise C89 conformance?
2147 Do not test the value of __STDC__, because some compilers set it to 0
2148 while being otherwise adequately conformant. */
2149 #if !defined __STDC__
2150 # error "Compiler does not advertise C89 conformance"
2151 #endif
2152
2153 #include <stddef.h>
2154 #include <stdarg.h>
2155 struct stat;
2156 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2157 struct buf { int x; };
2158 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (char **p, int i)
2160 {
2161 return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171 }
2172
2173 /* C89 style stringification. */
2174 #define noexpand_stringify(a) #a
2175 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2176
2177 /* C89 style token pasting. Exercises some of the corner cases that
2178 e.g. old MSVC gets wrong, but not very hard. */
2179 #define noexpand_concat(a,b) a##b
2180 #define expand_concat(a,b) noexpand_concat(a,b)
2181 extern int vA;
2182 extern int vbee;
2183 #define aye A
2184 #define bee B
2185 int *pvA = &expand_concat(v,aye);
2186 int *pvbee = &noexpand_concat(v,bee);
2187
2188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2189 function prototypes and stuff, but not \xHH hex character constants.
2190 These do not provoke an error unfortunately, instead are silently treated
2191 as an "x". The following induces an error, until -std is added to get
2192 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2193 array size at least. It is necessary to write \x00 == 0 to get something
2194 that is true only with -std. */
2195 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2196
2197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2198 inside strings and character constants. */
2199 #define FOO(x) '\''x'\''
2200 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2201
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2206 int, int);'
2207
2208 # Test code for whether the C compiler supports C89 (body of main).
2209 ac_c_conftest_c89_main='
2210 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2211 '
2212
2213 # Test code for whether the C compiler supports C99 (global declarations)
2214 ac_c_conftest_c99_globals='
2215 /* Does the compiler advertise C99 conformance? */
2216 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2217 # error "Compiler does not advertise C99 conformance"
2218 #endif
2219
2220 // See if C++-style comments work.
2221
2222 #include <stdbool.h>
2223 extern int puts (const char *);
2224 extern int printf (const char *, ...);
2225 extern int dprintf (int, const char *, ...);
2226 extern void *malloc (size_t);
2227 extern void free (void *);
2228
2229 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2230 // dprintf is used instead of fprintf to avoid needing to declare
2231 // FILE and stderr.
2232 #define debug(...) dprintf (2, __VA_ARGS__)
2233 #define showlist(...) puts (#__VA_ARGS__)
2234 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235 static void
2236 test_varargs_macros (void)
2237 {
2238 int x = 1234;
2239 int y = 5678;
2240 debug ("Flag");
2241 debug ("X = %d\n", x);
2242 showlist (The first, second, and third items.);
2243 report (x>y, "x is %d but y is %d", x, y);
2244 }
2245
2246 // Check long long types.
2247 #define BIG64 18446744073709551615ull
2248 #define BIG32 4294967295ul
2249 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250 #if !BIG_OK
2251 #error "your preprocessor is broken"
2252 #endif
2253 #if BIG_OK
2254 #else
2255 #error "your preprocessor is broken"
2256 #endif
2257 static long long int bignum = -9223372036854775807LL;
2258 static unsigned long long int ubignum = BIG64;
2259
2260 struct incomplete_array
2261 {
2262 int datasize;
2263 double data[];
2264 };
2265
2266 struct named_init {
2267 int number;
2268 const wchar_t *name;
2269 double average;
2270 };
2271
2272 typedef const char *ccp;
2273
2274 static inline int
2275 test_restrict (ccp restrict text)
2276 {
2277 // Iterate through items via the restricted pointer.
2278 // Also check for declarations in for loops.
2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280 continue;
2281 return 0;
2282 }
2283
2284 // Check varargs and va_copy.
2285 static bool
2286 test_varargs (const char *format, ...)
2287 {
2288 va_list args;
2289 va_start (args, format);
2290 va_list args_copy;
2291 va_copy (args_copy, args);
2292
2293 const char *str = "";
2294 int number = 0;
2295 float fnumber = 0;
2296
2297 while (*format)
2298 {
2299 switch (*format++)
2300 {
2301 case '\''s'\'': // string
2302 str = va_arg (args_copy, const char *);
2303 break;
2304 case '\''d'\'': // int
2305 number = va_arg (args_copy, int);
2306 break;
2307 case '\''f'\'': // float
2308 fnumber = va_arg (args_copy, double);
2309 break;
2310 default:
2311 break;
2312 }
2313 }
2314 va_end (args_copy);
2315 va_end (args);
2316
2317 return *str && number && fnumber;
2318 }
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (body of main).
2322 ac_c_conftest_c99_main='
2323 // Check bool.
2324 _Bool success = false;
2325 success |= (argc != 0);
2326
2327 // Check restrict.
2328 if (test_restrict ("String literal") == 0)
2329 success = true;
2330 char *restrict newvar = "Another string";
2331
2332 // Check varargs.
2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334 test_varargs_macros ();
2335
2336 // Check flexible array members.
2337 struct incomplete_array *ia =
2338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2339 ia->datasize = 10;
2340 for (int i = 0; i < ia->datasize; ++i)
2341 ia->data[i] = i * 1.234;
2342 // Work around memory leak warnings.
2343 free (ia);
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 int dynamic_array[ni.number];
2355 dynamic_array[0] = argv[0][0];
2356 dynamic_array[ni.number - 1] = 543;
2357
2358 // work around unused variable warnings
2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360 || dynamic_array[ni.number - 1] != 543);
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (global declarations)
2364 ac_c_conftest_c11_globals='
2365 /* Does the compiler advertise C11 conformance? */
2366 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367 # error "Compiler does not advertise C11 conformance"
2368 #endif
2369
2370 // Check _Alignas.
2371 char _Alignas (double) aligned_as_double;
2372 char _Alignas (0) no_special_alignment;
2373 extern char aligned_as_int;
2374 char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376 // Check _Alignof.
2377 enum
2378 {
2379 int_alignment = _Alignof (int),
2380 int_array_alignment = _Alignof (int[100]),
2381 char_alignment = _Alignof (char)
2382 };
2383 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385 // Check _Noreturn.
2386 int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388 // Check _Static_assert.
2389 struct test_static_assert
2390 {
2391 int x;
2392 _Static_assert (sizeof (int) <= sizeof (long int),
2393 "_Static_assert does not work in struct");
2394 long int y;
2395 };
2396
2397 // Check UTF-8 literals.
2398 #define u8 syntax error!
2399 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401 // Check duplicate typedefs.
2402 typedef long *long_ptr;
2403 typedef long int *long_ptr;
2404 typedef long_ptr long_ptr;
2405
2406 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407 struct anonymous
2408 {
2409 union {
2410 struct { int i; int j; };
2411 struct { int k; long int l; } w;
2412 };
2413 int m;
2414 } v1;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (body of main).
2418 ac_c_conftest_c11_main='
2419 _Static_assert ((offsetof (struct anonymous, i)
2420 == offsetof (struct anonymous, w.k)),
2421 "Anonymous union alignment botch");
2422 v1.i = 2;
2423 v1.w.k = 5;
2424 ok |= v1.i != 5;
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (complete).
2428 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429 ${ac_c_conftest_c99_globals}
2430 ${ac_c_conftest_c11_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 ${ac_c_conftest_c99_main}
2438 ${ac_c_conftest_c11_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C99 (complete).
2444 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C89 (complete).
2458 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460 int
2461 main (int argc, char **argv)
2462 {
2463 int ok = 0;
2464 ${ac_c_conftest_c89_main}
2465 return ok;
2466 }
2467 "
2468
2469 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2470 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2471 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2472 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2473 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2474 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2475 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2476 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2477 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2478 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2479
2480 # Auxiliary files required by this configure script.
2481 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2482
2483 # Locations in which to look for auxiliary files.
2484 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2485
2486 # Search for a directory containing all of the required auxiliary files,
2487 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2488 # If we don't find one directory that contains all the files we need,
2489 # we report the set of missing files from the *first* directory in
2490 # $ac_aux_dir_candidates and give up.
2491 ac_missing_aux_files=""
2492 ac_first_candidate=:
2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 as_found=false
2496 for as_dir in $ac_aux_dir_candidates
2497 do
2498 IFS=$as_save_IFS
2499 case $as_dir in #(((
2500 '') as_dir=./ ;;
2501 */) ;;
2502 *) as_dir=$as_dir/ ;;
2503 esac
2504 as_found=:
2505
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2507 ac_aux_dir_found=yes
2508 ac_install_sh=
2509 for ac_aux in $ac_aux_files
2510 do
2511 # As a special case, if "install-sh" is required, that requirement
2512 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2513 # and $ac_install_sh is set appropriately for whichever one is found.
2514 if test x"$ac_aux" = x"install-sh"
2515 then
2516 if test -f "${as_dir}install-sh"; then
2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2518 ac_install_sh="${as_dir}install-sh -c"
2519 elif test -f "${as_dir}install.sh"; then
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2521 ac_install_sh="${as_dir}install.sh -c"
2522 elif test -f "${as_dir}shtool"; then
2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2524 ac_install_sh="${as_dir}shtool install -c"
2525 else
2526 ac_aux_dir_found=no
2527 if $ac_first_candidate; then
2528 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2529 else
2530 break
2531 fi
2532 fi
2533 else
2534 if test -f "${as_dir}${ac_aux}"; then
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2536 else
2537 ac_aux_dir_found=no
2538 if $ac_first_candidate; then
2539 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2540 else
2541 break
2542 fi
2543 fi
2544 fi
2545 done
2546 if test "$ac_aux_dir_found" = yes; then
2547 ac_aux_dir="$as_dir"
2548 break
2549 fi
2550 ac_first_candidate=false
2551
2552 as_found=false
2553 done
2554 IFS=$as_save_IFS
2555 if $as_found
2556 then :
2557
2558 else case e in #(
2559 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2560 esac
2561 fi
2562
2563
2564 # These three variables are undocumented and unsupported,
2565 # and are intended to be withdrawn in a future Autoconf release.
2566 # They can cause serious problems if a builder's source tree is in a directory
2567 # whose full name contains unusual characters.
2568 if test -f "${ac_aux_dir}config.guess"; then
2569 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2570 fi
2571 if test -f "${ac_aux_dir}config.sub"; then
2572 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2573 fi
2574 if test -f "$ac_aux_dir/configure"; then
2575 ac_configure="$SHELL ${ac_aux_dir}configure"
2576 fi
2577
2578 # Check that the precious variables saved in the cache have kept the same
2579 # value.
2580 ac_cache_corrupted=false
2581 for ac_var in $ac_precious_vars; do
2582 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583 eval ac_new_set=\$ac_env_${ac_var}_set
2584 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585 eval ac_new_val=\$ac_env_${ac_var}_value
2586 case $ac_old_set,$ac_new_set in
2587 set,)
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2589 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,set)
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2593 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2595 ,);;
2596 *)
2597 if test "x$ac_old_val" != "x$ac_new_val"; then
2598 # differences in whitespace do not lead to failure.
2599 ac_old_val_w=`echo x $ac_old_val`
2600 ac_new_val_w=`echo x $ac_new_val`
2601 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2603 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2604 ac_cache_corrupted=:
2605 else
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2607 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2608 eval $ac_var=\$ac_old_val
2609 fi
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2611 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2613 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2614 fi;;
2615 esac
2616 # Pass precious variables to config.status.
2617 if test "$ac_new_set" = set; then
2618 case $ac_new_val in
2619 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620 *) ac_arg=$ac_var=$ac_new_val ;;
2621 esac
2622 case " $ac_configure_args " in
2623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2624 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625 esac
2626 fi
2627 done
2628 if $ac_cache_corrupted; then
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2630 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2633 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2634 and start over" "$LINENO" 5
2635 fi
2636 ## -------------------- ##
2637 ## Main body of script. ##
2638 ## -------------------- ##
2639
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648 ac_config_headers="$ac_config_headers config.h include/X11/Xcursor/Xcursor.h"
2649
2650
2651
2652 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2653 # Must be called before any macros that run the compiler (like LT_INIT)
2654 # to avoid autoconf errors.
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666 # Expand $ac_aux_dir to an absolute path.
2667 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2668
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 printf %s "checking for $ac_word... " >&6; }
2679 if test ${ac_cv_prog_CC+y}
2680 then :
2681 printf %s "(cached) " >&6
2682 else case e in #(
2683 e) if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 case $as_dir in #(((
2691 '') as_dir=./ ;;
2692 */) ;;
2693 *) as_dir=$as_dir/ ;;
2694 esac
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi ;;
2706 esac
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 printf "%s\n" "$CC" >&6; }
2712 else
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 printf "%s\n" "no" >&6; }
2715 fi
2716
2717
2718 fi
2719 if test -z "$ac_cv_prog_CC"; then
2720 ac_ct_CC=$CC
2721 # Extract the first word of "gcc", so it can be a program name with args.
2722 set dummy gcc; ac_word=$2
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 printf %s "checking for $ac_word... " >&6; }
2725 if test ${ac_cv_prog_ac_ct_CC+y}
2726 then :
2727 printf %s "(cached) " >&6
2728 else case e in #(
2729 e) if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 case $as_dir in #(((
2737 '') as_dir=./ ;;
2738 */) ;;
2739 *) as_dir=$as_dir/ ;;
2740 esac
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_ac_ct_CC="gcc"
2744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi ;;
2752 esac
2753 fi
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757 printf "%s\n" "$ac_ct_CC" >&6; }
2758 else
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 printf "%s\n" "no" >&6; }
2761 fi
2762
2763 if test "x$ac_ct_CC" = x; then
2764 CC=""
2765 else
2766 case $cross_compiling:$ac_tool_warned in
2767 yes:)
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 CC=$ac_ct_CC
2773 fi
2774 else
2775 CC="$ac_cv_prog_CC"
2776 fi
2777
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s "checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_CC+y}
2785 then :
2786 printf %s "(cached) " >&6
2787 else case e in #(
2788 e) if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 case $as_dir in #(((
2796 '') as_dir=./ ;;
2797 */) ;;
2798 *) as_dir=$as_dir/ ;;
2799 esac
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="${ac_tool_prefix}cc"
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi ;;
2811 esac
2812 fi
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 printf "%s\n" "$CC" >&6; }
2817 else
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 printf "%s\n" "no" >&6; }
2820 fi
2821
2822
2823 fi
2824 fi
2825 if test -z "$CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 printf %s "checking for $ac_word... " >&6; }
2830 if test ${ac_cv_prog_CC+y}
2831 then :
2832 printf %s "(cached) " >&6
2833 else case e in #(
2834 e) if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 ac_prog_rejected=no
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 case $as_dir in #(((
2843 '') as_dir=./ ;;
2844 */) ;;
2845 *) as_dir=$as_dir/ ;;
2846 esac
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2849 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850 ac_prog_rejected=yes
2851 continue
2852 fi
2853 ac_cv_prog_CC="cc"
2854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 if test $ac_prog_rejected = yes; then
2862 # We found a bogon in the path, so make sure we never use it.
2863 set dummy $ac_cv_prog_CC
2864 shift
2865 if test $# != 0; then
2866 # We chose a different compiler from the bogus one.
2867 # However, it has the same basename, so the bogon will be chosen
2868 # first if we set CC to just the basename; use the full file name.
2869 shift
2870 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2871 fi
2872 fi
2873 fi ;;
2874 esac
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 printf %s "checking for $ac_word... " >&6; }
2895 if test ${ac_cv_prog_CC+y}
2896 then :
2897 printf %s "(cached) " >&6
2898 else case e in #(
2899 e) if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 case $as_dir in #(((
2907 '') as_dir=./ ;;
2908 */) ;;
2909 *) as_dir=$as_dir/ ;;
2910 esac
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi ;;
2922 esac
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 printf "%s\n" "$CC" >&6; }
2928 else
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 printf "%s\n" "no" >&6; }
2931 fi
2932
2933
2934 test -n "$CC" && break
2935 done
2936 fi
2937 if test -z "$CC"; then
2938 ac_ct_CC=$CC
2939 for ac_prog in cl.exe
2940 do
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_ac_ct_CC+y}
2946 then :
2947 printf %s "(cached) " >&6
2948 else case e in #(
2949 e) if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CC="$ac_prog"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi ;;
2972 esac
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 printf "%s\n" "$ac_ct_CC" >&6; }
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 fi
2982
2983
2984 test -n "$ac_ct_CC" && break
2985 done
2986
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2997 fi
2998 fi
2999
3000 fi
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}clang; ac_word=$2
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 printf %s "checking for $ac_word... " >&6; }
3007 if test ${ac_cv_prog_CC+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else case e in #(
3011 e) if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 case $as_dir in #(((
3019 '') as_dir=./ ;;
3020 */) ;;
3021 *) as_dir=$as_dir/ ;;
3022 esac
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CC="${ac_tool_prefix}clang"
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi ;;
3034 esac
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 printf "%s\n" "$CC" >&6; }
3040 else
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 printf "%s\n" "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_CC"; then
3048 ac_ct_CC=$CC
3049 # Extract the first word of "clang", so it can be a program name with args.
3050 set dummy clang; ac_word=$2
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 printf %s "checking for $ac_word... " >&6; }
3053 if test ${ac_cv_prog_ac_ct_CC+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else case e in #(
3057 e) if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_ac_ct_CC="clang"
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi ;;
3080 esac
3081 fi
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085 printf "%s\n" "$ac_ct_CC" >&6; }
3086 else
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf "%s\n" "no" >&6; }
3089 fi
3090
3091 if test "x$ac_ct_CC" = x; then
3092 CC=""
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 CC=$ac_ct_CC
3101 fi
3102 else
3103 CC="$ac_cv_prog_CC"
3104 fi
3105
3106 fi
3107
3108
3109 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3110 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3111 as_fn_error $? "no acceptable C compiler found in \$PATH
3112 See 'config.log' for more details" "$LINENO" 5; }
3113
3114 # Provide some information about the compiler.
3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3116 set X $ac_compile
3117 ac_compiler=$2
3118 for ac_option in --version -v -V -qversion -version; do
3119 { { ac_try="$ac_compiler $ac_option >&5"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 printf "%s\n" "$ac_try_echo"; } >&5
3126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3127 ac_status=$?
3128 if test -s conftest.err; then
3129 sed '10a\
3130 ... rest of stderr output deleted ...
3131 10q' conftest.err >conftest.er1
3132 cat conftest.er1 >&5
3133 fi
3134 rm -f conftest.er1 conftest.err
3135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 done
3138
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141
3142 int
3143 main (void)
3144 {
3145
3146 ;
3147 return 0;
3148 }
3149 _ACEOF
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3154 # of exeext.
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3156 printf %s "checking whether the C compiler works... " >&6; }
3157 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3158
3159 # The possible output files:
3160 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3161
3162 ac_rmfiles=
3163 for ac_file in $ac_files
3164 do
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3168 esac
3169 done
3170 rm -f $ac_rmfiles
3171
3172 if { { ac_try="$ac_link_default"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 printf "%s\n" "$ac_try_echo"; } >&5
3179 (eval "$ac_link_default") 2>&5
3180 ac_status=$?
3181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 then :
3184 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3185 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3186 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3187 # so that the user can short-circuit this test for compilers unknown to
3188 # Autoconf.
3189 for ac_file in $ac_files ''
3190 do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3194 ;;
3195 [ab].out )
3196 # We found the default executable, but exeext='' is most
3197 # certainly right.
3198 break;;
3199 *.* )
3200 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3201 then :; else
3202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 fi
3204 # We set ac_cv_exeext here because the later test for it is not
3205 # safe: cross compilers may not add the suffix if given an '-o'
3206 # argument, so we may need to know it at that point already.
3207 # Even if this section looks crufty: it has the advantage of
3208 # actually working.
3209 break;;
3210 * )
3211 break;;
3212 esac
3213 done
3214 test "$ac_cv_exeext" = no && ac_cv_exeext=
3215
3216 else case e in #(
3217 e) ac_file='' ;;
3218 esac
3219 fi
3220 if test -z "$ac_file"
3221 then :
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 printf "%s\n" "no" >&6; }
3224 printf "%s\n" "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3229 as_fn_error 77 "C compiler cannot create executables
3230 See 'config.log' for more details" "$LINENO" 5; }
3231 else case e in #(
3232 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 printf "%s\n" "yes" >&6; } ;;
3234 esac
3235 fi
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3237 printf %s "checking for C compiler default output file name... " >&6; }
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3239 printf "%s\n" "$ac_file" >&6; }
3240 ac_exeext=$ac_cv_exeext
3241
3242 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3243 ac_clean_files=$ac_clean_files_save
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3245 printf %s "checking for suffix of executables... " >&6; }
3246 if { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 printf "%s\n" "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3254 ac_status=$?
3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 then :
3258 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3259 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3260 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3261 # 'rm'.
3262 for ac_file in conftest.exe conftest conftest.*; do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 break;;
3268 * ) break;;
3269 esac
3270 done
3271 else case e in #(
3272 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3273 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3275 See 'config.log' for more details" "$LINENO" 5; } ;;
3276 esac
3277 fi
3278 rm -f conftest conftest$ac_cv_exeext
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280 printf "%s\n" "$ac_cv_exeext" >&6; }
3281
3282 rm -f conftest.$ac_ext
3283 EXEEXT=$ac_cv_exeext
3284 ac_exeext=$EXEEXT
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287 #include <stdio.h>
3288 int
3289 main (void)
3290 {
3291 FILE *f = fopen ("conftest.out", "w");
3292 if (!f)
3293 return 1;
3294 return ferror (f) || fclose (f) != 0;
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 ac_clean_files="$ac_clean_files conftest.out"
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3304 printf %s "checking whether we are cross compiling... " >&6; }
3305 if test "$cross_compiling" != yes; then
3306 { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 printf "%s\n" "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }
3317 if { ac_try='./conftest$ac_cv_exeext'
3318 { { case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 printf "%s\n" "$ac_try_echo"; } >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; }; then
3328 cross_compiling=no
3329 else
3330 if test "$cross_compiling" = maybe; then
3331 cross_compiling=yes
3332 else
3333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3334 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3335 as_fn_error 77 "cannot run C compiled programs.
3336 If you meant to cross compile, use '--host'.
3337 See 'config.log' for more details" "$LINENO" 5; }
3338 fi
3339 fi
3340 fi
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3342 printf "%s\n" "$cross_compiling" >&6; }
3343
3344 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3345 conftest.o conftest.obj conftest.out
3346 ac_clean_files=$ac_clean_files_save
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3348 printf %s "checking for suffix of object files... " >&6; }
3349 if test ${ac_cv_objext+y}
3350 then :
3351 printf %s "(cached) " >&6
3352 else case e in #(
3353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355
3356 int
3357 main (void)
3358 {
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.o conftest.obj
3365 if { { ac_try="$ac_compile"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 printf "%s\n" "$ac_try_echo"; } >&5
3372 (eval "$ac_compile") 2>&5
3373 ac_status=$?
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }
3376 then :
3377 for ac_file in conftest.o conftest.obj conftest.*; do
3378 test -f "$ac_file" || continue;
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382 break;;
3383 esac
3384 done
3385 else case e in #(
3386 e) printf "%s\n" "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3390 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot compute suffix of object files: cannot compile
3392 See 'config.log' for more details" "$LINENO" 5; } ;;
3393 esac
3394 fi
3395 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3396 esac
3397 fi
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 printf "%s\n" "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3401 ac_objext=$OBJEXT
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3403 printf %s "checking whether the compiler supports GNU C... " >&6; }
3404 if test ${ac_cv_c_compiler_gnu+y}
3405 then :
3406 printf %s "(cached) " >&6
3407 else case e in #(
3408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main (void)
3413 {
3414 #ifndef __GNUC__
3415 choke me
3416 #endif
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"
3423 then :
3424 ac_compiler_gnu=yes
3425 else case e in #(
3426 e) ac_compiler_gnu=no ;;
3427 esac
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431 ;;
3432 esac
3433 fi
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438 if test $ac_compiler_gnu = yes; then
3439 GCC=yes
3440 else
3441 GCC=
3442 fi
3443 ac_test_CFLAGS=${CFLAGS+y}
3444 ac_save_CFLAGS=$CFLAGS
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3446 printf %s "checking whether $CC accepts -g... " >&6; }
3447 if test ${ac_cv_prog_cc_g+y}
3448 then :
3449 printf %s "(cached) " >&6
3450 else case e in #(
3451 e) ac_save_c_werror_flag=$ac_c_werror_flag
3452 ac_c_werror_flag=yes
3453 ac_cv_prog_cc_g=no
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main (void)
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"
3467 then :
3468 ac_cv_prog_cc_g=yes
3469 else case e in #(
3470 e) CFLAGS=""
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main (void)
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"
3483 then :
3484
3485 else case e in #(
3486 e) ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main (void)
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"
3500 then :
3501 ac_cv_prog_cc_g=yes
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3504 esac
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3507 esac
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3510 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3511 esac
3512 fi
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3514 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3515 if test $ac_test_CFLAGS; then
3516 CFLAGS=$ac_save_CFLAGS
3517 elif test $ac_cv_prog_cc_g = yes; then
3518 if test "$GCC" = yes; then
3519 CFLAGS="-g -O2"
3520 else
3521 CFLAGS="-g"
3522 fi
3523 else
3524 if test "$GCC" = yes; then
3525 CFLAGS="-O2"
3526 else
3527 CFLAGS=
3528 fi
3529 fi
3530 ac_prog_cc_stdc=no
3531 if test x$ac_prog_cc_stdc = xno
3532 then :
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3534 printf %s "checking for $CC option to enable C11 features... " >&6; }
3535 if test ${ac_cv_prog_cc_c11+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else case e in #(
3539 e) ac_cv_prog_cc_c11=no
3540 ac_save_CC=$CC
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543 $ac_c_conftest_c11_program
3544 _ACEOF
3545 for ac_arg in '' -std=gnu11
3546 do
3547 CC="$ac_save_CC $ac_arg"
3548 if ac_fn_c_try_compile "$LINENO"
3549 then :
3550 ac_cv_prog_cc_c11=$ac_arg
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.beam
3553 test "x$ac_cv_prog_cc_c11" != "xno" && break
3554 done
3555 rm -f conftest.$ac_ext
3556 CC=$ac_save_CC ;;
3557 esac
3558 fi
3559
3560 if test "x$ac_cv_prog_cc_c11" = xno
3561 then :
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3563 printf "%s\n" "unsupported" >&6; }
3564 else case e in #(
3565 e) if test "x$ac_cv_prog_cc_c11" = x
3566 then :
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 printf "%s\n" "none needed" >&6; }
3569 else case e in #(
3570 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3571 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3572 CC="$CC $ac_cv_prog_cc_c11" ;;
3573 esac
3574 fi
3575 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3576 ac_prog_cc_stdc=c11 ;;
3577 esac
3578 fi
3579 fi
3580 if test x$ac_prog_cc_stdc = xno
3581 then :
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3583 printf %s "checking for $CC option to enable C99 features... " >&6; }
3584 if test ${ac_cv_prog_cc_c99+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else case e in #(
3588 e) ac_cv_prog_cc_c99=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 $ac_c_conftest_c99_program
3593 _ACEOF
3594 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3595 do
3596 CC="$ac_save_CC $ac_arg"
3597 if ac_fn_c_try_compile "$LINENO"
3598 then :
3599 ac_cv_prog_cc_c99=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.beam
3602 test "x$ac_cv_prog_cc_c99" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC ;;
3606 esac
3607 fi
3608
3609 if test "x$ac_cv_prog_cc_c99" = xno
3610 then :
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612 printf "%s\n" "unsupported" >&6; }
3613 else case e in #(
3614 e) if test "x$ac_cv_prog_cc_c99" = x
3615 then :
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3617 printf "%s\n" "none needed" >&6; }
3618 else case e in #(
3619 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3620 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3621 CC="$CC $ac_cv_prog_cc_c99" ;;
3622 esac
3623 fi
3624 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3625 ac_prog_cc_stdc=c99 ;;
3626 esac
3627 fi
3628 fi
3629 if test x$ac_prog_cc_stdc = xno
3630 then :
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3632 printf %s "checking for $CC option to enable C89 features... " >&6; }
3633 if test ${ac_cv_prog_cc_c89+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else case e in #(
3637 e) ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 $ac_c_conftest_c89_program
3642 _ACEOF
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644 do
3645 CC="$ac_save_CC $ac_arg"
3646 if ac_fn_c_try_compile "$LINENO"
3647 then :
3648 ac_cv_prog_cc_c89=$ac_arg
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.beam
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
3652 done
3653 rm -f conftest.$ac_ext
3654 CC=$ac_save_CC ;;
3655 esac
3656 fi
3657
3658 if test "x$ac_cv_prog_cc_c89" = xno
3659 then :
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 printf "%s\n" "unsupported" >&6; }
3662 else case e in #(
3663 e) if test "x$ac_cv_prog_cc_c89" = x
3664 then :
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666 printf "%s\n" "none needed" >&6; }
3667 else case e in #(
3668 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3670 CC="$CC $ac_cv_prog_cc_c89" ;;
3671 esac
3672 fi
3673 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3674 ac_prog_cc_stdc=c89 ;;
3675 esac
3676 fi
3677 fi
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3692 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3693 if test ${am_cv_prog_cc_c_o+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else case e in #(
3697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main (void)
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 # Make sure it works both with $CC and with simple cc.
3709 # Following AC_PROG_CC_C_O, we do the test twice because some
3710 # compilers refuse to overwrite an existing .o file with -o,
3711 # though they will create one.
3712 am_cv_prog_cc_c_o=yes
3713 for am_i in 1 2; do
3714 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3715 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } \
3719 && test -f conftest2.$ac_objext; then
3720 : OK
3721 else
3722 am_cv_prog_cc_c_o=no
3723 break
3724 fi
3725 done
3726 rm -f core conftest*
3727 unset am_i ;;
3728 esac
3729 fi
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3731 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3732 if test "$am_cv_prog_cc_c_o" != yes; then
3733 # Losing compiler, so override with the script.
3734 # FIXME: It is wrong to rewrite CC.
3735 # But if we don't then we get into trouble of one sort or another.
3736 # A longer-term fix would be to have automake use am__CC in this case,
3737 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3738 CC="$am_aux_dir/compile $CC"
3739 fi
3740 ac_ext=c
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747
3748 ac_header= ac_cache=
3749 for ac_item in $ac_header_c_list
3750 do
3751 if test $ac_cache; then
3752 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3753 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3754 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3755 fi
3756 ac_header= ac_cache=
3757 elif test $ac_header; then
3758 ac_cache=$ac_item
3759 else
3760 ac_header=$ac_item
3761 fi
3762 done
3763
3764
3765
3766
3767
3768
3769
3770
3771 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3772 then :
3773
3774 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3775
3776 fi
3777
3778
3779
3780
3781
3782
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3784 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3785 if test ${ac_cv_safe_to_define___extensions__+y}
3786 then :
3787 printf %s "(cached) " >&6
3788 else case e in #(
3789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 # define __EXTENSIONS__ 1
3793 $ac_includes_default
3794 int
3795 main (void)
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"
3803 then :
3804 ac_cv_safe_to_define___extensions__=yes
3805 else case e in #(
3806 e) ac_cv_safe_to_define___extensions__=no ;;
3807 esac
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3810 esac
3811 fi
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3813 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3814
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3816 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3817 if test ${ac_cv_should_define__xopen_source+y}
3818 then :
3819 printf %s "(cached) " >&6
3820 else case e in #(
3821 e) ac_cv_should_define__xopen_source=no
3822 if test $ac_cv_header_wchar_h = yes
3823 then :
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 #include <wchar.h>
3828 mbstate_t x;
3829 int
3830 main (void)
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 if ac_fn_c_try_compile "$LINENO"
3838 then :
3839
3840 else case e in #(
3841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 #define _XOPEN_SOURCE 500
3845 #include <wchar.h>
3846 mbstate_t x;
3847 int
3848 main (void)
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"
3856 then :
3857 ac_cv_should_define__xopen_source=yes
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3860 esac
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3863 fi ;;
3864 esac
3865 fi
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3867 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3868
3869 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3870
3871 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3872
3873 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3874
3875 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3876
3877 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3878
3879 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3880
3881 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3882
3883 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3884
3885 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3886
3887 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3888
3889 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3890
3891 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3892
3893 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3894
3895 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3896
3897 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3898
3899 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3900
3901 if test $ac_cv_header_minix_config_h = yes
3902 then :
3903 MINIX=yes
3904 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3905
3906 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3907
3908 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3909
3910 else case e in #(
3911 e) MINIX= ;;
3912 esac
3913 fi
3914 if test $ac_cv_safe_to_define___extensions__ = yes
3915 then :
3916 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3917
3918 fi
3919 if test $ac_cv_should_define__xopen_source = yes
3920 then :
3921 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3922
3923 fi
3924
3925
3926 # Initialize Automake
3927 am__api_version='1.16'
3928
3929
3930 # Find a good install program. We prefer a C program (faster),
3931 # so one script is as good as another. But avoid the broken or
3932 # incompatible versions:
3933 # SysV /etc/install, /usr/sbin/install
3934 # SunOS /usr/etc/install
3935 # IRIX /sbin/install
3936 # AIX /bin/install
3937 # AmigaOS /C/install, which installs bootblocks on floppy discs
3938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3941 # OS/2's system install, which has a completely different semantic
3942 # ./install, which can be erroneously created by make from ./install.sh.
3943 # Reject install programs that cannot install multiple files.
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3945 printf %s "checking for a BSD-compatible install... " >&6; }
3946 if test -z "$INSTALL"; then
3947 if test ${ac_cv_path_install+y}
3948 then :
3949 printf %s "(cached) " >&6
3950 else case e in #(
3951 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 case $as_dir in #(((
3956 '') as_dir=./ ;;
3957 */) ;;
3958 *) as_dir=$as_dir/ ;;
3959 esac
3960 # Account for fact that we put trailing slashes in our PATH walk.
3961 case $as_dir in #((
3962 ./ | /[cC]/* | \
3963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3965 /usr/ucb/* ) ;;
3966 *)
3967 # OSF1 and SCO ODT 3.0 have their own names for install.
3968 # Don't use installbsd from OSF since it installs stuff as root
3969 # by default.
3970 for ac_prog in ginstall scoinst install; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3973 if test $ac_prog = install &&
3974 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3975 # AIX install. It has an incompatible calling convention.
3976 :
3977 elif test $ac_prog = install &&
3978 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3979 # program-specific install script used by HP pwplus--don't use.
3980 :
3981 else
3982 rm -rf conftest.one conftest.two conftest.dir
3983 echo one > conftest.one
3984 echo two > conftest.two
3985 mkdir conftest.dir
3986 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3987 test -s conftest.one && test -s conftest.two &&
3988 test -s conftest.dir/conftest.one &&
3989 test -s conftest.dir/conftest.two
3990 then
3991 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3992 break 3
3993 fi
3994 fi
3995 fi
3996 done
3997 done
3998 ;;
3999 esac
4000
4001 done
4002 IFS=$as_save_IFS
4003
4004 rm -rf conftest.one conftest.two conftest.dir
4005 ;;
4006 esac
4007 fi
4008 if test ${ac_cv_path_install+y}; then
4009 INSTALL=$ac_cv_path_install
4010 else
4011 # As a last resort, use the slow shell script. Don't cache a
4012 # value for INSTALL within a source directory, because that will
4013 # break other packages using the cache if that directory is
4014 # removed, or if the value is a relative name.
4015 INSTALL=$ac_install_sh
4016 fi
4017 fi
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4019 printf "%s\n" "$INSTALL" >&6; }
4020
4021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4022 # It thinks the first close brace ends the variable substitution.
4023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4024
4025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4026
4027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4028
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4030 printf %s "checking whether build environment is sane... " >&6; }
4031 # Reject unsafe characters in $srcdir or the absolute working directory
4032 # name. Accept space and tab only in the latter.
4033 am_lf='
4034 '
4035 case `pwd` in
4036 *[\\\"\#\$\&\'\`$am_lf]*)
4037 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4038 esac
4039 case $srcdir in
4040 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4041 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4042 esac
4043
4044 # Do 'set' in a subshell so we don't clobber the current shell's
4045 # arguments. Must try -L first in case configure is actually a
4046 # symlink; some systems play weird games with the mod time of symlinks
4047 # (eg FreeBSD returns the mod time of the symlink's containing
4048 # directory).
4049 if (
4050 am_has_slept=no
4051 for am_try in 1 2; do
4052 echo "timestamp, slept: $am_has_slept" > conftest.file
4053 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4054 if test "$*" = "X"; then
4055 # -L didn't work.
4056 set X `ls -t "$srcdir/configure" conftest.file`
4057 fi
4058 if test "$*" != "X $srcdir/configure conftest.file" \
4059 && test "$*" != "X conftest.file $srcdir/configure"; then
4060
4061 # If neither matched, then we have a broken ls. This can happen
4062 # if, for instance, CONFIG_SHELL is bash and it inherits a
4063 # broken ls alias from the environment. This has actually
4064 # happened. Such a system could not be considered "sane".
4065 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4066 alias in your environment" "$LINENO" 5
4067 fi
4068 if test "$2" = conftest.file || test $am_try -eq 2; then
4069 break
4070 fi
4071 # Just in case.
4072 sleep 1
4073 am_has_slept=yes
4074 done
4075 test "$2" = conftest.file
4076 )
4077 then
4078 # Ok.
4079 :
4080 else
4081 as_fn_error $? "newly created file is older than distributed files!
4082 Check your system clock" "$LINENO" 5
4083 fi
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 printf "%s\n" "yes" >&6; }
4086 # If we didn't sleep, we still need to ensure time stamps of config.status and
4087 # generated files are strictly newer.
4088 am_sleep_pid=
4089 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4090 ( sleep 1 ) &
4091 am_sleep_pid=$!
4092 fi
4093
4094 rm -f conftest.file
4095
4096 test "$program_prefix" != NONE &&
4097 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4098 # Use a double $ so make ignores it.
4099 test "$program_suffix" != NONE &&
4100 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4101 # Double any \ or $.
4102 # By default was 's,x,x', remove it if useless.
4103 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4104 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4105
4106
4107 if test x"${MISSING+set}" != xset; then
4108 MISSING="\${SHELL} '$am_aux_dir/missing'"
4109 fi
4110 # Use eval to expand $SHELL
4111 if eval "$MISSING --is-lightweight"; then
4112 am_missing_run="$MISSING "
4113 else
4114 am_missing_run=
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4116 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4117 fi
4118
4119 if test x"${install_sh+set}" != xset; then
4120 case $am_aux_dir in
4121 *\ * | *\ *)
4122 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4123 *)
4124 install_sh="\${SHELL} $am_aux_dir/install-sh"
4125 esac
4126 fi
4127
4128 # Installed binaries are usually stripped using 'strip' when the user
4129 # run "make install-strip". However 'strip' might not be the right
4130 # tool to use in cross-compilation environments, therefore Automake
4131 # will honor the 'STRIP' environment variable to overrule this program.
4132 if test "$cross_compiling" != no; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}strip; ac_word=$2
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 printf %s "checking for $ac_word... " >&6; }
4138 if test ${ac_cv_prog_STRIP+y}
4139 then :
4140 printf %s "(cached) " >&6
4141 else case e in #(
4142 e) if test -n "$STRIP"; then
4143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148 IFS=$as_save_IFS
4149 case $as_dir in #(((
4150 '') as_dir=./ ;;
4151 */) ;;
4152 *) as_dir=$as_dir/ ;;
4153 esac
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 fi ;;
4165 esac
4166 fi
4167 STRIP=$ac_cv_prog_STRIP
4168 if test -n "$STRIP"; then
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4170 printf "%s\n" "$STRIP" >&6; }
4171 else
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 printf "%s\n" "no" >&6; }
4174 fi
4175
4176
4177 fi
4178 if test -z "$ac_cv_prog_STRIP"; then
4179 ac_ct_STRIP=$STRIP
4180 # Extract the first word of "strip", so it can be a program name with args.
4181 set dummy strip; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_ac_ct_STRIP+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else case e in #(
4188 e) if test -n "$ac_ct_STRIP"; then
4189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 case $as_dir in #(((
4196 '') as_dir=./ ;;
4197 */) ;;
4198 *) as_dir=$as_dir/ ;;
4199 esac
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_STRIP="strip"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi ;;
4211 esac
4212 fi
4213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4214 if test -n "$ac_ct_STRIP"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4216 printf "%s\n" "$ac_ct_STRIP" >&6; }
4217 else
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 printf "%s\n" "no" >&6; }
4220 fi
4221
4222 if test "x$ac_ct_STRIP" = x; then
4223 STRIP=":"
4224 else
4225 case $cross_compiling:$ac_tool_warned in
4226 yes:)
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229 ac_tool_warned=yes ;;
4230 esac
4231 STRIP=$ac_ct_STRIP
4232 fi
4233 else
4234 STRIP="$ac_cv_prog_STRIP"
4235 fi
4236
4237 fi
4238 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4239
4240
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4242 printf %s "checking for a race-free mkdir -p... " >&6; }
4243 if test -z "$MKDIR_P"; then
4244 if test ${ac_cv_path_mkdir+y}
4245 then :
4246 printf %s "(cached) " >&6
4247 else case e in #(
4248 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4250 do
4251 IFS=$as_save_IFS
4252 case $as_dir in #(((
4253 '') as_dir=./ ;;
4254 */) ;;
4255 *) as_dir=$as_dir/ ;;
4256 esac
4257 for ac_prog in mkdir gmkdir; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4260 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4261 'mkdir ('*'coreutils) '* | \
4262 *'BusyBox '* | \
4263 'mkdir (fileutils) '4.1*)
4264 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4265 break 3;;
4266 esac
4267 done
4268 done
4269 done
4270 IFS=$as_save_IFS
4271 ;;
4272 esac
4273 fi
4274
4275 test -d ./--version && rmdir ./--version
4276 if test ${ac_cv_path_mkdir+y}; then
4277 MKDIR_P="$ac_cv_path_mkdir -p"
4278 else
4279 # As a last resort, use plain mkdir -p,
4280 # in the hope it doesn't have the bugs of ancient mkdir.
4281 MKDIR_P='mkdir -p'
4282 fi
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4285 printf "%s\n" "$MKDIR_P" >&6; }
4286
4287 for ac_prog in gawk mawk nawk awk
4288 do
4289 # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 printf %s "checking for $ac_word... " >&6; }
4293 if test ${ac_cv_prog_AWK+y}
4294 then :
4295 printf %s "(cached) " >&6
4296 else case e in #(
4297 e) if test -n "$AWK"; then
4298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303 IFS=$as_save_IFS
4304 case $as_dir in #(((
4305 '') as_dir=./ ;;
4306 */) ;;
4307 *) as_dir=$as_dir/ ;;
4308 esac
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_AWK="$ac_prog"
4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi ;;
4320 esac
4321 fi
4322 AWK=$ac_cv_prog_AWK
4323 if test -n "$AWK"; then
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4325 printf "%s\n" "$AWK" >&6; }
4326 else
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 printf "%s\n" "no" >&6; }
4329 fi
4330
4331
4332 test -n "$AWK" && break
4333 done
4334
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4336 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4337 set x ${MAKE-make}
4338 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4339 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4340 then :
4341 printf %s "(cached) " >&6
4342 else case e in #(
4343 e) cat >conftest.make <<\_ACEOF
4344 SHELL = /bin/sh
4345 all:
4346 @echo '@@@%%%=$(MAKE)=@@@%%%'
4347 _ACEOF
4348 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4349 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4350 *@@@%%%=?*=@@@%%%*)
4351 eval ac_cv_prog_make_${ac_make}_set=yes;;
4352 *)
4353 eval ac_cv_prog_make_${ac_make}_set=no;;
4354 esac
4355 rm -f conftest.make ;;
4356 esac
4357 fi
4358 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 printf "%s\n" "yes" >&6; }
4361 SET_MAKE=
4362 else
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 printf "%s\n" "no" >&6; }
4365 SET_MAKE="MAKE=${MAKE-make}"
4366 fi
4367
4368 rm -rf .tst 2>/dev/null
4369 mkdir .tst 2>/dev/null
4370 if test -d .tst; then
4371 am__leading_dot=.
4372 else
4373 am__leading_dot=_
4374 fi
4375 rmdir .tst 2>/dev/null
4376
4377 DEPDIR="${am__leading_dot}deps"
4378
4379 ac_config_commands="$ac_config_commands depfiles"
4380
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4382 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4383 cat > confinc.mk << 'END'
4384 am__doit:
4385 @echo this is the am__doit target >confinc.out
4386 .PHONY: am__doit
4387 END
4388 am__include="#"
4389 am__quote=
4390 # BSD make does it like this.
4391 echo '.include "confinc.mk" # ignored' > confmf.BSD
4392 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4393 echo 'include confinc.mk # ignored' > confmf.GNU
4394 _am_result=no
4395 for s in GNU BSD; do
4396 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4397 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }
4401 case $?:`cat confinc.out 2>/dev/null` in #(
4402 '0:this is the am__doit target') :
4403 case $s in #(
4404 BSD) :
4405 am__include='.include' am__quote='"' ;; #(
4406 *) :
4407 am__include='include' am__quote='' ;;
4408 esac ;; #(
4409 *) :
4410 ;;
4411 esac
4412 if test "$am__include" != "#"; then
4413 _am_result="yes ($s style)"
4414 break
4415 fi
4416 done
4417 rm -f confinc.* confmf.*
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4419 printf "%s\n" "${_am_result}" >&6; }
4420
4421 # Check whether --enable-dependency-tracking was given.
4422 if test ${enable_dependency_tracking+y}
4423 then :
4424 enableval=$enable_dependency_tracking;
4425 fi
4426
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4429 AMDEPBACKSLASH='\'
4430 am__nodep='_no'
4431 fi
4432 if test "x$enable_dependency_tracking" != xno; then
4433 AMDEP_TRUE=
4434 AMDEP_FALSE='#'
4435 else
4436 AMDEP_TRUE='#'
4437 AMDEP_FALSE=
4438 fi
4439
4440
4441 # Check whether --enable-silent-rules was given.
4442 if test ${enable_silent_rules+y}
4443 then :
4444 enableval=$enable_silent_rules;
4445 fi
4446
4447 case $enable_silent_rules in # (((
4448 yes) AM_DEFAULT_VERBOSITY=0;;
4449 no) AM_DEFAULT_VERBOSITY=1;;
4450 *) AM_DEFAULT_VERBOSITY=1;;
4451 esac
4452 am_make=${MAKE-make}
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4454 printf %s "checking whether $am_make supports nested variables... " >&6; }
4455 if test ${am_cv_make_support_nested_variables+y}
4456 then :
4457 printf %s "(cached) " >&6
4458 else case e in #(
4459 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4460 BAR0=false
4461 BAR1=true
4462 V=1
4463 am__doit:
4464 @$(TRUE)
4465 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4466 am_cv_make_support_nested_variables=yes
4467 else
4468 am_cv_make_support_nested_variables=no
4469 fi ;;
4470 esac
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4473 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4474 if test $am_cv_make_support_nested_variables = yes; then
4475 AM_V='$(V)'
4476 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4477 else
4478 AM_V=$AM_DEFAULT_VERBOSITY
4479 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4480 fi
4481 AM_BACKSLASH='\'
4482
4483 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4484 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4485 # is not polluted with repeated "-I."
4486 am__isrc=' -I$(srcdir)'
4487 # test to see if srcdir already configured
4488 if test -f $srcdir/config.status; then
4489 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4490 fi
4491 fi
4492
4493 # test whether we have cygpath
4494 if test -z "$CYGPATH_W"; then
4495 if (cygpath --version) >/dev/null 2>/dev/null; then
4496 CYGPATH_W='cygpath -w'
4497 else
4498 CYGPATH_W=echo
4499 fi
4500 fi
4501
4502
4503 # Define the identity of the package.
4504 PACKAGE='libXcursor'
4505 VERSION='1.2.2'
4506
4507
4508 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4509
4510
4511 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4512
4513 # Some tools Automake needs.
4514
4515 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4516
4517
4518 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4519
4520
4521 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4522
4523
4524 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4525
4526
4527 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4528
4529 # For better backward compatibility. To be removed once Automake 1.9.x
4530 # dies out for good. For more background, see:
4531 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4532 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4533 mkdir_p='$(MKDIR_P)'
4534
4535 # We need awk for the "check" target (and possibly the TAP driver). The
4536 # system "awk" is bad on some platforms.
4537 # Always define AMTAR for backward compatibility. Yes, it's still used
4538 # in the wild :-( We should find a proper way to deprecate it ...
4539 AMTAR='$${TAR-tar}'
4540
4541
4542 # We'll loop over all known methods to create a tar archive until one works.
4543 _am_tools='gnutar pax cpio none'
4544
4545 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4546
4547
4548
4549
4550
4551 depcc="$CC" am_compiler_list=
4552
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4554 printf %s "checking dependency style of $depcc... " >&6; }
4555 if test ${am_cv_CC_dependencies_compiler_type+y}
4556 then :
4557 printf %s "(cached) " >&6
4558 else case e in #(
4559 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4560 # We make a subdir and do the tests there. Otherwise we can end up
4561 # making bogus files that we don't know about and never remove. For
4562 # instance it was reported that on HP-UX the gcc test will end up
4563 # making a dummy file named 'D' -- because '-MD' means "put the output
4564 # in D".
4565 rm -rf conftest.dir
4566 mkdir conftest.dir
4567 # Copy depcomp to subdir because otherwise we won't find it if we're
4568 # using a relative directory.
4569 cp "$am_depcomp" conftest.dir
4570 cd conftest.dir
4571 # We will build objects and dependencies in a subdirectory because
4572 # it helps to detect inapplicable dependency modes. For instance
4573 # both Tru64's cc and ICC support -MD to output dependencies as a
4574 # side effect of compilation, but ICC will put the dependencies in
4575 # the current directory while Tru64 will put them in the object
4576 # directory.
4577 mkdir sub
4578
4579 am_cv_CC_dependencies_compiler_type=none
4580 if test "$am_compiler_list" = ""; then
4581 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4582 fi
4583 am__universal=false
4584 case " $depcc " in #(
4585 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4586 esac
4587
4588 for depmode in $am_compiler_list; do
4589 # Setup a source with many dependencies, because some compilers
4590 # like to wrap large dependency lists on column 80 (with \), and
4591 # we should not choose a depcomp mode which is confused by this.
4592 #
4593 # We need to recreate these files for each test, as the compiler may
4594 # overwrite some of them when testing with obscure command lines.
4595 # This happens at least with the AIX C compiler.
4596 : > sub/conftest.c
4597 for i in 1 2 3 4 5 6; do
4598 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4599 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4600 # Solaris 10 /bin/sh.
4601 echo '/* dummy */' > sub/conftst$i.h
4602 done
4603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4604
4605 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4606 # mode. It turns out that the SunPro C++ compiler does not properly
4607 # handle '-M -o', and we need to detect this. Also, some Intel
4608 # versions had trouble with output in subdirs.
4609 am__obj=sub/conftest.${OBJEXT-o}
4610 am__minus_obj="-o $am__obj"
4611 case $depmode in
4612 gcc)
4613 # This depmode causes a compiler race in universal mode.
4614 test "$am__universal" = false || continue
4615 ;;
4616 nosideeffect)
4617 # After this tag, mechanisms are not by side-effect, so they'll
4618 # only be used when explicitly requested.
4619 if test "x$enable_dependency_tracking" = xyes; then
4620 continue
4621 else
4622 break
4623 fi
4624 ;;
4625 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4626 # This compiler won't grok '-c -o', but also, the minuso test has
4627 # not run yet. These depmodes are late enough in the game, and
4628 # so weak that their functioning should not be impacted.
4629 am__obj=conftest.${OBJEXT-o}
4630 am__minus_obj=
4631 ;;
4632 none) break ;;
4633 esac
4634 if depmode=$depmode \
4635 source=sub/conftest.c object=$am__obj \
4636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4637 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4638 >/dev/null 2>conftest.err &&
4639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4641 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4643 # icc doesn't choke on unknown options, it will just issue warnings
4644 # or remarks (even with -Werror). So we grep stderr for any message
4645 # that says an option was ignored or not supported.
4646 # When given -MP, icc 7.0 and 7.1 complain thusly:
4647 # icc: Command line warning: ignoring option '-M'; no argument required
4648 # The diagnosis changed in icc 8.0:
4649 # icc: Command line remark: option '-MP' not supported
4650 if (grep 'ignoring option' conftest.err ||
4651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4652 am_cv_CC_dependencies_compiler_type=$depmode
4653 break
4654 fi
4655 fi
4656 done
4657
4658 cd ..
4659 rm -rf conftest.dir
4660 else
4661 am_cv_CC_dependencies_compiler_type=none
4662 fi
4663 ;;
4664 esac
4665 fi
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4667 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4668 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4669
4670 if
4671 test "x$enable_dependency_tracking" != xno \
4672 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4673 am__fastdepCC_TRUE=
4674 am__fastdepCC_FALSE='#'
4675 else
4676 am__fastdepCC_TRUE='#'
4677 am__fastdepCC_FALSE=
4678 fi
4679
4680
4681 # Variables for tags utilities; see am/tags.am
4682 if test -z "$CTAGS"; then
4683 CTAGS=ctags
4684 fi
4685
4686 if test -z "$ETAGS"; then
4687 ETAGS=etags
4688 fi
4689
4690 if test -z "$CSCOPE"; then
4691 CSCOPE=cscope
4692 fi
4693
4694
4695
4696 # POSIX will say in a future version that running "rm -f" with no argument
4697 # is OK; and we want to be able to make that assumption in our Makefile
4698 # recipes. So use an aggressive probe to check that the usage we want is
4699 # actually supported "in the wild" to an acceptable degree.
4700 # See automake bug#10828.
4701 # To make any issue more visible, cause the running configure to be aborted
4702 # by default if the 'rm' program in use doesn't match our expectations; the
4703 # user can still override this though.
4704 if rm -f && rm -fr && rm -rf; then : OK; else
4705 cat >&2 <<'END'
4706 Oops!
4707
4708 Your 'rm' program seems unable to run without file operands specified
4709 on the command line, even when the '-f' option is present. This is contrary
4710 to the behaviour of most rm programs out there, and not conforming with
4711 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4712
4713 Please tell bug-automake@gnu.org about your system, including the value
4714 of your $PATH and any error possibly output before this message. This
4715 can help us improve future automake versions.
4716
4717 END
4718 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4719 echo 'Configuration will proceed anyway, since you have set the' >&2
4720 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4721 echo >&2
4722 else
4723 cat >&2 <<'END'
4724 Aborting the configuration process, to ensure you take notice of the issue.
4725
4726 You can download and install GNU coreutils to get an 'rm' implementation
4727 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4728
4729 If you want to complete the configuration process using your problematic
4730 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4731 to "yes", and re-run configure.
4732
4733 END
4734 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4735 fi
4736 fi
4737
4738
4739 # Initialize libtool
4740 case `pwd` in
4741 *\ * | *\ *)
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4743 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4744 esac
4745
4746
4747
4748 macro_version='2.4.7'
4749 macro_revision='2.4.7'
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 ltmain=$ac_aux_dir/ltmain.sh
4765
4766
4767
4768 # Make sure we can run config.sub.
4769 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4770 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4771
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4773 printf %s "checking build system type... " >&6; }
4774 if test ${ac_cv_build+y}
4775 then :
4776 printf %s "(cached) " >&6
4777 else case e in #(
4778 e) ac_build_alias=$build_alias
4779 test "x$ac_build_alias" = x &&
4780 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4781 test "x$ac_build_alias" = x &&
4782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4783 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4784 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4785 ;;
4786 esac
4787 fi
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4789 printf "%s\n" "$ac_cv_build" >&6; }
4790 case $ac_cv_build in
4791 *-*-*) ;;
4792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4793 esac
4794 build=$ac_cv_build
4795 ac_save_IFS=$IFS; IFS='-'
4796 set x $ac_cv_build
4797 shift
4798 build_cpu=$1
4799 build_vendor=$2
4800 shift; shift
4801 # Remember, the first character of IFS is used to create $*,
4802 # except with old shells:
4803 build_os=$*
4804 IFS=$ac_save_IFS
4805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4806
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4809 printf %s "checking host system type... " >&6; }
4810 if test ${ac_cv_host+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else case e in #(
4814 e) if test "x$host_alias" = x; then
4815 ac_cv_host=$ac_cv_build
4816 else
4817 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4818 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4819 fi
4820 ;;
4821 esac
4822 fi
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4824 printf "%s\n" "$ac_cv_host" >&6; }
4825 case $ac_cv_host in
4826 *-*-*) ;;
4827 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4828 esac
4829 host=$ac_cv_host
4830 ac_save_IFS=$IFS; IFS='-'
4831 set x $ac_cv_host
4832 shift
4833 host_cpu=$1
4834 host_vendor=$2
4835 shift; shift
4836 # Remember, the first character of IFS is used to create $*,
4837 # except with old shells:
4838 host_os=$*
4839 IFS=$ac_save_IFS
4840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4841
4842
4843 # Backslashify metacharacters that are still active within
4844 # double-quoted strings.
4845 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4846
4847 # Same as above, but do not quote variable references.
4848 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4849
4850 # Sed substitution to delay expansion of an escaped shell variable in a
4851 # double_quote_subst'ed string.
4852 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4853
4854 # Sed substitution to delay expansion of an escaped single quote.
4855 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4856
4857 # Sed substitution to avoid accidental globbing in evaled expressions
4858 no_glob_subst='s/\*/\\\*/g'
4859
4860 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4861 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4862 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4863
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4865 printf %s "checking how to print strings... " >&6; }
4866 # Test print first, because it will be a builtin if present.
4867 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4868 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4869 ECHO='print -r --'
4870 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4871 ECHO='printf %s\n'
4872 else
4873 # Use this function as a fallback that always works.
4874 func_fallback_echo ()
4875 {
4876 eval 'cat <<_LTECHO_EOF
4877 $1
4878 _LTECHO_EOF'
4879 }
4880 ECHO='func_fallback_echo'
4881 fi
4882
4883 # func_echo_all arg...
4884 # Invoke $ECHO with all args, space-separated.
4885 func_echo_all ()
4886 {
4887 $ECHO ""
4888 }
4889
4890 case $ECHO in
4891 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4892 printf "%s\n" "printf" >&6; } ;;
4893 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4894 printf "%s\n" "print -r" >&6; } ;;
4895 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4896 printf "%s\n" "cat" >&6; } ;;
4897 esac
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4913 printf %s "checking for a sed that does not truncate output... " >&6; }
4914 if test ${ac_cv_path_SED+y}
4915 then :
4916 printf %s "(cached) " >&6
4917 else case e in #(
4918 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4919 for ac_i in 1 2 3 4 5 6 7; do
4920 ac_script="$ac_script$as_nl$ac_script"
4921 done
4922 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4923 { ac_script=; unset ac_script;}
4924 if test -z "$SED"; then
4925 ac_path_SED_found=false
4926 # Loop through the user's path and test for each of PROGNAME-LIST
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 case $as_dir in #(((
4932 '') as_dir=./ ;;
4933 */) ;;
4934 *) as_dir=$as_dir/ ;;
4935 esac
4936 for ac_prog in sed gsed
4937 do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4940 as_fn_executable_p "$ac_path_SED" || continue
4941 # Check for GNU ac_path_SED and select it if it is found.
4942 # Check for GNU $ac_path_SED
4943 case `"$ac_path_SED" --version 2>&1` in #(
4944 *GNU*)
4945 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4946 #(
4947 *)
4948 ac_count=0
4949 printf %s 0123456789 >"conftest.in"
4950 while :
4951 do
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 printf "%s\n" '' >> "conftest.nl"
4956 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_SED_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_SED="$ac_path_SED"
4962 ac_path_SED_max=$ac_count
4963 fi
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970 $ac_path_SED_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_SED"; then
4976 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4977 fi
4978 else
4979 ac_cv_path_SED=$SED
4980 fi
4981 ;;
4982 esac
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4985 printf "%s\n" "$ac_cv_path_SED" >&6; }
4986 SED="$ac_cv_path_SED"
4987 rm -f conftest.sed
4988
4989 test -z "$SED" && SED=sed
4990 Xsed="$SED -e 1s/^X//"
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 printf %s "checking for grep that handles long lines and -e... " >&6; }
5004 if test ${ac_cv_path_GREP+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else case e in #(
5008 e) if test -z "$GREP"; then
5009 ac_path_GREP_found=false
5010 # Loop through the user's path and test for each of PROGNAME-LIST
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 do
5014 IFS=$as_save_IFS
5015 case $as_dir in #(((
5016 '') as_dir=./ ;;
5017 */) ;;
5018 *) as_dir=$as_dir/ ;;
5019 esac
5020 for ac_prog in grep ggrep
5021 do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5024 as_fn_executable_p "$ac_path_GREP" || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026 # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in #(
5028 *GNU*)
5029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030 #(
5031 *)
5032 ac_count=0
5033 printf %s 0123456789 >"conftest.in"
5034 while :
5035 do
5036 cat "conftest.in" "conftest.in" >"conftest.tmp"
5037 mv "conftest.tmp" "conftest.in"
5038 cp "conftest.in" "conftest.nl"
5039 printf "%s\n" 'GREP' >> "conftest.nl"
5040 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042 as_fn_arith $ac_count + 1 && ac_count=$as_val
5043 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5044 # Best one so far, save it but keep looking for a better one
5045 ac_cv_path_GREP="$ac_path_GREP"
5046 ac_path_GREP_max=$ac_count
5047 fi
5048 # 10*(2^10) chars as input seems more than enough
5049 test $ac_count -gt 10 && break
5050 done
5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052 esac
5053
5054 $ac_path_GREP_found && break 3
5055 done
5056 done
5057 done
5058 IFS=$as_save_IFS
5059 if test -z "$ac_cv_path_GREP"; then
5060 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061 fi
5062 else
5063 ac_cv_path_GREP=$GREP
5064 fi
5065 ;;
5066 esac
5067 fi
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5069 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5070 GREP="$ac_cv_path_GREP"
5071
5072
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5074 printf %s "checking for egrep... " >&6; }
5075 if test ${ac_cv_path_EGREP+y}
5076 then :
5077 printf %s "(cached) " >&6
5078 else case e in #(
5079 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5080 then ac_cv_path_EGREP="$GREP -E"
5081 else
5082 if test -z "$EGREP"; then
5083 ac_path_EGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088 IFS=$as_save_IFS
5089 case $as_dir in #(((
5090 '') as_dir=./ ;;
5091 */) ;;
5092 *) as_dir=$as_dir/ ;;
5093 esac
5094 for ac_prog in egrep
5095 do
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5098 as_fn_executable_p "$ac_path_EGREP" || continue
5099 # Check for GNU ac_path_EGREP and select it if it is found.
5100 # Check for GNU $ac_path_EGREP
5101 case `"$ac_path_EGREP" --version 2>&1` in #(
5102 *GNU*)
5103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5104 #(
5105 *)
5106 ac_count=0
5107 printf %s 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 printf "%s\n" 'EGREP' >> "conftest.nl"
5114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_EGREP="$ac_path_EGREP"
5120 ac_path_EGREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128 $ac_path_EGREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_EGREP"; then
5134 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136 else
5137 ac_cv_path_EGREP=$EGREP
5138 fi
5139
5140 fi ;;
5141 esac
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5145 EGREP="$ac_cv_path_EGREP"
5146
5147 EGREP_TRADITIONAL=$EGREP
5148 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5149
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5151 printf %s "checking for fgrep... " >&6; }
5152 if test ${ac_cv_path_FGREP+y}
5153 then :
5154 printf %s "(cached) " >&6
5155 else case e in #(
5156 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5157 then ac_cv_path_FGREP="$GREP -F"
5158 else
5159 if test -z "$FGREP"; then
5160 ac_path_FGREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 do
5165 IFS=$as_save_IFS
5166 case $as_dir in #(((
5167 '') as_dir=./ ;;
5168 */) ;;
5169 *) as_dir=$as_dir/ ;;
5170 esac
5171 for ac_prog in fgrep
5172 do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5175 as_fn_executable_p "$ac_path_FGREP" || continue
5176 # Check for GNU ac_path_FGREP and select it if it is found.
5177 # Check for GNU $ac_path_FGREP
5178 case `"$ac_path_FGREP" --version 2>&1` in #(
5179 *GNU*)
5180 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5181 #(
5182 *)
5183 ac_count=0
5184 printf %s 0123456789 >"conftest.in"
5185 while :
5186 do
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 printf "%s\n" 'FGREP' >> "conftest.nl"
5191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_FGREP="$ac_path_FGREP"
5197 ac_path_FGREP_max=$ac_count
5198 fi
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5201 done
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205 $ac_path_FGREP_found && break 3
5206 done
5207 done
5208 done
5209 IFS=$as_save_IFS
5210 if test -z "$ac_cv_path_FGREP"; then
5211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212 fi
5213 else
5214 ac_cv_path_FGREP=$FGREP
5215 fi
5216
5217 fi ;;
5218 esac
5219 fi
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5221 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5222 FGREP="$ac_cv_path_FGREP"
5223
5224
5225 test -z "$GREP" && GREP=grep
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245 # Check whether --with-gnu-ld was given.
5246 if test ${with_gnu_ld+y}
5247 then :
5248 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5249 else case e in #(
5250 e) with_gnu_ld=no ;;
5251 esac
5252 fi
5253
5254 ac_prog=ld
5255 if test yes = "$GCC"; then
5256 # Check if gcc -print-prog-name=ld gives a path.
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258 printf %s "checking for ld used by $CC... " >&6; }
5259 case $host in
5260 *-*-mingw*)
5261 # gcc leaves a trailing carriage return, which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263 *)
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265 esac
5266 case $ac_prog in
5267 # Accept absolute paths.
5268 [\\/]* | ?:[\\/]*)
5269 re_direlt='/[^/][^/]*/\.\./'
5270 # Canonicalize the pathname of ld
5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274 done
5275 test -z "$LD" && LD=$ac_prog
5276 ;;
5277 "")
5278 # If it fails, then pretend we aren't using GCC.
5279 ac_prog=ld
5280 ;;
5281 *)
5282 # If it is relative, then search for the first ld in PATH.
5283 with_gnu_ld=unknown
5284 ;;
5285 esac
5286 elif test yes = "$with_gnu_ld"; then
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288 printf %s "checking for GNU ld... " >&6; }
5289 else
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291 printf %s "checking for non-GNU ld... " >&6; }
5292 fi
5293 if test ${lt_cv_path_LD+y}
5294 then :
5295 printf %s "(cached) " >&6
5296 else case e in #(
5297 e) if test -z "$LD"; then
5298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5299 for ac_dir in $PATH; do
5300 IFS=$lt_save_ifs
5301 test -z "$ac_dir" && ac_dir=.
5302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5303 lt_cv_path_LD=$ac_dir/$ac_prog
5304 # Check to see if the program is GNU ld. I'd rather use --version,
5305 # but apparently some variants of GNU ld only accept -v.
5306 # Break only if it was the GNU/non-GNU ld that we prefer.
5307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5308 *GNU* | *'with BFD'*)
5309 test no != "$with_gnu_ld" && break
5310 ;;
5311 *)
5312 test yes != "$with_gnu_ld" && break
5313 ;;
5314 esac
5315 fi
5316 done
5317 IFS=$lt_save_ifs
5318 else
5319 lt_cv_path_LD=$LD # Let the user override the test with a path.
5320 fi ;;
5321 esac
5322 fi
5323
5324 LD=$lt_cv_path_LD
5325 if test -n "$LD"; then
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5327 printf "%s\n" "$LD" >&6; }
5328 else
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 printf "%s\n" "no" >&6; }
5331 fi
5332 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5334 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5335 if test ${lt_cv_prog_gnu_ld+y}
5336 then :
5337 printf %s "(cached) " >&6
5338 else case e in #(
5339 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5340 case `$LD -v 2>&1 </dev/null` in
5341 *GNU* | *'with BFD'*)
5342 lt_cv_prog_gnu_ld=yes
5343 ;;
5344 *)
5345 lt_cv_prog_gnu_ld=no
5346 ;;
5347 esac ;;
5348 esac
5349 fi
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5352 with_gnu_ld=$lt_cv_prog_gnu_ld
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364 if test ${lt_cv_path_NM+y}
5365 then :
5366 printf %s "(cached) " >&6
5367 else case e in #(
5368 e) if test -n "$NM"; then
5369 # Let the user override the test.
5370 lt_cv_path_NM=$NM
5371 else
5372 lt_nm_to_check=${ac_tool_prefix}nm
5373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5374 lt_nm_to_check="$lt_nm_to_check nm"
5375 fi
5376 for lt_tmp_nm in $lt_nm_to_check; do
5377 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5379 IFS=$lt_save_ifs
5380 test -z "$ac_dir" && ac_dir=.
5381 tmp_nm=$ac_dir/$lt_tmp_nm
5382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5383 # Check to see if the nm accepts a BSD-compat flag.
5384 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5385 # nm: unknown option "B" ignored
5386 # Tru64's nm complains that /dev/null is an invalid object file
5387 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5388 case $build_os in
5389 mingw*) lt_bad_file=conftest.nm/nofile ;;
5390 *) lt_bad_file=/dev/null ;;
5391 esac
5392 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5393 *$lt_bad_file* | *'Invalid file or object type'*)
5394 lt_cv_path_NM="$tmp_nm -B"
5395 break 2
5396 ;;
5397 *)
5398 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5399 */dev/null*)
5400 lt_cv_path_NM="$tmp_nm -p"
5401 break 2
5402 ;;
5403 *)
5404 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5405 continue # so that we can try to find one that supports BSD flags
5406 ;;
5407 esac
5408 ;;
5409 esac
5410 fi
5411 done
5412 IFS=$lt_save_ifs
5413 done
5414 : ${lt_cv_path_NM=no}
5415 fi ;;
5416 esac
5417 fi
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5419 printf "%s\n" "$lt_cv_path_NM" >&6; }
5420 if test no != "$lt_cv_path_NM"; then
5421 NM=$lt_cv_path_NM
5422 else
5423 # Didn't find any BSD compatible name lister, look for dumpbin.
5424 if test -n "$DUMPBIN"; then :
5425 # Let the user override the test.
5426 else
5427 if test -n "$ac_tool_prefix"; then
5428 for ac_prog in dumpbin "link -dump"
5429 do
5430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 printf %s "checking for $ac_word... " >&6; }
5434 if test ${ac_cv_prog_DUMPBIN+y}
5435 then :
5436 printf %s "(cached) " >&6
5437 else case e in #(
5438 e) if test -n "$DUMPBIN"; then
5439 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 case $as_dir in #(((
5446 '') as_dir=./ ;;
5447 */) ;;
5448 *) as_dir=$as_dir/ ;;
5449 esac
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 fi ;;
5461 esac
5462 fi
5463 DUMPBIN=$ac_cv_prog_DUMPBIN
5464 if test -n "$DUMPBIN"; then
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5466 printf "%s\n" "$DUMPBIN" >&6; }
5467 else
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 printf "%s\n" "no" >&6; }
5470 fi
5471
5472
5473 test -n "$DUMPBIN" && break
5474 done
5475 fi
5476 if test -z "$DUMPBIN"; then
5477 ac_ct_DUMPBIN=$DUMPBIN
5478 for ac_prog in dumpbin "link -dump"
5479 do
5480 # Extract the first word of "$ac_prog", so it can be a program name with args.
5481 set dummy $ac_prog; ac_word=$2
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 printf %s "checking for $ac_word... " >&6; }
5484 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5485 then :
5486 printf %s "(cached) " >&6
5487 else case e in #(
5488 e) if test -n "$ac_ct_DUMPBIN"; then
5489 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494 IFS=$as_save_IFS
5495 case $as_dir in #(((
5496 '') as_dir=./ ;;
5497 */) ;;
5498 *) as_dir=$as_dir/ ;;
5499 esac
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 fi ;;
5511 esac
5512 fi
5513 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5514 if test -n "$ac_ct_DUMPBIN"; then
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5516 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5517 else
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 printf "%s\n" "no" >&6; }
5520 fi
5521
5522
5523 test -n "$ac_ct_DUMPBIN" && break
5524 done
5525
5526 if test "x$ac_ct_DUMPBIN" = x; then
5527 DUMPBIN=":"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 DUMPBIN=$ac_ct_DUMPBIN
5536 fi
5537 fi
5538
5539 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5540 *COFF*)
5541 DUMPBIN="$DUMPBIN -symbols -headers"
5542 ;;
5543 *)
5544 DUMPBIN=:
5545 ;;
5546 esac
5547 fi
5548
5549 if test : != "$DUMPBIN"; then
5550 NM=$DUMPBIN
5551 fi
5552 fi
5553 test -z "$NM" && NM=nm
5554
5555
5556
5557
5558
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5561 printf %s "checking the name lister ($NM) interface... " >&6; }
5562 if test ${lt_cv_nm_interface+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else case e in #(
5566 e) lt_cv_nm_interface="BSD nm"
5567 echo "int some_variable = 0;" > conftest.$ac_ext
5568 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5569 (eval "$ac_compile" 2>conftest.err)
5570 cat conftest.err >&5
5571 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5572 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5573 cat conftest.err >&5
5574 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5575 cat conftest.out >&5
5576 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5577 lt_cv_nm_interface="MS dumpbin"
5578 fi
5579 rm -f conftest* ;;
5580 esac
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5583 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5584
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5586 printf %s "checking whether ln -s works... " >&6; }
5587 LN_S=$as_ln_s
5588 if test "$LN_S" = "ln -s"; then
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5590 printf "%s\n" "yes" >&6; }
5591 else
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5593 printf "%s\n" "no, using $LN_S" >&6; }
5594 fi
5595
5596 # find the maximum length of command line arguments
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5598 printf %s "checking the maximum length of command line arguments... " >&6; }
5599 if test ${lt_cv_sys_max_cmd_len+y}
5600 then :
5601 printf %s "(cached) " >&6
5602 else case e in #(
5603 e) i=0
5604 teststring=ABCD
5605
5606 case $build_os in
5607 msdosdjgpp*)
5608 # On DJGPP, this test can blow up pretty badly due to problems in libc
5609 # (any single argument exceeding 2000 bytes causes a buffer overrun
5610 # during glob expansion). Even if it were fixed, the result of this
5611 # check would be larger than it should be.
5612 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5613 ;;
5614
5615 gnu*)
5616 # Under GNU Hurd, this test is not required because there is
5617 # no limit to the length of command line arguments.
5618 # Libtool will interpret -1 as no limit whatsoever
5619 lt_cv_sys_max_cmd_len=-1;
5620 ;;
5621
5622 cygwin* | mingw* | cegcc*)
5623 # On Win9x/ME, this test blows up -- it succeeds, but takes
5624 # about 5 minutes as the teststring grows exponentially.
5625 # Worse, since 9x/ME are not pre-emptively multitasking,
5626 # you end up with a "frozen" computer, even though with patience
5627 # the test eventually succeeds (with a max line length of 256k).
5628 # Instead, let's just punt: use the minimum linelength reported by
5629 # all of the supported platforms: 8192 (on NT/2K/XP).
5630 lt_cv_sys_max_cmd_len=8192;
5631 ;;
5632
5633 mint*)
5634 # On MiNT this can take a long time and run out of memory.
5635 lt_cv_sys_max_cmd_len=8192;
5636 ;;
5637
5638 amigaos*)
5639 # On AmigaOS with pdksh, this test takes hours, literally.
5640 # So we just punt and use a minimum line length of 8192.
5641 lt_cv_sys_max_cmd_len=8192;
5642 ;;
5643
5644 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5645 # This has been around since 386BSD, at least. Likely further.
5646 if test -x /sbin/sysctl; then
5647 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5648 elif test -x /usr/sbin/sysctl; then
5649 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5650 else
5651 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5652 fi
5653 # And add a safety zone
5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5656 ;;
5657
5658 interix*)
5659 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5660 lt_cv_sys_max_cmd_len=196608
5661 ;;
5662
5663 os2*)
5664 # The test takes a long time on OS/2.
5665 lt_cv_sys_max_cmd_len=8192
5666 ;;
5667
5668 osf*)
5669 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5670 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5671 # nice to cause kernel panics so lets avoid the loop below.
5672 # First set a reasonable default.
5673 lt_cv_sys_max_cmd_len=16384
5674 #
5675 if test -x /sbin/sysconfig; then
5676 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5677 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5678 esac
5679 fi
5680 ;;
5681 sco3.2v5*)
5682 lt_cv_sys_max_cmd_len=102400
5683 ;;
5684 sysv5* | sco5v6* | sysv4.2uw2*)
5685 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5686 if test -n "$kargmax"; then
5687 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5688 else
5689 lt_cv_sys_max_cmd_len=32768
5690 fi
5691 ;;
5692 *)
5693 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5694 if test -n "$lt_cv_sys_max_cmd_len" && \
5695 test undefined != "$lt_cv_sys_max_cmd_len"; then
5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5698 else
5699 # Make teststring a little bigger before we do anything with it.
5700 # a 1K string should be a reasonable start.
5701 for i in 1 2 3 4 5 6 7 8; do
5702 teststring=$teststring$teststring
5703 done
5704 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5705 # If test is not a shell built-in, we'll probably end up computing a
5706 # maximum length that is only half of the actual maximum length, but
5707 # we can't tell.
5708 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5710 test 17 != "$i" # 1/2 MB should be enough
5711 do
5712 i=`expr $i + 1`
5713 teststring=$teststring$teststring
5714 done
5715 # Only check the string length outside the loop.
5716 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5717 teststring=
5718 # Add a significant safety factor because C++ compilers can tack on
5719 # massive amounts of additional arguments before passing them to the
5720 # linker. It appears as though 1/2 is a usable value.
5721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5722 fi
5723 ;;
5724 esac
5725 ;;
5726 esac
5727 fi
5728
5729 if test -n "$lt_cv_sys_max_cmd_len"; then
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5731 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5732 else
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5734 printf "%s\n" "none" >&6; }
5735 fi
5736 max_cmd_len=$lt_cv_sys_max_cmd_len
5737
5738
5739
5740
5741
5742
5743 : ${CP="cp -f"}
5744 : ${MV="mv -f"}
5745 : ${RM="rm -f"}
5746
5747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5748 lt_unset=unset
5749 else
5750 lt_unset=false
5751 fi
5752
5753
5754
5755
5756
5757 # test EBCDIC or ASCII
5758 case `echo X|tr X '\101'` in
5759 A) # ASCII based system
5760 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5761 lt_SP2NL='tr \040 \012'
5762 lt_NL2SP='tr \015\012 \040\040'
5763 ;;
5764 *) # EBCDIC based system
5765 lt_SP2NL='tr \100 \n'
5766 lt_NL2SP='tr \r\n \100\100'
5767 ;;
5768 esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5779 printf %s "checking how to convert $build file names to $host format... " >&6; }
5780 if test ${lt_cv_to_host_file_cmd+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else case e in #(
5784 e) case $host in
5785 *-*-mingw* )
5786 case $build in
5787 *-*-mingw* ) # actually msys
5788 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5789 ;;
5790 *-*-cygwin* )
5791 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5792 ;;
5793 * ) # otherwise, assume *nix
5794 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5795 ;;
5796 esac
5797 ;;
5798 *-*-cygwin* )
5799 case $build in
5800 *-*-mingw* ) # actually msys
5801 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5802 ;;
5803 *-*-cygwin* )
5804 lt_cv_to_host_file_cmd=func_convert_file_noop
5805 ;;
5806 * ) # otherwise, assume *nix
5807 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5808 ;;
5809 esac
5810 ;;
5811 * ) # unhandled hosts (and "normal" native builds)
5812 lt_cv_to_host_file_cmd=func_convert_file_noop
5813 ;;
5814 esac
5815 ;;
5816 esac
5817 fi
5818
5819 to_host_file_cmd=$lt_cv_to_host_file_cmd
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5821 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5822
5823
5824
5825
5826
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5828 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5829 if test ${lt_cv_to_tool_file_cmd+y}
5830 then :
5831 printf %s "(cached) " >&6
5832 else case e in #(
5833 e) #assume ordinary cross tools, or native build.
5834 lt_cv_to_tool_file_cmd=func_convert_file_noop
5835 case $host in
5836 *-*-mingw* )
5837 case $build in
5838 *-*-mingw* ) # actually msys
5839 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5840 ;;
5841 esac
5842 ;;
5843 esac
5844 ;;
5845 esac
5846 fi
5847
5848 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5850 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5851
5852
5853
5854
5855
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5857 printf %s "checking for $LD option to reload object files... " >&6; }
5858 if test ${lt_cv_ld_reload_flag+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else case e in #(
5862 e) lt_cv_ld_reload_flag='-r' ;;
5863 esac
5864 fi
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5866 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5867 reload_flag=$lt_cv_ld_reload_flag
5868 case $reload_flag in
5869 "" | " "*) ;;
5870 *) reload_flag=" $reload_flag" ;;
5871 esac
5872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873 case $host_os in
5874 cygwin* | mingw* | pw32* | cegcc*)
5875 if test yes != "$GCC"; then
5876 reload_cmds=false
5877 fi
5878 ;;
5879 darwin*)
5880 if test yes = "$GCC"; then
5881 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5882 else
5883 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5884 fi
5885 ;;
5886 esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}file; ac_word=$2
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 printf %s "checking for $ac_word... " >&6; }
5901 if test ${ac_cv_prog_FILECMD+y}
5902 then :
5903 printf %s "(cached) " >&6
5904 else case e in #(
5905 e) if test -n "$FILECMD"; then
5906 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 case $as_dir in #(((
5913 '') as_dir=./ ;;
5914 */) ;;
5915 *) as_dir=$as_dir/ ;;
5916 esac
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi ;;
5928 esac
5929 fi
5930 FILECMD=$ac_cv_prog_FILECMD
5931 if test -n "$FILECMD"; then
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5933 printf "%s\n" "$FILECMD" >&6; }
5934 else
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 printf "%s\n" "no" >&6; }
5937 fi
5938
5939
5940 fi
5941 if test -z "$ac_cv_prog_FILECMD"; then
5942 ac_ct_FILECMD=$FILECMD
5943 # Extract the first word of "file", so it can be a program name with args.
5944 set dummy file; ac_word=$2
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 printf %s "checking for $ac_word... " >&6; }
5947 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5948 then :
5949 printf %s "(cached) " >&6
5950 else case e in #(
5951 e) if test -n "$ac_ct_FILECMD"; then
5952 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 case $as_dir in #(((
5959 '') as_dir=./ ;;
5960 */) ;;
5961 *) as_dir=$as_dir/ ;;
5962 esac
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_FILECMD="file"
5966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi ;;
5974 esac
5975 fi
5976 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5977 if test -n "$ac_ct_FILECMD"; then
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5979 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5980 else
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 printf "%s\n" "no" >&6; }
5983 fi
5984
5985 if test "x$ac_ct_FILECMD" = x; then
5986 FILECMD=":"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994 FILECMD=$ac_ct_FILECMD
5995 fi
5996 else
5997 FILECMD="$ac_cv_prog_FILECMD"
5998 fi
5999
6000
6001
6002
6003
6004
6005
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 printf %s "checking for $ac_word... " >&6; }
6011 if test ${ac_cv_prog_OBJDUMP+y}
6012 then :
6013 printf %s "(cached) " >&6
6014 else case e in #(
6015 e) if test -n "$OBJDUMP"; then
6016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021 IFS=$as_save_IFS
6022 case $as_dir in #(((
6023 '') as_dir=./ ;;
6024 */) ;;
6025 *) as_dir=$as_dir/ ;;
6026 esac
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6029 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi ;;
6038 esac
6039 fi
6040 OBJDUMP=$ac_cv_prog_OBJDUMP
6041 if test -n "$OBJDUMP"; then
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6043 printf "%s\n" "$OBJDUMP" >&6; }
6044 else
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 printf "%s\n" "no" >&6; }
6047 fi
6048
6049
6050 fi
6051 if test -z "$ac_cv_prog_OBJDUMP"; then
6052 ac_ct_OBJDUMP=$OBJDUMP
6053 # Extract the first word of "objdump", so it can be a program name with args.
6054 set dummy objdump; ac_word=$2
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 printf %s "checking for $ac_word... " >&6; }
6057 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6058 then :
6059 printf %s "(cached) " >&6
6060 else case e in #(
6061 e) if test -n "$ac_ct_OBJDUMP"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 case $as_dir in #(((
6069 '') as_dir=./ ;;
6070 */) ;;
6071 *) as_dir=$as_dir/ ;;
6072 esac
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi ;;
6084 esac
6085 fi
6086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6087 if test -n "$ac_ct_OBJDUMP"; then
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6089 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6090 else
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 printf "%s\n" "no" >&6; }
6093 fi
6094
6095 if test "x$ac_ct_OBJDUMP" = x; then
6096 OBJDUMP="false"
6097 else
6098 case $cross_compiling:$ac_tool_warned in
6099 yes:)
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104 OBJDUMP=$ac_ct_OBJDUMP
6105 fi
6106 else
6107 OBJDUMP="$ac_cv_prog_OBJDUMP"
6108 fi
6109
6110 test -z "$OBJDUMP" && OBJDUMP=objdump
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6121 printf %s "checking how to recognize dependent libraries... " >&6; }
6122 if test ${lt_cv_deplibs_check_method+y}
6123 then :
6124 printf %s "(cached) " >&6
6125 else case e in #(
6126 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6127 lt_cv_file_magic_test_file=
6128 lt_cv_deplibs_check_method='unknown'
6129 # Need to set the preceding variable on all platforms that support
6130 # interlibrary dependencies.
6131 # 'none' -- dependencies not supported.
6132 # 'unknown' -- same as none, but documents that we really don't know.
6133 # 'pass_all' -- all dependencies passed with no checks.
6134 # 'test_compile' -- check by making test program.
6135 # 'file_magic [[regex]]' -- check by looking for files in library path
6136 # that responds to the $file_magic_cmd with a given extended regex.
6137 # If you have 'file' or equivalent on your system and you're not sure
6138 # whether 'pass_all' will *always* work, you probably want this one.
6139
6140 case $host_os in
6141 aix[4-9]*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 beos*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 bsdi[45]*)
6150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6151 lt_cv_file_magic_cmd='$FILECMD -L'
6152 lt_cv_file_magic_test_file=/shlib/libc.so
6153 ;;
6154
6155 cygwin*)
6156 # func_win32_libid is a shell function defined in ltmain.sh
6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158 lt_cv_file_magic_cmd='func_win32_libid'
6159 ;;
6160
6161 mingw* | pw32*)
6162 # Base MSYS/MinGW do not provide the 'file' command needed by
6163 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6164 # unless we find 'file', for example because we are cross-compiling.
6165 if ( file / ) >/dev/null 2>&1; then
6166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6167 lt_cv_file_magic_cmd='func_win32_libid'
6168 else
6169 # Keep this pattern in sync with the one in func_win32_libid.
6170 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6171 lt_cv_file_magic_cmd='$OBJDUMP -f'
6172 fi
6173 ;;
6174
6175 cegcc*)
6176 # use the weaker test based on 'objdump'. See mingw*.
6177 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6178 lt_cv_file_magic_cmd='$OBJDUMP -f'
6179 ;;
6180
6181 darwin* | rhapsody*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184
6185 freebsd* | dragonfly* | midnightbsd*)
6186 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6187 case $host_cpu in
6188 i*86 )
6189 # Not sure whether the presence of OpenBSD here was a mistake.
6190 # Let's accept both of them until this is cleared up.
6191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6192 lt_cv_file_magic_cmd=$FILECMD
6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6194 ;;
6195 esac
6196 else
6197 lt_cv_deplibs_check_method=pass_all
6198 fi
6199 ;;
6200
6201 haiku*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 hpux10.20* | hpux11*)
6206 lt_cv_file_magic_cmd=$FILECMD
6207 case $host_cpu in
6208 ia64*)
6209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6210 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6211 ;;
6212 hppa*64*)
6213 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]'
6214 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6215 ;;
6216 *)
6217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6218 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219 ;;
6220 esac
6221 ;;
6222
6223 interix[3-9]*)
6224 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6226 ;;
6227
6228 irix5* | irix6* | nonstopux*)
6229 case $LD in
6230 *-32|*"-32 ") libmagic=32-bit;;
6231 *-n32|*"-n32 ") libmagic=N32;;
6232 *-64|*"-64 ") libmagic=64-bit;;
6233 *) libmagic=never-match;;
6234 esac
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237
6238 # This must be glibc/ELF.
6239 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 netbsd*)
6244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246 else
6247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6248 fi
6249 ;;
6250
6251 newos6*)
6252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6253 lt_cv_file_magic_cmd=$FILECMD
6254 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6255 ;;
6256
6257 *nto* | *qnx*)
6258 lt_cv_deplibs_check_method=pass_all
6259 ;;
6260
6261 openbsd* | bitrig*)
6262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6264 else
6265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266 fi
6267 ;;
6268
6269 osf3* | osf4* | osf5*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272
6273 rdos*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 solaris*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284
6285 sysv4 | sysv4.3*)
6286 case $host_vendor in
6287 motorola)
6288 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]'
6289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6290 ;;
6291 ncr)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294 sequent)
6295 lt_cv_file_magic_cmd='/bin/file'
6296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6297 ;;
6298 sni)
6299 lt_cv_file_magic_cmd='/bin/file'
6300 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6301 lt_cv_file_magic_test_file=/lib/libc.so
6302 ;;
6303 siemens)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306 pc)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309 esac
6310 ;;
6311
6312 tpf*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315 os2*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318 esac
6319 ;;
6320 esac
6321 fi
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6323 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6324
6325 file_magic_glob=
6326 want_nocaseglob=no
6327 if test "$build" = "$host"; then
6328 case $host_os in
6329 mingw* | pw32*)
6330 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6331 want_nocaseglob=yes
6332 else
6333 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6334 fi
6335 ;;
6336 esac
6337 fi
6338
6339 file_magic_cmd=$lt_cv_file_magic_cmd
6340 deplibs_check_method=$lt_cv_deplibs_check_method
6341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 if test -n "$ac_tool_prefix"; then
6365 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6366 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 printf %s "checking for $ac_word... " >&6; }
6369 if test ${ac_cv_prog_DLLTOOL+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else case e in #(
6373 e) if test -n "$DLLTOOL"; then
6374 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 case $as_dir in #(((
6381 '') as_dir=./ ;;
6382 */) ;;
6383 *) as_dir=$as_dir/ ;;
6384 esac
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 fi ;;
6396 esac
6397 fi
6398 DLLTOOL=$ac_cv_prog_DLLTOOL
6399 if test -n "$DLLTOOL"; then
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6401 printf "%s\n" "$DLLTOOL" >&6; }
6402 else
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 printf "%s\n" "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_DLLTOOL"; then
6410 ac_ct_DLLTOOL=$DLLTOOL
6411 # Extract the first word of "dlltool", so it can be a program name with args.
6412 set dummy dlltool; ac_word=$2
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 printf %s "checking for $ac_word... " >&6; }
6415 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else case e in #(
6419 e) if test -n "$ac_ct_DLLTOOL"; then
6420 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 case $as_dir in #(((
6427 '') as_dir=./ ;;
6428 */) ;;
6429 *) as_dir=$as_dir/ ;;
6430 esac
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi ;;
6442 esac
6443 fi
6444 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6445 if test -n "$ac_ct_DLLTOOL"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6447 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6448 else
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_DLLTOOL" = x; then
6454 DLLTOOL="false"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 DLLTOOL=$ac_ct_DLLTOOL
6463 fi
6464 else
6465 DLLTOOL="$ac_cv_prog_DLLTOOL"
6466 fi
6467
6468 test -z "$DLLTOOL" && DLLTOOL=dlltool
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6480 printf %s "checking how to associate runtime and link libraries... " >&6; }
6481 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else case e in #(
6485 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6486
6487 case $host_os in
6488 cygwin* | mingw* | pw32* | cegcc*)
6489 # two different shell functions defined in ltmain.sh;
6490 # decide which one to use based on capabilities of $DLLTOOL
6491 case `$DLLTOOL --help 2>&1` in
6492 *--identify-strict*)
6493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6494 ;;
6495 *)
6496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6497 ;;
6498 esac
6499 ;;
6500 *)
6501 # fallback: assume linklib IS sharedlib
6502 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6503 ;;
6504 esac
6505 ;;
6506 esac
6507 fi
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6509 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6510 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6511 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6512
6513
6514
6515
6516
6517
6518
6519 if test -n "$ac_tool_prefix"; then
6520 for ac_prog in ar
6521 do
6522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 printf %s "checking for $ac_word... " >&6; }
6526 if test ${ac_cv_prog_AR+y}
6527 then :
6528 printf %s "(cached) " >&6
6529 else case e in #(
6530 e) if test -n "$AR"; then
6531 ac_cv_prog_AR="$AR" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536 IFS=$as_save_IFS
6537 case $as_dir in #(((
6538 '') as_dir=./ ;;
6539 */) ;;
6540 *) as_dir=$as_dir/ ;;
6541 esac
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi ;;
6553 esac
6554 fi
6555 AR=$ac_cv_prog_AR
6556 if test -n "$AR"; then
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558 printf "%s\n" "$AR" >&6; }
6559 else
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 printf "%s\n" "no" >&6; }
6562 fi
6563
6564
6565 test -n "$AR" && break
6566 done
6567 fi
6568 if test -z "$AR"; then
6569 ac_ct_AR=$AR
6570 for ac_prog in ar
6571 do
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 printf %s "checking for $ac_word... " >&6; }
6576 if test ${ac_cv_prog_ac_ct_AR+y}
6577 then :
6578 printf %s "(cached) " >&6
6579 else case e in #(
6580 e) if test -n "$ac_ct_AR"; then
6581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_AR="$ac_prog"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi ;;
6603 esac
6604 fi
6605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6606 if test -n "$ac_ct_AR"; then
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6608 printf "%s\n" "$ac_ct_AR" >&6; }
6609 else
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 printf "%s\n" "no" >&6; }
6612 fi
6613
6614
6615 test -n "$ac_ct_AR" && break
6616 done
6617
6618 if test "x$ac_ct_AR" = x; then
6619 AR="false"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622 yes:)
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6626 esac
6627 AR=$ac_ct_AR
6628 fi
6629 fi
6630
6631 : ${AR=ar}
6632
6633
6634
6635
6636
6637
6638 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6639 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6640 # higher priority because thats what people were doing historically (setting
6641 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6642 # variable obsoleted/removed.
6643
6644 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6645 lt_ar_flags=$AR_FLAGS
6646
6647
6648
6649
6650
6651
6652 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6653 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6654
6655
6656
6657
6658
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6661 printf %s "checking for archiver @FILE support... " >&6; }
6662 if test ${lt_cv_ar_at_file+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) lt_cv_ar_at_file=no
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669
6670 int
6671 main (void)
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"
6679 then :
6680 echo conftest.$ac_objext > conftest.lst
6681 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6683 (eval $lt_ar_try) 2>&5
6684 ac_status=$?
6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }
6687 if test 0 -eq "$ac_status"; then
6688 # Ensure the archiver fails upon bogus file names.
6689 rm -f conftest.$ac_objext libconftest.a
6690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6691 (eval $lt_ar_try) 2>&5
6692 ac_status=$?
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }
6695 if test 0 -ne "$ac_status"; then
6696 lt_cv_ar_at_file=@
6697 fi
6698 fi
6699 rm -f conftest.* libconftest.a
6700
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6703 ;;
6704 esac
6705 fi
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6707 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6708
6709 if test no = "$lt_cv_ar_at_file"; then
6710 archiver_list_spec=
6711 else
6712 archiver_list_spec=$lt_cv_ar_at_file
6713 fi
6714
6715
6716
6717
6718
6719
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}strip; ac_word=$2
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 printf %s "checking for $ac_word... " >&6; }
6726 if test ${ac_cv_prog_STRIP+y}
6727 then :
6728 printf %s "(cached) " >&6
6729 else case e in #(
6730 e) if test -n "$STRIP"; then
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 case $as_dir in #(((
6738 '') as_dir=./ ;;
6739 */) ;;
6740 *) as_dir=$as_dir/ ;;
6741 esac
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi ;;
6753 esac
6754 fi
6755 STRIP=$ac_cv_prog_STRIP
6756 if test -n "$STRIP"; then
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6758 printf "%s\n" "$STRIP" >&6; }
6759 else
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 printf "%s\n" "no" >&6; }
6762 fi
6763
6764
6765 fi
6766 if test -z "$ac_cv_prog_STRIP"; then
6767 ac_ct_STRIP=$STRIP
6768 # Extract the first word of "strip", so it can be a program name with args.
6769 set dummy strip; ac_word=$2
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 printf %s "checking for $ac_word... " >&6; }
6772 if test ${ac_cv_prog_ac_ct_STRIP+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) if test -n "$ac_ct_STRIP"; then
6777 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_STRIP="strip"
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi ;;
6799 esac
6800 fi
6801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6802 if test -n "$ac_ct_STRIP"; then
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6804 printf "%s\n" "$ac_ct_STRIP" >&6; }
6805 else
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 printf "%s\n" "no" >&6; }
6808 fi
6809
6810 if test "x$ac_ct_STRIP" = x; then
6811 STRIP=":"
6812 else
6813 case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819 STRIP=$ac_ct_STRIP
6820 fi
6821 else
6822 STRIP="$ac_cv_prog_STRIP"
6823 fi
6824
6825 test -z "$STRIP" && STRIP=:
6826
6827
6828
6829
6830
6831
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 printf %s "checking for $ac_word... " >&6; }
6837 if test ${ac_cv_prog_RANLIB+y}
6838 then :
6839 printf %s "(cached) " >&6
6840 else case e in #(
6841 e) if test -n "$RANLIB"; then
6842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 case $as_dir in #(((
6849 '') as_dir=./ ;;
6850 */) ;;
6851 *) as_dir=$as_dir/ ;;
6852 esac
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi ;;
6864 esac
6865 fi
6866 RANLIB=$ac_cv_prog_RANLIB
6867 if test -n "$RANLIB"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6869 printf "%s\n" "$RANLIB" >&6; }
6870 else
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 printf "%s\n" "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_RANLIB"; then
6878 ac_ct_RANLIB=$RANLIB
6879 # Extract the first word of "ranlib", so it can be a program name with args.
6880 set dummy ranlib; ac_word=$2
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 printf %s "checking for $ac_word... " >&6; }
6883 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6884 then :
6885 printf %s "(cached) " >&6
6886 else case e in #(
6887 e) if test -n "$ac_ct_RANLIB"; then
6888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 case $as_dir in #(((
6895 '') as_dir=./ ;;
6896 */) ;;
6897 *) as_dir=$as_dir/ ;;
6898 esac
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_RANLIB="ranlib"
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi ;;
6910 esac
6911 fi
6912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6913 if test -n "$ac_ct_RANLIB"; then
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6915 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6916 else
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 printf "%s\n" "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_RANLIB" = x; then
6922 RANLIB=":"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 RANLIB=$ac_ct_RANLIB
6931 fi
6932 else
6933 RANLIB="$ac_cv_prog_RANLIB"
6934 fi
6935
6936 test -z "$RANLIB" && RANLIB=:
6937
6938
6939
6940
6941
6942
6943 # Determine commands to create old-style static archives.
6944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6945 old_postinstall_cmds='chmod 644 $oldlib'
6946 old_postuninstall_cmds=
6947
6948 if test -n "$RANLIB"; then
6949 case $host_os in
6950 bitrig* | openbsd*)
6951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6952 ;;
6953 *)
6954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6955 ;;
6956 esac
6957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6958 fi
6959
6960 case $host_os in
6961 darwin*)
6962 lock_old_archive_extraction=yes ;;
6963 *)
6964 lock_old_archive_extraction=no ;;
6965 esac
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 # If no C compiler was specified, use CC.
7006 LTCC=${LTCC-"$CC"}
7007
7008 # If no C compiler flags were specified, use CFLAGS.
7009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7010
7011 # Allow CC to be a program name with arguments.
7012 compiler=$CC
7013
7014
7015 # Check for command to grab the raw symbol name followed by C symbol from nm.
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7017 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7018 if test ${lt_cv_sys_global_symbol_pipe+y}
7019 then :
7020 printf %s "(cached) " >&6
7021 else case e in #(
7022 e)
7023 # These are sane defaults that work on at least a few old systems.
7024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7025
7026 # Character class describing NM global symbol codes.
7027 symcode='[BCDEGRST]'
7028
7029 # Regexp to match symbols that can be accessed directly from C.
7030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7031
7032 # Define system-specific variables.
7033 case $host_os in
7034 aix*)
7035 symcode='[BCDT]'
7036 ;;
7037 cygwin* | mingw* | pw32* | cegcc*)
7038 symcode='[ABCDGISTW]'
7039 ;;
7040 hpux*)
7041 if test ia64 = "$host_cpu"; then
7042 symcode='[ABCDEGRST]'
7043 fi
7044 ;;
7045 irix* | nonstopux*)
7046 symcode='[BCDEGRST]'
7047 ;;
7048 osf*)
7049 symcode='[BCDEGQRST]'
7050 ;;
7051 solaris*)
7052 symcode='[BDRT]'
7053 ;;
7054 sco3.2v5*)
7055 symcode='[DT]'
7056 ;;
7057 sysv4.2uw2*)
7058 symcode='[DT]'
7059 ;;
7060 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7061 symcode='[ABDT]'
7062 ;;
7063 sysv4)
7064 symcode='[DFNSTU]'
7065 ;;
7066 esac
7067
7068 # If we're using GNU nm, then use its standard symbol codes.
7069 case `$NM -V 2>&1` in
7070 *GNU* | *'with BFD'*)
7071 symcode='[ABCDGIRSTW]' ;;
7072 esac
7073
7074 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7075 # Gets list of data symbols to import.
7076 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7077 # Adjust the below global symbol transforms to fixup imported variables.
7078 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7079 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7080 lt_c_name_lib_hook="\
7081 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7082 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7083 else
7084 # Disable hooks by default.
7085 lt_cv_sys_global_symbol_to_import=
7086 lt_cdecl_hook=
7087 lt_c_name_hook=
7088 lt_c_name_lib_hook=
7089 fi
7090
7091 # Transform an extracted symbol line into a proper C declaration.
7092 # Some systems (esp. on ia64) link data and code symbols differently,
7093 # so use this general approach.
7094 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7095 $lt_cdecl_hook\
7096 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7097 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7098
7099 # Transform an extracted symbol line into symbol name and symbol address
7100 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7101 $lt_c_name_hook\
7102 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7103 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7104
7105 # Transform an extracted symbol line into symbol name with lib prefix and
7106 # symbol address.
7107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7108 $lt_c_name_lib_hook\
7109 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7110 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7111 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7112
7113 # Handle CRLF in mingw tool chain
7114 opt_cr=
7115 case $build_os in
7116 mingw*)
7117 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7118 ;;
7119 esac
7120
7121 # Try without a prefix underscore, then with it.
7122 for ac_symprfx in "" "_"; do
7123
7124 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7125 symxfrm="\\1 $ac_symprfx\\2 \\2"
7126
7127 # Write the raw and C identifiers.
7128 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7129 # Fake it for dumpbin and say T for any non-static function,
7130 # D for any global variable and I for any imported variable.
7131 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7132 # which start with @ or ?.
7133 lt_cv_sys_global_symbol_pipe="$AWK '"\
7134 " {last_section=section; section=\$ 3};"\
7135 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7136 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7137 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7138 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7139 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7140 " \$ 0!~/External *\|/{next};"\
7141 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7142 " {if(hide[section]) next};"\
7143 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7144 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7145 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7146 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7147 " ' prfx=^$ac_symprfx"
7148 else
7149 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7150 fi
7151 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7152
7153 # Check to see that the pipe works correctly.
7154 pipe_works=no
7155
7156 rm -f conftest*
7157 cat > conftest.$ac_ext <<_LT_EOF
7158 #ifdef __cplusplus
7159 extern "C" {
7160 #endif
7161 char nm_test_var;
7162 void nm_test_func(void);
7163 void nm_test_func(void){}
7164 #ifdef __cplusplus
7165 }
7166 #endif
7167 int main(){nm_test_var='a';nm_test_func();return(0);}
7168 _LT_EOF
7169
7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171 (eval $ac_compile) 2>&5
7172 ac_status=$?
7173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174 test $ac_status = 0; }; then
7175 # Now try to grab the symbols.
7176 nlist=conftest.nm
7177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7178 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7179 ac_status=$?
7180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181 test $ac_status = 0; } && test -s "$nlist"; then
7182 # Try sorting and uniquifying the output.
7183 if sort "$nlist" | uniq > "$nlist"T; then
7184 mv -f "$nlist"T "$nlist"
7185 else
7186 rm -f "$nlist"T
7187 fi
7188
7189 # Make sure that we snagged all the symbols we need.
7190 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7191 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7192 cat <<_LT_EOF > conftest.$ac_ext
7193 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7194 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7195 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7196 relocations are performed -- see ld's documentation on pseudo-relocs. */
7197 # define LT_DLSYM_CONST
7198 #elif defined __osf__
7199 /* This system does not cope well with relocations in const data. */
7200 # define LT_DLSYM_CONST
7201 #else
7202 # define LT_DLSYM_CONST const
7203 #endif
7204
7205 #ifdef __cplusplus
7206 extern "C" {
7207 #endif
7208
7209 _LT_EOF
7210 # Now generate the symbol file.
7211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7212
7213 cat <<_LT_EOF >> conftest.$ac_ext
7214
7215 /* The mapping between symbol names and symbols. */
7216 LT_DLSYM_CONST struct {
7217 const char *name;
7218 void *address;
7219 }
7220 lt__PROGRAM__LTX_preloaded_symbols[] =
7221 {
7222 { "@PROGRAM@", (void *) 0 },
7223 _LT_EOF
7224 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7225 cat <<\_LT_EOF >> conftest.$ac_ext
7226 {0, (void *) 0}
7227 };
7228
7229 /* This works around a problem in FreeBSD linker */
7230 #ifdef FREEBSD_WORKAROUND
7231 static const void *lt_preloaded_setup() {
7232 return lt__PROGRAM__LTX_preloaded_symbols;
7233 }
7234 #endif
7235
7236 #ifdef __cplusplus
7237 }
7238 #endif
7239 _LT_EOF
7240 # Now try linking the two files.
7241 mv conftest.$ac_objext conftstm.$ac_objext
7242 lt_globsym_save_LIBS=$LIBS
7243 lt_globsym_save_CFLAGS=$CFLAGS
7244 LIBS=conftstm.$ac_objext
7245 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7247 (eval $ac_link) 2>&5
7248 ac_status=$?
7249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7251 pipe_works=yes
7252 fi
7253 LIBS=$lt_globsym_save_LIBS
7254 CFLAGS=$lt_globsym_save_CFLAGS
7255 else
7256 echo "cannot find nm_test_func in $nlist" >&5
7257 fi
7258 else
7259 echo "cannot find nm_test_var in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7263 fi
7264 else
7265 echo "$progname: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 fi
7268 rm -rf conftest* conftst*
7269
7270 # Do not use the global_symbol_pipe unless it works.
7271 if test yes = "$pipe_works"; then
7272 break
7273 else
7274 lt_cv_sys_global_symbol_pipe=
7275 fi
7276 done
7277 ;;
7278 esac
7279 fi
7280
7281 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7282 lt_cv_sys_global_symbol_to_cdecl=
7283 fi
7284 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7286 printf "%s\n" "failed" >&6; }
7287 else
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7289 printf "%s\n" "ok" >&6; }
7290 fi
7291
7292 # Response file support.
7293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7294 nm_file_list_spec='@'
7295 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7296 nm_file_list_spec='@'
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7336 printf %s "checking for sysroot... " >&6; }
7337
7338 # Check whether --with-sysroot was given.
7339 if test ${with_sysroot+y}
7340 then :
7341 withval=$with_sysroot;
7342 else case e in #(
7343 e) with_sysroot=no ;;
7344 esac
7345 fi
7346
7347
7348 lt_sysroot=
7349 case $with_sysroot in #(
7350 yes)
7351 if test yes = "$GCC"; then
7352 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7353 fi
7354 ;; #(
7355 /*)
7356 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7357 ;; #(
7358 no|'')
7359 ;; #(
7360 *)
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7362 printf "%s\n" "$with_sysroot" >&6; }
7363 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7364 ;;
7365 esac
7366
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7368 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7369
7370
7371
7372
7373
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7375 printf %s "checking for a working dd... " >&6; }
7376 if test ${ac_cv_path_lt_DD+y}
7377 then :
7378 printf %s "(cached) " >&6
7379 else case e in #(
7380 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7381 cat conftest.i conftest.i >conftest2.i
7382 : ${lt_DD:=$DD}
7383 if test -z "$lt_DD"; then
7384 ac_path_lt_DD_found=false
7385 # Loop through the user's path and test for each of PROGNAME-LIST
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 case $as_dir in #(((
7391 '') as_dir=./ ;;
7392 */) ;;
7393 *) as_dir=$as_dir/ ;;
7394 esac
7395 for ac_prog in dd
7396 do
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7399 as_fn_executable_p "$ac_path_lt_DD" || continue
7400 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7401 cmp -s conftest.i conftest.out \
7402 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7403 fi
7404 $ac_path_lt_DD_found && break 3
7405 done
7406 done
7407 done
7408 IFS=$as_save_IFS
7409 if test -z "$ac_cv_path_lt_DD"; then
7410 :
7411 fi
7412 else
7413 ac_cv_path_lt_DD=$lt_DD
7414 fi
7415
7416 rm -f conftest.i conftest2.i conftest.out ;;
7417 esac
7418 fi
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7420 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7421
7422
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7424 printf %s "checking how to truncate binary pipes... " >&6; }
7425 if test ${lt_cv_truncate_bin+y}
7426 then :
7427 printf %s "(cached) " >&6
7428 else case e in #(
7429 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7430 cat conftest.i conftest.i >conftest2.i
7431 lt_cv_truncate_bin=
7432 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7433 cmp -s conftest.i conftest.out \
7434 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7435 fi
7436 rm -f conftest.i conftest2.i conftest.out
7437 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7438 esac
7439 fi
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7441 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7442
7443
7444
7445
7446
7447
7448
7449 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7450 func_cc_basename ()
7451 {
7452 for cc_temp in $*""; do
7453 case $cc_temp in
7454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7456 \-*) ;;
7457 *) break;;
7458 esac
7459 done
7460 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7461 }
7462
7463 # Check whether --enable-libtool-lock was given.
7464 if test ${enable_libtool_lock+y}
7465 then :
7466 enableval=$enable_libtool_lock;
7467 fi
7468
7469 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7470
7471 # Some flags need to be propagated to the compiler or linker for good
7472 # libtool support.
7473 case $host in
7474 ia64-*-hpux*)
7475 # Find out what ABI is being produced by ac_compile, and set mode
7476 # options accordingly.
7477 echo 'int i;' > conftest.$ac_ext
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
7481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 case `$FILECMD conftest.$ac_objext` in
7484 *ELF-32*)
7485 HPUX_IA64_MODE=32
7486 ;;
7487 *ELF-64*)
7488 HPUX_IA64_MODE=64
7489 ;;
7490 esac
7491 fi
7492 rm -rf conftest*
7493 ;;
7494 *-*-irix6*)
7495 # Find out what ABI is being produced by ac_compile, and set linker
7496 # options accordingly.
7497 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7499 (eval $ac_compile) 2>&5
7500 ac_status=$?
7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502 test $ac_status = 0; }; then
7503 if test yes = "$lt_cv_prog_gnu_ld"; then
7504 case `$FILECMD conftest.$ac_objext` in
7505 *32-bit*)
7506 LD="${LD-ld} -melf32bsmip"
7507 ;;
7508 *N32*)
7509 LD="${LD-ld} -melf32bmipn32"
7510 ;;
7511 *64-bit*)
7512 LD="${LD-ld} -melf64bmip"
7513 ;;
7514 esac
7515 else
7516 case `$FILECMD conftest.$ac_objext` in
7517 *32-bit*)
7518 LD="${LD-ld} -32"
7519 ;;
7520 *N32*)
7521 LD="${LD-ld} -n32"
7522 ;;
7523 *64-bit*)
7524 LD="${LD-ld} -64"
7525 ;;
7526 esac
7527 fi
7528 fi
7529 rm -rf conftest*
7530 ;;
7531
7532 mips64*-*linux*)
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 emul=elf
7542 case `$FILECMD conftest.$ac_objext` in
7543 *32-bit*)
7544 emul="${emul}32"
7545 ;;
7546 *64-bit*)
7547 emul="${emul}64"
7548 ;;
7549 esac
7550 case `$FILECMD conftest.$ac_objext` in
7551 *MSB*)
7552 emul="${emul}btsmip"
7553 ;;
7554 *LSB*)
7555 emul="${emul}ltsmip"
7556 ;;
7557 esac
7558 case `$FILECMD conftest.$ac_objext` in
7559 *N32*)
7560 emul="${emul}n32"
7561 ;;
7562 esac
7563 LD="${LD-ld} -m $emul"
7564 fi
7565 rm -rf conftest*
7566 ;;
7567
7568 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7569 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7570 # Find out what ABI is being produced by ac_compile, and set linker
7571 # options accordingly. Note that the listed cases only cover the
7572 # situations where additional linker options are needed (such as when
7573 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7574 # vice versa); the common cases where no linker options are needed do
7575 # not appear in the list.
7576 echo 'int i;' > conftest.$ac_ext
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578 (eval $ac_compile) 2>&5
7579 ac_status=$?
7580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; then
7582 case `$FILECMD conftest.o` in
7583 *32-bit*)
7584 case $host in
7585 x86_64-*kfreebsd*-gnu)
7586 LD="${LD-ld} -m elf_i386_fbsd"
7587 ;;
7588 x86_64-*linux*)
7589 case `$FILECMD conftest.o` in
7590 *x86-64*)
7591 LD="${LD-ld} -m elf32_x86_64"
7592 ;;
7593 *)
7594 LD="${LD-ld} -m elf_i386"
7595 ;;
7596 esac
7597 ;;
7598 powerpc64le-*linux*)
7599 LD="${LD-ld} -m elf32lppclinux"
7600 ;;
7601 powerpc64-*linux*)
7602 LD="${LD-ld} -m elf32ppclinux"
7603 ;;
7604 s390x-*linux*)
7605 LD="${LD-ld} -m elf_s390"
7606 ;;
7607 sparc64-*linux*)
7608 LD="${LD-ld} -m elf32_sparc"
7609 ;;
7610 esac
7611 ;;
7612 *64-bit*)
7613 case $host in
7614 x86_64-*kfreebsd*-gnu)
7615 LD="${LD-ld} -m elf_x86_64_fbsd"
7616 ;;
7617 x86_64-*linux*)
7618 LD="${LD-ld} -m elf_x86_64"
7619 ;;
7620 powerpcle-*linux*)
7621 LD="${LD-ld} -m elf64lppc"
7622 ;;
7623 powerpc-*linux*)
7624 LD="${LD-ld} -m elf64ppc"
7625 ;;
7626 s390*-*linux*|s390*-*tpf*)
7627 LD="${LD-ld} -m elf64_s390"
7628 ;;
7629 sparc*-*linux*)
7630 LD="${LD-ld} -m elf64_sparc"
7631 ;;
7632 esac
7633 ;;
7634 esac
7635 fi
7636 rm -rf conftest*
7637 ;;
7638
7639 *-*-sco3.2v5*)
7640 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7641 SAVE_CFLAGS=$CFLAGS
7642 CFLAGS="$CFLAGS -belf"
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7644 printf %s "checking whether the C compiler needs -belf... " >&6; }
7645 if test ${lt_cv_cc_needs_belf+y}
7646 then :
7647 printf %s "(cached) " >&6
7648 else case e in #(
7649 e) ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657
7658 int
7659 main (void)
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"
7667 then :
7668 lt_cv_cc_needs_belf=yes
7669 else case e in #(
7670 e) lt_cv_cc_needs_belf=no ;;
7671 esac
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674 conftest$ac_exeext conftest.$ac_ext
7675 ac_ext=c
7676 ac_cpp='$CPP $CPPFLAGS'
7677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 ;;
7681 esac
7682 fi
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7684 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7685 if test yes != "$lt_cv_cc_needs_belf"; then
7686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7687 CFLAGS=$SAVE_CFLAGS
7688 fi
7689 ;;
7690 *-*solaris*)
7691 # Find out what ABI is being produced by ac_compile, and set linker
7692 # options accordingly.
7693 echo 'int i;' > conftest.$ac_ext
7694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695 (eval $ac_compile) 2>&5
7696 ac_status=$?
7697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; }; then
7699 case `$FILECMD conftest.o` in
7700 *64-bit*)
7701 case $lt_cv_prog_gnu_ld in
7702 yes*)
7703 case $host in
7704 i?86-*-solaris*|x86_64-*-solaris*)
7705 LD="${LD-ld} -m elf_x86_64"
7706 ;;
7707 sparc*-*-solaris*)
7708 LD="${LD-ld} -m elf64_sparc"
7709 ;;
7710 esac
7711 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7712 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7713 LD=${LD-ld}_sol2
7714 fi
7715 ;;
7716 *)
7717 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7718 LD="${LD-ld} -64"
7719 fi
7720 ;;
7721 esac
7722 ;;
7723 esac
7724 fi
7725 rm -rf conftest*
7726 ;;
7727 esac
7728
7729 need_locks=$enable_libtool_lock
7730
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7733 set dummy ${ac_tool_prefix}mt; ac_word=$2
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 printf %s "checking for $ac_word... " >&6; }
7736 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7737 then :
7738 printf %s "(cached) " >&6
7739 else case e in #(
7740 e) if test -n "$MANIFEST_TOOL"; then
7741 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 case $as_dir in #(((
7748 '') as_dir=./ ;;
7749 */) ;;
7750 *) as_dir=$as_dir/ ;;
7751 esac
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi ;;
7763 esac
7764 fi
7765 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7766 if test -n "$MANIFEST_TOOL"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7768 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7769 else
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7772 fi
7773
7774
7775 fi
7776 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7777 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7778 # Extract the first word of "mt", so it can be a program name with args.
7779 set dummy mt; ac_word=$2
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 printf %s "checking for $ac_word... " >&6; }
7782 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7783 then :
7784 printf %s "(cached) " >&6
7785 else case e in #(
7786 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7787 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792 IFS=$as_save_IFS
7793 case $as_dir in #(((
7794 '') as_dir=./ ;;
7795 */) ;;
7796 *) as_dir=$as_dir/ ;;
7797 esac
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808 fi ;;
7809 esac
7810 fi
7811 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7812 if test -n "$ac_ct_MANIFEST_TOOL"; then
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7814 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7815 else
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 printf "%s\n" "no" >&6; }
7818 fi
7819
7820 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7821 MANIFEST_TOOL=":"
7822 else
7823 case $cross_compiling:$ac_tool_warned in
7824 yes:)
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7827 ac_tool_warned=yes ;;
7828 esac
7829 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7830 fi
7831 else
7832 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7833 fi
7834
7835 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7837 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7838 if test ${lt_cv_path_mainfest_tool+y}
7839 then :
7840 printf %s "(cached) " >&6
7841 else case e in #(
7842 e) lt_cv_path_mainfest_tool=no
7843 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7844 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7845 cat conftest.err >&5
7846 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7847 lt_cv_path_mainfest_tool=yes
7848 fi
7849 rm -f conftest* ;;
7850 esac
7851 fi
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7853 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7854 if test yes != "$lt_cv_path_mainfest_tool"; then
7855 MANIFEST_TOOL=:
7856 fi
7857
7858
7859
7860
7861
7862
7863 case $host_os in
7864 rhapsody* | darwin*)
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_prog_DSYMUTIL+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else case e in #(
7874 e) if test -n "$DSYMUTIL"; then
7875 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 case $as_dir in #(((
7882 '') as_dir=./ ;;
7883 */) ;;
7884 *) as_dir=$as_dir/ ;;
7885 esac
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896 fi ;;
7897 esac
7898 fi
7899 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7900 if test -n "$DSYMUTIL"; then
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7902 printf "%s\n" "$DSYMUTIL" >&6; }
7903 else
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 printf "%s\n" "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_DSYMUTIL"; then
7911 ac_ct_DSYMUTIL=$DSYMUTIL
7912 # Extract the first word of "dsymutil", so it can be a program name with args.
7913 set dummy dsymutil; ac_word=$2
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 printf %s "checking for $ac_word... " >&6; }
7916 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7917 then :
7918 printf %s "(cached) " >&6
7919 else case e in #(
7920 e) if test -n "$ac_ct_DSYMUTIL"; then
7921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 case $as_dir in #(((
7928 '') as_dir=./ ;;
7929 */) ;;
7930 *) as_dir=$as_dir/ ;;
7931 esac
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi ;;
7943 esac
7944 fi
7945 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7946 if test -n "$ac_ct_DSYMUTIL"; then
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7948 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7949 else
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 printf "%s\n" "no" >&6; }
7952 fi
7953
7954 if test "x$ac_ct_DSYMUTIL" = x; then
7955 DSYMUTIL=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 DSYMUTIL=$ac_ct_DSYMUTIL
7964 fi
7965 else
7966 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7967 fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 printf %s "checking for $ac_word... " >&6; }
7974 if test ${ac_cv_prog_NMEDIT+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else case e in #(
7978 e) if test -n "$NMEDIT"; then
7979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 case $as_dir in #(((
7986 '') as_dir=./ ;;
7987 */) ;;
7988 *) as_dir=$as_dir/ ;;
7989 esac
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi ;;
8001 esac
8002 fi
8003 NMEDIT=$ac_cv_prog_NMEDIT
8004 if test -n "$NMEDIT"; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8006 printf "%s\n" "$NMEDIT" >&6; }
8007 else
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 printf "%s\n" "no" >&6; }
8010 fi
8011
8012
8013 fi
8014 if test -z "$ac_cv_prog_NMEDIT"; then
8015 ac_ct_NMEDIT=$NMEDIT
8016 # Extract the first word of "nmedit", so it can be a program name with args.
8017 set dummy nmedit; ac_word=$2
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 printf %s "checking for $ac_word... " >&6; }
8020 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else case e in #(
8024 e) if test -n "$ac_ct_NMEDIT"; then
8025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030 IFS=$as_save_IFS
8031 case $as_dir in #(((
8032 '') as_dir=./ ;;
8033 */) ;;
8034 *) as_dir=$as_dir/ ;;
8035 esac
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi ;;
8047 esac
8048 fi
8049 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8050 if test -n "$ac_ct_NMEDIT"; then
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8052 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8053 else
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 printf "%s\n" "no" >&6; }
8056 fi
8057
8058 if test "x$ac_ct_NMEDIT" = x; then
8059 NMEDIT=":"
8060 else
8061 case $cross_compiling:$ac_tool_warned in
8062 yes:)
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065 ac_tool_warned=yes ;;
8066 esac
8067 NMEDIT=$ac_ct_NMEDIT
8068 fi
8069 else
8070 NMEDIT="$ac_cv_prog_NMEDIT"
8071 fi
8072
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 printf %s "checking for $ac_word... " >&6; }
8078 if test ${ac_cv_prog_LIPO+y}
8079 then :
8080 printf %s "(cached) " >&6
8081 else case e in #(
8082 e) if test -n "$LIPO"; then
8083 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 case $as_dir in #(((
8090 '') as_dir=./ ;;
8091 */) ;;
8092 *) as_dir=$as_dir/ ;;
8093 esac
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi ;;
8105 esac
8106 fi
8107 LIPO=$ac_cv_prog_LIPO
8108 if test -n "$LIPO"; then
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8110 printf "%s\n" "$LIPO" >&6; }
8111 else
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 printf "%s\n" "no" >&6; }
8114 fi
8115
8116
8117 fi
8118 if test -z "$ac_cv_prog_LIPO"; then
8119 ac_ct_LIPO=$LIPO
8120 # Extract the first word of "lipo", so it can be a program name with args.
8121 set dummy lipo; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_ac_ct_LIPO+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else case e in #(
8128 e) if test -n "$ac_ct_LIPO"; then
8129 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 case $as_dir in #(((
8136 '') as_dir=./ ;;
8137 */) ;;
8138 *) as_dir=$as_dir/ ;;
8139 esac
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_LIPO="lipo"
8143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi ;;
8151 esac
8152 fi
8153 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8154 if test -n "$ac_ct_LIPO"; then
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8156 printf "%s\n" "$ac_ct_LIPO" >&6; }
8157 else
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8160 fi
8161
8162 if test "x$ac_ct_LIPO" = x; then
8163 LIPO=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 LIPO=$ac_ct_LIPO
8172 fi
8173 else
8174 LIPO="$ac_cv_prog_LIPO"
8175 fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}otool; ac_word=$2
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 printf %s "checking for $ac_word... " >&6; }
8182 if test ${ac_cv_prog_OTOOL+y}
8183 then :
8184 printf %s "(cached) " >&6
8185 else case e in #(
8186 e) if test -n "$OTOOL"; then
8187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 case $as_dir in #(((
8194 '') as_dir=./ ;;
8195 */) ;;
8196 *) as_dir=$as_dir/ ;;
8197 esac
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 fi ;;
8209 esac
8210 fi
8211 OTOOL=$ac_cv_prog_OTOOL
8212 if test -n "$OTOOL"; then
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8214 printf "%s\n" "$OTOOL" >&6; }
8215 else
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 printf "%s\n" "no" >&6; }
8218 fi
8219
8220
8221 fi
8222 if test -z "$ac_cv_prog_OTOOL"; then
8223 ac_ct_OTOOL=$OTOOL
8224 # Extract the first word of "otool", so it can be a program name with args.
8225 set dummy otool; ac_word=$2
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 printf %s "checking for $ac_word... " >&6; }
8228 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else case e in #(
8232 e) if test -n "$ac_ct_OTOOL"; then
8233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 case $as_dir in #(((
8240 '') as_dir=./ ;;
8241 */) ;;
8242 *) as_dir=$as_dir/ ;;
8243 esac
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_ac_ct_OTOOL="otool"
8247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi ;;
8255 esac
8256 fi
8257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8258 if test -n "$ac_ct_OTOOL"; then
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8260 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8261 else
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 printf "%s\n" "no" >&6; }
8264 fi
8265
8266 if test "x$ac_ct_OTOOL" = x; then
8267 OTOOL=":"
8268 else
8269 case $cross_compiling:$ac_tool_warned in
8270 yes:)
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273 ac_tool_warned=yes ;;
8274 esac
8275 OTOOL=$ac_ct_OTOOL
8276 fi
8277 else
8278 OTOOL="$ac_cv_prog_OTOOL"
8279 fi
8280
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 printf %s "checking for $ac_word... " >&6; }
8286 if test ${ac_cv_prog_OTOOL64+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else case e in #(
8290 e) if test -n "$OTOOL64"; then
8291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296 IFS=$as_save_IFS
8297 case $as_dir in #(((
8298 '') as_dir=./ ;;
8299 */) ;;
8300 *) as_dir=$as_dir/ ;;
8301 esac
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8304 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308 done
8309 done
8310 IFS=$as_save_IFS
8311
8312 fi ;;
8313 esac
8314 fi
8315 OTOOL64=$ac_cv_prog_OTOOL64
8316 if test -n "$OTOOL64"; then
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8318 printf "%s\n" "$OTOOL64" >&6; }
8319 else
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 printf "%s\n" "no" >&6; }
8322 fi
8323
8324
8325 fi
8326 if test -z "$ac_cv_prog_OTOOL64"; then
8327 ac_ct_OTOOL64=$OTOOL64
8328 # Extract the first word of "otool64", so it can be a program name with args.
8329 set dummy otool64; ac_word=$2
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 printf %s "checking for $ac_word... " >&6; }
8332 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e) if test -n "$ac_ct_OTOOL64"; then
8337 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 case $as_dir in #(((
8344 '') as_dir=./ ;;
8345 */) ;;
8346 *) as_dir=$as_dir/ ;;
8347 esac
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_ac_ct_OTOOL64="otool64"
8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354 done
8355 done
8356 IFS=$as_save_IFS
8357
8358 fi ;;
8359 esac
8360 fi
8361 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8362 if test -n "$ac_ct_OTOOL64"; then
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8364 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8365 else
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 printf "%s\n" "no" >&6; }
8368 fi
8369
8370 if test "x$ac_ct_OTOOL64" = x; then
8371 OTOOL64=":"
8372 else
8373 case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379 OTOOL64=$ac_ct_OTOOL64
8380 fi
8381 else
8382 OTOOL64="$ac_cv_prog_OTOOL64"
8383 fi
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8412 printf %s "checking for -single_module linker flag... " >&6; }
8413 if test ${lt_cv_apple_cc_single_mod+y}
8414 then :
8415 printf %s "(cached) " >&6
8416 else case e in #(
8417 e) lt_cv_apple_cc_single_mod=no
8418 if test -z "$LT_MULTI_MODULE"; then
8419 # By default we will add the -single_module flag. You can override
8420 # by either setting the environment variable LT_MULTI_MODULE
8421 # non-empty at configure time, or by adding -multi_module to the
8422 # link flags.
8423 rm -rf libconftest.dylib*
8424 echo "int foo(void){return 1;}" > conftest.c
8425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8426 -dynamiclib -Wl,-single_module conftest.c" >&5
8427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8429 _lt_result=$?
8430 # If there is a non-empty error log, and "single_module"
8431 # appears in it, assume the flag caused a linker warning
8432 if test -s conftest.err && $GREP single_module conftest.err; then
8433 cat conftest.err >&5
8434 # Otherwise, if the output was created with a 0 exit code from
8435 # the compiler, it worked.
8436 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8437 lt_cv_apple_cc_single_mod=yes
8438 else
8439 cat conftest.err >&5
8440 fi
8441 rm -rf libconftest.dylib*
8442 rm -f conftest.*
8443 fi ;;
8444 esac
8445 fi
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8447 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8448
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8450 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8451 if test ${lt_cv_ld_exported_symbols_list+y}
8452 then :
8453 printf %s "(cached) " >&6
8454 else case e in #(
8455 e) lt_cv_ld_exported_symbols_list=no
8456 save_LDFLAGS=$LDFLAGS
8457 echo "_main" > conftest.sym
8458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461
8462 int
8463 main (void)
8464 {
8465
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_link "$LINENO"
8471 then :
8472 lt_cv_ld_exported_symbols_list=yes
8473 else case e in #(
8474 e) lt_cv_ld_exported_symbols_list=no ;;
8475 esac
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8478 conftest$ac_exeext conftest.$ac_ext
8479 LDFLAGS=$save_LDFLAGS
8480 ;;
8481 esac
8482 fi
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8484 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8485
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8487 printf %s "checking for -force_load linker flag... " >&6; }
8488 if test ${lt_cv_ld_force_load+y}
8489 then :
8490 printf %s "(cached) " >&6
8491 else case e in #(
8492 e) lt_cv_ld_force_load=no
8493 cat > conftest.c << _LT_EOF
8494 int forced_loaded() { return 2;}
8495 _LT_EOF
8496 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8497 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8498 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8499 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8500 echo "$RANLIB libconftest.a" >&5
8501 $RANLIB libconftest.a 2>&5
8502 cat > conftest.c << _LT_EOF
8503 int main() { return 0;}
8504 _LT_EOF
8505 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8506 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8507 _lt_result=$?
8508 if test -s conftest.err && $GREP force_load conftest.err; then
8509 cat conftest.err >&5
8510 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8511 lt_cv_ld_force_load=yes
8512 else
8513 cat conftest.err >&5
8514 fi
8515 rm -f conftest.err libconftest.a conftest conftest.c
8516 rm -rf conftest.dSYM
8517 ;;
8518 esac
8519 fi
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8521 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8522 case $host_os in
8523 rhapsody* | darwin1.[012])
8524 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8525 darwin1.*)
8526 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8527 darwin*)
8528 case $MACOSX_DEPLOYMENT_TARGET,$host in
8529 10.[012],*|,*powerpc*-darwin[5-8]*)
8530 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8531 *)
8532 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8533 esac
8534 ;;
8535 esac
8536 if test yes = "$lt_cv_apple_cc_single_mod"; then
8537 _lt_dar_single_mod='$single_module'
8538 fi
8539 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8540 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8541 else
8542 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8543 fi
8544 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8545 _lt_dsymutil='~$DSYMUTIL $lib || :'
8546 else
8547 _lt_dsymutil=
8548 fi
8549 ;;
8550 esac
8551
8552 # func_munge_path_list VARIABLE PATH
8553 # -----------------------------------
8554 # VARIABLE is name of variable containing _space_ separated list of
8555 # directories to be munged by the contents of PATH, which is string
8556 # having a format:
8557 # "DIR[:DIR]:"
8558 # string "DIR[ DIR]" will be prepended to VARIABLE
8559 # ":DIR[:DIR]"
8560 # string "DIR[ DIR]" will be appended to VARIABLE
8561 # "DIRP[:DIRP]::[DIRA:]DIRA"
8562 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8563 # "DIRA[ DIRA]" will be appended to VARIABLE
8564 # "DIR[:DIR]"
8565 # VARIABLE will be replaced by "DIR[ DIR]"
8566 func_munge_path_list ()
8567 {
8568 case x$2 in
8569 x)
8570 ;;
8571 *:)
8572 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8573 ;;
8574 x:*)
8575 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8576 ;;
8577 *::*)
8578 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8579 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8580 ;;
8581 *)
8582 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8583 ;;
8584 esac
8585 }
8586
8587 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8588 "
8589 if test "x$ac_cv_header_dlfcn_h" = xyes
8590 then :
8591 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8592
8593 fi
8594
8595
8596
8597
8598
8599 # Set options
8600
8601
8602
8603 enable_dlopen=no
8604
8605
8606 enable_win32_dll=no
8607
8608
8609 # Check whether --enable-shared was given.
8610 if test ${enable_shared+y}
8611 then :
8612 enableval=$enable_shared; p=${PACKAGE-default}
8613 case $enableval in
8614 yes) enable_shared=yes ;;
8615 no) enable_shared=no ;;
8616 *)
8617 enable_shared=no
8618 # Look at the argument we got. We use all the common list separators.
8619 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8620 for pkg in $enableval; do
8621 IFS=$lt_save_ifs
8622 if test "X$pkg" = "X$p"; then
8623 enable_shared=yes
8624 fi
8625 done
8626 IFS=$lt_save_ifs
8627 ;;
8628 esac
8629 else case e in #(
8630 e) enable_shared=yes ;;
8631 esac
8632 fi
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 # Check whether --enable-static was given.
8643 if test ${enable_static+y}
8644 then :
8645 enableval=$enable_static; p=${PACKAGE-default}
8646 case $enableval in
8647 yes) enable_static=yes ;;
8648 no) enable_static=no ;;
8649 *)
8650 enable_static=no
8651 # Look at the argument we got. We use all the common list separators.
8652 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8653 for pkg in $enableval; do
8654 IFS=$lt_save_ifs
8655 if test "X$pkg" = "X$p"; then
8656 enable_static=yes
8657 fi
8658 done
8659 IFS=$lt_save_ifs
8660 ;;
8661 esac
8662 else case e in #(
8663 e) enable_static=yes ;;
8664 esac
8665 fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676 # Check whether --with-pic was given.
8677 if test ${with_pic+y}
8678 then :
8679 withval=$with_pic; lt_p=${PACKAGE-default}
8680 case $withval in
8681 yes|no) pic_mode=$withval ;;
8682 *)
8683 pic_mode=default
8684 # Look at the argument we got. We use all the common list separators.
8685 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686 for lt_pkg in $withval; do
8687 IFS=$lt_save_ifs
8688 if test "X$lt_pkg" = "X$lt_p"; then
8689 pic_mode=yes
8690 fi
8691 done
8692 IFS=$lt_save_ifs
8693 ;;
8694 esac
8695 else case e in #(
8696 e) pic_mode=default ;;
8697 esac
8698 fi
8699
8700
8701
8702
8703
8704
8705
8706
8707 # Check whether --enable-fast-install was given.
8708 if test ${enable_fast_install+y}
8709 then :
8710 enableval=$enable_fast_install; p=${PACKAGE-default}
8711 case $enableval in
8712 yes) enable_fast_install=yes ;;
8713 no) enable_fast_install=no ;;
8714 *)
8715 enable_fast_install=no
8716 # Look at the argument we got. We use all the common list separators.
8717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8718 for pkg in $enableval; do
8719 IFS=$lt_save_ifs
8720 if test "X$pkg" = "X$p"; then
8721 enable_fast_install=yes
8722 fi
8723 done
8724 IFS=$lt_save_ifs
8725 ;;
8726 esac
8727 else case e in #(
8728 e) enable_fast_install=yes ;;
8729 esac
8730 fi
8731
8732
8733
8734
8735
8736
8737
8738
8739 shared_archive_member_spec=
8740 case $host,$enable_shared in
8741 power*-*-aix[5-9]*,yes)
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8743 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8744
8745 # Check whether --with-aix-soname was given.
8746 if test ${with_aix_soname+y}
8747 then :
8748 withval=$with_aix_soname; case $withval in
8749 aix|svr4|both)
8750 ;;
8751 *)
8752 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8753 ;;
8754 esac
8755 lt_cv_with_aix_soname=$with_aix_soname
8756 else case e in #(
8757 e) if test ${lt_cv_with_aix_soname+y}
8758 then :
8759 printf %s "(cached) " >&6
8760 else case e in #(
8761 e) lt_cv_with_aix_soname=aix ;;
8762 esac
8763 fi
8764
8765 with_aix_soname=$lt_cv_with_aix_soname ;;
8766 esac
8767 fi
8768
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8770 printf "%s\n" "$with_aix_soname" >&6; }
8771 if test aix != "$with_aix_soname"; then
8772 # For the AIX way of multilib, we name the shared archive member
8773 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8774 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8775 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8776 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8777 if test 64 = "${OBJECT_MODE-32}"; then
8778 shared_archive_member_spec=shr_64
8779 else
8780 shared_archive_member_spec=shr
8781 fi
8782 fi
8783 ;;
8784 *)
8785 with_aix_soname=aix
8786 ;;
8787 esac
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 # This can be used to rebuild libtool when needed
8799 LIBTOOL_DEPS=$ltmain
8800
8801 # Always use our own libtool.
8802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833 test -z "$LN_S" && LN_S="ln -s"
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 if test -n "${ZSH_VERSION+set}"; then
8849 setopt NO_GLOB_SUBST
8850 fi
8851
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8853 printf %s "checking for objdir... " >&6; }
8854 if test ${lt_cv_objdir+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else case e in #(
8858 e) rm -f .libs 2>/dev/null
8859 mkdir .libs 2>/dev/null
8860 if test -d .libs; then
8861 lt_cv_objdir=.libs
8862 else
8863 # MS-DOS does not allow filenames that begin with a dot.
8864 lt_cv_objdir=_libs
8865 fi
8866 rmdir .libs 2>/dev/null ;;
8867 esac
8868 fi
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8870 printf "%s\n" "$lt_cv_objdir" >&6; }
8871 objdir=$lt_cv_objdir
8872
8873
8874
8875
8876
8877 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8878
8879
8880
8881
8882 case $host_os in
8883 aix3*)
8884 # AIX sometimes has problems with the GCC collect2 program. For some
8885 # reason, if we set the COLLECT_NAMES environment variable, the problems
8886 # vanish in a puff of smoke.
8887 if test set != "${COLLECT_NAMES+set}"; then
8888 COLLECT_NAMES=
8889 export COLLECT_NAMES
8890 fi
8891 ;;
8892 esac
8893
8894 # Global variables:
8895 ofile=libtool
8896 can_build_shared=yes
8897
8898 # All known linkers require a '.a' archive for static linking (except MSVC and
8899 # ICC, which need '.lib').
8900 libext=a
8901
8902 with_gnu_ld=$lt_cv_prog_gnu_ld
8903
8904 old_CC=$CC
8905 old_CFLAGS=$CFLAGS
8906
8907 # Set sane defaults for various variables
8908 test -z "$CC" && CC=cc
8909 test -z "$LTCC" && LTCC=$CC
8910 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8911 test -z "$LD" && LD=ld
8912 test -z "$ac_objext" && ac_objext=o
8913
8914 func_cc_basename $compiler
8915 cc_basename=$func_cc_basename_result
8916
8917
8918 # Only perform the check for file, if the check method requires it
8919 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8920 case $deplibs_check_method in
8921 file_magic*)
8922 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8924 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8925 if test ${lt_cv_path_MAGIC_CMD+y}
8926 then :
8927 printf %s "(cached) " >&6
8928 else case e in #(
8929 e) case $MAGIC_CMD in
8930 [\\/*] | ?:[\\/]*)
8931 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8932 ;;
8933 *)
8934 lt_save_MAGIC_CMD=$MAGIC_CMD
8935 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8937 for ac_dir in $ac_dummy; do
8938 IFS=$lt_save_ifs
8939 test -z "$ac_dir" && ac_dir=.
8940 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8941 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8942 if test -n "$file_magic_test_file"; then
8943 case $deplibs_check_method in
8944 "file_magic "*)
8945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8946 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948 $EGREP "$file_magic_regex" > /dev/null; then
8949 :
8950 else
8951 cat <<_LT_EOF 1>&2
8952
8953 *** Warning: the command libtool uses to detect shared libraries,
8954 *** $file_magic_cmd, produces output that libtool cannot recognize.
8955 *** The result is that libtool may fail to recognize shared libraries
8956 *** as such. This will affect the creation of libtool libraries that
8957 *** depend on shared libraries, but programs linked with such libtool
8958 *** libraries will work regardless of this problem. Nevertheless, you
8959 *** may want to report the problem to your system manager and/or to
8960 *** bug-libtool@gnu.org
8961
8962 _LT_EOF
8963 fi ;;
8964 esac
8965 fi
8966 break
8967 fi
8968 done
8969 IFS=$lt_save_ifs
8970 MAGIC_CMD=$lt_save_MAGIC_CMD
8971 ;;
8972 esac ;;
8973 esac
8974 fi
8975
8976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8977 if test -n "$MAGIC_CMD"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8979 printf "%s\n" "$MAGIC_CMD" >&6; }
8980 else
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8983 fi
8984
8985
8986
8987
8988
8989 if test -z "$lt_cv_path_MAGIC_CMD"; then
8990 if test -n "$ac_tool_prefix"; then
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8992 printf %s "checking for file... " >&6; }
8993 if test ${lt_cv_path_MAGIC_CMD+y}
8994 then :
8995 printf %s "(cached) " >&6
8996 else case e in #(
8997 e) case $MAGIC_CMD in
8998 [\\/*] | ?:[\\/]*)
8999 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9000 ;;
9001 *)
9002 lt_save_MAGIC_CMD=$MAGIC_CMD
9003 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9005 for ac_dir in $ac_dummy; do
9006 IFS=$lt_save_ifs
9007 test -z "$ac_dir" && ac_dir=.
9008 if test -f "$ac_dir/file"; then
9009 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9010 if test -n "$file_magic_test_file"; then
9011 case $deplibs_check_method in
9012 "file_magic "*)
9013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9014 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9016 $EGREP "$file_magic_regex" > /dev/null; then
9017 :
9018 else
9019 cat <<_LT_EOF 1>&2
9020
9021 *** Warning: the command libtool uses to detect shared libraries,
9022 *** $file_magic_cmd, produces output that libtool cannot recognize.
9023 *** The result is that libtool may fail to recognize shared libraries
9024 *** as such. This will affect the creation of libtool libraries that
9025 *** depend on shared libraries, but programs linked with such libtool
9026 *** libraries will work regardless of this problem. Nevertheless, you
9027 *** may want to report the problem to your system manager and/or to
9028 *** bug-libtool@gnu.org
9029
9030 _LT_EOF
9031 fi ;;
9032 esac
9033 fi
9034 break
9035 fi
9036 done
9037 IFS=$lt_save_ifs
9038 MAGIC_CMD=$lt_save_MAGIC_CMD
9039 ;;
9040 esac ;;
9041 esac
9042 fi
9043
9044 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9045 if test -n "$MAGIC_CMD"; then
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9047 printf "%s\n" "$MAGIC_CMD" >&6; }
9048 else
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 printf "%s\n" "no" >&6; }
9051 fi
9052
9053
9054 else
9055 MAGIC_CMD=:
9056 fi
9057 fi
9058
9059 fi
9060 ;;
9061 esac
9062
9063 # Use C for the default configuration in the libtool script
9064
9065 lt_save_CC=$CC
9066 ac_ext=c
9067 ac_cpp='$CPP $CPPFLAGS'
9068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071
9072
9073 # Source file extension for C test sources.
9074 ac_ext=c
9075
9076 # Object file extension for compiled C test sources.
9077 objext=o
9078 objext=$objext
9079
9080 # Code to be used in simple compile tests
9081 lt_simple_compile_test_code="int some_variable = 0;"
9082
9083 # Code to be used in simple link tests
9084 lt_simple_link_test_code='int main(){return(0);}'
9085
9086
9087
9088
9089
9090
9091
9092 # If no C compiler was specified, use CC.
9093 LTCC=${LTCC-"$CC"}
9094
9095 # If no C compiler flags were specified, use CFLAGS.
9096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9097
9098 # Allow CC to be a program name with arguments.
9099 compiler=$CC
9100
9101 # Save the default compiler, since it gets overwritten when the other
9102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9103 compiler_DEFAULT=$CC
9104
9105 # save warnings/boilerplate of simple test code
9106 ac_outfile=conftest.$ac_objext
9107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9109 _lt_compiler_boilerplate=`cat conftest.err`
9110 $RM conftest*
9111
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9115 _lt_linker_boilerplate=`cat conftest.err`
9116 $RM -r conftest*
9117
9118
9119 ## CAVEAT EMPTOR:
9120 ## There is no encapsulation within the following macros, do not change
9121 ## the running order or otherwise move them around unless you know exactly
9122 ## what you are doing...
9123 if test -n "$compiler"; then
9124
9125 lt_prog_compiler_no_builtin_flag=
9126
9127 if test yes = "$GCC"; then
9128 case $cc_basename in
9129 nvcc*)
9130 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9131 *)
9132 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9133 esac
9134
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9136 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9137 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9138 then :
9139 printf %s "(cached) " >&6
9140 else case e in #(
9141 e) lt_cv_prog_compiler_rtti_exceptions=no
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 # The option is referenced via a variable to avoid confusing sed.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>conftest.err)
9156 ac_status=$?
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s "$ac_outfile"; then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings other than the usual output.
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_rtti_exceptions=yes
9166 fi
9167 fi
9168 $RM conftest*
9169 ;;
9170 esac
9171 fi
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9173 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9174
9175 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9176 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9177 else
9178 :
9179 fi
9180
9181 fi
9182
9183
9184
9185
9186
9187
9188 lt_prog_compiler_wl=
9189 lt_prog_compiler_pic=
9190 lt_prog_compiler_static=
9191
9192
9193 if test yes = "$GCC"; then
9194 lt_prog_compiler_wl='-Wl,'
9195 lt_prog_compiler_static='-static'
9196
9197 case $host_os in
9198 aix*)
9199 # All AIX code is PIC.
9200 if test ia64 = "$host_cpu"; then
9201 # AIX 5 now supports IA64 processor
9202 lt_prog_compiler_static='-Bstatic'
9203 fi
9204 lt_prog_compiler_pic='-fPIC'
9205 ;;
9206
9207 amigaos*)
9208 case $host_cpu in
9209 powerpc)
9210 # see comment about AmigaOS4 .so support
9211 lt_prog_compiler_pic='-fPIC'
9212 ;;
9213 m68k)
9214 # FIXME: we need at least 68020 code to build shared libraries, but
9215 # adding the '-m68020' flag to GCC prevents building anything better,
9216 # like '-m68040'.
9217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9218 ;;
9219 esac
9220 ;;
9221
9222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9223 # PIC is the default for these OSes.
9224 ;;
9225
9226 mingw* | cygwin* | pw32* | os2* | cegcc*)
9227 # This hack is so that the source file can tell whether it is being
9228 # built for inclusion in a dll (and should export symbols for example).
9229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9230 # (--disable-auto-import) libraries
9231 lt_prog_compiler_pic='-DDLL_EXPORT'
9232 case $host_os in
9233 os2*)
9234 lt_prog_compiler_static='$wl-static'
9235 ;;
9236 esac
9237 ;;
9238
9239 darwin* | rhapsody*)
9240 # PIC is the default on this platform
9241 # Common symbols not allowed in MH_DYLIB files
9242 lt_prog_compiler_pic='-fno-common'
9243 ;;
9244
9245 haiku*)
9246 # PIC is the default for Haiku.
9247 # The "-static" flag exists, but is broken.
9248 lt_prog_compiler_static=
9249 ;;
9250
9251 hpux*)
9252 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9253 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9254 # sets the default TLS model and affects inlining.
9255 case $host_cpu in
9256 hppa*64*)
9257 # +Z the default
9258 ;;
9259 *)
9260 lt_prog_compiler_pic='-fPIC'
9261 ;;
9262 esac
9263 ;;
9264
9265 interix[3-9]*)
9266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9267 # Instead, we relocate shared libraries at runtime.
9268 ;;
9269
9270 msdosdjgpp*)
9271 # Just because we use GCC doesn't mean we suddenly get shared libraries
9272 # on systems that don't support them.
9273 lt_prog_compiler_can_build_shared=no
9274 enable_shared=no
9275 ;;
9276
9277 *nto* | *qnx*)
9278 # QNX uses GNU C++, but need to define -shared option too, otherwise
9279 # it will coredump.
9280 lt_prog_compiler_pic='-fPIC -shared'
9281 ;;
9282
9283 sysv4*MP*)
9284 if test -d /usr/nec; then
9285 lt_prog_compiler_pic=-Kconform_pic
9286 fi
9287 ;;
9288
9289 *)
9290 lt_prog_compiler_pic='-fPIC'
9291 ;;
9292 esac
9293
9294 case $cc_basename in
9295 nvcc*) # Cuda Compiler Driver 2.2
9296 lt_prog_compiler_wl='-Xlinker '
9297 if test -n "$lt_prog_compiler_pic"; then
9298 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9299 fi
9300 ;;
9301 esac
9302 else
9303 # PORTME Check for flag to pass linker flags through the system compiler.
9304 case $host_os in
9305 aix*)
9306 lt_prog_compiler_wl='-Wl,'
9307 if test ia64 = "$host_cpu"; then
9308 # AIX 5 now supports IA64 processor
9309 lt_prog_compiler_static='-Bstatic'
9310 else
9311 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9312 fi
9313 ;;
9314
9315 darwin* | rhapsody*)
9316 # PIC is the default on this platform
9317 # Common symbols not allowed in MH_DYLIB files
9318 lt_prog_compiler_pic='-fno-common'
9319 case $cc_basename in
9320 nagfor*)
9321 # NAG Fortran compiler
9322 lt_prog_compiler_wl='-Wl,-Wl,,'
9323 lt_prog_compiler_pic='-PIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 ;;
9326 esac
9327 ;;
9328
9329 mingw* | cygwin* | pw32* | os2* | cegcc*)
9330 # This hack is so that the source file can tell whether it is being
9331 # built for inclusion in a dll (and should export symbols for example).
9332 lt_prog_compiler_pic='-DDLL_EXPORT'
9333 case $host_os in
9334 os2*)
9335 lt_prog_compiler_static='$wl-static'
9336 ;;
9337 esac
9338 ;;
9339
9340 hpux9* | hpux10* | hpux11*)
9341 lt_prog_compiler_wl='-Wl,'
9342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9343 # not for PA HP-UX.
9344 case $host_cpu in
9345 hppa*64*|ia64*)
9346 # +Z the default
9347 ;;
9348 *)
9349 lt_prog_compiler_pic='+Z'
9350 ;;
9351 esac
9352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9353 lt_prog_compiler_static='$wl-a ${wl}archive'
9354 ;;
9355
9356 irix5* | irix6* | nonstopux*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # PIC (with -KPIC) is the default.
9359 lt_prog_compiler_static='-non_shared'
9360 ;;
9361
9362 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9363 case $cc_basename in
9364 # old Intel for x86_64, which still supported -KPIC.
9365 ecc*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-static'
9369 ;;
9370 # icc used to be incompatible with GCC.
9371 # ICC 10 doesn't accept -KPIC any more.
9372 icc* | ifort*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_pic='-fPIC'
9375 lt_prog_compiler_static='-static'
9376 ;;
9377 # Lahey Fortran 8.1.
9378 lf95*)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='--shared'
9381 lt_prog_compiler_static='--static'
9382 ;;
9383 nagfor*)
9384 # NAG Fortran compiler
9385 lt_prog_compiler_wl='-Wl,-Wl,,'
9386 lt_prog_compiler_pic='-PIC'
9387 lt_prog_compiler_static='-Bstatic'
9388 ;;
9389 tcc*)
9390 # Fabrice Bellard et al's Tiny C Compiler
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9394 ;;
9395 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9396 # Portland Group compilers (*not* the Pentium gcc compiler,
9397 # which looks to be a dead project)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-fpic'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9402 ccc*)
9403 lt_prog_compiler_wl='-Wl,'
9404 # All Alpha code is PIC.
9405 lt_prog_compiler_static='-non_shared'
9406 ;;
9407 xl* | bgxl* | bgf* | mpixl*)
9408 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_pic='-qpic'
9411 lt_prog_compiler_static='-qstaticlink'
9412 ;;
9413 *)
9414 case `$CC -V 2>&1 | $SED 5q` in
9415 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9416 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9417 lt_prog_compiler_pic='-KPIC'
9418 lt_prog_compiler_static='-Bstatic'
9419 lt_prog_compiler_wl=''
9420 ;;
9421 *Sun\ F* | *Sun*Fortran*)
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 lt_prog_compiler_wl='-Qoption ld '
9425 ;;
9426 *Sun\ C*)
9427 # Sun C 5.9
9428 lt_prog_compiler_pic='-KPIC'
9429 lt_prog_compiler_static='-Bstatic'
9430 lt_prog_compiler_wl='-Wl,'
9431 ;;
9432 *Intel*\ [CF]*Compiler*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-fPIC'
9435 lt_prog_compiler_static='-static'
9436 ;;
9437 *Portland\ Group*)
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_pic='-fpic'
9440 lt_prog_compiler_static='-Bstatic'
9441 ;;
9442 esac
9443 ;;
9444 esac
9445 ;;
9446
9447 newsos6)
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-Bstatic'
9450 ;;
9451
9452 *nto* | *qnx*)
9453 # QNX uses GNU C++, but need to define -shared option too, otherwise
9454 # it will coredump.
9455 lt_prog_compiler_pic='-fPIC -shared'
9456 ;;
9457
9458 osf3* | osf4* | osf5*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # All OSF/1 code is PIC.
9461 lt_prog_compiler_static='-non_shared'
9462 ;;
9463
9464 rdos*)
9465 lt_prog_compiler_static='-non_shared'
9466 ;;
9467
9468 solaris*)
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-Bstatic'
9471 case $cc_basename in
9472 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9473 lt_prog_compiler_wl='-Qoption ld ';;
9474 *)
9475 lt_prog_compiler_wl='-Wl,';;
9476 esac
9477 ;;
9478
9479 sunos4*)
9480 lt_prog_compiler_wl='-Qoption ld '
9481 lt_prog_compiler_pic='-PIC'
9482 lt_prog_compiler_static='-Bstatic'
9483 ;;
9484
9485 sysv4 | sysv4.2uw2* | sysv4.3*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-Bstatic'
9489 ;;
9490
9491 sysv4*MP*)
9492 if test -d /usr/nec; then
9493 lt_prog_compiler_pic='-Kconform_pic'
9494 lt_prog_compiler_static='-Bstatic'
9495 fi
9496 ;;
9497
9498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-Bstatic'
9502 ;;
9503
9504 unicos*)
9505 lt_prog_compiler_wl='-Wl,'
9506 lt_prog_compiler_can_build_shared=no
9507 ;;
9508
9509 uts4*)
9510 lt_prog_compiler_pic='-pic'
9511 lt_prog_compiler_static='-Bstatic'
9512 ;;
9513
9514 *)
9515 lt_prog_compiler_can_build_shared=no
9516 ;;
9517 esac
9518 fi
9519
9520 case $host_os in
9521 # For platforms that do not support PIC, -DPIC is meaningless:
9522 *djgpp*)
9523 lt_prog_compiler_pic=
9524 ;;
9525 *)
9526 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9527 ;;
9528 esac
9529
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9531 printf %s "checking for $compiler option to produce PIC... " >&6; }
9532 if test ${lt_cv_prog_compiler_pic+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else case e in #(
9536 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9537 esac
9538 fi
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9540 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9541 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9542
9543 #
9544 # Check to make sure the PIC flag actually works.
9545 #
9546 if test -n "$lt_prog_compiler_pic"; then
9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9548 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9549 if test ${lt_cv_prog_compiler_pic_works+y}
9550 then :
9551 printf %s "(cached) " >&6
9552 else case e in #(
9553 e) lt_cv_prog_compiler_pic_works=no
9554 ac_outfile=conftest.$ac_objext
9555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9557 # Insert the option either (1) after the last *FLAGS variable, or
9558 # (2) before a word containing "conftest.", or (3) at the end.
9559 # Note that $ac_compile itself does not contain backslashes and begins
9560 # with a dollar sign (not a hyphen), so the echo should work correctly.
9561 # The option is referenced via a variable to avoid confusing sed.
9562 lt_compile=`echo "$ac_compile" | $SED \
9563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9565 -e 's:$: $lt_compiler_flag:'`
9566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9567 (eval "$lt_compile" 2>conftest.err)
9568 ac_status=$?
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 if (exit $ac_status) && test -s "$ac_outfile"; then
9572 # The compiler can only warn and ignore the option if not recognized
9573 # So say no if there are warnings other than the usual output.
9574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9577 lt_cv_prog_compiler_pic_works=yes
9578 fi
9579 fi
9580 $RM conftest*
9581 ;;
9582 esac
9583 fi
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9585 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9586
9587 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9588 case $lt_prog_compiler_pic in
9589 "" | " "*) ;;
9590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9591 esac
9592 else
9593 lt_prog_compiler_pic=
9594 lt_prog_compiler_can_build_shared=no
9595 fi
9596
9597 fi
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609 #
9610 # Check to make sure the static flag actually works.
9611 #
9612 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9614 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9615 if test ${lt_cv_prog_compiler_static_works+y}
9616 then :
9617 printf %s "(cached) " >&6
9618 else case e in #(
9619 e) lt_cv_prog_compiler_static_works=no
9620 save_LDFLAGS=$LDFLAGS
9621 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624 # The linker can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 if test -s conftest.err; then
9627 # Append any errors to the config.log.
9628 cat conftest.err 1>&5
9629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631 if diff conftest.exp conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler_static_works=yes
9633 fi
9634 else
9635 lt_cv_prog_compiler_static_works=yes
9636 fi
9637 fi
9638 $RM -r conftest*
9639 LDFLAGS=$save_LDFLAGS
9640 ;;
9641 esac
9642 fi
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9644 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9645
9646 if test yes = "$lt_cv_prog_compiler_static_works"; then
9647 :
9648 else
9649 lt_prog_compiler_static=
9650 fi
9651
9652
9653
9654
9655
9656
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9659 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9660 if test ${lt_cv_prog_compiler_c_o+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else case e in #(
9664 e) lt_cv_prog_compiler_c_o=no
9665 $RM -r conftest 2>/dev/null
9666 mkdir conftest
9667 cd conftest
9668 mkdir out
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670
9671 lt_compiler_flag="-o out/conftest2.$ac_objext"
9672 # Insert the option either (1) after the last *FLAGS variable, or
9673 # (2) before a word containing "conftest.", or (3) at the end.
9674 # Note that $ac_compile itself does not contain backslashes and begins
9675 # with a dollar sign (not a hyphen), so the echo should work correctly.
9676 lt_compile=`echo "$ac_compile" | $SED \
9677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679 -e 's:$: $lt_compiler_flag:'`
9680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681 (eval "$lt_compile" 2>out/conftest.err)
9682 ac_status=$?
9683 cat out/conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9686 then
9687 # The compiler can only warn and ignore the option if not recognized
9688 # So say no if there are warnings
9689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9692 lt_cv_prog_compiler_c_o=yes
9693 fi
9694 fi
9695 chmod u+w . 2>&5
9696 $RM conftest*
9697 # SGI C++ compiler will create directory out/ii_files/ for
9698 # template instantiation
9699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9700 $RM out/* && rmdir out
9701 cd ..
9702 $RM -r conftest
9703 $RM conftest*
9704 ;;
9705 esac
9706 fi
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9708 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9709
9710
9711
9712
9713
9714
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9716 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9717 if test ${lt_cv_prog_compiler_c_o+y}
9718 then :
9719 printf %s "(cached) " >&6
9720 else case e in #(
9721 e) lt_cv_prog_compiler_c_o=no
9722 $RM -r conftest 2>/dev/null
9723 mkdir conftest
9724 cd conftest
9725 mkdir out
9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727
9728 lt_compiler_flag="-o out/conftest2.$ac_objext"
9729 # Insert the option either (1) after the last *FLAGS variable, or
9730 # (2) before a word containing "conftest.", or (3) at the end.
9731 # Note that $ac_compile itself does not contain backslashes and begins
9732 # with a dollar sign (not a hyphen), so the echo should work correctly.
9733 lt_compile=`echo "$ac_compile" | $SED \
9734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736 -e 's:$: $lt_compiler_flag:'`
9737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738 (eval "$lt_compile" 2>out/conftest.err)
9739 ac_status=$?
9740 cat out/conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9743 then
9744 # The compiler can only warn and ignore the option if not recognized
9745 # So say no if there are warnings
9746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9749 lt_cv_prog_compiler_c_o=yes
9750 fi
9751 fi
9752 chmod u+w . 2>&5
9753 $RM conftest*
9754 # SGI C++ compiler will create directory out/ii_files/ for
9755 # template instantiation
9756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9757 $RM out/* && rmdir out
9758 cd ..
9759 $RM -r conftest
9760 $RM conftest*
9761 ;;
9762 esac
9763 fi
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9766
9767
9768
9769
9770 hard_links=nottested
9771 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9772 # do not overwrite the value of need_locks provided by the user
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774 printf %s "checking if we can lock with hard links... " >&6; }
9775 hard_links=yes
9776 $RM conftest*
9777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778 touch conftest.a
9779 ln conftest.a conftest.b 2>&5 || hard_links=no
9780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782 printf "%s\n" "$hard_links" >&6; }
9783 if test no = "$hard_links"; then
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9785 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9786 need_locks=warn
9787 fi
9788 else
9789 need_locks=no
9790 fi
9791
9792
9793
9794
9795
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9799
9800 runpath_var=
9801 allow_undefined_flag=
9802 always_export_symbols=no
9803 archive_cmds=
9804 archive_expsym_cmds=
9805 compiler_needs_object=no
9806 enable_shared_with_static_runtimes=no
9807 export_dynamic_flag_spec=
9808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809 hardcode_automatic=no
9810 hardcode_direct=no
9811 hardcode_direct_absolute=no
9812 hardcode_libdir_flag_spec=
9813 hardcode_libdir_separator=
9814 hardcode_minus_L=no
9815 hardcode_shlibpath_var=unsupported
9816 inherit_rpath=no
9817 link_all_deplibs=unknown
9818 module_cmds=
9819 module_expsym_cmds=
9820 old_archive_from_new_cmds=
9821 old_archive_from_expsyms_cmds=
9822 thread_safe_flag_spec=
9823 whole_archive_flag_spec=
9824 # include_expsyms should be a list of space-separated symbols to be *always*
9825 # included in the symbol list
9826 include_expsyms=
9827 # exclude_expsyms can be an extended regexp of symbols to exclude
9828 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9829 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9830 # as well as any symbol that contains 'd'.
9831 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833 # platforms (ab)use it in PIC code, but their linkers get confused if
9834 # the symbol is explicitly referenced. Since portable code cannot
9835 # rely on this symbol name, it's probably fine to never include it in
9836 # preloaded symbol tables.
9837 # Exclude shared library initialization/finalization symbols.
9838 extract_expsyms_cmds=
9839
9840 case $host_os in
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9843 # When not using gcc, we currently assume that we are using
9844 # Microsoft Visual C++ or Intel C++ Compiler.
9845 if test yes != "$GCC"; then
9846 with_gnu_ld=no
9847 fi
9848 ;;
9849 interix*)
9850 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9851 with_gnu_ld=yes
9852 ;;
9853 openbsd* | bitrig*)
9854 with_gnu_ld=no
9855 ;;
9856 esac
9857
9858 ld_shlibs=yes
9859
9860 # On some targets, GNU ld is compatible enough with the native linker
9861 # that we're better off using the native interface for both.
9862 lt_use_gnu_ld_interface=no
9863 if test yes = "$with_gnu_ld"; then
9864 case $host_os in
9865 aix*)
9866 # The AIX port of GNU ld has always aspired to compatibility
9867 # with the native linker. However, as the warning in the GNU ld
9868 # block says, versions before 2.19.5* couldn't really create working
9869 # shared libraries, regardless of the interface used.
9870 case `$LD -v 2>&1` in
9871 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9872 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9873 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9874 *)
9875 lt_use_gnu_ld_interface=yes
9876 ;;
9877 esac
9878 ;;
9879 *)
9880 lt_use_gnu_ld_interface=yes
9881 ;;
9882 esac
9883 fi
9884
9885 if test yes = "$lt_use_gnu_ld_interface"; then
9886 # If archive_cmds runs LD, not CC, wlarc should be empty
9887 wlarc='$wl'
9888
9889 # Set some defaults for GNU ld with shared library support. These
9890 # are reset later if shared libraries are not supported. Putting them
9891 # here allows them to be overridden if necessary.
9892 runpath_var=LD_RUN_PATH
9893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894 export_dynamic_flag_spec='$wl--export-dynamic'
9895 # ancient GNU ld didn't support --whole-archive et. al.
9896 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9897 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9898 else
9899 whole_archive_flag_spec=
9900 fi
9901 supports_anon_versioning=no
9902 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9903 *GNU\ gold*) supports_anon_versioning=yes ;;
9904 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9905 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9906 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9907 *\ 2.11.*) ;; # other 2.11 versions
9908 *) supports_anon_versioning=yes ;;
9909 esac
9910
9911 # See if GNU ld supports shared libraries.
9912 case $host_os in
9913 aix[3-9]*)
9914 # On AIX/PPC, the GNU linker is very broken
9915 if test ia64 != "$host_cpu"; then
9916 ld_shlibs=no
9917 cat <<_LT_EOF 1>&2
9918
9919 *** Warning: the GNU linker, at least up to release 2.19, is reported
9920 *** to be unable to reliably create shared libraries on AIX.
9921 *** Therefore, libtool is disabling shared libraries support. If you
9922 *** really care for shared libraries, you may want to install binutils
9923 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9924 *** You will then need to restart the configuration process.
9925
9926 _LT_EOF
9927 fi
9928 ;;
9929
9930 amigaos*)
9931 case $host_cpu in
9932 powerpc)
9933 # see comment about AmigaOS4 .so support
9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935 archive_expsym_cmds=''
9936 ;;
9937 m68k)
9938 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)'
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_minus_L=yes
9941 ;;
9942 esac
9943 ;;
9944
9945 beos*)
9946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947 allow_undefined_flag=unsupported
9948 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9949 # support --undefined. This deserves some investigation. FIXME
9950 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9955
9956 cygwin* | mingw* | pw32* | cegcc*)
9957 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9958 # as there is no search path for DLLs.
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 export_dynamic_flag_spec='$wl--export-all-symbols'
9961 allow_undefined_flag=unsupported
9962 always_export_symbols=no
9963 enable_shared_with_static_runtimes=yes
9964 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'
9965 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9966
9967 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9969 # If the export-symbols file already is a .def file, use it as
9970 # is; otherwise, prepend EXPORTS...
9971 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9972 cp $export_symbols $output_objdir/$soname.def;
9973 else
9974 echo EXPORTS > $output_objdir/$soname.def;
9975 cat $export_symbols >> $output_objdir/$soname.def;
9976 fi~
9977 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982
9983 haiku*)
9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985 link_all_deplibs=yes
9986 ;;
9987
9988 os2*)
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 allow_undefined_flag=unsupported
9992 shrext_cmds=.dll
9993 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996 $ECHO EXPORTS >> $output_objdir/$libname.def~
9997 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9998 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9999 emximp -o $lib $output_objdir/$libname.def'
10000 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003 $ECHO EXPORTS >> $output_objdir/$libname.def~
10004 prefix_cmds="$SED"~
10005 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10006 prefix_cmds="$prefix_cmds -e 1d";
10007 fi~
10008 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10009 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011 emximp -o $lib $output_objdir/$libname.def'
10012 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10013 enable_shared_with_static_runtimes=yes
10014 file_list_spec='@'
10015 ;;
10016
10017 interix[3-9]*)
10018 hardcode_direct=no
10019 hardcode_shlibpath_var=no
10020 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021 export_dynamic_flag_spec='$wl-E'
10022 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10023 # Instead, shared libraries are loaded at an image base (0x10000000 by
10024 # default) and relocated if they conflict, which is a slow very memory
10025 # consuming and fragmenting process. To avoid this, we pick a random,
10026 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10027 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10029 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'
10030 ;;
10031
10032 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10033 tmp_diet=no
10034 if test linux-dietlibc = "$host_os"; then
10035 case $cc_basename in
10036 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10037 esac
10038 fi
10039 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10040 && test no = "$tmp_diet"
10041 then
10042 tmp_addflag=' $pic_flag'
10043 tmp_sharedflag='-shared'
10044 case $cc_basename,$host_cpu in
10045 pgcc*) # Portland Group C compiler
10046 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'
10047 tmp_addflag=' $pic_flag'
10048 ;;
10049 pgf77* | pgf90* | pgf95* | pgfortran*)
10050 # Portland Group f77 and f90 compilers
10051 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'
10052 tmp_addflag=' $pic_flag -Mnomain' ;;
10053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10054 tmp_addflag=' -i_dynamic' ;;
10055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10056 tmp_addflag=' -i_dynamic -nofor_main' ;;
10057 ifc* | ifort*) # Intel Fortran compiler
10058 tmp_addflag=' -nofor_main' ;;
10059 lf95*) # Lahey Fortran 8.1
10060 whole_archive_flag_spec=
10061 tmp_sharedflag='--shared' ;;
10062 nagfor*) # NAGFOR 5.3
10063 tmp_sharedflag='-Wl,-shared' ;;
10064 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10065 tmp_sharedflag='-qmkshrobj'
10066 tmp_addflag= ;;
10067 nvcc*) # Cuda Compiler Driver 2.2
10068 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'
10069 compiler_needs_object=yes
10070 ;;
10071 esac
10072 case `$CC -V 2>&1 | $SED 5q` in
10073 *Sun\ C*) # Sun C 5.9
10074 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'
10075 compiler_needs_object=yes
10076 tmp_sharedflag='-G' ;;
10077 *Sun\ F*) # Sun Fortran 8.3
10078 tmp_sharedflag='-G' ;;
10079 esac
10080 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10081
10082 if test yes = "$supports_anon_versioning"; then
10083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085 echo "local: *; };" >> $output_objdir/$libname.ver~
10086 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10087 fi
10088
10089 case $cc_basename in
10090 tcc*)
10091 export_dynamic_flag_spec='-rdynamic'
10092 ;;
10093 xlf* | bgf* | bgxlf* | mpixlf*)
10094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10095 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10098 if test yes = "$supports_anon_versioning"; then
10099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101 echo "local: *; };" >> $output_objdir/$libname.ver~
10102 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10103 fi
10104 ;;
10105 esac
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110
10111 netbsd*)
10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10114 wlarc=
10115 else
10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118 fi
10119 ;;
10120
10121 solaris*)
10122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10123 ld_shlibs=no
10124 cat <<_LT_EOF 1>&2
10125
10126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10127 *** create shared libraries on Solaris systems. Therefore, libtool
10128 *** is disabling shared libraries support. We urge you to upgrade GNU
10129 *** binutils to release 2.9.1 or newer. Another option is to modify
10130 *** your PATH or compiler configuration so that the native linker is
10131 *** used, and then restart.
10132
10133 _LT_EOF
10134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10136 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10137 else
10138 ld_shlibs=no
10139 fi
10140 ;;
10141
10142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10143 case `$LD -v 2>&1` in
10144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10145 ld_shlibs=no
10146 cat <<_LT_EOF 1>&2
10147
10148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10149 *** reliably create shared libraries on SCO systems. Therefore, libtool
10150 *** is disabling shared libraries support. We urge you to upgrade GNU
10151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10152 *** your PATH or compiler configuration so that the native linker is
10153 *** used, and then restart.
10154
10155 _LT_EOF
10156 ;;
10157 *)
10158 # For security reasons, it is highly recommended that you always
10159 # use absolute paths for naming shared libraries, and exclude the
10160 # DT_RUNPATH tag from executables and libraries. But doing so
10161 # requires that you compile everything twice, which is a pain.
10162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166 else
10167 ld_shlibs=no
10168 fi
10169 ;;
10170 esac
10171 ;;
10172
10173 sunos4*)
10174 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175 wlarc=
10176 hardcode_direct=yes
10177 hardcode_shlibpath_var=no
10178 ;;
10179
10180 *)
10181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10184 else
10185 ld_shlibs=no
10186 fi
10187 ;;
10188 esac
10189
10190 if test no = "$ld_shlibs"; then
10191 runpath_var=
10192 hardcode_libdir_flag_spec=
10193 export_dynamic_flag_spec=
10194 whole_archive_flag_spec=
10195 fi
10196 else
10197 # PORTME fill in a description of your system's linker (not GNU ld)
10198 case $host_os in
10199 aix3*)
10200 allow_undefined_flag=unsupported
10201 always_export_symbols=yes
10202 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'
10203 # Note: this linker hardcodes the directories in LIBPATH if there
10204 # are no directories specified by -L.
10205 hardcode_minus_L=yes
10206 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10207 # Neither direct hardcoding nor static linking is supported with a
10208 # broken collect2.
10209 hardcode_direct=unsupported
10210 fi
10211 ;;
10212
10213 aix[4-9]*)
10214 if test ia64 = "$host_cpu"; then
10215 # On IA64, the linker does run time linking by default, so we don't
10216 # have to do anything special.
10217 aix_use_runtimelinking=no
10218 exp_sym_flag='-Bexport'
10219 no_entry_flag=
10220 else
10221 # If we're using GNU nm, then we don't want the "-C" option.
10222 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10223 # Without the "-l" option, or with the "-B" option, AIX nm treats
10224 # weak defined symbols like other global defined symbols, whereas
10225 # GNU nm marks them as "W".
10226 # While the 'weak' keyword is ignored in the Export File, we need
10227 # it in the Import File for the 'aix-soname' feature, so we have
10228 # to replace the "-B" option with "-P" for AIX nm.
10229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230 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'
10231 else
10232 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'
10233 fi
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # have runtime linking enabled, and use it for executables.
10239 # For shared libraries, we enable/disable runtime linking
10240 # depending on the kind of the shared library created -
10241 # when "with_aix_soname,aix_use_runtimelinking" is:
10242 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10243 # "aix,yes" lib.so shared, rtl:yes, for executables
10244 # lib.a static archive
10245 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10246 # lib.a(lib.so.V) shared, rtl:no, for executables
10247 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10248 # lib.a(lib.so.V) shared, rtl:no
10249 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10250 # lib.a static archive
10251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10252 for ld_flag in $LDFLAGS; do
10253 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10254 aix_use_runtimelinking=yes
10255 break
10256 fi
10257 done
10258 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10259 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10260 # so we don't have lib.a shared libs to link our executables.
10261 # We have to force runtime linking in this case.
10262 aix_use_runtimelinking=yes
10263 LDFLAGS="$LDFLAGS -Wl,-brtl"
10264 fi
10265 ;;
10266 esac
10267
10268 exp_sym_flag='-bexport'
10269 no_entry_flag='-bnoentry'
10270 fi
10271
10272 # When large executables or shared objects are built, AIX ld can
10273 # have problems creating the table of contents. If linking a library
10274 # or program results in "error TOC overflow" add -mminimal-toc to
10275 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10276 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278 archive_cmds=''
10279 hardcode_direct=yes
10280 hardcode_direct_absolute=yes
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 file_list_spec='$wl-f,'
10284 case $with_aix_soname,$aix_use_runtimelinking in
10285 aix,*) ;; # traditional, no import file
10286 svr4,* | *,yes) # use import file
10287 # The Import File defines what to hardcode.
10288 hardcode_direct=no
10289 hardcode_direct_absolute=no
10290 ;;
10291 esac
10292
10293 if test yes = "$GCC"; then
10294 case $host_os in aix4.[012]|aix4.[012].*)
10295 # We only want to do this on AIX 4.2 and lower, the check
10296 # below for broken collect2 doesn't work under 4.3+
10297 collect2name=`$CC -print-prog-name=collect2`
10298 if test -f "$collect2name" &&
10299 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10300 then
10301 # We have reworked collect2
10302 :
10303 else
10304 # We have old collect2
10305 hardcode_direct=unsupported
10306 # It fails to find uninstalled libraries when the uninstalled
10307 # path is not listed in the libpath. Setting hardcode_minus_L
10308 # to unsupported forces relinking
10309 hardcode_minus_L=yes
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 hardcode_libdir_separator=
10312 fi
10313 ;;
10314 esac
10315 shared_flag='-shared'
10316 if test yes = "$aix_use_runtimelinking"; then
10317 shared_flag="$shared_flag "'$wl-G'
10318 fi
10319 # Need to ensure runtime linking is disabled for the traditional
10320 # shared library, or the linker may eventually find shared libraries
10321 # /with/ Import File - we do not want to mix them.
10322 shared_flag_aix='-shared'
10323 shared_flag_svr4='-shared $wl-G'
10324 else
10325 # not using gcc
10326 if test ia64 = "$host_cpu"; then
10327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10328 # chokes on -Wl,-G. The following line is correct:
10329 shared_flag='-G'
10330 else
10331 if test yes = "$aix_use_runtimelinking"; then
10332 shared_flag='$wl-G'
10333 else
10334 shared_flag='$wl-bM:SRE'
10335 fi
10336 shared_flag_aix='$wl-bM:SRE'
10337 shared_flag_svr4='$wl-G'
10338 fi
10339 fi
10340
10341 export_dynamic_flag_spec='$wl-bexpall'
10342 # It seems that -bexpall does not export symbols beginning with
10343 # underscore (_), so it is better to generate a list of symbols to export.
10344 always_export_symbols=yes
10345 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10346 # Warning - without using the other runtime loading flags (-brtl),
10347 # -berok will link without error, but may produce a broken library.
10348 allow_undefined_flag='-berok'
10349 # Determine the default libpath from the value encoded in an
10350 # empty executable.
10351 if test set = "${lt_cv_aix_libpath+set}"; then
10352 aix_libpath=$lt_cv_aix_libpath
10353 else
10354 if test ${lt_cv_aix_libpath_+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else case e in #(
10358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360
10361 int
10362 main (void)
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"
10370 then :
10371
10372 lt_aix_libpath_sed='
10373 /Import File Strings/,/^$/ {
10374 /^0/ {
10375 s/^0 *\([^ ]*\) *$/\1/
10376 p
10377 }
10378 }'
10379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 # Check for a 64-bit object if we didn't find anything.
10381 if test -z "$lt_cv_aix_libpath_"; then
10382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 fi
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10386 conftest$ac_exeext conftest.$ac_ext
10387 if test -z "$lt_cv_aix_libpath_"; then
10388 lt_cv_aix_libpath_=/usr/lib:/lib
10389 fi
10390 ;;
10391 esac
10392 fi
10393
10394 aix_libpath=$lt_cv_aix_libpath_
10395 fi
10396
10397 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10398 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
10399 else
10400 if test ia64 = "$host_cpu"; then
10401 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10402 allow_undefined_flag="-z nodefs"
10403 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"
10404 else
10405 # Determine the default libpath from the value encoded in an
10406 # empty executable.
10407 if test set = "${lt_cv_aix_libpath+set}"; then
10408 aix_libpath=$lt_cv_aix_libpath
10409 else
10410 if test ${lt_cv_aix_libpath_+y}
10411 then :
10412 printf %s "(cached) " >&6
10413 else case e in #(
10414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416
10417 int
10418 main (void)
10419 {
10420
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"
10426 then :
10427
10428 lt_aix_libpath_sed='
10429 /Import File Strings/,/^$/ {
10430 /^0/ {
10431 s/^0 *\([^ ]*\) *$/\1/
10432 p
10433 }
10434 }'
10435 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10436 # Check for a 64-bit object if we didn't find anything.
10437 if test -z "$lt_cv_aix_libpath_"; then
10438 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10439 fi
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10442 conftest$ac_exeext conftest.$ac_ext
10443 if test -z "$lt_cv_aix_libpath_"; then
10444 lt_cv_aix_libpath_=/usr/lib:/lib
10445 fi
10446 ;;
10447 esac
10448 fi
10449
10450 aix_libpath=$lt_cv_aix_libpath_
10451 fi
10452
10453 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10454 # Warning - without using the other run time loading flags,
10455 # -berok will link without error, but may produce a broken library.
10456 no_undefined_flag=' $wl-bernotok'
10457 allow_undefined_flag=' $wl-berok'
10458 if test yes = "$with_gnu_ld"; then
10459 # We only use this code for GNU lds that support --whole-archive.
10460 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10461 else
10462 # Exported symbols can be pulled into shared objects from archives
10463 whole_archive_flag_spec='$convenience'
10464 fi
10465 archive_cmds_need_lc=yes
10466 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10467 # -brtl affects multiple linker settings, -berok does not and is overridden later
10468 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10469 if test svr4 != "$with_aix_soname"; then
10470 # This is similar to how AIX traditionally builds its shared libraries.
10471 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'
10472 fi
10473 if test aix != "$with_aix_soname"; then
10474 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'
10475 else
10476 # used by -dlpreopen to get the symbols
10477 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10478 fi
10479 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10480 fi
10481 fi
10482 ;;
10483
10484 amigaos*)
10485 case $host_cpu in
10486 powerpc)
10487 # see comment about AmigaOS4 .so support
10488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10489 archive_expsym_cmds=''
10490 ;;
10491 m68k)
10492 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)'
10493 hardcode_libdir_flag_spec='-L$libdir'
10494 hardcode_minus_L=yes
10495 ;;
10496 esac
10497 ;;
10498
10499 bsdi[45]*)
10500 export_dynamic_flag_spec=-rdynamic
10501 ;;
10502
10503 cygwin* | mingw* | pw32* | cegcc*)
10504 # When not using gcc, we currently assume that we are using
10505 # Microsoft Visual C++ or Intel C++ Compiler.
10506 # hardcode_libdir_flag_spec is actually meaningless, as there is
10507 # no search path for DLLs.
10508 case $cc_basename in
10509 cl* | icl*)
10510 # Native MSVC or ICC
10511 hardcode_libdir_flag_spec=' '
10512 allow_undefined_flag=unsupported
10513 always_export_symbols=yes
10514 file_list_spec='@'
10515 # Tell ltmain to make .lib files, not .a files.
10516 libext=lib
10517 # Tell ltmain to make .dll files, not .so files.
10518 shrext_cmds=.dll
10519 # FIXME: Setting linknames here is a bad hack.
10520 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10521 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10522 cp "$export_symbols" "$output_objdir/$soname.def";
10523 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10524 else
10525 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10526 fi~
10527 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10528 linknames='
10529 # The linker will not automatically build a static lib if we build a DLL.
10530 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10531 enable_shared_with_static_runtimes=yes
10532 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10534 # Don't use ranlib
10535 old_postinstall_cmds='chmod 644 $oldlib'
10536 postlink_cmds='lt_outputfile="@OUTPUT@"~
10537 lt_tool_outputfile="@TOOL_OUTPUT@"~
10538 case $lt_outputfile in
10539 *.exe|*.EXE) ;;
10540 *)
10541 lt_outputfile=$lt_outputfile.exe
10542 lt_tool_outputfile=$lt_tool_outputfile.exe
10543 ;;
10544 esac~
10545 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10546 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10547 $RM "$lt_outputfile.manifest";
10548 fi'
10549 ;;
10550 *)
10551 # Assume MSVC and ICC wrapper
10552 hardcode_libdir_flag_spec=' '
10553 allow_undefined_flag=unsupported
10554 # Tell ltmain to make .lib files, not .a files.
10555 libext=lib
10556 # Tell ltmain to make .dll files, not .so files.
10557 shrext_cmds=.dll
10558 # FIXME: Setting linknames here is a bad hack.
10559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10560 # The linker will automatically build a .lib file if we build a DLL.
10561 old_archive_from_new_cmds='true'
10562 # FIXME: Should let the user specify the lib program.
10563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10564 enable_shared_with_static_runtimes=yes
10565 ;;
10566 esac
10567 ;;
10568
10569 darwin* | rhapsody*)
10570
10571
10572 archive_cmds_need_lc=no
10573 hardcode_direct=no
10574 hardcode_automatic=yes
10575 hardcode_shlibpath_var=unsupported
10576 if test yes = "$lt_cv_ld_force_load"; then
10577 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\"`'
10578
10579 else
10580 whole_archive_flag_spec=''
10581 fi
10582 link_all_deplibs=yes
10583 allow_undefined_flag=$_lt_dar_allow_undefined
10584 case $cc_basename in
10585 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10586 *) _lt_dar_can_shared=$GCC ;;
10587 esac
10588 if test yes = "$_lt_dar_can_shared"; then
10589 output_verbose_link_cmd=func_echo_all
10590 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10591 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10592 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"
10593 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"
10594
10595 else
10596 ld_shlibs=no
10597 fi
10598
10599 ;;
10600
10601 dgux*)
10602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_shlibpath_var=no
10605 ;;
10606
10607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10608 # support. Future versions do this automatically, but an explicit c++rt0.o
10609 # does not break anything, and helps significantly (at the cost of a little
10610 # extra space).
10611 freebsd2.2*)
10612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10616 ;;
10617
10618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10619 freebsd2.*)
10620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_direct=yes
10622 hardcode_minus_L=yes
10623 hardcode_shlibpath_var=no
10624 ;;
10625
10626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10627 freebsd* | dragonfly* | midnightbsd*)
10628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 hardcode_direct=yes
10631 hardcode_shlibpath_var=no
10632 ;;
10633
10634 hpux9*)
10635 if test yes = "$GCC"; then
10636 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'
10637 else
10638 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'
10639 fi
10640 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10641 hardcode_libdir_separator=:
10642 hardcode_direct=yes
10643
10644 # hardcode_minus_L: Not really in the search PATH,
10645 # but as the default location of the library.
10646 hardcode_minus_L=yes
10647 export_dynamic_flag_spec='$wl-E'
10648 ;;
10649
10650 hpux10*)
10651 if test yes,no = "$GCC,$with_gnu_ld"; then
10652 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653 else
10654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10655 fi
10656 if test no = "$with_gnu_ld"; then
10657 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10658 hardcode_libdir_separator=:
10659 hardcode_direct=yes
10660 hardcode_direct_absolute=yes
10661 export_dynamic_flag_spec='$wl-E'
10662 # hardcode_minus_L: Not really in the search PATH,
10663 # but as the default location of the library.
10664 hardcode_minus_L=yes
10665 fi
10666 ;;
10667
10668 hpux11*)
10669 if test yes,no = "$GCC,$with_gnu_ld"; then
10670 case $host_cpu in
10671 hppa*64*)
10672 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 ;;
10674 ia64*)
10675 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10676 ;;
10677 *)
10678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679 ;;
10680 esac
10681 else
10682 case $host_cpu in
10683 hppa*64*)
10684 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 ;;
10686 ia64*)
10687 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10688 ;;
10689 *)
10690
10691 # Older versions of the 11.00 compiler do not understand -b yet
10692 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10694 printf %s "checking if $CC understands -b... " >&6; }
10695 if test ${lt_cv_prog_compiler__b+y}
10696 then :
10697 printf %s "(cached) " >&6
10698 else case e in #(
10699 e) lt_cv_prog_compiler__b=no
10700 save_LDFLAGS=$LDFLAGS
10701 LDFLAGS="$LDFLAGS -b"
10702 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10704 # The linker can only warn and ignore the option if not recognized
10705 # So say no if there are warnings
10706 if test -s conftest.err; then
10707 # Append any errors to the config.log.
10708 cat conftest.err 1>&5
10709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711 if diff conftest.exp conftest.er2 >/dev/null; then
10712 lt_cv_prog_compiler__b=yes
10713 fi
10714 else
10715 lt_cv_prog_compiler__b=yes
10716 fi
10717 fi
10718 $RM -r conftest*
10719 LDFLAGS=$save_LDFLAGS
10720 ;;
10721 esac
10722 fi
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10724 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10725
10726 if test yes = "$lt_cv_prog_compiler__b"; then
10727 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728 else
10729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10730 fi
10731
10732 ;;
10733 esac
10734 fi
10735 if test no = "$with_gnu_ld"; then
10736 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10737 hardcode_libdir_separator=:
10738
10739 case $host_cpu in
10740 hppa*64*|ia64*)
10741 hardcode_direct=no
10742 hardcode_shlibpath_var=no
10743 ;;
10744 *)
10745 hardcode_direct=yes
10746 hardcode_direct_absolute=yes
10747 export_dynamic_flag_spec='$wl-E'
10748
10749 # hardcode_minus_L: Not really in the search PATH,
10750 # but as the default location of the library.
10751 hardcode_minus_L=yes
10752 ;;
10753 esac
10754 fi
10755 ;;
10756
10757 irix5* | irix6* | nonstopux*)
10758 if test yes = "$GCC"; then
10759 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'
10760 # Try to use the -exported_symbol ld option, if it does not
10761 # work, assume that -exports_file does not work either and
10762 # implicitly export all symbols.
10763 # This should be the same for all languages, so no per-tag cache variable.
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10765 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10766 if test ${lt_cv_irix_exported_symbol+y}
10767 then :
10768 printf %s "(cached) " >&6
10769 else case e in #(
10770 e) save_LDFLAGS=$LDFLAGS
10771 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 int foo (void) { return 0; }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"
10777 then :
10778 lt_cv_irix_exported_symbol=yes
10779 else case e in #(
10780 e) lt_cv_irix_exported_symbol=no ;;
10781 esac
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LDFLAGS=$save_LDFLAGS ;;
10786 esac
10787 fi
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10789 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10790 if test yes = "$lt_cv_irix_exported_symbol"; then
10791 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'
10792 fi
10793 else
10794 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'
10795 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'
10796 fi
10797 archive_cmds_need_lc='no'
10798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10799 hardcode_libdir_separator=:
10800 inherit_rpath=yes
10801 link_all_deplibs=yes
10802 ;;
10803
10804 linux*)
10805 case $cc_basename in
10806 tcc*)
10807 # Fabrice Bellard et al's Tiny C Compiler
10808 ld_shlibs=yes
10809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10810 ;;
10811 esac
10812 ;;
10813
10814 netbsd*)
10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10817 else
10818 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10819 fi
10820 hardcode_libdir_flag_spec='-R$libdir'
10821 hardcode_direct=yes
10822 hardcode_shlibpath_var=no
10823 ;;
10824
10825 newsos6)
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes
10828 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10829 hardcode_libdir_separator=:
10830 hardcode_shlibpath_var=no
10831 ;;
10832
10833 *nto* | *qnx*)
10834 ;;
10835
10836 openbsd* | bitrig*)
10837 if test -f /usr/libexec/ld.so; then
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10840 hardcode_direct_absolute=yes
10841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10844 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10845 export_dynamic_flag_spec='$wl-E'
10846 else
10847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10849 fi
10850 else
10851 ld_shlibs=no
10852 fi
10853 ;;
10854
10855 os2*)
10856 hardcode_libdir_flag_spec='-L$libdir'
10857 hardcode_minus_L=yes
10858 allow_undefined_flag=unsupported
10859 shrext_cmds=.dll
10860 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10863 $ECHO EXPORTS >> $output_objdir/$libname.def~
10864 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10866 emximp -o $lib $output_objdir/$libname.def'
10867 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10870 $ECHO EXPORTS >> $output_objdir/$libname.def~
10871 prefix_cmds="$SED"~
10872 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10873 prefix_cmds="$prefix_cmds -e 1d";
10874 fi~
10875 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10876 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10878 emximp -o $lib $output_objdir/$libname.def'
10879 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10880 enable_shared_with_static_runtimes=yes
10881 file_list_spec='@'
10882 ;;
10883
10884 osf3*)
10885 if test yes = "$GCC"; then
10886 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10887 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'
10888 else
10889 allow_undefined_flag=' -expect_unresolved \*'
10890 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'
10891 fi
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10894 hardcode_libdir_separator=:
10895 ;;
10896
10897 osf4* | osf5*) # as osf3* with the addition of -msym flag
10898 if test yes = "$GCC"; then
10899 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10900 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'
10901 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10902 else
10903 allow_undefined_flag=' -expect_unresolved \*'
10904 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'
10905 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~
10906 $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'
10907
10908 # Both c and cxx compiler support -rpath directly
10909 hardcode_libdir_flag_spec='-rpath $libdir'
10910 fi
10911 archive_cmds_need_lc='no'
10912 hardcode_libdir_separator=:
10913 ;;
10914
10915 solaris*)
10916 no_undefined_flag=' -z defs'
10917 if test yes = "$GCC"; then
10918 wlarc='$wl'
10919 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $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'
10922 else
10923 case `$CC -V 2>&1` in
10924 *"Compilers 5.0"*)
10925 wlarc=''
10926 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10929 ;;
10930 *)
10931 wlarc='$wl'
10932 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10934 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10935 ;;
10936 esac
10937 fi
10938 hardcode_libdir_flag_spec='-R$libdir'
10939 hardcode_shlibpath_var=no
10940 case $host_os in
10941 solaris2.[0-5] | solaris2.[0-5].*) ;;
10942 *)
10943 # The compiler driver will combine and reorder linker options,
10944 # but understands '-z linker_flag'. GCC discards it without '$wl',
10945 # but is careful enough not to reorder.
10946 # Supported since Solaris 2.6 (maybe 2.5.1?)
10947 if test yes = "$GCC"; then
10948 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10949 else
10950 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10951 fi
10952 ;;
10953 esac
10954 link_all_deplibs=yes
10955 ;;
10956
10957 sunos4*)
10958 if test sequent = "$host_vendor"; then
10959 # Use $CC to link under sequent, because it throws in some extra .o
10960 # files that make .init and .fini sections work.
10961 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10962 else
10963 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10964 fi
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_direct=yes
10967 hardcode_minus_L=yes
10968 hardcode_shlibpath_var=no
10969 ;;
10970
10971 sysv4)
10972 case $host_vendor in
10973 sni)
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_direct=yes # is this really true???
10976 ;;
10977 siemens)
10978 ## LD is ld it makes a PLAMLIB
10979 ## CC just makes a GrossModule.
10980 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10981 reload_cmds='$CC -r -o $output$reload_objs'
10982 hardcode_direct=no
10983 ;;
10984 motorola)
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10987 ;;
10988 esac
10989 runpath_var='LD_RUN_PATH'
10990 hardcode_shlibpath_var=no
10991 ;;
10992
10993 sysv4.3*)
10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995 hardcode_shlibpath_var=no
10996 export_dynamic_flag_spec='-Bexport'
10997 ;;
10998
10999 sysv4*MP*)
11000 if test -d /usr/nec; then
11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_shlibpath_var=no
11003 runpath_var=LD_RUN_PATH
11004 hardcode_runpath_var=yes
11005 ld_shlibs=yes
11006 fi
11007 ;;
11008
11009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010 no_undefined_flag='$wl-z,text'
11011 archive_cmds_need_lc=no
11012 hardcode_shlibpath_var=no
11013 runpath_var='LD_RUN_PATH'
11014
11015 if test yes = "$GCC"; then
11016 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 else
11019 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 fi
11022 ;;
11023
11024 sysv5* | sco3.2v5* | sco5v6*)
11025 # Note: We CANNOT use -z defs as we might desire, because we do not
11026 # link with -lc, and that would cause any symbols used from libc to
11027 # always be unresolved, which means just about no library would
11028 # ever link correctly. If we're not using GNU ld we use -z text
11029 # though, which does catch some bad symbols but isn't as heavy-handed
11030 # as -z defs.
11031 no_undefined_flag='$wl-z,text'
11032 allow_undefined_flag='$wl-z,nodefs'
11033 archive_cmds_need_lc=no
11034 hardcode_shlibpath_var=no
11035 hardcode_libdir_flag_spec='$wl-R,$libdir'
11036 hardcode_libdir_separator=':'
11037 link_all_deplibs=yes
11038 export_dynamic_flag_spec='$wl-Bexport'
11039 runpath_var='LD_RUN_PATH'
11040
11041 if test yes = "$GCC"; then
11042 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 else
11045 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 fi
11048 ;;
11049
11050 uts4*)
11051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 hardcode_shlibpath_var=no
11054 ;;
11055
11056 *)
11057 ld_shlibs=no
11058 ;;
11059 esac
11060
11061 if test sni = "$host_vendor"; then
11062 case $host in
11063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11064 export_dynamic_flag_spec='$wl-Blargedynsym'
11065 ;;
11066 esac
11067 fi
11068 fi
11069
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11071 printf "%s\n" "$ld_shlibs" >&6; }
11072 test no = "$ld_shlibs" && can_build_shared=no
11073
11074 with_gnu_ld=$with_gnu_ld
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 #
11091 # Do we need to explicitly link libc?
11092 #
11093 case "x$archive_cmds_need_lc" in
11094 x|xyes)
11095 # Assume -lc should be added
11096 archive_cmds_need_lc=yes
11097
11098 if test yes,yes = "$GCC,$enable_shared"; then
11099 case $archive_cmds in
11100 *'~'*)
11101 # FIXME: we may have to deal with multi-command sequences.
11102 ;;
11103 '$CC '*)
11104 # Test whether the compiler implicitly links with -lc since on some
11105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106 # to ld, don't add -lc before -lgcc.
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11108 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11109 if test ${lt_cv_archive_cmds_need_lc+y}
11110 then :
11111 printf %s "(cached) " >&6
11112 else case e in #(
11113 e) $RM conftest*
11114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11115
11116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117 (eval $ac_compile) 2>&5
11118 ac_status=$?
11119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; } 2>conftest.err; then
11121 soname=conftest
11122 lib=conftest
11123 libobjs=conftest.$ac_objext
11124 deplibs=
11125 wl=$lt_prog_compiler_wl
11126 pic_flag=$lt_prog_compiler_pic
11127 compiler_flags=-v
11128 linker_flags=-v
11129 verstring=
11130 output_objdir=.
11131 libname=conftest
11132 lt_save_allow_undefined_flag=$allow_undefined_flag
11133 allow_undefined_flag=
11134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11136 ac_status=$?
11137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138 test $ac_status = 0; }
11139 then
11140 lt_cv_archive_cmds_need_lc=no
11141 else
11142 lt_cv_archive_cmds_need_lc=yes
11143 fi
11144 allow_undefined_flag=$lt_save_allow_undefined_flag
11145 else
11146 cat conftest.err 1>&5
11147 fi
11148 $RM conftest*
11149 ;;
11150 esac
11151 fi
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11153 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11154 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11155 ;;
11156 esac
11157 fi
11158 ;;
11159 esac
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11313 printf %s "checking dynamic linker characteristics... " >&6; }
11314
11315 if test yes = "$GCC"; then
11316 case $host_os in
11317 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11318 *) lt_awk_arg='/^libraries:/' ;;
11319 esac
11320 case $host_os in
11321 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11322 *) lt_sed_strip_eq='s|=/|/|g' ;;
11323 esac
11324 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11325 case $lt_search_path_spec in
11326 *\;*)
11327 # if the path contains ";" then we assume it to be the separator
11328 # otherwise default to the standard path separator (i.e. ":") - it is
11329 # assumed that no part of a normal pathname contains ";" but that should
11330 # okay in the real world where ";" in dirpaths is itself problematic.
11331 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11332 ;;
11333 *)
11334 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11335 ;;
11336 esac
11337 # Ok, now we have the path, separated by spaces, we can step through it
11338 # and add multilib dir if necessary...
11339 lt_tmp_lt_search_path_spec=
11340 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11341 # ...but if some path component already ends with the multilib dir we assume
11342 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11343 case "$lt_multi_os_dir; $lt_search_path_spec " in
11344 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11345 lt_multi_os_dir=
11346 ;;
11347 esac
11348 for lt_sys_path in $lt_search_path_spec; do
11349 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11350 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11351 elif test -n "$lt_multi_os_dir"; then
11352 test -d "$lt_sys_path" && \
11353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11354 fi
11355 done
11356 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11357 BEGIN {RS = " "; FS = "/|\n";} {
11358 lt_foo = "";
11359 lt_count = 0;
11360 for (lt_i = NF; lt_i > 0; lt_i--) {
11361 if ($lt_i != "" && $lt_i != ".") {
11362 if ($lt_i == "..") {
11363 lt_count++;
11364 } else {
11365 if (lt_count == 0) {
11366 lt_foo = "/" $lt_i lt_foo;
11367 } else {
11368 lt_count--;
11369 }
11370 }
11371 }
11372 }
11373 if (lt_foo != "") { lt_freq[lt_foo]++; }
11374 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11375 }'`
11376 # AWK program above erroneously prepends '/' to C:/dos/paths
11377 # for these hosts.
11378 case $host_os in
11379 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11380 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11381 esac
11382 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11383 else
11384 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11385 fi
11386 library_names_spec=
11387 libname_spec='lib$name'
11388 soname_spec=
11389 shrext_cmds=.so
11390 postinstall_cmds=
11391 postuninstall_cmds=
11392 finish_cmds=
11393 finish_eval=
11394 shlibpath_var=
11395 shlibpath_overrides_runpath=unknown
11396 version_type=none
11397 dynamic_linker="$host_os ld.so"
11398 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11399 need_lib_prefix=unknown
11400 hardcode_into_libs=no
11401
11402 # when you set need_version to no, make sure it does not cause -set_version
11403 # flags to be left without arguments
11404 need_version=unknown
11405
11406
11407
11408 case $host_os in
11409 aix3*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11411 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11412 shlibpath_var=LIBPATH
11413
11414 # AIX 3 has no versioning support, so we append a major version to the name.
11415 soname_spec='$libname$release$shared_ext$major'
11416 ;;
11417
11418 aix[4-9]*)
11419 version_type=linux # correct to gnu/linux during the next big refactor
11420 need_lib_prefix=no
11421 need_version=no
11422 hardcode_into_libs=yes
11423 if test ia64 = "$host_cpu"; then
11424 # AIX 5 supports IA64
11425 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 else
11428 # With GCC up to 2.95.x, collect2 would create an import file
11429 # for dependence libraries. The import file would start with
11430 # the line '#! .'. This would cause the generated library to
11431 # depend on '.', always an invalid library. This was fixed in
11432 # development snapshots of GCC prior to 3.0.
11433 case $host_os in
11434 aix4 | aix4.[01] | aix4.[01].*)
11435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11436 echo ' yes '
11437 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11438 :
11439 else
11440 can_build_shared=no
11441 fi
11442 ;;
11443 esac
11444 # Using Import Files as archive members, it is possible to support
11445 # filename-based versioning of shared library archives on AIX. While
11446 # this would work for both with and without runtime linking, it will
11447 # prevent static linking of such archives. So we do filename-based
11448 # shared library versioning with .so extension only, which is used
11449 # when both runtime linking and shared linking is enabled.
11450 # Unfortunately, runtime linking may impact performance, so we do
11451 # not want this to be the default eventually. Also, we use the
11452 # versioned .so libs for executables only if there is the -brtl
11453 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11454 # To allow for filename-based versioning support, we need to create
11455 # libNAME.so.V as an archive file, containing:
11456 # *) an Import File, referring to the versioned filename of the
11457 # archive as well as the shared archive member, telling the
11458 # bitwidth (32 or 64) of that shared object, and providing the
11459 # list of exported symbols of that shared object, eventually
11460 # decorated with the 'weak' keyword
11461 # *) the shared object with the F_LOADONLY flag set, to really avoid
11462 # it being seen by the linker.
11463 # At run time we better use the real file rather than another symlink,
11464 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11465
11466 case $with_aix_soname,$aix_use_runtimelinking in
11467 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11468 # soname into executable. Probably we can add versioning support to
11469 # collect2, so additional links can be useful in future.
11470 aix,yes) # traditional libtool
11471 dynamic_linker='AIX unversionable lib.so'
11472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11473 # instead of lib<name>.a to let people know that these are not
11474 # typical AIX shared libraries.
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 ;;
11477 aix,no) # traditional AIX only
11478 dynamic_linker='AIX lib.a(lib.so.V)'
11479 # We preserve .a as extension for shared libraries through AIX4.2
11480 # and later when we are not doing run time linking.
11481 library_names_spec='$libname$release.a $libname.a'
11482 soname_spec='$libname$release$shared_ext$major'
11483 ;;
11484 svr4,*) # full svr4 only
11485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11487 # We do not specify a path in Import Files, so LIBPATH fires.
11488 shlibpath_overrides_runpath=yes
11489 ;;
11490 *,yes) # both, prefer svr4
11491 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11492 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11493 # unpreferred sharedlib libNAME.a needs extra handling
11494 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"'
11495 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"'
11496 # We do not specify a path in Import Files, so LIBPATH fires.
11497 shlibpath_overrides_runpath=yes
11498 ;;
11499 *,no) # both, prefer aix
11500 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11501 library_names_spec='$libname$release.a $libname.a'
11502 soname_spec='$libname$release$shared_ext$major'
11503 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11504 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)'
11505 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"'
11506 ;;
11507 esac
11508 shlibpath_var=LIBPATH
11509 fi
11510 ;;
11511
11512 amigaos*)
11513 case $host_cpu in
11514 powerpc)
11515 # Since July 2007 AmigaOS4 officially supports .so libraries.
11516 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 ;;
11519 m68k)
11520 library_names_spec='$libname.ixlibrary $libname.a'
11521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11522 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'
11523 ;;
11524 esac
11525 ;;
11526
11527 beos*)
11528 library_names_spec='$libname$shared_ext'
11529 dynamic_linker="$host_os ld.so"
11530 shlibpath_var=LIBRARY_PATH
11531 ;;
11532
11533 bsdi[45]*)
11534 version_type=linux # correct to gnu/linux during the next big refactor
11535 need_version=no
11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537 soname_spec='$libname$release$shared_ext$major'
11538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11542 # the default ld.so.conf also contains /usr/contrib/lib and
11543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11544 # libtool to hard-code these into programs
11545 ;;
11546
11547 cygwin* | mingw* | pw32* | cegcc*)
11548 version_type=windows
11549 shrext_cmds=.dll
11550 need_version=no
11551 need_lib_prefix=no
11552
11553 case $GCC,$cc_basename in
11554 yes,*)
11555 # gcc
11556 library_names_spec='$libname.dll.a'
11557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11558 postinstall_cmds='base_file=`basename \$file`~
11559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11560 dldir=$destdir/`dirname \$dlpath`~
11561 test -d \$dldir || mkdir -p \$dldir~
11562 $install_prog $dir/$dlname \$dldir/$dlname~
11563 chmod a+x \$dldir/$dlname~
11564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11566 fi'
11567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11568 dlpath=$dir/\$dldll~
11569 $RM \$dlpath'
11570 shlibpath_overrides_runpath=yes
11571
11572 case $host_os in
11573 cygwin*)
11574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11575 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576
11577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11578 ;;
11579 mingw* | cegcc*)
11580 # MinGW DLLs use traditional 'lib' prefix
11581 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11582 ;;
11583 pw32*)
11584 # pw32 DLLs use 'pw' prefix rather than 'lib'
11585 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11586 ;;
11587 esac
11588 dynamic_linker='Win32 ld.exe'
11589 ;;
11590
11591 *,cl* | *,icl*)
11592 # Native MSVC or ICC
11593 libname_spec='$name'
11594 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11595 library_names_spec='$libname.dll.lib'
11596
11597 case $build_os in
11598 mingw*)
11599 sys_lib_search_path_spec=
11600 lt_save_ifs=$IFS
11601 IFS=';'
11602 for lt_path in $LIB
11603 do
11604 IFS=$lt_save_ifs
11605 # Let DOS variable expansion print the short 8.3 style file name.
11606 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11607 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11608 done
11609 IFS=$lt_save_ifs
11610 # Convert to MSYS style.
11611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11612 ;;
11613 cygwin*)
11614 # Convert to unix form, then to dos form, then back to unix form
11615 # but this time dos style (no spaces!) so that the unix form looks
11616 # like /cygdrive/c/PROGRA~1:/cygdr...
11617 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11618 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11619 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11620 ;;
11621 *)
11622 sys_lib_search_path_spec=$LIB
11623 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11624 # It is most probably a Windows format PATH.
11625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11626 else
11627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11628 fi
11629 # FIXME: find the short name or the path components, as spaces are
11630 # common. (e.g. "Program Files" -> "PROGRA~1")
11631 ;;
11632 esac
11633
11634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11635 postinstall_cmds='base_file=`basename \$file`~
11636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11637 dldir=$destdir/`dirname \$dlpath`~
11638 test -d \$dldir || mkdir -p \$dldir~
11639 $install_prog $dir/$dlname \$dldir/$dlname'
11640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11641 dlpath=$dir/\$dldll~
11642 $RM \$dlpath'
11643 shlibpath_overrides_runpath=yes
11644 dynamic_linker='Win32 link.exe'
11645 ;;
11646
11647 *)
11648 # Assume MSVC and ICC wrapper
11649 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11650 dynamic_linker='Win32 ld.exe'
11651 ;;
11652 esac
11653 # FIXME: first we should search . and the directory the executable is in
11654 shlibpath_var=PATH
11655 ;;
11656
11657 darwin* | rhapsody*)
11658 dynamic_linker="$host_os dyld"
11659 version_type=darwin
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11663 soname_spec='$libname$release$major$shared_ext'
11664 shlibpath_overrides_runpath=yes
11665 shlibpath_var=DYLD_LIBRARY_PATH
11666 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11667
11668 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11670 ;;
11671
11672 dgux*)
11673 version_type=linux # correct to gnu/linux during the next big refactor
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677 soname_spec='$libname$release$shared_ext$major'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 ;;
11680
11681 freebsd* | dragonfly* | midnightbsd*)
11682 # DragonFly does not have aout. When/if they implement a new
11683 # versioning mechanism, adjust this.
11684 if test -x /usr/bin/objformat; then
11685 objformat=`/usr/bin/objformat`
11686 else
11687 case $host_os in
11688 freebsd[23].*) objformat=aout ;;
11689 *) objformat=elf ;;
11690 esac
11691 fi
11692 version_type=freebsd-$objformat
11693 case $version_type in
11694 freebsd-elf*)
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696 soname_spec='$libname$release$shared_ext$major'
11697 need_version=no
11698 need_lib_prefix=no
11699 ;;
11700 freebsd-*)
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11702 need_version=yes
11703 ;;
11704 esac
11705 shlibpath_var=LD_LIBRARY_PATH
11706 case $host_os in
11707 freebsd2.*)
11708 shlibpath_overrides_runpath=yes
11709 ;;
11710 freebsd3.[01]* | freebsdelf3.[01]*)
11711 shlibpath_overrides_runpath=yes
11712 hardcode_into_libs=yes
11713 ;;
11714 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11715 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11716 shlibpath_overrides_runpath=no
11717 hardcode_into_libs=yes
11718 ;;
11719 *) # from 4.6 on, and DragonFly
11720 shlibpath_overrides_runpath=yes
11721 hardcode_into_libs=yes
11722 ;;
11723 esac
11724 ;;
11725
11726 haiku*)
11727 version_type=linux # correct to gnu/linux during the next big refactor
11728 need_lib_prefix=no
11729 need_version=no
11730 dynamic_linker="$host_os runtime_loader"
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732 soname_spec='$libname$release$shared_ext$major'
11733 shlibpath_var=LIBRARY_PATH
11734 shlibpath_overrides_runpath=no
11735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11736 hardcode_into_libs=yes
11737 ;;
11738
11739 hpux9* | hpux10* | hpux11*)
11740 # Give a soname corresponding to the major version so that dld.sl refuses to
11741 # link against other versions.
11742 version_type=sunos
11743 need_lib_prefix=no
11744 need_version=no
11745 case $host_cpu in
11746 ia64*)
11747 shrext_cmds='.so'
11748 hardcode_into_libs=yes
11749 dynamic_linker="$host_os dld.so"
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753 soname_spec='$libname$release$shared_ext$major'
11754 if test 32 = "$HPUX_IA64_MODE"; then
11755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11756 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11757 else
11758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11759 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11760 fi
11761 ;;
11762 hppa*64*)
11763 shrext_cmds='.sl'
11764 hardcode_into_libs=yes
11765 dynamic_linker="$host_os dld.sl"
11766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 soname_spec='$libname$release$shared_ext$major'
11770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11772 ;;
11773 *)
11774 shrext_cmds='.sl'
11775 dynamic_linker="$host_os dld.sl"
11776 shlibpath_var=SHLIB_PATH
11777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779 soname_spec='$libname$release$shared_ext$major'
11780 ;;
11781 esac
11782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11783 postinstall_cmds='chmod 555 $lib'
11784 # or fails outright, so override atomically:
11785 install_override_mode=555
11786 ;;
11787
11788 interix[3-9]*)
11789 version_type=linux # correct to gnu/linux during the next big refactor
11790 need_lib_prefix=no
11791 need_version=no
11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793 soname_spec='$libname$release$shared_ext$major'
11794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=no
11797 hardcode_into_libs=yes
11798 ;;
11799
11800 irix5* | irix6* | nonstopux*)
11801 case $host_os in
11802 nonstopux*) version_type=nonstopux ;;
11803 *)
11804 if test yes = "$lt_cv_prog_gnu_ld"; then
11805 version_type=linux # correct to gnu/linux during the next big refactor
11806 else
11807 version_type=irix
11808 fi ;;
11809 esac
11810 need_lib_prefix=no
11811 need_version=no
11812 soname_spec='$libname$release$shared_ext$major'
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11814 case $host_os in
11815 irix5* | nonstopux*)
11816 libsuff= shlibsuff=
11817 ;;
11818 *)
11819 case $LD in # libtool.m4 will add one of these switches to LD
11820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11821 libsuff= shlibsuff= libmagic=32-bit;;
11822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11823 libsuff=32 shlibsuff=N32 libmagic=N32;;
11824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11826 *) libsuff= shlibsuff= libmagic=never-match;;
11827 esac
11828 ;;
11829 esac
11830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11831 shlibpath_overrides_runpath=no
11832 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11833 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11834 hardcode_into_libs=yes
11835 ;;
11836
11837 # No shared lib support for Linux oldld, aout, or coff.
11838 linux*oldld* | linux*aout* | linux*coff*)
11839 dynamic_linker=no
11840 ;;
11841
11842 linux*android*)
11843 version_type=none # Android doesn't support versioned libraries.
11844 need_lib_prefix=no
11845 need_version=no
11846 library_names_spec='$libname$release$shared_ext'
11847 soname_spec='$libname$release$shared_ext'
11848 finish_cmds=
11849 shlibpath_var=LD_LIBRARY_PATH
11850 shlibpath_overrides_runpath=yes
11851
11852 # This implies no fast_install, which is unacceptable.
11853 # Some rework will be needed to allow for fast_install
11854 # before this can be enabled.
11855 hardcode_into_libs=yes
11856
11857 dynamic_linker='Android linker'
11858 # Don't embed -rpath directories since the linker doesn't support them.
11859 hardcode_libdir_flag_spec='-L$libdir'
11860 ;;
11861
11862 # This must be glibc/ELF.
11863 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11864 version_type=linux # correct to gnu/linux during the next big refactor
11865 need_lib_prefix=no
11866 need_version=no
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868 soname_spec='$libname$release$shared_ext$major'
11869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=no
11872
11873 # Some binutils ld are patched to set DT_RUNPATH
11874 if test ${lt_cv_shlibpath_overrides_runpath+y}
11875 then :
11876 printf %s "(cached) " >&6
11877 else case e in #(
11878 e) lt_cv_shlibpath_overrides_runpath=no
11879 save_LDFLAGS=$LDFLAGS
11880 save_libdir=$libdir
11881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885
11886 int
11887 main (void)
11888 {
11889
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"
11895 then :
11896 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11897 then :
11898 lt_cv_shlibpath_overrides_runpath=yes
11899 fi
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LDFLAGS=$save_LDFLAGS
11904 libdir=$save_libdir
11905 ;;
11906 esac
11907 fi
11908
11909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11910
11911 # This implies no fast_install, which is unacceptable.
11912 # Some rework will be needed to allow for fast_install
11913 # before this can be enabled.
11914 hardcode_into_libs=yes
11915
11916 # Ideally, we could use ldconfig to report *all* directores which are
11917 # searched for libraries, however this is still not possible. Aside from not
11918 # being certain /sbin/ldconfig is available, command
11919 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11920 # even though it is searched at run-time. Try to do the best guess by
11921 # appending ld.so.conf contents (and includes) to the search path.
11922 if test -f /etc/ld.so.conf; then
11923 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' ' '`
11924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11925 fi
11926
11927 # We used to test for /lib/ld.so.1 and disable shared libraries on
11928 # powerpc, because MkLinux only supported shared libraries with the
11929 # GNU dynamic linker. Since this was broken with cross compilers,
11930 # most powerpc-linux boxes support dynamic linking these days and
11931 # people can always --disable-shared, the test was removed, and we
11932 # assume the GNU/Linux dynamic linker is in use.
11933 dynamic_linker='GNU/Linux ld.so'
11934 ;;
11935
11936 netbsd*)
11937 version_type=sunos
11938 need_lib_prefix=no
11939 need_version=no
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11943 dynamic_linker='NetBSD (a.out) ld.so'
11944 else
11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946 soname_spec='$libname$release$shared_ext$major'
11947 dynamic_linker='NetBSD ld.elf_so'
11948 fi
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11951 hardcode_into_libs=yes
11952 ;;
11953
11954 newsos6)
11955 version_type=linux # correct to gnu/linux during the next big refactor
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959 ;;
11960
11961 *nto* | *qnx*)
11962 version_type=qnx
11963 need_lib_prefix=no
11964 need_version=no
11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966 soname_spec='$libname$release$shared_ext$major'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 shlibpath_overrides_runpath=no
11969 hardcode_into_libs=yes
11970 dynamic_linker='ldqnx.so'
11971 ;;
11972
11973 openbsd* | bitrig*)
11974 version_type=sunos
11975 sys_lib_dlsearch_path_spec=/usr/lib
11976 need_lib_prefix=no
11977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11978 need_version=no
11979 else
11980 need_version=yes
11981 fi
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes
11986 ;;
11987
11988 os2*)
11989 libname_spec='$name'
11990 version_type=windows
11991 shrext_cmds=.dll
11992 need_version=no
11993 need_lib_prefix=no
11994 # OS/2 can only load a DLL with a base name of 8 characters or less.
11995 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11996 v=$($ECHO $release$versuffix | tr -d .-);
11997 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11998 $ECHO $n$v`$shared_ext'
11999 library_names_spec='${libname}_dll.$libext'
12000 dynamic_linker='OS/2 ld.exe'
12001 shlibpath_var=BEGINLIBPATH
12002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12004 postinstall_cmds='base_file=`basename \$file`~
12005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12006 dldir=$destdir/`dirname \$dlpath`~
12007 test -d \$dldir || mkdir -p \$dldir~
12008 $install_prog $dir/$dlname \$dldir/$dlname~
12009 chmod a+x \$dldir/$dlname~
12010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12012 fi'
12013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12014 dlpath=$dir/\$dldll~
12015 $RM \$dlpath'
12016 ;;
12017
12018 osf3* | osf4* | osf5*)
12019 version_type=osf
12020 need_lib_prefix=no
12021 need_version=no
12022 soname_spec='$libname$release$shared_ext$major'
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027 ;;
12028
12029 rdos*)
12030 dynamic_linker=no
12031 ;;
12032
12033 solaris*)
12034 version_type=linux # correct to gnu/linux during the next big refactor
12035 need_lib_prefix=no
12036 need_version=no
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 soname_spec='$libname$release$shared_ext$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=yes
12041 hardcode_into_libs=yes
12042 # ldd complains unless libraries are executable
12043 postinstall_cmds='chmod +x $lib'
12044 ;;
12045
12046 sunos4*)
12047 version_type=sunos
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052 if test yes = "$with_gnu_ld"; then
12053 need_lib_prefix=no
12054 fi
12055 need_version=yes
12056 ;;
12057
12058 sysv4 | sysv4.3*)
12059 version_type=linux # correct to gnu/linux during the next big refactor
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 soname_spec='$libname$release$shared_ext$major'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 case $host_vendor in
12064 sni)
12065 shlibpath_overrides_runpath=no
12066 need_lib_prefix=no
12067 runpath_var=LD_RUN_PATH
12068 ;;
12069 siemens)
12070 need_lib_prefix=no
12071 ;;
12072 motorola)
12073 need_lib_prefix=no
12074 need_version=no
12075 shlibpath_overrides_runpath=no
12076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12077 ;;
12078 esac
12079 ;;
12080
12081 sysv4*MP*)
12082 if test -d /usr/nec; then
12083 version_type=linux # correct to gnu/linux during the next big refactor
12084 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12085 soname_spec='$libname$shared_ext.$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 fi
12088 ;;
12089
12090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12091 version_type=sco
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12095 soname_spec='$libname$release$shared_ext$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=yes
12098 hardcode_into_libs=yes
12099 if test yes = "$with_gnu_ld"; then
12100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12101 else
12102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12103 case $host_os in
12104 sco3.2v5*)
12105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12106 ;;
12107 esac
12108 fi
12109 sys_lib_dlsearch_path_spec='/usr/lib'
12110 ;;
12111
12112 tpf*)
12113 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12114 version_type=linux # correct to gnu/linux during the next big refactor
12115 need_lib_prefix=no
12116 need_version=no
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 hardcode_into_libs=yes
12121 ;;
12122
12123 uts4*)
12124 version_type=linux # correct to gnu/linux during the next big refactor
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 soname_spec='$libname$release$shared_ext$major'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 ;;
12129
12130 *)
12131 dynamic_linker=no
12132 ;;
12133 esac
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12135 printf "%s\n" "$dynamic_linker" >&6; }
12136 test no = "$dynamic_linker" && can_build_shared=no
12137
12138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12139 if test yes = "$GCC"; then
12140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12141 fi
12142
12143 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12144 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12145 fi
12146
12147 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12148 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12149 fi
12150
12151 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12152 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12153
12154 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12155 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12156
12157 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12158 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12257 printf %s "checking how to hardcode library paths into programs... " >&6; }
12258 hardcode_action=
12259 if test -n "$hardcode_libdir_flag_spec" ||
12260 test -n "$runpath_var" ||
12261 test yes = "$hardcode_automatic"; then
12262
12263 # We can hardcode non-existent directories.
12264 if test no != "$hardcode_direct" &&
12265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12266 # have to relink, otherwise we might link with an installed library
12267 # when we should be linking with a yet-to-be-installed one
12268 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12269 test no != "$hardcode_minus_L"; then
12270 # Linking always hardcodes the temporary library directory.
12271 hardcode_action=relink
12272 else
12273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12274 hardcode_action=immediate
12275 fi
12276 else
12277 # We cannot hardcode anything, or else we can only hardcode existing
12278 # directories.
12279 hardcode_action=unsupported
12280 fi
12281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12282 printf "%s\n" "$hardcode_action" >&6; }
12283
12284 if test relink = "$hardcode_action" ||
12285 test yes = "$inherit_rpath"; then
12286 # Fast installation is not supported
12287 enable_fast_install=no
12288 elif test yes = "$shlibpath_overrides_runpath" ||
12289 test no = "$enable_shared"; then
12290 # Fast installation is not necessary
12291 enable_fast_install=needless
12292 fi
12293
12294
12295
12296
12297
12298
12299 if test yes != "$enable_dlopen"; then
12300 enable_dlopen=unknown
12301 enable_dlopen_self=unknown
12302 enable_dlopen_self_static=unknown
12303 else
12304 lt_cv_dlopen=no
12305 lt_cv_dlopen_libs=
12306
12307 case $host_os in
12308 beos*)
12309 lt_cv_dlopen=load_add_on
12310 lt_cv_dlopen_libs=
12311 lt_cv_dlopen_self=yes
12312 ;;
12313
12314 mingw* | pw32* | cegcc*)
12315 lt_cv_dlopen=LoadLibrary
12316 lt_cv_dlopen_libs=
12317 ;;
12318
12319 cygwin*)
12320 lt_cv_dlopen=dlopen
12321 lt_cv_dlopen_libs=
12322 ;;
12323
12324 darwin*)
12325 # if libdl is installed we need to link against it
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12327 printf %s "checking for dlopen in -ldl... " >&6; }
12328 if test ${ac_cv_lib_dl_dlopen+y}
12329 then :
12330 printf %s "(cached) " >&6
12331 else case e in #(
12332 e) ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-ldl $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply.
12340 The 'extern "C"' is for builds by C++ compilers;
12341 although this is not generally supported in C code supporting it here
12342 has little cost and some practical benefit (sr 110532). */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char dlopen (void);
12347 int
12348 main (void)
12349 {
12350 return dlopen ();
12351 ;
12352 return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_link "$LINENO"
12356 then :
12357 ac_cv_lib_dl_dlopen=yes
12358 else case e in #(
12359 e) ac_cv_lib_dl_dlopen=no ;;
12360 esac
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS ;;
12365 esac
12366 fi
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12368 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12369 if test "x$ac_cv_lib_dl_dlopen" = xyes
12370 then :
12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372 else case e in #(
12373 e)
12374 lt_cv_dlopen=dyld
12375 lt_cv_dlopen_libs=
12376 lt_cv_dlopen_self=yes
12377 ;;
12378 esac
12379 fi
12380
12381 ;;
12382
12383 tpf*)
12384 # Don't try to run any link tests for TPF. We know it's impossible
12385 # because TPF is a cross-compiler, and we know how we open DSOs.
12386 lt_cv_dlopen=dlopen
12387 lt_cv_dlopen_libs=
12388 lt_cv_dlopen_self=no
12389 ;;
12390
12391 *)
12392 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12393 if test "x$ac_cv_func_shl_load" = xyes
12394 then :
12395 lt_cv_dlopen=shl_load
12396 else case e in #(
12397 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12398 printf %s "checking for shl_load in -ldld... " >&6; }
12399 if test ${ac_cv_lib_dld_shl_load+y}
12400 then :
12401 printf %s "(cached) " >&6
12402 else case e in #(
12403 e) ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldld $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply.
12411 The 'extern "C"' is for builds by C++ compilers;
12412 although this is not generally supported in C code supporting it here
12413 has little cost and some practical benefit (sr 110532). */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char shl_load (void);
12418 int
12419 main (void)
12420 {
12421 return shl_load ();
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"
12427 then :
12428 ac_cv_lib_dld_shl_load=yes
12429 else case e in #(
12430 e) ac_cv_lib_dld_shl_load=no ;;
12431 esac
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12434 conftest$ac_exeext conftest.$ac_ext
12435 LIBS=$ac_check_lib_save_LIBS ;;
12436 esac
12437 fi
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12439 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12440 if test "x$ac_cv_lib_dld_shl_load" = xyes
12441 then :
12442 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12443 else case e in #(
12444 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12445 if test "x$ac_cv_func_dlopen" = xyes
12446 then :
12447 lt_cv_dlopen=dlopen
12448 else case e in #(
12449 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12450 printf %s "checking for dlopen in -ldl... " >&6; }
12451 if test ${ac_cv_lib_dl_dlopen+y}
12452 then :
12453 printf %s "(cached) " >&6
12454 else case e in #(
12455 e) ac_check_lib_save_LIBS=$LIBS
12456 LIBS="-ldl $LIBS"
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply.
12463 The 'extern "C"' is for builds by C++ compilers;
12464 although this is not generally supported in C code supporting it here
12465 has little cost and some practical benefit (sr 110532). */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char dlopen (void);
12470 int
12471 main (void)
12472 {
12473 return dlopen ();
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"
12479 then :
12480 ac_cv_lib_dl_dlopen=yes
12481 else case e in #(
12482 e) ac_cv_lib_dl_dlopen=no ;;
12483 esac
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS ;;
12488 esac
12489 fi
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12491 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12492 if test "x$ac_cv_lib_dl_dlopen" = xyes
12493 then :
12494 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12495 else case e in #(
12496 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12497 printf %s "checking for dlopen in -lsvld... " >&6; }
12498 if test ${ac_cv_lib_svld_dlopen+y}
12499 then :
12500 printf %s "(cached) " >&6
12501 else case e in #(
12502 e) ac_check_lib_save_LIBS=$LIBS
12503 LIBS="-lsvld $LIBS"
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply.
12510 The 'extern "C"' is for builds by C++ compilers;
12511 although this is not generally supported in C code supporting it here
12512 has little cost and some practical benefit (sr 110532). */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 char dlopen (void);
12517 int
12518 main (void)
12519 {
12520 return dlopen ();
12521 ;
12522 return 0;
12523 }
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"
12526 then :
12527 ac_cv_lib_svld_dlopen=yes
12528 else case e in #(
12529 e) ac_cv_lib_svld_dlopen=no ;;
12530 esac
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS ;;
12535 esac
12536 fi
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12538 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12539 if test "x$ac_cv_lib_svld_dlopen" = xyes
12540 then :
12541 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12542 else case e in #(
12543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12544 printf %s "checking for dld_link in -ldld... " >&6; }
12545 if test ${ac_cv_lib_dld_dld_link+y}
12546 then :
12547 printf %s "(cached) " >&6
12548 else case e in #(
12549 e) ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-ldld $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply.
12557 The 'extern "C"' is for builds by C++ compilers;
12558 although this is not generally supported in C code supporting it here
12559 has little cost and some practical benefit (sr 110532). */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char dld_link (void);
12564 int
12565 main (void)
12566 {
12567 return dld_link ();
12568 ;
12569 return 0;
12570 }
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"
12573 then :
12574 ac_cv_lib_dld_dld_link=yes
12575 else case e in #(
12576 e) ac_cv_lib_dld_dld_link=no ;;
12577 esac
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS ;;
12582 esac
12583 fi
12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12585 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12586 if test "x$ac_cv_lib_dld_dld_link" = xyes
12587 then :
12588 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12589 fi
12590
12591 ;;
12592 esac
12593 fi
12594
12595 ;;
12596 esac
12597 fi
12598
12599 ;;
12600 esac
12601 fi
12602
12603 ;;
12604 esac
12605 fi
12606
12607 ;;
12608 esac
12609 fi
12610
12611 ;;
12612 esac
12613
12614 if test no = "$lt_cv_dlopen"; then
12615 enable_dlopen=no
12616 else
12617 enable_dlopen=yes
12618 fi
12619
12620 case $lt_cv_dlopen in
12621 dlopen)
12622 save_CPPFLAGS=$CPPFLAGS
12623 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12624
12625 save_LDFLAGS=$LDFLAGS
12626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12627
12628 save_LIBS=$LIBS
12629 LIBS="$lt_cv_dlopen_libs $LIBS"
12630
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12632 printf %s "checking whether a program can dlopen itself... " >&6; }
12633 if test ${lt_cv_dlopen_self+y}
12634 then :
12635 printf %s "(cached) " >&6
12636 else case e in #(
12637 e) if test yes = "$cross_compiling"; then :
12638 lt_cv_dlopen_self=cross
12639 else
12640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12641 lt_status=$lt_dlunknown
12642 cat > conftest.$ac_ext <<_LT_EOF
12643 #line $LINENO "configure"
12644 #include "confdefs.h"
12645
12646 #if HAVE_DLFCN_H
12647 #include <dlfcn.h>
12648 #endif
12649
12650 #include <stdio.h>
12651
12652 #ifdef RTLD_GLOBAL
12653 # define LT_DLGLOBAL RTLD_GLOBAL
12654 #else
12655 # ifdef DL_GLOBAL
12656 # define LT_DLGLOBAL DL_GLOBAL
12657 # else
12658 # define LT_DLGLOBAL 0
12659 # endif
12660 #endif
12661
12662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12663 find out it does not work in some platform. */
12664 #ifndef LT_DLLAZY_OR_NOW
12665 # ifdef RTLD_LAZY
12666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12667 # else
12668 # ifdef DL_LAZY
12669 # define LT_DLLAZY_OR_NOW DL_LAZY
12670 # else
12671 # ifdef RTLD_NOW
12672 # define LT_DLLAZY_OR_NOW RTLD_NOW
12673 # else
12674 # ifdef DL_NOW
12675 # define LT_DLLAZY_OR_NOW DL_NOW
12676 # else
12677 # define LT_DLLAZY_OR_NOW 0
12678 # endif
12679 # endif
12680 # endif
12681 # endif
12682 #endif
12683
12684 /* When -fvisibility=hidden is used, assume the code has been annotated
12685 correspondingly for the symbols needed. */
12686 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12687 int fnord () __attribute__((visibility("default")));
12688 #endif
12689
12690 int fnord () { return 42; }
12691 int main ()
12692 {
12693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12694 int status = $lt_dlunknown;
12695
12696 if (self)
12697 {
12698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12699 else
12700 {
12701 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12702 else puts (dlerror ());
12703 }
12704 /* dlclose (self); */
12705 }
12706 else
12707 puts (dlerror ());
12708
12709 return status;
12710 }
12711 _LT_EOF
12712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12713 (eval $ac_link) 2>&5
12714 ac_status=$?
12715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12716 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12717 (./conftest; exit; ) >&5 2>/dev/null
12718 lt_status=$?
12719 case x$lt_status in
12720 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12721 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12722 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12723 esac
12724 else :
12725 # compilation failed
12726 lt_cv_dlopen_self=no
12727 fi
12728 fi
12729 rm -fr conftest*
12730
12731 ;;
12732 esac
12733 fi
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12735 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12736
12737 if test yes = "$lt_cv_dlopen_self"; then
12738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12740 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12741 if test ${lt_cv_dlopen_self_static+y}
12742 then :
12743 printf %s "(cached) " >&6
12744 else case e in #(
12745 e) if test yes = "$cross_compiling"; then :
12746 lt_cv_dlopen_self_static=cross
12747 else
12748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12749 lt_status=$lt_dlunknown
12750 cat > conftest.$ac_ext <<_LT_EOF
12751 #line $LINENO "configure"
12752 #include "confdefs.h"
12753
12754 #if HAVE_DLFCN_H
12755 #include <dlfcn.h>
12756 #endif
12757
12758 #include <stdio.h>
12759
12760 #ifdef RTLD_GLOBAL
12761 # define LT_DLGLOBAL RTLD_GLOBAL
12762 #else
12763 # ifdef DL_GLOBAL
12764 # define LT_DLGLOBAL DL_GLOBAL
12765 # else
12766 # define LT_DLGLOBAL 0
12767 # endif
12768 #endif
12769
12770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12771 find out it does not work in some platform. */
12772 #ifndef LT_DLLAZY_OR_NOW
12773 # ifdef RTLD_LAZY
12774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12775 # else
12776 # ifdef DL_LAZY
12777 # define LT_DLLAZY_OR_NOW DL_LAZY
12778 # else
12779 # ifdef RTLD_NOW
12780 # define LT_DLLAZY_OR_NOW RTLD_NOW
12781 # else
12782 # ifdef DL_NOW
12783 # define LT_DLLAZY_OR_NOW DL_NOW
12784 # else
12785 # define LT_DLLAZY_OR_NOW 0
12786 # endif
12787 # endif
12788 # endif
12789 # endif
12790 #endif
12791
12792 /* When -fvisibility=hidden is used, assume the code has been annotated
12793 correspondingly for the symbols needed. */
12794 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12795 int fnord () __attribute__((visibility("default")));
12796 #endif
12797
12798 int fnord () { return 42; }
12799 int main ()
12800 {
12801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12802 int status = $lt_dlunknown;
12803
12804 if (self)
12805 {
12806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12807 else
12808 {
12809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12810 else puts (dlerror ());
12811 }
12812 /* dlclose (self); */
12813 }
12814 else
12815 puts (dlerror ());
12816
12817 return status;
12818 }
12819 _LT_EOF
12820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12821 (eval $ac_link) 2>&5
12822 ac_status=$?
12823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12825 (./conftest; exit; ) >&5 2>/dev/null
12826 lt_status=$?
12827 case x$lt_status in
12828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12831 esac
12832 else :
12833 # compilation failed
12834 lt_cv_dlopen_self_static=no
12835 fi
12836 fi
12837 rm -fr conftest*
12838
12839 ;;
12840 esac
12841 fi
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12843 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12844 fi
12845
12846 CPPFLAGS=$save_CPPFLAGS
12847 LDFLAGS=$save_LDFLAGS
12848 LIBS=$save_LIBS
12849 ;;
12850 esac
12851
12852 case $lt_cv_dlopen_self in
12853 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12854 *) enable_dlopen_self=unknown ;;
12855 esac
12856
12857 case $lt_cv_dlopen_self_static in
12858 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12859 *) enable_dlopen_self_static=unknown ;;
12860 esac
12861 fi
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879 striplib=
12880 old_striplib=
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12882 printf %s "checking whether stripping libraries is possible... " >&6; }
12883 if test -z "$STRIP"; then
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 printf "%s\n" "no" >&6; }
12886 else
12887 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12888 old_striplib="$STRIP --strip-debug"
12889 striplib="$STRIP --strip-unneeded"
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 printf "%s\n" "yes" >&6; }
12892 else
12893 case $host_os in
12894 darwin*)
12895 # FIXME - insert some real tests, host_os isn't really good enough
12896 striplib="$STRIP -x"
12897 old_striplib="$STRIP -S"
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899 printf "%s\n" "yes" >&6; }
12900 ;;
12901 freebsd*)
12902 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12903 old_striplib="$STRIP --strip-debug"
12904 striplib="$STRIP --strip-unneeded"
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906 printf "%s\n" "yes" >&6; }
12907 else
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 printf "%s\n" "no" >&6; }
12910 fi
12911 ;;
12912 *)
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 printf "%s\n" "no" >&6; }
12915 ;;
12916 esac
12917 fi
12918 fi
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931 # Report what library types will actually be built
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12933 printf %s "checking if libtool supports shared libraries... " >&6; }
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12935 printf "%s\n" "$can_build_shared" >&6; }
12936
12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12938 printf %s "checking whether to build shared libraries... " >&6; }
12939 test no = "$can_build_shared" && enable_shared=no
12940
12941 # On AIX, shared libraries and static libraries use the same namespace, and
12942 # are all built from PIC.
12943 case $host_os in
12944 aix3*)
12945 test yes = "$enable_shared" && enable_static=no
12946 if test -n "$RANLIB"; then
12947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12948 postinstall_cmds='$RANLIB $lib'
12949 fi
12950 ;;
12951
12952 aix[4-9]*)
12953 if test ia64 != "$host_cpu"; then
12954 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12955 yes,aix,yes) ;; # shared object as lib.so file only
12956 yes,svr4,*) ;; # shared object as lib.so archive member only
12957 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12958 esac
12959 fi
12960 ;;
12961 esac
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12963 printf "%s\n" "$enable_shared" >&6; }
12964
12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12966 printf %s "checking whether to build static libraries... " >&6; }
12967 # Make sure either enable_shared or enable_static is yes.
12968 test yes = "$enable_shared" || enable_static=yes
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12970 printf "%s\n" "$enable_static" >&6; }
12971
12972
12973
12974
12975 fi
12976 ac_ext=c
12977 ac_cpp='$CPP $CPPFLAGS'
12978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12981
12982 CC=$lt_save_CC
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998 ac_config_commands="$ac_config_commands libtool"
12999
13000
13001
13002
13003 # Only expand once:
13004
13005
13006
13007 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13020 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13021 if test ${ac_cv_c_undeclared_builtin_options+y}
13022 then :
13023 printf %s "(cached) " >&6
13024 else case e in #(
13025 e) ac_save_CFLAGS=$CFLAGS
13026 ac_cv_c_undeclared_builtin_options='cannot detect'
13027 for ac_arg in '' -fno-builtin; do
13028 CFLAGS="$ac_save_CFLAGS $ac_arg"
13029 # This test program should *not* compile successfully.
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032
13033 int
13034 main (void)
13035 {
13036 (void) strchr;
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"
13042 then :
13043
13044 else case e in #(
13045 e) # This test program should compile successfully.
13046 # No library function is consistently available on
13047 # freestanding implementations, so test against a dummy
13048 # declaration. Include always-available headers on the
13049 # off chance that they somehow elicit warnings.
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 #include <float.h>
13053 #include <limits.h>
13054 #include <stdarg.h>
13055 #include <stddef.h>
13056 extern void ac_decl (int, char *);
13057
13058 int
13059 main (void)
13060 {
13061 (void) ac_decl (0, (char *) 0);
13062 (void) ac_decl;
13063
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 if ac_fn_c_try_compile "$LINENO"
13069 then :
13070 if test x"$ac_arg" = x
13071 then :
13072 ac_cv_c_undeclared_builtin_options='none needed'
13073 else case e in #(
13074 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13075 esac
13076 fi
13077 break
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13080 esac
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13083 done
13084 CFLAGS=$ac_save_CFLAGS
13085 ;;
13086 esac
13087 fi
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13089 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13090 case $ac_cv_c_undeclared_builtin_options in #(
13091 'cannot detect') :
13092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13093 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13094 as_fn_error $? "cannot make $CC report undeclared builtins
13095 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13096 'none needed') :
13097 ac_c_undeclared_builtin_options='' ;; #(
13098 *) :
13099 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13100 esac
13101
13102
13103
13104
13105
13106 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13107 if test "x$ac_cv_have_decl___clang__" = xyes
13108 then :
13109 CLANGCC="yes"
13110 else case e in #(
13111 e) CLANGCC="no" ;;
13112 esac
13113 fi
13114 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13115 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13116 then :
13117 INTELCC="yes"
13118 else case e in #(
13119 e) INTELCC="no" ;;
13120 esac
13121 fi
13122 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13123 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13124 then :
13125 SUNCC="yes"
13126 else case e in #(
13127 e) SUNCC="no" ;;
13128 esac
13129 fi
13130
13131
13132
13133
13134
13135
13136
13137
13138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13139 if test -n "$ac_tool_prefix"; then
13140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 printf %s "checking for $ac_word... " >&6; }
13144 if test ${ac_cv_path_PKG_CONFIG+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else case e in #(
13148 e) case $PKG_CONFIG in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13151 ;;
13152 *)
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 case $as_dir in #(((
13158 '') as_dir=./ ;;
13159 */) ;;
13160 *) as_dir=$as_dir/ ;;
13161 esac
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13164 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13166 break 2
13167 fi
13168 done
13169 done
13170 IFS=$as_save_IFS
13171
13172 ;;
13173 esac ;;
13174 esac
13175 fi
13176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13177 if test -n "$PKG_CONFIG"; then
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13179 printf "%s\n" "$PKG_CONFIG" >&6; }
13180 else
13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 printf "%s\n" "no" >&6; }
13183 fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_path_PKG_CONFIG"; then
13188 ac_pt_PKG_CONFIG=$PKG_CONFIG
13189 # Extract the first word of "pkg-config", so it can be a program name with args.
13190 set dummy pkg-config; ac_word=$2
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 printf %s "checking for $ac_word... " >&6; }
13193 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13194 then :
13195 printf %s "(cached) " >&6
13196 else case e in #(
13197 e) case $ac_pt_PKG_CONFIG in
13198 [\\/]* | ?:[\\/]*)
13199 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13200 ;;
13201 *)
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205 IFS=$as_save_IFS
13206 case $as_dir in #(((
13207 '') as_dir=./ ;;
13208 */) ;;
13209 *) as_dir=$as_dir/ ;;
13210 esac
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13213 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13215 break 2
13216 fi
13217 done
13218 done
13219 IFS=$as_save_IFS
13220
13221 ;;
13222 esac ;;
13223 esac
13224 fi
13225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13226 if test -n "$ac_pt_PKG_CONFIG"; then
13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13228 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13229 else
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 printf "%s\n" "no" >&6; }
13232 fi
13233
13234 if test "x$ac_pt_PKG_CONFIG" = x; then
13235 PKG_CONFIG=""
13236 else
13237 case $cross_compiling:$ac_tool_warned in
13238 yes:)
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243 PKG_CONFIG=$ac_pt_PKG_CONFIG
13244 fi
13245 else
13246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13247 fi
13248
13249 fi
13250 if test -n "$PKG_CONFIG"; then
13251 _pkg_min_version=0.9.0
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13253 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 printf "%s\n" "yes" >&6; }
13257 else
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 printf "%s\n" "no" >&6; }
13260 PKG_CONFIG=""
13261 fi
13262 fi
13263
13264
13265
13266
13267
13268 # Check whether --enable-selective-werror was given.
13269 if test ${enable_selective_werror+y}
13270 then :
13271 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13272 else case e in #(
13273 e) SELECTIVE_WERROR=yes ;;
13274 esac
13275 fi
13276
13277
13278
13279
13280
13281 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13282 if test "x$SUNCC" = "xyes"; then
13283 BASE_CFLAGS="-v"
13284 else
13285 BASE_CFLAGS=""
13286 fi
13287
13288 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302 xorg_testset_save_CFLAGS="$CFLAGS"
13303
13304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13309 then :
13310 printf %s "(cached) " >&6
13311 else case e in #(
13312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 int i;
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"
13317 then :
13318 xorg_cv_cc_flag_unknown_warning_option=yes
13319 else case e in #(
13320 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13321 esac
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13324 esac
13325 fi
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13329 CFLAGS="$xorg_testset_save_CFLAGS"
13330 fi
13331
13332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13335 fi
13336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13340 then :
13341 printf %s "(cached) " >&6
13342 else case e in #(
13343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 int i;
13346 _ACEOF
13347 if ac_fn_c_try_compile "$LINENO"
13348 then :
13349 xorg_cv_cc_flag_unused_command_line_argument=yes
13350 else case e in #(
13351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13352 esac
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13355 esac
13356 fi
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360 CFLAGS="$xorg_testset_save_CFLAGS"
13361 fi
13362
13363 found="no"
13364
13365 if test $found = "no" ; then
13366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368 fi
13369
13370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372 fi
13373
13374 CFLAGS="$CFLAGS -Wall"
13375
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13377 printf %s "checking if $CC supports -Wall... " >&6; }
13378 cacheid=xorg_cv_cc_flag__Wall
13379 if eval test \${$cacheid+y}
13380 then :
13381 printf %s "(cached) " >&6
13382 else case e in #(
13383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 int i;
13386 int
13387 main (void)
13388 {
13389
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"
13395 then :
13396 eval $cacheid=yes
13397 else case e in #(
13398 e) eval $cacheid=no ;;
13399 esac
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13402 conftest$ac_exeext conftest.$ac_ext ;;
13403 esac
13404 fi
13405
13406
13407 CFLAGS="$xorg_testset_save_CFLAGS"
13408
13409 eval supported=\$$cacheid
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13411 printf "%s\n" "$supported" >&6; }
13412 if test "$supported" = "yes" ; then
13413 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13414 found="yes"
13415 fi
13416 fi
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432 xorg_testset_save_CFLAGS="$CFLAGS"
13433
13434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13439 then :
13440 printf %s "(cached) " >&6
13441 else case e in #(
13442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444 int i;
13445 _ACEOF
13446 if ac_fn_c_try_compile "$LINENO"
13447 then :
13448 xorg_cv_cc_flag_unknown_warning_option=yes
13449 else case e in #(
13450 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13451 esac
13452 fi
13453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13454 esac
13455 fi
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13459 CFLAGS="$xorg_testset_save_CFLAGS"
13460 fi
13461
13462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13465 fi
13466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13470 then :
13471 printf %s "(cached) " >&6
13472 else case e in #(
13473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 int i;
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"
13478 then :
13479 xorg_cv_cc_flag_unused_command_line_argument=yes
13480 else case e in #(
13481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13482 esac
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13485 esac
13486 fi
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13490 CFLAGS="$xorg_testset_save_CFLAGS"
13491 fi
13492
13493 found="no"
13494
13495 if test $found = "no" ; then
13496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498 fi
13499
13500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13502 fi
13503
13504 CFLAGS="$CFLAGS -Wpointer-arith"
13505
13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13507 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13508 cacheid=xorg_cv_cc_flag__Wpointer_arith
13509 if eval test \${$cacheid+y}
13510 then :
13511 printf %s "(cached) " >&6
13512 else case e in #(
13513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 int i;
13516 int
13517 main (void)
13518 {
13519
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"
13525 then :
13526 eval $cacheid=yes
13527 else case e in #(
13528 e) eval $cacheid=no ;;
13529 esac
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13532 conftest$ac_exeext conftest.$ac_ext ;;
13533 esac
13534 fi
13535
13536
13537 CFLAGS="$xorg_testset_save_CFLAGS"
13538
13539 eval supported=\$$cacheid
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13541 printf "%s\n" "$supported" >&6; }
13542 if test "$supported" = "yes" ; then
13543 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13544 found="yes"
13545 fi
13546 fi
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562 xorg_testset_save_CFLAGS="$CFLAGS"
13563
13564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13568 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13569 then :
13570 printf %s "(cached) " >&6
13571 else case e in #(
13572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 int i;
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"
13577 then :
13578 xorg_cv_cc_flag_unknown_warning_option=yes
13579 else case e in #(
13580 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13581 esac
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13584 esac
13585 fi
13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13589 CFLAGS="$xorg_testset_save_CFLAGS"
13590 fi
13591
13592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13595 fi
13596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13600 then :
13601 printf %s "(cached) " >&6
13602 else case e in #(
13603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 int i;
13606 _ACEOF
13607 if ac_fn_c_try_compile "$LINENO"
13608 then :
13609 xorg_cv_cc_flag_unused_command_line_argument=yes
13610 else case e in #(
13611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13612 esac
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13615 esac
13616 fi
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13620 CFLAGS="$xorg_testset_save_CFLAGS"
13621 fi
13622
13623 found="no"
13624
13625 if test $found = "no" ; then
13626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628 fi
13629
13630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13632 fi
13633
13634 CFLAGS="$CFLAGS -Wmissing-declarations"
13635
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13637 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13638 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13639 if eval test \${$cacheid+y}
13640 then :
13641 printf %s "(cached) " >&6
13642 else case e in #(
13643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 int i;
13646 int
13647 main (void)
13648 {
13649
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_c_try_link "$LINENO"
13655 then :
13656 eval $cacheid=yes
13657 else case e in #(
13658 e) eval $cacheid=no ;;
13659 esac
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13662 conftest$ac_exeext conftest.$ac_ext ;;
13663 esac
13664 fi
13665
13666
13667 CFLAGS="$xorg_testset_save_CFLAGS"
13668
13669 eval supported=\$$cacheid
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13671 printf "%s\n" "$supported" >&6; }
13672 if test "$supported" = "yes" ; then
13673 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13674 found="yes"
13675 fi
13676 fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692 xorg_testset_save_CFLAGS="$CFLAGS"
13693
13694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13699 then :
13700 printf %s "(cached) " >&6
13701 else case e in #(
13702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 int i;
13705 _ACEOF
13706 if ac_fn_c_try_compile "$LINENO"
13707 then :
13708 xorg_cv_cc_flag_unknown_warning_option=yes
13709 else case e in #(
13710 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13711 esac
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13714 esac
13715 fi
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13719 CFLAGS="$xorg_testset_save_CFLAGS"
13720 fi
13721
13722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725 fi
13726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13730 then :
13731 printf %s "(cached) " >&6
13732 else case e in #(
13733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 int i;
13736 _ACEOF
13737 if ac_fn_c_try_compile "$LINENO"
13738 then :
13739 xorg_cv_cc_flag_unused_command_line_argument=yes
13740 else case e in #(
13741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13742 esac
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13745 esac
13746 fi
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13750 CFLAGS="$xorg_testset_save_CFLAGS"
13751 fi
13752
13753 found="no"
13754
13755 if test $found = "no" ; then
13756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758 fi
13759
13760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13762 fi
13763
13764 CFLAGS="$CFLAGS -Wformat=2"
13765
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13767 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13768 cacheid=xorg_cv_cc_flag__Wformat_2
13769 if eval test \${$cacheid+y}
13770 then :
13771 printf %s "(cached) " >&6
13772 else case e in #(
13773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 int i;
13776 int
13777 main (void)
13778 {
13779
13780 ;
13781 return 0;
13782 }
13783 _ACEOF
13784 if ac_fn_c_try_link "$LINENO"
13785 then :
13786 eval $cacheid=yes
13787 else case e in #(
13788 e) eval $cacheid=no ;;
13789 esac
13790 fi
13791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13792 conftest$ac_exeext conftest.$ac_ext ;;
13793 esac
13794 fi
13795
13796
13797 CFLAGS="$xorg_testset_save_CFLAGS"
13798
13799 eval supported=\$$cacheid
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13801 printf "%s\n" "$supported" >&6; }
13802 if test "$supported" = "yes" ; then
13803 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13804 found="yes"
13805 fi
13806 fi
13807
13808 if test $found = "no" ; then
13809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811 fi
13812
13813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13815 fi
13816
13817 CFLAGS="$CFLAGS -Wformat"
13818
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13820 printf %s "checking if $CC supports -Wformat... " >&6; }
13821 cacheid=xorg_cv_cc_flag__Wformat
13822 if eval test \${$cacheid+y}
13823 then :
13824 printf %s "(cached) " >&6
13825 else case e in #(
13826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 int i;
13829 int
13830 main (void)
13831 {
13832
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"
13838 then :
13839 eval $cacheid=yes
13840 else case e in #(
13841 e) eval $cacheid=no ;;
13842 esac
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13845 conftest$ac_exeext conftest.$ac_ext ;;
13846 esac
13847 fi
13848
13849
13850 CFLAGS="$xorg_testset_save_CFLAGS"
13851
13852 eval supported=\$$cacheid
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13854 printf "%s\n" "$supported" >&6; }
13855 if test "$supported" = "yes" ; then
13856 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13857 found="yes"
13858 fi
13859 fi
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877 xorg_testset_save_CFLAGS="$CFLAGS"
13878
13879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13882 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13883 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13884 then :
13885 printf %s "(cached) " >&6
13886 else case e in #(
13887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889 int i;
13890 _ACEOF
13891 if ac_fn_c_try_compile "$LINENO"
13892 then :
13893 xorg_cv_cc_flag_unknown_warning_option=yes
13894 else case e in #(
13895 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13896 esac
13897 fi
13898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13899 esac
13900 fi
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13902 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13904 CFLAGS="$xorg_testset_save_CFLAGS"
13905 fi
13906
13907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910 fi
13911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13913 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13914 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13915 then :
13916 printf %s "(cached) " >&6
13917 else case e in #(
13918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 int i;
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"
13923 then :
13924 xorg_cv_cc_flag_unused_command_line_argument=yes
13925 else case e in #(
13926 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13927 esac
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13930 esac
13931 fi
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13935 CFLAGS="$xorg_testset_save_CFLAGS"
13936 fi
13937
13938 found="no"
13939
13940 if test $found = "no" ; then
13941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943 fi
13944
13945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13947 fi
13948
13949 CFLAGS="$CFLAGS -Wstrict-prototypes"
13950
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13952 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13953 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13954 if eval test \${$cacheid+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else case e in #(
13958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 int
13962 main (void)
13963 {
13964
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 if ac_fn_c_try_link "$LINENO"
13970 then :
13971 eval $cacheid=yes
13972 else case e in #(
13973 e) eval $cacheid=no ;;
13974 esac
13975 fi
13976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13977 conftest$ac_exeext conftest.$ac_ext ;;
13978 esac
13979 fi
13980
13981
13982 CFLAGS="$xorg_testset_save_CFLAGS"
13983
13984 eval supported=\$$cacheid
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13986 printf "%s\n" "$supported" >&6; }
13987 if test "$supported" = "yes" ; then
13988 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13989 found="yes"
13990 fi
13991 fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007 xorg_testset_save_CFLAGS="$CFLAGS"
14008
14009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14013 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14014 then :
14015 printf %s "(cached) " >&6
14016 else case e in #(
14017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 int i;
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"
14022 then :
14023 xorg_cv_cc_flag_unknown_warning_option=yes
14024 else case e in #(
14025 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14026 esac
14027 fi
14028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14029 esac
14030 fi
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14034 CFLAGS="$xorg_testset_save_CFLAGS"
14035 fi
14036
14037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14040 fi
14041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14045 then :
14046 printf %s "(cached) " >&6
14047 else case e in #(
14048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 int i;
14051 _ACEOF
14052 if ac_fn_c_try_compile "$LINENO"
14053 then :
14054 xorg_cv_cc_flag_unused_command_line_argument=yes
14055 else case e in #(
14056 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14057 esac
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14060 esac
14061 fi
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14065 CFLAGS="$xorg_testset_save_CFLAGS"
14066 fi
14067
14068 found="no"
14069
14070 if test $found = "no" ; then
14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073 fi
14074
14075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14077 fi
14078
14079 CFLAGS="$CFLAGS -Wmissing-prototypes"
14080
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14082 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14083 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14084 if eval test \${$cacheid+y}
14085 then :
14086 printf %s "(cached) " >&6
14087 else case e in #(
14088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 int
14092 main (void)
14093 {
14094
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"
14100 then :
14101 eval $cacheid=yes
14102 else case e in #(
14103 e) eval $cacheid=no ;;
14104 esac
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14107 conftest$ac_exeext conftest.$ac_ext ;;
14108 esac
14109 fi
14110
14111
14112 CFLAGS="$xorg_testset_save_CFLAGS"
14113
14114 eval supported=\$$cacheid
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14116 printf "%s\n" "$supported" >&6; }
14117 if test "$supported" = "yes" ; then
14118 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14119 found="yes"
14120 fi
14121 fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137 xorg_testset_save_CFLAGS="$CFLAGS"
14138
14139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14142 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14143 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14144 then :
14145 printf %s "(cached) " >&6
14146 else case e in #(
14147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 int i;
14150 _ACEOF
14151 if ac_fn_c_try_compile "$LINENO"
14152 then :
14153 xorg_cv_cc_flag_unknown_warning_option=yes
14154 else case e in #(
14155 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14156 esac
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14159 esac
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14164 CFLAGS="$xorg_testset_save_CFLAGS"
14165 fi
14166
14167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14170 fi
14171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14175 then :
14176 printf %s "(cached) " >&6
14177 else case e in #(
14178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 int i;
14181 _ACEOF
14182 if ac_fn_c_try_compile "$LINENO"
14183 then :
14184 xorg_cv_cc_flag_unused_command_line_argument=yes
14185 else case e in #(
14186 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14187 esac
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14190 esac
14191 fi
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14195 CFLAGS="$xorg_testset_save_CFLAGS"
14196 fi
14197
14198 found="no"
14199
14200 if test $found = "no" ; then
14201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14203 fi
14204
14205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14207 fi
14208
14209 CFLAGS="$CFLAGS -Wnested-externs"
14210
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14212 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14213 cacheid=xorg_cv_cc_flag__Wnested_externs
14214 if eval test \${$cacheid+y}
14215 then :
14216 printf %s "(cached) " >&6
14217 else case e in #(
14218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 int i;
14221 int
14222 main (void)
14223 {
14224
14225 ;
14226 return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"
14230 then :
14231 eval $cacheid=yes
14232 else case e in #(
14233 e) eval $cacheid=no ;;
14234 esac
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14237 conftest$ac_exeext conftest.$ac_ext ;;
14238 esac
14239 fi
14240
14241
14242 CFLAGS="$xorg_testset_save_CFLAGS"
14243
14244 eval supported=\$$cacheid
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14246 printf "%s\n" "$supported" >&6; }
14247 if test "$supported" = "yes" ; then
14248 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14249 found="yes"
14250 fi
14251 fi
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267 xorg_testset_save_CFLAGS="$CFLAGS"
14268
14269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14272 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14273 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14274 then :
14275 printf %s "(cached) " >&6
14276 else case e in #(
14277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 int i;
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"
14282 then :
14283 xorg_cv_cc_flag_unknown_warning_option=yes
14284 else case e in #(
14285 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14286 esac
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14289 esac
14290 fi
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14294 CFLAGS="$xorg_testset_save_CFLAGS"
14295 fi
14296
14297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14300 fi
14301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14305 then :
14306 printf %s "(cached) " >&6
14307 else case e in #(
14308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 int i;
14311 _ACEOF
14312 if ac_fn_c_try_compile "$LINENO"
14313 then :
14314 xorg_cv_cc_flag_unused_command_line_argument=yes
14315 else case e in #(
14316 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14317 esac
14318 fi
14319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14320 esac
14321 fi
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14325 CFLAGS="$xorg_testset_save_CFLAGS"
14326 fi
14327
14328 found="no"
14329
14330 if test $found = "no" ; then
14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333 fi
14334
14335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14337 fi
14338
14339 CFLAGS="$CFLAGS -Wbad-function-cast"
14340
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14342 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14343 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14344 if eval test \${$cacheid+y}
14345 then :
14346 printf %s "(cached) " >&6
14347 else case e in #(
14348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 int i;
14351 int
14352 main (void)
14353 {
14354
14355 ;
14356 return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"
14360 then :
14361 eval $cacheid=yes
14362 else case e in #(
14363 e) eval $cacheid=no ;;
14364 esac
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14367 conftest$ac_exeext conftest.$ac_ext ;;
14368 esac
14369 fi
14370
14371
14372 CFLAGS="$xorg_testset_save_CFLAGS"
14373
14374 eval supported=\$$cacheid
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14376 printf "%s\n" "$supported" >&6; }
14377 if test "$supported" = "yes" ; then
14378 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14379 found="yes"
14380 fi
14381 fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397 xorg_testset_save_CFLAGS="$CFLAGS"
14398
14399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14404 then :
14405 printf %s "(cached) " >&6
14406 else case e in #(
14407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 int i;
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"
14412 then :
14413 xorg_cv_cc_flag_unknown_warning_option=yes
14414 else case e in #(
14415 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14416 esac
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14419 esac
14420 fi
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14422 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14424 CFLAGS="$xorg_testset_save_CFLAGS"
14425 fi
14426
14427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14430 fi
14431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14433 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14434 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14435 then :
14436 printf %s "(cached) " >&6
14437 else case e in #(
14438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 int i;
14441 _ACEOF
14442 if ac_fn_c_try_compile "$LINENO"
14443 then :
14444 xorg_cv_cc_flag_unused_command_line_argument=yes
14445 else case e in #(
14446 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14447 esac
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14450 esac
14451 fi
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14455 CFLAGS="$xorg_testset_save_CFLAGS"
14456 fi
14457
14458 found="no"
14459
14460 if test $found = "no" ; then
14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463 fi
14464
14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14467 fi
14468
14469 CFLAGS="$CFLAGS -Wold-style-definition"
14470
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14472 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14473 cacheid=xorg_cv_cc_flag__Wold_style_definition
14474 if eval test \${$cacheid+y}
14475 then :
14476 printf %s "(cached) " >&6
14477 else case e in #(
14478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 int i;
14481 int
14482 main (void)
14483 {
14484
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"
14490 then :
14491 eval $cacheid=yes
14492 else case e in #(
14493 e) eval $cacheid=no ;;
14494 esac
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497 conftest$ac_exeext conftest.$ac_ext ;;
14498 esac
14499 fi
14500
14501
14502 CFLAGS="$xorg_testset_save_CFLAGS"
14503
14504 eval supported=\$$cacheid
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14506 printf "%s\n" "$supported" >&6; }
14507 if test "$supported" = "yes" ; then
14508 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14509 found="yes"
14510 fi
14511 fi
14512
14513 if test $found = "no" ; then
14514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14516 fi
14517
14518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520 fi
14521
14522 CFLAGS="$CFLAGS -fd"
14523
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14525 printf %s "checking if $CC supports -fd... " >&6; }
14526 cacheid=xorg_cv_cc_flag__fd
14527 if eval test \${$cacheid+y}
14528 then :
14529 printf %s "(cached) " >&6
14530 else case e in #(
14531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 int i;
14534 int
14535 main (void)
14536 {
14537
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"
14543 then :
14544 eval $cacheid=yes
14545 else case e in #(
14546 e) eval $cacheid=no ;;
14547 esac
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14550 conftest$ac_exeext conftest.$ac_ext ;;
14551 esac
14552 fi
14553
14554
14555 CFLAGS="$xorg_testset_save_CFLAGS"
14556
14557 eval supported=\$$cacheid
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14559 printf "%s\n" "$supported" >&6; }
14560 if test "$supported" = "yes" ; then
14561 BASE_CFLAGS="$BASE_CFLAGS -fd"
14562 found="yes"
14563 fi
14564 fi
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580 xorg_testset_save_CFLAGS="$CFLAGS"
14581
14582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14585 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14586 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14587 then :
14588 printf %s "(cached) " >&6
14589 else case e in #(
14590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592 int i;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"
14595 then :
14596 xorg_cv_cc_flag_unknown_warning_option=yes
14597 else case e in #(
14598 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14599 esac
14600 fi
14601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14602 esac
14603 fi
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14605 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14607 CFLAGS="$xorg_testset_save_CFLAGS"
14608 fi
14609
14610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613 fi
14614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14616 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14617 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14618 then :
14619 printf %s "(cached) " >&6
14620 else case e in #(
14621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 int i;
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"
14626 then :
14627 xorg_cv_cc_flag_unused_command_line_argument=yes
14628 else case e in #(
14629 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14630 esac
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14633 esac
14634 fi
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14636 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14638 CFLAGS="$xorg_testset_save_CFLAGS"
14639 fi
14640
14641 found="no"
14642
14643 if test $found = "no" ; then
14644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14646 fi
14647
14648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650 fi
14651
14652 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14653
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14655 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14656 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14657 if eval test \${$cacheid+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else case e in #(
14661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663 int i;
14664 int
14665 main (void)
14666 {
14667
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_link "$LINENO"
14673 then :
14674 eval $cacheid=yes
14675 else case e in #(
14676 e) eval $cacheid=no ;;
14677 esac
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680 conftest$ac_exeext conftest.$ac_ext ;;
14681 esac
14682 fi
14683
14684
14685 CFLAGS="$xorg_testset_save_CFLAGS"
14686
14687 eval supported=\$$cacheid
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14689 printf "%s\n" "$supported" >&6; }
14690 if test "$supported" = "yes" ; then
14691 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14692 found="yes"
14693 fi
14694 fi
14695
14696
14697
14698
14699
14700 # This chunk adds additional warnings that could catch undesired effects.
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714 xorg_testset_save_CFLAGS="$CFLAGS"
14715
14716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else case e in #(
14724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 int i;
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"
14729 then :
14730 xorg_cv_cc_flag_unknown_warning_option=yes
14731 else case e in #(
14732 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14733 esac
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14736 esac
14737 fi
14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14741 CFLAGS="$xorg_testset_save_CFLAGS"
14742 fi
14743
14744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747 fi
14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14752 then :
14753 printf %s "(cached) " >&6
14754 else case e in #(
14755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 int i;
14758 _ACEOF
14759 if ac_fn_c_try_compile "$LINENO"
14760 then :
14761 xorg_cv_cc_flag_unused_command_line_argument=yes
14762 else case e in #(
14763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14764 esac
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14767 esac
14768 fi
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773 fi
14774
14775 found="no"
14776
14777 if test $found = "no" ; then
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784 fi
14785
14786 CFLAGS="$CFLAGS -Wunused"
14787
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14789 printf %s "checking if $CC supports -Wunused... " >&6; }
14790 cacheid=xorg_cv_cc_flag__Wunused
14791 if eval test \${$cacheid+y}
14792 then :
14793 printf %s "(cached) " >&6
14794 else case e in #(
14795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797 int i;
14798 int
14799 main (void)
14800 {
14801
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"
14807 then :
14808 eval $cacheid=yes
14809 else case e in #(
14810 e) eval $cacheid=no ;;
14811 esac
14812 fi
14813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14814 conftest$ac_exeext conftest.$ac_ext ;;
14815 esac
14816 fi
14817
14818
14819 CFLAGS="$xorg_testset_save_CFLAGS"
14820
14821 eval supported=\$$cacheid
14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14823 printf "%s\n" "$supported" >&6; }
14824 if test "$supported" = "yes" ; then
14825 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14826 found="yes"
14827 fi
14828 fi
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844 xorg_testset_save_CFLAGS="$CFLAGS"
14845
14846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14850 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14851 then :
14852 printf %s "(cached) " >&6
14853 else case e in #(
14854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856 int i;
14857 _ACEOF
14858 if ac_fn_c_try_compile "$LINENO"
14859 then :
14860 xorg_cv_cc_flag_unknown_warning_option=yes
14861 else case e in #(
14862 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14863 esac
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14866 esac
14867 fi
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871 CFLAGS="$xorg_testset_save_CFLAGS"
14872 fi
14873
14874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14882 then :
14883 printf %s "(cached) " >&6
14884 else case e in #(
14885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 int i;
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"
14890 then :
14891 xorg_cv_cc_flag_unused_command_line_argument=yes
14892 else case e in #(
14893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14894 esac
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14897 esac
14898 fi
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14902 CFLAGS="$xorg_testset_save_CFLAGS"
14903 fi
14904
14905 found="no"
14906
14907 if test $found = "no" ; then
14908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910 fi
14911
14912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914 fi
14915
14916 CFLAGS="$CFLAGS -Wuninitialized"
14917
14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14919 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14920 cacheid=xorg_cv_cc_flag__Wuninitialized
14921 if eval test \${$cacheid+y}
14922 then :
14923 printf %s "(cached) " >&6
14924 else case e in #(
14925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 int i;
14928 int
14929 main (void)
14930 {
14931
14932 ;
14933 return 0;
14934 }
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"
14937 then :
14938 eval $cacheid=yes
14939 else case e in #(
14940 e) eval $cacheid=no ;;
14941 esac
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14944 conftest$ac_exeext conftest.$ac_ext ;;
14945 esac
14946 fi
14947
14948
14949 CFLAGS="$xorg_testset_save_CFLAGS"
14950
14951 eval supported=\$$cacheid
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14953 printf "%s\n" "$supported" >&6; }
14954 if test "$supported" = "yes" ; then
14955 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14956 found="yes"
14957 fi
14958 fi
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974 xorg_testset_save_CFLAGS="$CFLAGS"
14975
14976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14981 then :
14982 printf %s "(cached) " >&6
14983 else case e in #(
14984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 int i;
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"
14989 then :
14990 xorg_cv_cc_flag_unknown_warning_option=yes
14991 else case e in #(
14992 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14993 esac
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14996 esac
14997 fi
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15001 CFLAGS="$xorg_testset_save_CFLAGS"
15002 fi
15003
15004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007 fi
15008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15012 then :
15013 printf %s "(cached) " >&6
15014 else case e in #(
15015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 int i;
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"
15020 then :
15021 xorg_cv_cc_flag_unused_command_line_argument=yes
15022 else case e in #(
15023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15024 esac
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15027 esac
15028 fi
15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15032 CFLAGS="$xorg_testset_save_CFLAGS"
15033 fi
15034
15035 found="no"
15036
15037 if test $found = "no" ; then
15038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15040 fi
15041
15042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15044 fi
15045
15046 CFLAGS="$CFLAGS -Wshadow"
15047
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15049 printf %s "checking if $CC supports -Wshadow... " >&6; }
15050 cacheid=xorg_cv_cc_flag__Wshadow
15051 if eval test \${$cacheid+y}
15052 then :
15053 printf %s "(cached) " >&6
15054 else case e in #(
15055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 int i;
15058 int
15059 main (void)
15060 {
15061
15062 ;
15063 return 0;
15064 }
15065 _ACEOF
15066 if ac_fn_c_try_link "$LINENO"
15067 then :
15068 eval $cacheid=yes
15069 else case e in #(
15070 e) eval $cacheid=no ;;
15071 esac
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15074 conftest$ac_exeext conftest.$ac_ext ;;
15075 esac
15076 fi
15077
15078
15079 CFLAGS="$xorg_testset_save_CFLAGS"
15080
15081 eval supported=\$$cacheid
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15083 printf "%s\n" "$supported" >&6; }
15084 if test "$supported" = "yes" ; then
15085 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15086 found="yes"
15087 fi
15088 fi
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104 xorg_testset_save_CFLAGS="$CFLAGS"
15105
15106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15111 then :
15112 printf %s "(cached) " >&6
15113 else case e in #(
15114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 int i;
15117 _ACEOF
15118 if ac_fn_c_try_compile "$LINENO"
15119 then :
15120 xorg_cv_cc_flag_unknown_warning_option=yes
15121 else case e in #(
15122 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15123 esac
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15126 esac
15127 fi
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15131 CFLAGS="$xorg_testset_save_CFLAGS"
15132 fi
15133
15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15137 fi
15138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15142 then :
15143 printf %s "(cached) " >&6
15144 else case e in #(
15145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 int i;
15148 _ACEOF
15149 if ac_fn_c_try_compile "$LINENO"
15150 then :
15151 xorg_cv_cc_flag_unused_command_line_argument=yes
15152 else case e in #(
15153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15154 esac
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15157 esac
15158 fi
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15162 CFLAGS="$xorg_testset_save_CFLAGS"
15163 fi
15164
15165 found="no"
15166
15167 if test $found = "no" ; then
15168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170 fi
15171
15172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15174 fi
15175
15176 CFLAGS="$CFLAGS -Wmissing-noreturn"
15177
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15179 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15180 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15181 if eval test \${$cacheid+y}
15182 then :
15183 printf %s "(cached) " >&6
15184 else case e in #(
15185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 int i;
15188 int
15189 main (void)
15190 {
15191
15192 ;
15193 return 0;
15194 }
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"
15197 then :
15198 eval $cacheid=yes
15199 else case e in #(
15200 e) eval $cacheid=no ;;
15201 esac
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204 conftest$ac_exeext conftest.$ac_ext ;;
15205 esac
15206 fi
15207
15208
15209 CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211 eval supported=\$$cacheid
15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213 printf "%s\n" "$supported" >&6; }
15214 if test "$supported" = "yes" ; then
15215 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15216 found="yes"
15217 fi
15218 fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234 xorg_testset_save_CFLAGS="$CFLAGS"
15235
15236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15241 then :
15242 printf %s "(cached) " >&6
15243 else case e in #(
15244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 int i;
15247 _ACEOF
15248 if ac_fn_c_try_compile "$LINENO"
15249 then :
15250 xorg_cv_cc_flag_unknown_warning_option=yes
15251 else case e in #(
15252 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15253 esac
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15256 esac
15257 fi
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15261 CFLAGS="$xorg_testset_save_CFLAGS"
15262 fi
15263
15264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267 fi
15268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15272 then :
15273 printf %s "(cached) " >&6
15274 else case e in #(
15275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 int i;
15278 _ACEOF
15279 if ac_fn_c_try_compile "$LINENO"
15280 then :
15281 xorg_cv_cc_flag_unused_command_line_argument=yes
15282 else case e in #(
15283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15284 esac
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15287 esac
15288 fi
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292 CFLAGS="$xorg_testset_save_CFLAGS"
15293 fi
15294
15295 found="no"
15296
15297 if test $found = "no" ; then
15298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300 fi
15301
15302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304 fi
15305
15306 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15307
15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15309 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15310 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15311 if eval test \${$cacheid+y}
15312 then :
15313 printf %s "(cached) " >&6
15314 else case e in #(
15315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 int i;
15318 int
15319 main (void)
15320 {
15321
15322 ;
15323 return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"
15327 then :
15328 eval $cacheid=yes
15329 else case e in #(
15330 e) eval $cacheid=no ;;
15331 esac
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15334 conftest$ac_exeext conftest.$ac_ext ;;
15335 esac
15336 fi
15337
15338
15339 CFLAGS="$xorg_testset_save_CFLAGS"
15340
15341 eval supported=\$$cacheid
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15343 printf "%s\n" "$supported" >&6; }
15344 if test "$supported" = "yes" ; then
15345 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15346 found="yes"
15347 fi
15348 fi
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364 xorg_testset_save_CFLAGS="$CFLAGS"
15365
15366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15370 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15371 then :
15372 printf %s "(cached) " >&6
15373 else case e in #(
15374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 int i;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"
15379 then :
15380 xorg_cv_cc_flag_unknown_warning_option=yes
15381 else case e in #(
15382 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15383 esac
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15386 esac
15387 fi
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15391 CFLAGS="$xorg_testset_save_CFLAGS"
15392 fi
15393
15394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15397 fi
15398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15402 then :
15403 printf %s "(cached) " >&6
15404 else case e in #(
15405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 int i;
15408 _ACEOF
15409 if ac_fn_c_try_compile "$LINENO"
15410 then :
15411 xorg_cv_cc_flag_unused_command_line_argument=yes
15412 else case e in #(
15413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15414 esac
15415 fi
15416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15417 esac
15418 fi
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15422 CFLAGS="$xorg_testset_save_CFLAGS"
15423 fi
15424
15425 found="no"
15426
15427 if test $found = "no" ; then
15428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15430 fi
15431
15432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15434 fi
15435
15436 CFLAGS="$CFLAGS -Wredundant-decls"
15437
15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15439 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15440 cacheid=xorg_cv_cc_flag__Wredundant_decls
15441 if eval test \${$cacheid+y}
15442 then :
15443 printf %s "(cached) " >&6
15444 else case e in #(
15445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 int i;
15448 int
15449 main (void)
15450 {
15451
15452 ;
15453 return 0;
15454 }
15455 _ACEOF
15456 if ac_fn_c_try_link "$LINENO"
15457 then :
15458 eval $cacheid=yes
15459 else case e in #(
15460 e) eval $cacheid=no ;;
15461 esac
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15464 conftest$ac_exeext conftest.$ac_ext ;;
15465 esac
15466 fi
15467
15468
15469 CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471 eval supported=\$$cacheid
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473 printf "%s\n" "$supported" >&6; }
15474 if test "$supported" = "yes" ; then
15475 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15476 found="yes"
15477 fi
15478 fi
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494 xorg_testset_save_CFLAGS="$CFLAGS"
15495
15496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15501 then :
15502 printf %s "(cached) " >&6
15503 else case e in #(
15504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 int i;
15507 _ACEOF
15508 if ac_fn_c_try_compile "$LINENO"
15509 then :
15510 xorg_cv_cc_flag_unknown_warning_option=yes
15511 else case e in #(
15512 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15513 esac
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15516 esac
15517 fi
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15521 CFLAGS="$xorg_testset_save_CFLAGS"
15522 fi
15523
15524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527 fi
15528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15532 then :
15533 printf %s "(cached) " >&6
15534 else case e in #(
15535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 int i;
15538 _ACEOF
15539 if ac_fn_c_try_compile "$LINENO"
15540 then :
15541 xorg_cv_cc_flag_unused_command_line_argument=yes
15542 else case e in #(
15543 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15544 esac
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15547 esac
15548 fi
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15550 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15552 CFLAGS="$xorg_testset_save_CFLAGS"
15553 fi
15554
15555 found="no"
15556
15557 if test $found = "no" ; then
15558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15560 fi
15561
15562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15564 fi
15565
15566 CFLAGS="$CFLAGS -Wlogical-op"
15567
15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15569 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15570 cacheid=xorg_cv_cc_flag__Wlogical_op
15571 if eval test \${$cacheid+y}
15572 then :
15573 printf %s "(cached) " >&6
15574 else case e in #(
15575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577 int i;
15578 int
15579 main (void)
15580 {
15581
15582 ;
15583 return 0;
15584 }
15585 _ACEOF
15586 if ac_fn_c_try_link "$LINENO"
15587 then :
15588 eval $cacheid=yes
15589 else case e in #(
15590 e) eval $cacheid=no ;;
15591 esac
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15594 conftest$ac_exeext conftest.$ac_ext ;;
15595 esac
15596 fi
15597
15598
15599 CFLAGS="$xorg_testset_save_CFLAGS"
15600
15601 eval supported=\$$cacheid
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15603 printf "%s\n" "$supported" >&6; }
15604 if test "$supported" = "yes" ; then
15605 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15606 found="yes"
15607 fi
15608 fi
15609
15610
15611
15612 # These are currently disabled because they are noisy. They will be enabled
15613 # in the future once the codebase is sufficiently modernized to silence
15614 # them. For now, I don't want them to drown out the other warnings.
15615 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15616 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15617 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15618
15619 # Turn some warnings into errors, so we don't accidentally get successful builds
15620 # when there are problems that should be fixed.
15621
15622 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636 xorg_testset_save_CFLAGS="$CFLAGS"
15637
15638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15642 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15643 then :
15644 printf %s "(cached) " >&6
15645 else case e in #(
15646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 int i;
15649 _ACEOF
15650 if ac_fn_c_try_compile "$LINENO"
15651 then :
15652 xorg_cv_cc_flag_unknown_warning_option=yes
15653 else case e in #(
15654 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15655 esac
15656 fi
15657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15658 esac
15659 fi
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15661 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15663 CFLAGS="$xorg_testset_save_CFLAGS"
15664 fi
15665
15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15669 fi
15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15674 then :
15675 printf %s "(cached) " >&6
15676 else case e in #(
15677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 int i;
15680 _ACEOF
15681 if ac_fn_c_try_compile "$LINENO"
15682 then :
15683 xorg_cv_cc_flag_unused_command_line_argument=yes
15684 else case e in #(
15685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15686 esac
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15689 esac
15690 fi
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15694 CFLAGS="$xorg_testset_save_CFLAGS"
15695 fi
15696
15697 found="no"
15698
15699 if test $found = "no" ; then
15700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702 fi
15703
15704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15706 fi
15707
15708 CFLAGS="$CFLAGS -Werror=implicit"
15709
15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15711 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15712 cacheid=xorg_cv_cc_flag__Werror_implicit
15713 if eval test \${$cacheid+y}
15714 then :
15715 printf %s "(cached) " >&6
15716 else case e in #(
15717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 int i;
15720 int
15721 main (void)
15722 {
15723
15724 ;
15725 return 0;
15726 }
15727 _ACEOF
15728 if ac_fn_c_try_link "$LINENO"
15729 then :
15730 eval $cacheid=yes
15731 else case e in #(
15732 e) eval $cacheid=no ;;
15733 esac
15734 fi
15735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15736 conftest$ac_exeext conftest.$ac_ext ;;
15737 esac
15738 fi
15739
15740
15741 CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743 eval supported=\$$cacheid
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745 printf "%s\n" "$supported" >&6; }
15746 if test "$supported" = "yes" ; then
15747 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15748 found="yes"
15749 fi
15750 fi
15751
15752 if test $found = "no" ; then
15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 fi
15756
15757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15759 fi
15760
15761 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15762
15763 { 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
15764 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15765 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15766 if eval test \${$cacheid+y}
15767 then :
15768 printf %s "(cached) " >&6
15769 else case e in #(
15770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 int i;
15773 int
15774 main (void)
15775 {
15776
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_c_try_link "$LINENO"
15782 then :
15783 eval $cacheid=yes
15784 else case e in #(
15785 e) eval $cacheid=no ;;
15786 esac
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15789 conftest$ac_exeext conftest.$ac_ext ;;
15790 esac
15791 fi
15792
15793
15794 CFLAGS="$xorg_testset_save_CFLAGS"
15795
15796 eval supported=\$$cacheid
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15798 printf "%s\n" "$supported" >&6; }
15799 if test "$supported" = "yes" ; then
15800 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15801 found="yes"
15802 fi
15803 fi
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819 xorg_testset_save_CFLAGS="$CFLAGS"
15820
15821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15824 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15825 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15826 then :
15827 printf %s "(cached) " >&6
15828 else case e in #(
15829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831 int i;
15832 _ACEOF
15833 if ac_fn_c_try_compile "$LINENO"
15834 then :
15835 xorg_cv_cc_flag_unknown_warning_option=yes
15836 else case e in #(
15837 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15838 esac
15839 fi
15840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15841 esac
15842 fi
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15847 fi
15848
15849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852 fi
15853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15857 then :
15858 printf %s "(cached) " >&6
15859 else case e in #(
15860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 int i;
15863 _ACEOF
15864 if ac_fn_c_try_compile "$LINENO"
15865 then :
15866 xorg_cv_cc_flag_unused_command_line_argument=yes
15867 else case e in #(
15868 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15869 esac
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15872 esac
15873 fi
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15877 CFLAGS="$xorg_testset_save_CFLAGS"
15878 fi
15879
15880 found="no"
15881
15882 if test $found = "no" ; then
15883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885 fi
15886
15887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15889 fi
15890
15891 CFLAGS="$CFLAGS -Werror=nonnull"
15892
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15894 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15895 cacheid=xorg_cv_cc_flag__Werror_nonnull
15896 if eval test \${$cacheid+y}
15897 then :
15898 printf %s "(cached) " >&6
15899 else case e in #(
15900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 int i;
15903 int
15904 main (void)
15905 {
15906
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_link "$LINENO"
15912 then :
15913 eval $cacheid=yes
15914 else case e in #(
15915 e) eval $cacheid=no ;;
15916 esac
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15919 conftest$ac_exeext conftest.$ac_ext ;;
15920 esac
15921 fi
15922
15923
15924 CFLAGS="$xorg_testset_save_CFLAGS"
15925
15926 eval supported=\$$cacheid
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15928 printf "%s\n" "$supported" >&6; }
15929 if test "$supported" = "yes" ; then
15930 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15931 found="yes"
15932 fi
15933 fi
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949 xorg_testset_save_CFLAGS="$CFLAGS"
15950
15951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15956 then :
15957 printf %s "(cached) " >&6
15958 else case e in #(
15959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 int i;
15962 _ACEOF
15963 if ac_fn_c_try_compile "$LINENO"
15964 then :
15965 xorg_cv_cc_flag_unknown_warning_option=yes
15966 else case e in #(
15967 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15968 esac
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15971 esac
15972 fi
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15976 CFLAGS="$xorg_testset_save_CFLAGS"
15977 fi
15978
15979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15982 fi
15983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15987 then :
15988 printf %s "(cached) " >&6
15989 else case e in #(
15990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h. */
15992 int i;
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"
15995 then :
15996 xorg_cv_cc_flag_unused_command_line_argument=yes
15997 else case e in #(
15998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15999 esac
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16002 esac
16003 fi
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16007 CFLAGS="$xorg_testset_save_CFLAGS"
16008 fi
16009
16010 found="no"
16011
16012 if test $found = "no" ; then
16013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015 fi
16016
16017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019 fi
16020
16021 CFLAGS="$CFLAGS -Werror=init-self"
16022
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16024 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16025 cacheid=xorg_cv_cc_flag__Werror_init_self
16026 if eval test \${$cacheid+y}
16027 then :
16028 printf %s "(cached) " >&6
16029 else case e in #(
16030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 int i;
16033 int
16034 main (void)
16035 {
16036
16037 ;
16038 return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_link "$LINENO"
16042 then :
16043 eval $cacheid=yes
16044 else case e in #(
16045 e) eval $cacheid=no ;;
16046 esac
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16049 conftest$ac_exeext conftest.$ac_ext ;;
16050 esac
16051 fi
16052
16053
16054 CFLAGS="$xorg_testset_save_CFLAGS"
16055
16056 eval supported=\$$cacheid
16057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16058 printf "%s\n" "$supported" >&6; }
16059 if test "$supported" = "yes" ; then
16060 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16061 found="yes"
16062 fi
16063 fi
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079 xorg_testset_save_CFLAGS="$CFLAGS"
16080
16081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16086 then :
16087 printf %s "(cached) " >&6
16088 else case e in #(
16089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 int i;
16092 _ACEOF
16093 if ac_fn_c_try_compile "$LINENO"
16094 then :
16095 xorg_cv_cc_flag_unknown_warning_option=yes
16096 else case e in #(
16097 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16098 esac
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16101 esac
16102 fi
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16106 CFLAGS="$xorg_testset_save_CFLAGS"
16107 fi
16108
16109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112 fi
16113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16117 then :
16118 printf %s "(cached) " >&6
16119 else case e in #(
16120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 int i;
16123 _ACEOF
16124 if ac_fn_c_try_compile "$LINENO"
16125 then :
16126 xorg_cv_cc_flag_unused_command_line_argument=yes
16127 else case e in #(
16128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16129 esac
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16132 esac
16133 fi
16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16137 CFLAGS="$xorg_testset_save_CFLAGS"
16138 fi
16139
16140 found="no"
16141
16142 if test $found = "no" ; then
16143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145 fi
16146
16147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149 fi
16150
16151 CFLAGS="$CFLAGS -Werror=main"
16152
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16154 printf %s "checking if $CC supports -Werror=main... " >&6; }
16155 cacheid=xorg_cv_cc_flag__Werror_main
16156 if eval test \${$cacheid+y}
16157 then :
16158 printf %s "(cached) " >&6
16159 else case e in #(
16160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 int i;
16163 int
16164 main (void)
16165 {
16166
16167 ;
16168 return 0;
16169 }
16170 _ACEOF
16171 if ac_fn_c_try_link "$LINENO"
16172 then :
16173 eval $cacheid=yes
16174 else case e in #(
16175 e) eval $cacheid=no ;;
16176 esac
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16179 conftest$ac_exeext conftest.$ac_ext ;;
16180 esac
16181 fi
16182
16183
16184 CFLAGS="$xorg_testset_save_CFLAGS"
16185
16186 eval supported=\$$cacheid
16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16188 printf "%s\n" "$supported" >&6; }
16189 if test "$supported" = "yes" ; then
16190 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16191 found="yes"
16192 fi
16193 fi
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209 xorg_testset_save_CFLAGS="$CFLAGS"
16210
16211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16216 then :
16217 printf %s "(cached) " >&6
16218 else case e in #(
16219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 int i;
16222 _ACEOF
16223 if ac_fn_c_try_compile "$LINENO"
16224 then :
16225 xorg_cv_cc_flag_unknown_warning_option=yes
16226 else case e in #(
16227 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16228 esac
16229 fi
16230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16231 esac
16232 fi
16233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16236 CFLAGS="$xorg_testset_save_CFLAGS"
16237 fi
16238
16239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 fi
16243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16247 then :
16248 printf %s "(cached) " >&6
16249 else case e in #(
16250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 int i;
16253 _ACEOF
16254 if ac_fn_c_try_compile "$LINENO"
16255 then :
16256 xorg_cv_cc_flag_unused_command_line_argument=yes
16257 else case e in #(
16258 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16259 esac
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16262 esac
16263 fi
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16265 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16267 CFLAGS="$xorg_testset_save_CFLAGS"
16268 fi
16269
16270 found="no"
16271
16272 if test $found = "no" ; then
16273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16275 fi
16276
16277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279 fi
16280
16281 CFLAGS="$CFLAGS -Werror=missing-braces"
16282
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16284 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16285 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16286 if eval test \${$cacheid+y}
16287 then :
16288 printf %s "(cached) " >&6
16289 else case e in #(
16290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 int i;
16293 int
16294 main (void)
16295 {
16296
16297 ;
16298 return 0;
16299 }
16300 _ACEOF
16301 if ac_fn_c_try_link "$LINENO"
16302 then :
16303 eval $cacheid=yes
16304 else case e in #(
16305 e) eval $cacheid=no ;;
16306 esac
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16309 conftest$ac_exeext conftest.$ac_ext ;;
16310 esac
16311 fi
16312
16313
16314 CFLAGS="$xorg_testset_save_CFLAGS"
16315
16316 eval supported=\$$cacheid
16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16318 printf "%s\n" "$supported" >&6; }
16319 if test "$supported" = "yes" ; then
16320 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16321 found="yes"
16322 fi
16323 fi
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339 xorg_testset_save_CFLAGS="$CFLAGS"
16340
16341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16346 then :
16347 printf %s "(cached) " >&6
16348 else case e in #(
16349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 int i;
16352 _ACEOF
16353 if ac_fn_c_try_compile "$LINENO"
16354 then :
16355 xorg_cv_cc_flag_unknown_warning_option=yes
16356 else case e in #(
16357 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16358 esac
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16361 esac
16362 fi
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16364 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16366 CFLAGS="$xorg_testset_save_CFLAGS"
16367 fi
16368
16369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372 fi
16373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16375 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16376 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16377 then :
16378 printf %s "(cached) " >&6
16379 else case e in #(
16380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16382 int i;
16383 _ACEOF
16384 if ac_fn_c_try_compile "$LINENO"
16385 then :
16386 xorg_cv_cc_flag_unused_command_line_argument=yes
16387 else case e in #(
16388 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16389 esac
16390 fi
16391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16392 esac
16393 fi
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16395 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398 fi
16399
16400 found="no"
16401
16402 if test $found = "no" ; then
16403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405 fi
16406
16407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409 fi
16410
16411 CFLAGS="$CFLAGS -Werror=sequence-point"
16412
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16414 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16415 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16416 if eval test \${$cacheid+y}
16417 then :
16418 printf %s "(cached) " >&6
16419 else case e in #(
16420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 int i;
16423 int
16424 main (void)
16425 {
16426
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"
16432 then :
16433 eval $cacheid=yes
16434 else case e in #(
16435 e) eval $cacheid=no ;;
16436 esac
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16439 conftest$ac_exeext conftest.$ac_ext ;;
16440 esac
16441 fi
16442
16443
16444 CFLAGS="$xorg_testset_save_CFLAGS"
16445
16446 eval supported=\$$cacheid
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16448 printf "%s\n" "$supported" >&6; }
16449 if test "$supported" = "yes" ; then
16450 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16451 found="yes"
16452 fi
16453 fi
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 xorg_testset_save_CFLAGS="$CFLAGS"
16470
16471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16476 then :
16477 printf %s "(cached) " >&6
16478 else case e in #(
16479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16481 int i;
16482 _ACEOF
16483 if ac_fn_c_try_compile "$LINENO"
16484 then :
16485 xorg_cv_cc_flag_unknown_warning_option=yes
16486 else case e in #(
16487 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16488 esac
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16491 esac
16492 fi
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16494 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16496 CFLAGS="$xorg_testset_save_CFLAGS"
16497 fi
16498
16499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502 fi
16503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16505 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16506 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16507 then :
16508 printf %s "(cached) " >&6
16509 else case e in #(
16510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 int i;
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"
16515 then :
16516 xorg_cv_cc_flag_unused_command_line_argument=yes
16517 else case e in #(
16518 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16519 esac
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16522 esac
16523 fi
16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16527 CFLAGS="$xorg_testset_save_CFLAGS"
16528 fi
16529
16530 found="no"
16531
16532 if test $found = "no" ; then
16533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535 fi
16536
16537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16539 fi
16540
16541 CFLAGS="$CFLAGS -Werror=return-type"
16542
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16544 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16545 cacheid=xorg_cv_cc_flag__Werror_return_type
16546 if eval test \${$cacheid+y}
16547 then :
16548 printf %s "(cached) " >&6
16549 else case e in #(
16550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int i;
16553 int
16554 main (void)
16555 {
16556
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"
16562 then :
16563 eval $cacheid=yes
16564 else case e in #(
16565 e) eval $cacheid=no ;;
16566 esac
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16569 conftest$ac_exeext conftest.$ac_ext ;;
16570 esac
16571 fi
16572
16573
16574 CFLAGS="$xorg_testset_save_CFLAGS"
16575
16576 eval supported=\$$cacheid
16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16578 printf "%s\n" "$supported" >&6; }
16579 if test "$supported" = "yes" ; then
16580 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16581 found="yes"
16582 fi
16583 fi
16584
16585 if test $found = "no" ; then
16586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588 fi
16589
16590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16592 fi
16593
16594 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16595
16596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16597 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16598 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16599 if eval test \${$cacheid+y}
16600 then :
16601 printf %s "(cached) " >&6
16602 else case e in #(
16603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16605 int i;
16606 int
16607 main (void)
16608 {
16609
16610 ;
16611 return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_link "$LINENO"
16615 then :
16616 eval $cacheid=yes
16617 else case e in #(
16618 e) eval $cacheid=no ;;
16619 esac
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16622 conftest$ac_exeext conftest.$ac_ext ;;
16623 esac
16624 fi
16625
16626
16627 CFLAGS="$xorg_testset_save_CFLAGS"
16628
16629 eval supported=\$$cacheid
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16631 printf "%s\n" "$supported" >&6; }
16632 if test "$supported" = "yes" ; then
16633 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16634 found="yes"
16635 fi
16636 fi
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652 xorg_testset_save_CFLAGS="$CFLAGS"
16653
16654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16658 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16659 then :
16660 printf %s "(cached) " >&6
16661 else case e in #(
16662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 int i;
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"
16667 then :
16668 xorg_cv_cc_flag_unknown_warning_option=yes
16669 else case e in #(
16670 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16671 esac
16672 fi
16673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16674 esac
16675 fi
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16679 CFLAGS="$xorg_testset_save_CFLAGS"
16680 fi
16681
16682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16685 fi
16686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16690 then :
16691 printf %s "(cached) " >&6
16692 else case e in #(
16693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16695 int i;
16696 _ACEOF
16697 if ac_fn_c_try_compile "$LINENO"
16698 then :
16699 xorg_cv_cc_flag_unused_command_line_argument=yes
16700 else case e in #(
16701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16702 esac
16703 fi
16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16705 esac
16706 fi
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16710 CFLAGS="$xorg_testset_save_CFLAGS"
16711 fi
16712
16713 found="no"
16714
16715 if test $found = "no" ; then
16716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16718 fi
16719
16720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16722 fi
16723
16724 CFLAGS="$CFLAGS -Werror=trigraphs"
16725
16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16727 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16728 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16729 if eval test \${$cacheid+y}
16730 then :
16731 printf %s "(cached) " >&6
16732 else case e in #(
16733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 int i;
16736 int
16737 main (void)
16738 {
16739
16740 ;
16741 return 0;
16742 }
16743 _ACEOF
16744 if ac_fn_c_try_link "$LINENO"
16745 then :
16746 eval $cacheid=yes
16747 else case e in #(
16748 e) eval $cacheid=no ;;
16749 esac
16750 fi
16751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16752 conftest$ac_exeext conftest.$ac_ext ;;
16753 esac
16754 fi
16755
16756
16757 CFLAGS="$xorg_testset_save_CFLAGS"
16758
16759 eval supported=\$$cacheid
16760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16761 printf "%s\n" "$supported" >&6; }
16762 if test "$supported" = "yes" ; then
16763 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16764 found="yes"
16765 fi
16766 fi
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782 xorg_testset_save_CFLAGS="$CFLAGS"
16783
16784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16788 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16789 then :
16790 printf %s "(cached) " >&6
16791 else case e in #(
16792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 int i;
16795 _ACEOF
16796 if ac_fn_c_try_compile "$LINENO"
16797 then :
16798 xorg_cv_cc_flag_unknown_warning_option=yes
16799 else case e in #(
16800 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16801 esac
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16804 esac
16805 fi
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16809 CFLAGS="$xorg_testset_save_CFLAGS"
16810 fi
16811
16812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815 fi
16816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16820 then :
16821 printf %s "(cached) " >&6
16822 else case e in #(
16823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 int i;
16826 _ACEOF
16827 if ac_fn_c_try_compile "$LINENO"
16828 then :
16829 xorg_cv_cc_flag_unused_command_line_argument=yes
16830 else case e in #(
16831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16832 esac
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16835 esac
16836 fi
16837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16840 CFLAGS="$xorg_testset_save_CFLAGS"
16841 fi
16842
16843 found="no"
16844
16845 if test $found = "no" ; then
16846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848 fi
16849
16850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16852 fi
16853
16854 CFLAGS="$CFLAGS -Werror=array-bounds"
16855
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16857 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16858 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16859 if eval test \${$cacheid+y}
16860 then :
16861 printf %s "(cached) " >&6
16862 else case e in #(
16863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 int i;
16866 int
16867 main (void)
16868 {
16869
16870 ;
16871 return 0;
16872 }
16873 _ACEOF
16874 if ac_fn_c_try_link "$LINENO"
16875 then :
16876 eval $cacheid=yes
16877 else case e in #(
16878 e) eval $cacheid=no ;;
16879 esac
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16882 conftest$ac_exeext conftest.$ac_ext ;;
16883 esac
16884 fi
16885
16886
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888
16889 eval supported=\$$cacheid
16890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16891 printf "%s\n" "$supported" >&6; }
16892 if test "$supported" = "yes" ; then
16893 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16894 found="yes"
16895 fi
16896 fi
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912 xorg_testset_save_CFLAGS="$CFLAGS"
16913
16914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16919 then :
16920 printf %s "(cached) " >&6
16921 else case e in #(
16922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16924 int i;
16925 _ACEOF
16926 if ac_fn_c_try_compile "$LINENO"
16927 then :
16928 xorg_cv_cc_flag_unknown_warning_option=yes
16929 else case e in #(
16930 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16931 esac
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16934 esac
16935 fi
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16937 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16939 CFLAGS="$xorg_testset_save_CFLAGS"
16940 fi
16941
16942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16945 fi
16946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16950 then :
16951 printf %s "(cached) " >&6
16952 else case e in #(
16953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955 int i;
16956 _ACEOF
16957 if ac_fn_c_try_compile "$LINENO"
16958 then :
16959 xorg_cv_cc_flag_unused_command_line_argument=yes
16960 else case e in #(
16961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16962 esac
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16965 esac
16966 fi
16967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16970 CFLAGS="$xorg_testset_save_CFLAGS"
16971 fi
16972
16973 found="no"
16974
16975 if test $found = "no" ; then
16976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978 fi
16979
16980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16982 fi
16983
16984 CFLAGS="$CFLAGS -Werror=write-strings"
16985
16986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16987 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16988 cacheid=xorg_cv_cc_flag__Werror_write_strings
16989 if eval test \${$cacheid+y}
16990 then :
16991 printf %s "(cached) " >&6
16992 else case e in #(
16993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 int i;
16996 int
16997 main (void)
16998 {
16999
17000 ;
17001 return 0;
17002 }
17003 _ACEOF
17004 if ac_fn_c_try_link "$LINENO"
17005 then :
17006 eval $cacheid=yes
17007 else case e in #(
17008 e) eval $cacheid=no ;;
17009 esac
17010 fi
17011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17012 conftest$ac_exeext conftest.$ac_ext ;;
17013 esac
17014 fi
17015
17016
17017 CFLAGS="$xorg_testset_save_CFLAGS"
17018
17019 eval supported=\$$cacheid
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17021 printf "%s\n" "$supported" >&6; }
17022 if test "$supported" = "yes" ; then
17023 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17024 found="yes"
17025 fi
17026 fi
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042 xorg_testset_save_CFLAGS="$CFLAGS"
17043
17044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17049 then :
17050 printf %s "(cached) " >&6
17051 else case e in #(
17052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 int i;
17055 _ACEOF
17056 if ac_fn_c_try_compile "$LINENO"
17057 then :
17058 xorg_cv_cc_flag_unknown_warning_option=yes
17059 else case e in #(
17060 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17061 esac
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17064 esac
17065 fi
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17067 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17069 CFLAGS="$xorg_testset_save_CFLAGS"
17070 fi
17071
17072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17075 fi
17076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17080 then :
17081 printf %s "(cached) " >&6
17082 else case e in #(
17083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085 int i;
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"
17088 then :
17089 xorg_cv_cc_flag_unused_command_line_argument=yes
17090 else case e in #(
17091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17092 esac
17093 fi
17094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17095 esac
17096 fi
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17100 CFLAGS="$xorg_testset_save_CFLAGS"
17101 fi
17102
17103 found="no"
17104
17105 if test $found = "no" ; then
17106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17108 fi
17109
17110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17112 fi
17113
17114 CFLAGS="$CFLAGS -Werror=address"
17115
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17117 printf %s "checking if $CC supports -Werror=address... " >&6; }
17118 cacheid=xorg_cv_cc_flag__Werror_address
17119 if eval test \${$cacheid+y}
17120 then :
17121 printf %s "(cached) " >&6
17122 else case e in #(
17123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 int i;
17126 int
17127 main (void)
17128 {
17129
17130 ;
17131 return 0;
17132 }
17133 _ACEOF
17134 if ac_fn_c_try_link "$LINENO"
17135 then :
17136 eval $cacheid=yes
17137 else case e in #(
17138 e) eval $cacheid=no ;;
17139 esac
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17142 conftest$ac_exeext conftest.$ac_ext ;;
17143 esac
17144 fi
17145
17146
17147 CFLAGS="$xorg_testset_save_CFLAGS"
17148
17149 eval supported=\$$cacheid
17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17151 printf "%s\n" "$supported" >&6; }
17152 if test "$supported" = "yes" ; then
17153 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17154 found="yes"
17155 fi
17156 fi
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172 xorg_testset_save_CFLAGS="$CFLAGS"
17173
17174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17179 then :
17180 printf %s "(cached) " >&6
17181 else case e in #(
17182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184 int i;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"
17187 then :
17188 xorg_cv_cc_flag_unknown_warning_option=yes
17189 else case e in #(
17190 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17191 esac
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17194 esac
17195 fi
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17199 CFLAGS="$xorg_testset_save_CFLAGS"
17200 fi
17201
17202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17205 fi
17206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17210 then :
17211 printf %s "(cached) " >&6
17212 else case e in #(
17213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215 int i;
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"
17218 then :
17219 xorg_cv_cc_flag_unused_command_line_argument=yes
17220 else case e in #(
17221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17222 esac
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17225 esac
17226 fi
17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17230 CFLAGS="$xorg_testset_save_CFLAGS"
17231 fi
17232
17233 found="no"
17234
17235 if test $found = "no" ; then
17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238 fi
17239
17240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17242 fi
17243
17244 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17245
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17247 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17248 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17249 if eval test \${$cacheid+y}
17250 then :
17251 printf %s "(cached) " >&6
17252 else case e in #(
17253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17255 int i;
17256 int
17257 main (void)
17258 {
17259
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"
17265 then :
17266 eval $cacheid=yes
17267 else case e in #(
17268 e) eval $cacheid=no ;;
17269 esac
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17272 conftest$ac_exeext conftest.$ac_ext ;;
17273 esac
17274 fi
17275
17276
17277 CFLAGS="$xorg_testset_save_CFLAGS"
17278
17279 eval supported=\$$cacheid
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17281 printf "%s\n" "$supported" >&6; }
17282 if test "$supported" = "yes" ; then
17283 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17284 found="yes"
17285 fi
17286 fi
17287
17288 if test $found = "no" ; then
17289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17291 fi
17292
17293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295 fi
17296
17297 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17298
17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17300 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17301 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17302 if eval test \${$cacheid+y}
17303 then :
17304 printf %s "(cached) " >&6
17305 else case e in #(
17306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17308 int i;
17309 int
17310 main (void)
17311 {
17312
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 if ac_fn_c_try_link "$LINENO"
17318 then :
17319 eval $cacheid=yes
17320 else case e in #(
17321 e) eval $cacheid=no ;;
17322 esac
17323 fi
17324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17325 conftest$ac_exeext conftest.$ac_ext ;;
17326 esac
17327 fi
17328
17329
17330 CFLAGS="$xorg_testset_save_CFLAGS"
17331
17332 eval supported=\$$cacheid
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17334 printf "%s\n" "$supported" >&6; }
17335 if test "$supported" = "yes" ; then
17336 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17337 found="yes"
17338 fi
17339 fi
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355 xorg_testset_save_CFLAGS="$CFLAGS"
17356
17357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17361 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17362 then :
17363 printf %s "(cached) " >&6
17364 else case e in #(
17365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h. */
17367 int i;
17368 _ACEOF
17369 if ac_fn_c_try_compile "$LINENO"
17370 then :
17371 xorg_cv_cc_flag_unknown_warning_option=yes
17372 else case e in #(
17373 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17374 esac
17375 fi
17376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17377 esac
17378 fi
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17382 CFLAGS="$xorg_testset_save_CFLAGS"
17383 fi
17384
17385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388 fi
17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17393 then :
17394 printf %s "(cached) " >&6
17395 else case e in #(
17396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 int i;
17399 _ACEOF
17400 if ac_fn_c_try_compile "$LINENO"
17401 then :
17402 xorg_cv_cc_flag_unused_command_line_argument=yes
17403 else case e in #(
17404 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17405 esac
17406 fi
17407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17408 esac
17409 fi
17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17413 CFLAGS="$xorg_testset_save_CFLAGS"
17414 fi
17415
17416 found="no"
17417
17418 if test $found = "no" ; then
17419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421 fi
17422
17423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17425 fi
17426
17427 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17428
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17430 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17431 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17432 if eval test \${$cacheid+y}
17433 then :
17434 printf %s "(cached) " >&6
17435 else case e in #(
17436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 int
17440 main (void)
17441 {
17442
17443 ;
17444 return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_link "$LINENO"
17448 then :
17449 eval $cacheid=yes
17450 else case e in #(
17451 e) eval $cacheid=no ;;
17452 esac
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17455 conftest$ac_exeext conftest.$ac_ext ;;
17456 esac
17457 fi
17458
17459
17460 CFLAGS="$xorg_testset_save_CFLAGS"
17461
17462 eval supported=\$$cacheid
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17464 printf "%s\n" "$supported" >&6; }
17465 if test "$supported" = "yes" ; then
17466 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17467 found="yes"
17468 fi
17469 fi
17470
17471 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17472 else
17473 { 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
17474 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;}
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488 xorg_testset_save_CFLAGS="$CFLAGS"
17489
17490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17495 then :
17496 printf %s "(cached) " >&6
17497 else case e in #(
17498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500 int i;
17501 _ACEOF
17502 if ac_fn_c_try_compile "$LINENO"
17503 then :
17504 xorg_cv_cc_flag_unknown_warning_option=yes
17505 else case e in #(
17506 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17507 esac
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17510 esac
17511 fi
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17515 CFLAGS="$xorg_testset_save_CFLAGS"
17516 fi
17517
17518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521 fi
17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17526 then :
17527 printf %s "(cached) " >&6
17528 else case e in #(
17529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 int i;
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"
17534 then :
17535 xorg_cv_cc_flag_unused_command_line_argument=yes
17536 else case e in #(
17537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17538 esac
17539 fi
17540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17541 esac
17542 fi
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17546 CFLAGS="$xorg_testset_save_CFLAGS"
17547 fi
17548
17549 found="no"
17550
17551 if test $found = "no" ; then
17552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554 fi
17555
17556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17558 fi
17559
17560 CFLAGS="$CFLAGS -Wimplicit"
17561
17562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17563 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17564 cacheid=xorg_cv_cc_flag__Wimplicit
17565 if eval test \${$cacheid+y}
17566 then :
17567 printf %s "(cached) " >&6
17568 else case e in #(
17569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 int i;
17572 int
17573 main (void)
17574 {
17575
17576 ;
17577 return 0;
17578 }
17579 _ACEOF
17580 if ac_fn_c_try_link "$LINENO"
17581 then :
17582 eval $cacheid=yes
17583 else case e in #(
17584 e) eval $cacheid=no ;;
17585 esac
17586 fi
17587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17588 conftest$ac_exeext conftest.$ac_ext ;;
17589 esac
17590 fi
17591
17592
17593 CFLAGS="$xorg_testset_save_CFLAGS"
17594
17595 eval supported=\$$cacheid
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17597 printf "%s\n" "$supported" >&6; }
17598 if test "$supported" = "yes" ; then
17599 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17600 found="yes"
17601 fi
17602 fi
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618 xorg_testset_save_CFLAGS="$CFLAGS"
17619
17620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17625 then :
17626 printf %s "(cached) " >&6
17627 else case e in #(
17628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630 int i;
17631 _ACEOF
17632 if ac_fn_c_try_compile "$LINENO"
17633 then :
17634 xorg_cv_cc_flag_unknown_warning_option=yes
17635 else case e in #(
17636 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17637 esac
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17640 esac
17641 fi
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17645 CFLAGS="$xorg_testset_save_CFLAGS"
17646 fi
17647
17648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17651 fi
17652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17656 then :
17657 printf %s "(cached) " >&6
17658 else case e in #(
17659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17661 int i;
17662 _ACEOF
17663 if ac_fn_c_try_compile "$LINENO"
17664 then :
17665 xorg_cv_cc_flag_unused_command_line_argument=yes
17666 else case e in #(
17667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17668 esac
17669 fi
17670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17671 esac
17672 fi
17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17676 CFLAGS="$xorg_testset_save_CFLAGS"
17677 fi
17678
17679 found="no"
17680
17681 if test $found = "no" ; then
17682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684 fi
17685
17686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17688 fi
17689
17690 CFLAGS="$CFLAGS -Wnonnull"
17691
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17693 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17694 cacheid=xorg_cv_cc_flag__Wnonnull
17695 if eval test \${$cacheid+y}
17696 then :
17697 printf %s "(cached) " >&6
17698 else case e in #(
17699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 int i;
17702 int
17703 main (void)
17704 {
17705
17706 ;
17707 return 0;
17708 }
17709 _ACEOF
17710 if ac_fn_c_try_link "$LINENO"
17711 then :
17712 eval $cacheid=yes
17713 else case e in #(
17714 e) eval $cacheid=no ;;
17715 esac
17716 fi
17717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17718 conftest$ac_exeext conftest.$ac_ext ;;
17719 esac
17720 fi
17721
17722
17723 CFLAGS="$xorg_testset_save_CFLAGS"
17724
17725 eval supported=\$$cacheid
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17727 printf "%s\n" "$supported" >&6; }
17728 if test "$supported" = "yes" ; then
17729 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17730 found="yes"
17731 fi
17732 fi
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748 xorg_testset_save_CFLAGS="$CFLAGS"
17749
17750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17755 then :
17756 printf %s "(cached) " >&6
17757 else case e in #(
17758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760 int i;
17761 _ACEOF
17762 if ac_fn_c_try_compile "$LINENO"
17763 then :
17764 xorg_cv_cc_flag_unknown_warning_option=yes
17765 else case e in #(
17766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17767 esac
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17770 esac
17771 fi
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17775 CFLAGS="$xorg_testset_save_CFLAGS"
17776 fi
17777
17778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17781 fi
17782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17786 then :
17787 printf %s "(cached) " >&6
17788 else case e in #(
17789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790 /* end confdefs.h. */
17791 int i;
17792 _ACEOF
17793 if ac_fn_c_try_compile "$LINENO"
17794 then :
17795 xorg_cv_cc_flag_unused_command_line_argument=yes
17796 else case e in #(
17797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17798 esac
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17801 esac
17802 fi
17803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17806 CFLAGS="$xorg_testset_save_CFLAGS"
17807 fi
17808
17809 found="no"
17810
17811 if test $found = "no" ; then
17812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17814 fi
17815
17816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17818 fi
17819
17820 CFLAGS="$CFLAGS -Winit-self"
17821
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17823 printf %s "checking if $CC supports -Winit-self... " >&6; }
17824 cacheid=xorg_cv_cc_flag__Winit_self
17825 if eval test \${$cacheid+y}
17826 then :
17827 printf %s "(cached) " >&6
17828 else case e in #(
17829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17831 int i;
17832 int
17833 main (void)
17834 {
17835
17836 ;
17837 return 0;
17838 }
17839 _ACEOF
17840 if ac_fn_c_try_link "$LINENO"
17841 then :
17842 eval $cacheid=yes
17843 else case e in #(
17844 e) eval $cacheid=no ;;
17845 esac
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17848 conftest$ac_exeext conftest.$ac_ext ;;
17849 esac
17850 fi
17851
17852
17853 CFLAGS="$xorg_testset_save_CFLAGS"
17854
17855 eval supported=\$$cacheid
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17857 printf "%s\n" "$supported" >&6; }
17858 if test "$supported" = "yes" ; then
17859 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17860 found="yes"
17861 fi
17862 fi
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878 xorg_testset_save_CFLAGS="$CFLAGS"
17879
17880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17885 then :
17886 printf %s "(cached) " >&6
17887 else case e in #(
17888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890 int i;
17891 _ACEOF
17892 if ac_fn_c_try_compile "$LINENO"
17893 then :
17894 xorg_cv_cc_flag_unknown_warning_option=yes
17895 else case e in #(
17896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17897 esac
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17900 esac
17901 fi
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17905 CFLAGS="$xorg_testset_save_CFLAGS"
17906 fi
17907
17908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911 fi
17912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17916 then :
17917 printf %s "(cached) " >&6
17918 else case e in #(
17919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 int i;
17922 _ACEOF
17923 if ac_fn_c_try_compile "$LINENO"
17924 then :
17925 xorg_cv_cc_flag_unused_command_line_argument=yes
17926 else case e in #(
17927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17928 esac
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17931 esac
17932 fi
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17936 CFLAGS="$xorg_testset_save_CFLAGS"
17937 fi
17938
17939 found="no"
17940
17941 if test $found = "no" ; then
17942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17944 fi
17945
17946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17948 fi
17949
17950 CFLAGS="$CFLAGS -Wmain"
17951
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17953 printf %s "checking if $CC supports -Wmain... " >&6; }
17954 cacheid=xorg_cv_cc_flag__Wmain
17955 if eval test \${$cacheid+y}
17956 then :
17957 printf %s "(cached) " >&6
17958 else case e in #(
17959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17961 int i;
17962 int
17963 main (void)
17964 {
17965
17966 ;
17967 return 0;
17968 }
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"
17971 then :
17972 eval $cacheid=yes
17973 else case e in #(
17974 e) eval $cacheid=no ;;
17975 esac
17976 fi
17977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17978 conftest$ac_exeext conftest.$ac_ext ;;
17979 esac
17980 fi
17981
17982
17983 CFLAGS="$xorg_testset_save_CFLAGS"
17984
17985 eval supported=\$$cacheid
17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17987 printf "%s\n" "$supported" >&6; }
17988 if test "$supported" = "yes" ; then
17989 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17990 found="yes"
17991 fi
17992 fi
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008 xorg_testset_save_CFLAGS="$CFLAGS"
18009
18010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18015 then :
18016 printf %s "(cached) " >&6
18017 else case e in #(
18018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 int i;
18021 _ACEOF
18022 if ac_fn_c_try_compile "$LINENO"
18023 then :
18024 xorg_cv_cc_flag_unknown_warning_option=yes
18025 else case e in #(
18026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18027 esac
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18030 esac
18031 fi
18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18035 CFLAGS="$xorg_testset_save_CFLAGS"
18036 fi
18037
18038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18041 fi
18042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18046 then :
18047 printf %s "(cached) " >&6
18048 else case e in #(
18049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18051 int i;
18052 _ACEOF
18053 if ac_fn_c_try_compile "$LINENO"
18054 then :
18055 xorg_cv_cc_flag_unused_command_line_argument=yes
18056 else case e in #(
18057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18058 esac
18059 fi
18060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18061 esac
18062 fi
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18066 CFLAGS="$xorg_testset_save_CFLAGS"
18067 fi
18068
18069 found="no"
18070
18071 if test $found = "no" ; then
18072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18074 fi
18075
18076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18078 fi
18079
18080 CFLAGS="$CFLAGS -Wmissing-braces"
18081
18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18083 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18084 cacheid=xorg_cv_cc_flag__Wmissing_braces
18085 if eval test \${$cacheid+y}
18086 then :
18087 printf %s "(cached) " >&6
18088 else case e in #(
18089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090 /* end confdefs.h. */
18091 int i;
18092 int
18093 main (void)
18094 {
18095
18096 ;
18097 return 0;
18098 }
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"
18101 then :
18102 eval $cacheid=yes
18103 else case e in #(
18104 e) eval $cacheid=no ;;
18105 esac
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18108 conftest$ac_exeext conftest.$ac_ext ;;
18109 esac
18110 fi
18111
18112
18113 CFLAGS="$xorg_testset_save_CFLAGS"
18114
18115 eval supported=\$$cacheid
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18117 printf "%s\n" "$supported" >&6; }
18118 if test "$supported" = "yes" ; then
18119 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18120 found="yes"
18121 fi
18122 fi
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138 xorg_testset_save_CFLAGS="$CFLAGS"
18139
18140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18145 then :
18146 printf %s "(cached) " >&6
18147 else case e in #(
18148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150 int i;
18151 _ACEOF
18152 if ac_fn_c_try_compile "$LINENO"
18153 then :
18154 xorg_cv_cc_flag_unknown_warning_option=yes
18155 else case e in #(
18156 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18157 esac
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18160 esac
18161 fi
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18165 CFLAGS="$xorg_testset_save_CFLAGS"
18166 fi
18167
18168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171 fi
18172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18176 then :
18177 printf %s "(cached) " >&6
18178 else case e in #(
18179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181 int i;
18182 _ACEOF
18183 if ac_fn_c_try_compile "$LINENO"
18184 then :
18185 xorg_cv_cc_flag_unused_command_line_argument=yes
18186 else case e in #(
18187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18188 esac
18189 fi
18190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18191 esac
18192 fi
18193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18196 CFLAGS="$xorg_testset_save_CFLAGS"
18197 fi
18198
18199 found="no"
18200
18201 if test $found = "no" ; then
18202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18204 fi
18205
18206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18208 fi
18209
18210 CFLAGS="$CFLAGS -Wsequence-point"
18211
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18213 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18214 cacheid=xorg_cv_cc_flag__Wsequence_point
18215 if eval test \${$cacheid+y}
18216 then :
18217 printf %s "(cached) " >&6
18218 else case e in #(
18219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 int i;
18222 int
18223 main (void)
18224 {
18225
18226 ;
18227 return 0;
18228 }
18229 _ACEOF
18230 if ac_fn_c_try_link "$LINENO"
18231 then :
18232 eval $cacheid=yes
18233 else case e in #(
18234 e) eval $cacheid=no ;;
18235 esac
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18238 conftest$ac_exeext conftest.$ac_ext ;;
18239 esac
18240 fi
18241
18242
18243 CFLAGS="$xorg_testset_save_CFLAGS"
18244
18245 eval supported=\$$cacheid
18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18247 printf "%s\n" "$supported" >&6; }
18248 if test "$supported" = "yes" ; then
18249 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18250 found="yes"
18251 fi
18252 fi
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268 xorg_testset_save_CFLAGS="$CFLAGS"
18269
18270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18275 then :
18276 printf %s "(cached) " >&6
18277 else case e in #(
18278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 int i;
18281 _ACEOF
18282 if ac_fn_c_try_compile "$LINENO"
18283 then :
18284 xorg_cv_cc_flag_unknown_warning_option=yes
18285 else case e in #(
18286 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18287 esac
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18290 esac
18291 fi
18292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18295 CFLAGS="$xorg_testset_save_CFLAGS"
18296 fi
18297
18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301 fi
18302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18306 then :
18307 printf %s "(cached) " >&6
18308 else case e in #(
18309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 int i;
18312 _ACEOF
18313 if ac_fn_c_try_compile "$LINENO"
18314 then :
18315 xorg_cv_cc_flag_unused_command_line_argument=yes
18316 else case e in #(
18317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18318 esac
18319 fi
18320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18321 esac
18322 fi
18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18324 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18326 CFLAGS="$xorg_testset_save_CFLAGS"
18327 fi
18328
18329 found="no"
18330
18331 if test $found = "no" ; then
18332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334 fi
18335
18336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18338 fi
18339
18340 CFLAGS="$CFLAGS -Wreturn-type"
18341
18342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18343 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18344 cacheid=xorg_cv_cc_flag__Wreturn_type
18345 if eval test \${$cacheid+y}
18346 then :
18347 printf %s "(cached) " >&6
18348 else case e in #(
18349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18351 int i;
18352 int
18353 main (void)
18354 {
18355
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 if ac_fn_c_try_link "$LINENO"
18361 then :
18362 eval $cacheid=yes
18363 else case e in #(
18364 e) eval $cacheid=no ;;
18365 esac
18366 fi
18367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18368 conftest$ac_exeext conftest.$ac_ext ;;
18369 esac
18370 fi
18371
18372
18373 CFLAGS="$xorg_testset_save_CFLAGS"
18374
18375 eval supported=\$$cacheid
18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18377 printf "%s\n" "$supported" >&6; }
18378 if test "$supported" = "yes" ; then
18379 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18380 found="yes"
18381 fi
18382 fi
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398 xorg_testset_save_CFLAGS="$CFLAGS"
18399
18400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18405 then :
18406 printf %s "(cached) " >&6
18407 else case e in #(
18408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18410 int i;
18411 _ACEOF
18412 if ac_fn_c_try_compile "$LINENO"
18413 then :
18414 xorg_cv_cc_flag_unknown_warning_option=yes
18415 else case e in #(
18416 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18417 esac
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18420 esac
18421 fi
18422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18425 CFLAGS="$xorg_testset_save_CFLAGS"
18426 fi
18427
18428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431 fi
18432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18436 then :
18437 printf %s "(cached) " >&6
18438 else case e in #(
18439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441 int i;
18442 _ACEOF
18443 if ac_fn_c_try_compile "$LINENO"
18444 then :
18445 xorg_cv_cc_flag_unused_command_line_argument=yes
18446 else case e in #(
18447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18448 esac
18449 fi
18450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18451 esac
18452 fi
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18456 CFLAGS="$xorg_testset_save_CFLAGS"
18457 fi
18458
18459 found="no"
18460
18461 if test $found = "no" ; then
18462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464 fi
18465
18466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18468 fi
18469
18470 CFLAGS="$CFLAGS -Wtrigraphs"
18471
18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18473 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18474 cacheid=xorg_cv_cc_flag__Wtrigraphs
18475 if eval test \${$cacheid+y}
18476 then :
18477 printf %s "(cached) " >&6
18478 else case e in #(
18479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 int i;
18482 int
18483 main (void)
18484 {
18485
18486 ;
18487 return 0;
18488 }
18489 _ACEOF
18490 if ac_fn_c_try_link "$LINENO"
18491 then :
18492 eval $cacheid=yes
18493 else case e in #(
18494 e) eval $cacheid=no ;;
18495 esac
18496 fi
18497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18498 conftest$ac_exeext conftest.$ac_ext ;;
18499 esac
18500 fi
18501
18502
18503 CFLAGS="$xorg_testset_save_CFLAGS"
18504
18505 eval supported=\$$cacheid
18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18507 printf "%s\n" "$supported" >&6; }
18508 if test "$supported" = "yes" ; then
18509 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18510 found="yes"
18511 fi
18512 fi
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528 xorg_testset_save_CFLAGS="$CFLAGS"
18529
18530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18534 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18535 then :
18536 printf %s "(cached) " >&6
18537 else case e in #(
18538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540 int i;
18541 _ACEOF
18542 if ac_fn_c_try_compile "$LINENO"
18543 then :
18544 xorg_cv_cc_flag_unknown_warning_option=yes
18545 else case e in #(
18546 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18547 esac
18548 fi
18549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18550 esac
18551 fi
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18555 CFLAGS="$xorg_testset_save_CFLAGS"
18556 fi
18557
18558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18561 fi
18562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18566 then :
18567 printf %s "(cached) " >&6
18568 else case e in #(
18569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18571 int i;
18572 _ACEOF
18573 if ac_fn_c_try_compile "$LINENO"
18574 then :
18575 xorg_cv_cc_flag_unused_command_line_argument=yes
18576 else case e in #(
18577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18578 esac
18579 fi
18580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18581 esac
18582 fi
18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18586 CFLAGS="$xorg_testset_save_CFLAGS"
18587 fi
18588
18589 found="no"
18590
18591 if test $found = "no" ; then
18592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18594 fi
18595
18596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18598 fi
18599
18600 CFLAGS="$CFLAGS -Warray-bounds"
18601
18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18603 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18604 cacheid=xorg_cv_cc_flag__Warray_bounds
18605 if eval test \${$cacheid+y}
18606 then :
18607 printf %s "(cached) " >&6
18608 else case e in #(
18609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611 int i;
18612 int
18613 main (void)
18614 {
18615
18616 ;
18617 return 0;
18618 }
18619 _ACEOF
18620 if ac_fn_c_try_link "$LINENO"
18621 then :
18622 eval $cacheid=yes
18623 else case e in #(
18624 e) eval $cacheid=no ;;
18625 esac
18626 fi
18627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18628 conftest$ac_exeext conftest.$ac_ext ;;
18629 esac
18630 fi
18631
18632
18633 CFLAGS="$xorg_testset_save_CFLAGS"
18634
18635 eval supported=\$$cacheid
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18637 printf "%s\n" "$supported" >&6; }
18638 if test "$supported" = "yes" ; then
18639 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18640 found="yes"
18641 fi
18642 fi
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658 xorg_testset_save_CFLAGS="$CFLAGS"
18659
18660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18664 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18665 then :
18666 printf %s "(cached) " >&6
18667 else case e in #(
18668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 int i;
18671 _ACEOF
18672 if ac_fn_c_try_compile "$LINENO"
18673 then :
18674 xorg_cv_cc_flag_unknown_warning_option=yes
18675 else case e in #(
18676 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18677 esac
18678 fi
18679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18680 esac
18681 fi
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18685 CFLAGS="$xorg_testset_save_CFLAGS"
18686 fi
18687
18688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18691 fi
18692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18696 then :
18697 printf %s "(cached) " >&6
18698 else case e in #(
18699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 int i;
18702 _ACEOF
18703 if ac_fn_c_try_compile "$LINENO"
18704 then :
18705 xorg_cv_cc_flag_unused_command_line_argument=yes
18706 else case e in #(
18707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18708 esac
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18711 esac
18712 fi
18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18716 CFLAGS="$xorg_testset_save_CFLAGS"
18717 fi
18718
18719 found="no"
18720
18721 if test $found = "no" ; then
18722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18724 fi
18725
18726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18728 fi
18729
18730 CFLAGS="$CFLAGS -Wwrite-strings"
18731
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18733 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18734 cacheid=xorg_cv_cc_flag__Wwrite_strings
18735 if eval test \${$cacheid+y}
18736 then :
18737 printf %s "(cached) " >&6
18738 else case e in #(
18739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18741 int i;
18742 int
18743 main (void)
18744 {
18745
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 if ac_fn_c_try_link "$LINENO"
18751 then :
18752 eval $cacheid=yes
18753 else case e in #(
18754 e) eval $cacheid=no ;;
18755 esac
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18758 conftest$ac_exeext conftest.$ac_ext ;;
18759 esac
18760 fi
18761
18762
18763 CFLAGS="$xorg_testset_save_CFLAGS"
18764
18765 eval supported=\$$cacheid
18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18767 printf "%s\n" "$supported" >&6; }
18768 if test "$supported" = "yes" ; then
18769 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18770 found="yes"
18771 fi
18772 fi
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788 xorg_testset_save_CFLAGS="$CFLAGS"
18789
18790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18795 then :
18796 printf %s "(cached) " >&6
18797 else case e in #(
18798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18800 int i;
18801 _ACEOF
18802 if ac_fn_c_try_compile "$LINENO"
18803 then :
18804 xorg_cv_cc_flag_unknown_warning_option=yes
18805 else case e in #(
18806 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18807 esac
18808 fi
18809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18810 esac
18811 fi
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18813 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18815 CFLAGS="$xorg_testset_save_CFLAGS"
18816 fi
18817
18818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18821 fi
18822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18826 then :
18827 printf %s "(cached) " >&6
18828 else case e in #(
18829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18831 int i;
18832 _ACEOF
18833 if ac_fn_c_try_compile "$LINENO"
18834 then :
18835 xorg_cv_cc_flag_unused_command_line_argument=yes
18836 else case e in #(
18837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18838 esac
18839 fi
18840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18841 esac
18842 fi
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18846 CFLAGS="$xorg_testset_save_CFLAGS"
18847 fi
18848
18849 found="no"
18850
18851 if test $found = "no" ; then
18852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18854 fi
18855
18856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18858 fi
18859
18860 CFLAGS="$CFLAGS -Waddress"
18861
18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18863 printf %s "checking if $CC supports -Waddress... " >&6; }
18864 cacheid=xorg_cv_cc_flag__Waddress
18865 if eval test \${$cacheid+y}
18866 then :
18867 printf %s "(cached) " >&6
18868 else case e in #(
18869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18871 int i;
18872 int
18873 main (void)
18874 {
18875
18876 ;
18877 return 0;
18878 }
18879 _ACEOF
18880 if ac_fn_c_try_link "$LINENO"
18881 then :
18882 eval $cacheid=yes
18883 else case e in #(
18884 e) eval $cacheid=no ;;
18885 esac
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888 conftest$ac_exeext conftest.$ac_ext ;;
18889 esac
18890 fi
18891
18892
18893 CFLAGS="$xorg_testset_save_CFLAGS"
18894
18895 eval supported=\$$cacheid
18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18897 printf "%s\n" "$supported" >&6; }
18898 if test "$supported" = "yes" ; then
18899 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18900 found="yes"
18901 fi
18902 fi
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918 xorg_testset_save_CFLAGS="$CFLAGS"
18919
18920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18925 then :
18926 printf %s "(cached) " >&6
18927 else case e in #(
18928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h. */
18930 int i;
18931 _ACEOF
18932 if ac_fn_c_try_compile "$LINENO"
18933 then :
18934 xorg_cv_cc_flag_unknown_warning_option=yes
18935 else case e in #(
18936 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18937 esac
18938 fi
18939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18940 esac
18941 fi
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18945 CFLAGS="$xorg_testset_save_CFLAGS"
18946 fi
18947
18948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951 fi
18952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18956 then :
18957 printf %s "(cached) " >&6
18958 else case e in #(
18959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 int i;
18962 _ACEOF
18963 if ac_fn_c_try_compile "$LINENO"
18964 then :
18965 xorg_cv_cc_flag_unused_command_line_argument=yes
18966 else case e in #(
18967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18968 esac
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18971 esac
18972 fi
18973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18976 CFLAGS="$xorg_testset_save_CFLAGS"
18977 fi
18978
18979 found="no"
18980
18981 if test $found = "no" ; then
18982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18984 fi
18985
18986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18988 fi
18989
18990 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18991
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18993 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18994 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18995 if eval test \${$cacheid+y}
18996 then :
18997 printf %s "(cached) " >&6
18998 else case e in #(
18999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 int i;
19002 int
19003 main (void)
19004 {
19005
19006 ;
19007 return 0;
19008 }
19009 _ACEOF
19010 if ac_fn_c_try_link "$LINENO"
19011 then :
19012 eval $cacheid=yes
19013 else case e in #(
19014 e) eval $cacheid=no ;;
19015 esac
19016 fi
19017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19018 conftest$ac_exeext conftest.$ac_ext ;;
19019 esac
19020 fi
19021
19022
19023 CFLAGS="$xorg_testset_save_CFLAGS"
19024
19025 eval supported=\$$cacheid
19026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19027 printf "%s\n" "$supported" >&6; }
19028 if test "$supported" = "yes" ; then
19029 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19030 found="yes"
19031 fi
19032 fi
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048 xorg_testset_save_CFLAGS="$CFLAGS"
19049
19050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19055 then :
19056 printf %s "(cached) " >&6
19057 else case e in #(
19058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19060 int i;
19061 _ACEOF
19062 if ac_fn_c_try_compile "$LINENO"
19063 then :
19064 xorg_cv_cc_flag_unknown_warning_option=yes
19065 else case e in #(
19066 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19067 esac
19068 fi
19069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19070 esac
19071 fi
19072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19075 CFLAGS="$xorg_testset_save_CFLAGS"
19076 fi
19077
19078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19081 fi
19082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19086 then :
19087 printf %s "(cached) " >&6
19088 else case e in #(
19089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 int i;
19092 _ACEOF
19093 if ac_fn_c_try_compile "$LINENO"
19094 then :
19095 xorg_cv_cc_flag_unused_command_line_argument=yes
19096 else case e in #(
19097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19098 esac
19099 fi
19100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19101 esac
19102 fi
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19106 CFLAGS="$xorg_testset_save_CFLAGS"
19107 fi
19108
19109 found="no"
19110
19111 if test $found = "no" ; then
19112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19114 fi
19115
19116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19118 fi
19119
19120 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19121
19122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19123 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19124 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19125 if eval test \${$cacheid+y}
19126 then :
19127 printf %s "(cached) " >&6
19128 else case e in #(
19129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130 /* end confdefs.h. */
19131 int i;
19132 int
19133 main (void)
19134 {
19135
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 if ac_fn_c_try_link "$LINENO"
19141 then :
19142 eval $cacheid=yes
19143 else case e in #(
19144 e) eval $cacheid=no ;;
19145 esac
19146 fi
19147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19148 conftest$ac_exeext conftest.$ac_ext ;;
19149 esac
19150 fi
19151
19152
19153 CFLAGS="$xorg_testset_save_CFLAGS"
19154
19155 eval supported=\$$cacheid
19156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19157 printf "%s\n" "$supported" >&6; }
19158 if test "$supported" = "yes" ; then
19159 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19160 found="yes"
19161 fi
19162 fi
19163
19164
19165 fi
19166
19167
19168
19169
19170
19171
19172
19173 CWARNFLAGS="$BASE_CFLAGS"
19174 if test "x$GCC" = xyes ; then
19175 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19176 fi
19177
19178
19179
19180
19181
19182
19183
19184
19185 # Check whether --enable-strict-compilation was given.
19186 if test ${enable_strict_compilation+y}
19187 then :
19188 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19189 else case e in #(
19190 e) STRICT_COMPILE=no ;;
19191 esac
19192 fi
19193
19194
19195
19196
19197
19198
19199 STRICT_CFLAGS=""
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213 xorg_testset_save_CFLAGS="$CFLAGS"
19214
19215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19220 then :
19221 printf %s "(cached) " >&6
19222 else case e in #(
19223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224 /* end confdefs.h. */
19225 int i;
19226 _ACEOF
19227 if ac_fn_c_try_compile "$LINENO"
19228 then :
19229 xorg_cv_cc_flag_unknown_warning_option=yes
19230 else case e in #(
19231 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19232 esac
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19235 esac
19236 fi
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19240 CFLAGS="$xorg_testset_save_CFLAGS"
19241 fi
19242
19243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19246 fi
19247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19251 then :
19252 printf %s "(cached) " >&6
19253 else case e in #(
19254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19256 int i;
19257 _ACEOF
19258 if ac_fn_c_try_compile "$LINENO"
19259 then :
19260 xorg_cv_cc_flag_unused_command_line_argument=yes
19261 else case e in #(
19262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19263 esac
19264 fi
19265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19266 esac
19267 fi
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19271 CFLAGS="$xorg_testset_save_CFLAGS"
19272 fi
19273
19274 found="no"
19275
19276 if test $found = "no" ; then
19277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19279 fi
19280
19281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19283 fi
19284
19285 CFLAGS="$CFLAGS -pedantic"
19286
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19288 printf %s "checking if $CC supports -pedantic... " >&6; }
19289 cacheid=xorg_cv_cc_flag__pedantic
19290 if eval test \${$cacheid+y}
19291 then :
19292 printf %s "(cached) " >&6
19293 else case e in #(
19294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296 int i;
19297 int
19298 main (void)
19299 {
19300
19301 ;
19302 return 0;
19303 }
19304 _ACEOF
19305 if ac_fn_c_try_link "$LINENO"
19306 then :
19307 eval $cacheid=yes
19308 else case e in #(
19309 e) eval $cacheid=no ;;
19310 esac
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19313 conftest$ac_exeext conftest.$ac_ext ;;
19314 esac
19315 fi
19316
19317
19318 CFLAGS="$xorg_testset_save_CFLAGS"
19319
19320 eval supported=\$$cacheid
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19322 printf "%s\n" "$supported" >&6; }
19323 if test "$supported" = "yes" ; then
19324 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19325 found="yes"
19326 fi
19327 fi
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343 xorg_testset_save_CFLAGS="$CFLAGS"
19344
19345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19350 then :
19351 printf %s "(cached) " >&6
19352 else case e in #(
19353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355 int i;
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"
19358 then :
19359 xorg_cv_cc_flag_unknown_warning_option=yes
19360 else case e in #(
19361 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19362 esac
19363 fi
19364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19365 esac
19366 fi
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19370 CFLAGS="$xorg_testset_save_CFLAGS"
19371 fi
19372
19373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19376 fi
19377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19381 then :
19382 printf %s "(cached) " >&6
19383 else case e in #(
19384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19386 int i;
19387 _ACEOF
19388 if ac_fn_c_try_compile "$LINENO"
19389 then :
19390 xorg_cv_cc_flag_unused_command_line_argument=yes
19391 else case e in #(
19392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19393 esac
19394 fi
19395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19396 esac
19397 fi
19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19399 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19401 CFLAGS="$xorg_testset_save_CFLAGS"
19402 fi
19403
19404 found="no"
19405
19406 if test $found = "no" ; then
19407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19409 fi
19410
19411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19413 fi
19414
19415 CFLAGS="$CFLAGS -Werror"
19416
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19418 printf %s "checking if $CC supports -Werror... " >&6; }
19419 cacheid=xorg_cv_cc_flag__Werror
19420 if eval test \${$cacheid+y}
19421 then :
19422 printf %s "(cached) " >&6
19423 else case e in #(
19424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426 int i;
19427 int
19428 main (void)
19429 {
19430
19431 ;
19432 return 0;
19433 }
19434 _ACEOF
19435 if ac_fn_c_try_link "$LINENO"
19436 then :
19437 eval $cacheid=yes
19438 else case e in #(
19439 e) eval $cacheid=no ;;
19440 esac
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19443 conftest$ac_exeext conftest.$ac_ext ;;
19444 esac
19445 fi
19446
19447
19448 CFLAGS="$xorg_testset_save_CFLAGS"
19449
19450 eval supported=\$$cacheid
19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19452 printf "%s\n" "$supported" >&6; }
19453 if test "$supported" = "yes" ; then
19454 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19455 found="yes"
19456 fi
19457 fi
19458
19459 if test $found = "no" ; then
19460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19462 fi
19463
19464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19466 fi
19467
19468 CFLAGS="$CFLAGS -errwarn"
19469
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19471 printf %s "checking if $CC supports -errwarn... " >&6; }
19472 cacheid=xorg_cv_cc_flag__errwarn
19473 if eval test \${$cacheid+y}
19474 then :
19475 printf %s "(cached) " >&6
19476 else case e in #(
19477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 int i;
19480 int
19481 main (void)
19482 {
19483
19484 ;
19485 return 0;
19486 }
19487 _ACEOF
19488 if ac_fn_c_try_link "$LINENO"
19489 then :
19490 eval $cacheid=yes
19491 else case e in #(
19492 e) eval $cacheid=no ;;
19493 esac
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19496 conftest$ac_exeext conftest.$ac_ext ;;
19497 esac
19498 fi
19499
19500
19501 CFLAGS="$xorg_testset_save_CFLAGS"
19502
19503 eval supported=\$$cacheid
19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19505 printf "%s\n" "$supported" >&6; }
19506 if test "$supported" = "yes" ; then
19507 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19508 found="yes"
19509 fi
19510 fi
19511
19512
19513
19514 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19515 # activate it with -Werror, so we add it here explicitly.
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529 xorg_testset_save_CFLAGS="$CFLAGS"
19530
19531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19536 then :
19537 printf %s "(cached) " >&6
19538 else case e in #(
19539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540 /* end confdefs.h. */
19541 int i;
19542 _ACEOF
19543 if ac_fn_c_try_compile "$LINENO"
19544 then :
19545 xorg_cv_cc_flag_unknown_warning_option=yes
19546 else case e in #(
19547 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19548 esac
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19551 esac
19552 fi
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19556 CFLAGS="$xorg_testset_save_CFLAGS"
19557 fi
19558
19559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19562 fi
19563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19567 then :
19568 printf %s "(cached) " >&6
19569 else case e in #(
19570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19572 int i;
19573 _ACEOF
19574 if ac_fn_c_try_compile "$LINENO"
19575 then :
19576 xorg_cv_cc_flag_unused_command_line_argument=yes
19577 else case e in #(
19578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19579 esac
19580 fi
19581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19582 esac
19583 fi
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19587 CFLAGS="$xorg_testset_save_CFLAGS"
19588 fi
19589
19590 found="no"
19591
19592 if test $found = "no" ; then
19593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19595 fi
19596
19597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19599 fi
19600
19601 CFLAGS="$CFLAGS -Werror=attributes"
19602
19603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19604 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19605 cacheid=xorg_cv_cc_flag__Werror_attributes
19606 if eval test \${$cacheid+y}
19607 then :
19608 printf %s "(cached) " >&6
19609 else case e in #(
19610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19612 int i;
19613 int
19614 main (void)
19615 {
19616
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 if ac_fn_c_try_link "$LINENO"
19622 then :
19623 eval $cacheid=yes
19624 else case e in #(
19625 e) eval $cacheid=no ;;
19626 esac
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629 conftest$ac_exeext conftest.$ac_ext ;;
19630 esac
19631 fi
19632
19633
19634 CFLAGS="$xorg_testset_save_CFLAGS"
19635
19636 eval supported=\$$cacheid
19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19638 printf "%s\n" "$supported" >&6; }
19639 if test "$supported" = "yes" ; then
19640 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19641 found="yes"
19642 fi
19643 fi
19644
19645
19646
19647 if test "x$STRICT_COMPILE" = "xyes"; then
19648 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19649 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19650 fi
19651
19652
19653
19654
19655
19656
19657
19658
19659 cat >>confdefs.h <<_ACEOF
19660 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19661 _ACEOF
19662
19663 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19664 if test "x$PVM" = "x"; then
19665 PVM="0"
19666 fi
19667
19668 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19669
19670 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19671 if test "x$PVP" = "x"; then
19672 PVP="0"
19673 fi
19674
19675 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19676
19677
19678
19679 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19680 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19681 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19682 touch \$(top_srcdir)/ChangeLog; \
19683 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19684
19685
19686
19687
19688 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19689 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19690 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19691 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19692 touch \$(top_srcdir)/INSTALL; \
19693 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19694
19695
19696
19697
19698
19699
19700 case $host_os in
19701 solaris*)
19702 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19703 # check for a man page file found in later versions that use
19704 # traditional section numbers instead
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19706 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19707 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19708 then :
19709 printf %s "(cached) " >&6
19710 else case e in #(
19711 e) test "$cross_compiling" = yes &&
19712 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19713 if test -r "/usr/share/man/man7/attributes.7"; then
19714 ac_cv_file__usr_share_man_man7_attributes_7=yes
19715 else
19716 ac_cv_file__usr_share_man_man7_attributes_7=no
19717 fi ;;
19718 esac
19719 fi
19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19721 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19722 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19723 then :
19724 SYSV_MAN_SECTIONS=false
19725 else case e in #(
19726 e) SYSV_MAN_SECTIONS=true ;;
19727 esac
19728 fi
19729
19730 ;;
19731 *) SYSV_MAN_SECTIONS=false ;;
19732 esac
19733
19734 if test x$APP_MAN_SUFFIX = x ; then
19735 APP_MAN_SUFFIX=1
19736 fi
19737 if test x$APP_MAN_DIR = x ; then
19738 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19739 fi
19740
19741 if test x$LIB_MAN_SUFFIX = x ; then
19742 LIB_MAN_SUFFIX=3
19743 fi
19744 if test x$LIB_MAN_DIR = x ; then
19745 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19746 fi
19747
19748 if test x$FILE_MAN_SUFFIX = x ; then
19749 case $SYSV_MAN_SECTIONS in
19750 true) FILE_MAN_SUFFIX=4 ;;
19751 *) FILE_MAN_SUFFIX=5 ;;
19752 esac
19753 fi
19754 if test x$FILE_MAN_DIR = x ; then
19755 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19756 fi
19757
19758 if test x$MISC_MAN_SUFFIX = x ; then
19759 case $SYSV_MAN_SECTIONS in
19760 true) MISC_MAN_SUFFIX=5 ;;
19761 *) MISC_MAN_SUFFIX=7 ;;
19762 esac
19763 fi
19764 if test x$MISC_MAN_DIR = x ; then
19765 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19766 fi
19767
19768 if test x$DRIVER_MAN_SUFFIX = x ; then
19769 case $SYSV_MAN_SECTIONS in
19770 true) DRIVER_MAN_SUFFIX=7 ;;
19771 *) DRIVER_MAN_SUFFIX=4 ;;
19772 esac
19773 fi
19774 if test x$DRIVER_MAN_DIR = x ; then
19775 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19776 fi
19777
19778 if test x$ADMIN_MAN_SUFFIX = x ; then
19779 case $SYSV_MAN_SECTIONS in
19780 true) ADMIN_MAN_SUFFIX=1m ;;
19781 *) ADMIN_MAN_SUFFIX=8 ;;
19782 esac
19783 fi
19784 if test x$ADMIN_MAN_DIR = x ; then
19785 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19786 fi
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802 XORG_MAN_PAGE="X Version 11"
19803
19804 MAN_SUBSTS="\
19805 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19806 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19807 -e 's|__xservername__|Xorg|g' \
19808 -e 's|__xconfigfile__|xorg.conf|g' \
19809 -e 's|__projectroot__|\$(prefix)|g' \
19810 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19811 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19812 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19813 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19814 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19815 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19816 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19817
19818
19819
19820 # Check whether --enable-silent-rules was given.
19821 if test ${enable_silent_rules+y}
19822 then :
19823 enableval=$enable_silent_rules;
19824 fi
19825
19826 case $enable_silent_rules in # (((
19827 yes) AM_DEFAULT_VERBOSITY=0;;
19828 no) AM_DEFAULT_VERBOSITY=1;;
19829 *) AM_DEFAULT_VERBOSITY=0;;
19830 esac
19831 am_make=${MAKE-make}
19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19833 printf %s "checking whether $am_make supports nested variables... " >&6; }
19834 if test ${am_cv_make_support_nested_variables+y}
19835 then :
19836 printf %s "(cached) " >&6
19837 else case e in #(
19838 e) if printf "%s\n" 'TRUE=$(BAR$(V))
19839 BAR0=false
19840 BAR1=true
19841 V=1
19842 am__doit:
19843 @$(TRUE)
19844 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19845 am_cv_make_support_nested_variables=yes
19846 else
19847 am_cv_make_support_nested_variables=no
19848 fi ;;
19849 esac
19850 fi
19851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19852 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19853 if test $am_cv_make_support_nested_variables = yes; then
19854 AM_V='$(V)'
19855 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19856 else
19857 AM_V=$AM_DEFAULT_VERBOSITY
19858 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19859 fi
19860 AM_BACKSLASH='\'
19861
19862
19863
19864
19865 # Set library version for Xcursor.h from package version set in AC_INIT
19866 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
19867
19868 cat >>confdefs.h <<_ACEOF
19869 #define XCURSOR_LIB_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19870 _ACEOF
19871
19872
19873 cat >>confdefs.h <<_ACEOF
19874 #define XCURSOR_LIB_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19875 _ACEOF
19876
19877
19878 cat >>confdefs.h <<_ACEOF
19879 #define XCURSOR_LIB_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19880 _ACEOF
19881
19882
19883
19884
19885 # Check whether --with-icondir was given.
19886 if test ${with_icondir+y}
19887 then :
19888 withval=$with_icondir; ICONDIR="$withval"
19889 else case e in #(
19890 e) ICONDIR=${datadir}/icons ;;
19891 esac
19892 fi
19893
19894
19895
19896 DEF_CURSORPATH="~/.local/share/icons:~/.icons:${datadir}/icons:${datadir}/pixmaps"
19897 if test "x${ICONDIR}" != "x${datadir}/icons"; then
19898 DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
19899 fi
19900
19901 # Check whether --with-cursorpath was given.
19902 if test ${with_cursorpath+y}
19903 then :
19904 withval=$with_cursorpath; XCURSORPATH="$withval"
19905 else case e in #(
19906 e) XCURSORPATH=$DEF_CURSORPATH ;;
19907 esac
19908 fi
19909
19910
19911
19912 # Obtain compiler/linker options for dependencies
19913
19914 pkg_failed=no
19915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
19916 printf %s "checking for XCURSOR... " >&6; }
19917
19918 if test -n "$XCURSOR_CFLAGS"; then
19919 pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
19920 elif test -n "$PKG_CONFIG"; then
19921 if test -n "$PKG_CONFIG" && \
19922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
19923 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
19924 ac_status=$?
19925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926 test $ac_status = 0; }; then
19927 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
19928 test "x$?" != "x0" && pkg_failed=yes
19929 else
19930 pkg_failed=yes
19931 fi
19932 else
19933 pkg_failed=untried
19934 fi
19935 if test -n "$XCURSOR_LIBS"; then
19936 pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
19937 elif test -n "$PKG_CONFIG"; then
19938 if test -n "$PKG_CONFIG" && \
19939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
19940 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
19941 ac_status=$?
19942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19943 test $ac_status = 0; }; then
19944 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
19945 test "x$?" != "x0" && pkg_failed=yes
19946 else
19947 pkg_failed=yes
19948 fi
19949 else
19950 pkg_failed=untried
19951 fi
19952
19953
19954
19955 if test $pkg_failed = yes; then
19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 printf "%s\n" "no" >&6; }
19958
19959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19960 _pkg_short_errors_supported=yes
19961 else
19962 _pkg_short_errors_supported=no
19963 fi
19964 if test $_pkg_short_errors_supported = yes; then
19965 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
19966 else
19967 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
19968 fi
19969 # Put the nasty error message in config.log where it belongs
19970 echo "$XCURSOR_PKG_ERRORS" >&5
19971
19972 as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met:
19973
19974 $XCURSOR_PKG_ERRORS
19975
19976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19977 installed software in a non-standard prefix.
19978
19979 Alternatively, you may set the environment variables XCURSOR_CFLAGS
19980 and XCURSOR_LIBS to avoid the need to call pkg-config.
19981 See the pkg-config man page for more details." "$LINENO" 5
19982 elif test $pkg_failed = untried; then
19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19984 printf "%s\n" "no" >&6; }
19985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19986 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19988 is in your PATH or set the PKG_CONFIG environment variable to the full
19989 path to pkg-config.
19990
19991 Alternatively, you may set the environment variables XCURSOR_CFLAGS
19992 and XCURSOR_LIBS to avoid the need to call pkg-config.
19993 See the pkg-config man page for more details.
19994
19995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19996 See 'config.log' for more details" "$LINENO" 5; }
19997 else
19998 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
19999 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20001 printf "%s\n" "yes" >&6; }
20002
20003 fi
20004
20005 printf "%s\n" "#define HAVE_XFIXES 1" >>confdefs.h
20006
20007
20008 # Allow checking code with lint, sparse, etc.
20009
20010
20011
20012
20013
20014 # Check whether --with-lint was given.
20015 if test ${with_lint+y}
20016 then :
20017 withval=$with_lint; use_lint=$withval
20018 else case e in #(
20019 e) use_lint=no ;;
20020 esac
20021 fi
20022
20023
20024 # Obtain platform specific info like program name and options
20025 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20026 case $host_os in
20027 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20028 lint_name=splint
20029 lint_options="-badflag"
20030 ;;
20031 *freebsd* | *netbsd*)
20032 lint_name=lint
20033 lint_options="-u -b"
20034 ;;
20035 *solaris*)
20036 lint_name=lint
20037 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20038 ;;
20039 esac
20040
20041 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20042 if test "x$use_lint" = x"yes" ; then
20043 # Extract the first word of "$lint_name", so it can be a program name with args.
20044 set dummy $lint_name; ac_word=$2
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20046 printf %s "checking for $ac_word... " >&6; }
20047 if test ${ac_cv_path_LINT+y}
20048 then :
20049 printf %s "(cached) " >&6
20050 else case e in #(
20051 e) case $LINT in
20052 [\\/]* | ?:[\\/]*)
20053 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20054 ;;
20055 *)
20056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20057 for as_dir in $PATH
20058 do
20059 IFS=$as_save_IFS
20060 case $as_dir in #(((
20061 '') as_dir=./ ;;
20062 */) ;;
20063 *) as_dir=$as_dir/ ;;
20064 esac
20065 for ac_exec_ext in '' $ac_executable_extensions; do
20066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20067 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20069 break 2
20070 fi
20071 done
20072 done
20073 IFS=$as_save_IFS
20074
20075 ;;
20076 esac ;;
20077 esac
20078 fi
20079 LINT=$ac_cv_path_LINT
20080 if test -n "$LINT"; then
20081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20082 printf "%s\n" "$LINT" >&6; }
20083 else
20084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 printf "%s\n" "no" >&6; }
20086 fi
20087
20088
20089 if test "x$LINT" = "x"; then
20090 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20091 fi
20092 elif test "x$use_lint" = x"no" ; then
20093 if test "x$LINT" != "x"; then
20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20095 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20096 fi
20097 else
20098 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20099 fi
20100
20101 # User supplied flags override default flags
20102 if test "x$LINT_FLAGS" != "x"; then
20103 lint_options=$LINT_FLAGS
20104 fi
20105
20106 LINT_FLAGS=$lint_options
20107
20108 if test "x$LINT" != x; then
20109 LINT_TRUE=
20110 LINT_FALSE='#'
20111 else
20112 LINT_TRUE='#'
20113 LINT_FALSE=
20114 fi
20115
20116
20117
20118
20119 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc"
20120
20121 cat >confcache <<\_ACEOF
20122 # This file is a shell script that caches the results of configure
20123 # tests run on this system so they can be shared between configure
20124 # scripts and configure runs, see configure's option --config-cache.
20125 # It is not useful on other systems. If it contains results you don't
20126 # want to keep, you may remove or edit it.
20127 #
20128 # config.status only pays attention to the cache file if you give it
20129 # the --recheck option to rerun configure.
20130 #
20131 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20132 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20133 # following values.
20134
20135 _ACEOF
20136
20137 # The following way of writing the cache mishandles newlines in values,
20138 # but we know of no workaround that is simple, portable, and efficient.
20139 # So, we kill variables containing newlines.
20140 # Ultrix sh set writes to stderr and can't be redirected directly,
20141 # and sets the high bit in the cache file unless we assign to the vars.
20142 (
20143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20144 eval ac_val=\$$ac_var
20145 case $ac_val in #(
20146 *${as_nl}*)
20147 case $ac_var in #(
20148 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20149 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20150 esac
20151 case $ac_var in #(
20152 _ | IFS | as_nl) ;; #(
20153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20154 *) { eval $ac_var=; unset $ac_var;} ;;
20155 esac ;;
20156 esac
20157 done
20158
20159 (set) 2>&1 |
20160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20161 *${as_nl}ac_space=\ *)
20162 # 'set' does not quote correctly, so add quotes: double-quote
20163 # substitution turns \\\\ into \\, and sed turns \\ into \.
20164 sed -n \
20165 "s/'/'\\\\''/g;
20166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20167 ;; #(
20168 *)
20169 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20171 ;;
20172 esac |
20173 sort
20174 ) |
20175 sed '
20176 /^ac_cv_env_/b end
20177 t clear
20178 :clear
20179 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20180 t end
20181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20182 :end' >>confcache
20183 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20184 if test -w "$cache_file"; then
20185 if test "x$cache_file" != "x/dev/null"; then
20186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20187 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20188 if test ! -f "$cache_file" || test -h "$cache_file"; then
20189 cat confcache >"$cache_file"
20190 else
20191 case $cache_file in #(
20192 */* | ?:*)
20193 mv -f confcache "$cache_file"$$ &&
20194 mv -f "$cache_file"$$ "$cache_file" ;; #(
20195 *)
20196 mv -f confcache "$cache_file" ;;
20197 esac
20198 fi
20199 fi
20200 else
20201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20202 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20203 fi
20204 fi
20205 rm -f confcache
20206
20207 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20208 # Let make expand exec_prefix.
20209 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20210
20211 DEFS=-DHAVE_CONFIG_H
20212
20213 ac_libobjs=
20214 ac_ltlibobjs=
20215 U=
20216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20217 # 1. Remove the extension, and $U if already installed.
20218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20219 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20221 # will be set to the directory where LIBOBJS objects are built.
20222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20224 done
20225 LIBOBJS=$ac_libobjs
20226
20227 LTLIBOBJS=$ac_ltlibobjs
20228
20229
20230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20231 printf %s "checking that generated files are newer than configure... " >&6; }
20232 if test -n "$am_sleep_pid"; then
20233 # Hide warnings about reused PIDs.
20234 wait $am_sleep_pid 2>/dev/null
20235 fi
20236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20237 printf "%s\n" "done" >&6; }
20238 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20239 as_fn_error $? "conditional \"AMDEP\" was never defined.
20240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20241 fi
20242 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20243 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20245 fi
20246 if test -n "$EXEEXT"; then
20247 am__EXEEXT_TRUE=
20248 am__EXEEXT_FALSE='#'
20249 else
20250 am__EXEEXT_TRUE='#'
20251 am__EXEEXT_FALSE=
20252 fi
20253
20254 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20255 as_fn_error $? "conditional \"LINT\" was never defined.
20256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20257 fi
20258
20259 : "${CONFIG_STATUS=./config.status}"
20260 ac_write_fail=0
20261 ac_clean_files_save=$ac_clean_files
20262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20264 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20265 as_write_fail=0
20266 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20267 #! $SHELL
20268 # Generated by $as_me.
20269 # Run this file to recreate the current configuration.
20270 # Compiler output produced by configure, useful for debugging
20271 # configure, is in config.log if it exists.
20272
20273 debug=false
20274 ac_cs_recheck=false
20275 ac_cs_silent=false
20276
20277 SHELL=\${CONFIG_SHELL-$SHELL}
20278 export SHELL
20279 _ASEOF
20280 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20281 ## -------------------- ##
20282 ## M4sh Initialization. ##
20283 ## -------------------- ##
20284
20285 # Be more Bourne compatible
20286 DUALCASE=1; export DUALCASE # for MKS sh
20287 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20288 then :
20289 emulate sh
20290 NULLCMD=:
20291 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20292 # is contrary to our usage. Disable this feature.
20293 alias -g '${1+"$@"}'='"$@"'
20294 setopt NO_GLOB_SUBST
20295 else case e in #(
20296 e) case `(set -o) 2>/dev/null` in #(
20297 *posix*) :
20298 set -o posix ;; #(
20299 *) :
20300 ;;
20301 esac ;;
20302 esac
20303 fi
20304
20305
20306
20307 # Reset variables that may have inherited troublesome values from
20308 # the environment.
20309
20310 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20311 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20312 # side effect of setting IFS to empty, thus disabling word splitting.)
20313 # Quoting is to prevent editors from complaining about space-tab.
20314 as_nl='
20315 '
20316 export as_nl
20317 IFS=" "" $as_nl"
20318
20319 PS1='$ '
20320 PS2='> '
20321 PS4='+ '
20322
20323 # Ensure predictable behavior from utilities with locale-dependent output.
20324 LC_ALL=C
20325 export LC_ALL
20326 LANGUAGE=C
20327 export LANGUAGE
20328
20329 # We cannot yet rely on "unset" to work, but we need these variables
20330 # to be unset--not just set to an empty or harmless value--now, to
20331 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20332 # also avoids known problems related to "unset" and subshell syntax
20333 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20334 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20335 do eval test \${$as_var+y} \
20336 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20337 done
20338
20339 # Ensure that fds 0, 1, and 2 are open.
20340 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20341 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20342 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20343
20344 # The user is always right.
20345 if ${PATH_SEPARATOR+false} :; then
20346 PATH_SEPARATOR=:
20347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20348 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20349 PATH_SEPARATOR=';'
20350 }
20351 fi
20352
20353
20354 # Find who we are. Look in the path if we contain no directory separator.
20355 as_myself=
20356 case $0 in #((
20357 *[\\/]* ) as_myself=$0 ;;
20358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359 for as_dir in $PATH
20360 do
20361 IFS=$as_save_IFS
20362 case $as_dir in #(((
20363 '') as_dir=./ ;;
20364 */) ;;
20365 *) as_dir=$as_dir/ ;;
20366 esac
20367 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20368 done
20369 IFS=$as_save_IFS
20370
20371 ;;
20372 esac
20373 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20374 # in which case we are not to be found in the path.
20375 if test "x$as_myself" = x; then
20376 as_myself=$0
20377 fi
20378 if test ! -f "$as_myself"; then
20379 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20380 exit 1
20381 fi
20382
20383
20384
20385 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20386 # ----------------------------------------
20387 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20388 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20389 # script with STATUS, using 1 if that was 0.
20390 as_fn_error ()
20391 {
20392 as_status=$1; test $as_status -eq 0 && as_status=1
20393 if test "$4"; then
20394 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20396 fi
20397 printf "%s\n" "$as_me: error: $2" >&2
20398 as_fn_exit $as_status
20399 } # as_fn_error
20400
20401
20402 # as_fn_set_status STATUS
20403 # -----------------------
20404 # Set $? to STATUS, without forking.
20405 as_fn_set_status ()
20406 {
20407 return $1
20408 } # as_fn_set_status
20409
20410 # as_fn_exit STATUS
20411 # -----------------
20412 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20413 as_fn_exit ()
20414 {
20415 set +e
20416 as_fn_set_status $1
20417 exit $1
20418 } # as_fn_exit
20419
20420 # as_fn_unset VAR
20421 # ---------------
20422 # Portably unset VAR.
20423 as_fn_unset ()
20424 {
20425 { eval $1=; unset $1;}
20426 }
20427 as_unset=as_fn_unset
20428
20429 # as_fn_append VAR VALUE
20430 # ----------------------
20431 # Append the text in VALUE to the end of the definition contained in VAR. Take
20432 # advantage of any shell optimizations that allow amortized linear growth over
20433 # repeated appends, instead of the typical quadratic growth present in naive
20434 # implementations.
20435 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20436 then :
20437 eval 'as_fn_append ()
20438 {
20439 eval $1+=\$2
20440 }'
20441 else case e in #(
20442 e) as_fn_append ()
20443 {
20444 eval $1=\$$1\$2
20445 } ;;
20446 esac
20447 fi # as_fn_append
20448
20449 # as_fn_arith ARG...
20450 # ------------------
20451 # Perform arithmetic evaluation on the ARGs, and store the result in the
20452 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20453 # must be portable across $(()) and expr.
20454 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20455 then :
20456 eval 'as_fn_arith ()
20457 {
20458 as_val=$(( $* ))
20459 }'
20460 else case e in #(
20461 e) as_fn_arith ()
20462 {
20463 as_val=`expr "$@" || test $? -eq 1`
20464 } ;;
20465 esac
20466 fi # as_fn_arith
20467
20468
20469 if expr a : '\(a\)' >/dev/null 2>&1 &&
20470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20471 as_expr=expr
20472 else
20473 as_expr=false
20474 fi
20475
20476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20477 as_basename=basename
20478 else
20479 as_basename=false
20480 fi
20481
20482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20483 as_dirname=dirname
20484 else
20485 as_dirname=false
20486 fi
20487
20488 as_me=`$as_basename -- "$0" ||
20489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20490 X"$0" : 'X\(//\)$' \| \
20491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20492 printf "%s\n" X/"$0" |
20493 sed '/^.*\/\([^/][^/]*\)\/*$/{
20494 s//\1/
20495 q
20496 }
20497 /^X\/\(\/\/\)$/{
20498 s//\1/
20499 q
20500 }
20501 /^X\/\(\/\).*/{
20502 s//\1/
20503 q
20504 }
20505 s/.*/./; q'`
20506
20507 # Avoid depending upon Character Ranges.
20508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20511 as_cr_digits='0123456789'
20512 as_cr_alnum=$as_cr_Letters$as_cr_digits
20513
20514
20515 # Determine whether it's possible to make 'echo' print without a newline.
20516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20517 # for compatibility with existing Makefiles.
20518 ECHO_C= ECHO_N= ECHO_T=
20519 case `echo -n x` in #(((((
20520 -n*)
20521 case `echo 'xy\c'` in
20522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20523 xy) ECHO_C='\c';;
20524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20525 ECHO_T=' ';;
20526 esac;;
20527 *)
20528 ECHO_N='-n';;
20529 esac
20530
20531 # For backward compatibility with old third-party macros, we provide
20532 # the shell variables $as_echo and $as_echo_n. New code should use
20533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20534 as_echo='printf %s\n'
20535 as_echo_n='printf %s'
20536
20537 rm -f conf$$ conf$$.exe conf$$.file
20538 if test -d conf$$.dir; then
20539 rm -f conf$$.dir/conf$$.file
20540 else
20541 rm -f conf$$.dir
20542 mkdir conf$$.dir 2>/dev/null
20543 fi
20544 if (echo >conf$$.file) 2>/dev/null; then
20545 if ln -s conf$$.file conf$$ 2>/dev/null; then
20546 as_ln_s='ln -s'
20547 # ... but there are two gotchas:
20548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20550 # In both cases, we have to default to 'cp -pR'.
20551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20552 as_ln_s='cp -pR'
20553 elif ln conf$$.file conf$$ 2>/dev/null; then
20554 as_ln_s=ln
20555 else
20556 as_ln_s='cp -pR'
20557 fi
20558 else
20559 as_ln_s='cp -pR'
20560 fi
20561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20562 rmdir conf$$.dir 2>/dev/null
20563
20564
20565 # as_fn_mkdir_p
20566 # -------------
20567 # Create "$as_dir" as a directory, including parents if necessary.
20568 as_fn_mkdir_p ()
20569 {
20570
20571 case $as_dir in #(
20572 -*) as_dir=./$as_dir;;
20573 esac
20574 test -d "$as_dir" || eval $as_mkdir_p || {
20575 as_dirs=
20576 while :; do
20577 case $as_dir in #(
20578 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20579 *) as_qdir=$as_dir;;
20580 esac
20581 as_dirs="'$as_qdir' $as_dirs"
20582 as_dir=`$as_dirname -- "$as_dir" ||
20583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20584 X"$as_dir" : 'X\(//\)[^/]' \| \
20585 X"$as_dir" : 'X\(//\)$' \| \
20586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20587 printf "%s\n" X"$as_dir" |
20588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20589 s//\1/
20590 q
20591 }
20592 /^X\(\/\/\)[^/].*/{
20593 s//\1/
20594 q
20595 }
20596 /^X\(\/\/\)$/{
20597 s//\1/
20598 q
20599 }
20600 /^X\(\/\).*/{
20601 s//\1/
20602 q
20603 }
20604 s/.*/./; q'`
20605 test -d "$as_dir" && break
20606 done
20607 test -z "$as_dirs" || eval "mkdir $as_dirs"
20608 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20609
20610
20611 } # as_fn_mkdir_p
20612 if mkdir -p . 2>/dev/null; then
20613 as_mkdir_p='mkdir -p "$as_dir"'
20614 else
20615 test -d ./-p && rmdir ./-p
20616 as_mkdir_p=false
20617 fi
20618
20619
20620 # as_fn_executable_p FILE
20621 # -----------------------
20622 # Test if FILE is an executable regular file.
20623 as_fn_executable_p ()
20624 {
20625 test -f "$1" && test -x "$1"
20626 } # as_fn_executable_p
20627 as_test_x='test -x'
20628 as_executable_p=as_fn_executable_p
20629
20630 # Sed expression to map a string onto a valid CPP name.
20631 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20632 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20633
20634 # Sed expression to map a string onto a valid variable name.
20635 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20636 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20637
20638
20639 exec 6>&1
20640 ## ----------------------------------- ##
20641 ## Main body of $CONFIG_STATUS script. ##
20642 ## ----------------------------------- ##
20643 _ASEOF
20644 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20645
20646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20647 # Save the log message, to keep $0 and so on meaningful, and to
20648 # report actual input values of CONFIG_FILES etc. instead of their
20649 # values after options handling.
20650 ac_log="
20651 This file was extended by libXcursor $as_me 1.2.2, which was
20652 generated by GNU Autoconf 2.72. Invocation command line was
20653
20654 CONFIG_FILES = $CONFIG_FILES
20655 CONFIG_HEADERS = $CONFIG_HEADERS
20656 CONFIG_LINKS = $CONFIG_LINKS
20657 CONFIG_COMMANDS = $CONFIG_COMMANDS
20658 $ $0 $@
20659
20660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20661 "
20662
20663 _ACEOF
20664
20665 case $ac_config_files in *"
20666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20667 esac
20668
20669 case $ac_config_headers in *"
20670 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20671 esac
20672
20673
20674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675 # Files that config.status was made for.
20676 config_files="$ac_config_files"
20677 config_headers="$ac_config_headers"
20678 config_commands="$ac_config_commands"
20679
20680 _ACEOF
20681
20682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20683 ac_cs_usage="\
20684 '$as_me' instantiates files and other configuration actions
20685 from templates according to the current configuration. Unless the files
20686 and actions are specified as TAGs, all are instantiated by default.
20687
20688 Usage: $0 [OPTION]... [TAG]...
20689
20690 -h, --help print this help, then exit
20691 -V, --version print version number and configuration settings, then exit
20692 --config print configuration, then exit
20693 -q, --quiet, --silent
20694 do not print progress messages
20695 -d, --debug don't remove temporary files
20696 --recheck update $as_me by reconfiguring in the same conditions
20697 --file=FILE[:TEMPLATE]
20698 instantiate the configuration file FILE
20699 --header=FILE[:TEMPLATE]
20700 instantiate the configuration header FILE
20701
20702 Configuration files:
20703 $config_files
20704
20705 Configuration headers:
20706 $config_headers
20707
20708 Configuration commands:
20709 $config_commands
20710
20711 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>."
20712
20713 _ACEOF
20714 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20715 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717 ac_cs_config='$ac_cs_config_escaped'
20718 ac_cs_version="\\
20719 libXcursor config.status 1.2.2
20720 configured by $0, generated by GNU Autoconf 2.72,
20721 with options \\"\$ac_cs_config\\"
20722
20723 Copyright (C) 2023 Free Software Foundation, Inc.
20724 This config.status script is free software; the Free Software Foundation
20725 gives unlimited permission to copy, distribute and modify it."
20726
20727 ac_pwd='$ac_pwd'
20728 srcdir='$srcdir'
20729 INSTALL='$INSTALL'
20730 MKDIR_P='$MKDIR_P'
20731 AWK='$AWK'
20732 test -n "\$AWK" || AWK=awk
20733 _ACEOF
20734
20735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20736 # The default lists apply if the user does not specify any file.
20737 ac_need_defaults=:
20738 while test $# != 0
20739 do
20740 case $1 in
20741 --*=?*)
20742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20744 ac_shift=:
20745 ;;
20746 --*=)
20747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20748 ac_optarg=
20749 ac_shift=:
20750 ;;
20751 *)
20752 ac_option=$1
20753 ac_optarg=$2
20754 ac_shift=shift
20755 ;;
20756 esac
20757
20758 case $ac_option in
20759 # Handling of the options.
20760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20761 ac_cs_recheck=: ;;
20762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20763 printf "%s\n" "$ac_cs_version"; exit ;;
20764 --config | --confi | --conf | --con | --co | --c )
20765 printf "%s\n" "$ac_cs_config"; exit ;;
20766 --debug | --debu | --deb | --de | --d | -d )
20767 debug=: ;;
20768 --file | --fil | --fi | --f )
20769 $ac_shift
20770 case $ac_optarg in
20771 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20772 '') as_fn_error $? "missing file argument" ;;
20773 esac
20774 as_fn_append CONFIG_FILES " '$ac_optarg'"
20775 ac_need_defaults=false;;
20776 --header | --heade | --head | --hea )
20777 $ac_shift
20778 case $ac_optarg in
20779 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20780 esac
20781 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20782 ac_need_defaults=false;;
20783 --he | --h)
20784 # Conflict between --help and --header
20785 as_fn_error $? "ambiguous option: '$1'
20786 Try '$0 --help' for more information.";;
20787 --help | --hel | -h )
20788 printf "%s\n" "$ac_cs_usage"; exit ;;
20789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20791 ac_cs_silent=: ;;
20792
20793 # This is an error.
20794 -*) as_fn_error $? "unrecognized option: '$1'
20795 Try '$0 --help' for more information." ;;
20796
20797 *) as_fn_append ac_config_targets " $1"
20798 ac_need_defaults=false ;;
20799
20800 esac
20801 shift
20802 done
20803
20804 ac_configure_extra_args=
20805
20806 if $ac_cs_silent; then
20807 exec 6>/dev/null
20808 ac_configure_extra_args="$ac_configure_extra_args --silent"
20809 fi
20810
20811 _ACEOF
20812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20813 if \$ac_cs_recheck; then
20814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20815 shift
20816 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20817 CONFIG_SHELL='$SHELL'
20818 export CONFIG_SHELL
20819 exec "\$@"
20820 fi
20821
20822 _ACEOF
20823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20824 exec 5>>config.log
20825 {
20826 echo
20827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20828 ## Running $as_me. ##
20829 _ASBOX
20830 printf "%s\n" "$ac_log"
20831 } >&5
20832
20833 _ACEOF
20834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20835 #
20836 # INIT-COMMANDS
20837 #
20838 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20839
20840
20841 # The HP-UX ksh and POSIX shell print the target directory to stdout
20842 # if CDPATH is set.
20843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20844
20845 sed_quote_subst='$sed_quote_subst'
20846 double_quote_subst='$double_quote_subst'
20847 delay_variable_subst='$delay_variable_subst'
20848 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20849 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20850 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20851 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20852 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20853 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20854 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20855 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20856 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20857 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20858 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20859 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20860 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20861 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20862 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20863 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20864 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20865 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20866 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20867 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20868 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20869 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20870 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20871 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20872 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20873 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20874 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20875 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20876 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20877 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20878 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20879 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20880 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20881 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20882 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20883 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20884 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20885 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20886 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20887 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20888 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20889 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20890 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20891 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20892 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20893 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20894 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20895 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20896 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20897 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20898 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20899 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20900 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20901 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20902 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20903 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20904 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20905 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20906 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20907 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20908 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"`'
20909 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20910 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20911 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20912 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20913 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20914 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20915 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20916 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20917 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20918 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20919 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20920 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20921 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20922 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20923 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20924 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20925 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20926 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20927 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20928 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20929 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20930 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20931 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20932 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20933 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20934 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20935 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20936 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20937 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20938 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20939 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20940 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20941 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20942 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20943 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20944 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20945 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20946 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20947 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20948 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20949 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20950 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20951 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20952 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20953 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20954 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20955 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20956 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20957 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20958 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20959 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20960 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20961 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20962 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20963 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20964 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20965 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20966 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20967 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20968 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20969 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20970 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20971 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20972 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20973 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20974 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20975 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20976 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20977 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20978 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20979 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20980 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20981 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20982 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20983 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20984 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20985
20986 LTCC='$LTCC'
20987 LTCFLAGS='$LTCFLAGS'
20988 compiler='$compiler_DEFAULT'
20989
20990 # A function that is used when there is no print builtin or printf.
20991 func_fallback_echo ()
20992 {
20993 eval 'cat <<_LTECHO_EOF
20994 \$1
20995 _LTECHO_EOF'
20996 }
20997
20998 # Quote evaled strings.
20999 for var in SHELL \
21000 ECHO \
21001 PATH_SEPARATOR \
21002 SED \
21003 GREP \
21004 EGREP \
21005 FGREP \
21006 LD \
21007 NM \
21008 LN_S \
21009 lt_SP2NL \
21010 lt_NL2SP \
21011 reload_flag \
21012 FILECMD \
21013 OBJDUMP \
21014 deplibs_check_method \
21015 file_magic_cmd \
21016 file_magic_glob \
21017 want_nocaseglob \
21018 DLLTOOL \
21019 sharedlib_from_linklib_cmd \
21020 AR \
21021 archiver_list_spec \
21022 STRIP \
21023 RANLIB \
21024 CC \
21025 CFLAGS \
21026 compiler \
21027 lt_cv_sys_global_symbol_pipe \
21028 lt_cv_sys_global_symbol_to_cdecl \
21029 lt_cv_sys_global_symbol_to_import \
21030 lt_cv_sys_global_symbol_to_c_name_address \
21031 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21032 lt_cv_nm_interface \
21033 nm_file_list_spec \
21034 lt_cv_truncate_bin \
21035 lt_prog_compiler_no_builtin_flag \
21036 lt_prog_compiler_pic \
21037 lt_prog_compiler_wl \
21038 lt_prog_compiler_static \
21039 lt_cv_prog_compiler_c_o \
21040 need_locks \
21041 MANIFEST_TOOL \
21042 DSYMUTIL \
21043 NMEDIT \
21044 LIPO \
21045 OTOOL \
21046 OTOOL64 \
21047 shrext_cmds \
21048 export_dynamic_flag_spec \
21049 whole_archive_flag_spec \
21050 compiler_needs_object \
21051 with_gnu_ld \
21052 allow_undefined_flag \
21053 no_undefined_flag \
21054 hardcode_libdir_flag_spec \
21055 hardcode_libdir_separator \
21056 exclude_expsyms \
21057 include_expsyms \
21058 file_list_spec \
21059 variables_saved_for_relink \
21060 libname_spec \
21061 library_names_spec \
21062 soname_spec \
21063 install_override_mode \
21064 finish_eval \
21065 old_striplib \
21066 striplib; do
21067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21068 *[\\\\\\\`\\"\\\$]*)
21069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21070 ;;
21071 *)
21072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21073 ;;
21074 esac
21075 done
21076
21077 # Double-quote double-evaled strings.
21078 for var in reload_cmds \
21079 old_postinstall_cmds \
21080 old_postuninstall_cmds \
21081 old_archive_cmds \
21082 extract_expsyms_cmds \
21083 old_archive_from_new_cmds \
21084 old_archive_from_expsyms_cmds \
21085 archive_cmds \
21086 archive_expsym_cmds \
21087 module_cmds \
21088 module_expsym_cmds \
21089 export_symbols_cmds \
21090 prelink_cmds \
21091 postlink_cmds \
21092 postinstall_cmds \
21093 postuninstall_cmds \
21094 finish_cmds \
21095 sys_lib_search_path_spec \
21096 configure_time_dlsearch_path \
21097 configure_time_lt_sys_library_path; do
21098 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21099 *[\\\\\\\`\\"\\\$]*)
21100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21101 ;;
21102 *)
21103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21104 ;;
21105 esac
21106 done
21107
21108 ac_aux_dir='$ac_aux_dir'
21109
21110 # See if we are running on zsh, and set the options that allow our
21111 # commands through without removal of \ escapes INIT.
21112 if test -n "\${ZSH_VERSION+set}"; then
21113 setopt NO_GLOB_SUBST
21114 fi
21115
21116
21117 PACKAGE='$PACKAGE'
21118 VERSION='$VERSION'
21119 RM='$RM'
21120 ofile='$ofile'
21121
21122
21123
21124
21125 _ACEOF
21126
21127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21128
21129 # Handling of arguments.
21130 for ac_config_target in $ac_config_targets
21131 do
21132 case $ac_config_target in
21133 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21134 "include/X11/Xcursor/Xcursor.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xcursor/Xcursor.h" ;;
21135 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21136 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21137 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21138 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21139 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21140 "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;;
21141
21142 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21143 esac
21144 done
21145
21146
21147 # If the user did not use the arguments to specify the items to instantiate,
21148 # then the envvar interface is used. Set only those that are not.
21149 # We use the long form for the default assignment because of an extremely
21150 # bizarre bug on SunOS 4.1.3.
21151 if $ac_need_defaults; then
21152 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21153 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21154 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21155 fi
21156
21157 # Have a temporary directory for convenience. Make it in the build tree
21158 # simply because there is no reason against having it here, and in addition,
21159 # creating and moving files from /tmp can sometimes cause problems.
21160 # Hook for its removal unless debugging.
21161 # Note that there is a small window in which the directory will not be cleaned:
21162 # after its creation but before its name has been assigned to '$tmp'.
21163 $debug ||
21164 {
21165 tmp= ac_tmp=
21166 trap 'exit_status=$?
21167 : "${ac_tmp:=$tmp}"
21168 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21169 ' 0
21170 trap 'as_fn_exit 1' 1 2 13 15
21171 }
21172 # Create a (secure) tmp directory for tmp files.
21173
21174 {
21175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21176 test -d "$tmp"
21177 } ||
21178 {
21179 tmp=./conf$$-$RANDOM
21180 (umask 077 && mkdir "$tmp")
21181 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21182 ac_tmp=$tmp
21183
21184 # Set up the scripts for CONFIG_FILES section.
21185 # No need to generate them if there are no CONFIG_FILES.
21186 # This happens for instance with './config.status config.h'.
21187 if test -n "$CONFIG_FILES"; then
21188
21189
21190 ac_cr=`echo X | tr X '\015'`
21191 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21192 # But we know of no other shell where ac_cr would be empty at this
21193 # point, so we can use a bashism as a fallback.
21194 if test "x$ac_cr" = x; then
21195 eval ac_cr=\$\'\\r\'
21196 fi
21197 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21198 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21199 ac_cs_awk_cr='\\r'
21200 else
21201 ac_cs_awk_cr=$ac_cr
21202 fi
21203
21204 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21205 _ACEOF
21206
21207
21208 {
21209 echo "cat >conf$$subs.awk <<_ACEOF" &&
21210 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21211 echo "_ACEOF"
21212 } >conf$$subs.sh ||
21213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21214 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21215 ac_delim='%!_!# '
21216 for ac_last_try in false false false false false :; do
21217 . ./conf$$subs.sh ||
21218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21219
21220 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21221 if test $ac_delim_n = $ac_delim_num; then
21222 break
21223 elif $ac_last_try; then
21224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21225 else
21226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21227 fi
21228 done
21229 rm -f conf$$subs.sh
21230
21231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21232 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21233 _ACEOF
21234 sed -n '
21235 h
21236 s/^/S["/; s/!.*/"]=/
21237 p
21238 g
21239 s/^[^!]*!//
21240 :repl
21241 t repl
21242 s/'"$ac_delim"'$//
21243 t delim
21244 :nl
21245 h
21246 s/\(.\{148\}\)..*/\1/
21247 t more1
21248 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21249 p
21250 n
21251 b repl
21252 :more1
21253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21254 p
21255 g
21256 s/.\{148\}//
21257 t nl
21258 :delim
21259 h
21260 s/\(.\{148\}\)..*/\1/
21261 t more2
21262 s/["\\]/\\&/g; s/^/"/; s/$/"/
21263 p
21264 b
21265 :more2
21266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21267 p
21268 g
21269 s/.\{148\}//
21270 t delim
21271 ' <conf$$subs.awk | sed '
21272 /^[^""]/{
21273 N
21274 s/\n//
21275 }
21276 ' >>$CONFIG_STATUS || ac_write_fail=1
21277 rm -f conf$$subs.awk
21278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279 _ACAWK
21280 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21281 for (key in S) S_is_set[key] = 1
21282 FS = ""
21283
21284 }
21285 {
21286 line = $ 0
21287 nfields = split(line, field, "@")
21288 substed = 0
21289 len = length(field[1])
21290 for (i = 2; i < nfields; i++) {
21291 key = field[i]
21292 keylen = length(key)
21293 if (S_is_set[key]) {
21294 value = S[key]
21295 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21296 len += length(value) + length(field[++i])
21297 substed = 1
21298 } else
21299 len += 1 + keylen
21300 }
21301
21302 print line
21303 }
21304
21305 _ACAWK
21306 _ACEOF
21307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21308 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21309 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21310 else
21311 cat
21312 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21313 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21314 _ACEOF
21315
21316 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21317 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21318 # trailing colons and then remove the whole line if VPATH becomes empty
21319 # (actually we leave an empty line to preserve line numbers).
21320 if test "x$srcdir" = x.; then
21321 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21322 h
21323 s///
21324 s/^/:/
21325 s/[ ]*$/:/
21326 s/:\$(srcdir):/:/g
21327 s/:\${srcdir}:/:/g
21328 s/:@srcdir@:/:/g
21329 s/^:*//
21330 s/:*$//
21331 x
21332 s/\(=[ ]*\).*/\1/
21333 G
21334 s/\n//
21335 s/^[^=]*=[ ]*$//
21336 }'
21337 fi
21338
21339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21340 fi # test -n "$CONFIG_FILES"
21341
21342 # Set up the scripts for CONFIG_HEADERS section.
21343 # No need to generate them if there are no CONFIG_HEADERS.
21344 # This happens for instance with './config.status Makefile'.
21345 if test -n "$CONFIG_HEADERS"; then
21346 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21347 BEGIN {
21348 _ACEOF
21349
21350 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21351 # here-document in config.status, that substitutes the proper values into
21352 # config.h.in to produce config.h.
21353
21354 # Create a delimiter string that does not exist in confdefs.h, to ease
21355 # handling of long lines.
21356 ac_delim='%!_!# '
21357 for ac_last_try in false false :; do
21358 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21359 if test -z "$ac_tt"; then
21360 break
21361 elif $ac_last_try; then
21362 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21363 else
21364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21365 fi
21366 done
21367
21368 # For the awk script, D is an array of macro values keyed by name,
21369 # likewise P contains macro parameters if any. Preserve backslash
21370 # newline sequences.
21371
21372 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21373 sed -n '
21374 s/.\{148\}/&'"$ac_delim"'/g
21375 t rset
21376 :rset
21377 s/^[ ]*#[ ]*define[ ][ ]*/ /
21378 t def
21379 d
21380 :def
21381 s/\\$//
21382 t bsnl
21383 s/["\\]/\\&/g
21384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21385 D["\1"]=" \3"/p
21386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21387 d
21388 :bsnl
21389 s/["\\]/\\&/g
21390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21391 D["\1"]=" \3\\\\\\n"\\/p
21392 t cont
21393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21394 t cont
21395 d
21396 :cont
21397 n
21398 s/.\{148\}/&'"$ac_delim"'/g
21399 t clear
21400 :clear
21401 s/\\$//
21402 t bsnlc
21403 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21404 d
21405 :bsnlc
21406 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21407 b cont
21408 ' <confdefs.h | sed '
21409 s/'"$ac_delim"'/"\\\
21410 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21411
21412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21413 for (key in D) D_is_set[key] = 1
21414 FS = ""
21415 }
21416 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21417 line = \$ 0
21418 split(line, arg, " ")
21419 if (arg[1] == "#") {
21420 defundef = arg[2]
21421 mac1 = arg[3]
21422 } else {
21423 defundef = substr(arg[1], 2)
21424 mac1 = arg[2]
21425 }
21426 split(mac1, mac2, "(") #)
21427 macro = mac2[1]
21428 prefix = substr(line, 1, index(line, defundef) - 1)
21429 if (D_is_set[macro]) {
21430 # Preserve the white space surrounding the "#".
21431 print prefix "define", macro P[macro] D[macro]
21432 next
21433 } else {
21434 # Replace #undef with comments. This is necessary, for example,
21435 # in the case of _POSIX_SOURCE, which is predefined and required
21436 # on some systems where configure will not decide to define it.
21437 if (defundef == "undef") {
21438 print "/*", prefix defundef, macro, "*/"
21439 next
21440 }
21441 }
21442 }
21443 { print }
21444 _ACAWK
21445 _ACEOF
21446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21448 fi # test -n "$CONFIG_HEADERS"
21449
21450
21451 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21452 shift
21453 for ac_tag
21454 do
21455 case $ac_tag in
21456 :[FHLC]) ac_mode=$ac_tag; continue;;
21457 esac
21458 case $ac_mode$ac_tag in
21459 :[FHL]*:*);;
21460 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21461 :[FH]-) ac_tag=-:-;;
21462 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21463 esac
21464 ac_save_IFS=$IFS
21465 IFS=:
21466 set x $ac_tag
21467 IFS=$ac_save_IFS
21468 shift
21469 ac_file=$1
21470 shift
21471
21472 case $ac_mode in
21473 :L) ac_source=$1;;
21474 :[FH])
21475 ac_file_inputs=
21476 for ac_f
21477 do
21478 case $ac_f in
21479 -) ac_f="$ac_tmp/stdin";;
21480 *) # Look for the file first in the build tree, then in the source tree
21481 # (if the path is not absolute). The absolute path cannot be DOS-style,
21482 # because $ac_f cannot contain ':'.
21483 test -f "$ac_f" ||
21484 case $ac_f in
21485 [\\/$]*) false;;
21486 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21487 esac ||
21488 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21489 esac
21490 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21491 as_fn_append ac_file_inputs " '$ac_f'"
21492 done
21493
21494 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21495 # use $as_me), people would be surprised to read:
21496 # /* config.h. Generated by config.status. */
21497 configure_input='Generated from '`
21498 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21499 `' by configure.'
21500 if test x"$ac_file" != x-; then
21501 configure_input="$ac_file. $configure_input"
21502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21503 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21504 fi
21505 # Neutralize special characters interpreted by sed in replacement strings.
21506 case $configure_input in #(
21507 *\&* | *\|* | *\\* )
21508 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21510 *) ac_sed_conf_input=$configure_input;;
21511 esac
21512
21513 case $ac_tag in
21514 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21516 esac
21517 ;;
21518 esac
21519
21520 ac_dir=`$as_dirname -- "$ac_file" ||
21521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522 X"$ac_file" : 'X\(//\)[^/]' \| \
21523 X"$ac_file" : 'X\(//\)$' \| \
21524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21525 printf "%s\n" X"$ac_file" |
21526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527 s//\1/
21528 q
21529 }
21530 /^X\(\/\/\)[^/].*/{
21531 s//\1/
21532 q
21533 }
21534 /^X\(\/\/\)$/{
21535 s//\1/
21536 q
21537 }
21538 /^X\(\/\).*/{
21539 s//\1/
21540 q
21541 }
21542 s/.*/./; q'`
21543 as_dir="$ac_dir"; as_fn_mkdir_p
21544 ac_builddir=.
21545
21546 case "$ac_dir" in
21547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21548 *)
21549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21550 # A ".." for each directory in $ac_dir_suffix.
21551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21552 case $ac_top_builddir_sub in
21553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21555 esac ;;
21556 esac
21557 ac_abs_top_builddir=$ac_pwd
21558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21559 # for backward compatibility:
21560 ac_top_builddir=$ac_top_build_prefix
21561
21562 case $srcdir in
21563 .) # We are building in place.
21564 ac_srcdir=.
21565 ac_top_srcdir=$ac_top_builddir_sub
21566 ac_abs_top_srcdir=$ac_pwd ;;
21567 [\\/]* | ?:[\\/]* ) # Absolute name.
21568 ac_srcdir=$srcdir$ac_dir_suffix;
21569 ac_top_srcdir=$srcdir
21570 ac_abs_top_srcdir=$srcdir ;;
21571 *) # Relative name.
21572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21573 ac_top_srcdir=$ac_top_build_prefix$srcdir
21574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21575 esac
21576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21577
21578
21579 case $ac_mode in
21580 :F)
21581 #
21582 # CONFIG_FILE
21583 #
21584
21585 case $INSTALL in
21586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21588 esac
21589 ac_MKDIR_P=$MKDIR_P
21590 case $MKDIR_P in
21591 [\\/$]* | ?:[\\/]* ) ;;
21592 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21593 esac
21594 _ACEOF
21595
21596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597 # If the template does not know about datarootdir, expand it.
21598 # FIXME: This hack should be removed a few years after 2.60.
21599 ac_datarootdir_hack=; ac_datarootdir_seen=
21600 ac_sed_dataroot='
21601 /datarootdir/ {
21602 p
21603 q
21604 }
21605 /@datadir@/p
21606 /@docdir@/p
21607 /@infodir@/p
21608 /@localedir@/p
21609 /@mandir@/p'
21610 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21611 *datarootdir*) ac_datarootdir_seen=yes;;
21612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21614 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21615 _ACEOF
21616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21617 ac_datarootdir_hack='
21618 s&@datadir@&$datadir&g
21619 s&@docdir@&$docdir&g
21620 s&@infodir@&$infodir&g
21621 s&@localedir@&$localedir&g
21622 s&@mandir@&$mandir&g
21623 s&\\\${datarootdir}&$datarootdir&g' ;;
21624 esac
21625 _ACEOF
21626
21627 # Neutralize VPATH when '$srcdir' = '.'.
21628 # Shell code in configure.ac might set extrasub.
21629 # FIXME: do we really want to maintain this feature?
21630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21631 ac_sed_extra="$ac_vpsub
21632 $extrasub
21633 _ACEOF
21634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21635 :t
21636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21637 s|@configure_input@|$ac_sed_conf_input|;t t
21638 s&@top_builddir@&$ac_top_builddir_sub&;t t
21639 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21640 s&@srcdir@&$ac_srcdir&;t t
21641 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21642 s&@top_srcdir@&$ac_top_srcdir&;t t
21643 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21644 s&@builddir@&$ac_builddir&;t t
21645 s&@abs_builddir@&$ac_abs_builddir&;t t
21646 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21647 s&@INSTALL@&$ac_INSTALL&;t t
21648 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21649 $ac_datarootdir_hack
21650 "
21651 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21652 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21653
21654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21655 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21657 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21659 which seems to be undefined. Please make sure it is defined" >&5
21660 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21661 which seems to be undefined. Please make sure it is defined" >&2;}
21662
21663 rm -f "$ac_tmp/stdin"
21664 case $ac_file in
21665 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21666 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21667 esac \
21668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21669 ;;
21670 :H)
21671 #
21672 # CONFIG_HEADER
21673 #
21674 if test x"$ac_file" != x-; then
21675 {
21676 printf "%s\n" "/* $configure_input */" >&1 \
21677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21678 } >"$ac_tmp/config.h" \
21679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21680 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21682 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21683 else
21684 rm -f "$ac_file"
21685 mv "$ac_tmp/config.h" "$ac_file" \
21686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21687 fi
21688 else
21689 printf "%s\n" "/* $configure_input */" >&1 \
21690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21691 || as_fn_error $? "could not create -" "$LINENO" 5
21692 fi
21693 # Compute "$ac_file"'s index in $config_headers.
21694 _am_arg="$ac_file"
21695 _am_stamp_count=1
21696 for _am_header in $config_headers :; do
21697 case $_am_header in
21698 $_am_arg | $_am_arg:* )
21699 break ;;
21700 * )
21701 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21702 esac
21703 done
21704 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21705 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21706 X"$_am_arg" : 'X\(//\)[^/]' \| \
21707 X"$_am_arg" : 'X\(//\)$' \| \
21708 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21709 printf "%s\n" X"$_am_arg" |
21710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21711 s//\1/
21712 q
21713 }
21714 /^X\(\/\/\)[^/].*/{
21715 s//\1/
21716 q
21717 }
21718 /^X\(\/\/\)$/{
21719 s//\1/
21720 q
21721 }
21722 /^X\(\/\).*/{
21723 s//\1/
21724 q
21725 }
21726 s/.*/./; q'`/stamp-h$_am_stamp_count
21727 ;;
21728
21729 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21730 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21731 ;;
21732 esac
21733
21734
21735 case $ac_file$ac_mode in
21736 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21737 # Older Autoconf quotes --file arguments for eval, but not when files
21738 # are listed without --file. Let's play safe and only enable the eval
21739 # if we detect the quoting.
21740 # TODO: see whether this extra hack can be removed once we start
21741 # requiring Autoconf 2.70 or later.
21742 case $CONFIG_FILES in #(
21743 *\'*) :
21744 eval set x "$CONFIG_FILES" ;; #(
21745 *) :
21746 set x $CONFIG_FILES ;; #(
21747 *) :
21748 ;;
21749 esac
21750 shift
21751 # Used to flag and report bootstrapping failures.
21752 am_rc=0
21753 for am_mf
21754 do
21755 # Strip MF so we end up with the name of the file.
21756 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21757 # Check whether this is an Automake generated Makefile which includes
21758 # dependency-tracking related rules and includes.
21759 # Grep'ing the whole file directly is not great: AIX grep has a line
21760 # limit of 2048, but all sed's we know have understand at least 4000.
21761 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21762 || continue
21763 am_dirpart=`$as_dirname -- "$am_mf" ||
21764 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21765 X"$am_mf" : 'X\(//\)[^/]' \| \
21766 X"$am_mf" : 'X\(//\)$' \| \
21767 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21768 printf "%s\n" X"$am_mf" |
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21770 s//\1/
21771 q
21772 }
21773 /^X\(\/\/\)[^/].*/{
21774 s//\1/
21775 q
21776 }
21777 /^X\(\/\/\)$/{
21778 s//\1/
21779 q
21780 }
21781 /^X\(\/\).*/{
21782 s//\1/
21783 q
21784 }
21785 s/.*/./; q'`
21786 am_filepart=`$as_basename -- "$am_mf" ||
21787 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21788 X"$am_mf" : 'X\(//\)$' \| \
21789 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21790 printf "%s\n" X/"$am_mf" |
21791 sed '/^.*\/\([^/][^/]*\)\/*$/{
21792 s//\1/
21793 q
21794 }
21795 /^X\/\(\/\/\)$/{
21796 s//\1/
21797 q
21798 }
21799 /^X\/\(\/\).*/{
21800 s//\1/
21801 q
21802 }
21803 s/.*/./; q'`
21804 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21805 && sed -e '/# am--include-marker/d' "$am_filepart" \
21806 | $MAKE -f - am--depfiles" >&5
21807 (cd "$am_dirpart" \
21808 && sed -e '/# am--include-marker/d' "$am_filepart" \
21809 | $MAKE -f - am--depfiles) >&5 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } || am_rc=$?
21813 done
21814 if test $am_rc -ne 0; then
21815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21816 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21817 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21818 for automatic dependency tracking. If GNU make was not used, consider
21819 re-running the configure script with MAKE=\"gmake\" (or whatever is
21820 necessary). You can also try re-running configure with the
21821 '--disable-dependency-tracking' option to at least be able to build
21822 the package (albeit without support for automatic dependency tracking).
21823 See 'config.log' for more details" "$LINENO" 5; }
21824 fi
21825 { am_dirpart=; unset am_dirpart;}
21826 { am_filepart=; unset am_filepart;}
21827 { am_mf=; unset am_mf;}
21828 { am_rc=; unset am_rc;}
21829 rm -f conftest-deps.mk
21830 }
21831 ;;
21832 "libtool":C)
21833
21834 # See if we are running on zsh, and set the options that allow our
21835 # commands through without removal of \ escapes.
21836 if test -n "${ZSH_VERSION+set}"; then
21837 setopt NO_GLOB_SUBST
21838 fi
21839
21840 cfgfile=${ofile}T
21841 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21842 $RM "$cfgfile"
21843
21844 cat <<_LT_EOF >> "$cfgfile"
21845 #! $SHELL
21846 # Generated automatically by $as_me ($PACKAGE) $VERSION
21847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21848 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21849
21850 # Provide generalized library-building support services.
21851 # Written by Gordon Matzigkeit, 1996
21852
21853 # Copyright (C) 2014 Free Software Foundation, Inc.
21854 # This is free software; see the source for copying conditions. There is NO
21855 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21856
21857 # GNU Libtool is free software; you can redistribute it and/or modify
21858 # it under the terms of the GNU General Public License as published by
21859 # the Free Software Foundation; either version 2 of of the License, or
21860 # (at your option) any later version.
21861 #
21862 # As a special exception to the GNU General Public License, if you
21863 # distribute this file as part of a program or library that is built
21864 # using GNU Libtool, you may include this file under the same
21865 # distribution terms that you use for the rest of that program.
21866 #
21867 # GNU Libtool is distributed in the hope that it will be useful, but
21868 # WITHOUT ANY WARRANTY; without even the implied warranty of
21869 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21870 # GNU General Public License for more details.
21871 #
21872 # You should have received a copy of the GNU General Public License
21873 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21874
21875
21876 # The names of the tagged configurations supported by this script.
21877 available_tags=''
21878
21879 # Configured defaults for sys_lib_dlsearch_path munging.
21880 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21881
21882 # ### BEGIN LIBTOOL CONFIG
21883
21884 # Which release of libtool.m4 was used?
21885 macro_version=$macro_version
21886 macro_revision=$macro_revision
21887
21888 # Whether or not to build shared libraries.
21889 build_libtool_libs=$enable_shared
21890
21891 # Whether or not to build static libraries.
21892 build_old_libs=$enable_static
21893
21894 # What type of objects to build.
21895 pic_mode=$pic_mode
21896
21897 # Whether or not to optimize for fast installation.
21898 fast_install=$enable_fast_install
21899
21900 # Shared archive member basename,for filename based shared library versioning on AIX.
21901 shared_archive_member_spec=$shared_archive_member_spec
21902
21903 # Shell to use when invoking shell scripts.
21904 SHELL=$lt_SHELL
21905
21906 # An echo program that protects backslashes.
21907 ECHO=$lt_ECHO
21908
21909 # The PATH separator for the build system.
21910 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21911
21912 # The host system.
21913 host_alias=$host_alias
21914 host=$host
21915 host_os=$host_os
21916
21917 # The build system.
21918 build_alias=$build_alias
21919 build=$build
21920 build_os=$build_os
21921
21922 # A sed program that does not truncate output.
21923 SED=$lt_SED
21924
21925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21926 Xsed="\$SED -e 1s/^X//"
21927
21928 # A grep program that handles long lines.
21929 GREP=$lt_GREP
21930
21931 # An ERE matcher.
21932 EGREP=$lt_EGREP
21933
21934 # A literal string matcher.
21935 FGREP=$lt_FGREP
21936
21937 # A BSD- or MS-compatible name lister.
21938 NM=$lt_NM
21939
21940 # Whether we need soft or hard links.
21941 LN_S=$lt_LN_S
21942
21943 # What is the maximum length of a command?
21944 max_cmd_len=$max_cmd_len
21945
21946 # Object file suffix (normally "o").
21947 objext=$ac_objext
21948
21949 # Executable file suffix (normally "").
21950 exeext=$exeext
21951
21952 # whether the shell understands "unset".
21953 lt_unset=$lt_unset
21954
21955 # turn spaces into newlines.
21956 SP2NL=$lt_lt_SP2NL
21957
21958 # turn newlines into spaces.
21959 NL2SP=$lt_lt_NL2SP
21960
21961 # convert \$build file names to \$host format.
21962 to_host_file_cmd=$lt_cv_to_host_file_cmd
21963
21964 # convert \$build files to toolchain format.
21965 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21966
21967 # A file(cmd) program that detects file types.
21968 FILECMD=$lt_FILECMD
21969
21970 # An object symbol dumper.
21971 OBJDUMP=$lt_OBJDUMP
21972
21973 # Method to check whether dependent libraries are shared objects.
21974 deplibs_check_method=$lt_deplibs_check_method
21975
21976 # Command to use when deplibs_check_method = "file_magic".
21977 file_magic_cmd=$lt_file_magic_cmd
21978
21979 # How to find potential files when deplibs_check_method = "file_magic".
21980 file_magic_glob=$lt_file_magic_glob
21981
21982 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21983 want_nocaseglob=$lt_want_nocaseglob
21984
21985 # DLL creation program.
21986 DLLTOOL=$lt_DLLTOOL
21987
21988 # Command to associate shared and link libraries.
21989 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21990
21991 # The archiver.
21992 AR=$lt_AR
21993
21994 # Flags to create an archive (by configure).
21995 lt_ar_flags=$lt_ar_flags
21996
21997 # Flags to create an archive.
21998 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21999
22000 # How to feed a file listing to the archiver.
22001 archiver_list_spec=$lt_archiver_list_spec
22002
22003 # A symbol stripping program.
22004 STRIP=$lt_STRIP
22005
22006 # Commands used to install an old-style archive.
22007 RANLIB=$lt_RANLIB
22008 old_postinstall_cmds=$lt_old_postinstall_cmds
22009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22010
22011 # Whether to use a lock for old archive extraction.
22012 lock_old_archive_extraction=$lock_old_archive_extraction
22013
22014 # A C compiler.
22015 LTCC=$lt_CC
22016
22017 # LTCC compiler flags.
22018 LTCFLAGS=$lt_CFLAGS
22019
22020 # Take the output of nm and produce a listing of raw symbols and C names.
22021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22022
22023 # Transform the output of nm in a proper C declaration.
22024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22025
22026 # Transform the output of nm into a list of symbols to manually relocate.
22027 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22028
22029 # Transform the output of nm in a C name address pair.
22030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22031
22032 # Transform the output of nm in a C name address pair when lib prefix is needed.
22033 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22034
22035 # The name lister interface.
22036 nm_interface=$lt_lt_cv_nm_interface
22037
22038 # Specify filename containing input files for \$NM.
22039 nm_file_list_spec=$lt_nm_file_list_spec
22040
22041 # The root where to search for dependent libraries,and where our libraries should be installed.
22042 lt_sysroot=$lt_sysroot
22043
22044 # Command to truncate a binary pipe.
22045 lt_truncate_bin=$lt_lt_cv_truncate_bin
22046
22047 # The name of the directory that contains temporary libtool files.
22048 objdir=$objdir
22049
22050 # Used to examine libraries when file_magic_cmd begins with "file".
22051 MAGIC_CMD=$MAGIC_CMD
22052
22053 # Must we lock files when doing compilation?
22054 need_locks=$lt_need_locks
22055
22056 # Manifest tool.
22057 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22058
22059 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22060 DSYMUTIL=$lt_DSYMUTIL
22061
22062 # Tool to change global to local symbols on Mac OS X.
22063 NMEDIT=$lt_NMEDIT
22064
22065 # Tool to manipulate fat objects and archives on Mac OS X.
22066 LIPO=$lt_LIPO
22067
22068 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22069 OTOOL=$lt_OTOOL
22070
22071 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22072 OTOOL64=$lt_OTOOL64
22073
22074 # Old archive suffix (normally "a").
22075 libext=$libext
22076
22077 # Shared library suffix (normally ".so").
22078 shrext_cmds=$lt_shrext_cmds
22079
22080 # The commands to extract the exported symbol list from a shared archive.
22081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22082
22083 # Variables whose values should be saved in libtool wrapper scripts and
22084 # restored at link time.
22085 variables_saved_for_relink=$lt_variables_saved_for_relink
22086
22087 # Do we need the "lib" prefix for modules?
22088 need_lib_prefix=$need_lib_prefix
22089
22090 # Do we need a version for libraries?
22091 need_version=$need_version
22092
22093 # Library versioning type.
22094 version_type=$version_type
22095
22096 # Shared library runtime path variable.
22097 runpath_var=$runpath_var
22098
22099 # Shared library path variable.
22100 shlibpath_var=$shlibpath_var
22101
22102 # Is shlibpath searched before the hard-coded library search path?
22103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22104
22105 # Format of library name prefix.
22106 libname_spec=$lt_libname_spec
22107
22108 # List of archive names. First name is the real one, the rest are links.
22109 # The last name is the one that the linker finds with -lNAME
22110 library_names_spec=$lt_library_names_spec
22111
22112 # The coded name of the library, if different from the real name.
22113 soname_spec=$lt_soname_spec
22114
22115 # Permission mode override for installation of shared libraries.
22116 install_override_mode=$lt_install_override_mode
22117
22118 # Command to use after installation of a shared archive.
22119 postinstall_cmds=$lt_postinstall_cmds
22120
22121 # Command to use after uninstallation of a shared archive.
22122 postuninstall_cmds=$lt_postuninstall_cmds
22123
22124 # Commands used to finish a libtool library installation in a directory.
22125 finish_cmds=$lt_finish_cmds
22126
22127 # As "finish_cmds", except a single script fragment to be evaled but
22128 # not shown.
22129 finish_eval=$lt_finish_eval
22130
22131 # Whether we should hardcode library paths into libraries.
22132 hardcode_into_libs=$hardcode_into_libs
22133
22134 # Compile-time system search path for libraries.
22135 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22136
22137 # Detected run-time system search path for libraries.
22138 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22139
22140 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22141 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22142
22143 # Whether dlopen is supported.
22144 dlopen_support=$enable_dlopen
22145
22146 # Whether dlopen of programs is supported.
22147 dlopen_self=$enable_dlopen_self
22148
22149 # Whether dlopen of statically linked programs is supported.
22150 dlopen_self_static=$enable_dlopen_self_static
22151
22152 # Commands to strip libraries.
22153 old_striplib=$lt_old_striplib
22154 striplib=$lt_striplib
22155
22156
22157 # The linker used to build libraries.
22158 LD=$lt_LD
22159
22160 # How to create reloadable object files.
22161 reload_flag=$lt_reload_flag
22162 reload_cmds=$lt_reload_cmds
22163
22164 # Commands used to build an old-style archive.
22165 old_archive_cmds=$lt_old_archive_cmds
22166
22167 # A language specific compiler.
22168 CC=$lt_compiler
22169
22170 # Is the compiler the GNU compiler?
22171 with_gcc=$GCC
22172
22173 # Compiler flag to turn off builtin functions.
22174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22175
22176 # Additional compiler flags for building library objects.
22177 pic_flag=$lt_lt_prog_compiler_pic
22178
22179 # How to pass a linker flag through the compiler.
22180 wl=$lt_lt_prog_compiler_wl
22181
22182 # Compiler flag to prevent dynamic linking.
22183 link_static_flag=$lt_lt_prog_compiler_static
22184
22185 # Does compiler simultaneously support -c and -o options?
22186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22187
22188 # Whether or not to add -lc for building shared libraries.
22189 build_libtool_need_lc=$archive_cmds_need_lc
22190
22191 # Whether or not to disallow shared libs when runtime libs are static.
22192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22193
22194 # Compiler flag to allow reflexive dlopens.
22195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22196
22197 # Compiler flag to generate shared objects directly from archives.
22198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22199
22200 # Whether the compiler copes with passing no objects directly.
22201 compiler_needs_object=$lt_compiler_needs_object
22202
22203 # Create an old-style archive from a shared archive.
22204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22205
22206 # Create a temporary old-style archive to link instead of a shared archive.
22207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22208
22209 # Commands used to build a shared archive.
22210 archive_cmds=$lt_archive_cmds
22211 archive_expsym_cmds=$lt_archive_expsym_cmds
22212
22213 # Commands used to build a loadable module if different from building
22214 # a shared archive.
22215 module_cmds=$lt_module_cmds
22216 module_expsym_cmds=$lt_module_expsym_cmds
22217
22218 # Whether we are building with GNU ld or not.
22219 with_gnu_ld=$lt_with_gnu_ld
22220
22221 # Flag that allows shared libraries with undefined symbols to be built.
22222 allow_undefined_flag=$lt_allow_undefined_flag
22223
22224 # Flag that enforces no undefined symbols.
22225 no_undefined_flag=$lt_no_undefined_flag
22226
22227 # Flag to hardcode \$libdir into a binary during linking.
22228 # This must work even if \$libdir does not exist
22229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22230
22231 # Whether we need a single "-rpath" flag with a separated argument.
22232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22233
22234 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22235 # DIR into the resulting binary.
22236 hardcode_direct=$hardcode_direct
22237
22238 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22239 # DIR into the resulting binary and the resulting library dependency is
22240 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22241 # library is relocated.
22242 hardcode_direct_absolute=$hardcode_direct_absolute
22243
22244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22245 # into the resulting binary.
22246 hardcode_minus_L=$hardcode_minus_L
22247
22248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22249 # into the resulting binary.
22250 hardcode_shlibpath_var=$hardcode_shlibpath_var
22251
22252 # Set to "yes" if building a shared library automatically hardcodes DIR
22253 # into the library and all subsequent libraries and executables linked
22254 # against it.
22255 hardcode_automatic=$hardcode_automatic
22256
22257 # Set to yes if linker adds runtime paths of dependent libraries
22258 # to runtime path list.
22259 inherit_rpath=$inherit_rpath
22260
22261 # Whether libtool must link a program against all its dependency libraries.
22262 link_all_deplibs=$link_all_deplibs
22263
22264 # Set to "yes" if exported symbols are required.
22265 always_export_symbols=$always_export_symbols
22266
22267 # The commands to list exported symbols.
22268 export_symbols_cmds=$lt_export_symbols_cmds
22269
22270 # Symbols that should not be listed in the preloaded symbols.
22271 exclude_expsyms=$lt_exclude_expsyms
22272
22273 # Symbols that must always be exported.
22274 include_expsyms=$lt_include_expsyms
22275
22276 # Commands necessary for linking programs (against libraries) with templates.
22277 prelink_cmds=$lt_prelink_cmds
22278
22279 # Commands necessary for finishing linking programs.
22280 postlink_cmds=$lt_postlink_cmds
22281
22282 # Specify filename containing input files.
22283 file_list_spec=$lt_file_list_spec
22284
22285 # How to hardcode a shared library path into an executable.
22286 hardcode_action=$hardcode_action
22287
22288 # ### END LIBTOOL CONFIG
22289
22290 _LT_EOF
22291
22292 cat <<'_LT_EOF' >> "$cfgfile"
22293
22294 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22295
22296 # func_munge_path_list VARIABLE PATH
22297 # -----------------------------------
22298 # VARIABLE is name of variable containing _space_ separated list of
22299 # directories to be munged by the contents of PATH, which is string
22300 # having a format:
22301 # "DIR[:DIR]:"
22302 # string "DIR[ DIR]" will be prepended to VARIABLE
22303 # ":DIR[:DIR]"
22304 # string "DIR[ DIR]" will be appended to VARIABLE
22305 # "DIRP[:DIRP]::[DIRA:]DIRA"
22306 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22307 # "DIRA[ DIRA]" will be appended to VARIABLE
22308 # "DIR[:DIR]"
22309 # VARIABLE will be replaced by "DIR[ DIR]"
22310 func_munge_path_list ()
22311 {
22312 case x$2 in
22313 x)
22314 ;;
22315 *:)
22316 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22317 ;;
22318 x:*)
22319 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22320 ;;
22321 *::*)
22322 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22323 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22324 ;;
22325 *)
22326 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22327 ;;
22328 esac
22329 }
22330
22331
22332 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22333 func_cc_basename ()
22334 {
22335 for cc_temp in $*""; do
22336 case $cc_temp in
22337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22339 \-*) ;;
22340 *) break;;
22341 esac
22342 done
22343 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22344 }
22345
22346
22347 # ### END FUNCTIONS SHARED WITH CONFIGURE
22348
22349 _LT_EOF
22350
22351 case $host_os in
22352 aix3*)
22353 cat <<\_LT_EOF >> "$cfgfile"
22354 # AIX sometimes has problems with the GCC collect2 program. For some
22355 # reason, if we set the COLLECT_NAMES environment variable, the problems
22356 # vanish in a puff of smoke.
22357 if test set != "${COLLECT_NAMES+set}"; then
22358 COLLECT_NAMES=
22359 export COLLECT_NAMES
22360 fi
22361 _LT_EOF
22362 ;;
22363 esac
22364
22365
22366
22367 ltmain=$ac_aux_dir/ltmain.sh
22368
22369
22370 # We use sed instead of cat because bash on DJGPP gets confused if
22371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22372 # text mode, it properly converts lines to CR/LF. This bash problem
22373 # is reportedly fixed, but why not run on old versions too?
22374 $SED '$q' "$ltmain" >> "$cfgfile" \
22375 || (rm -f "$cfgfile"; exit 1)
22376
22377 mv -f "$cfgfile" "$ofile" ||
22378 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22379 chmod +x "$ofile"
22380
22381 ;;
22382
22383 esac
22384 done # for ac_tag
22385
22386
22387 as_fn_exit 0
22388 _ACEOF
22389 ac_clean_files=$ac_clean_files_save
22390
22391 test $ac_write_fail = 0 ||
22392 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22393
22394
22395 # configure is writing to config.log, and then calls config.status.
22396 # config.status does its own redirection, appending to config.log.
22397 # Unfortunately, on DOS this fails, as config.log is still kept open
22398 # by configure, so config.status won't be able to write to it; its
22399 # output is simply discarded. So we exec the FD to /dev/null,
22400 # effectively closing config.log, so it can be properly (re)opened and
22401 # appended to by config.status. When coming back to configure, we
22402 # need to make the FD available again.
22403 if test "$no_create" != yes; then
22404 ac_cs_success=:
22405 ac_config_status_args=
22406 test "$silent" = yes &&
22407 ac_config_status_args="$ac_config_status_args --quiet"
22408 exec 5>/dev/null
22409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22410 exec 5>>config.log
22411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22412 # would make configure fail if this is the last instruction.
22413 $ac_cs_success || as_fn_exit 1
22414 fi
22415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22417 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22418 fi
22419
22420
22421