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.71 for xf86-input-mouse 1.9.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='xf86-input-mouse'
624 PACKAGE_TARNAME='xf86-input-mouse'
625 PACKAGE_VERSION='1.9.4'
626 PACKAGE_STRING='xf86-input-mouse 1.9.4'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 OS_MOUSE_NAME
669 sdkdir
670 inputdir
671 XORG_LIBS
672 XORG_CFLAGS
673 LINT_FALSE
674 LINT_TRUE
675 LINT_FLAGS
676 LINT
677 MAN_SUBSTS
678 XORG_MAN_PAGE
679 ADMIN_MAN_DIR
680 DRIVER_MAN_DIR
681 MISC_MAN_DIR
682 FILE_MAN_DIR
683 LIB_MAN_DIR
684 APP_MAN_DIR
685 ADMIN_MAN_SUFFIX
686 DRIVER_MAN_SUFFIX
687 MISC_MAN_SUFFIX
688 FILE_MAN_SUFFIX
689 LIB_MAN_SUFFIX
690 APP_MAN_SUFFIX
691 INSTALL_CMD
692 PKG_CONFIG_LIBDIR
693 PKG_CONFIG_PATH
694 PKG_CONFIG
695 CHANGELOG_CMD
696 STRICT_CFLAGS
697 CWARNFLAGS
698 BASE_CFLAGS
699 LT_SYS_LIBRARY_PATH
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 MANIFEST_TOOL
706 RANLIB
707 ac_ct_AR
708 AR
709 DLLTOOL
710 OBJDUMP
711 FILECMD
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 EGREP
719 GREP
720 SED
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 LIBTOOL
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 CSCOPE
735 ETAGS
736 CTAGS
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__include
745 DEPDIR
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 runstatedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL
815 am__quote'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_dependency_tracking
820 enable_silent_rules
821 enable_static
822 enable_shared
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_selective_werror
830 enable_strict_compilation
831 with_lint
832 with_xorg_module_dir
833 with_sdkdir
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 LT_SYS_LIBRARY_PATH
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 LINT
848 LINT_FLAGS
849 XORG_CFLAGS
850 XORG_LIBS'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: \`$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: \`$ac_useropt'"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -runstatedir | --runstatedir | --runstatedi | --runstated \
1141 | --runstate | --runstat | --runsta | --runst | --runs \
1142 | --run | --ru | --r)
1143 ac_prev=runstatedir ;;
1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1146 | --run=* | --ru=* | --r=*)
1147 runstatedir=$ac_optarg ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: \`$ac_useropt'"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: \`$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir runstatedir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 printf "%s\n" X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures xf86-input-mouse 1.9.4 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root
1449 [DATAROOTDIR/doc/xf86-input-mouse]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1455
1456 cat <<\_ACEOF
1457
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of xf86-input-mouse 1.9.4:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-static[=PKGS] build static libraries [default=no]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --disable-selective-werror
1491 Turn off selective compiler errors. (default:
1492 enabled)
1493 --enable-strict-compilation
1494 Enable all warnings from compiler and make them
1495 errors (default: disabled)
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508 --with-lint Use a lint-style source code checker (default:
1509 disabled)
1510 --with-xorg-module-dir=DIR
1511 Default xorg module directory
1512 [[default=$libdir/xorg/modules]]
1513
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 LINT Path to a lint-style command
1531 LINT_FLAGS Flags for the lint-style command
1532 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1533 XORG_LIBS linker flags for XORG, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/issues>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for configure.gnu first; this name is used for a wrapper for
1585 # Metaconfig's "Configure" on case-insensitive file systems.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 xf86-input-mouse configure 1.9.4
1603 generated by GNU Autoconf 2.71
1604
1605 Copyright (C) 2021 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest.beam
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 printf "%s\n" "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext
1642 then :
1643 ac_retval=0
1644 else $as_nop
1645 printf "%s\n" "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 printf %s "checking for $2... " >&6; }
1664 if eval test \${$3+y}
1665 then :
1666 printf %s "(cached) " >&6
1667 else $as_nop
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"
1674 then :
1675 eval "$3=yes"
1676 else $as_nop
1677 eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 printf "%s\n" "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest$ac_exeext
1716 }
1717 then :
1718 ac_retval=0
1719 else $as_nop
1720 printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 printf %s "checking for $2... " >&6; }
1743 if eval test \${$3+y}
1744 then :
1745 printf %s "(cached) " >&6
1746 else $as_nop
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below. */
1755
1756 #include <limits.h>
1757 #undef $2
1758
1759 /* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762 #ifdef __cplusplus
1763 extern "C"
1764 #endif
1765 char $2 ();
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined __stub_$2 || defined __stub___$2
1770 choke me
1771 #endif
1772
1773 int
1774 main (void)
1775 {
1776 return $2 ();
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_link "$LINENO"
1782 then :
1783 eval "$3=yes"
1784 else $as_nop
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1798 # ------------------------------------------------------------------
1799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1801 ac_fn_check_decl ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1806 printf %s "checking whether $as_decl_name is declared... " >&6; }
1807 if eval test \${$3+y}
1808 then :
1809 printf %s "(cached) " >&6
1810 else $as_nop
1811 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1812 eval ac_save_FLAGS=\$$6
1813 as_fn_append $6 " $5"
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 int
1818 main (void)
1819 {
1820 #ifndef $as_decl_name
1821 #ifdef __cplusplus
1822 (void) $as_decl_use;
1823 #else
1824 (void) $as_decl_name;
1825 #endif
1826 #endif
1827
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"
1833 then :
1834 eval "$3=yes"
1835 else $as_nop
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839 eval $6=\$ac_save_FLAGS
1840
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 xf86-input-mouse $as_me 1.9.4, which was
1873 generated by GNU Autoconf 2.71. 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 (p, i)
2160 char **p;
2161 int i;
2162 {
2163 return p[i];
2164 }
2165 static char *f (char * (*g) (char **, int), char **p, ...)
2166 {
2167 char *s;
2168 va_list v;
2169 va_start (v,p);
2170 s = g (p, va_arg (v,int));
2171 va_end (v);
2172 return s;
2173 }
2174
2175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2176 function prototypes and stuff, but not \xHH hex character constants.
2177 These do not provoke an error unfortunately, instead are silently treated
2178 as an "x". The following induces an error, until -std is added to get
2179 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2180 array size at least. It is necessary to write \x00 == 0 to get something
2181 that is true only with -std. */
2182 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2183
2184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2185 inside strings and character constants. */
2186 #define FOO(x) '\''x'\''
2187 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2188
2189 int test (int i, double x);
2190 struct s1 {int (*f) (int a);};
2191 struct s2 {int (*f) (double a);};
2192 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2193 int, int);'
2194
2195 # Test code for whether the C compiler supports C89 (body of main).
2196 ac_c_conftest_c89_main='
2197 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2198 '
2199
2200 # Test code for whether the C compiler supports C99 (global declarations)
2201 ac_c_conftest_c99_globals='
2202 // Does the compiler advertise C99 conformance?
2203 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2204 # error "Compiler does not advertise C99 conformance"
2205 #endif
2206
2207 #include <stdbool.h>
2208 extern int puts (const char *);
2209 extern int printf (const char *, ...);
2210 extern int dprintf (int, const char *, ...);
2211 extern void *malloc (size_t);
2212
2213 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2214 // dprintf is used instead of fprintf to avoid needing to declare
2215 // FILE and stderr.
2216 #define debug(...) dprintf (2, __VA_ARGS__)
2217 #define showlist(...) puts (#__VA_ARGS__)
2218 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2219 static void
2220 test_varargs_macros (void)
2221 {
2222 int x = 1234;
2223 int y = 5678;
2224 debug ("Flag");
2225 debug ("X = %d\n", x);
2226 showlist (The first, second, and third items.);
2227 report (x>y, "x is %d but y is %d", x, y);
2228 }
2229
2230 // Check long long types.
2231 #define BIG64 18446744073709551615ull
2232 #define BIG32 4294967295ul
2233 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2234 #if !BIG_OK
2235 #error "your preprocessor is broken"
2236 #endif
2237 #if BIG_OK
2238 #else
2239 #error "your preprocessor is broken"
2240 #endif
2241 static long long int bignum = -9223372036854775807LL;
2242 static unsigned long long int ubignum = BIG64;
2243
2244 struct incomplete_array
2245 {
2246 int datasize;
2247 double data[];
2248 };
2249
2250 struct named_init {
2251 int number;
2252 const wchar_t *name;
2253 double average;
2254 };
2255
2256 typedef const char *ccp;
2257
2258 static inline int
2259 test_restrict (ccp restrict text)
2260 {
2261 // See if C++-style comments work.
2262 // Iterate through items via the restricted pointer.
2263 // Also check for declarations in for loops.
2264 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2265 continue;
2266 return 0;
2267 }
2268
2269 // Check varargs and va_copy.
2270 static bool
2271 test_varargs (const char *format, ...)
2272 {
2273 va_list args;
2274 va_start (args, format);
2275 va_list args_copy;
2276 va_copy (args_copy, args);
2277
2278 const char *str = "";
2279 int number = 0;
2280 float fnumber = 0;
2281
2282 while (*format)
2283 {
2284 switch (*format++)
2285 {
2286 case '\''s'\'': // string
2287 str = va_arg (args_copy, const char *);
2288 break;
2289 case '\''d'\'': // int
2290 number = va_arg (args_copy, int);
2291 break;
2292 case '\''f'\'': // float
2293 fnumber = va_arg (args_copy, double);
2294 break;
2295 default:
2296 break;
2297 }
2298 }
2299 va_end (args_copy);
2300 va_end (args);
2301
2302 return *str && number && fnumber;
2303 }
2304 '
2305
2306 # Test code for whether the C compiler supports C99 (body of main).
2307 ac_c_conftest_c99_main='
2308 // Check bool.
2309 _Bool success = false;
2310 success |= (argc != 0);
2311
2312 // Check restrict.
2313 if (test_restrict ("String literal") == 0)
2314 success = true;
2315 char *restrict newvar = "Another string";
2316
2317 // Check varargs.
2318 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2319 test_varargs_macros ();
2320
2321 // Check flexible array members.
2322 struct incomplete_array *ia =
2323 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2324 ia->datasize = 10;
2325 for (int i = 0; i < ia->datasize; ++i)
2326 ia->data[i] = i * 1.234;
2327
2328 // Check named initializers.
2329 struct named_init ni = {
2330 .number = 34,
2331 .name = L"Test wide string",
2332 .average = 543.34343,
2333 };
2334
2335 ni.number = 58;
2336
2337 int dynamic_array[ni.number];
2338 dynamic_array[0] = argv[0][0];
2339 dynamic_array[ni.number - 1] = 543;
2340
2341 // work around unused variable warnings
2342 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2343 || dynamic_array[ni.number - 1] != 543);
2344 '
2345
2346 # Test code for whether the C compiler supports C11 (global declarations)
2347 ac_c_conftest_c11_globals='
2348 // Does the compiler advertise C11 conformance?
2349 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2350 # error "Compiler does not advertise C11 conformance"
2351 #endif
2352
2353 // Check _Alignas.
2354 char _Alignas (double) aligned_as_double;
2355 char _Alignas (0) no_special_alignment;
2356 extern char aligned_as_int;
2357 char _Alignas (0) _Alignas (int) aligned_as_int;
2358
2359 // Check _Alignof.
2360 enum
2361 {
2362 int_alignment = _Alignof (int),
2363 int_array_alignment = _Alignof (int[100]),
2364 char_alignment = _Alignof (char)
2365 };
2366 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2367
2368 // Check _Noreturn.
2369 int _Noreturn does_not_return (void) { for (;;) continue; }
2370
2371 // Check _Static_assert.
2372 struct test_static_assert
2373 {
2374 int x;
2375 _Static_assert (sizeof (int) <= sizeof (long int),
2376 "_Static_assert does not work in struct");
2377 long int y;
2378 };
2379
2380 // Check UTF-8 literals.
2381 #define u8 syntax error!
2382 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2383
2384 // Check duplicate typedefs.
2385 typedef long *long_ptr;
2386 typedef long int *long_ptr;
2387 typedef long_ptr long_ptr;
2388
2389 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2390 struct anonymous
2391 {
2392 union {
2393 struct { int i; int j; };
2394 struct { int k; long int l; } w;
2395 };
2396 int m;
2397 } v1;
2398 '
2399
2400 # Test code for whether the C compiler supports C11 (body of main).
2401 ac_c_conftest_c11_main='
2402 _Static_assert ((offsetof (struct anonymous, i)
2403 == offsetof (struct anonymous, w.k)),
2404 "Anonymous union alignment botch");
2405 v1.i = 2;
2406 v1.w.k = 5;
2407 ok |= v1.i != 5;
2408 '
2409
2410 # Test code for whether the C compiler supports C11 (complete).
2411 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2412 ${ac_c_conftest_c99_globals}
2413 ${ac_c_conftest_c11_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 ${ac_c_conftest_c99_main}
2421 ${ac_c_conftest_c11_main}
2422 return ok;
2423 }
2424 "
2425
2426 # Test code for whether the C compiler supports C99 (complete).
2427 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2428 ${ac_c_conftest_c99_globals}
2429
2430 int
2431 main (int argc, char **argv)
2432 {
2433 int ok = 0;
2434 ${ac_c_conftest_c89_main}
2435 ${ac_c_conftest_c99_main}
2436 return ok;
2437 }
2438 "
2439
2440 # Test code for whether the C compiler supports C89 (complete).
2441 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2442
2443 int
2444 main (int argc, char **argv)
2445 {
2446 int ok = 0;
2447 ${ac_c_conftest_c89_main}
2448 return ok;
2449 }
2450 "
2451
2452 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2453 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2454 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2455 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2456 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2457 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2458 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2459 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2460 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2461 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2462
2463 # Auxiliary files required by this configure script.
2464 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2465
2466 # Locations in which to look for auxiliary files.
2467 ac_aux_dir_candidates="${srcdir}/."
2468
2469 # Search for a directory containing all of the required auxiliary files,
2470 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2471 # If we don't find one directory that contains all the files we need,
2472 # we report the set of missing files from the *first* directory in
2473 # $ac_aux_dir_candidates and give up.
2474 ac_missing_aux_files=""
2475 ac_first_candidate=:
2476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 as_found=false
2479 for as_dir in $ac_aux_dir_candidates
2480 do
2481 IFS=$as_save_IFS
2482 case $as_dir in #(((
2483 '') as_dir=./ ;;
2484 */) ;;
2485 *) as_dir=$as_dir/ ;;
2486 esac
2487 as_found=:
2488
2489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2490 ac_aux_dir_found=yes
2491 ac_install_sh=
2492 for ac_aux in $ac_aux_files
2493 do
2494 # As a special case, if "install-sh" is required, that requirement
2495 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2496 # and $ac_install_sh is set appropriately for whichever one is found.
2497 if test x"$ac_aux" = x"install-sh"
2498 then
2499 if test -f "${as_dir}install-sh"; then
2500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2501 ac_install_sh="${as_dir}install-sh -c"
2502 elif test -f "${as_dir}install.sh"; then
2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2504 ac_install_sh="${as_dir}install.sh -c"
2505 elif test -f "${as_dir}shtool"; then
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2507 ac_install_sh="${as_dir}shtool install -c"
2508 else
2509 ac_aux_dir_found=no
2510 if $ac_first_candidate; then
2511 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2512 else
2513 break
2514 fi
2515 fi
2516 else
2517 if test -f "${as_dir}${ac_aux}"; then
2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2519 else
2520 ac_aux_dir_found=no
2521 if $ac_first_candidate; then
2522 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2523 else
2524 break
2525 fi
2526 fi
2527 fi
2528 done
2529 if test "$ac_aux_dir_found" = yes; then
2530 ac_aux_dir="$as_dir"
2531 break
2532 fi
2533 ac_first_candidate=false
2534
2535 as_found=false
2536 done
2537 IFS=$as_save_IFS
2538 if $as_found
2539 then :
2540
2541 else $as_nop
2542 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2543 fi
2544
2545
2546 # These three variables are undocumented and unsupported,
2547 # and are intended to be withdrawn in a future Autoconf release.
2548 # They can cause serious problems if a builder's source tree is in a directory
2549 # whose full name contains unusual characters.
2550 if test -f "${ac_aux_dir}config.guess"; then
2551 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2552 fi
2553 if test -f "${ac_aux_dir}config.sub"; then
2554 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2555 fi
2556 if test -f "$ac_aux_dir/configure"; then
2557 ac_configure="$SHELL ${ac_aux_dir}configure"
2558 fi
2559
2560 # Check that the precious variables saved in the cache have kept the same
2561 # value.
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565 eval ac_new_set=\$ac_env_${ac_var}_set
2566 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567 eval ac_new_val=\$ac_env_${ac_var}_value
2568 case $ac_old_set,$ac_new_set in
2569 set,)
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,set)
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2577 ,);;
2578 *)
2579 if test "x$ac_old_val" != "x$ac_new_val"; then
2580 # differences in whitespace do not lead to failure.
2581 ac_old_val_w=`echo x $ac_old_val`
2582 ac_new_val_w=`echo x $ac_new_val`
2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586 ac_cache_corrupted=:
2587 else
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590 eval $ac_var=\$ac_old_val
2591 fi
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2593 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2595 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2596 fi;;
2597 esac
2598 # Pass precious variables to config.status.
2599 if test "$ac_new_set" = set; then
2600 case $ac_new_val in
2601 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602 *) ac_arg=$ac_var=$ac_new_val ;;
2603 esac
2604 case " $ac_configure_args " in
2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 esac
2608 fi
2609 done
2610 if $ac_cache_corrupted; then
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2615 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2616 and start over" "$LINENO" 5
2617 fi
2618 ## -------------------- ##
2619 ## Main body of script. ##
2620 ## -------------------- ##
2621
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
2628
2629
2630 ac_config_headers="$ac_config_headers config.h"
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644 # Expand $ac_aux_dir to an absolute path.
2645 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 printf %s "checking for $ac_word... " >&6; }
2657 if test ${ac_cv_prog_CC+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else $as_nop
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 CC=$ac_cv_prog_CC
2686 if test -n "$CC"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688 printf "%s\n" "$CC" >&6; }
2689 else
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 printf "%s\n" "no" >&6; }
2692 fi
2693
2694
2695 fi
2696 if test -z "$ac_cv_prog_CC"; then
2697 ac_ct_CC=$CC
2698 # Extract the first word of "gcc", so it can be a program name with args.
2699 set dummy gcc; ac_word=$2
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 printf %s "checking for $ac_word... " >&6; }
2702 if test ${ac_cv_prog_ac_ct_CC+y}
2703 then :
2704 printf %s "(cached) " >&6
2705 else $as_nop
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 case $as_dir in #(((
2714 '') as_dir=./ ;;
2715 */) ;;
2716 *) as_dir=$as_dir/ ;;
2717 esac
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 printf "%s\n" "$ac_ct_CC" >&6; }
2734 else
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 printf "%s\n" "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 CC=$ac_ct_CC
2749 fi
2750 else
2751 CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 printf %s "checking for $ac_word... " >&6; }
2760 if test ${ac_cv_prog_CC+y}
2761 then :
2762 printf %s "(cached) " >&6
2763 else $as_nop
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 case $as_dir in #(((
2772 '') as_dir=./ ;;
2773 */) ;;
2774 *) as_dir=$as_dir/ ;;
2775 esac
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_CC="${ac_tool_prefix}cc"
2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 printf "%s\n" "$CC" >&6; }
2792 else
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 printf "%s\n" "no" >&6; }
2795 fi
2796
2797
2798 fi
2799 fi
2800 if test -z "$CC"; then
2801 # Extract the first word of "cc", so it can be a program name with args.
2802 set dummy cc; ac_word=$2
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 printf %s "checking for $ac_word... " >&6; }
2805 if test ${ac_cv_prog_CC+y}
2806 then :
2807 printf %s "(cached) " >&6
2808 else $as_nop
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 ac_prog_rejected=no
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 case $as_dir in #(((
2818 '') as_dir=./ ;;
2819 */) ;;
2820 *) as_dir=$as_dir/ ;;
2821 esac
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2824 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected=yes
2826 continue
2827 fi
2828 ac_cv_prog_CC="cc"
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy $ac_cv_prog_CC
2839 shift
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2844 shift
2845 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2846 fi
2847 fi
2848 fi
2849 fi
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 printf "%s\n" "$CC" >&6; }
2854 else
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 printf "%s\n" "no" >&6; }
2857 fi
2858
2859
2860 fi
2861 if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog in cl.exe
2864 do
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 printf %s "checking for $ac_word... " >&6; }
2869 if test ${ac_cv_prog_CC+y}
2870 then :
2871 printf %s "(cached) " >&6
2872 else $as_nop
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 case $as_dir in #(((
2881 '') as_dir=./ ;;
2882 */) ;;
2883 *) as_dir=$as_dir/ ;;
2884 esac
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 printf "%s\n" "$CC" >&6; }
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2904 fi
2905
2906
2907 test -n "$CC" && break
2908 done
2909 fi
2910 if test -z "$CC"; then
2911 ac_ct_CC=$CC
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 printf %s "checking for $ac_word... " >&6; }
2918 if test ${ac_cv_prog_ac_ct_CC+y}
2919 then :
2920 printf %s "(cached) " >&6
2921 else $as_nop
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 case $as_dir in #(((
2930 '') as_dir=./ ;;
2931 */) ;;
2932 *) as_dir=$as_dir/ ;;
2933 esac
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_CC="$ac_prog"
2937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 printf "%s\n" "$ac_ct_CC" >&6; }
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 fi
2954
2955
2956 test -n "$ac_ct_CC" && break
2957 done
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 fi
2971
2972 fi
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}clang; ac_word=$2
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 printf %s "checking for $ac_word... " >&6; }
2979 if test ${ac_cv_prog_CC+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 case $as_dir in #(((
2991 '') as_dir=./ ;;
2992 */) ;;
2993 *) as_dir=$as_dir/ ;;
2994 esac
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}clang"
2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 printf "%s\n" "$CC" >&6; }
3011 else
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 printf "%s\n" "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 if test -z "$ac_cv_prog_CC"; then
3019 ac_ct_CC=$CC
3020 # Extract the first word of "clang", so it can be a program name with args.
3021 set dummy clang; ac_word=$2
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 printf %s "checking for $ac_word... " >&6; }
3024 if test ${ac_cv_prog_ac_ct_CC+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="clang"
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 printf "%s\n" "$ac_ct_CC" >&6; }
3056 else
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 printf "%s\n" "no" >&6; }
3059 fi
3060
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3071 fi
3072 else
3073 CC="$ac_cv_prog_CC"
3074 fi
3075
3076 fi
3077
3078
3079 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3083
3084 # Provide some information about the compiler.
3085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion -version; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 printf "%s\n" "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3103 fi
3104 rm -f conftest.er1 conftest.err
3105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3108
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main (void)
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 printf %s "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3134 do
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3141
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 printf "%s\n" "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153 then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3158 # Autoconf.
3159 for ac_file in $ac_files ''
3160 do
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 ;;
3165 [ab].out )
3166 # We found the default executable, but exeext='' is most
3167 # certainly right.
3168 break;;
3169 *.* )
3170 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3171 then :; else
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 fi
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3178 # actually working.
3179 break;;
3180 * )
3181 break;;
3182 esac
3183 done
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185
3186 else $as_nop
3187 ac_file=''
3188 fi
3189 if test -z "$ac_file"
3190 then :
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 printf "%s\n" "no" >&6; }
3193 printf "%s\n" "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error 77 "C compiler cannot create executables
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 else $as_nop
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 printf "%s\n" "yes" >&6; }
3203 fi
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3205 printf %s "checking for C compiler default output file name... " >&6; }
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3207 printf "%s\n" "$ac_file" >&6; }
3208 ac_exeext=$ac_cv_exeext
3209
3210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3213 printf %s "checking for suffix of executables... " >&6; }
3214 if { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 printf "%s\n" "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225 then :
3226 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3228 # work properly (i.e., refer to `conftest.exe'), while it won't with
3229 # `rm'.
3230 for ac_file in conftest.exe conftest conftest.*; do
3231 test -f "$ac_file" || continue
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 break;;
3236 * ) break;;
3237 esac
3238 done
3239 else $as_nop
3240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 rm -f conftest conftest$ac_cv_exeext
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3247 printf "%s\n" "$ac_cv_exeext" >&6; }
3248
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3251 ac_exeext=$EXEEXT
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <stdio.h>
3255 int
3256 main (void)
3257 {
3258 FILE *f = fopen ("conftest.out", "w");
3259 return ferror (f) || fclose (f) != 0;
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 ac_clean_files="$ac_clean_files conftest.out"
3266 # Check that the compiler produces executables we can run. If not, either
3267 # the compiler is broken, or we cross compile.
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3269 printf %s "checking whether we are cross compiling... " >&6; }
3270 if test "$cross_compiling" != yes; then
3271 { { ac_try="$ac_link"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 printf "%s\n" "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3279 ac_status=$?
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 if { ac_try='./conftest$ac_cv_exeext'
3283 { { case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 printf "%s\n" "$ac_try_echo"; } >&5
3289 (eval "$ac_try") 2>&5
3290 ac_status=$?
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; }; then
3293 cross_compiling=no
3294 else
3295 if test "$cross_compiling" = maybe; then
3296 cross_compiling=yes
3297 else
3298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 fi
3304 fi
3305 fi
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307 printf "%s\n" "$cross_compiling" >&6; }
3308
3309 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3310 ac_clean_files=$ac_clean_files_save
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3312 printf %s "checking for suffix of object files... " >&6; }
3313 if test ${ac_cv_objext+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else $as_nop
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319
3320 int
3321 main (void)
3322 {
3323
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.o conftest.obj
3329 if { { ac_try="$ac_compile"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 printf "%s\n" "$ac_try_echo"; } >&5
3336 (eval "$ac_compile") 2>&5
3337 ac_status=$?
3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 then :
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3346 break;;
3347 esac
3348 done
3349 else $as_nop
3350 printf "%s\n" "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3359 fi
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 printf "%s\n" "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3363 ac_objext=$OBJEXT
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3365 printf %s "checking whether the compiler supports GNU C... " >&6; }
3366 if test ${ac_cv_c_compiler_gnu+y}
3367 then :
3368 printf %s "(cached) " >&6
3369 else $as_nop
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main (void)
3375 {
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"
3385 then :
3386 ac_compiler_gnu=yes
3387 else $as_nop
3388 ac_compiler_gnu=no
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392
3393 fi
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398 if test $ac_compiler_gnu = yes; then
3399 GCC=yes
3400 else
3401 GCC=
3402 fi
3403 ac_test_CFLAGS=${CFLAGS+y}
3404 ac_save_CFLAGS=$CFLAGS
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3406 printf %s "checking whether $CC accepts -g... " >&6; }
3407 if test ${ac_cv_prog_cc_g+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else $as_nop
3411 ac_save_c_werror_flag=$ac_c_werror_flag
3412 ac_c_werror_flag=yes
3413 ac_cv_prog_cc_g=no
3414 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main (void)
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"
3427 then :
3428 ac_cv_prog_cc_g=yes
3429 else $as_nop
3430 CFLAGS=""
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main (void)
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"
3443 then :
3444
3445 else $as_nop
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main (void)
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"
3460 then :
3461 ac_cv_prog_cc_g=yes
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3468 ac_c_werror_flag=$ac_save_c_werror_flag
3469 fi
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3471 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3472 if test $ac_test_CFLAGS; then
3473 CFLAGS=$ac_save_CFLAGS
3474 elif test $ac_cv_prog_cc_g = yes; then
3475 if test "$GCC" = yes; then
3476 CFLAGS="-g -O2"
3477 else
3478 CFLAGS="-g"
3479 fi
3480 else
3481 if test "$GCC" = yes; then
3482 CFLAGS="-O2"
3483 else
3484 CFLAGS=
3485 fi
3486 fi
3487 ac_prog_cc_stdc=no
3488 if test x$ac_prog_cc_stdc = xno
3489 then :
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3491 printf %s "checking for $CC option to enable C11 features... " >&6; }
3492 if test ${ac_cv_prog_cc_c11+y}
3493 then :
3494 printf %s "(cached) " >&6
3495 else $as_nop
3496 ac_cv_prog_cc_c11=no
3497 ac_save_CC=$CC
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 $ac_c_conftest_c11_program
3501 _ACEOF
3502 for ac_arg in '' -std=gnu11
3503 do
3504 CC="$ac_save_CC $ac_arg"
3505 if ac_fn_c_try_compile "$LINENO"
3506 then :
3507 ac_cv_prog_cc_c11=$ac_arg
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.beam
3510 test "x$ac_cv_prog_cc_c11" != "xno" && break
3511 done
3512 rm -f conftest.$ac_ext
3513 CC=$ac_save_CC
3514 fi
3515
3516 if test "x$ac_cv_prog_cc_c11" = xno
3517 then :
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 printf "%s\n" "unsupported" >&6; }
3520 else $as_nop
3521 if test "x$ac_cv_prog_cc_c11" = x
3522 then :
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3524 printf "%s\n" "none needed" >&6; }
3525 else $as_nop
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3527 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3528 CC="$CC $ac_cv_prog_cc_c11"
3529 fi
3530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3531 ac_prog_cc_stdc=c11
3532 fi
3533 fi
3534 if test x$ac_prog_cc_stdc = xno
3535 then :
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3537 printf %s "checking for $CC option to enable C99 features... " >&6; }
3538 if test ${ac_cv_prog_cc_c99+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else $as_nop
3542 ac_cv_prog_cc_c99=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 $ac_c_conftest_c99_program
3547 _ACEOF
3548 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3549 do
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"
3552 then :
3553 ac_cv_prog_cc_c99=$ac_arg
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.beam
3556 test "x$ac_cv_prog_cc_c99" != "xno" && break
3557 done
3558 rm -f conftest.$ac_ext
3559 CC=$ac_save_CC
3560 fi
3561
3562 if test "x$ac_cv_prog_cc_c99" = xno
3563 then :
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3565 printf "%s\n" "unsupported" >&6; }
3566 else $as_nop
3567 if test "x$ac_cv_prog_cc_c99" = x
3568 then :
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570 printf "%s\n" "none needed" >&6; }
3571 else $as_nop
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3573 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3574 CC="$CC $ac_cv_prog_cc_c99"
3575 fi
3576 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3577 ac_prog_cc_stdc=c99
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 C89 features" >&5
3583 printf %s "checking for $CC option to enable C89 features... " >&6; }
3584 if test ${ac_cv_prog_cc_c89+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else $as_nop
3588 ac_cv_prog_cc_c89=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 $ac_c_conftest_c89_program
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596 CC="$ac_save_CC $ac_arg"
3597 if ac_fn_c_try_compile "$LINENO"
3598 then :
3599 ac_cv_prog_cc_c89=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.beam
3602 test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC
3606 fi
3607
3608 if test "x$ac_cv_prog_cc_c89" = xno
3609 then :
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611 printf "%s\n" "unsupported" >&6; }
3612 else $as_nop
3613 if test "x$ac_cv_prog_cc_c89" = x
3614 then :
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616 printf "%s\n" "none needed" >&6; }
3617 else $as_nop
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 fi
3622 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3623 ac_prog_cc_stdc=c89
3624 fi
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3640 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3641 if test ${am_cv_prog_cc_c_o+y}
3642 then :
3643 printf %s "(cached) " >&6
3644 else $as_nop
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main (void)
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # Following AC_PROG_CC_C_O, we do the test twice because some
3658 # compilers refuse to overwrite an existing .o file with -o,
3659 # though they will create one.
3660 am_cv_prog_cc_c_o=yes
3661 for am_i in 1 2; do
3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } \
3667 && test -f conftest2.$ac_objext; then
3668 : OK
3669 else
3670 am_cv_prog_cc_c_o=no
3671 break
3672 fi
3673 done
3674 rm -f core conftest*
3675 unset am_i
3676 fi
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3678 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3679 if test "$am_cv_prog_cc_c_o" != yes; then
3680 # Losing compiler, so override with the script.
3681 # FIXME: It is wrong to rewrite CC.
3682 # But if we don't then we get into trouble of one sort or another.
3683 # A longer-term fix would be to have automake use am__CC in this case,
3684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3685 CC="$am_aux_dir/compile $CC"
3686 fi
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694
3695 ac_header= ac_cache=
3696 for ac_item in $ac_header_c_list
3697 do
3698 if test $ac_cache; then
3699 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3700 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3701 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3702 fi
3703 ac_header= ac_cache=
3704 elif test $ac_header; then
3705 ac_cache=$ac_item
3706 else
3707 ac_header=$ac_item
3708 fi
3709 done
3710
3711
3712
3713
3714
3715
3716
3717
3718 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3719 then :
3720
3721 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3722
3723 fi
3724
3725
3726
3727
3728
3729
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3731 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3732 if test ${ac_cv_safe_to_define___extensions__+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else $as_nop
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 # define __EXTENSIONS__ 1
3740 $ac_includes_default
3741 int
3742 main (void)
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"
3750 then :
3751 ac_cv_safe_to_define___extensions__=yes
3752 else $as_nop
3753 ac_cv_safe_to_define___extensions__=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3756 fi
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3758 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3759
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3761 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3762 if test ${ac_cv_should_define__xopen_source+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 ac_cv_should_define__xopen_source=no
3767 if test $ac_cv_header_wchar_h = yes
3768 then :
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 #include <wchar.h>
3773 mbstate_t x;
3774 int
3775 main (void)
3776 {
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"
3783 then :
3784
3785 else $as_nop
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 #define _XOPEN_SOURCE 500
3790 #include <wchar.h>
3791 mbstate_t x;
3792 int
3793 main (void)
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"
3801 then :
3802 ac_cv_should_define__xopen_source=yes
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3807 fi
3808 fi
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3810 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3811
3812 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3813
3814 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3815
3816 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3817
3818 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3819
3820 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3825
3826 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3827
3828 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3829
3830 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3831
3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3841
3842 if test $ac_cv_header_minix_config_h = yes
3843 then :
3844 MINIX=yes
3845 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3846
3847 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3848
3849 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3850
3851 else $as_nop
3852 MINIX=
3853 fi
3854 if test $ac_cv_safe_to_define___extensions__ = yes
3855 then :
3856 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3857
3858 fi
3859 if test $ac_cv_should_define__xopen_source = yes
3860 then :
3861 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3862
3863 fi
3864
3865
3866 # Initialize Automake
3867 am__api_version='1.16'
3868
3869
3870 # Find a good install program. We prefer a C program (faster),
3871 # so one script is as good as another. But avoid the broken or
3872 # incompatible versions:
3873 # SysV /etc/install, /usr/sbin/install
3874 # SunOS /usr/etc/install
3875 # IRIX /sbin/install
3876 # AIX /bin/install
3877 # AmigaOS /C/install, which installs bootblocks on floppy discs
3878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3881 # OS/2's system install, which has a completely different semantic
3882 # ./install, which can be erroneously created by make from ./install.sh.
3883 # Reject install programs that cannot install multiple files.
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3885 printf %s "checking for a BSD-compatible install... " >&6; }
3886 if test -z "$INSTALL"; then
3887 if test ${ac_cv_path_install+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 case $as_dir in #(((
3896 '') as_dir=./ ;;
3897 */) ;;
3898 *) as_dir=$as_dir/ ;;
3899 esac
3900 # Account for fact that we put trailing slashes in our PATH walk.
3901 case $as_dir in #((
3902 ./ | /[cC]/* | \
3903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3904 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3905 /usr/ucb/* ) ;;
3906 *)
3907 # OSF1 and SCO ODT 3.0 have their own names for install.
3908 # Don't use installbsd from OSF since it installs stuff as root
3909 # by default.
3910 for ac_prog in ginstall scoinst install; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3913 if test $ac_prog = install &&
3914 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915 # AIX install. It has an incompatible calling convention.
3916 :
3917 elif test $ac_prog = install &&
3918 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919 # program-specific install script used by HP pwplus--don't use.
3920 :
3921 else
3922 rm -rf conftest.one conftest.two conftest.dir
3923 echo one > conftest.one
3924 echo two > conftest.two
3925 mkdir conftest.dir
3926 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3927 test -s conftest.one && test -s conftest.two &&
3928 test -s conftest.dir/conftest.one &&
3929 test -s conftest.dir/conftest.two
3930 then
3931 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3932 break 3
3933 fi
3934 fi
3935 fi
3936 done
3937 done
3938 ;;
3939 esac
3940
3941 done
3942 IFS=$as_save_IFS
3943
3944 rm -rf conftest.one conftest.two conftest.dir
3945
3946 fi
3947 if test ${ac_cv_path_install+y}; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. Don't cache a
3951 # value for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the value is a relative name.
3954 INSTALL=$ac_install_sh
3955 fi
3956 fi
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3958 printf "%s\n" "$INSTALL" >&6; }
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3969 printf %s "checking whether build environment is sane... " >&6; }
3970 # Reject unsafe characters in $srcdir or the absolute working directory
3971 # name. Accept space and tab only in the latter.
3972 am_lf='
3973 '
3974 case `pwd` in
3975 *[\\\"\#\$\&\'\`$am_lf]*)
3976 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3977 esac
3978 case $srcdir in
3979 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3980 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3981 esac
3982
3983 # Do 'set' in a subshell so we don't clobber the current shell's
3984 # arguments. Must try -L first in case configure is actually a
3985 # symlink; some systems play weird games with the mod time of symlinks
3986 # (eg FreeBSD returns the mod time of the symlink's containing
3987 # directory).
3988 if (
3989 am_has_slept=no
3990 for am_try in 1 2; do
3991 echo "timestamp, slept: $am_has_slept" > conftest.file
3992 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3993 if test "$*" = "X"; then
3994 # -L didn't work.
3995 set X `ls -t "$srcdir/configure" conftest.file`
3996 fi
3997 if test "$*" != "X $srcdir/configure conftest.file" \
3998 && test "$*" != "X conftest.file $srcdir/configure"; then
3999
4000 # If neither matched, then we have a broken ls. This can happen
4001 # if, for instance, CONFIG_SHELL is bash and it inherits a
4002 # broken ls alias from the environment. This has actually
4003 # happened. Such a system could not be considered "sane".
4004 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4005 alias in your environment" "$LINENO" 5
4006 fi
4007 if test "$2" = conftest.file || test $am_try -eq 2; then
4008 break
4009 fi
4010 # Just in case.
4011 sleep 1
4012 am_has_slept=yes
4013 done
4014 test "$2" = conftest.file
4015 )
4016 then
4017 # Ok.
4018 :
4019 else
4020 as_fn_error $? "newly created file is older than distributed files!
4021 Check your system clock" "$LINENO" 5
4022 fi
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4024 printf "%s\n" "yes" >&6; }
4025 # If we didn't sleep, we still need to ensure time stamps of config.status and
4026 # generated files are strictly newer.
4027 am_sleep_pid=
4028 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4029 ( sleep 1 ) &
4030 am_sleep_pid=$!
4031 fi
4032
4033 rm -f conftest.file
4034
4035 test "$program_prefix" != NONE &&
4036 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4037 # Use a double $ so make ignores it.
4038 test "$program_suffix" != NONE &&
4039 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4040 # Double any \ or $.
4041 # By default was `s,x,x', remove it if useless.
4042 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4043 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4044
4045
4046 if test x"${MISSING+set}" != xset; then
4047 MISSING="\${SHELL} '$am_aux_dir/missing'"
4048 fi
4049 # Use eval to expand $SHELL
4050 if eval "$MISSING --is-lightweight"; then
4051 am_missing_run="$MISSING "
4052 else
4053 am_missing_run=
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4055 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4056 fi
4057
4058 if test x"${install_sh+set}" != xset; then
4059 case $am_aux_dir in
4060 *\ * | *\ *)
4061 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4062 *)
4063 install_sh="\${SHELL} $am_aux_dir/install-sh"
4064 esac
4065 fi
4066
4067 # Installed binaries are usually stripped using 'strip' when the user
4068 # run "make install-strip". However 'strip' might not be the right
4069 # tool to use in cross-compilation environments, therefore Automake
4070 # will honor the 'STRIP' environment variable to overrule this program.
4071 if test "$cross_compiling" != no; then
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 printf %s "checking for $ac_word... " >&6; }
4077 if test ${ac_cv_prog_STRIP+y}
4078 then :
4079 printf %s "(cached) " >&6
4080 else $as_nop
4081 if test -n "$STRIP"; then
4082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087 IFS=$as_save_IFS
4088 case $as_dir in #(((
4089 '') as_dir=./ ;;
4090 */) ;;
4091 *) as_dir=$as_dir/ ;;
4092 esac
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108 printf "%s\n" "$STRIP" >&6; }
4109 else
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 printf "%s\n" "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_STRIP"; then
4117 ac_ct_STRIP=$STRIP
4118 # Extract the first word of "strip", so it can be a program name with args.
4119 set dummy strip; ac_word=$2
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 printf %s "checking for $ac_word... " >&6; }
4122 if test ${ac_cv_prog_ac_ct_STRIP+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else $as_nop
4126 if test -n "$ac_ct_STRIP"; then
4127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 case $as_dir in #(((
4134 '') as_dir=./ ;;
4135 */) ;;
4136 *) as_dir=$as_dir/ ;;
4137 esac
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_STRIP="strip"
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148 fi
4149 fi
4150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4151 if test -n "$ac_ct_STRIP"; then
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4153 printf "%s\n" "$ac_ct_STRIP" >&6; }
4154 else
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 printf "%s\n" "no" >&6; }
4157 fi
4158
4159 if test "x$ac_ct_STRIP" = x; then
4160 STRIP=":"
4161 else
4162 case $cross_compiling:$ac_tool_warned in
4163 yes:)
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4166 ac_tool_warned=yes ;;
4167 esac
4168 STRIP=$ac_ct_STRIP
4169 fi
4170 else
4171 STRIP="$ac_cv_prog_STRIP"
4172 fi
4173
4174 fi
4175 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4176
4177
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4179 printf %s "checking for a race-free mkdir -p... " >&6; }
4180 if test -z "$MKDIR_P"; then
4181 if test ${ac_cv_path_mkdir+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else $as_nop
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4187 do
4188 IFS=$as_save_IFS
4189 case $as_dir in #(((
4190 '') as_dir=./ ;;
4191 */) ;;
4192 *) as_dir=$as_dir/ ;;
4193 esac
4194 for ac_prog in mkdir gmkdir; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4197 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4198 'mkdir ('*'coreutils) '* | \
4199 'BusyBox '* | \
4200 'mkdir (fileutils) '4.1*)
4201 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4202 break 3;;
4203 esac
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210
4211 test -d ./--version && rmdir ./--version
4212 if test ${ac_cv_path_mkdir+y}; then
4213 MKDIR_P="$ac_cv_path_mkdir -p"
4214 else
4215 # As a last resort, use the slow shell script. Don't cache a
4216 # value for MKDIR_P within a source directory, because that will
4217 # break other packages using the cache if that directory is
4218 # removed, or if the value is a relative name.
4219 MKDIR_P="$ac_install_sh -d"
4220 fi
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223 printf "%s\n" "$MKDIR_P" >&6; }
4224
4225 for ac_prog in gawk mawk nawk awk
4226 do
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 printf %s "checking for $ac_word... " >&6; }
4231 if test ${ac_cv_prog_AWK+y}
4232 then :
4233 printf %s "(cached) " >&6
4234 else $as_nop
4235 if test -n "$AWK"; then
4236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 case $as_dir in #(((
4243 '') as_dir=./ ;;
4244 */) ;;
4245 *) as_dir=$as_dir/ ;;
4246 esac
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_AWK="$ac_prog"
4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 AWK=$ac_cv_prog_AWK
4260 if test -n "$AWK"; then
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4262 printf "%s\n" "$AWK" >&6; }
4263 else
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 printf "%s\n" "no" >&6; }
4266 fi
4267
4268
4269 test -n "$AWK" && break
4270 done
4271
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4273 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4274 set x ${MAKE-make}
4275 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4276 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 cat >conftest.make <<\_ACEOF
4281 SHELL = /bin/sh
4282 all:
4283 @echo '@@@%%%=$(MAKE)=@@@%%%'
4284 _ACEOF
4285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4287 *@@@%%%=?*=@@@%%%*)
4288 eval ac_cv_prog_make_${ac_make}_set=yes;;
4289 *)
4290 eval ac_cv_prog_make_${ac_make}_set=no;;
4291 esac
4292 rm -f conftest.make
4293 fi
4294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 printf "%s\n" "yes" >&6; }
4297 SET_MAKE=
4298 else
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 printf "%s\n" "no" >&6; }
4301 SET_MAKE="MAKE=${MAKE-make}"
4302 fi
4303
4304 rm -rf .tst 2>/dev/null
4305 mkdir .tst 2>/dev/null
4306 if test -d .tst; then
4307 am__leading_dot=.
4308 else
4309 am__leading_dot=_
4310 fi
4311 rmdir .tst 2>/dev/null
4312
4313 DEPDIR="${am__leading_dot}deps"
4314
4315 ac_config_commands="$ac_config_commands depfiles"
4316
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4318 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4319 cat > confinc.mk << 'END'
4320 am__doit:
4321 @echo this is the am__doit target >confinc.out
4322 .PHONY: am__doit
4323 END
4324 am__include="#"
4325 am__quote=
4326 # BSD make does it like this.
4327 echo '.include "confinc.mk" # ignored' > confmf.BSD
4328 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4329 echo 'include confinc.mk # ignored' > confmf.GNU
4330 _am_result=no
4331 for s in GNU BSD; do
4332 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4333 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }
4337 case $?:`cat confinc.out 2>/dev/null` in #(
4338 '0:this is the am__doit target') :
4339 case $s in #(
4340 BSD) :
4341 am__include='.include' am__quote='"' ;; #(
4342 *) :
4343 am__include='include' am__quote='' ;;
4344 esac ;; #(
4345 *) :
4346 ;;
4347 esac
4348 if test "$am__include" != "#"; then
4349 _am_result="yes ($s style)"
4350 break
4351 fi
4352 done
4353 rm -f confinc.* confmf.*
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4355 printf "%s\n" "${_am_result}" >&6; }
4356
4357 # Check whether --enable-dependency-tracking was given.
4358 if test ${enable_dependency_tracking+y}
4359 then :
4360 enableval=$enable_dependency_tracking;
4361 fi
4362
4363 if test "x$enable_dependency_tracking" != xno; then
4364 am_depcomp="$ac_aux_dir/depcomp"
4365 AMDEPBACKSLASH='\'
4366 am__nodep='_no'
4367 fi
4368 if test "x$enable_dependency_tracking" != xno; then
4369 AMDEP_TRUE=
4370 AMDEP_FALSE='#'
4371 else
4372 AMDEP_TRUE='#'
4373 AMDEP_FALSE=
4374 fi
4375
4376
4377 # Check whether --enable-silent-rules was given.
4378 if test ${enable_silent_rules+y}
4379 then :
4380 enableval=$enable_silent_rules;
4381 fi
4382
4383 case $enable_silent_rules in # (((
4384 yes) AM_DEFAULT_VERBOSITY=0;;
4385 no) AM_DEFAULT_VERBOSITY=1;;
4386 *) AM_DEFAULT_VERBOSITY=1;;
4387 esac
4388 am_make=${MAKE-make}
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4390 printf %s "checking whether $am_make supports nested variables... " >&6; }
4391 if test ${am_cv_make_support_nested_variables+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else $as_nop
4395 if printf "%s\n" 'TRUE=$(BAR$(V))
4396 BAR0=false
4397 BAR1=true
4398 V=1
4399 am__doit:
4400 @$(TRUE)
4401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4402 am_cv_make_support_nested_variables=yes
4403 else
4404 am_cv_make_support_nested_variables=no
4405 fi
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4408 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4409 if test $am_cv_make_support_nested_variables = yes; then
4410 AM_V='$(V)'
4411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4412 else
4413 AM_V=$AM_DEFAULT_VERBOSITY
4414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4415 fi
4416 AM_BACKSLASH='\'
4417
4418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4420 # is not polluted with repeated "-I."
4421 am__isrc=' -I$(srcdir)'
4422 # test to see if srcdir already configured
4423 if test -f $srcdir/config.status; then
4424 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4425 fi
4426 fi
4427
4428 # test whether we have cygpath
4429 if test -z "$CYGPATH_W"; then
4430 if (cygpath --version) >/dev/null 2>/dev/null; then
4431 CYGPATH_W='cygpath -w'
4432 else
4433 CYGPATH_W=echo
4434 fi
4435 fi
4436
4437
4438 # Define the identity of the package.
4439 PACKAGE='xf86-input-mouse'
4440 VERSION='1.9.4'
4441
4442
4443 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4444
4445
4446 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4447
4448 # Some tools Automake needs.
4449
4450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4451
4452
4453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4454
4455
4456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4457
4458
4459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4460
4461
4462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4463
4464 # For better backward compatibility. To be removed once Automake 1.9.x
4465 # dies out for good. For more background, see:
4466 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4468 mkdir_p='$(MKDIR_P)'
4469
4470 # We need awk for the "check" target (and possibly the TAP driver). The
4471 # system "awk" is bad on some platforms.
4472 # Always define AMTAR for backward compatibility. Yes, it's still used
4473 # in the wild :-( We should find a proper way to deprecate it ...
4474 AMTAR='$${TAR-tar}'
4475
4476
4477 # We'll loop over all known methods to create a tar archive until one works.
4478 _am_tools='gnutar pax cpio none'
4479
4480 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4481
4482
4483
4484
4485
4486 depcc="$CC" am_compiler_list=
4487
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4489 printf %s "checking dependency style of $depcc... " >&6; }
4490 if test ${am_cv_CC_dependencies_compiler_type+y}
4491 then :
4492 printf %s "(cached) " >&6
4493 else $as_nop
4494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495 # We make a subdir and do the tests there. Otherwise we can end up
4496 # making bogus files that we don't know about and never remove. For
4497 # instance it was reported that on HP-UX the gcc test will end up
4498 # making a dummy file named 'D' -- because '-MD' means "put the output
4499 # in D".
4500 rm -rf conftest.dir
4501 mkdir conftest.dir
4502 # Copy depcomp to subdir because otherwise we won't find it if we're
4503 # using a relative directory.
4504 cp "$am_depcomp" conftest.dir
4505 cd conftest.dir
4506 # We will build objects and dependencies in a subdirectory because
4507 # it helps to detect inapplicable dependency modes. For instance
4508 # both Tru64's cc and ICC support -MD to output dependencies as a
4509 # side effect of compilation, but ICC will put the dependencies in
4510 # the current directory while Tru64 will put them in the object
4511 # directory.
4512 mkdir sub
4513
4514 am_cv_CC_dependencies_compiler_type=none
4515 if test "$am_compiler_list" = ""; then
4516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4517 fi
4518 am__universal=false
4519 case " $depcc " in #(
4520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4521 esac
4522
4523 for depmode in $am_compiler_list; do
4524 # Setup a source with many dependencies, because some compilers
4525 # like to wrap large dependency lists on column 80 (with \), and
4526 # we should not choose a depcomp mode which is confused by this.
4527 #
4528 # We need to recreate these files for each test, as the compiler may
4529 # overwrite some of them when testing with obscure command lines.
4530 # This happens at least with the AIX C compiler.
4531 : > sub/conftest.c
4532 for i in 1 2 3 4 5 6; do
4533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4534 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4535 # Solaris 10 /bin/sh.
4536 echo '/* dummy */' > sub/conftst$i.h
4537 done
4538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4539
4540 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4541 # mode. It turns out that the SunPro C++ compiler does not properly
4542 # handle '-M -o', and we need to detect this. Also, some Intel
4543 # versions had trouble with output in subdirs.
4544 am__obj=sub/conftest.${OBJEXT-o}
4545 am__minus_obj="-o $am__obj"
4546 case $depmode in
4547 gcc)
4548 # This depmode causes a compiler race in universal mode.
4549 test "$am__universal" = false || continue
4550 ;;
4551 nosideeffect)
4552 # After this tag, mechanisms are not by side-effect, so they'll
4553 # only be used when explicitly requested.
4554 if test "x$enable_dependency_tracking" = xyes; then
4555 continue
4556 else
4557 break
4558 fi
4559 ;;
4560 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4561 # This compiler won't grok '-c -o', but also, the minuso test has
4562 # not run yet. These depmodes are late enough in the game, and
4563 # so weak that their functioning should not be impacted.
4564 am__obj=conftest.${OBJEXT-o}
4565 am__minus_obj=
4566 ;;
4567 none) break ;;
4568 esac
4569 if depmode=$depmode \
4570 source=sub/conftest.c object=$am__obj \
4571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4573 >/dev/null 2>conftest.err &&
4574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4578 # icc doesn't choke on unknown options, it will just issue warnings
4579 # or remarks (even with -Werror). So we grep stderr for any message
4580 # that says an option was ignored or not supported.
4581 # When given -MP, icc 7.0 and 7.1 complain thusly:
4582 # icc: Command line warning: ignoring option '-M'; no argument required
4583 # The diagnosis changed in icc 8.0:
4584 # icc: Command line remark: option '-MP' not supported
4585 if (grep 'ignoring option' conftest.err ||
4586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4587 am_cv_CC_dependencies_compiler_type=$depmode
4588 break
4589 fi
4590 fi
4591 done
4592
4593 cd ..
4594 rm -rf conftest.dir
4595 else
4596 am_cv_CC_dependencies_compiler_type=none
4597 fi
4598
4599 fi
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4601 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4603
4604 if
4605 test "x$enable_dependency_tracking" != xno \
4606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4607 am__fastdepCC_TRUE=
4608 am__fastdepCC_FALSE='#'
4609 else
4610 am__fastdepCC_TRUE='#'
4611 am__fastdepCC_FALSE=
4612 fi
4613
4614
4615 # Variables for tags utilities; see am/tags.am
4616 if test -z "$CTAGS"; then
4617 CTAGS=ctags
4618 fi
4619
4620 if test -z "$ETAGS"; then
4621 ETAGS=etags
4622 fi
4623
4624 if test -z "$CSCOPE"; then
4625 CSCOPE=cscope
4626 fi
4627
4628
4629
4630 # POSIX will say in a future version that running "rm -f" with no argument
4631 # is OK; and we want to be able to make that assumption in our Makefile
4632 # recipes. So use an aggressive probe to check that the usage we want is
4633 # actually supported "in the wild" to an acceptable degree.
4634 # See automake bug#10828.
4635 # To make any issue more visible, cause the running configure to be aborted
4636 # by default if the 'rm' program in use doesn't match our expectations; the
4637 # user can still override this though.
4638 if rm -f && rm -fr && rm -rf; then : OK; else
4639 cat >&2 <<'END'
4640 Oops!
4641
4642 Your 'rm' program seems unable to run without file operands specified
4643 on the command line, even when the '-f' option is present. This is contrary
4644 to the behaviour of most rm programs out there, and not conforming with
4645 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4646
4647 Please tell bug-automake@gnu.org about your system, including the value
4648 of your $PATH and any error possibly output before this message. This
4649 can help us improve future automake versions.
4650
4651 END
4652 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4653 echo 'Configuration will proceed anyway, since you have set the' >&2
4654 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4655 echo >&2
4656 else
4657 cat >&2 <<'END'
4658 Aborting the configuration process, to ensure you take notice of the issue.
4659
4660 You can download and install GNU coreutils to get an 'rm' implementation
4661 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4662
4663 If you want to complete the configuration process using your problematic
4664 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4665 to "yes", and re-run configure.
4666
4667 END
4668 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4669 fi
4670 fi
4671
4672
4673 # Initialize libtool
4674 # Check whether --enable-static was given.
4675 if test ${enable_static+y}
4676 then :
4677 enableval=$enable_static; p=${PACKAGE-default}
4678 case $enableval in
4679 yes) enable_static=yes ;;
4680 no) enable_static=no ;;
4681 *)
4682 enable_static=no
4683 # Look at the argument we got. We use all the common list separators.
4684 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4685 for pkg in $enableval; do
4686 IFS=$lt_save_ifs
4687 if test "X$pkg" = "X$p"; then
4688 enable_static=yes
4689 fi
4690 done
4691 IFS=$lt_save_ifs
4692 ;;
4693 esac
4694 else $as_nop
4695 enable_static=no
4696 fi
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 case `pwd` in
4707 *\ * | *\ *)
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4709 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4710 esac
4711
4712
4713
4714 macro_version='2.4.7'
4715 macro_revision='2.4.7'
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 ltmain=$ac_aux_dir/ltmain.sh
4731
4732
4733
4734 # Make sure we can run config.sub.
4735 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4736 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4737
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4739 printf %s "checking build system type... " >&6; }
4740 if test ${ac_cv_build+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else $as_nop
4744 ac_build_alias=$build_alias
4745 test "x$ac_build_alias" = x &&
4746 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4747 test "x$ac_build_alias" = x &&
4748 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4749 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4750 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4751
4752 fi
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4754 printf "%s\n" "$ac_cv_build" >&6; }
4755 case $ac_cv_build in
4756 *-*-*) ;;
4757 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4758 esac
4759 build=$ac_cv_build
4760 ac_save_IFS=$IFS; IFS='-'
4761 set x $ac_cv_build
4762 shift
4763 build_cpu=$1
4764 build_vendor=$2
4765 shift; shift
4766 # Remember, the first character of IFS is used to create $*,
4767 # except with old shells:
4768 build_os=$*
4769 IFS=$ac_save_IFS
4770 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4771
4772
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4774 printf %s "checking host system type... " >&6; }
4775 if test ${ac_cv_host+y}
4776 then :
4777 printf %s "(cached) " >&6
4778 else $as_nop
4779 if test "x$host_alias" = x; then
4780 ac_cv_host=$ac_cv_build
4781 else
4782 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4783 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4784 fi
4785
4786 fi
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4788 printf "%s\n" "$ac_cv_host" >&6; }
4789 case $ac_cv_host in
4790 *-*-*) ;;
4791 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4792 esac
4793 host=$ac_cv_host
4794 ac_save_IFS=$IFS; IFS='-'
4795 set x $ac_cv_host
4796 shift
4797 host_cpu=$1
4798 host_vendor=$2
4799 shift; shift
4800 # Remember, the first character of IFS is used to create $*,
4801 # except with old shells:
4802 host_os=$*
4803 IFS=$ac_save_IFS
4804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4805
4806
4807 # Backslashify metacharacters that are still active within
4808 # double-quoted strings.
4809 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4810
4811 # Same as above, but do not quote variable references.
4812 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4813
4814 # Sed substitution to delay expansion of an escaped shell variable in a
4815 # double_quote_subst'ed string.
4816 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4817
4818 # Sed substitution to delay expansion of an escaped single quote.
4819 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4820
4821 # Sed substitution to avoid accidental globbing in evaled expressions
4822 no_glob_subst='s/\*/\\\*/g'
4823
4824 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4826 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4827
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4829 printf %s "checking how to print strings... " >&6; }
4830 # Test print first, because it will be a builtin if present.
4831 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4832 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4833 ECHO='print -r --'
4834 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4835 ECHO='printf %s\n'
4836 else
4837 # Use this function as a fallback that always works.
4838 func_fallback_echo ()
4839 {
4840 eval 'cat <<_LTECHO_EOF
4841 $1
4842 _LTECHO_EOF'
4843 }
4844 ECHO='func_fallback_echo'
4845 fi
4846
4847 # func_echo_all arg...
4848 # Invoke $ECHO with all args, space-separated.
4849 func_echo_all ()
4850 {
4851 $ECHO ""
4852 }
4853
4854 case $ECHO in
4855 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4856 printf "%s\n" "printf" >&6; } ;;
4857 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4858 printf "%s\n" "print -r" >&6; } ;;
4859 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4860 printf "%s\n" "cat" >&6; } ;;
4861 esac
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4877 printf %s "checking for a sed that does not truncate output... " >&6; }
4878 if test ${ac_cv_path_SED+y}
4879 then :
4880 printf %s "(cached) " >&6
4881 else $as_nop
4882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4883 for ac_i in 1 2 3 4 5 6 7; do
4884 ac_script="$ac_script$as_nl$ac_script"
4885 done
4886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4887 { ac_script=; unset ac_script;}
4888 if test -z "$SED"; then
4889 ac_path_SED_found=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894 IFS=$as_save_IFS
4895 case $as_dir in #(((
4896 '') as_dir=./ ;;
4897 */) ;;
4898 *) as_dir=$as_dir/ ;;
4899 esac
4900 for ac_prog in sed gsed
4901 do
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4904 as_fn_executable_p "$ac_path_SED" || continue
4905 # Check for GNU ac_path_SED and select it if it is found.
4906 # Check for GNU $ac_path_SED
4907 case `"$ac_path_SED" --version 2>&1` in
4908 *GNU*)
4909 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4910 *)
4911 ac_count=0
4912 printf %s 0123456789 >"conftest.in"
4913 while :
4914 do
4915 cat "conftest.in" "conftest.in" >"conftest.tmp"
4916 mv "conftest.tmp" "conftest.in"
4917 cp "conftest.in" "conftest.nl"
4918 printf "%s\n" '' >> "conftest.nl"
4919 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921 as_fn_arith $ac_count + 1 && ac_count=$as_val
4922 if test $ac_count -gt ${ac_path_SED_max-0}; then
4923 # Best one so far, save it but keep looking for a better one
4924 ac_cv_path_SED="$ac_path_SED"
4925 ac_path_SED_max=$ac_count
4926 fi
4927 # 10*(2^10) chars as input seems more than enough
4928 test $ac_count -gt 10 && break
4929 done
4930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933 $ac_path_SED_found && break 3
4934 done
4935 done
4936 done
4937 IFS=$as_save_IFS
4938 if test -z "$ac_cv_path_SED"; then
4939 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4940 fi
4941 else
4942 ac_cv_path_SED=$SED
4943 fi
4944
4945 fi
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4947 printf "%s\n" "$ac_cv_path_SED" >&6; }
4948 SED="$ac_cv_path_SED"
4949 rm -f conftest.sed
4950
4951 test -z "$SED" && SED=sed
4952 Xsed="$SED -e 1s/^X//"
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4965 printf %s "checking for grep that handles long lines and -e... " >&6; }
4966 if test ${ac_cv_path_GREP+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else $as_nop
4970 if test -z "$GREP"; then
4971 ac_path_GREP_found=false
4972 # Loop through the user's path and test for each of PROGNAME-LIST
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4975 do
4976 IFS=$as_save_IFS
4977 case $as_dir in #(((
4978 '') as_dir=./ ;;
4979 */) ;;
4980 *) as_dir=$as_dir/ ;;
4981 esac
4982 for ac_prog in grep ggrep
4983 do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4986 as_fn_executable_p "$ac_path_GREP" || continue
4987 # Check for GNU ac_path_GREP and select it if it is found.
4988 # Check for GNU $ac_path_GREP
4989 case `"$ac_path_GREP" --version 2>&1` in
4990 *GNU*)
4991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4992 *)
4993 ac_count=0
4994 printf %s 0123456789 >"conftest.in"
4995 while :
4996 do
4997 cat "conftest.in" "conftest.in" >"conftest.tmp"
4998 mv "conftest.tmp" "conftest.in"
4999 cp "conftest.in" "conftest.nl"
5000 printf "%s\n" 'GREP' >> "conftest.nl"
5001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003 as_fn_arith $ac_count + 1 && ac_count=$as_val
5004 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5005 # Best one so far, save it but keep looking for a better one
5006 ac_cv_path_GREP="$ac_path_GREP"
5007 ac_path_GREP_max=$ac_count
5008 fi
5009 # 10*(2^10) chars as input seems more than enough
5010 test $ac_count -gt 10 && break
5011 done
5012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5013 esac
5014
5015 $ac_path_GREP_found && break 3
5016 done
5017 done
5018 done
5019 IFS=$as_save_IFS
5020 if test -z "$ac_cv_path_GREP"; then
5021 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022 fi
5023 else
5024 ac_cv_path_GREP=$GREP
5025 fi
5026
5027 fi
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5029 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5030 GREP="$ac_cv_path_GREP"
5031
5032
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5034 printf %s "checking for egrep... " >&6; }
5035 if test ${ac_cv_path_EGREP+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else $as_nop
5039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5040 then ac_cv_path_EGREP="$GREP -E"
5041 else
5042 if test -z "$EGREP"; then
5043 ac_path_EGREP_found=false
5044 # Loop through the user's path and test for each of PROGNAME-LIST
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5047 do
5048 IFS=$as_save_IFS
5049 case $as_dir in #(((
5050 '') as_dir=./ ;;
5051 */) ;;
5052 *) as_dir=$as_dir/ ;;
5053 esac
5054 for ac_prog in egrep
5055 do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5058 as_fn_executable_p "$ac_path_EGREP" || continue
5059 # Check for GNU ac_path_EGREP and select it if it is found.
5060 # Check for GNU $ac_path_EGREP
5061 case `"$ac_path_EGREP" --version 2>&1` in
5062 *GNU*)
5063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5064 *)
5065 ac_count=0
5066 printf %s 0123456789 >"conftest.in"
5067 while :
5068 do
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 printf "%s\n" 'EGREP' >> "conftest.nl"
5073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075 as_fn_arith $ac_count + 1 && ac_count=$as_val
5076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_EGREP="$ac_path_EGREP"
5079 ac_path_EGREP_max=$ac_count
5080 fi
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5083 done
5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5086
5087 $ac_path_EGREP_found && break 3
5088 done
5089 done
5090 done
5091 IFS=$as_save_IFS
5092 if test -z "$ac_cv_path_EGREP"; then
5093 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094 fi
5095 else
5096 ac_cv_path_EGREP=$EGREP
5097 fi
5098
5099 fi
5100 fi
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5102 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5103 EGREP="$ac_cv_path_EGREP"
5104
5105
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5107 printf %s "checking for fgrep... " >&6; }
5108 if test ${ac_cv_path_FGREP+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5113 then ac_cv_path_FGREP="$GREP -F"
5114 else
5115 if test -z "$FGREP"; then
5116 ac_path_FGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 do
5121 IFS=$as_save_IFS
5122 case $as_dir in #(((
5123 '') as_dir=./ ;;
5124 */) ;;
5125 *) as_dir=$as_dir/ ;;
5126 esac
5127 for ac_prog in fgrep
5128 do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5131 as_fn_executable_p "$ac_path_FGREP" || continue
5132 # Check for GNU ac_path_FGREP and select it if it is found.
5133 # Check for GNU $ac_path_FGREP
5134 case `"$ac_path_FGREP" --version 2>&1` in
5135 *GNU*)
5136 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5137 *)
5138 ac_count=0
5139 printf %s 0123456789 >"conftest.in"
5140 while :
5141 do
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 printf "%s\n" 'FGREP' >> "conftest.nl"
5146 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148 as_fn_arith $ac_count + 1 && ac_count=$as_val
5149 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_FGREP="$ac_path_FGREP"
5152 ac_path_FGREP_max=$ac_count
5153 fi
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5156 done
5157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158 esac
5159
5160 $ac_path_FGREP_found && break 3
5161 done
5162 done
5163 done
5164 IFS=$as_save_IFS
5165 if test -z "$ac_cv_path_FGREP"; then
5166 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5167 fi
5168 else
5169 ac_cv_path_FGREP=$FGREP
5170 fi
5171
5172 fi
5173 fi
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5175 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5176 FGREP="$ac_cv_path_FGREP"
5177
5178
5179 test -z "$GREP" && GREP=grep
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 # Check whether --with-gnu-ld was given.
5200 if test ${with_gnu_ld+y}
5201 then :
5202 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5203 else $as_nop
5204 with_gnu_ld=no
5205 fi
5206
5207 ac_prog=ld
5208 if test yes = "$GCC"; then
5209 # Check if gcc -print-prog-name=ld gives a path.
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5211 printf %s "checking for ld used by $CC... " >&6; }
5212 case $host in
5213 *-*-mingw*)
5214 # gcc leaves a trailing carriage return, which upsets mingw
5215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5216 *)
5217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5218 esac
5219 case $ac_prog in
5220 # Accept absolute paths.
5221 [\\/]* | ?:[\\/]*)
5222 re_direlt='/[^/][^/]*/\.\./'
5223 # Canonicalize the pathname of ld
5224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5227 done
5228 test -z "$LD" && LD=$ac_prog
5229 ;;
5230 "")
5231 # If it fails, then pretend we aren't using GCC.
5232 ac_prog=ld
5233 ;;
5234 *)
5235 # If it is relative, then search for the first ld in PATH.
5236 with_gnu_ld=unknown
5237 ;;
5238 esac
5239 elif test yes = "$with_gnu_ld"; then
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5241 printf %s "checking for GNU ld... " >&6; }
5242 else
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5244 printf %s "checking for non-GNU ld... " >&6; }
5245 fi
5246 if test ${lt_cv_path_LD+y}
5247 then :
5248 printf %s "(cached) " >&6
5249 else $as_nop
5250 if test -z "$LD"; then
5251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5252 for ac_dir in $PATH; do
5253 IFS=$lt_save_ifs
5254 test -z "$ac_dir" && ac_dir=.
5255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5256 lt_cv_path_LD=$ac_dir/$ac_prog
5257 # Check to see if the program is GNU ld. I'd rather use --version,
5258 # but apparently some variants of GNU ld only accept -v.
5259 # Break only if it was the GNU/non-GNU ld that we prefer.
5260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 test no != "$with_gnu_ld" && break
5263 ;;
5264 *)
5265 test yes != "$with_gnu_ld" && break
5266 ;;
5267 esac
5268 fi
5269 done
5270 IFS=$lt_save_ifs
5271 else
5272 lt_cv_path_LD=$LD # Let the user override the test with a path.
5273 fi
5274 fi
5275
5276 LD=$lt_cv_path_LD
5277 if test -n "$LD"; then
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5279 printf "%s\n" "$LD" >&6; }
5280 else
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 printf "%s\n" "no" >&6; }
5283 fi
5284 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5286 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5287 if test ${lt_cv_prog_gnu_ld+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else $as_nop
5291 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5292 case `$LD -v 2>&1 </dev/null` in
5293 *GNU* | *'with BFD'*)
5294 lt_cv_prog_gnu_ld=yes
5295 ;;
5296 *)
5297 lt_cv_prog_gnu_ld=no
5298 ;;
5299 esac
5300 fi
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5302 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5303 with_gnu_ld=$lt_cv_prog_gnu_ld
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5314 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5315 if test ${lt_cv_path_NM+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 if test -n "$NM"; then
5320 # Let the user override the test.
5321 lt_cv_path_NM=$NM
5322 else
5323 lt_nm_to_check=${ac_tool_prefix}nm
5324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325 lt_nm_to_check="$lt_nm_to_check nm"
5326 fi
5327 for lt_tmp_nm in $lt_nm_to_check; do
5328 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5330 IFS=$lt_save_ifs
5331 test -z "$ac_dir" && ac_dir=.
5332 tmp_nm=$ac_dir/$lt_tmp_nm
5333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5334 # Check to see if the nm accepts a BSD-compat flag.
5335 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5336 # nm: unknown option "B" ignored
5337 # Tru64's nm complains that /dev/null is an invalid object file
5338 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5339 case $build_os in
5340 mingw*) lt_bad_file=conftest.nm/nofile ;;
5341 *) lt_bad_file=/dev/null ;;
5342 esac
5343 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5344 *$lt_bad_file* | *'Invalid file or object type'*)
5345 lt_cv_path_NM="$tmp_nm -B"
5346 break 2
5347 ;;
5348 *)
5349 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5350 */dev/null*)
5351 lt_cv_path_NM="$tmp_nm -p"
5352 break 2
5353 ;;
5354 *)
5355 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5356 continue # so that we can try to find one that supports BSD flags
5357 ;;
5358 esac
5359 ;;
5360 esac
5361 fi
5362 done
5363 IFS=$lt_save_ifs
5364 done
5365 : ${lt_cv_path_NM=no}
5366 fi
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5369 printf "%s\n" "$lt_cv_path_NM" >&6; }
5370 if test no != "$lt_cv_path_NM"; then
5371 NM=$lt_cv_path_NM
5372 else
5373 # Didn't find any BSD compatible name lister, look for dumpbin.
5374 if test -n "$DUMPBIN"; then :
5375 # Let the user override the test.
5376 else
5377 if test -n "$ac_tool_prefix"; then
5378 for ac_prog in dumpbin "link -dump"
5379 do
5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 printf %s "checking for $ac_word... " >&6; }
5384 if test ${ac_cv_prog_DUMPBIN+y}
5385 then :
5386 printf %s "(cached) " >&6
5387 else $as_nop
5388 if test -n "$DUMPBIN"; then
5389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 case $as_dir in #(((
5396 '') as_dir=./ ;;
5397 */) ;;
5398 *) as_dir=$as_dir/ ;;
5399 esac
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 DUMPBIN=$ac_cv_prog_DUMPBIN
5413 if test -n "$DUMPBIN"; then
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5415 printf "%s\n" "$DUMPBIN" >&6; }
5416 else
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 printf "%s\n" "no" >&6; }
5419 fi
5420
5421
5422 test -n "$DUMPBIN" && break
5423 done
5424 fi
5425 if test -z "$DUMPBIN"; then
5426 ac_ct_DUMPBIN=$DUMPBIN
5427 for ac_prog in dumpbin "link -dump"
5428 do
5429 # Extract the first word of "$ac_prog", so it can be a program name with args.
5430 set dummy $ac_prog; ac_word=$2
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 printf %s "checking for $ac_word... " >&6; }
5433 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5434 then :
5435 printf %s "(cached) " >&6
5436 else $as_nop
5437 if test -n "$ac_ct_DUMPBIN"; then
5438 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443 IFS=$as_save_IFS
5444 case $as_dir in #(((
5445 '') as_dir=./ ;;
5446 */) ;;
5447 *) as_dir=$as_dir/ ;;
5448 esac
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5462 if test -n "$ac_ct_DUMPBIN"; then
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5464 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5465 else
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 printf "%s\n" "no" >&6; }
5468 fi
5469
5470
5471 test -n "$ac_ct_DUMPBIN" && break
5472 done
5473
5474 if test "x$ac_ct_DUMPBIN" = x; then
5475 DUMPBIN=":"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5482 esac
5483 DUMPBIN=$ac_ct_DUMPBIN
5484 fi
5485 fi
5486
5487 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5488 *COFF*)
5489 DUMPBIN="$DUMPBIN -symbols -headers"
5490 ;;
5491 *)
5492 DUMPBIN=:
5493 ;;
5494 esac
5495 fi
5496
5497 if test : != "$DUMPBIN"; then
5498 NM=$DUMPBIN
5499 fi
5500 fi
5501 test -z "$NM" && NM=nm
5502
5503
5504
5505
5506
5507
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5509 printf %s "checking the name lister ($NM) interface... " >&6; }
5510 if test ${lt_cv_nm_interface+y}
5511 then :
5512 printf %s "(cached) " >&6
5513 else $as_nop
5514 lt_cv_nm_interface="BSD nm"
5515 echo "int some_variable = 0;" > conftest.$ac_ext
5516 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5517 (eval "$ac_compile" 2>conftest.err)
5518 cat conftest.err >&5
5519 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5520 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5521 cat conftest.err >&5
5522 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5523 cat conftest.out >&5
5524 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5525 lt_cv_nm_interface="MS dumpbin"
5526 fi
5527 rm -f conftest*
5528 fi
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5530 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5531
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5533 printf %s "checking whether ln -s works... " >&6; }
5534 LN_S=$as_ln_s
5535 if test "$LN_S" = "ln -s"; then
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537 printf "%s\n" "yes" >&6; }
5538 else
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5540 printf "%s\n" "no, using $LN_S" >&6; }
5541 fi
5542
5543 # find the maximum length of command line arguments
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5545 printf %s "checking the maximum length of command line arguments... " >&6; }
5546 if test ${lt_cv_sys_max_cmd_len+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else $as_nop
5550 i=0
5551 teststring=ABCD
5552
5553 case $build_os in
5554 msdosdjgpp*)
5555 # On DJGPP, this test can blow up pretty badly due to problems in libc
5556 # (any single argument exceeding 2000 bytes causes a buffer overrun
5557 # during glob expansion). Even if it were fixed, the result of this
5558 # check would be larger than it should be.
5559 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5560 ;;
5561
5562 gnu*)
5563 # Under GNU Hurd, this test is not required because there is
5564 # no limit to the length of command line arguments.
5565 # Libtool will interpret -1 as no limit whatsoever
5566 lt_cv_sys_max_cmd_len=-1;
5567 ;;
5568
5569 cygwin* | mingw* | cegcc*)
5570 # On Win9x/ME, this test blows up -- it succeeds, but takes
5571 # about 5 minutes as the teststring grows exponentially.
5572 # Worse, since 9x/ME are not pre-emptively multitasking,
5573 # you end up with a "frozen" computer, even though with patience
5574 # the test eventually succeeds (with a max line length of 256k).
5575 # Instead, let's just punt: use the minimum linelength reported by
5576 # all of the supported platforms: 8192 (on NT/2K/XP).
5577 lt_cv_sys_max_cmd_len=8192;
5578 ;;
5579
5580 mint*)
5581 # On MiNT this can take a long time and run out of memory.
5582 lt_cv_sys_max_cmd_len=8192;
5583 ;;
5584
5585 amigaos*)
5586 # On AmigaOS with pdksh, this test takes hours, literally.
5587 # So we just punt and use a minimum line length of 8192.
5588 lt_cv_sys_max_cmd_len=8192;
5589 ;;
5590
5591 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5592 # This has been around since 386BSD, at least. Likely further.
5593 if test -x /sbin/sysctl; then
5594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5595 elif test -x /usr/sbin/sysctl; then
5596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5597 else
5598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5599 fi
5600 # And add a safety zone
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5603 ;;
5604
5605 interix*)
5606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5607 lt_cv_sys_max_cmd_len=196608
5608 ;;
5609
5610 os2*)
5611 # The test takes a long time on OS/2.
5612 lt_cv_sys_max_cmd_len=8192
5613 ;;
5614
5615 osf*)
5616 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5617 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5618 # nice to cause kernel panics so lets avoid the loop below.
5619 # First set a reasonable default.
5620 lt_cv_sys_max_cmd_len=16384
5621 #
5622 if test -x /sbin/sysconfig; then
5623 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5624 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5625 esac
5626 fi
5627 ;;
5628 sco3.2v5*)
5629 lt_cv_sys_max_cmd_len=102400
5630 ;;
5631 sysv5* | sco5v6* | sysv4.2uw2*)
5632 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5633 if test -n "$kargmax"; then
5634 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5635 else
5636 lt_cv_sys_max_cmd_len=32768
5637 fi
5638 ;;
5639 *)
5640 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5641 if test -n "$lt_cv_sys_max_cmd_len" && \
5642 test undefined != "$lt_cv_sys_max_cmd_len"; then
5643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5645 else
5646 # Make teststring a little bigger before we do anything with it.
5647 # a 1K string should be a reasonable start.
5648 for i in 1 2 3 4 5 6 7 8; do
5649 teststring=$teststring$teststring
5650 done
5651 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5652 # If test is not a shell built-in, we'll probably end up computing a
5653 # maximum length that is only half of the actual maximum length, but
5654 # we can't tell.
5655 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5656 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5657 test 17 != "$i" # 1/2 MB should be enough
5658 do
5659 i=`expr $i + 1`
5660 teststring=$teststring$teststring
5661 done
5662 # Only check the string length outside the loop.
5663 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5664 teststring=
5665 # Add a significant safety factor because C++ compilers can tack on
5666 # massive amounts of additional arguments before passing them to the
5667 # linker. It appears as though 1/2 is a usable value.
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5669 fi
5670 ;;
5671 esac
5672
5673 fi
5674
5675 if test -n "$lt_cv_sys_max_cmd_len"; then
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5677 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5678 else
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5680 printf "%s\n" "none" >&6; }
5681 fi
5682 max_cmd_len=$lt_cv_sys_max_cmd_len
5683
5684
5685
5686
5687
5688
5689 : ${CP="cp -f"}
5690 : ${MV="mv -f"}
5691 : ${RM="rm -f"}
5692
5693 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5694 lt_unset=unset
5695 else
5696 lt_unset=false
5697 fi
5698
5699
5700
5701
5702
5703 # test EBCDIC or ASCII
5704 case `echo X|tr X '\101'` in
5705 A) # ASCII based system
5706 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5707 lt_SP2NL='tr \040 \012'
5708 lt_NL2SP='tr \015\012 \040\040'
5709 ;;
5710 *) # EBCDIC based system
5711 lt_SP2NL='tr \100 \n'
5712 lt_NL2SP='tr \r\n \100\100'
5713 ;;
5714 esac
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5725 printf %s "checking how to convert $build file names to $host format... " >&6; }
5726 if test ${lt_cv_to_host_file_cmd+y}
5727 then :
5728 printf %s "(cached) " >&6
5729 else $as_nop
5730 case $host in
5731 *-*-mingw* )
5732 case $build in
5733 *-*-mingw* ) # actually msys
5734 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5735 ;;
5736 *-*-cygwin* )
5737 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5738 ;;
5739 * ) # otherwise, assume *nix
5740 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5741 ;;
5742 esac
5743 ;;
5744 *-*-cygwin* )
5745 case $build in
5746 *-*-mingw* ) # actually msys
5747 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5748 ;;
5749 *-*-cygwin* )
5750 lt_cv_to_host_file_cmd=func_convert_file_noop
5751 ;;
5752 * ) # otherwise, assume *nix
5753 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5754 ;;
5755 esac
5756 ;;
5757 * ) # unhandled hosts (and "normal" native builds)
5758 lt_cv_to_host_file_cmd=func_convert_file_noop
5759 ;;
5760 esac
5761
5762 fi
5763
5764 to_host_file_cmd=$lt_cv_to_host_file_cmd
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5766 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5767
5768
5769
5770
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5773 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5774 if test ${lt_cv_to_tool_file_cmd+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else $as_nop
5778 #assume ordinary cross tools, or native build.
5779 lt_cv_to_tool_file_cmd=func_convert_file_noop
5780 case $host in
5781 *-*-mingw* )
5782 case $build in
5783 *-*-mingw* ) # actually msys
5784 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5785 ;;
5786 esac
5787 ;;
5788 esac
5789
5790 fi
5791
5792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5794 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5795
5796
5797
5798
5799
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5801 printf %s "checking for $LD option to reload object files... " >&6; }
5802 if test ${lt_cv_ld_reload_flag+y}
5803 then :
5804 printf %s "(cached) " >&6
5805 else $as_nop
5806 lt_cv_ld_reload_flag='-r'
5807 fi
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5809 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5810 reload_flag=$lt_cv_ld_reload_flag
5811 case $reload_flag in
5812 "" | " "*) ;;
5813 *) reload_flag=" $reload_flag" ;;
5814 esac
5815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5816 case $host_os in
5817 cygwin* | mingw* | pw32* | cegcc*)
5818 if test yes != "$GCC"; then
5819 reload_cmds=false
5820 fi
5821 ;;
5822 darwin*)
5823 if test yes = "$GCC"; then
5824 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5825 else
5826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5827 fi
5828 ;;
5829 esac
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}file; ac_word=$2
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 printf %s "checking for $ac_word... " >&6; }
5844 if test ${ac_cv_prog_FILECMD+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else $as_nop
5848 if test -n "$FILECMD"; then
5849 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 case $as_dir in #(((
5856 '') as_dir=./ ;;
5857 */) ;;
5858 *) as_dir=$as_dir/ ;;
5859 esac
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 FILECMD=$ac_cv_prog_FILECMD
5873 if test -n "$FILECMD"; then
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5875 printf "%s\n" "$FILECMD" >&6; }
5876 else
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 printf "%s\n" "no" >&6; }
5879 fi
5880
5881
5882 fi
5883 if test -z "$ac_cv_prog_FILECMD"; then
5884 ac_ct_FILECMD=$FILECMD
5885 # Extract the first word of "file", so it can be a program name with args.
5886 set dummy file; ac_word=$2
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 printf %s "checking for $ac_word... " >&6; }
5889 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5890 then :
5891 printf %s "(cached) " >&6
5892 else $as_nop
5893 if test -n "$ac_ct_FILECMD"; then
5894 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 case $as_dir in #(((
5901 '') as_dir=./ ;;
5902 */) ;;
5903 *) as_dir=$as_dir/ ;;
5904 esac
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_FILECMD="file"
5908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5918 if test -n "$ac_ct_FILECMD"; then
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5920 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5921 else
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 printf "%s\n" "no" >&6; }
5924 fi
5925
5926 if test "x$ac_ct_FILECMD" = x; then
5927 FILECMD=":"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930 yes:)
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933 ac_tool_warned=yes ;;
5934 esac
5935 FILECMD=$ac_ct_FILECMD
5936 fi
5937 else
5938 FILECMD="$ac_cv_prog_FILECMD"
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947 if test -n "$ac_tool_prefix"; then
5948 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5949 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 printf %s "checking for $ac_word... " >&6; }
5952 if test ${ac_cv_prog_OBJDUMP+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else $as_nop
5956 if test -n "$OBJDUMP"; then
5957 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962 IFS=$as_save_IFS
5963 case $as_dir in #(((
5964 '') as_dir=./ ;;
5965 */) ;;
5966 *) as_dir=$as_dir/ ;;
5967 esac
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978 fi
5979 fi
5980 OBJDUMP=$ac_cv_prog_OBJDUMP
5981 if test -n "$OBJDUMP"; then
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5983 printf "%s\n" "$OBJDUMP" >&6; }
5984 else
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 printf "%s\n" "no" >&6; }
5987 fi
5988
5989
5990 fi
5991 if test -z "$ac_cv_prog_OBJDUMP"; then
5992 ac_ct_OBJDUMP=$OBJDUMP
5993 # Extract the first word of "objdump", so it can be a program name with args.
5994 set dummy objdump; ac_word=$2
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 printf %s "checking for $ac_word... " >&6; }
5997 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else $as_nop
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 case $as_dir in #(((
6009 '') as_dir=./ ;;
6010 */) ;;
6011 *) as_dir=$as_dir/ ;;
6012 esac
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6026 if test -n "$ac_ct_OBJDUMP"; then
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6028 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6029 else
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 printf "%s\n" "no" >&6; }
6032 fi
6033
6034 if test "x$ac_ct_OBJDUMP" = x; then
6035 OBJDUMP="false"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041 ac_tool_warned=yes ;;
6042 esac
6043 OBJDUMP=$ac_ct_OBJDUMP
6044 fi
6045 else
6046 OBJDUMP="$ac_cv_prog_OBJDUMP"
6047 fi
6048
6049 test -z "$OBJDUMP" && OBJDUMP=objdump
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6060 printf %s "checking how to recognize dependent libraries... " >&6; }
6061 if test ${lt_cv_deplibs_check_method+y}
6062 then :
6063 printf %s "(cached) " >&6
6064 else $as_nop
6065 lt_cv_file_magic_cmd='$MAGIC_CMD'
6066 lt_cv_file_magic_test_file=
6067 lt_cv_deplibs_check_method='unknown'
6068 # Need to set the preceding variable on all platforms that support
6069 # interlibrary dependencies.
6070 # 'none' -- dependencies not supported.
6071 # 'unknown' -- same as none, but documents that we really don't know.
6072 # 'pass_all' -- all dependencies passed with no checks.
6073 # 'test_compile' -- check by making test program.
6074 # 'file_magic [[regex]]' -- check by looking for files in library path
6075 # that responds to the $file_magic_cmd with a given extended regex.
6076 # If you have 'file' or equivalent on your system and you're not sure
6077 # whether 'pass_all' will *always* work, you probably want this one.
6078
6079 case $host_os in
6080 aix[4-9]*)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083
6084 beos*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088 bsdi[45]*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6090 lt_cv_file_magic_cmd='$FILECMD -L'
6091 lt_cv_file_magic_test_file=/shlib/libc.so
6092 ;;
6093
6094 cygwin*)
6095 # func_win32_libid is a shell function defined in ltmain.sh
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6098 ;;
6099
6100 mingw* | pw32*)
6101 # Base MSYS/MinGW do not provide the 'file' command needed by
6102 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6103 # unless we find 'file', for example because we are cross-compiling.
6104 if ( file / ) >/dev/null 2>&1; then
6105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6106 lt_cv_file_magic_cmd='func_win32_libid'
6107 else
6108 # Keep this pattern in sync with the one in func_win32_libid.
6109 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6110 lt_cv_file_magic_cmd='$OBJDUMP -f'
6111 fi
6112 ;;
6113
6114 cegcc*)
6115 # use the weaker test based on 'objdump'. See mingw*.
6116 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6117 lt_cv_file_magic_cmd='$OBJDUMP -f'
6118 ;;
6119
6120 darwin* | rhapsody*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124 freebsd* | dragonfly* | midnightbsd*)
6125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6126 case $host_cpu in
6127 i*86 )
6128 # Not sure whether the presence of OpenBSD here was a mistake.
6129 # Let's accept both of them until this is cleared up.
6130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131 lt_cv_file_magic_cmd=$FILECMD
6132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6133 ;;
6134 esac
6135 else
6136 lt_cv_deplibs_check_method=pass_all
6137 fi
6138 ;;
6139
6140 haiku*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144 hpux10.20* | hpux11*)
6145 lt_cv_file_magic_cmd=$FILECMD
6146 case $host_cpu in
6147 ia64*)
6148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6150 ;;
6151 hppa*64*)
6152 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]'
6153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6154 ;;
6155 *)
6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158 ;;
6159 esac
6160 ;;
6161
6162 interix[3-9]*)
6163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6165 ;;
6166
6167 irix5* | irix6* | nonstopux*)
6168 case $LD in
6169 *-32|*"-32 ") libmagic=32-bit;;
6170 *-n32|*"-n32 ") libmagic=N32;;
6171 *-64|*"-64 ") libmagic=64-bit;;
6172 *) libmagic=never-match;;
6173 esac
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176
6177 # This must be glibc/ELF.
6178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 netbsd*)
6183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6185 else
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6187 fi
6188 ;;
6189
6190 newos6*)
6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192 lt_cv_file_magic_cmd=$FILECMD
6193 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6194 ;;
6195
6196 *nto* | *qnx*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 openbsd* | bitrig*)
6201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6203 else
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205 fi
6206 ;;
6207
6208 osf3* | osf4* | osf5*)
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211
6212 rdos*)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216 solaris*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 sysv4 | sysv4.3*)
6225 case $host_vendor in
6226 motorola)
6227 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]'
6228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6229 ;;
6230 ncr)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233 sequent)
6234 lt_cv_file_magic_cmd='/bin/file'
6235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6236 ;;
6237 sni)
6238 lt_cv_file_magic_cmd='/bin/file'
6239 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6240 lt_cv_file_magic_test_file=/lib/libc.so
6241 ;;
6242 siemens)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245 pc)
6246 lt_cv_deplibs_check_method=pass_all
6247 ;;
6248 esac
6249 ;;
6250
6251 tpf*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254 os2*)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257 esac
6258
6259 fi
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6261 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6262
6263 file_magic_glob=
6264 want_nocaseglob=no
6265 if test "$build" = "$host"; then
6266 case $host_os in
6267 mingw* | pw32*)
6268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6269 want_nocaseglob=yes
6270 else
6271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6272 fi
6273 ;;
6274 esac
6275 fi
6276
6277 file_magic_cmd=$lt_cv_file_magic_cmd
6278 deplibs_check_method=$lt_cv_deplibs_check_method
6279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 printf %s "checking for $ac_word... " >&6; }
6307 if test ${ac_cv_prog_DLLTOOL+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else $as_nop
6311 if test -n "$DLLTOOL"; then
6312 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 DLLTOOL=$ac_cv_prog_DLLTOOL
6336 if test -n "$DLLTOOL"; then
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6338 printf "%s\n" "$DLLTOOL" >&6; }
6339 else
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 printf "%s\n" "no" >&6; }
6342 fi
6343
6344
6345 fi
6346 if test -z "$ac_cv_prog_DLLTOOL"; then
6347 ac_ct_DLLTOOL=$DLLTOOL
6348 # Extract the first word of "dlltool", so it can be a program name with args.
6349 set dummy dlltool; ac_word=$2
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 printf %s "checking for $ac_word... " >&6; }
6352 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else $as_nop
6356 if test -n "$ac_ct_DLLTOOL"; then
6357 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 case $as_dir in #(((
6364 '') as_dir=./ ;;
6365 */) ;;
6366 *) as_dir=$as_dir/ ;;
6367 esac
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6381 if test -n "$ac_ct_DLLTOOL"; then
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6383 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6384 else
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 printf "%s\n" "no" >&6; }
6387 fi
6388
6389 if test "x$ac_ct_DLLTOOL" = x; then
6390 DLLTOOL="false"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 DLLTOOL=$ac_ct_DLLTOOL
6399 fi
6400 else
6401 DLLTOOL="$ac_cv_prog_DLLTOOL"
6402 fi
6403
6404 test -z "$DLLTOOL" && DLLTOOL=dlltool
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6416 printf %s "checking how to associate runtime and link libraries... " >&6; }
6417 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 lt_cv_sharedlib_from_linklib_cmd='unknown'
6422
6423 case $host_os in
6424 cygwin* | mingw* | pw32* | cegcc*)
6425 # two different shell functions defined in ltmain.sh;
6426 # decide which one to use based on capabilities of $DLLTOOL
6427 case `$DLLTOOL --help 2>&1` in
6428 *--identify-strict*)
6429 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6430 ;;
6431 *)
6432 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6433 ;;
6434 esac
6435 ;;
6436 *)
6437 # fallback: assume linklib IS sharedlib
6438 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6439 ;;
6440 esac
6441
6442 fi
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6444 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6445 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6446 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455 for ac_prog in ar
6456 do
6457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 printf %s "checking for $ac_word... " >&6; }
6461 if test ${ac_cv_prog_AR+y}
6462 then :
6463 printf %s "(cached) " >&6
6464 else $as_nop
6465 if test -n "$AR"; then
6466 ac_cv_prog_AR="$AR" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 case $as_dir in #(((
6473 '') as_dir=./ ;;
6474 */) ;;
6475 *) as_dir=$as_dir/ ;;
6476 esac
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 AR=$ac_cv_prog_AR
6490 if test -n "$AR"; then
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6492 printf "%s\n" "$AR" >&6; }
6493 else
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 printf "%s\n" "no" >&6; }
6496 fi
6497
6498
6499 test -n "$AR" && break
6500 done
6501 fi
6502 if test -z "$AR"; then
6503 ac_ct_AR=$AR
6504 for ac_prog in ar
6505 do
6506 # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 printf %s "checking for $ac_word... " >&6; }
6510 if test ${ac_cv_prog_ac_ct_AR+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else $as_nop
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 case $as_dir in #(((
6522 '') as_dir=./ ;;
6523 */) ;;
6524 *) as_dir=$as_dir/ ;;
6525 esac
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_AR="$ac_prog"
6529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541 printf "%s\n" "$ac_ct_AR" >&6; }
6542 else
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 printf "%s\n" "no" >&6; }
6545 fi
6546
6547
6548 test -n "$ac_ct_AR" && break
6549 done
6550
6551 if test "x$ac_ct_AR" = x; then
6552 AR="false"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560 AR=$ac_ct_AR
6561 fi
6562 fi
6563
6564 : ${AR=ar}
6565
6566
6567
6568
6569
6570
6571 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6572 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6573 # higher priority because thats what people were doing historically (setting
6574 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6575 # variable obsoleted/removed.
6576
6577 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6578 lt_ar_flags=$AR_FLAGS
6579
6580
6581
6582
6583
6584
6585 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6586 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6587
6588
6589
6590
6591
6592
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6594 printf %s "checking for archiver @FILE support... " >&6; }
6595 if test ${lt_cv_ar_at_file+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else $as_nop
6599 lt_cv_ar_at_file=no
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602
6603 int
6604 main (void)
6605 {
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"
6612 then :
6613 echo conftest.$ac_objext > conftest.lst
6614 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6616 (eval $lt_ar_try) 2>&5
6617 ac_status=$?
6618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }
6620 if test 0 -eq "$ac_status"; then
6621 # Ensure the archiver fails upon bogus file names.
6622 rm -f conftest.$ac_objext libconftest.a
6623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6624 (eval $lt_ar_try) 2>&5
6625 ac_status=$?
6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627 test $ac_status = 0; }
6628 if test 0 -ne "$ac_status"; then
6629 lt_cv_ar_at_file=@
6630 fi
6631 fi
6632 rm -f conftest.* libconftest.a
6633
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6636
6637 fi
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6639 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6640
6641 if test no = "$lt_cv_ar_at_file"; then
6642 archiver_list_spec=
6643 else
6644 archiver_list_spec=$lt_cv_ar_at_file
6645 fi
6646
6647
6648
6649
6650
6651
6652
6653 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}strip; ac_word=$2
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 printf %s "checking for $ac_word... " >&6; }
6658 if test ${ac_cv_prog_STRIP+y}
6659 then :
6660 printf %s "(cached) " >&6
6661 else $as_nop
6662 if test -n "$STRIP"; then
6663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 case $as_dir in #(((
6670 '') as_dir=./ ;;
6671 */) ;;
6672 *) as_dir=$as_dir/ ;;
6673 esac
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 STRIP=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6689 printf "%s\n" "$STRIP" >&6; }
6690 else
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 printf "%s\n" "no" >&6; }
6693 fi
6694
6695
6696 fi
6697 if test -z "$ac_cv_prog_STRIP"; then
6698 ac_ct_STRIP=$STRIP
6699 # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip; ac_word=$2
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 printf %s "checking for $ac_word... " >&6; }
6703 if test ${ac_cv_prog_ac_ct_STRIP+y}
6704 then :
6705 printf %s "(cached) " >&6
6706 else $as_nop
6707 if test -n "$ac_ct_STRIP"; then
6708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 case $as_dir in #(((
6715 '') as_dir=./ ;;
6716 */) ;;
6717 *) as_dir=$as_dir/ ;;
6718 esac
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_ac_ct_STRIP="strip"
6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6732 if test -n "$ac_ct_STRIP"; then
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6734 printf "%s\n" "$ac_ct_STRIP" >&6; }
6735 else
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 printf "%s\n" "no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_STRIP" = x; then
6741 STRIP=":"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 STRIP=$ac_ct_STRIP
6750 fi
6751 else
6752 STRIP="$ac_cv_prog_STRIP"
6753 fi
6754
6755 test -z "$STRIP" && STRIP=:
6756
6757
6758
6759
6760
6761
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 printf %s "checking for $ac_word... " >&6; }
6767 if test ${ac_cv_prog_RANLIB+y}
6768 then :
6769 printf %s "(cached) " >&6
6770 else $as_nop
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 case $as_dir in #(((
6779 '') as_dir=./ ;;
6780 */) ;;
6781 *) as_dir=$as_dir/ ;;
6782 esac
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6798 printf "%s\n" "$RANLIB" >&6; }
6799 else
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 printf "%s\n" "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807 ac_ct_RANLIB=$RANLIB
6808 # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 printf %s "checking for $ac_word... " >&6; }
6812 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6813 then :
6814 printf %s "(cached) " >&6
6815 else $as_nop
6816 if test -n "$ac_ct_RANLIB"; then
6817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 case $as_dir in #(((
6824 '') as_dir=./ ;;
6825 */) ;;
6826 *) as_dir=$as_dir/ ;;
6827 esac
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_RANLIB="ranlib"
6831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6841 if test -n "$ac_ct_RANLIB"; then
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6843 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6844 else
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 printf "%s\n" "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_RANLIB" = x; then
6850 RANLIB=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 RANLIB=$ac_ct_RANLIB
6859 fi
6860 else
6861 RANLIB="$ac_cv_prog_RANLIB"
6862 fi
6863
6864 test -z "$RANLIB" && RANLIB=:
6865
6866
6867
6868
6869
6870
6871 # Determine commands to create old-style static archives.
6872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6873 old_postinstall_cmds='chmod 644 $oldlib'
6874 old_postuninstall_cmds=
6875
6876 if test -n "$RANLIB"; then
6877 case $host_os in
6878 bitrig* | openbsd*)
6879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6880 ;;
6881 *)
6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6883 ;;
6884 esac
6885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6886 fi
6887
6888 case $host_os in
6889 darwin*)
6890 lock_old_archive_extraction=yes ;;
6891 *)
6892 lock_old_archive_extraction=no ;;
6893 esac
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933 # If no C compiler was specified, use CC.
6934 LTCC=${LTCC-"$CC"}
6935
6936 # If no C compiler flags were specified, use CFLAGS.
6937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938
6939 # Allow CC to be a program name with arguments.
6940 compiler=$CC
6941
6942
6943 # Check for command to grab the raw symbol name followed by C symbol from nm.
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6945 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6946 if test ${lt_cv_sys_global_symbol_pipe+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else $as_nop
6950
6951 # These are sane defaults that work on at least a few old systems.
6952 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6953
6954 # Character class describing NM global symbol codes.
6955 symcode='[BCDEGRST]'
6956
6957 # Regexp to match symbols that can be accessed directly from C.
6958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6959
6960 # Define system-specific variables.
6961 case $host_os in
6962 aix*)
6963 symcode='[BCDT]'
6964 ;;
6965 cygwin* | mingw* | pw32* | cegcc*)
6966 symcode='[ABCDGISTW]'
6967 ;;
6968 hpux*)
6969 if test ia64 = "$host_cpu"; then
6970 symcode='[ABCDEGRST]'
6971 fi
6972 ;;
6973 irix* | nonstopux*)
6974 symcode='[BCDEGRST]'
6975 ;;
6976 osf*)
6977 symcode='[BCDEGQRST]'
6978 ;;
6979 solaris*)
6980 symcode='[BDRT]'
6981 ;;
6982 sco3.2v5*)
6983 symcode='[DT]'
6984 ;;
6985 sysv4.2uw2*)
6986 symcode='[DT]'
6987 ;;
6988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6989 symcode='[ABDT]'
6990 ;;
6991 sysv4)
6992 symcode='[DFNSTU]'
6993 ;;
6994 esac
6995
6996 # If we're using GNU nm, then use its standard symbol codes.
6997 case `$NM -V 2>&1` in
6998 *GNU* | *'with BFD'*)
6999 symcode='[ABCDGIRSTW]' ;;
7000 esac
7001
7002 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7003 # Gets list of data symbols to import.
7004 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7005 # Adjust the below global symbol transforms to fixup imported variables.
7006 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7007 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7008 lt_c_name_lib_hook="\
7009 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7010 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7011 else
7012 # Disable hooks by default.
7013 lt_cv_sys_global_symbol_to_import=
7014 lt_cdecl_hook=
7015 lt_c_name_hook=
7016 lt_c_name_lib_hook=
7017 fi
7018
7019 # Transform an extracted symbol line into a proper C declaration.
7020 # Some systems (esp. on ia64) link data and code symbols differently,
7021 # so use this general approach.
7022 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7023 $lt_cdecl_hook\
7024 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7025 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7026
7027 # Transform an extracted symbol line into symbol name and symbol address
7028 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7029 $lt_c_name_hook\
7030 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7031 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7032
7033 # Transform an extracted symbol line into symbol name with lib prefix and
7034 # symbol address.
7035 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7036 $lt_c_name_lib_hook\
7037 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7038 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7039 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7040
7041 # Handle CRLF in mingw tool chain
7042 opt_cr=
7043 case $build_os in
7044 mingw*)
7045 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7046 ;;
7047 esac
7048
7049 # Try without a prefix underscore, then with it.
7050 for ac_symprfx in "" "_"; do
7051
7052 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7053 symxfrm="\\1 $ac_symprfx\\2 \\2"
7054
7055 # Write the raw and C identifiers.
7056 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7057 # Fake it for dumpbin and say T for any non-static function,
7058 # D for any global variable and I for any imported variable.
7059 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7060 # which start with @ or ?.
7061 lt_cv_sys_global_symbol_pipe="$AWK '"\
7062 " {last_section=section; section=\$ 3};"\
7063 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7064 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7065 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7066 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7067 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7068 " \$ 0!~/External *\|/{next};"\
7069 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7070 " {if(hide[section]) next};"\
7071 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7072 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7073 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7074 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7075 " ' prfx=^$ac_symprfx"
7076 else
7077 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7078 fi
7079 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7080
7081 # Check to see that the pipe works correctly.
7082 pipe_works=no
7083
7084 rm -f conftest*
7085 cat > conftest.$ac_ext <<_LT_EOF
7086 #ifdef __cplusplus
7087 extern "C" {
7088 #endif
7089 char nm_test_var;
7090 void nm_test_func(void);
7091 void nm_test_func(void){}
7092 #ifdef __cplusplus
7093 }
7094 #endif
7095 int main(){nm_test_var='a';nm_test_func();return(0);}
7096 _LT_EOF
7097
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 # Now try to grab the symbols.
7104 nlist=conftest.nm
7105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7106 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7107 ac_status=$?
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 test $ac_status = 0; } && test -s "$nlist"; then
7110 # Try sorting and uniquifying the output.
7111 if sort "$nlist" | uniq > "$nlist"T; then
7112 mv -f "$nlist"T "$nlist"
7113 else
7114 rm -f "$nlist"T
7115 fi
7116
7117 # Make sure that we snagged all the symbols we need.
7118 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7119 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7120 cat <<_LT_EOF > conftest.$ac_ext
7121 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7122 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7123 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7124 relocations are performed -- see ld's documentation on pseudo-relocs. */
7125 # define LT_DLSYM_CONST
7126 #elif defined __osf__
7127 /* This system does not cope well with relocations in const data. */
7128 # define LT_DLSYM_CONST
7129 #else
7130 # define LT_DLSYM_CONST const
7131 #endif
7132
7133 #ifdef __cplusplus
7134 extern "C" {
7135 #endif
7136
7137 _LT_EOF
7138 # Now generate the symbol file.
7139 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7140
7141 cat <<_LT_EOF >> conftest.$ac_ext
7142
7143 /* The mapping between symbol names and symbols. */
7144 LT_DLSYM_CONST struct {
7145 const char *name;
7146 void *address;
7147 }
7148 lt__PROGRAM__LTX_preloaded_symbols[] =
7149 {
7150 { "@PROGRAM@", (void *) 0 },
7151 _LT_EOF
7152 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7153 cat <<\_LT_EOF >> conftest.$ac_ext
7154 {0, (void *) 0}
7155 };
7156
7157 /* This works around a problem in FreeBSD linker */
7158 #ifdef FREEBSD_WORKAROUND
7159 static const void *lt_preloaded_setup() {
7160 return lt__PROGRAM__LTX_preloaded_symbols;
7161 }
7162 #endif
7163
7164 #ifdef __cplusplus
7165 }
7166 #endif
7167 _LT_EOF
7168 # Now try linking the two files.
7169 mv conftest.$ac_objext conftstm.$ac_objext
7170 lt_globsym_save_LIBS=$LIBS
7171 lt_globsym_save_CFLAGS=$CFLAGS
7172 LIBS=conftstm.$ac_objext
7173 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7175 (eval $ac_link) 2>&5
7176 ac_status=$?
7177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7179 pipe_works=yes
7180 fi
7181 LIBS=$lt_globsym_save_LIBS
7182 CFLAGS=$lt_globsym_save_CFLAGS
7183 else
7184 echo "cannot find nm_test_func in $nlist" >&5
7185 fi
7186 else
7187 echo "cannot find nm_test_var in $nlist" >&5
7188 fi
7189 else
7190 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7191 fi
7192 else
7193 echo "$progname: failed program was:" >&5
7194 cat conftest.$ac_ext >&5
7195 fi
7196 rm -rf conftest* conftst*
7197
7198 # Do not use the global_symbol_pipe unless it works.
7199 if test yes = "$pipe_works"; then
7200 break
7201 else
7202 lt_cv_sys_global_symbol_pipe=
7203 fi
7204 done
7205
7206 fi
7207
7208 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7209 lt_cv_sys_global_symbol_to_cdecl=
7210 fi
7211 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7213 printf "%s\n" "failed" >&6; }
7214 else
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7216 printf "%s\n" "ok" >&6; }
7217 fi
7218
7219 # Response file support.
7220 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7221 nm_file_list_spec='@'
7222 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7223 nm_file_list_spec='@'
7224 fi
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7263 printf %s "checking for sysroot... " >&6; }
7264
7265 # Check whether --with-sysroot was given.
7266 if test ${with_sysroot+y}
7267 then :
7268 withval=$with_sysroot;
7269 else $as_nop
7270 with_sysroot=no
7271 fi
7272
7273
7274 lt_sysroot=
7275 case $with_sysroot in #(
7276 yes)
7277 if test yes = "$GCC"; then
7278 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7279 fi
7280 ;; #(
7281 /*)
7282 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7283 ;; #(
7284 no|'')
7285 ;; #(
7286 *)
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7288 printf "%s\n" "$with_sysroot" >&6; }
7289 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7290 ;;
7291 esac
7292
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7294 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7295
7296
7297
7298
7299
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7301 printf %s "checking for a working dd... " >&6; }
7302 if test ${ac_cv_path_lt_DD+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else $as_nop
7306 printf 0123456789abcdef0123456789abcdef >conftest.i
7307 cat conftest.i conftest.i >conftest2.i
7308 : ${lt_DD:=$DD}
7309 if test -z "$lt_DD"; then
7310 ac_path_lt_DD_found=false
7311 # Loop through the user's path and test for each of PROGNAME-LIST
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315 IFS=$as_save_IFS
7316 case $as_dir in #(((
7317 '') as_dir=./ ;;
7318 */) ;;
7319 *) as_dir=$as_dir/ ;;
7320 esac
7321 for ac_prog in dd
7322 do
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7325 as_fn_executable_p "$ac_path_lt_DD" || continue
7326 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7327 cmp -s conftest.i conftest.out \
7328 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7329 fi
7330 $ac_path_lt_DD_found && break 3
7331 done
7332 done
7333 done
7334 IFS=$as_save_IFS
7335 if test -z "$ac_cv_path_lt_DD"; then
7336 :
7337 fi
7338 else
7339 ac_cv_path_lt_DD=$lt_DD
7340 fi
7341
7342 rm -f conftest.i conftest2.i conftest.out
7343 fi
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7345 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7346
7347
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7349 printf %s "checking how to truncate binary pipes... " >&6; }
7350 if test ${lt_cv_truncate_bin+y}
7351 then :
7352 printf %s "(cached) " >&6
7353 else $as_nop
7354 printf 0123456789abcdef0123456789abcdef >conftest.i
7355 cat conftest.i conftest.i >conftest2.i
7356 lt_cv_truncate_bin=
7357 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7358 cmp -s conftest.i conftest.out \
7359 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7360 fi
7361 rm -f conftest.i conftest2.i conftest.out
7362 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7363 fi
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7365 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7366
7367
7368
7369
7370
7371
7372
7373 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7374 func_cc_basename ()
7375 {
7376 for cc_temp in $*""; do
7377 case $cc_temp in
7378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7380 \-*) ;;
7381 *) break;;
7382 esac
7383 done
7384 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7385 }
7386
7387 # Check whether --enable-libtool-lock was given.
7388 if test ${enable_libtool_lock+y}
7389 then :
7390 enableval=$enable_libtool_lock;
7391 fi
7392
7393 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7394
7395 # Some flags need to be propagated to the compiler or linker for good
7396 # libtool support.
7397 case $host in
7398 ia64-*-hpux*)
7399 # Find out what ABI is being produced by ac_compile, and set mode
7400 # options accordingly.
7401 echo 'int i;' > conftest.$ac_ext
7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403 (eval $ac_compile) 2>&5
7404 ac_status=$?
7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }; then
7407 case `$FILECMD conftest.$ac_objext` in
7408 *ELF-32*)
7409 HPUX_IA64_MODE=32
7410 ;;
7411 *ELF-64*)
7412 HPUX_IA64_MODE=64
7413 ;;
7414 esac
7415 fi
7416 rm -rf conftest*
7417 ;;
7418 *-*-irix6*)
7419 # Find out what ABI is being produced by ac_compile, and set linker
7420 # options accordingly.
7421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; then
7427 if test yes = "$lt_cv_prog_gnu_ld"; then
7428 case `$FILECMD conftest.$ac_objext` in
7429 *32-bit*)
7430 LD="${LD-ld} -melf32bsmip"
7431 ;;
7432 *N32*)
7433 LD="${LD-ld} -melf32bmipn32"
7434 ;;
7435 *64-bit*)
7436 LD="${LD-ld} -melf64bmip"
7437 ;;
7438 esac
7439 else
7440 case `$FILECMD conftest.$ac_objext` in
7441 *32-bit*)
7442 LD="${LD-ld} -32"
7443 ;;
7444 *N32*)
7445 LD="${LD-ld} -n32"
7446 ;;
7447 *64-bit*)
7448 LD="${LD-ld} -64"
7449 ;;
7450 esac
7451 fi
7452 fi
7453 rm -rf conftest*
7454 ;;
7455
7456 mips64*-*linux*)
7457 # Find out what ABI is being produced by ac_compile, and set linker
7458 # options accordingly.
7459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7462 ac_status=$?
7463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 emul=elf
7466 case `$FILECMD conftest.$ac_objext` in
7467 *32-bit*)
7468 emul="${emul}32"
7469 ;;
7470 *64-bit*)
7471 emul="${emul}64"
7472 ;;
7473 esac
7474 case `$FILECMD conftest.$ac_objext` in
7475 *MSB*)
7476 emul="${emul}btsmip"
7477 ;;
7478 *LSB*)
7479 emul="${emul}ltsmip"
7480 ;;
7481 esac
7482 case `$FILECMD conftest.$ac_objext` in
7483 *N32*)
7484 emul="${emul}n32"
7485 ;;
7486 esac
7487 LD="${LD-ld} -m $emul"
7488 fi
7489 rm -rf conftest*
7490 ;;
7491
7492 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7493 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7494 # Find out what ABI is being produced by ac_compile, and set linker
7495 # options accordingly. Note that the listed cases only cover the
7496 # situations where additional linker options are needed (such as when
7497 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7498 # vice versa); the common cases where no linker options are needed do
7499 # not appear in the list.
7500 echo 'int i;' > conftest.$ac_ext
7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502 (eval $ac_compile) 2>&5
7503 ac_status=$?
7504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 case `$FILECMD conftest.o` in
7507 *32-bit*)
7508 case $host in
7509 x86_64-*kfreebsd*-gnu)
7510 LD="${LD-ld} -m elf_i386_fbsd"
7511 ;;
7512 x86_64-*linux*)
7513 case `$FILECMD conftest.o` in
7514 *x86-64*)
7515 LD="${LD-ld} -m elf32_x86_64"
7516 ;;
7517 *)
7518 LD="${LD-ld} -m elf_i386"
7519 ;;
7520 esac
7521 ;;
7522 powerpc64le-*linux*)
7523 LD="${LD-ld} -m elf32lppclinux"
7524 ;;
7525 powerpc64-*linux*)
7526 LD="${LD-ld} -m elf32ppclinux"
7527 ;;
7528 s390x-*linux*)
7529 LD="${LD-ld} -m elf_s390"
7530 ;;
7531 sparc64-*linux*)
7532 LD="${LD-ld} -m elf32_sparc"
7533 ;;
7534 esac
7535 ;;
7536 *64-bit*)
7537 case $host in
7538 x86_64-*kfreebsd*-gnu)
7539 LD="${LD-ld} -m elf_x86_64_fbsd"
7540 ;;
7541 x86_64-*linux*)
7542 LD="${LD-ld} -m elf_x86_64"
7543 ;;
7544 powerpcle-*linux*)
7545 LD="${LD-ld} -m elf64lppc"
7546 ;;
7547 powerpc-*linux*)
7548 LD="${LD-ld} -m elf64ppc"
7549 ;;
7550 s390*-*linux*|s390*-*tpf*)
7551 LD="${LD-ld} -m elf64_s390"
7552 ;;
7553 sparc*-*linux*)
7554 LD="${LD-ld} -m elf64_sparc"
7555 ;;
7556 esac
7557 ;;
7558 esac
7559 fi
7560 rm -rf conftest*
7561 ;;
7562
7563 *-*-sco3.2v5*)
7564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7565 SAVE_CFLAGS=$CFLAGS
7566 CFLAGS="$CFLAGS -belf"
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7568 printf %s "checking whether the C compiler needs -belf... " >&6; }
7569 if test ${lt_cv_cc_needs_belf+y}
7570 then :
7571 printf %s "(cached) " >&6
7572 else $as_nop
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581
7582 int
7583 main (void)
7584 {
7585
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"
7591 then :
7592 lt_cv_cc_needs_belf=yes
7593 else $as_nop
7594 lt_cv_cc_needs_belf=no
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7597 conftest$ac_exeext conftest.$ac_ext
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604 fi
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7606 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7607 if test yes != "$lt_cv_cc_needs_belf"; then
7608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7609 CFLAGS=$SAVE_CFLAGS
7610 fi
7611 ;;
7612 *-*solaris*)
7613 # Find out what ABI is being produced by ac_compile, and set linker
7614 # options accordingly.
7615 echo 'int i;' > conftest.$ac_ext
7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7617 (eval $ac_compile) 2>&5
7618 ac_status=$?
7619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7621 case `$FILECMD conftest.o` in
7622 *64-bit*)
7623 case $lt_cv_prog_gnu_ld in
7624 yes*)
7625 case $host in
7626 i?86-*-solaris*|x86_64-*-solaris*)
7627 LD="${LD-ld} -m elf_x86_64"
7628 ;;
7629 sparc*-*-solaris*)
7630 LD="${LD-ld} -m elf64_sparc"
7631 ;;
7632 esac
7633 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7634 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7635 LD=${LD-ld}_sol2
7636 fi
7637 ;;
7638 *)
7639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7640 LD="${LD-ld} -64"
7641 fi
7642 ;;
7643 esac
7644 ;;
7645 esac
7646 fi
7647 rm -rf conftest*
7648 ;;
7649 esac
7650
7651 need_locks=$enable_libtool_lock
7652
7653 if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}mt; ac_word=$2
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 printf %s "checking for $ac_word... " >&6; }
7658 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else $as_nop
7662 if test -n "$MANIFEST_TOOL"; then
7663 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 case $as_dir in #(((
7670 '') as_dir=./ ;;
7671 */) ;;
7672 *) as_dir=$as_dir/ ;;
7673 esac
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7687 if test -n "$MANIFEST_TOOL"; then
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7689 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7690 else
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 printf "%s\n" "no" >&6; }
7693 fi
7694
7695
7696 fi
7697 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7698 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7699 # Extract the first word of "mt", so it can be a program name with args.
7700 set dummy mt; ac_word=$2
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 printf %s "checking for $ac_word... " >&6; }
7703 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else $as_nop
7707 if test -n "$ac_ct_MANIFEST_TOOL"; then
7708 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713 IFS=$as_save_IFS
7714 case $as_dir in #(((
7715 '') as_dir=./ ;;
7716 */) ;;
7717 *) as_dir=$as_dir/ ;;
7718 esac
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7732 if test -n "$ac_ct_MANIFEST_TOOL"; then
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7734 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7735 else
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 printf "%s\n" "no" >&6; }
7738 fi
7739
7740 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7741 MANIFEST_TOOL=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744 yes:)
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747 ac_tool_warned=yes ;;
7748 esac
7749 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7750 fi
7751 else
7752 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7753 fi
7754
7755 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7757 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7758 if test ${lt_cv_path_mainfest_tool+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else $as_nop
7762 lt_cv_path_mainfest_tool=no
7763 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7764 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7765 cat conftest.err >&5
7766 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7767 lt_cv_path_mainfest_tool=yes
7768 fi
7769 rm -f conftest*
7770 fi
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7772 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7773 if test yes != "$lt_cv_path_mainfest_tool"; then
7774 MANIFEST_TOOL=:
7775 fi
7776
7777
7778
7779
7780
7781
7782 case $host_os in
7783 rhapsody* | darwin*)
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 printf %s "checking for $ac_word... " >&6; }
7789 if test ${ac_cv_prog_DSYMUTIL+y}
7790 then :
7791 printf %s "(cached) " >&6
7792 else $as_nop
7793 if test -n "$DSYMUTIL"; then
7794 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799 IFS=$as_save_IFS
7800 case $as_dir in #(((
7801 '') as_dir=./ ;;
7802 */) ;;
7803 *) as_dir=$as_dir/ ;;
7804 esac
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7818 if test -n "$DSYMUTIL"; then
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7820 printf "%s\n" "$DSYMUTIL" >&6; }
7821 else
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 printf "%s\n" "no" >&6; }
7824 fi
7825
7826
7827 fi
7828 if test -z "$ac_cv_prog_DSYMUTIL"; then
7829 ac_ct_DSYMUTIL=$DSYMUTIL
7830 # Extract the first word of "dsymutil", so it can be a program name with args.
7831 set dummy dsymutil; ac_word=$2
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 printf %s "checking for $ac_word... " >&6; }
7834 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else $as_nop
7838 if test -n "$ac_ct_DSYMUTIL"; then
7839 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844 IFS=$as_save_IFS
7845 case $as_dir in #(((
7846 '') as_dir=./ ;;
7847 */) ;;
7848 *) as_dir=$as_dir/ ;;
7849 esac
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7863 if test -n "$ac_ct_DSYMUTIL"; then
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7865 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7866 else
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 printf "%s\n" "no" >&6; }
7869 fi
7870
7871 if test "x$ac_ct_DSYMUTIL" = x; then
7872 DSYMUTIL=":"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880 DSYMUTIL=$ac_ct_DSYMUTIL
7881 fi
7882 else
7883 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7884 fi
7885
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 printf %s "checking for $ac_word... " >&6; }
7891 if test ${ac_cv_prog_NMEDIT+y}
7892 then :
7893 printf %s "(cached) " >&6
7894 else $as_nop
7895 if test -n "$NMEDIT"; then
7896 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 case $as_dir in #(((
7903 '') as_dir=./ ;;
7904 */) ;;
7905 *) as_dir=$as_dir/ ;;
7906 esac
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 NMEDIT=$ac_cv_prog_NMEDIT
7920 if test -n "$NMEDIT"; then
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7922 printf "%s\n" "$NMEDIT" >&6; }
7923 else
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 printf "%s\n" "no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_NMEDIT"; then
7931 ac_ct_NMEDIT=$NMEDIT
7932 # Extract the first word of "nmedit", so it can be a program name with args.
7933 set dummy nmedit; ac_word=$2
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 printf %s "checking for $ac_word... " >&6; }
7936 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7937 then :
7938 printf %s "(cached) " >&6
7939 else $as_nop
7940 if test -n "$ac_ct_NMEDIT"; then
7941 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 case $as_dir in #(((
7948 '') as_dir=./ ;;
7949 */) ;;
7950 *) as_dir=$as_dir/ ;;
7951 esac
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7965 if test -n "$ac_ct_NMEDIT"; then
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7967 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7968 else
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 printf "%s\n" "no" >&6; }
7971 fi
7972
7973 if test "x$ac_ct_NMEDIT" = x; then
7974 NMEDIT=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 NMEDIT=$ac_ct_NMEDIT
7983 fi
7984 else
7985 NMEDIT="$ac_cv_prog_NMEDIT"
7986 fi
7987
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 printf %s "checking for $ac_word... " >&6; }
7993 if test ${ac_cv_prog_LIPO+y}
7994 then :
7995 printf %s "(cached) " >&6
7996 else $as_nop
7997 if test -n "$LIPO"; then
7998 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 case $as_dir in #(((
8005 '') as_dir=./ ;;
8006 */) ;;
8007 *) as_dir=$as_dir/ ;;
8008 esac
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 LIPO=$ac_cv_prog_LIPO
8022 if test -n "$LIPO"; then
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8024 printf "%s\n" "$LIPO" >&6; }
8025 else
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 printf "%s\n" "no" >&6; }
8028 fi
8029
8030
8031 fi
8032 if test -z "$ac_cv_prog_LIPO"; then
8033 ac_ct_LIPO=$LIPO
8034 # Extract the first word of "lipo", so it can be a program name with args.
8035 set dummy lipo; ac_word=$2
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 printf %s "checking for $ac_word... " >&6; }
8038 if test ${ac_cv_prog_ac_ct_LIPO+y}
8039 then :
8040 printf %s "(cached) " >&6
8041 else $as_nop
8042 if test -n "$ac_ct_LIPO"; then
8043 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048 IFS=$as_save_IFS
8049 case $as_dir in #(((
8050 '') as_dir=./ ;;
8051 */) ;;
8052 *) as_dir=$as_dir/ ;;
8053 esac
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_ac_ct_LIPO="lipo"
8057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060 done
8061 done
8062 IFS=$as_save_IFS
8063
8064 fi
8065 fi
8066 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8067 if test -n "$ac_ct_LIPO"; then
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8069 printf "%s\n" "$ac_ct_LIPO" >&6; }
8070 else
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 printf "%s\n" "no" >&6; }
8073 fi
8074
8075 if test "x$ac_ct_LIPO" = x; then
8076 LIPO=":"
8077 else
8078 case $cross_compiling:$ac_tool_warned in
8079 yes:)
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8082 ac_tool_warned=yes ;;
8083 esac
8084 LIPO=$ac_ct_LIPO
8085 fi
8086 else
8087 LIPO="$ac_cv_prog_LIPO"
8088 fi
8089
8090 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}otool; ac_word=$2
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 printf %s "checking for $ac_word... " >&6; }
8095 if test ${ac_cv_prog_OTOOL+y}
8096 then :
8097 printf %s "(cached) " >&6
8098 else $as_nop
8099 if test -n "$OTOOL"; then
8100 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105 IFS=$as_save_IFS
8106 case $as_dir in #(((
8107 '') as_dir=./ ;;
8108 */) ;;
8109 *) as_dir=$as_dir/ ;;
8110 esac
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 OTOOL=$ac_cv_prog_OTOOL
8124 if test -n "$OTOOL"; then
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8126 printf "%s\n" "$OTOOL" >&6; }
8127 else
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 printf "%s\n" "no" >&6; }
8130 fi
8131
8132
8133 fi
8134 if test -z "$ac_cv_prog_OTOOL"; then
8135 ac_ct_OTOOL=$OTOOL
8136 # Extract the first word of "otool", so it can be a program name with args.
8137 set dummy otool; ac_word=$2
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 printf %s "checking for $ac_word... " >&6; }
8140 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8141 then :
8142 printf %s "(cached) " >&6
8143 else $as_nop
8144 if test -n "$ac_ct_OTOOL"; then
8145 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 case $as_dir in #(((
8152 '') as_dir=./ ;;
8153 */) ;;
8154 *) as_dir=$as_dir/ ;;
8155 esac
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_ac_ct_OTOOL="otool"
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 fi
8167 fi
8168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8169 if test -n "$ac_ct_OTOOL"; then
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8171 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8172 else
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 printf "%s\n" "no" >&6; }
8175 fi
8176
8177 if test "x$ac_ct_OTOOL" = x; then
8178 OTOOL=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184 ac_tool_warned=yes ;;
8185 esac
8186 OTOOL=$ac_ct_OTOOL
8187 fi
8188 else
8189 OTOOL="$ac_cv_prog_OTOOL"
8190 fi
8191
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 printf %s "checking for $ac_word... " >&6; }
8197 if test ${ac_cv_prog_OTOOL64+y}
8198 then :
8199 printf %s "(cached) " >&6
8200 else $as_nop
8201 if test -n "$OTOOL64"; then
8202 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 case $as_dir in #(((
8209 '') as_dir=./ ;;
8210 */) ;;
8211 *) as_dir=$as_dir/ ;;
8212 esac
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8222
8223 fi
8224 fi
8225 OTOOL64=$ac_cv_prog_OTOOL64
8226 if test -n "$OTOOL64"; then
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8228 printf "%s\n" "$OTOOL64" >&6; }
8229 else
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 printf "%s\n" "no" >&6; }
8232 fi
8233
8234
8235 fi
8236 if test -z "$ac_cv_prog_OTOOL64"; then
8237 ac_ct_OTOOL64=$OTOOL64
8238 # Extract the first word of "otool64", so it can be a program name with args.
8239 set dummy otool64; ac_word=$2
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 printf %s "checking for $ac_word... " >&6; }
8242 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else $as_nop
8246 if test -n "$ac_ct_OTOOL64"; then
8247 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 case $as_dir in #(((
8254 '') as_dir=./ ;;
8255 */) ;;
8256 *) as_dir=$as_dir/ ;;
8257 esac
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_ac_ct_OTOOL64="otool64"
8261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268 fi
8269 fi
8270 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8271 if test -n "$ac_ct_OTOOL64"; then
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8273 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8274 else
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 printf "%s\n" "no" >&6; }
8277 fi
8278
8279 if test "x$ac_ct_OTOOL64" = x; then
8280 OTOOL64=":"
8281 else
8282 case $cross_compiling:$ac_tool_warned in
8283 yes:)
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8285 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8286 ac_tool_warned=yes ;;
8287 esac
8288 OTOOL64=$ac_ct_OTOOL64
8289 fi
8290 else
8291 OTOOL64="$ac_cv_prog_OTOOL64"
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8321 printf %s "checking for -single_module linker flag... " >&6; }
8322 if test ${lt_cv_apple_cc_single_mod+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else $as_nop
8326 lt_cv_apple_cc_single_mod=no
8327 if test -z "$LT_MULTI_MODULE"; then
8328 # By default we will add the -single_module flag. You can override
8329 # by either setting the environment variable LT_MULTI_MODULE
8330 # non-empty at configure time, or by adding -multi_module to the
8331 # link flags.
8332 rm -rf libconftest.dylib*
8333 echo "int foo(void){return 1;}" > conftest.c
8334 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8335 -dynamiclib -Wl,-single_module conftest.c" >&5
8336 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8337 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8338 _lt_result=$?
8339 # If there is a non-empty error log, and "single_module"
8340 # appears in it, assume the flag caused a linker warning
8341 if test -s conftest.err && $GREP single_module conftest.err; then
8342 cat conftest.err >&5
8343 # Otherwise, if the output was created with a 0 exit code from
8344 # the compiler, it worked.
8345 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8346 lt_cv_apple_cc_single_mod=yes
8347 else
8348 cat conftest.err >&5
8349 fi
8350 rm -rf libconftest.dylib*
8351 rm -f conftest.*
8352 fi
8353 fi
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8355 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8356
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8358 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8359 if test ${lt_cv_ld_exported_symbols_list+y}
8360 then :
8361 printf %s "(cached) " >&6
8362 else $as_nop
8363 lt_cv_ld_exported_symbols_list=no
8364 save_LDFLAGS=$LDFLAGS
8365 echo "_main" > conftest.sym
8366 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369
8370 int
8371 main (void)
8372 {
8373
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_link "$LINENO"
8379 then :
8380 lt_cv_ld_exported_symbols_list=yes
8381 else $as_nop
8382 lt_cv_ld_exported_symbols_list=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LDFLAGS=$save_LDFLAGS
8387
8388 fi
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8390 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8391
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8393 printf %s "checking for -force_load linker flag... " >&6; }
8394 if test ${lt_cv_ld_force_load+y}
8395 then :
8396 printf %s "(cached) " >&6
8397 else $as_nop
8398 lt_cv_ld_force_load=no
8399 cat > conftest.c << _LT_EOF
8400 int forced_loaded() { return 2;}
8401 _LT_EOF
8402 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8403 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8404 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8405 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8406 echo "$RANLIB libconftest.a" >&5
8407 $RANLIB libconftest.a 2>&5
8408 cat > conftest.c << _LT_EOF
8409 int main() { return 0;}
8410 _LT_EOF
8411 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8412 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8413 _lt_result=$?
8414 if test -s conftest.err && $GREP force_load conftest.err; then
8415 cat conftest.err >&5
8416 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8417 lt_cv_ld_force_load=yes
8418 else
8419 cat conftest.err >&5
8420 fi
8421 rm -f conftest.err libconftest.a conftest conftest.c
8422 rm -rf conftest.dSYM
8423
8424 fi
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8426 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8427 case $host_os in
8428 rhapsody* | darwin1.[012])
8429 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8430 darwin1.*)
8431 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8432 darwin*)
8433 case $MACOSX_DEPLOYMENT_TARGET,$host in
8434 10.[012],*|,*powerpc*-darwin[5-8]*)
8435 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8436 *)
8437 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8438 esac
8439 ;;
8440 esac
8441 if test yes = "$lt_cv_apple_cc_single_mod"; then
8442 _lt_dar_single_mod='$single_module'
8443 fi
8444 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8445 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8446 else
8447 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8448 fi
8449 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8450 _lt_dsymutil='~$DSYMUTIL $lib || :'
8451 else
8452 _lt_dsymutil=
8453 fi
8454 ;;
8455 esac
8456
8457 # func_munge_path_list VARIABLE PATH
8458 # -----------------------------------
8459 # VARIABLE is name of variable containing _space_ separated list of
8460 # directories to be munged by the contents of PATH, which is string
8461 # having a format:
8462 # "DIR[:DIR]:"
8463 # string "DIR[ DIR]" will be prepended to VARIABLE
8464 # ":DIR[:DIR]"
8465 # string "DIR[ DIR]" will be appended to VARIABLE
8466 # "DIRP[:DIRP]::[DIRA:]DIRA"
8467 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8468 # "DIRA[ DIRA]" will be appended to VARIABLE
8469 # "DIR[:DIR]"
8470 # VARIABLE will be replaced by "DIR[ DIR]"
8471 func_munge_path_list ()
8472 {
8473 case x$2 in
8474 x)
8475 ;;
8476 *:)
8477 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8478 ;;
8479 x:*)
8480 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8481 ;;
8482 *::*)
8483 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8484 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8485 ;;
8486 *)
8487 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8488 ;;
8489 esac
8490 }
8491
8492 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8493 "
8494 if test "x$ac_cv_header_dlfcn_h" = xyes
8495 then :
8496 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8497
8498 fi
8499
8500
8501
8502
8503
8504 # Set options
8505
8506
8507
8508 enable_dlopen=no
8509
8510
8511 enable_win32_dll=no
8512
8513
8514 # Check whether --enable-shared was given.
8515 if test ${enable_shared+y}
8516 then :
8517 enableval=$enable_shared; p=${PACKAGE-default}
8518 case $enableval in
8519 yes) enable_shared=yes ;;
8520 no) enable_shared=no ;;
8521 *)
8522 enable_shared=no
8523 # Look at the argument we got. We use all the common list separators.
8524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8525 for pkg in $enableval; do
8526 IFS=$lt_save_ifs
8527 if test "X$pkg" = "X$p"; then
8528 enable_shared=yes
8529 fi
8530 done
8531 IFS=$lt_save_ifs
8532 ;;
8533 esac
8534 else $as_nop
8535 enable_shared=yes
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 # Check whether --with-pic was given.
8549 if test ${with_pic+y}
8550 then :
8551 withval=$with_pic; lt_p=${PACKAGE-default}
8552 case $withval in
8553 yes|no) pic_mode=$withval ;;
8554 *)
8555 pic_mode=default
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8558 for lt_pkg in $withval; do
8559 IFS=$lt_save_ifs
8560 if test "X$lt_pkg" = "X$lt_p"; then
8561 pic_mode=yes
8562 fi
8563 done
8564 IFS=$lt_save_ifs
8565 ;;
8566 esac
8567 else $as_nop
8568 pic_mode=default
8569 fi
8570
8571
8572
8573
8574
8575
8576
8577
8578 # Check whether --enable-fast-install was given.
8579 if test ${enable_fast_install+y}
8580 then :
8581 enableval=$enable_fast_install; p=${PACKAGE-default}
8582 case $enableval in
8583 yes) enable_fast_install=yes ;;
8584 no) enable_fast_install=no ;;
8585 *)
8586 enable_fast_install=no
8587 # Look at the argument we got. We use all the common list separators.
8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8589 for pkg in $enableval; do
8590 IFS=$lt_save_ifs
8591 if test "X$pkg" = "X$p"; then
8592 enable_fast_install=yes
8593 fi
8594 done
8595 IFS=$lt_save_ifs
8596 ;;
8597 esac
8598 else $as_nop
8599 enable_fast_install=yes
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609 shared_archive_member_spec=
8610 case $host,$enable_shared in
8611 power*-*-aix[5-9]*,yes)
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8613 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8614
8615 # Check whether --with-aix-soname was given.
8616 if test ${with_aix_soname+y}
8617 then :
8618 withval=$with_aix_soname; case $withval in
8619 aix|svr4|both)
8620 ;;
8621 *)
8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8623 ;;
8624 esac
8625 lt_cv_with_aix_soname=$with_aix_soname
8626 else $as_nop
8627 if test ${lt_cv_with_aix_soname+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8631 lt_cv_with_aix_soname=aix
8632 fi
8633
8634 with_aix_soname=$lt_cv_with_aix_soname
8635 fi
8636
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8638 printf "%s\n" "$with_aix_soname" >&6; }
8639 if test aix != "$with_aix_soname"; then
8640 # For the AIX way of multilib, we name the shared archive member
8641 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8642 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8643 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8644 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8645 if test 64 = "${OBJECT_MODE-32}"; then
8646 shared_archive_member_spec=shr_64
8647 else
8648 shared_archive_member_spec=shr
8649 fi
8650 fi
8651 ;;
8652 *)
8653 with_aix_soname=aix
8654 ;;
8655 esac
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 # This can be used to rebuild libtool when needed
8667 LIBTOOL_DEPS=$ltmain
8668
8669 # Always use our own libtool.
8670 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701 test -z "$LN_S" && LN_S="ln -s"
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 if test -n "${ZSH_VERSION+set}"; then
8717 setopt NO_GLOB_SUBST
8718 fi
8719
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8721 printf %s "checking for objdir... " >&6; }
8722 if test ${lt_cv_objdir+y}
8723 then :
8724 printf %s "(cached) " >&6
8725 else $as_nop
8726 rm -f .libs 2>/dev/null
8727 mkdir .libs 2>/dev/null
8728 if test -d .libs; then
8729 lt_cv_objdir=.libs
8730 else
8731 # MS-DOS does not allow filenames that begin with a dot.
8732 lt_cv_objdir=_libs
8733 fi
8734 rmdir .libs 2>/dev/null
8735 fi
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8737 printf "%s\n" "$lt_cv_objdir" >&6; }
8738 objdir=$lt_cv_objdir
8739
8740
8741
8742
8743
8744 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8745
8746
8747
8748
8749 case $host_os in
8750 aix3*)
8751 # AIX sometimes has problems with the GCC collect2 program. For some
8752 # reason, if we set the COLLECT_NAMES environment variable, the problems
8753 # vanish in a puff of smoke.
8754 if test set != "${COLLECT_NAMES+set}"; then
8755 COLLECT_NAMES=
8756 export COLLECT_NAMES
8757 fi
8758 ;;
8759 esac
8760
8761 # Global variables:
8762 ofile=libtool
8763 can_build_shared=yes
8764
8765 # All known linkers require a '.a' archive for static linking (except MSVC and
8766 # ICC, which need '.lib').
8767 libext=a
8768
8769 with_gnu_ld=$lt_cv_prog_gnu_ld
8770
8771 old_CC=$CC
8772 old_CFLAGS=$CFLAGS
8773
8774 # Set sane defaults for various variables
8775 test -z "$CC" && CC=cc
8776 test -z "$LTCC" && LTCC=$CC
8777 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8778 test -z "$LD" && LD=ld
8779 test -z "$ac_objext" && ac_objext=o
8780
8781 func_cc_basename $compiler
8782 cc_basename=$func_cc_basename_result
8783
8784
8785 # Only perform the check for file, if the check method requires it
8786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8787 case $deplibs_check_method in
8788 file_magic*)
8789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8791 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8792 if test ${lt_cv_path_MAGIC_CMD+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else $as_nop
8796 case $MAGIC_CMD in
8797 [\\/*] | ?:[\\/]*)
8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8799 ;;
8800 *)
8801 lt_save_MAGIC_CMD=$MAGIC_CMD
8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8804 for ac_dir in $ac_dummy; do
8805 IFS=$lt_save_ifs
8806 test -z "$ac_dir" && ac_dir=.
8807 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8808 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8809 if test -n "$file_magic_test_file"; then
8810 case $deplibs_check_method in
8811 "file_magic "*)
8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8815 $EGREP "$file_magic_regex" > /dev/null; then
8816 :
8817 else
8818 cat <<_LT_EOF 1>&2
8819
8820 *** Warning: the command libtool uses to detect shared libraries,
8821 *** $file_magic_cmd, produces output that libtool cannot recognize.
8822 *** The result is that libtool may fail to recognize shared libraries
8823 *** as such. This will affect the creation of libtool libraries that
8824 *** depend on shared libraries, but programs linked with such libtool
8825 *** libraries will work regardless of this problem. Nevertheless, you
8826 *** may want to report the problem to your system manager and/or to
8827 *** bug-libtool@gnu.org
8828
8829 _LT_EOF
8830 fi ;;
8831 esac
8832 fi
8833 break
8834 fi
8835 done
8836 IFS=$lt_save_ifs
8837 MAGIC_CMD=$lt_save_MAGIC_CMD
8838 ;;
8839 esac
8840 fi
8841
8842 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8843 if test -n "$MAGIC_CMD"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8845 printf "%s\n" "$MAGIC_CMD" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851
8852
8853
8854
8855 if test -z "$lt_cv_path_MAGIC_CMD"; then
8856 if test -n "$ac_tool_prefix"; then
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8858 printf %s "checking for file... " >&6; }
8859 if test ${lt_cv_path_MAGIC_CMD+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 case $MAGIC_CMD in
8864 [\\/*] | ?:[\\/]*)
8865 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8866 ;;
8867 *)
8868 lt_save_MAGIC_CMD=$MAGIC_CMD
8869 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8871 for ac_dir in $ac_dummy; do
8872 IFS=$lt_save_ifs
8873 test -z "$ac_dir" && ac_dir=.
8874 if test -f "$ac_dir/file"; then
8875 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8876 if test -n "$file_magic_test_file"; then
8877 case $deplibs_check_method in
8878 "file_magic "*)
8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8882 $EGREP "$file_magic_regex" > /dev/null; then
8883 :
8884 else
8885 cat <<_LT_EOF 1>&2
8886
8887 *** Warning: the command libtool uses to detect shared libraries,
8888 *** $file_magic_cmd, produces output that libtool cannot recognize.
8889 *** The result is that libtool may fail to recognize shared libraries
8890 *** as such. This will affect the creation of libtool libraries that
8891 *** depend on shared libraries, but programs linked with such libtool
8892 *** libraries will work regardless of this problem. Nevertheless, you
8893 *** may want to report the problem to your system manager and/or to
8894 *** bug-libtool@gnu.org
8895
8896 _LT_EOF
8897 fi ;;
8898 esac
8899 fi
8900 break
8901 fi
8902 done
8903 IFS=$lt_save_ifs
8904 MAGIC_CMD=$lt_save_MAGIC_CMD
8905 ;;
8906 esac
8907 fi
8908
8909 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8910 if test -n "$MAGIC_CMD"; then
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8912 printf "%s\n" "$MAGIC_CMD" >&6; }
8913 else
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 printf "%s\n" "no" >&6; }
8916 fi
8917
8918
8919 else
8920 MAGIC_CMD=:
8921 fi
8922 fi
8923
8924 fi
8925 ;;
8926 esac
8927
8928 # Use C for the default configuration in the libtool script
8929
8930 lt_save_CC=$CC
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937
8938 # Source file extension for C test sources.
8939 ac_ext=c
8940
8941 # Object file extension for compiled C test sources.
8942 objext=o
8943 objext=$objext
8944
8945 # Code to be used in simple compile tests
8946 lt_simple_compile_test_code="int some_variable = 0;"
8947
8948 # Code to be used in simple link tests
8949 lt_simple_link_test_code='int main(){return(0);}'
8950
8951
8952
8953
8954
8955
8956
8957 # If no C compiler was specified, use CC.
8958 LTCC=${LTCC-"$CC"}
8959
8960 # If no C compiler flags were specified, use CFLAGS.
8961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8962
8963 # Allow CC to be a program name with arguments.
8964 compiler=$CC
8965
8966 # Save the default compiler, since it gets overwritten when the other
8967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8968 compiler_DEFAULT=$CC
8969
8970 # save warnings/boilerplate of simple test code
8971 ac_outfile=conftest.$ac_objext
8972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8974 _lt_compiler_boilerplate=`cat conftest.err`
8975 $RM conftest*
8976
8977 ac_outfile=conftest.$ac_objext
8978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8980 _lt_linker_boilerplate=`cat conftest.err`
8981 $RM -r conftest*
8982
8983
8984 if test -n "$compiler"; then
8985
8986 lt_prog_compiler_no_builtin_flag=
8987
8988 if test yes = "$GCC"; then
8989 case $cc_basename in
8990 nvcc*)
8991 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8992 *)
8993 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8994 esac
8995
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8997 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8998 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else $as_nop
9002 lt_cv_prog_compiler_rtti_exceptions=no
9003 ac_outfile=conftest.$ac_objext
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 # The option is referenced via a variable to avoid confusing sed.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>conftest.err)
9017 ac_status=$?
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s "$ac_outfile"; then
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings other than the usual output.
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_rtti_exceptions=yes
9027 fi
9028 fi
9029 $RM conftest*
9030
9031 fi
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9033 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9034
9035 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9036 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9037 else
9038 :
9039 fi
9040
9041 fi
9042
9043
9044
9045
9046
9047
9048 lt_prog_compiler_wl=
9049 lt_prog_compiler_pic=
9050 lt_prog_compiler_static=
9051
9052
9053 if test yes = "$GCC"; then
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_static='-static'
9056
9057 case $host_os in
9058 aix*)
9059 # All AIX code is PIC.
9060 if test ia64 = "$host_cpu"; then
9061 # AIX 5 now supports IA64 processor
9062 lt_prog_compiler_static='-Bstatic'
9063 fi
9064 lt_prog_compiler_pic='-fPIC'
9065 ;;
9066
9067 amigaos*)
9068 case $host_cpu in
9069 powerpc)
9070 # see comment about AmigaOS4 .so support
9071 lt_prog_compiler_pic='-fPIC'
9072 ;;
9073 m68k)
9074 # FIXME: we need at least 68020 code to build shared libraries, but
9075 # adding the '-m68020' flag to GCC prevents building anything better,
9076 # like '-m68040'.
9077 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9078 ;;
9079 esac
9080 ;;
9081
9082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9083 # PIC is the default for these OSes.
9084 ;;
9085
9086 mingw* | cygwin* | pw32* | os2* | cegcc*)
9087 # This hack is so that the source file can tell whether it is being
9088 # built for inclusion in a dll (and should export symbols for example).
9089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9090 # (--disable-auto-import) libraries
9091 lt_prog_compiler_pic='-DDLL_EXPORT'
9092 case $host_os in
9093 os2*)
9094 lt_prog_compiler_static='$wl-static'
9095 ;;
9096 esac
9097 ;;
9098
9099 darwin* | rhapsody*)
9100 # PIC is the default on this platform
9101 # Common symbols not allowed in MH_DYLIB files
9102 lt_prog_compiler_pic='-fno-common'
9103 ;;
9104
9105 haiku*)
9106 # PIC is the default for Haiku.
9107 # The "-static" flag exists, but is broken.
9108 lt_prog_compiler_static=
9109 ;;
9110
9111 hpux*)
9112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9114 # sets the default TLS model and affects inlining.
9115 case $host_cpu in
9116 hppa*64*)
9117 # +Z the default
9118 ;;
9119 *)
9120 lt_prog_compiler_pic='-fPIC'
9121 ;;
9122 esac
9123 ;;
9124
9125 interix[3-9]*)
9126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9127 # Instead, we relocate shared libraries at runtime.
9128 ;;
9129
9130 msdosdjgpp*)
9131 # Just because we use GCC doesn't mean we suddenly get shared libraries
9132 # on systems that don't support them.
9133 lt_prog_compiler_can_build_shared=no
9134 enable_shared=no
9135 ;;
9136
9137 *nto* | *qnx*)
9138 # QNX uses GNU C++, but need to define -shared option too, otherwise
9139 # it will coredump.
9140 lt_prog_compiler_pic='-fPIC -shared'
9141 ;;
9142
9143 sysv4*MP*)
9144 if test -d /usr/nec; then
9145 lt_prog_compiler_pic=-Kconform_pic
9146 fi
9147 ;;
9148
9149 *)
9150 lt_prog_compiler_pic='-fPIC'
9151 ;;
9152 esac
9153
9154 case $cc_basename in
9155 nvcc*) # Cuda Compiler Driver 2.2
9156 lt_prog_compiler_wl='-Xlinker '
9157 if test -n "$lt_prog_compiler_pic"; then
9158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9159 fi
9160 ;;
9161 esac
9162 else
9163 # PORTME Check for flag to pass linker flags through the system compiler.
9164 case $host_os in
9165 aix*)
9166 lt_prog_compiler_wl='-Wl,'
9167 if test ia64 = "$host_cpu"; then
9168 # AIX 5 now supports IA64 processor
9169 lt_prog_compiler_static='-Bstatic'
9170 else
9171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9172 fi
9173 ;;
9174
9175 darwin* | rhapsody*)
9176 # PIC is the default on this platform
9177 # Common symbols not allowed in MH_DYLIB files
9178 lt_prog_compiler_pic='-fno-common'
9179 case $cc_basename in
9180 nagfor*)
9181 # NAG Fortran compiler
9182 lt_prog_compiler_wl='-Wl,-Wl,,'
9183 lt_prog_compiler_pic='-PIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 ;;
9186 esac
9187 ;;
9188
9189 mingw* | cygwin* | pw32* | os2* | cegcc*)
9190 # This hack is so that the source file can tell whether it is being
9191 # built for inclusion in a dll (and should export symbols for example).
9192 lt_prog_compiler_pic='-DDLL_EXPORT'
9193 case $host_os in
9194 os2*)
9195 lt_prog_compiler_static='$wl-static'
9196 ;;
9197 esac
9198 ;;
9199
9200 hpux9* | hpux10* | hpux11*)
9201 lt_prog_compiler_wl='-Wl,'
9202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9203 # not for PA HP-UX.
9204 case $host_cpu in
9205 hppa*64*|ia64*)
9206 # +Z the default
9207 ;;
9208 *)
9209 lt_prog_compiler_pic='+Z'
9210 ;;
9211 esac
9212 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9213 lt_prog_compiler_static='$wl-a ${wl}archive'
9214 ;;
9215
9216 irix5* | irix6* | nonstopux*)
9217 lt_prog_compiler_wl='-Wl,'
9218 # PIC (with -KPIC) is the default.
9219 lt_prog_compiler_static='-non_shared'
9220 ;;
9221
9222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9223 case $cc_basename in
9224 # old Intel for x86_64, which still supported -KPIC.
9225 ecc*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_pic='-KPIC'
9228 lt_prog_compiler_static='-static'
9229 ;;
9230 # icc used to be incompatible with GCC.
9231 # ICC 10 doesn't accept -KPIC any more.
9232 icc* | ifort*)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-fPIC'
9235 lt_prog_compiler_static='-static'
9236 ;;
9237 # Lahey Fortran 8.1.
9238 lf95*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='--shared'
9241 lt_prog_compiler_static='--static'
9242 ;;
9243 nagfor*)
9244 # NAG Fortran compiler
9245 lt_prog_compiler_wl='-Wl,-Wl,,'
9246 lt_prog_compiler_pic='-PIC'
9247 lt_prog_compiler_static='-Bstatic'
9248 ;;
9249 tcc*)
9250 # Fabrice Bellard et al's Tiny C Compiler
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-fPIC'
9253 lt_prog_compiler_static='-static'
9254 ;;
9255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9256 # Portland Group compilers (*not* the Pentium gcc compiler,
9257 # which looks to be a dead project)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fpic'
9260 lt_prog_compiler_static='-Bstatic'
9261 ;;
9262 ccc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 # All Alpha code is PIC.
9265 lt_prog_compiler_static='-non_shared'
9266 ;;
9267 xl* | bgxl* | bgf* | mpixl*)
9268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-qpic'
9271 lt_prog_compiler_static='-qstaticlink'
9272 ;;
9273 *)
9274 case `$CC -V 2>&1 | $SED 5q` in
9275 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 lt_prog_compiler_wl=''
9280 ;;
9281 *Sun\ F* | *Sun*Fortran*)
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 lt_prog_compiler_wl='-Qoption ld '
9285 ;;
9286 *Sun\ C*)
9287 # Sun C 5.9
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_wl='-Wl,'
9291 ;;
9292 *Intel*\ [CF]*Compiler*)
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-fPIC'
9295 lt_prog_compiler_static='-static'
9296 ;;
9297 *Portland\ Group*)
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fpic'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
9302 esac
9303 ;;
9304 esac
9305 ;;
9306
9307 newsos6)
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 ;;
9311
9312 *nto* | *qnx*)
9313 # QNX uses GNU C++, but need to define -shared option too, otherwise
9314 # it will coredump.
9315 lt_prog_compiler_pic='-fPIC -shared'
9316 ;;
9317
9318 osf3* | osf4* | osf5*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # All OSF/1 code is PIC.
9321 lt_prog_compiler_static='-non_shared'
9322 ;;
9323
9324 rdos*)
9325 lt_prog_compiler_static='-non_shared'
9326 ;;
9327
9328 solaris*)
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 case $cc_basename in
9332 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9333 lt_prog_compiler_wl='-Qoption ld ';;
9334 *)
9335 lt_prog_compiler_wl='-Wl,';;
9336 esac
9337 ;;
9338
9339 sunos4*)
9340 lt_prog_compiler_wl='-Qoption ld '
9341 lt_prog_compiler_pic='-PIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
9344
9345 sysv4 | sysv4.2uw2* | sysv4.3*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9349 ;;
9350
9351 sysv4*MP*)
9352 if test -d /usr/nec; then
9353 lt_prog_compiler_pic='-Kconform_pic'
9354 lt_prog_compiler_static='-Bstatic'
9355 fi
9356 ;;
9357
9358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
9363
9364 unicos*)
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_can_build_shared=no
9367 ;;
9368
9369 uts4*)
9370 lt_prog_compiler_pic='-pic'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 *)
9375 lt_prog_compiler_can_build_shared=no
9376 ;;
9377 esac
9378 fi
9379
9380 case $host_os in
9381 # For platforms that do not support PIC, -DPIC is meaningless:
9382 *djgpp*)
9383 lt_prog_compiler_pic=
9384 ;;
9385 *)
9386 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9387 ;;
9388 esac
9389
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9391 printf %s "checking for $compiler option to produce PIC... " >&6; }
9392 if test ${lt_cv_prog_compiler_pic+y}
9393 then :
9394 printf %s "(cached) " >&6
9395 else $as_nop
9396 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9397 fi
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9399 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9400 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9401
9402 #
9403 # Check to make sure the PIC flag actually works.
9404 #
9405 if test -n "$lt_prog_compiler_pic"; then
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9407 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9408 if test ${lt_cv_prog_compiler_pic_works+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 lt_cv_prog_compiler_pic_works=no
9413 ac_outfile=conftest.$ac_objext
9414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9416 # Insert the option either (1) after the last *FLAGS variable, or
9417 # (2) before a word containing "conftest.", or (3) at the end.
9418 # Note that $ac_compile itself does not contain backslashes and begins
9419 # with a dollar sign (not a hyphen), so the echo should work correctly.
9420 # The option is referenced via a variable to avoid confusing sed.
9421 lt_compile=`echo "$ac_compile" | $SED \
9422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424 -e 's:$: $lt_compiler_flag:'`
9425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9426 (eval "$lt_compile" 2>conftest.err)
9427 ac_status=$?
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 if (exit $ac_status) && test -s "$ac_outfile"; then
9431 # The compiler can only warn and ignore the option if not recognized
9432 # So say no if there are warnings other than the usual output.
9433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9436 lt_cv_prog_compiler_pic_works=yes
9437 fi
9438 fi
9439 $RM conftest*
9440
9441 fi
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9443 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9444
9445 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9446 case $lt_prog_compiler_pic in
9447 "" | " "*) ;;
9448 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9449 esac
9450 else
9451 lt_prog_compiler_pic=
9452 lt_prog_compiler_can_build_shared=no
9453 fi
9454
9455 fi
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467 #
9468 # Check to make sure the static flag actually works.
9469 #
9470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9472 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9473 if test ${lt_cv_prog_compiler_static_works+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else $as_nop
9477 lt_cv_prog_compiler_static_works=no
9478 save_LDFLAGS=$LDFLAGS
9479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9482 # The linker can only warn and ignore the option if not recognized
9483 # So say no if there are warnings
9484 if test -s conftest.err; then
9485 # Append any errors to the config.log.
9486 cat conftest.err 1>&5
9487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489 if diff conftest.exp conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_static_works=yes
9491 fi
9492 else
9493 lt_cv_prog_compiler_static_works=yes
9494 fi
9495 fi
9496 $RM -r conftest*
9497 LDFLAGS=$save_LDFLAGS
9498
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9501 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9502
9503 if test yes = "$lt_cv_prog_compiler_static_works"; then
9504 :
9505 else
9506 lt_prog_compiler_static=
9507 fi
9508
9509
9510
9511
9512
9513
9514
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9516 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9517 if test ${lt_cv_prog_compiler_c_o+y}
9518 then :
9519 printf %s "(cached) " >&6
9520 else $as_nop
9521 lt_cv_prog_compiler_c_o=no
9522 $RM -r conftest 2>/dev/null
9523 mkdir conftest
9524 cd conftest
9525 mkdir out
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528 lt_compiler_flag="-o out/conftest2.$ac_objext"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 lt_compile=`echo "$ac_compile" | $SED \
9534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536 -e 's:$: $lt_compiler_flag:'`
9537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9538 (eval "$lt_compile" 2>out/conftest.err)
9539 ac_status=$?
9540 cat out/conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543 then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_c_o=yes
9550 fi
9551 fi
9552 chmod u+w . 2>&5
9553 $RM conftest*
9554 # SGI C++ compiler will create directory out/ii_files/ for
9555 # template instantiation
9556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557 $RM out/* && rmdir out
9558 cd ..
9559 $RM -r conftest
9560 $RM conftest*
9561
9562 fi
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9565
9566
9567
9568
9569
9570
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9572 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9573 if test ${lt_cv_prog_compiler_c_o+y}
9574 then :
9575 printf %s "(cached) " >&6
9576 else $as_nop
9577 lt_cv_prog_compiler_c_o=no
9578 $RM -r conftest 2>/dev/null
9579 mkdir conftest
9580 cd conftest
9581 mkdir out
9582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583
9584 lt_compiler_flag="-o out/conftest2.$ac_objext"
9585 # Insert the option either (1) after the last *FLAGS variable, or
9586 # (2) before a word containing "conftest.", or (3) at the end.
9587 # Note that $ac_compile itself does not contain backslashes and begins
9588 # with a dollar sign (not a hyphen), so the echo should work correctly.
9589 lt_compile=`echo "$ac_compile" | $SED \
9590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592 -e 's:$: $lt_compiler_flag:'`
9593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9594 (eval "$lt_compile" 2>out/conftest.err)
9595 ac_status=$?
9596 cat out/conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9599 then
9600 # The compiler can only warn and ignore the option if not recognized
9601 # So say no if there are warnings
9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_c_o=yes
9606 fi
9607 fi
9608 chmod u+w . 2>&5
9609 $RM conftest*
9610 # SGI C++ compiler will create directory out/ii_files/ for
9611 # template instantiation
9612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9613 $RM out/* && rmdir out
9614 cd ..
9615 $RM -r conftest
9616 $RM conftest*
9617
9618 fi
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9620 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9621
9622
9623
9624
9625 hard_links=nottested
9626 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9627 # do not overwrite the value of need_locks provided by the user
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9629 printf %s "checking if we can lock with hard links... " >&6; }
9630 hard_links=yes
9631 $RM conftest*
9632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9633 touch conftest.a
9634 ln conftest.a conftest.b 2>&5 || hard_links=no
9635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9637 printf "%s\n" "$hard_links" >&6; }
9638 if test no = "$hard_links"; then
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9640 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9641 need_locks=warn
9642 fi
9643 else
9644 need_locks=no
9645 fi
9646
9647
9648
9649
9650
9651
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9653 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9654
9655 runpath_var=
9656 allow_undefined_flag=
9657 always_export_symbols=no
9658 archive_cmds=
9659 archive_expsym_cmds=
9660 compiler_needs_object=no
9661 enable_shared_with_static_runtimes=no
9662 export_dynamic_flag_spec=
9663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9664 hardcode_automatic=no
9665 hardcode_direct=no
9666 hardcode_direct_absolute=no
9667 hardcode_libdir_flag_spec=
9668 hardcode_libdir_separator=
9669 hardcode_minus_L=no
9670 hardcode_shlibpath_var=unsupported
9671 inherit_rpath=no
9672 link_all_deplibs=unknown
9673 module_cmds=
9674 module_expsym_cmds=
9675 old_archive_from_new_cmds=
9676 old_archive_from_expsyms_cmds=
9677 thread_safe_flag_spec=
9678 whole_archive_flag_spec=
9679 # include_expsyms should be a list of space-separated symbols to be *always*
9680 # included in the symbol list
9681 include_expsyms=
9682 # exclude_expsyms can be an extended regexp of symbols to exclude
9683 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9684 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9685 # as well as any symbol that contains 'd'.
9686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9688 # platforms (ab)use it in PIC code, but their linkers get confused if
9689 # the symbol is explicitly referenced. Since portable code cannot
9690 # rely on this symbol name, it's probably fine to never include it in
9691 # preloaded symbol tables.
9692 # Exclude shared library initialization/finalization symbols.
9693 extract_expsyms_cmds=
9694
9695 case $host_os in
9696 cygwin* | mingw* | pw32* | cegcc*)
9697 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9698 # When not using gcc, we currently assume that we are using
9699 # Microsoft Visual C++ or Intel C++ Compiler.
9700 if test yes != "$GCC"; then
9701 with_gnu_ld=no
9702 fi
9703 ;;
9704 interix*)
9705 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9706 with_gnu_ld=yes
9707 ;;
9708 openbsd* | bitrig*)
9709 with_gnu_ld=no
9710 ;;
9711 esac
9712
9713 ld_shlibs=yes
9714
9715 # On some targets, GNU ld is compatible enough with the native linker
9716 # that we're better off using the native interface for both.
9717 lt_use_gnu_ld_interface=no
9718 if test yes = "$with_gnu_ld"; then
9719 case $host_os in
9720 aix*)
9721 # The AIX port of GNU ld has always aspired to compatibility
9722 # with the native linker. However, as the warning in the GNU ld
9723 # block says, versions before 2.19.5* couldn't really create working
9724 # shared libraries, regardless of the interface used.
9725 case `$LD -v 2>&1` in
9726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 ;;
9734 *)
9735 lt_use_gnu_ld_interface=yes
9736 ;;
9737 esac
9738 fi
9739
9740 if test yes = "$lt_use_gnu_ld_interface"; then
9741 # If archive_cmds runs LD, not CC, wlarc should be empty
9742 wlarc='$wl'
9743
9744 # Set some defaults for GNU ld with shared library support. These
9745 # are reset later if shared libraries are not supported. Putting them
9746 # here allows them to be overridden if necessary.
9747 runpath_var=LD_RUN_PATH
9748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9749 export_dynamic_flag_spec='$wl--export-dynamic'
9750 # ancient GNU ld didn't support --whole-archive et. al.
9751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9752 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9753 else
9754 whole_archive_flag_spec=
9755 fi
9756 supports_anon_versioning=no
9757 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9758 *GNU\ gold*) supports_anon_versioning=yes ;;
9759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9762 *\ 2.11.*) ;; # other 2.11 versions
9763 *) supports_anon_versioning=yes ;;
9764 esac
9765
9766 # See if GNU ld supports shared libraries.
9767 case $host_os in
9768 aix[3-9]*)
9769 # On AIX/PPC, the GNU linker is very broken
9770 if test ia64 != "$host_cpu"; then
9771 ld_shlibs=no
9772 cat <<_LT_EOF 1>&2
9773
9774 *** Warning: the GNU linker, at least up to release 2.19, is reported
9775 *** to be unable to reliably create shared libraries on AIX.
9776 *** Therefore, libtool is disabling shared libraries support. If you
9777 *** really care for shared libraries, you may want to install binutils
9778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9779 *** You will then need to restart the configuration process.
9780
9781 _LT_EOF
9782 fi
9783 ;;
9784
9785 amigaos*)
9786 case $host_cpu in
9787 powerpc)
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9791 ;;
9792 m68k)
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
9798 ;;
9799
9800 beos*)
9801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9802 allow_undefined_flag=unsupported
9803 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9804 # support --undefined. This deserves some investigation. FIXME
9805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9806 else
9807 ld_shlibs=no
9808 fi
9809 ;;
9810
9811 cygwin* | mingw* | pw32* | cegcc*)
9812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9813 # as there is no search path for DLLs.
9814 hardcode_libdir_flag_spec='-L$libdir'
9815 export_dynamic_flag_spec='$wl--export-all-symbols'
9816 allow_undefined_flag=unsupported
9817 always_export_symbols=no
9818 enable_shared_with_static_runtimes=yes
9819 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'
9820 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9821
9822 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9824 # If the export-symbols file already is a .def file, use it as
9825 # is; otherwise, prepend EXPORTS...
9826 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9827 cp $export_symbols $output_objdir/$soname.def;
9828 else
9829 echo EXPORTS > $output_objdir/$soname.def;
9830 cat $export_symbols >> $output_objdir/$soname.def;
9831 fi~
9832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9833 else
9834 ld_shlibs=no
9835 fi
9836 ;;
9837
9838 haiku*)
9839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9840 link_all_deplibs=yes
9841 ;;
9842
9843 os2*)
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_minus_L=yes
9846 allow_undefined_flag=unsupported
9847 shrext_cmds=.dll
9848 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9849 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9850 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9851 $ECHO EXPORTS >> $output_objdir/$libname.def~
9852 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9853 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9854 emximp -o $lib $output_objdir/$libname.def'
9855 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9858 $ECHO EXPORTS >> $output_objdir/$libname.def~
9859 prefix_cmds="$SED"~
9860 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9861 prefix_cmds="$prefix_cmds -e 1d";
9862 fi~
9863 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9864 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9866 emximp -o $lib $output_objdir/$libname.def'
9867 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9868 enable_shared_with_static_runtimes=yes
9869 file_list_spec='@'
9870 ;;
9871
9872 interix[3-9]*)
9873 hardcode_direct=no
9874 hardcode_shlibpath_var=no
9875 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9876 export_dynamic_flag_spec='$wl-E'
9877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9878 # Instead, shared libraries are loaded at an image base (0x10000000 by
9879 # default) and relocated if they conflict, which is a slow very memory
9880 # consuming and fragmenting process. To avoid this, we pick a random,
9881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9884 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'
9885 ;;
9886
9887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9888 tmp_diet=no
9889 if test linux-dietlibc = "$host_os"; then
9890 case $cc_basename in
9891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9892 esac
9893 fi
9894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9895 && test no = "$tmp_diet"
9896 then
9897 tmp_addflag=' $pic_flag'
9898 tmp_sharedflag='-shared'
9899 case $cc_basename,$host_cpu in
9900 pgcc*) # Portland Group C compiler
9901 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'
9902 tmp_addflag=' $pic_flag'
9903 ;;
9904 pgf77* | pgf90* | pgf95* | pgfortran*)
9905 # Portland Group f77 and f90 compilers
9906 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'
9907 tmp_addflag=' $pic_flag -Mnomain' ;;
9908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9909 tmp_addflag=' -i_dynamic' ;;
9910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9911 tmp_addflag=' -i_dynamic -nofor_main' ;;
9912 ifc* | ifort*) # Intel Fortran compiler
9913 tmp_addflag=' -nofor_main' ;;
9914 lf95*) # Lahey Fortran 8.1
9915 whole_archive_flag_spec=
9916 tmp_sharedflag='--shared' ;;
9917 nagfor*) # NAGFOR 5.3
9918 tmp_sharedflag='-Wl,-shared' ;;
9919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9920 tmp_sharedflag='-qmkshrobj'
9921 tmp_addflag= ;;
9922 nvcc*) # Cuda Compiler Driver 2.2
9923 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'
9924 compiler_needs_object=yes
9925 ;;
9926 esac
9927 case `$CC -V 2>&1 | $SED 5q` in
9928 *Sun\ C*) # Sun C 5.9
9929 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'
9930 compiler_needs_object=yes
9931 tmp_sharedflag='-G' ;;
9932 *Sun\ F*) # Sun Fortran 8.3
9933 tmp_sharedflag='-G' ;;
9934 esac
9935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936
9937 if test yes = "$supports_anon_versioning"; then
9938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9939 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9940 echo "local: *; };" >> $output_objdir/$libname.ver~
9941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9942 fi
9943
9944 case $cc_basename in
9945 tcc*)
9946 export_dynamic_flag_spec='-rdynamic'
9947 ;;
9948 xlf* | bgf* | bgxlf* | mpixlf*)
9949 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9950 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9952 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9953 if test yes = "$supports_anon_versioning"; then
9954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9955 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9956 echo "local: *; };" >> $output_objdir/$libname.ver~
9957 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9958 fi
9959 ;;
9960 esac
9961 else
9962 ld_shlibs=no
9963 fi
9964 ;;
9965
9966 netbsd*)
9967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9968 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9969 wlarc=
9970 else
9971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9972 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9973 fi
9974 ;;
9975
9976 solaris*)
9977 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9978 ld_shlibs=no
9979 cat <<_LT_EOF 1>&2
9980
9981 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9982 *** create shared libraries on Solaris systems. Therefore, libtool
9983 *** is disabling shared libraries support. We urge you to upgrade GNU
9984 *** binutils to release 2.9.1 or newer. Another option is to modify
9985 *** your PATH or compiler configuration so that the native linker is
9986 *** used, and then restart.
9987
9988 _LT_EOF
9989 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9992 else
9993 ld_shlibs=no
9994 fi
9995 ;;
9996
9997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9998 case `$LD -v 2>&1` in
9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10000 ld_shlibs=no
10001 cat <<_LT_EOF 1>&2
10002
10003 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10004 *** reliably create shared libraries on SCO systems. Therefore, libtool
10005 *** is disabling shared libraries support. We urge you to upgrade GNU
10006 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10007 *** your PATH or compiler configuration so that the native linker is
10008 *** used, and then restart.
10009
10010 _LT_EOF
10011 ;;
10012 *)
10013 # For security reasons, it is highly recommended that you always
10014 # use absolute paths for naming shared libraries, and exclude the
10015 # DT_RUNPATH tag from executables and libraries. But doing so
10016 # requires that you compile everything twice, which is a pain.
10017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10021 else
10022 ld_shlibs=no
10023 fi
10024 ;;
10025 esac
10026 ;;
10027
10028 sunos4*)
10029 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10030 wlarc=
10031 hardcode_direct=yes
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 *)
10036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10039 else
10040 ld_shlibs=no
10041 fi
10042 ;;
10043 esac
10044
10045 if test no = "$ld_shlibs"; then
10046 runpath_var=
10047 hardcode_libdir_flag_spec=
10048 export_dynamic_flag_spec=
10049 whole_archive_flag_spec=
10050 fi
10051 else
10052 # PORTME fill in a description of your system's linker (not GNU ld)
10053 case $host_os in
10054 aix3*)
10055 allow_undefined_flag=unsupported
10056 always_export_symbols=yes
10057 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'
10058 # Note: this linker hardcodes the directories in LIBPATH if there
10059 # are no directories specified by -L.
10060 hardcode_minus_L=yes
10061 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10062 # Neither direct hardcoding nor static linking is supported with a
10063 # broken collect2.
10064 hardcode_direct=unsupported
10065 fi
10066 ;;
10067
10068 aix[4-9]*)
10069 if test ia64 = "$host_cpu"; then
10070 # On IA64, the linker does run time linking by default, so we don't
10071 # have to do anything special.
10072 aix_use_runtimelinking=no
10073 exp_sym_flag='-Bexport'
10074 no_entry_flag=
10075 else
10076 # If we're using GNU nm, then we don't want the "-C" option.
10077 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10078 # Without the "-l" option, or with the "-B" option, AIX nm treats
10079 # weak defined symbols like other global defined symbols, whereas
10080 # GNU nm marks them as "W".
10081 # While the 'weak' keyword is ignored in the Export File, we need
10082 # it in the Import File for the 'aix-soname' feature, so we have
10083 # to replace the "-B" option with "-P" for AIX nm.
10084 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10085 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'
10086 else
10087 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'
10088 fi
10089 aix_use_runtimelinking=no
10090
10091 # Test if we are trying to use run time linking or normal
10092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10093 # have runtime linking enabled, and use it for executables.
10094 # For shared libraries, we enable/disable runtime linking
10095 # depending on the kind of the shared library created -
10096 # when "with_aix_soname,aix_use_runtimelinking" is:
10097 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10098 # "aix,yes" lib.so shared, rtl:yes, for executables
10099 # lib.a static archive
10100 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10101 # lib.a(lib.so.V) shared, rtl:no, for executables
10102 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10103 # lib.a(lib.so.V) shared, rtl:no
10104 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10105 # lib.a static archive
10106 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10107 for ld_flag in $LDFLAGS; do
10108 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10109 aix_use_runtimelinking=yes
10110 break
10111 fi
10112 done
10113 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10114 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10115 # so we don't have lib.a shared libs to link our executables.
10116 # We have to force runtime linking in this case.
10117 aix_use_runtimelinking=yes
10118 LDFLAGS="$LDFLAGS -Wl,-brtl"
10119 fi
10120 ;;
10121 esac
10122
10123 exp_sym_flag='-bexport'
10124 no_entry_flag='-bnoentry'
10125 fi
10126
10127 # When large executables or shared objects are built, AIX ld can
10128 # have problems creating the table of contents. If linking a library
10129 # or program results in "error TOC overflow" add -mminimal-toc to
10130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10132
10133 archive_cmds=''
10134 hardcode_direct=yes
10135 hardcode_direct_absolute=yes
10136 hardcode_libdir_separator=':'
10137 link_all_deplibs=yes
10138 file_list_spec='$wl-f,'
10139 case $with_aix_soname,$aix_use_runtimelinking in
10140 aix,*) ;; # traditional, no import file
10141 svr4,* | *,yes) # use import file
10142 # The Import File defines what to hardcode.
10143 hardcode_direct=no
10144 hardcode_direct_absolute=no
10145 ;;
10146 esac
10147
10148 if test yes = "$GCC"; then
10149 case $host_os in aix4.[012]|aix4.[012].*)
10150 # We only want to do this on AIX 4.2 and lower, the check
10151 # below for broken collect2 doesn't work under 4.3+
10152 collect2name=`$CC -print-prog-name=collect2`
10153 if test -f "$collect2name" &&
10154 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10155 then
10156 # We have reworked collect2
10157 :
10158 else
10159 # We have old collect2
10160 hardcode_direct=unsupported
10161 # It fails to find uninstalled libraries when the uninstalled
10162 # path is not listed in the libpath. Setting hardcode_minus_L
10163 # to unsupported forces relinking
10164 hardcode_minus_L=yes
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_libdir_separator=
10167 fi
10168 ;;
10169 esac
10170 shared_flag='-shared'
10171 if test yes = "$aix_use_runtimelinking"; then
10172 shared_flag="$shared_flag "'$wl-G'
10173 fi
10174 # Need to ensure runtime linking is disabled for the traditional
10175 # shared library, or the linker may eventually find shared libraries
10176 # /with/ Import File - we do not want to mix them.
10177 shared_flag_aix='-shared'
10178 shared_flag_svr4='-shared $wl-G'
10179 else
10180 # not using gcc
10181 if test ia64 = "$host_cpu"; then
10182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10183 # chokes on -Wl,-G. The following line is correct:
10184 shared_flag='-G'
10185 else
10186 if test yes = "$aix_use_runtimelinking"; then
10187 shared_flag='$wl-G'
10188 else
10189 shared_flag='$wl-bM:SRE'
10190 fi
10191 shared_flag_aix='$wl-bM:SRE'
10192 shared_flag_svr4='$wl-G'
10193 fi
10194 fi
10195
10196 export_dynamic_flag_spec='$wl-bexpall'
10197 # It seems that -bexpall does not export symbols beginning with
10198 # underscore (_), so it is better to generate a list of symbols to export.
10199 always_export_symbols=yes
10200 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10201 # Warning - without using the other runtime loading flags (-brtl),
10202 # -berok will link without error, but may produce a broken library.
10203 allow_undefined_flag='-berok'
10204 # Determine the default libpath from the value encoded in an
10205 # empty executable.
10206 if test set = "${lt_cv_aix_libpath+set}"; then
10207 aix_libpath=$lt_cv_aix_libpath
10208 else
10209 if test ${lt_cv_aix_libpath_+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else $as_nop
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215
10216 int
10217 main (void)
10218 {
10219
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"
10225 then :
10226
10227 lt_aix_libpath_sed='
10228 /Import File Strings/,/^$/ {
10229 /^0/ {
10230 s/^0 *\([^ ]*\) *$/\1/
10231 p
10232 }
10233 }'
10234 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10235 # Check for a 64-bit object if we didn't find anything.
10236 if test -z "$lt_cv_aix_libpath_"; then
10237 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 fi
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10241 conftest$ac_exeext conftest.$ac_ext
10242 if test -z "$lt_cv_aix_libpath_"; then
10243 lt_cv_aix_libpath_=/usr/lib:/lib
10244 fi
10245
10246 fi
10247
10248 aix_libpath=$lt_cv_aix_libpath_
10249 fi
10250
10251 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10252 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
10253 else
10254 if test ia64 = "$host_cpu"; then
10255 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10256 allow_undefined_flag="-z nodefs"
10257 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"
10258 else
10259 # Determine the default libpath from the value encoded in an
10260 # empty executable.
10261 if test set = "${lt_cv_aix_libpath+set}"; then
10262 aix_libpath=$lt_cv_aix_libpath
10263 else
10264 if test ${lt_cv_aix_libpath_+y}
10265 then :
10266 printf %s "(cached) " >&6
10267 else $as_nop
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270
10271 int
10272 main (void)
10273 {
10274
10275 ;
10276 return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"
10280 then :
10281
10282 lt_aix_libpath_sed='
10283 /Import File Strings/,/^$/ {
10284 /^0/ {
10285 s/^0 *\([^ ]*\) *$/\1/
10286 p
10287 }
10288 }'
10289 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10290 # Check for a 64-bit object if we didn't find anything.
10291 if test -z "$lt_cv_aix_libpath_"; then
10292 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10293 fi
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10296 conftest$ac_exeext conftest.$ac_ext
10297 if test -z "$lt_cv_aix_libpath_"; then
10298 lt_cv_aix_libpath_=/usr/lib:/lib
10299 fi
10300
10301 fi
10302
10303 aix_libpath=$lt_cv_aix_libpath_
10304 fi
10305
10306 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10307 # Warning - without using the other run time loading flags,
10308 # -berok will link without error, but may produce a broken library.
10309 no_undefined_flag=' $wl-bernotok'
10310 allow_undefined_flag=' $wl-berok'
10311 if test yes = "$with_gnu_ld"; then
10312 # We only use this code for GNU lds that support --whole-archive.
10313 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10314 else
10315 # Exported symbols can be pulled into shared objects from archives
10316 whole_archive_flag_spec='$convenience'
10317 fi
10318 archive_cmds_need_lc=yes
10319 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10320 # -brtl affects multiple linker settings, -berok does not and is overridden later
10321 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10322 if test svr4 != "$with_aix_soname"; then
10323 # This is similar to how AIX traditionally builds its shared libraries.
10324 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'
10325 fi
10326 if test aix != "$with_aix_soname"; then
10327 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'
10328 else
10329 # used by -dlpreopen to get the symbols
10330 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10331 fi
10332 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10333 fi
10334 fi
10335 ;;
10336
10337 amigaos*)
10338 case $host_cpu in
10339 powerpc)
10340 # see comment about AmigaOS4 .so support
10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342 archive_expsym_cmds=''
10343 ;;
10344 m68k)
10345 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)'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_minus_L=yes
10348 ;;
10349 esac
10350 ;;
10351
10352 bsdi[45]*)
10353 export_dynamic_flag_spec=-rdynamic
10354 ;;
10355
10356 cygwin* | mingw* | pw32* | cegcc*)
10357 # When not using gcc, we currently assume that we are using
10358 # Microsoft Visual C++ or Intel C++ Compiler.
10359 # hardcode_libdir_flag_spec is actually meaningless, as there is
10360 # no search path for DLLs.
10361 case $cc_basename in
10362 cl* | icl*)
10363 # Native MSVC or ICC
10364 hardcode_libdir_flag_spec=' '
10365 allow_undefined_flag=unsupported
10366 always_export_symbols=yes
10367 file_list_spec='@'
10368 # Tell ltmain to make .lib files, not .a files.
10369 libext=lib
10370 # Tell ltmain to make .dll files, not .so files.
10371 shrext_cmds=.dll
10372 # FIXME: Setting linknames here is a bad hack.
10373 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10374 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10375 cp "$export_symbols" "$output_objdir/$soname.def";
10376 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10377 else
10378 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10379 fi~
10380 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10381 linknames='
10382 # The linker will not automatically build a static lib if we build a DLL.
10383 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10384 enable_shared_with_static_runtimes=yes
10385 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10387 # Don't use ranlib
10388 old_postinstall_cmds='chmod 644 $oldlib'
10389 postlink_cmds='lt_outputfile="@OUTPUT@"~
10390 lt_tool_outputfile="@TOOL_OUTPUT@"~
10391 case $lt_outputfile in
10392 *.exe|*.EXE) ;;
10393 *)
10394 lt_outputfile=$lt_outputfile.exe
10395 lt_tool_outputfile=$lt_tool_outputfile.exe
10396 ;;
10397 esac~
10398 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10399 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10400 $RM "$lt_outputfile.manifest";
10401 fi'
10402 ;;
10403 *)
10404 # Assume MSVC and ICC wrapper
10405 hardcode_libdir_flag_spec=' '
10406 allow_undefined_flag=unsupported
10407 # Tell ltmain to make .lib files, not .a files.
10408 libext=lib
10409 # Tell ltmain to make .dll files, not .so files.
10410 shrext_cmds=.dll
10411 # FIXME: Setting linknames here is a bad hack.
10412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10413 # The linker will automatically build a .lib file if we build a DLL.
10414 old_archive_from_new_cmds='true'
10415 # FIXME: Should let the user specify the lib program.
10416 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10417 enable_shared_with_static_runtimes=yes
10418 ;;
10419 esac
10420 ;;
10421
10422 darwin* | rhapsody*)
10423
10424
10425 archive_cmds_need_lc=no
10426 hardcode_direct=no
10427 hardcode_automatic=yes
10428 hardcode_shlibpath_var=unsupported
10429 if test yes = "$lt_cv_ld_force_load"; then
10430 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\"`'
10431
10432 else
10433 whole_archive_flag_spec=''
10434 fi
10435 link_all_deplibs=yes
10436 allow_undefined_flag=$_lt_dar_allow_undefined
10437 case $cc_basename in
10438 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10439 *) _lt_dar_can_shared=$GCC ;;
10440 esac
10441 if test yes = "$_lt_dar_can_shared"; then
10442 output_verbose_link_cmd=func_echo_all
10443 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10444 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10445 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"
10446 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"
10447
10448 else
10449 ld_shlibs=no
10450 fi
10451
10452 ;;
10453
10454 dgux*)
10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_libdir_flag_spec='-L$libdir'
10457 hardcode_shlibpath_var=no
10458 ;;
10459
10460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10461 # support. Future versions do this automatically, but an explicit c++rt0.o
10462 # does not break anything, and helps significantly (at the cost of a little
10463 # extra space).
10464 freebsd2.2*)
10465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10466 hardcode_libdir_flag_spec='-R$libdir'
10467 hardcode_direct=yes
10468 hardcode_shlibpath_var=no
10469 ;;
10470
10471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10472 freebsd2.*)
10473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10474 hardcode_direct=yes
10475 hardcode_minus_L=yes
10476 hardcode_shlibpath_var=no
10477 ;;
10478
10479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10480 freebsd* | dragonfly* | midnightbsd*)
10481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10482 hardcode_libdir_flag_spec='-R$libdir'
10483 hardcode_direct=yes
10484 hardcode_shlibpath_var=no
10485 ;;
10486
10487 hpux9*)
10488 if test yes = "$GCC"; then
10489 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'
10490 else
10491 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'
10492 fi
10493 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10494 hardcode_libdir_separator=:
10495 hardcode_direct=yes
10496
10497 # hardcode_minus_L: Not really in the search PATH,
10498 # but as the default location of the library.
10499 hardcode_minus_L=yes
10500 export_dynamic_flag_spec='$wl-E'
10501 ;;
10502
10503 hpux10*)
10504 if test yes,no = "$GCC,$with_gnu_ld"; then
10505 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10506 else
10507 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10508 fi
10509 if test no = "$with_gnu_ld"; then
10510 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10511 hardcode_libdir_separator=:
10512 hardcode_direct=yes
10513 hardcode_direct_absolute=yes
10514 export_dynamic_flag_spec='$wl-E'
10515 # hardcode_minus_L: Not really in the search PATH,
10516 # but as the default location of the library.
10517 hardcode_minus_L=yes
10518 fi
10519 ;;
10520
10521 hpux11*)
10522 if test yes,no = "$GCC,$with_gnu_ld"; then
10523 case $host_cpu in
10524 hppa*64*)
10525 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 ;;
10527 ia64*)
10528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10529 ;;
10530 *)
10531 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10532 ;;
10533 esac
10534 else
10535 case $host_cpu in
10536 hppa*64*)
10537 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10538 ;;
10539 ia64*)
10540 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10541 ;;
10542 *)
10543
10544 # Older versions of the 11.00 compiler do not understand -b yet
10545 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10547 printf %s "checking if $CC understands -b... " >&6; }
10548 if test ${lt_cv_prog_compiler__b+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else $as_nop
10552 lt_cv_prog_compiler__b=no
10553 save_LDFLAGS=$LDFLAGS
10554 LDFLAGS="$LDFLAGS -b"
10555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10557 # The linker can only warn and ignore the option if not recognized
10558 # So say no if there are warnings
10559 if test -s conftest.err; then
10560 # Append any errors to the config.log.
10561 cat conftest.err 1>&5
10562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10564 if diff conftest.exp conftest.er2 >/dev/null; then
10565 lt_cv_prog_compiler__b=yes
10566 fi
10567 else
10568 lt_cv_prog_compiler__b=yes
10569 fi
10570 fi
10571 $RM -r conftest*
10572 LDFLAGS=$save_LDFLAGS
10573
10574 fi
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10576 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10577
10578 if test yes = "$lt_cv_prog_compiler__b"; then
10579 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10580 else
10581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10582 fi
10583
10584 ;;
10585 esac
10586 fi
10587 if test no = "$with_gnu_ld"; then
10588 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10589 hardcode_libdir_separator=:
10590
10591 case $host_cpu in
10592 hppa*64*|ia64*)
10593 hardcode_direct=no
10594 hardcode_shlibpath_var=no
10595 ;;
10596 *)
10597 hardcode_direct=yes
10598 hardcode_direct_absolute=yes
10599 export_dynamic_flag_spec='$wl-E'
10600
10601 # hardcode_minus_L: Not really in the search PATH,
10602 # but as the default location of the library.
10603 hardcode_minus_L=yes
10604 ;;
10605 esac
10606 fi
10607 ;;
10608
10609 irix5* | irix6* | nonstopux*)
10610 if test yes = "$GCC"; then
10611 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'
10612 # Try to use the -exported_symbol ld option, if it does not
10613 # work, assume that -exports_file does not work either and
10614 # implicitly export all symbols.
10615 # This should be the same for all languages, so no per-tag cache variable.
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10617 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10618 if test ${lt_cv_irix_exported_symbol+y}
10619 then :
10620 printf %s "(cached) " >&6
10621 else $as_nop
10622 save_LDFLAGS=$LDFLAGS
10623 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 int foo (void) { return 0; }
10627 _ACEOF
10628 if ac_fn_c_try_link "$LINENO"
10629 then :
10630 lt_cv_irix_exported_symbol=yes
10631 else $as_nop
10632 lt_cv_irix_exported_symbol=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LDFLAGS=$save_LDFLAGS
10637 fi
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10639 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10640 if test yes = "$lt_cv_irix_exported_symbol"; then
10641 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'
10642 fi
10643 else
10644 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'
10645 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'
10646 fi
10647 archive_cmds_need_lc='no'
10648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649 hardcode_libdir_separator=:
10650 inherit_rpath=yes
10651 link_all_deplibs=yes
10652 ;;
10653
10654 linux*)
10655 case $cc_basename in
10656 tcc*)
10657 # Fabrice Bellard et al's Tiny C Compiler
10658 ld_shlibs=yes
10659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10660 ;;
10661 esac
10662 ;;
10663
10664 netbsd*)
10665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10667 else
10668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10669 fi
10670 hardcode_libdir_flag_spec='-R$libdir'
10671 hardcode_direct=yes
10672 hardcode_shlibpath_var=no
10673 ;;
10674
10675 newsos6)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=yes
10678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10679 hardcode_libdir_separator=:
10680 hardcode_shlibpath_var=no
10681 ;;
10682
10683 *nto* | *qnx*)
10684 ;;
10685
10686 openbsd* | bitrig*)
10687 if test -f /usr/libexec/ld.so; then
10688 hardcode_direct=yes
10689 hardcode_shlibpath_var=no
10690 hardcode_direct_absolute=yes
10691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10694 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10695 export_dynamic_flag_spec='$wl-E'
10696 else
10697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10699 fi
10700 else
10701 ld_shlibs=no
10702 fi
10703 ;;
10704
10705 os2*)
10706 hardcode_libdir_flag_spec='-L$libdir'
10707 hardcode_minus_L=yes
10708 allow_undefined_flag=unsupported
10709 shrext_cmds=.dll
10710 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10711 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10712 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10713 $ECHO EXPORTS >> $output_objdir/$libname.def~
10714 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10715 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10716 emximp -o $lib $output_objdir/$libname.def'
10717 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10718 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10719 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10720 $ECHO EXPORTS >> $output_objdir/$libname.def~
10721 prefix_cmds="$SED"~
10722 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10723 prefix_cmds="$prefix_cmds -e 1d";
10724 fi~
10725 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10726 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10727 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10728 emximp -o $lib $output_objdir/$libname.def'
10729 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10730 enable_shared_with_static_runtimes=yes
10731 file_list_spec='@'
10732 ;;
10733
10734 osf3*)
10735 if test yes = "$GCC"; then
10736 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10737 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'
10738 else
10739 allow_undefined_flag=' -expect_unresolved \*'
10740 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'
10741 fi
10742 archive_cmds_need_lc='no'
10743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10744 hardcode_libdir_separator=:
10745 ;;
10746
10747 osf4* | osf5*) # as osf3* with the addition of -msym flag
10748 if test yes = "$GCC"; then
10749 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10750 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'
10751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10752 else
10753 allow_undefined_flag=' -expect_unresolved \*'
10754 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'
10755 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~
10756 $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'
10757
10758 # Both c and cxx compiler support -rpath directly
10759 hardcode_libdir_flag_spec='-rpath $libdir'
10760 fi
10761 archive_cmds_need_lc='no'
10762 hardcode_libdir_separator=:
10763 ;;
10764
10765 solaris*)
10766 no_undefined_flag=' -z defs'
10767 if test yes = "$GCC"; then
10768 wlarc='$wl'
10769 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10771 $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'
10772 else
10773 case `$CC -V 2>&1` in
10774 *"Compilers 5.0"*)
10775 wlarc=''
10776 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10778 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10779 ;;
10780 *)
10781 wlarc='$wl'
10782 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10784 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10785 ;;
10786 esac
10787 fi
10788 hardcode_libdir_flag_spec='-R$libdir'
10789 hardcode_shlibpath_var=no
10790 case $host_os in
10791 solaris2.[0-5] | solaris2.[0-5].*) ;;
10792 *)
10793 # The compiler driver will combine and reorder linker options,
10794 # but understands '-z linker_flag'. GCC discards it without '$wl',
10795 # but is careful enough not to reorder.
10796 # Supported since Solaris 2.6 (maybe 2.5.1?)
10797 if test yes = "$GCC"; then
10798 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10799 else
10800 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10801 fi
10802 ;;
10803 esac
10804 link_all_deplibs=yes
10805 ;;
10806
10807 sunos4*)
10808 if test sequent = "$host_vendor"; then
10809 # Use $CC to link under sequent, because it throws in some extra .o
10810 # files that make .init and .fini sections work.
10811 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10812 else
10813 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10814 fi
10815 hardcode_libdir_flag_spec='-L$libdir'
10816 hardcode_direct=yes
10817 hardcode_minus_L=yes
10818 hardcode_shlibpath_var=no
10819 ;;
10820
10821 sysv4)
10822 case $host_vendor in
10823 sni)
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_direct=yes # is this really true???
10826 ;;
10827 siemens)
10828 ## LD is ld it makes a PLAMLIB
10829 ## CC just makes a GrossModule.
10830 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10831 reload_cmds='$CC -r -o $output$reload_objs'
10832 hardcode_direct=no
10833 ;;
10834 motorola)
10835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10836 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10837 ;;
10838 esac
10839 runpath_var='LD_RUN_PATH'
10840 hardcode_shlibpath_var=no
10841 ;;
10842
10843 sysv4.3*)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_shlibpath_var=no
10846 export_dynamic_flag_spec='-Bexport'
10847 ;;
10848
10849 sysv4*MP*)
10850 if test -d /usr/nec; then
10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_shlibpath_var=no
10853 runpath_var=LD_RUN_PATH
10854 hardcode_runpath_var=yes
10855 ld_shlibs=yes
10856 fi
10857 ;;
10858
10859 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10860 no_undefined_flag='$wl-z,text'
10861 archive_cmds_need_lc=no
10862 hardcode_shlibpath_var=no
10863 runpath_var='LD_RUN_PATH'
10864
10865 if test yes = "$GCC"; then
10866 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10868 else
10869 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 fi
10872 ;;
10873
10874 sysv5* | sco3.2v5* | sco5v6*)
10875 # Note: We CANNOT use -z defs as we might desire, because we do not
10876 # link with -lc, and that would cause any symbols used from libc to
10877 # always be unresolved, which means just about no library would
10878 # ever link correctly. If we're not using GNU ld we use -z text
10879 # though, which does catch some bad symbols but isn't as heavy-handed
10880 # as -z defs.
10881 no_undefined_flag='$wl-z,text'
10882 allow_undefined_flag='$wl-z,nodefs'
10883 archive_cmds_need_lc=no
10884 hardcode_shlibpath_var=no
10885 hardcode_libdir_flag_spec='$wl-R,$libdir'
10886 hardcode_libdir_separator=':'
10887 link_all_deplibs=yes
10888 export_dynamic_flag_spec='$wl-Bexport'
10889 runpath_var='LD_RUN_PATH'
10890
10891 if test yes = "$GCC"; then
10892 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10893 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 else
10895 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 fi
10898 ;;
10899
10900 uts4*)
10901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_shlibpath_var=no
10904 ;;
10905
10906 *)
10907 ld_shlibs=no
10908 ;;
10909 esac
10910
10911 if test sni = "$host_vendor"; then
10912 case $host in
10913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10914 export_dynamic_flag_spec='$wl-Blargedynsym'
10915 ;;
10916 esac
10917 fi
10918 fi
10919
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10921 printf "%s\n" "$ld_shlibs" >&6; }
10922 test no = "$ld_shlibs" && can_build_shared=no
10923
10924 with_gnu_ld=$with_gnu_ld
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940 #
10941 # Do we need to explicitly link libc?
10942 #
10943 case "x$archive_cmds_need_lc" in
10944 x|xyes)
10945 # Assume -lc should be added
10946 archive_cmds_need_lc=yes
10947
10948 if test yes,yes = "$GCC,$enable_shared"; then
10949 case $archive_cmds in
10950 *'~'*)
10951 # FIXME: we may have to deal with multi-command sequences.
10952 ;;
10953 '$CC '*)
10954 # Test whether the compiler implicitly links with -lc since on some
10955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10956 # to ld, don't add -lc before -lgcc.
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10958 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10959 if test ${lt_cv_archive_cmds_need_lc+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else $as_nop
10963 $RM conftest*
10964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10967 (eval $ac_compile) 2>&5
10968 ac_status=$?
10969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; } 2>conftest.err; then
10971 soname=conftest
10972 lib=conftest
10973 libobjs=conftest.$ac_objext
10974 deplibs=
10975 wl=$lt_prog_compiler_wl
10976 pic_flag=$lt_prog_compiler_pic
10977 compiler_flags=-v
10978 linker_flags=-v
10979 verstring=
10980 output_objdir=.
10981 libname=conftest
10982 lt_save_allow_undefined_flag=$allow_undefined_flag
10983 allow_undefined_flag=
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10985 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986 ac_status=$?
10987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; }
10989 then
10990 lt_cv_archive_cmds_need_lc=no
10991 else
10992 lt_cv_archive_cmds_need_lc=yes
10993 fi
10994 allow_undefined_flag=$lt_save_allow_undefined_flag
10995 else
10996 cat conftest.err 1>&5
10997 fi
10998 $RM conftest*
10999
11000 fi
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11002 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11003 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11004 ;;
11005 esac
11006 fi
11007 ;;
11008 esac
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11162 printf %s "checking dynamic linker characteristics... " >&6; }
11163
11164 if test yes = "$GCC"; then
11165 case $host_os in
11166 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11167 *) lt_awk_arg='/^libraries:/' ;;
11168 esac
11169 case $host_os in
11170 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11171 *) lt_sed_strip_eq='s|=/|/|g' ;;
11172 esac
11173 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11174 case $lt_search_path_spec in
11175 *\;*)
11176 # if the path contains ";" then we assume it to be the separator
11177 # otherwise default to the standard path separator (i.e. ":") - it is
11178 # assumed that no part of a normal pathname contains ";" but that should
11179 # okay in the real world where ";" in dirpaths is itself problematic.
11180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11181 ;;
11182 *)
11183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11184 ;;
11185 esac
11186 # Ok, now we have the path, separated by spaces, we can step through it
11187 # and add multilib dir if necessary...
11188 lt_tmp_lt_search_path_spec=
11189 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11190 # ...but if some path component already ends with the multilib dir we assume
11191 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11192 case "$lt_multi_os_dir; $lt_search_path_spec " in
11193 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11194 lt_multi_os_dir=
11195 ;;
11196 esac
11197 for lt_sys_path in $lt_search_path_spec; do
11198 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11199 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11200 elif test -n "$lt_multi_os_dir"; then
11201 test -d "$lt_sys_path" && \
11202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11203 fi
11204 done
11205 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11206 BEGIN {RS = " "; FS = "/|\n";} {
11207 lt_foo = "";
11208 lt_count = 0;
11209 for (lt_i = NF; lt_i > 0; lt_i--) {
11210 if ($lt_i != "" && $lt_i != ".") {
11211 if ($lt_i == "..") {
11212 lt_count++;
11213 } else {
11214 if (lt_count == 0) {
11215 lt_foo = "/" $lt_i lt_foo;
11216 } else {
11217 lt_count--;
11218 }
11219 }
11220 }
11221 }
11222 if (lt_foo != "") { lt_freq[lt_foo]++; }
11223 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11224 }'`
11225 # AWK program above erroneously prepends '/' to C:/dos/paths
11226 # for these hosts.
11227 case $host_os in
11228 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11229 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11230 esac
11231 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11232 else
11233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11234 fi
11235 library_names_spec=
11236 libname_spec='lib$name'
11237 soname_spec=
11238 shrext_cmds=.so
11239 postinstall_cmds=
11240 postuninstall_cmds=
11241 finish_cmds=
11242 finish_eval=
11243 shlibpath_var=
11244 shlibpath_overrides_runpath=unknown
11245 version_type=none
11246 dynamic_linker="$host_os ld.so"
11247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11248 need_lib_prefix=unknown
11249 hardcode_into_libs=no
11250
11251 # when you set need_version to no, make sure it does not cause -set_version
11252 # flags to be left without arguments
11253 need_version=unknown
11254
11255
11256
11257 case $host_os in
11258 aix3*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11261 shlibpath_var=LIBPATH
11262
11263 # AIX 3 has no versioning support, so we append a major version to the name.
11264 soname_spec='$libname$release$shared_ext$major'
11265 ;;
11266
11267 aix[4-9]*)
11268 version_type=linux # correct to gnu/linux during the next big refactor
11269 need_lib_prefix=no
11270 need_version=no
11271 hardcode_into_libs=yes
11272 if test ia64 = "$host_cpu"; then
11273 # AIX 5 supports IA64
11274 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 else
11277 # With GCC up to 2.95.x, collect2 would create an import file
11278 # for dependence libraries. The import file would start with
11279 # the line '#! .'. This would cause the generated library to
11280 # depend on '.', always an invalid library. This was fixed in
11281 # development snapshots of GCC prior to 3.0.
11282 case $host_os in
11283 aix4 | aix4.[01] | aix4.[01].*)
11284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11285 echo ' yes '
11286 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11287 :
11288 else
11289 can_build_shared=no
11290 fi
11291 ;;
11292 esac
11293 # Using Import Files as archive members, it is possible to support
11294 # filename-based versioning of shared library archives on AIX. While
11295 # this would work for both with and without runtime linking, it will
11296 # prevent static linking of such archives. So we do filename-based
11297 # shared library versioning with .so extension only, which is used
11298 # when both runtime linking and shared linking is enabled.
11299 # Unfortunately, runtime linking may impact performance, so we do
11300 # not want this to be the default eventually. Also, we use the
11301 # versioned .so libs for executables only if there is the -brtl
11302 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11303 # To allow for filename-based versioning support, we need to create
11304 # libNAME.so.V as an archive file, containing:
11305 # *) an Import File, referring to the versioned filename of the
11306 # archive as well as the shared archive member, telling the
11307 # bitwidth (32 or 64) of that shared object, and providing the
11308 # list of exported symbols of that shared object, eventually
11309 # decorated with the 'weak' keyword
11310 # *) the shared object with the F_LOADONLY flag set, to really avoid
11311 # it being seen by the linker.
11312 # At run time we better use the real file rather than another symlink,
11313 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11314
11315 case $with_aix_soname,$aix_use_runtimelinking in
11316 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 aix,yes) # traditional libtool
11320 dynamic_linker='AIX unversionable lib.so'
11321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322 # instead of lib<name>.a to let people know that these are not
11323 # typical AIX shared libraries.
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 ;;
11326 aix,no) # traditional AIX only
11327 dynamic_linker='AIX lib.a(lib.so.V)'
11328 # We preserve .a as extension for shared libraries through AIX4.2
11329 # and later when we are not doing run time linking.
11330 library_names_spec='$libname$release.a $libname.a'
11331 soname_spec='$libname$release$shared_ext$major'
11332 ;;
11333 svr4,*) # full svr4 only
11334 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11335 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11336 # We do not specify a path in Import Files, so LIBPATH fires.
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 *,yes) # both, prefer svr4
11340 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11341 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11342 # unpreferred sharedlib libNAME.a needs extra handling
11343 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"'
11344 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"'
11345 # We do not specify a path in Import Files, so LIBPATH fires.
11346 shlibpath_overrides_runpath=yes
11347 ;;
11348 *,no) # both, prefer aix
11349 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11350 library_names_spec='$libname$release.a $libname.a'
11351 soname_spec='$libname$release$shared_ext$major'
11352 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11353 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)'
11354 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"'
11355 ;;
11356 esac
11357 shlibpath_var=LIBPATH
11358 fi
11359 ;;
11360
11361 amigaos*)
11362 case $host_cpu in
11363 powerpc)
11364 # Since July 2007 AmigaOS4 officially supports .so libraries.
11365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 ;;
11368 m68k)
11369 library_names_spec='$libname.ixlibrary $libname.a'
11370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11371 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'
11372 ;;
11373 esac
11374 ;;
11375
11376 beos*)
11377 library_names_spec='$libname$shared_ext'
11378 dynamic_linker="$host_os ld.so"
11379 shlibpath_var=LIBRARY_PATH
11380 ;;
11381
11382 bsdi[45]*)
11383 version_type=linux # correct to gnu/linux during the next big refactor
11384 need_version=no
11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386 soname_spec='$libname$release$shared_ext$major'
11387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391 # the default ld.so.conf also contains /usr/contrib/lib and
11392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393 # libtool to hard-code these into programs
11394 ;;
11395
11396 cygwin* | mingw* | pw32* | cegcc*)
11397 version_type=windows
11398 shrext_cmds=.dll
11399 need_version=no
11400 need_lib_prefix=no
11401
11402 case $GCC,$cc_basename in
11403 yes,*)
11404 # gcc
11405 library_names_spec='$libname.dll.a'
11406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11407 postinstall_cmds='base_file=`basename \$file`~
11408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11409 dldir=$destdir/`dirname \$dlpath`~
11410 test -d \$dldir || mkdir -p \$dldir~
11411 $install_prog $dir/$dlname \$dldir/$dlname~
11412 chmod a+x \$dldir/$dlname~
11413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11415 fi'
11416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11417 dlpath=$dir/\$dldll~
11418 $RM \$dlpath'
11419 shlibpath_overrides_runpath=yes
11420
11421 case $host_os in
11422 cygwin*)
11423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11424 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11425
11426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11427 ;;
11428 mingw* | cegcc*)
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11431 ;;
11432 pw32*)
11433 # pw32 DLLs use 'pw' prefix rather than 'lib'
11434 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11435 ;;
11436 esac
11437 dynamic_linker='Win32 ld.exe'
11438 ;;
11439
11440 *,cl* | *,icl*)
11441 # Native MSVC or ICC
11442 libname_spec='$name'
11443 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11444 library_names_spec='$libname.dll.lib'
11445
11446 case $build_os in
11447 mingw*)
11448 sys_lib_search_path_spec=
11449 lt_save_ifs=$IFS
11450 IFS=';'
11451 for lt_path in $LIB
11452 do
11453 IFS=$lt_save_ifs
11454 # Let DOS variable expansion print the short 8.3 style file name.
11455 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11456 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11457 done
11458 IFS=$lt_save_ifs
11459 # Convert to MSYS style.
11460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11461 ;;
11462 cygwin*)
11463 # Convert to unix form, then to dos form, then back to unix form
11464 # but this time dos style (no spaces!) so that the unix form looks
11465 # like /cygdrive/c/PROGRA~1:/cygdr...
11466 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11467 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11468 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11469 ;;
11470 *)
11471 sys_lib_search_path_spec=$LIB
11472 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11473 # It is most probably a Windows format PATH.
11474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11475 else
11476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 fi
11478 # FIXME: find the short name or the path components, as spaces are
11479 # common. (e.g. "Program Files" -> "PROGRA~1")
11480 ;;
11481 esac
11482
11483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484 postinstall_cmds='base_file=`basename \$file`~
11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11486 dldir=$destdir/`dirname \$dlpath`~
11487 test -d \$dldir || mkdir -p \$dldir~
11488 $install_prog $dir/$dlname \$dldir/$dlname'
11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490 dlpath=$dir/\$dldll~
11491 $RM \$dlpath'
11492 shlibpath_overrides_runpath=yes
11493 dynamic_linker='Win32 link.exe'
11494 ;;
11495
11496 *)
11497 # Assume MSVC and ICC wrapper
11498 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11499 dynamic_linker='Win32 ld.exe'
11500 ;;
11501 esac
11502 # FIXME: first we should search . and the directory the executable is in
11503 shlibpath_var=PATH
11504 ;;
11505
11506 darwin* | rhapsody*)
11507 dynamic_linker="$host_os dyld"
11508 version_type=darwin
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11512 soname_spec='$libname$release$major$shared_ext'
11513 shlibpath_overrides_runpath=yes
11514 shlibpath_var=DYLD_LIBRARY_PATH
11515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11516
11517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11519 ;;
11520
11521 dgux*)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 ;;
11529
11530 freebsd* | dragonfly* | midnightbsd*)
11531 # DragonFly does not have aout. When/if they implement a new
11532 # versioning mechanism, adjust this.
11533 if test -x /usr/bin/objformat; then
11534 objformat=`/usr/bin/objformat`
11535 else
11536 case $host_os in
11537 freebsd[23].*) objformat=aout ;;
11538 *) objformat=elf ;;
11539 esac
11540 fi
11541 version_type=freebsd-$objformat
11542 case $version_type in
11543 freebsd-elf*)
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 soname_spec='$libname$release$shared_ext$major'
11546 need_version=no
11547 need_lib_prefix=no
11548 ;;
11549 freebsd-*)
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11551 need_version=yes
11552 ;;
11553 esac
11554 shlibpath_var=LD_LIBRARY_PATH
11555 case $host_os in
11556 freebsd2.*)
11557 shlibpath_overrides_runpath=yes
11558 ;;
11559 freebsd3.[01]* | freebsdelf3.[01]*)
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11562 ;;
11563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11565 shlibpath_overrides_runpath=no
11566 hardcode_into_libs=yes
11567 ;;
11568 *) # from 4.6 on, and DragonFly
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11571 ;;
11572 esac
11573 ;;
11574
11575 haiku*)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 need_lib_prefix=no
11578 need_version=no
11579 dynamic_linker="$host_os runtime_loader"
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 soname_spec='$libname$release$shared_ext$major'
11582 shlibpath_var=LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11585 hardcode_into_libs=yes
11586 ;;
11587
11588 hpux9* | hpux10* | hpux11*)
11589 # Give a soname corresponding to the major version so that dld.sl refuses to
11590 # link against other versions.
11591 version_type=sunos
11592 need_lib_prefix=no
11593 need_version=no
11594 case $host_cpu in
11595 ia64*)
11596 shrext_cmds='.so'
11597 hardcode_into_libs=yes
11598 dynamic_linker="$host_os dld.so"
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602 soname_spec='$libname$release$shared_ext$major'
11603 if test 32 = "$HPUX_IA64_MODE"; then
11604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11605 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11606 else
11607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11609 fi
11610 ;;
11611 hppa*64*)
11612 shrext_cmds='.sl'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 ;;
11622 *)
11623 shrext_cmds='.sl'
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=SHLIB_PATH
11626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628 soname_spec='$libname$release$shared_ext$major'
11629 ;;
11630 esac
11631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11632 postinstall_cmds='chmod 555 $lib'
11633 # or fails outright, so override atomically:
11634 install_override_mode=555
11635 ;;
11636
11637 interix[3-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 soname_spec='$libname$release$shared_ext$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 ;;
11648
11649 irix5* | irix6* | nonstopux*)
11650 case $host_os in
11651 nonstopux*) version_type=nonstopux ;;
11652 *)
11653 if test yes = "$lt_cv_prog_gnu_ld"; then
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 else
11656 version_type=irix
11657 fi ;;
11658 esac
11659 need_lib_prefix=no
11660 need_version=no
11661 soname_spec='$libname$release$shared_ext$major'
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11663 case $host_os in
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11666 ;;
11667 *)
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11676 esac
11677 ;;
11678 esac
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11682 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11683 hardcode_into_libs=yes
11684 ;;
11685
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11688 dynamic_linker=no
11689 ;;
11690
11691 linux*android*)
11692 version_type=none # Android doesn't support versioned libraries.
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='$libname$release$shared_ext'
11696 soname_spec='$libname$release$shared_ext'
11697 finish_cmds=
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11700
11701 # This implies no fast_install, which is unacceptable.
11702 # Some rework will be needed to allow for fast_install
11703 # before this can be enabled.
11704 hardcode_into_libs=yes
11705
11706 dynamic_linker='Android linker'
11707 # Don't embed -rpath directories since the linker doesn't support them.
11708 hardcode_libdir_flag_spec='-L$libdir'
11709 ;;
11710
11711 # This must be glibc/ELF.
11712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11713 version_type=linux # correct to gnu/linux during the next big refactor
11714 need_lib_prefix=no
11715 need_version=no
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717 soname_spec='$libname$release$shared_ext$major'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721
11722 # Some binutils ld are patched to set DT_RUNPATH
11723 if test ${lt_cv_shlibpath_overrides_runpath+y}
11724 then :
11725 printf %s "(cached) " >&6
11726 else $as_nop
11727 lt_cv_shlibpath_overrides_runpath=no
11728 save_LDFLAGS=$LDFLAGS
11729 save_libdir=$libdir
11730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734
11735 int
11736 main (void)
11737 {
11738
11739 ;
11740 return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"
11744 then :
11745 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11746 then :
11747 lt_cv_shlibpath_overrides_runpath=yes
11748 fi
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LDFLAGS=$save_LDFLAGS
11753 libdir=$save_libdir
11754
11755 fi
11756
11757 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11758
11759 # This implies no fast_install, which is unacceptable.
11760 # Some rework will be needed to allow for fast_install
11761 # before this can be enabled.
11762 hardcode_into_libs=yes
11763
11764 # Ideally, we could use ldconfig to report *all* directores which are
11765 # searched for libraries, however this is still not possible. Aside from not
11766 # being certain /sbin/ldconfig is available, command
11767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11768 # even though it is searched at run-time. Try to do the best guess by
11769 # appending ld.so.conf contents (and includes) to the search path.
11770 if test -f /etc/ld.so.conf; then
11771 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' ' '`
11772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11773 fi
11774
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11782 ;;
11783
11784 netbsd*)
11785 version_type=sunos
11786 need_lib_prefix=no
11787 need_version=no
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11792 else
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11796 fi
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 ;;
11801
11802 newsos6)
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 ;;
11808
11809 *nto* | *qnx*)
11810 version_type=qnx
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11819 ;;
11820
11821 openbsd* | bitrig*)
11822 version_type=sunos
11823 sys_lib_dlsearch_path_spec=/usr/lib
11824 need_lib_prefix=no
11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11826 need_version=no
11827 else
11828 need_version=yes
11829 fi
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 ;;
11835
11836 os2*)
11837 libname_spec='$name'
11838 version_type=windows
11839 shrext_cmds=.dll
11840 need_version=no
11841 need_lib_prefix=no
11842 # OS/2 can only load a DLL with a base name of 8 characters or less.
11843 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11844 v=$($ECHO $release$versuffix | tr -d .-);
11845 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11846 $ECHO $n$v`$shared_ext'
11847 library_names_spec='${libname}_dll.$libext'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=BEGINLIBPATH
11850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11852 postinstall_cmds='base_file=`basename \$file`~
11853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11854 dldir=$destdir/`dirname \$dlpath`~
11855 test -d \$dldir || mkdir -p \$dldir~
11856 $install_prog $dir/$dlname \$dldir/$dlname~
11857 chmod a+x \$dldir/$dlname~
11858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11859 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 fi'
11861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11862 dlpath=$dir/\$dldll~
11863 $RM \$dlpath'
11864 ;;
11865
11866 osf3* | osf4* | osf5*)
11867 version_type=osf
11868 need_lib_prefix=no
11869 need_version=no
11870 soname_spec='$libname$release$shared_ext$major'
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11875 ;;
11876
11877 rdos*)
11878 dynamic_linker=no
11879 ;;
11880
11881 solaris*)
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 need_lib_prefix=no
11884 need_version=no
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11890 # ldd complains unless libraries are executable
11891 postinstall_cmds='chmod +x $lib'
11892 ;;
11893
11894 sunos4*)
11895 version_type=sunos
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=yes
11900 if test yes = "$with_gnu_ld"; then
11901 need_lib_prefix=no
11902 fi
11903 need_version=yes
11904 ;;
11905
11906 sysv4 | sysv4.3*)
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909 soname_spec='$libname$release$shared_ext$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 case $host_vendor in
11912 sni)
11913 shlibpath_overrides_runpath=no
11914 need_lib_prefix=no
11915 runpath_var=LD_RUN_PATH
11916 ;;
11917 siemens)
11918 need_lib_prefix=no
11919 ;;
11920 motorola)
11921 need_lib_prefix=no
11922 need_version=no
11923 shlibpath_overrides_runpath=no
11924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 ;;
11926 esac
11927 ;;
11928
11929 sysv4*MP*)
11930 if test -d /usr/nec; then
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11933 soname_spec='$libname$shared_ext.$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 fi
11936 ;;
11937
11938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11939 version_type=sco
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11943 soname_spec='$libname$release$shared_ext$major'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=yes
11946 hardcode_into_libs=yes
11947 if test yes = "$with_gnu_ld"; then
11948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11949 else
11950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11951 case $host_os in
11952 sco3.2v5*)
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11954 ;;
11955 esac
11956 fi
11957 sys_lib_dlsearch_path_spec='/usr/lib'
11958 ;;
11959
11960 tpf*)
11961 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11962 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=no
11968 hardcode_into_libs=yes
11969 ;;
11970
11971 uts4*)
11972 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 ;;
11977
11978 *)
11979 dynamic_linker=no
11980 ;;
11981 esac
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11983 printf "%s\n" "$dynamic_linker" >&6; }
11984 test no = "$dynamic_linker" && can_build_shared=no
11985
11986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11987 if test yes = "$GCC"; then
11988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11989 fi
11990
11991 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11992 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11993 fi
11994
11995 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11996 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11997 fi
11998
11999 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12000 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12001
12002 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12003 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12004
12005 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12006 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105 printf %s "checking how to hardcode library paths into programs... " >&6; }
12106 hardcode_action=
12107 if test -n "$hardcode_libdir_flag_spec" ||
12108 test -n "$runpath_var" ||
12109 test yes = "$hardcode_automatic"; then
12110
12111 # We can hardcode non-existent directories.
12112 if test no != "$hardcode_direct" &&
12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114 # have to relink, otherwise we might link with an installed library
12115 # when we should be linking with a yet-to-be-installed one
12116 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12117 test no != "$hardcode_minus_L"; then
12118 # Linking always hardcodes the temporary library directory.
12119 hardcode_action=relink
12120 else
12121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122 hardcode_action=immediate
12123 fi
12124 else
12125 # We cannot hardcode anything, or else we can only hardcode existing
12126 # directories.
12127 hardcode_action=unsupported
12128 fi
12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130 printf "%s\n" "$hardcode_action" >&6; }
12131
12132 if test relink = "$hardcode_action" ||
12133 test yes = "$inherit_rpath"; then
12134 # Fast installation is not supported
12135 enable_fast_install=no
12136 elif test yes = "$shlibpath_overrides_runpath" ||
12137 test no = "$enable_shared"; then
12138 # Fast installation is not necessary
12139 enable_fast_install=needless
12140 fi
12141
12142
12143
12144
12145
12146
12147 if test yes != "$enable_dlopen"; then
12148 enable_dlopen=unknown
12149 enable_dlopen_self=unknown
12150 enable_dlopen_self_static=unknown
12151 else
12152 lt_cv_dlopen=no
12153 lt_cv_dlopen_libs=
12154
12155 case $host_os in
12156 beos*)
12157 lt_cv_dlopen=load_add_on
12158 lt_cv_dlopen_libs=
12159 lt_cv_dlopen_self=yes
12160 ;;
12161
12162 mingw* | pw32* | cegcc*)
12163 lt_cv_dlopen=LoadLibrary
12164 lt_cv_dlopen_libs=
12165 ;;
12166
12167 cygwin*)
12168 lt_cv_dlopen=dlopen
12169 lt_cv_dlopen_libs=
12170 ;;
12171
12172 darwin*)
12173 # if libdl is installed we need to link against it
12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12175 printf %s "checking for dlopen in -ldl... " >&6; }
12176 if test ${ac_cv_lib_dl_dlopen+y}
12177 then :
12178 printf %s "(cached) " >&6
12179 else $as_nop
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-ldl $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188 char dlopen ();
12189 int
12190 main (void)
12191 {
12192 return dlopen ();
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 if ac_fn_c_try_link "$LINENO"
12198 then :
12199 ac_cv_lib_dl_dlopen=yes
12200 else $as_nop
12201 ac_cv_lib_dl_dlopen=no
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12206 fi
12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12208 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12209 if test "x$ac_cv_lib_dl_dlopen" = xyes
12210 then :
12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12212 else $as_nop
12213
12214 lt_cv_dlopen=dyld
12215 lt_cv_dlopen_libs=
12216 lt_cv_dlopen_self=yes
12217
12218 fi
12219
12220 ;;
12221
12222 tpf*)
12223 # Don't try to run any link tests for TPF. We know it's impossible
12224 # because TPF is a cross-compiler, and we know how we open DSOs.
12225 lt_cv_dlopen=dlopen
12226 lt_cv_dlopen_libs=
12227 lt_cv_dlopen_self=no
12228 ;;
12229
12230 *)
12231 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12232 if test "x$ac_cv_func_shl_load" = xyes
12233 then :
12234 lt_cv_dlopen=shl_load
12235 else $as_nop
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12237 printf %s "checking for shl_load in -ldld... " >&6; }
12238 if test ${ac_cv_lib_dld_shl_load+y}
12239 then :
12240 printf %s "(cached) " >&6
12241 else $as_nop
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-ldld $LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250 char shl_load ();
12251 int
12252 main (void)
12253 {
12254 return shl_load ();
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"
12260 then :
12261 ac_cv_lib_dld_shl_load=yes
12262 else $as_nop
12263 ac_cv_lib_dld_shl_load=no
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12270 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12271 if test "x$ac_cv_lib_dld_shl_load" = xyes
12272 then :
12273 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12274 else $as_nop
12275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12276 if test "x$ac_cv_func_dlopen" = xyes
12277 then :
12278 lt_cv_dlopen=dlopen
12279 else $as_nop
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12281 printf %s "checking for dlopen in -ldl... " >&6; }
12282 if test ${ac_cv_lib_dl_dlopen+y}
12283 then :
12284 printf %s "(cached) " >&6
12285 else $as_nop
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-ldl $LIBS"
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12294 char dlopen ();
12295 int
12296 main (void)
12297 {
12298 return dlopen ();
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"
12304 then :
12305 ac_cv_lib_dl_dlopen=yes
12306 else $as_nop
12307 ac_cv_lib_dl_dlopen=no
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12312 fi
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12314 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12315 if test "x$ac_cv_lib_dl_dlopen" = xyes
12316 then :
12317 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12318 else $as_nop
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12320 printf %s "checking for dlopen in -lsvld... " >&6; }
12321 if test ${ac_cv_lib_svld_dlopen+y}
12322 then :
12323 printf %s "(cached) " >&6
12324 else $as_nop
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lsvld $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 char dlopen ();
12334 int
12335 main (void)
12336 {
12337 return dlopen ();
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"
12343 then :
12344 ac_cv_lib_svld_dlopen=yes
12345 else $as_nop
12346 ac_cv_lib_svld_dlopen=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12353 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12354 if test "x$ac_cv_lib_svld_dlopen" = xyes
12355 then :
12356 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12357 else $as_nop
12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12359 printf %s "checking for dld_link in -ldld... " >&6; }
12360 if test ${ac_cv_lib_dld_dld_link+y}
12361 then :
12362 printf %s "(cached) " >&6
12363 else $as_nop
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-ldld $LIBS"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372 char dld_link ();
12373 int
12374 main (void)
12375 {
12376 return dld_link ();
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"
12382 then :
12383 ac_cv_lib_dld_dld_link=yes
12384 else $as_nop
12385 ac_cv_lib_dld_dld_link=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12392 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12393 if test "x$ac_cv_lib_dld_dld_link" = xyes
12394 then :
12395 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12396 fi
12397
12398
12399 fi
12400
12401
12402 fi
12403
12404
12405 fi
12406
12407
12408 fi
12409
12410
12411 fi
12412
12413 ;;
12414 esac
12415
12416 if test no = "$lt_cv_dlopen"; then
12417 enable_dlopen=no
12418 else
12419 enable_dlopen=yes
12420 fi
12421
12422 case $lt_cv_dlopen in
12423 dlopen)
12424 save_CPPFLAGS=$CPPFLAGS
12425 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12426
12427 save_LDFLAGS=$LDFLAGS
12428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12429
12430 save_LIBS=$LIBS
12431 LIBS="$lt_cv_dlopen_libs $LIBS"
12432
12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12434 printf %s "checking whether a program can dlopen itself... " >&6; }
12435 if test ${lt_cv_dlopen_self+y}
12436 then :
12437 printf %s "(cached) " >&6
12438 else $as_nop
12439 if test yes = "$cross_compiling"; then :
12440 lt_cv_dlopen_self=cross
12441 else
12442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12443 lt_status=$lt_dlunknown
12444 cat > conftest.$ac_ext <<_LT_EOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12447
12448 #if HAVE_DLFCN_H
12449 #include <dlfcn.h>
12450 #endif
12451
12452 #include <stdio.h>
12453
12454 #ifdef RTLD_GLOBAL
12455 # define LT_DLGLOBAL RTLD_GLOBAL
12456 #else
12457 # ifdef DL_GLOBAL
12458 # define LT_DLGLOBAL DL_GLOBAL
12459 # else
12460 # define LT_DLGLOBAL 0
12461 # endif
12462 #endif
12463
12464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12465 find out it does not work in some platform. */
12466 #ifndef LT_DLLAZY_OR_NOW
12467 # ifdef RTLD_LAZY
12468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12469 # else
12470 # ifdef DL_LAZY
12471 # define LT_DLLAZY_OR_NOW DL_LAZY
12472 # else
12473 # ifdef RTLD_NOW
12474 # define LT_DLLAZY_OR_NOW RTLD_NOW
12475 # else
12476 # ifdef DL_NOW
12477 # define LT_DLLAZY_OR_NOW DL_NOW
12478 # else
12479 # define LT_DLLAZY_OR_NOW 0
12480 # endif
12481 # endif
12482 # endif
12483 # endif
12484 #endif
12485
12486 /* When -fvisibility=hidden is used, assume the code has been annotated
12487 correspondingly for the symbols needed. */
12488 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12489 int fnord () __attribute__((visibility("default")));
12490 #endif
12491
12492 int fnord () { return 42; }
12493 int main ()
12494 {
12495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12496 int status = $lt_dlunknown;
12497
12498 if (self)
12499 {
12500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12501 else
12502 {
12503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12504 else puts (dlerror ());
12505 }
12506 /* dlclose (self); */
12507 }
12508 else
12509 puts (dlerror ());
12510
12511 return status;
12512 }
12513 _LT_EOF
12514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12515 (eval $ac_link) 2>&5
12516 ac_status=$?
12517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12518 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12519 (./conftest; exit; ) >&5 2>/dev/null
12520 lt_status=$?
12521 case x$lt_status in
12522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12524 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12525 esac
12526 else :
12527 # compilation failed
12528 lt_cv_dlopen_self=no
12529 fi
12530 fi
12531 rm -fr conftest*
12532
12533
12534 fi
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12536 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12537
12538 if test yes = "$lt_cv_dlopen_self"; then
12539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12541 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12542 if test ${lt_cv_dlopen_self_static+y}
12543 then :
12544 printf %s "(cached) " >&6
12545 else $as_nop
12546 if test yes = "$cross_compiling"; then :
12547 lt_cv_dlopen_self_static=cross
12548 else
12549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12550 lt_status=$lt_dlunknown
12551 cat > conftest.$ac_ext <<_LT_EOF
12552 #line $LINENO "configure"
12553 #include "confdefs.h"
12554
12555 #if HAVE_DLFCN_H
12556 #include <dlfcn.h>
12557 #endif
12558
12559 #include <stdio.h>
12560
12561 #ifdef RTLD_GLOBAL
12562 # define LT_DLGLOBAL RTLD_GLOBAL
12563 #else
12564 # ifdef DL_GLOBAL
12565 # define LT_DLGLOBAL DL_GLOBAL
12566 # else
12567 # define LT_DLGLOBAL 0
12568 # endif
12569 #endif
12570
12571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12572 find out it does not work in some platform. */
12573 #ifndef LT_DLLAZY_OR_NOW
12574 # ifdef RTLD_LAZY
12575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12576 # else
12577 # ifdef DL_LAZY
12578 # define LT_DLLAZY_OR_NOW DL_LAZY
12579 # else
12580 # ifdef RTLD_NOW
12581 # define LT_DLLAZY_OR_NOW RTLD_NOW
12582 # else
12583 # ifdef DL_NOW
12584 # define LT_DLLAZY_OR_NOW DL_NOW
12585 # else
12586 # define LT_DLLAZY_OR_NOW 0
12587 # endif
12588 # endif
12589 # endif
12590 # endif
12591 #endif
12592
12593 /* When -fvisibility=hidden is used, assume the code has been annotated
12594 correspondingly for the symbols needed. */
12595 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12596 int fnord () __attribute__((visibility("default")));
12597 #endif
12598
12599 int fnord () { return 42; }
12600 int main ()
12601 {
12602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12603 int status = $lt_dlunknown;
12604
12605 if (self)
12606 {
12607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12608 else
12609 {
12610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12611 else puts (dlerror ());
12612 }
12613 /* dlclose (self); */
12614 }
12615 else
12616 puts (dlerror ());
12617
12618 return status;
12619 }
12620 _LT_EOF
12621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12622 (eval $ac_link) 2>&5
12623 ac_status=$?
12624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12626 (./conftest; exit; ) >&5 2>/dev/null
12627 lt_status=$?
12628 case x$lt_status in
12629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12631 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12632 esac
12633 else :
12634 # compilation failed
12635 lt_cv_dlopen_self_static=no
12636 fi
12637 fi
12638 rm -fr conftest*
12639
12640
12641 fi
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12643 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12644 fi
12645
12646 CPPFLAGS=$save_CPPFLAGS
12647 LDFLAGS=$save_LDFLAGS
12648 LIBS=$save_LIBS
12649 ;;
12650 esac
12651
12652 case $lt_cv_dlopen_self in
12653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12654 *) enable_dlopen_self=unknown ;;
12655 esac
12656
12657 case $lt_cv_dlopen_self_static in
12658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12659 *) enable_dlopen_self_static=unknown ;;
12660 esac
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 striplib=
12680 old_striplib=
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12682 printf %s "checking whether stripping libraries is possible... " >&6; }
12683 if test -z "$STRIP"; then
12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 printf "%s\n" "no" >&6; }
12686 else
12687 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12688 old_striplib="$STRIP --strip-debug"
12689 striplib="$STRIP --strip-unneeded"
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12691 printf "%s\n" "yes" >&6; }
12692 else
12693 case $host_os in
12694 darwin*)
12695 # FIXME - insert some real tests, host_os isn't really good enough
12696 striplib="$STRIP -x"
12697 old_striplib="$STRIP -S"
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12699 printf "%s\n" "yes" >&6; }
12700 ;;
12701 freebsd*)
12702 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12703 old_striplib="$STRIP --strip-debug"
12704 striplib="$STRIP --strip-unneeded"
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 printf "%s\n" "yes" >&6; }
12707 else
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 printf "%s\n" "no" >&6; }
12710 fi
12711 ;;
12712 *)
12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 printf "%s\n" "no" >&6; }
12715 ;;
12716 esac
12717 fi
12718 fi
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731 # Report what library types will actually be built
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12733 printf %s "checking if libtool supports shared libraries... " >&6; }
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12735 printf "%s\n" "$can_build_shared" >&6; }
12736
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12738 printf %s "checking whether to build shared libraries... " >&6; }
12739 test no = "$can_build_shared" && enable_shared=no
12740
12741 # On AIX, shared libraries and static libraries use the same namespace, and
12742 # are all built from PIC.
12743 case $host_os in
12744 aix3*)
12745 test yes = "$enable_shared" && enable_static=no
12746 if test -n "$RANLIB"; then
12747 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12748 postinstall_cmds='$RANLIB $lib'
12749 fi
12750 ;;
12751
12752 aix[4-9]*)
12753 if test ia64 != "$host_cpu"; then
12754 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12755 yes,aix,yes) ;; # shared object as lib.so file only
12756 yes,svr4,*) ;; # shared object as lib.so archive member only
12757 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12758 esac
12759 fi
12760 ;;
12761 esac
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12763 printf "%s\n" "$enable_shared" >&6; }
12764
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12766 printf %s "checking whether to build static libraries... " >&6; }
12767 # Make sure either enable_shared or enable_static is yes.
12768 test yes = "$enable_shared" || enable_static=yes
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12770 printf "%s\n" "$enable_static" >&6; }
12771
12772
12773
12774
12775 fi
12776 ac_ext=c
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781
12782 CC=$lt_save_CC
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798 ac_config_commands="$ac_config_commands libtool"
12799
12800
12801
12802
12803 # Only expand once:
12804
12805
12806
12807 # Initialize X.Org macros
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12821 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12822 if test ${ac_cv_c_undeclared_builtin_options+y}
12823 then :
12824 printf %s "(cached) " >&6
12825 else $as_nop
12826 ac_save_CFLAGS=$CFLAGS
12827 ac_cv_c_undeclared_builtin_options='cannot detect'
12828 for ac_arg in '' -fno-builtin; do
12829 CFLAGS="$ac_save_CFLAGS $ac_arg"
12830 # This test program should *not* compile successfully.
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833
12834 int
12835 main (void)
12836 {
12837 (void) strchr;
12838 ;
12839 return 0;
12840 }
12841 _ACEOF
12842 if ac_fn_c_try_compile "$LINENO"
12843 then :
12844
12845 else $as_nop
12846 # This test program should compile successfully.
12847 # No library function is consistently available on
12848 # freestanding implementations, so test against a dummy
12849 # declaration. Include always-available headers on the
12850 # off chance that they somehow elicit warnings.
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 #include <float.h>
12854 #include <limits.h>
12855 #include <stdarg.h>
12856 #include <stddef.h>
12857 extern void ac_decl (int, char *);
12858
12859 int
12860 main (void)
12861 {
12862 (void) ac_decl (0, (char *) 0);
12863 (void) ac_decl;
12864
12865 ;
12866 return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_compile "$LINENO"
12870 then :
12871 if test x"$ac_arg" = x
12872 then :
12873 ac_cv_c_undeclared_builtin_options='none needed'
12874 else $as_nop
12875 ac_cv_c_undeclared_builtin_options=$ac_arg
12876 fi
12877 break
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12882 done
12883 CFLAGS=$ac_save_CFLAGS
12884
12885 fi
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12887 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12888 case $ac_cv_c_undeclared_builtin_options in #(
12889 'cannot detect') :
12890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12891 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12892 as_fn_error $? "cannot make $CC report undeclared builtins
12893 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12894 'none needed') :
12895 ac_c_undeclared_builtin_options='' ;; #(
12896 *) :
12897 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12898 esac
12899
12900
12901
12902
12903
12904 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12905 if test "x$ac_cv_have_decl___clang__" = xyes
12906 then :
12907 CLANGCC="yes"
12908 else $as_nop
12909 CLANGCC="no"
12910 fi
12911 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12912 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12913 then :
12914 INTELCC="yes"
12915 else $as_nop
12916 INTELCC="no"
12917 fi
12918 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12919 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12920 then :
12921 SUNCC="yes"
12922 else $as_nop
12923 SUNCC="no"
12924 fi
12925
12926
12927
12928
12929
12930
12931
12932
12933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12934 if test -n "$ac_tool_prefix"; then
12935 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 printf %s "checking for $ac_word... " >&6; }
12939 if test ${ac_cv_path_PKG_CONFIG+y}
12940 then :
12941 printf %s "(cached) " >&6
12942 else $as_nop
12943 case $PKG_CONFIG in
12944 [\\/]* | ?:[\\/]*)
12945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12946 ;;
12947 *)
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951 IFS=$as_save_IFS
12952 case $as_dir in #(((
12953 '') as_dir=./ ;;
12954 */) ;;
12955 *) as_dir=$as_dir/ ;;
12956 esac
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12959 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963 done
12964 done
12965 IFS=$as_save_IFS
12966
12967 ;;
12968 esac
12969 fi
12970 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12971 if test -n "$PKG_CONFIG"; then
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12973 printf "%s\n" "$PKG_CONFIG" >&6; }
12974 else
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 printf "%s\n" "no" >&6; }
12977 fi
12978
12979
12980 fi
12981 if test -z "$ac_cv_path_PKG_CONFIG"; then
12982 ac_pt_PKG_CONFIG=$PKG_CONFIG
12983 # Extract the first word of "pkg-config", so it can be a program name with args.
12984 set dummy pkg-config; ac_word=$2
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 printf %s "checking for $ac_word... " >&6; }
12987 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12988 then :
12989 printf %s "(cached) " >&6
12990 else $as_nop
12991 case $ac_pt_PKG_CONFIG in
12992 [\\/]* | ?:[\\/]*)
12993 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12994 ;;
12995 *)
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12998 do
12999 IFS=$as_save_IFS
13000 case $as_dir in #(((
13001 '') as_dir=./ ;;
13002 */) ;;
13003 *) as_dir=$as_dir/ ;;
13004 esac
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13007 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011 done
13012 done
13013 IFS=$as_save_IFS
13014
13015 ;;
13016 esac
13017 fi
13018 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13019 if test -n "$ac_pt_PKG_CONFIG"; then
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13021 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13022 else
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 printf "%s\n" "no" >&6; }
13025 fi
13026
13027 if test "x$ac_pt_PKG_CONFIG" = x; then
13028 PKG_CONFIG=""
13029 else
13030 case $cross_compiling:$ac_tool_warned in
13031 yes:)
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13033 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13034 ac_tool_warned=yes ;;
13035 esac
13036 PKG_CONFIG=$ac_pt_PKG_CONFIG
13037 fi
13038 else
13039 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13040 fi
13041
13042 fi
13043 if test -n "$PKG_CONFIG"; then
13044 _pkg_min_version=0.9.0
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13046 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13047 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049 printf "%s\n" "yes" >&6; }
13050 else
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 printf "%s\n" "no" >&6; }
13053 PKG_CONFIG=""
13054 fi
13055 fi
13056
13057
13058
13059
13060
13061 # Check whether --enable-selective-werror was given.
13062 if test ${enable_selective_werror+y}
13063 then :
13064 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13065 else $as_nop
13066 SELECTIVE_WERROR=yes
13067 fi
13068
13069
13070
13071
13072
13073 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13074 if test "x$SUNCC" = "xyes"; then
13075 BASE_CFLAGS="-v"
13076 else
13077 BASE_CFLAGS=""
13078 fi
13079
13080 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094 xorg_testset_save_CFLAGS="$CFLAGS"
13095
13096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13100 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13101 then :
13102 printf %s "(cached) " >&6
13103 else $as_nop
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 int i;
13107 _ACEOF
13108 if ac_fn_c_try_compile "$LINENO"
13109 then :
13110 xorg_cv_cc_flag_unknown_warning_option=yes
13111 else $as_nop
13112 xorg_cv_cc_flag_unknown_warning_option=no
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13115 fi
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13119 CFLAGS="$xorg_testset_save_CFLAGS"
13120 fi
13121
13122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13125 fi
13126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13130 then :
13131 printf %s "(cached) " >&6
13132 else $as_nop
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 int i;
13136 _ACEOF
13137 if ac_fn_c_try_compile "$LINENO"
13138 then :
13139 xorg_cv_cc_flag_unused_command_line_argument=yes
13140 else $as_nop
13141 xorg_cv_cc_flag_unused_command_line_argument=no
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13144 fi
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13148 CFLAGS="$xorg_testset_save_CFLAGS"
13149 fi
13150
13151 found="no"
13152
13153 if test $found = "no" ; then
13154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13156 fi
13157
13158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13160 fi
13161
13162 CFLAGS="$CFLAGS -Wall"
13163
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13165 printf %s "checking if $CC supports -Wall... " >&6; }
13166 cacheid=xorg_cv_cc_flag__Wall
13167 if eval test \${$cacheid+y}
13168 then :
13169 printf %s "(cached) " >&6
13170 else $as_nop
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 int i;
13174 int
13175 main (void)
13176 {
13177
13178 ;
13179 return 0;
13180 }
13181 _ACEOF
13182 if ac_fn_c_try_link "$LINENO"
13183 then :
13184 eval $cacheid=yes
13185 else $as_nop
13186 eval $cacheid=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13189 conftest$ac_exeext conftest.$ac_ext
13190 fi
13191
13192
13193 CFLAGS="$xorg_testset_save_CFLAGS"
13194
13195 eval supported=\$$cacheid
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13197 printf "%s\n" "$supported" >&6; }
13198 if test "$supported" = "yes" ; then
13199 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13200 found="yes"
13201 fi
13202 fi
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218 xorg_testset_save_CFLAGS="$CFLAGS"
13219
13220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13225 then :
13226 printf %s "(cached) " >&6
13227 else $as_nop
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 int i;
13231 _ACEOF
13232 if ac_fn_c_try_compile "$LINENO"
13233 then :
13234 xorg_cv_cc_flag_unknown_warning_option=yes
13235 else $as_nop
13236 xorg_cv_cc_flag_unknown_warning_option=no
13237 fi
13238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13239 fi
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13243 CFLAGS="$xorg_testset_save_CFLAGS"
13244 fi
13245
13246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13249 fi
13250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13254 then :
13255 printf %s "(cached) " >&6
13256 else $as_nop
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 int i;
13260 _ACEOF
13261 if ac_fn_c_try_compile "$LINENO"
13262 then :
13263 xorg_cv_cc_flag_unused_command_line_argument=yes
13264 else $as_nop
13265 xorg_cv_cc_flag_unused_command_line_argument=no
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13268 fi
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13272 CFLAGS="$xorg_testset_save_CFLAGS"
13273 fi
13274
13275 found="no"
13276
13277 if test $found = "no" ; then
13278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13280 fi
13281
13282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13284 fi
13285
13286 CFLAGS="$CFLAGS -Wpointer-arith"
13287
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13289 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13290 cacheid=xorg_cv_cc_flag__Wpointer_arith
13291 if eval test \${$cacheid+y}
13292 then :
13293 printf %s "(cached) " >&6
13294 else $as_nop
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297 int i;
13298 int
13299 main (void)
13300 {
13301
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"
13307 then :
13308 eval $cacheid=yes
13309 else $as_nop
13310 eval $cacheid=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13313 conftest$ac_exeext conftest.$ac_ext
13314 fi
13315
13316
13317 CFLAGS="$xorg_testset_save_CFLAGS"
13318
13319 eval supported=\$$cacheid
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13321 printf "%s\n" "$supported" >&6; }
13322 if test "$supported" = "yes" ; then
13323 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13324 found="yes"
13325 fi
13326 fi
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342 xorg_testset_save_CFLAGS="$CFLAGS"
13343
13344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13349 then :
13350 printf %s "(cached) " >&6
13351 else $as_nop
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 int i;
13355 _ACEOF
13356 if ac_fn_c_try_compile "$LINENO"
13357 then :
13358 xorg_cv_cc_flag_unknown_warning_option=yes
13359 else $as_nop
13360 xorg_cv_cc_flag_unknown_warning_option=no
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13363 fi
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13367 CFLAGS="$xorg_testset_save_CFLAGS"
13368 fi
13369
13370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13373 fi
13374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13378 then :
13379 printf %s "(cached) " >&6
13380 else $as_nop
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 int i;
13384 _ACEOF
13385 if ac_fn_c_try_compile "$LINENO"
13386 then :
13387 xorg_cv_cc_flag_unused_command_line_argument=yes
13388 else $as_nop
13389 xorg_cv_cc_flag_unused_command_line_argument=no
13390 fi
13391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13392 fi
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13396 CFLAGS="$xorg_testset_save_CFLAGS"
13397 fi
13398
13399 found="no"
13400
13401 if test $found = "no" ; then
13402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13404 fi
13405
13406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13408 fi
13409
13410 CFLAGS="$CFLAGS -Wmissing-declarations"
13411
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13413 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13414 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13415 if eval test \${$cacheid+y}
13416 then :
13417 printf %s "(cached) " >&6
13418 else $as_nop
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 int i;
13422 int
13423 main (void)
13424 {
13425
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_link "$LINENO"
13431 then :
13432 eval $cacheid=yes
13433 else $as_nop
13434 eval $cacheid=no
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13437 conftest$ac_exeext conftest.$ac_ext
13438 fi
13439
13440
13441 CFLAGS="$xorg_testset_save_CFLAGS"
13442
13443 eval supported=\$$cacheid
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13445 printf "%s\n" "$supported" >&6; }
13446 if test "$supported" = "yes" ; then
13447 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13448 found="yes"
13449 fi
13450 fi
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466 xorg_testset_save_CFLAGS="$CFLAGS"
13467
13468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13473 then :
13474 printf %s "(cached) " >&6
13475 else $as_nop
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 int i;
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"
13481 then :
13482 xorg_cv_cc_flag_unknown_warning_option=yes
13483 else $as_nop
13484 xorg_cv_cc_flag_unknown_warning_option=no
13485 fi
13486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13487 fi
13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13491 CFLAGS="$xorg_testset_save_CFLAGS"
13492 fi
13493
13494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13497 fi
13498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13502 then :
13503 printf %s "(cached) " >&6
13504 else $as_nop
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 int i;
13508 _ACEOF
13509 if ac_fn_c_try_compile "$LINENO"
13510 then :
13511 xorg_cv_cc_flag_unused_command_line_argument=yes
13512 else $as_nop
13513 xorg_cv_cc_flag_unused_command_line_argument=no
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13516 fi
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13520 CFLAGS="$xorg_testset_save_CFLAGS"
13521 fi
13522
13523 found="no"
13524
13525 if test $found = "no" ; then
13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13528 fi
13529
13530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13532 fi
13533
13534 CFLAGS="$CFLAGS -Wformat=2"
13535
13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13537 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13538 cacheid=xorg_cv_cc_flag__Wformat_2
13539 if eval test \${$cacheid+y}
13540 then :
13541 printf %s "(cached) " >&6
13542 else $as_nop
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 int i;
13546 int
13547 main (void)
13548 {
13549
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"
13555 then :
13556 eval $cacheid=yes
13557 else $as_nop
13558 eval $cacheid=no
13559 fi
13560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13561 conftest$ac_exeext conftest.$ac_ext
13562 fi
13563
13564
13565 CFLAGS="$xorg_testset_save_CFLAGS"
13566
13567 eval supported=\$$cacheid
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13569 printf "%s\n" "$supported" >&6; }
13570 if test "$supported" = "yes" ; then
13571 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13572 found="yes"
13573 fi
13574 fi
13575
13576 if test $found = "no" ; then
13577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13579 fi
13580
13581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13583 fi
13584
13585 CFLAGS="$CFLAGS -Wformat"
13586
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13588 printf %s "checking if $CC supports -Wformat... " >&6; }
13589 cacheid=xorg_cv_cc_flag__Wformat
13590 if eval test \${$cacheid+y}
13591 then :
13592 printf %s "(cached) " >&6
13593 else $as_nop
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 int i;
13597 int
13598 main (void)
13599 {
13600
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_link "$LINENO"
13606 then :
13607 eval $cacheid=yes
13608 else $as_nop
13609 eval $cacheid=no
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13612 conftest$ac_exeext conftest.$ac_ext
13613 fi
13614
13615
13616 CFLAGS="$xorg_testset_save_CFLAGS"
13617
13618 eval supported=\$$cacheid
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13620 printf "%s\n" "$supported" >&6; }
13621 if test "$supported" = "yes" ; then
13622 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13623 found="yes"
13624 fi
13625 fi
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643 xorg_testset_save_CFLAGS="$CFLAGS"
13644
13645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13650 then :
13651 printf %s "(cached) " >&6
13652 else $as_nop
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655 int i;
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"
13658 then :
13659 xorg_cv_cc_flag_unknown_warning_option=yes
13660 else $as_nop
13661 xorg_cv_cc_flag_unknown_warning_option=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13664 fi
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13666 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13668 CFLAGS="$xorg_testset_save_CFLAGS"
13669 fi
13670
13671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 fi
13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13677 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13678 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13679 then :
13680 printf %s "(cached) " >&6
13681 else $as_nop
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 int i;
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"
13687 then :
13688 xorg_cv_cc_flag_unused_command_line_argument=yes
13689 else $as_nop
13690 xorg_cv_cc_flag_unused_command_line_argument=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13693 fi
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13697 CFLAGS="$xorg_testset_save_CFLAGS"
13698 fi
13699
13700 found="no"
13701
13702 if test $found = "no" ; then
13703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 fi
13706
13707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13709 fi
13710
13711 CFLAGS="$CFLAGS -Wstrict-prototypes"
13712
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13714 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13715 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13716 if eval test \${$cacheid+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 int i;
13723 int
13724 main (void)
13725 {
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_link "$LINENO"
13732 then :
13733 eval $cacheid=yes
13734 else $as_nop
13735 eval $cacheid=no
13736 fi
13737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13738 conftest$ac_exeext conftest.$ac_ext
13739 fi
13740
13741
13742 CFLAGS="$xorg_testset_save_CFLAGS"
13743
13744 eval supported=\$$cacheid
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13746 printf "%s\n" "$supported" >&6; }
13747 if test "$supported" = "yes" ; then
13748 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13749 found="yes"
13750 fi
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767 xorg_testset_save_CFLAGS="$CFLAGS"
13768
13769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else $as_nop
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 int i;
13780 _ACEOF
13781 if ac_fn_c_try_compile "$LINENO"
13782 then :
13783 xorg_cv_cc_flag_unknown_warning_option=yes
13784 else $as_nop
13785 xorg_cv_cc_flag_unknown_warning_option=no
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13788 fi
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13792 CFLAGS="$xorg_testset_save_CFLAGS"
13793 fi
13794
13795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798 fi
13799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13802 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13803 then :
13804 printf %s "(cached) " >&6
13805 else $as_nop
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 int i;
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"
13811 then :
13812 xorg_cv_cc_flag_unused_command_line_argument=yes
13813 else $as_nop
13814 xorg_cv_cc_flag_unused_command_line_argument=no
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13817 fi
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13821 CFLAGS="$xorg_testset_save_CFLAGS"
13822 fi
13823
13824 found="no"
13825
13826 if test $found = "no" ; then
13827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829 fi
13830
13831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13833 fi
13834
13835 CFLAGS="$CFLAGS -Wmissing-prototypes"
13836
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13838 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13839 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13840 if eval test \${$cacheid+y}
13841 then :
13842 printf %s "(cached) " >&6
13843 else $as_nop
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 int i;
13847 int
13848 main (void)
13849 {
13850
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_c_try_link "$LINENO"
13856 then :
13857 eval $cacheid=yes
13858 else $as_nop
13859 eval $cacheid=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13862 conftest$ac_exeext conftest.$ac_ext
13863 fi
13864
13865
13866 CFLAGS="$xorg_testset_save_CFLAGS"
13867
13868 eval supported=\$$cacheid
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13870 printf "%s\n" "$supported" >&6; }
13871 if test "$supported" = "yes" ; then
13872 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13873 found="yes"
13874 fi
13875 fi
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891 xorg_testset_save_CFLAGS="$CFLAGS"
13892
13893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13897 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else $as_nop
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 int i;
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"
13906 then :
13907 xorg_cv_cc_flag_unknown_warning_option=yes
13908 else $as_nop
13909 xorg_cv_cc_flag_unknown_warning_option=no
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13912 fi
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13916 CFLAGS="$xorg_testset_save_CFLAGS"
13917 fi
13918
13919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13922 fi
13923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13927 then :
13928 printf %s "(cached) " >&6
13929 else $as_nop
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 int i;
13933 _ACEOF
13934 if ac_fn_c_try_compile "$LINENO"
13935 then :
13936 xorg_cv_cc_flag_unused_command_line_argument=yes
13937 else $as_nop
13938 xorg_cv_cc_flag_unused_command_line_argument=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13941 fi
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13943 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13946 fi
13947
13948 found="no"
13949
13950 if test $found = "no" ; then
13951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 fi
13954
13955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13957 fi
13958
13959 CFLAGS="$CFLAGS -Wnested-externs"
13960
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13962 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13963 cacheid=xorg_cv_cc_flag__Wnested_externs
13964 if eval test \${$cacheid+y}
13965 then :
13966 printf %s "(cached) " >&6
13967 else $as_nop
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 int i;
13971 int
13972 main (void)
13973 {
13974
13975 ;
13976 return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_link "$LINENO"
13980 then :
13981 eval $cacheid=yes
13982 else $as_nop
13983 eval $cacheid=no
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13986 conftest$ac_exeext conftest.$ac_ext
13987 fi
13988
13989
13990 CFLAGS="$xorg_testset_save_CFLAGS"
13991
13992 eval supported=\$$cacheid
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13994 printf "%s\n" "$supported" >&6; }
13995 if test "$supported" = "yes" ; then
13996 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13997 found="yes"
13998 fi
13999 fi
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015 xorg_testset_save_CFLAGS="$CFLAGS"
14016
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else $as_nop
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 int i;
14028 _ACEOF
14029 if ac_fn_c_try_compile "$LINENO"
14030 then :
14031 xorg_cv_cc_flag_unknown_warning_option=yes
14032 else $as_nop
14033 xorg_cv_cc_flag_unknown_warning_option=no
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14036 fi
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14040 CFLAGS="$xorg_testset_save_CFLAGS"
14041 fi
14042
14043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046 fi
14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14051 then :
14052 printf %s "(cached) " >&6
14053 else $as_nop
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 int i;
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"
14059 then :
14060 xorg_cv_cc_flag_unused_command_line_argument=yes
14061 else $as_nop
14062 xorg_cv_cc_flag_unused_command_line_argument=no
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14065 fi
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14069 CFLAGS="$xorg_testset_save_CFLAGS"
14070 fi
14071
14072 found="no"
14073
14074 if test $found = "no" ; then
14075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077 fi
14078
14079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14081 fi
14082
14083 CFLAGS="$CFLAGS -Wbad-function-cast"
14084
14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14086 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14087 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14088 if eval test \${$cacheid+y}
14089 then :
14090 printf %s "(cached) " >&6
14091 else $as_nop
14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 int i;
14095 int
14096 main (void)
14097 {
14098
14099 ;
14100 return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"
14104 then :
14105 eval $cacheid=yes
14106 else $as_nop
14107 eval $cacheid=no
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14110 conftest$ac_exeext conftest.$ac_ext
14111 fi
14112
14113
14114 CFLAGS="$xorg_testset_save_CFLAGS"
14115
14116 eval supported=\$$cacheid
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14118 printf "%s\n" "$supported" >&6; }
14119 if test "$supported" = "yes" ; then
14120 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14121 found="yes"
14122 fi
14123 fi
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139 xorg_testset_save_CFLAGS="$CFLAGS"
14140
14141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14146 then :
14147 printf %s "(cached) " >&6
14148 else $as_nop
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 int i;
14152 _ACEOF
14153 if ac_fn_c_try_compile "$LINENO"
14154 then :
14155 xorg_cv_cc_flag_unknown_warning_option=yes
14156 else $as_nop
14157 xorg_cv_cc_flag_unknown_warning_option=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
14178 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 $as_nop
14186 xorg_cv_cc_flag_unused_command_line_argument=no
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14189 fi
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14193 CFLAGS="$xorg_testset_save_CFLAGS"
14194 fi
14195
14196 found="no"
14197
14198 if test $found = "no" ; then
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 fi
14202
14203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14205 fi
14206
14207 CFLAGS="$CFLAGS -Wold-style-definition"
14208
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14210 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14211 cacheid=xorg_cv_cc_flag__Wold_style_definition
14212 if eval test \${$cacheid+y}
14213 then :
14214 printf %s "(cached) " >&6
14215 else $as_nop
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 int i;
14219 int
14220 main (void)
14221 {
14222
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"
14228 then :
14229 eval $cacheid=yes
14230 else $as_nop
14231 eval $cacheid=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14234 conftest$ac_exeext conftest.$ac_ext
14235 fi
14236
14237
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14239
14240 eval supported=\$$cacheid
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14242 printf "%s\n" "$supported" >&6; }
14243 if test "$supported" = "yes" ; then
14244 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14245 found="yes"
14246 fi
14247 fi
14248
14249 if test $found = "no" ; then
14250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14252 fi
14253
14254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14256 fi
14257
14258 CFLAGS="$CFLAGS -fd"
14259
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14261 printf %s "checking if $CC supports -fd... " >&6; }
14262 cacheid=xorg_cv_cc_flag__fd
14263 if eval test \${$cacheid+y}
14264 then :
14265 printf %s "(cached) " >&6
14266 else $as_nop
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 int i;
14270 int
14271 main (void)
14272 {
14273
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"
14279 then :
14280 eval $cacheid=yes
14281 else $as_nop
14282 eval $cacheid=no
14283 fi
14284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14285 conftest$ac_exeext conftest.$ac_ext
14286 fi
14287
14288
14289 CFLAGS="$xorg_testset_save_CFLAGS"
14290
14291 eval supported=\$$cacheid
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14293 printf "%s\n" "$supported" >&6; }
14294 if test "$supported" = "yes" ; then
14295 BASE_CFLAGS="$BASE_CFLAGS -fd"
14296 found="yes"
14297 fi
14298 fi
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314 xorg_testset_save_CFLAGS="$CFLAGS"
14315
14316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14321 then :
14322 printf %s "(cached) " >&6
14323 else $as_nop
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"
14329 then :
14330 xorg_cv_cc_flag_unknown_warning_option=yes
14331 else $as_nop
14332 xorg_cv_cc_flag_unknown_warning_option=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14335 fi
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14337 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14339 CFLAGS="$xorg_testset_save_CFLAGS"
14340 fi
14341
14342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345 fi
14346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14350 then :
14351 printf %s "(cached) " >&6
14352 else $as_nop
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 int i;
14356 _ACEOF
14357 if ac_fn_c_try_compile "$LINENO"
14358 then :
14359 xorg_cv_cc_flag_unused_command_line_argument=yes
14360 else $as_nop
14361 xorg_cv_cc_flag_unused_command_line_argument=no
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14364 fi
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14368 CFLAGS="$xorg_testset_save_CFLAGS"
14369 fi
14370
14371 found="no"
14372
14373 if test $found = "no" ; then
14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376 fi
14377
14378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14380 fi
14381
14382 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14383
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14385 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14386 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14387 if eval test \${$cacheid+y}
14388 then :
14389 printf %s "(cached) " >&6
14390 else $as_nop
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 int i;
14394 int
14395 main (void)
14396 {
14397
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"
14403 then :
14404 eval $cacheid=yes
14405 else $as_nop
14406 eval $cacheid=no
14407 fi
14408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14409 conftest$ac_exeext conftest.$ac_ext
14410 fi
14411
14412
14413 CFLAGS="$xorg_testset_save_CFLAGS"
14414
14415 eval supported=\$$cacheid
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14417 printf "%s\n" "$supported" >&6; }
14418 if test "$supported" = "yes" ; then
14419 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14420 found="yes"
14421 fi
14422 fi
14423
14424
14425
14426
14427
14428 # This chunk adds additional warnings that could catch undesired effects.
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442 xorg_testset_save_CFLAGS="$CFLAGS"
14443
14444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14447 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14448 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14449 then :
14450 printf %s "(cached) " >&6
14451 else $as_nop
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 int i;
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"
14457 then :
14458 xorg_cv_cc_flag_unknown_warning_option=yes
14459 else $as_nop
14460 xorg_cv_cc_flag_unknown_warning_option=no
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14467 CFLAGS="$xorg_testset_save_CFLAGS"
14468 fi
14469
14470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473 fi
14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14478 then :
14479 printf %s "(cached) " >&6
14480 else $as_nop
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 int i;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"
14486 then :
14487 xorg_cv_cc_flag_unused_command_line_argument=yes
14488 else $as_nop
14489 xorg_cv_cc_flag_unused_command_line_argument=no
14490 fi
14491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14492 fi
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14494 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14496 CFLAGS="$xorg_testset_save_CFLAGS"
14497 fi
14498
14499 found="no"
14500
14501 if test $found = "no" ; then
14502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504 fi
14505
14506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 fi
14509
14510 CFLAGS="$CFLAGS -Wunused"
14511
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14513 printf %s "checking if $CC supports -Wunused... " >&6; }
14514 cacheid=xorg_cv_cc_flag__Wunused
14515 if eval test \${$cacheid+y}
14516 then :
14517 printf %s "(cached) " >&6
14518 else $as_nop
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 int i;
14522 int
14523 main (void)
14524 {
14525
14526 ;
14527 return 0;
14528 }
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"
14531 then :
14532 eval $cacheid=yes
14533 else $as_nop
14534 eval $cacheid=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14537 conftest$ac_exeext conftest.$ac_ext
14538 fi
14539
14540
14541 CFLAGS="$xorg_testset_save_CFLAGS"
14542
14543 eval supported=\$$cacheid
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14545 printf "%s\n" "$supported" >&6; }
14546 if test "$supported" = "yes" ; then
14547 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14548 found="yes"
14549 fi
14550 fi
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566 xorg_testset_save_CFLAGS="$CFLAGS"
14567
14568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14571 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14572 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14573 then :
14574 printf %s "(cached) " >&6
14575 else $as_nop
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 int i;
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"
14581 then :
14582 xorg_cv_cc_flag_unknown_warning_option=yes
14583 else $as_nop
14584 xorg_cv_cc_flag_unknown_warning_option=no
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14587 fi
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14591 CFLAGS="$xorg_testset_save_CFLAGS"
14592 fi
14593
14594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14597 fi
14598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14602 then :
14603 printf %s "(cached) " >&6
14604 else $as_nop
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 int i;
14608 _ACEOF
14609 if ac_fn_c_try_compile "$LINENO"
14610 then :
14611 xorg_cv_cc_flag_unused_command_line_argument=yes
14612 else $as_nop
14613 xorg_cv_cc_flag_unused_command_line_argument=no
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14616 fi
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14620 CFLAGS="$xorg_testset_save_CFLAGS"
14621 fi
14622
14623 found="no"
14624
14625 if test $found = "no" ; then
14626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14628 fi
14629
14630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14632 fi
14633
14634 CFLAGS="$CFLAGS -Wuninitialized"
14635
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14637 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14638 cacheid=xorg_cv_cc_flag__Wuninitialized
14639 if eval test \${$cacheid+y}
14640 then :
14641 printf %s "(cached) " >&6
14642 else $as_nop
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 int i;
14646 int
14647 main (void)
14648 {
14649
14650 ;
14651 return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_link "$LINENO"
14655 then :
14656 eval $cacheid=yes
14657 else $as_nop
14658 eval $cacheid=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14661 conftest$ac_exeext conftest.$ac_ext
14662 fi
14663
14664
14665 CFLAGS="$xorg_testset_save_CFLAGS"
14666
14667 eval supported=\$$cacheid
14668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14669 printf "%s\n" "$supported" >&6; }
14670 if test "$supported" = "yes" ; then
14671 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14672 found="yes"
14673 fi
14674 fi
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690 xorg_testset_save_CFLAGS="$CFLAGS"
14691
14692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14696 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14697 then :
14698 printf %s "(cached) " >&6
14699 else $as_nop
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 int i;
14703 _ACEOF
14704 if ac_fn_c_try_compile "$LINENO"
14705 then :
14706 xorg_cv_cc_flag_unknown_warning_option=yes
14707 else $as_nop
14708 xorg_cv_cc_flag_unknown_warning_option=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14711 fi
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14713 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14715 CFLAGS="$xorg_testset_save_CFLAGS"
14716 fi
14717
14718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721 fi
14722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14724 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14725 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14726 then :
14727 printf %s "(cached) " >&6
14728 else $as_nop
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731 int i;
14732 _ACEOF
14733 if ac_fn_c_try_compile "$LINENO"
14734 then :
14735 xorg_cv_cc_flag_unused_command_line_argument=yes
14736 else $as_nop
14737 xorg_cv_cc_flag_unused_command_line_argument=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14740 fi
14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14742 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14744 CFLAGS="$xorg_testset_save_CFLAGS"
14745 fi
14746
14747 found="no"
14748
14749 if test $found = "no" ; then
14750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14752 fi
14753
14754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14756 fi
14757
14758 CFLAGS="$CFLAGS -Wshadow"
14759
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14761 printf %s "checking if $CC supports -Wshadow... " >&6; }
14762 cacheid=xorg_cv_cc_flag__Wshadow
14763 if eval test \${$cacheid+y}
14764 then :
14765 printf %s "(cached) " >&6
14766 else $as_nop
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 int i;
14770 int
14771 main (void)
14772 {
14773
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_link "$LINENO"
14779 then :
14780 eval $cacheid=yes
14781 else $as_nop
14782 eval $cacheid=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14785 conftest$ac_exeext conftest.$ac_ext
14786 fi
14787
14788
14789 CFLAGS="$xorg_testset_save_CFLAGS"
14790
14791 eval supported=\$$cacheid
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14793 printf "%s\n" "$supported" >&6; }
14794 if test "$supported" = "yes" ; then
14795 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14796 found="yes"
14797 fi
14798 fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814 xorg_testset_save_CFLAGS="$CFLAGS"
14815
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14821 then :
14822 printf %s "(cached) " >&6
14823 else $as_nop
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 int i;
14827 _ACEOF
14828 if ac_fn_c_try_compile "$LINENO"
14829 then :
14830 xorg_cv_cc_flag_unknown_warning_option=yes
14831 else $as_nop
14832 xorg_cv_cc_flag_unknown_warning_option=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14835 fi
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14839 CFLAGS="$xorg_testset_save_CFLAGS"
14840 fi
14841
14842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845 fi
14846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14850 then :
14851 printf %s "(cached) " >&6
14852 else $as_nop
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855 int i;
14856 _ACEOF
14857 if ac_fn_c_try_compile "$LINENO"
14858 then :
14859 xorg_cv_cc_flag_unused_command_line_argument=yes
14860 else $as_nop
14861 xorg_cv_cc_flag_unused_command_line_argument=no
14862 fi
14863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14864 fi
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14868 CFLAGS="$xorg_testset_save_CFLAGS"
14869 fi
14870
14871 found="no"
14872
14873 if test $found = "no" ; then
14874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14876 fi
14877
14878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14880 fi
14881
14882 CFLAGS="$CFLAGS -Wmissing-noreturn"
14883
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14885 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14886 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14887 if eval test \${$cacheid+y}
14888 then :
14889 printf %s "(cached) " >&6
14890 else $as_nop
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 int i;
14894 int
14895 main (void)
14896 {
14897
14898 ;
14899 return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"
14903 then :
14904 eval $cacheid=yes
14905 else $as_nop
14906 eval $cacheid=no
14907 fi
14908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14909 conftest$ac_exeext conftest.$ac_ext
14910 fi
14911
14912
14913 CFLAGS="$xorg_testset_save_CFLAGS"
14914
14915 eval supported=\$$cacheid
14916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14917 printf "%s\n" "$supported" >&6; }
14918 if test "$supported" = "yes" ; then
14919 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14920 found="yes"
14921 fi
14922 fi
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938 xorg_testset_save_CFLAGS="$CFLAGS"
14939
14940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14945 then :
14946 printf %s "(cached) " >&6
14947 else $as_nop
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 int i;
14951 _ACEOF
14952 if ac_fn_c_try_compile "$LINENO"
14953 then :
14954 xorg_cv_cc_flag_unknown_warning_option=yes
14955 else $as_nop
14956 xorg_cv_cc_flag_unknown_warning_option=no
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14959 fi
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14963 CFLAGS="$xorg_testset_save_CFLAGS"
14964 fi
14965
14966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969 fi
14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14974 then :
14975 printf %s "(cached) " >&6
14976 else $as_nop
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 int i;
14980 _ACEOF
14981 if ac_fn_c_try_compile "$LINENO"
14982 then :
14983 xorg_cv_cc_flag_unused_command_line_argument=yes
14984 else $as_nop
14985 xorg_cv_cc_flag_unused_command_line_argument=no
14986 fi
14987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14988 fi
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14992 CFLAGS="$xorg_testset_save_CFLAGS"
14993 fi
14994
14995 found="no"
14996
14997 if test $found = "no" ; then
14998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15000 fi
15001
15002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15004 fi
15005
15006 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15007
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15009 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15010 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15011 if eval test \${$cacheid+y}
15012 then :
15013 printf %s "(cached) " >&6
15014 else $as_nop
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 int i;
15018 int
15019 main (void)
15020 {
15021
15022 ;
15023 return 0;
15024 }
15025 _ACEOF
15026 if ac_fn_c_try_link "$LINENO"
15027 then :
15028 eval $cacheid=yes
15029 else $as_nop
15030 eval $cacheid=no
15031 fi
15032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15033 conftest$ac_exeext conftest.$ac_ext
15034 fi
15035
15036
15037 CFLAGS="$xorg_testset_save_CFLAGS"
15038
15039 eval supported=\$$cacheid
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15041 printf "%s\n" "$supported" >&6; }
15042 if test "$supported" = "yes" ; then
15043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15044 found="yes"
15045 fi
15046 fi
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062 xorg_testset_save_CFLAGS="$CFLAGS"
15063
15064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15067 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15068 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15069 then :
15070 printf %s "(cached) " >&6
15071 else $as_nop
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 int i;
15075 _ACEOF
15076 if ac_fn_c_try_compile "$LINENO"
15077 then :
15078 xorg_cv_cc_flag_unknown_warning_option=yes
15079 else $as_nop
15080 xorg_cv_cc_flag_unknown_warning_option=no
15081 fi
15082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15083 fi
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15085 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15087 CFLAGS="$xorg_testset_save_CFLAGS"
15088 fi
15089
15090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15093 fi
15094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15096 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15097 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15098 then :
15099 printf %s "(cached) " >&6
15100 else $as_nop
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103 int i;
15104 _ACEOF
15105 if ac_fn_c_try_compile "$LINENO"
15106 then :
15107 xorg_cv_cc_flag_unused_command_line_argument=yes
15108 else $as_nop
15109 xorg_cv_cc_flag_unused_command_line_argument=no
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15112 fi
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15114 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15116 CFLAGS="$xorg_testset_save_CFLAGS"
15117 fi
15118
15119 found="no"
15120
15121 if test $found = "no" ; then
15122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15124 fi
15125
15126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15128 fi
15129
15130 CFLAGS="$CFLAGS -Wredundant-decls"
15131
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15133 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15134 cacheid=xorg_cv_cc_flag__Wredundant_decls
15135 if eval test \${$cacheid+y}
15136 then :
15137 printf %s "(cached) " >&6
15138 else $as_nop
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 int i;
15142 int
15143 main (void)
15144 {
15145
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_link "$LINENO"
15151 then :
15152 eval $cacheid=yes
15153 else $as_nop
15154 eval $cacheid=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15157 conftest$ac_exeext conftest.$ac_ext
15158 fi
15159
15160
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15162
15163 eval supported=\$$cacheid
15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15165 printf "%s\n" "$supported" >&6; }
15166 if test "$supported" = "yes" ; then
15167 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15168 found="yes"
15169 fi
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 xorg_testset_save_CFLAGS="$CFLAGS"
15187
15188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else $as_nop
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 int i;
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"
15201 then :
15202 xorg_cv_cc_flag_unknown_warning_option=yes
15203 else $as_nop
15204 xorg_cv_cc_flag_unknown_warning_option=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15207 fi
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15211 CFLAGS="$xorg_testset_save_CFLAGS"
15212 fi
15213
15214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15217 fi
15218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15222 then :
15223 printf %s "(cached) " >&6
15224 else $as_nop
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 int i;
15228 _ACEOF
15229 if ac_fn_c_try_compile "$LINENO"
15230 then :
15231 xorg_cv_cc_flag_unused_command_line_argument=yes
15232 else $as_nop
15233 xorg_cv_cc_flag_unused_command_line_argument=no
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15236 fi
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15240 CFLAGS="$xorg_testset_save_CFLAGS"
15241 fi
15242
15243 found="no"
15244
15245 if test $found = "no" ; then
15246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15248 fi
15249
15250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15252 fi
15253
15254 CFLAGS="$CFLAGS -Wlogical-op"
15255
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15257 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15258 cacheid=xorg_cv_cc_flag__Wlogical_op
15259 if eval test \${$cacheid+y}
15260 then :
15261 printf %s "(cached) " >&6
15262 else $as_nop
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 int i;
15266 int
15267 main (void)
15268 {
15269
15270 ;
15271 return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_link "$LINENO"
15275 then :
15276 eval $cacheid=yes
15277 else $as_nop
15278 eval $cacheid=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15281 conftest$ac_exeext conftest.$ac_ext
15282 fi
15283
15284
15285 CFLAGS="$xorg_testset_save_CFLAGS"
15286
15287 eval supported=\$$cacheid
15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15289 printf "%s\n" "$supported" >&6; }
15290 if test "$supported" = "yes" ; then
15291 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15292 found="yes"
15293 fi
15294 fi
15295
15296
15297
15298 # These are currently disabled because they are noisy. They will be enabled
15299 # in the future once the codebase is sufficiently modernized to silence
15300 # them. For now, I don't want them to drown out the other warnings.
15301 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15302 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15303 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15304
15305 # Turn some warnings into errors, so we don't accidently get successful builds
15306 # when there are problems that should be fixed.
15307
15308 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322 xorg_testset_save_CFLAGS="$CFLAGS"
15323
15324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15328 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15329 then :
15330 printf %s "(cached) " >&6
15331 else $as_nop
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 int i;
15335 _ACEOF
15336 if ac_fn_c_try_compile "$LINENO"
15337 then :
15338 xorg_cv_cc_flag_unknown_warning_option=yes
15339 else $as_nop
15340 xorg_cv_cc_flag_unknown_warning_option=no
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15343 fi
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15347 CFLAGS="$xorg_testset_save_CFLAGS"
15348 fi
15349
15350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15353 fi
15354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15358 then :
15359 printf %s "(cached) " >&6
15360 else $as_nop
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 int i;
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"
15366 then :
15367 xorg_cv_cc_flag_unused_command_line_argument=yes
15368 else $as_nop
15369 xorg_cv_cc_flag_unused_command_line_argument=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15372 fi
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15376 CFLAGS="$xorg_testset_save_CFLAGS"
15377 fi
15378
15379 found="no"
15380
15381 if test $found = "no" ; then
15382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15384 fi
15385
15386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15388 fi
15389
15390 CFLAGS="$CFLAGS -Werror=implicit"
15391
15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15393 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15394 cacheid=xorg_cv_cc_flag__Werror_implicit
15395 if eval test \${$cacheid+y}
15396 then :
15397 printf %s "(cached) " >&6
15398 else $as_nop
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401 int i;
15402 int
15403 main (void)
15404 {
15405
15406 ;
15407 return 0;
15408 }
15409 _ACEOF
15410 if ac_fn_c_try_link "$LINENO"
15411 then :
15412 eval $cacheid=yes
15413 else $as_nop
15414 eval $cacheid=no
15415 fi
15416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15417 conftest$ac_exeext conftest.$ac_ext
15418 fi
15419
15420
15421 CFLAGS="$xorg_testset_save_CFLAGS"
15422
15423 eval supported=\$$cacheid
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15425 printf "%s\n" "$supported" >&6; }
15426 if test "$supported" = "yes" ; then
15427 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15428 found="yes"
15429 fi
15430 fi
15431
15432 if test $found = "no" ; then
15433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435 fi
15436
15437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15439 fi
15440
15441 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15442
15443 { 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
15444 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15445 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15446 if eval test \${$cacheid+y}
15447 then :
15448 printf %s "(cached) " >&6
15449 else $as_nop
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452 int i;
15453 int
15454 main (void)
15455 {
15456
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_c_try_link "$LINENO"
15462 then :
15463 eval $cacheid=yes
15464 else $as_nop
15465 eval $cacheid=no
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15468 conftest$ac_exeext conftest.$ac_ext
15469 fi
15470
15471
15472 CFLAGS="$xorg_testset_save_CFLAGS"
15473
15474 eval supported=\$$cacheid
15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15476 printf "%s\n" "$supported" >&6; }
15477 if test "$supported" = "yes" ; then
15478 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15479 found="yes"
15480 fi
15481 fi
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497 xorg_testset_save_CFLAGS="$CFLAGS"
15498
15499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15504 then :
15505 printf %s "(cached) " >&6
15506 else $as_nop
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 int i;
15510 _ACEOF
15511 if ac_fn_c_try_compile "$LINENO"
15512 then :
15513 xorg_cv_cc_flag_unknown_warning_option=yes
15514 else $as_nop
15515 xorg_cv_cc_flag_unknown_warning_option=no
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15518 fi
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522 CFLAGS="$xorg_testset_save_CFLAGS"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 fi
15529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else $as_nop
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 int i;
15539 _ACEOF
15540 if ac_fn_c_try_compile "$LINENO"
15541 then :
15542 xorg_cv_cc_flag_unused_command_line_argument=yes
15543 else $as_nop
15544 xorg_cv_cc_flag_unused_command_line_argument=no
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15547 fi
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15551 CFLAGS="$xorg_testset_save_CFLAGS"
15552 fi
15553
15554 found="no"
15555
15556 if test $found = "no" ; then
15557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559 fi
15560
15561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15563 fi
15564
15565 CFLAGS="$CFLAGS -Werror=nonnull"
15566
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15568 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15569 cacheid=xorg_cv_cc_flag__Werror_nonnull
15570 if eval test \${$cacheid+y}
15571 then :
15572 printf %s "(cached) " >&6
15573 else $as_nop
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15576 int i;
15577 int
15578 main (void)
15579 {
15580
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_link "$LINENO"
15586 then :
15587 eval $cacheid=yes
15588 else $as_nop
15589 eval $cacheid=no
15590 fi
15591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15592 conftest$ac_exeext conftest.$ac_ext
15593 fi
15594
15595
15596 CFLAGS="$xorg_testset_save_CFLAGS"
15597
15598 eval supported=\$$cacheid
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15600 printf "%s\n" "$supported" >&6; }
15601 if test "$supported" = "yes" ; then
15602 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15603 found="yes"
15604 fi
15605 fi
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621 xorg_testset_save_CFLAGS="$CFLAGS"
15622
15623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15627 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15628 then :
15629 printf %s "(cached) " >&6
15630 else $as_nop
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 int i;
15634 _ACEOF
15635 if ac_fn_c_try_compile "$LINENO"
15636 then :
15637 xorg_cv_cc_flag_unknown_warning_option=yes
15638 else $as_nop
15639 xorg_cv_cc_flag_unknown_warning_option=no
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15642 fi
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15644 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15646 CFLAGS="$xorg_testset_save_CFLAGS"
15647 fi
15648
15649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652 fi
15653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15655 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15656 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15657 then :
15658 printf %s "(cached) " >&6
15659 else $as_nop
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 int i;
15663 _ACEOF
15664 if ac_fn_c_try_compile "$LINENO"
15665 then :
15666 xorg_cv_cc_flag_unused_command_line_argument=yes
15667 else $as_nop
15668 xorg_cv_cc_flag_unused_command_line_argument=no
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15671 fi
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15673 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15675 CFLAGS="$xorg_testset_save_CFLAGS"
15676 fi
15677
15678 found="no"
15679
15680 if test $found = "no" ; then
15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15683 fi
15684
15685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15687 fi
15688
15689 CFLAGS="$CFLAGS -Werror=init-self"
15690
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15692 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15693 cacheid=xorg_cv_cc_flag__Werror_init_self
15694 if eval test \${$cacheid+y}
15695 then :
15696 printf %s "(cached) " >&6
15697 else $as_nop
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 int i;
15701 int
15702 main (void)
15703 {
15704
15705 ;
15706 return 0;
15707 }
15708 _ACEOF
15709 if ac_fn_c_try_link "$LINENO"
15710 then :
15711 eval $cacheid=yes
15712 else $as_nop
15713 eval $cacheid=no
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15716 conftest$ac_exeext conftest.$ac_ext
15717 fi
15718
15719
15720 CFLAGS="$xorg_testset_save_CFLAGS"
15721
15722 eval supported=\$$cacheid
15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15724 printf "%s\n" "$supported" >&6; }
15725 if test "$supported" = "yes" ; then
15726 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15727 found="yes"
15728 fi
15729 fi
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745 xorg_testset_save_CFLAGS="$CFLAGS"
15746
15747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15751 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15752 then :
15753 printf %s "(cached) " >&6
15754 else $as_nop
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757 int i;
15758 _ACEOF
15759 if ac_fn_c_try_compile "$LINENO"
15760 then :
15761 xorg_cv_cc_flag_unknown_warning_option=yes
15762 else $as_nop
15763 xorg_cv_cc_flag_unknown_warning_option=no
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15766 fi
15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15768 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15770 CFLAGS="$xorg_testset_save_CFLAGS"
15771 fi
15772
15773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776 fi
15777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15779 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15780 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15781 then :
15782 printf %s "(cached) " >&6
15783 else $as_nop
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 int i;
15787 _ACEOF
15788 if ac_fn_c_try_compile "$LINENO"
15789 then :
15790 xorg_cv_cc_flag_unused_command_line_argument=yes
15791 else $as_nop
15792 xorg_cv_cc_flag_unused_command_line_argument=no
15793 fi
15794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15795 fi
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15799 CFLAGS="$xorg_testset_save_CFLAGS"
15800 fi
15801
15802 found="no"
15803
15804 if test $found = "no" ; then
15805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15807 fi
15808
15809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15811 fi
15812
15813 CFLAGS="$CFLAGS -Werror=main"
15814
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15816 printf %s "checking if $CC supports -Werror=main... " >&6; }
15817 cacheid=xorg_cv_cc_flag__Werror_main
15818 if eval test \${$cacheid+y}
15819 then :
15820 printf %s "(cached) " >&6
15821 else $as_nop
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 int i;
15825 int
15826 main (void)
15827 {
15828
15829 ;
15830 return 0;
15831 }
15832 _ACEOF
15833 if ac_fn_c_try_link "$LINENO"
15834 then :
15835 eval $cacheid=yes
15836 else $as_nop
15837 eval $cacheid=no
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15840 conftest$ac_exeext conftest.$ac_ext
15841 fi
15842
15843
15844 CFLAGS="$xorg_testset_save_CFLAGS"
15845
15846 eval supported=\$$cacheid
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15848 printf "%s\n" "$supported" >&6; }
15849 if test "$supported" = "yes" ; then
15850 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15851 found="yes"
15852 fi
15853 fi
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869 xorg_testset_save_CFLAGS="$CFLAGS"
15870
15871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15874 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15875 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15876 then :
15877 printf %s "(cached) " >&6
15878 else $as_nop
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881 int i;
15882 _ACEOF
15883 if ac_fn_c_try_compile "$LINENO"
15884 then :
15885 xorg_cv_cc_flag_unknown_warning_option=yes
15886 else $as_nop
15887 xorg_cv_cc_flag_unknown_warning_option=no
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15890 fi
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15892 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15894 CFLAGS="$xorg_testset_save_CFLAGS"
15895 fi
15896
15897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 fi
15901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15903 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15904 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15905 then :
15906 printf %s "(cached) " >&6
15907 else $as_nop
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 int i;
15911 _ACEOF
15912 if ac_fn_c_try_compile "$LINENO"
15913 then :
15914 xorg_cv_cc_flag_unused_command_line_argument=yes
15915 else $as_nop
15916 xorg_cv_cc_flag_unused_command_line_argument=no
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15919 fi
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15921 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15923 CFLAGS="$xorg_testset_save_CFLAGS"
15924 fi
15925
15926 found="no"
15927
15928 if test $found = "no" ; then
15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931 fi
15932
15933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15935 fi
15936
15937 CFLAGS="$CFLAGS -Werror=missing-braces"
15938
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15940 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15941 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15942 if eval test \${$cacheid+y}
15943 then :
15944 printf %s "(cached) " >&6
15945 else $as_nop
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 int i;
15949 int
15950 main (void)
15951 {
15952
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 if ac_fn_c_try_link "$LINENO"
15958 then :
15959 eval $cacheid=yes
15960 else $as_nop
15961 eval $cacheid=no
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15964 conftest$ac_exeext conftest.$ac_ext
15965 fi
15966
15967
15968 CFLAGS="$xorg_testset_save_CFLAGS"
15969
15970 eval supported=\$$cacheid
15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15972 printf "%s\n" "$supported" >&6; }
15973 if test "$supported" = "yes" ; then
15974 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15975 found="yes"
15976 fi
15977 fi
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993 xorg_testset_save_CFLAGS="$CFLAGS"
15994
15995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15998 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15999 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16000 then :
16001 printf %s "(cached) " >&6
16002 else $as_nop
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 int i;
16006 _ACEOF
16007 if ac_fn_c_try_compile "$LINENO"
16008 then :
16009 xorg_cv_cc_flag_unknown_warning_option=yes
16010 else $as_nop
16011 xorg_cv_cc_flag_unknown_warning_option=no
16012 fi
16013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16014 fi
16015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16018 CFLAGS="$xorg_testset_save_CFLAGS"
16019 fi
16020
16021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16024 fi
16025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16029 then :
16030 printf %s "(cached) " >&6
16031 else $as_nop
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 int i;
16035 _ACEOF
16036 if ac_fn_c_try_compile "$LINENO"
16037 then :
16038 xorg_cv_cc_flag_unused_command_line_argument=yes
16039 else $as_nop
16040 xorg_cv_cc_flag_unused_command_line_argument=no
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16043 fi
16044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16048 fi
16049
16050 found="no"
16051
16052 if test $found = "no" ; then
16053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16055 fi
16056
16057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16059 fi
16060
16061 CFLAGS="$CFLAGS -Werror=sequence-point"
16062
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16064 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16065 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16066 if eval test \${$cacheid+y}
16067 then :
16068 printf %s "(cached) " >&6
16069 else $as_nop
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 int i;
16073 int
16074 main (void)
16075 {
16076
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"
16082 then :
16083 eval $cacheid=yes
16084 else $as_nop
16085 eval $cacheid=no
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16088 conftest$ac_exeext conftest.$ac_ext
16089 fi
16090
16091
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16093
16094 eval supported=\$$cacheid
16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096 printf "%s\n" "$supported" >&6; }
16097 if test "$supported" = "yes" ; then
16098 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16099 found="yes"
16100 fi
16101 fi
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117 xorg_testset_save_CFLAGS="$CFLAGS"
16118
16119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16122 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16123 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16124 then :
16125 printf %s "(cached) " >&6
16126 else $as_nop
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 int i;
16130 _ACEOF
16131 if ac_fn_c_try_compile "$LINENO"
16132 then :
16133 xorg_cv_cc_flag_unknown_warning_option=yes
16134 else $as_nop
16135 xorg_cv_cc_flag_unknown_warning_option=no
16136 fi
16137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16138 fi
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16142 CFLAGS="$xorg_testset_save_CFLAGS"
16143 fi
16144
16145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148 fi
16149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16153 then :
16154 printf %s "(cached) " >&6
16155 else $as_nop
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16159 _ACEOF
16160 if ac_fn_c_try_compile "$LINENO"
16161 then :
16162 xorg_cv_cc_flag_unused_command_line_argument=yes
16163 else $as_nop
16164 xorg_cv_cc_flag_unused_command_line_argument=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16167 fi
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16169 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16171 CFLAGS="$xorg_testset_save_CFLAGS"
16172 fi
16173
16174 found="no"
16175
16176 if test $found = "no" ; then
16177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179 fi
16180
16181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16183 fi
16184
16185 CFLAGS="$CFLAGS -Werror=return-type"
16186
16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16188 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16189 cacheid=xorg_cv_cc_flag__Werror_return_type
16190 if eval test \${$cacheid+y}
16191 then :
16192 printf %s "(cached) " >&6
16193 else $as_nop
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 int i;
16197 int
16198 main (void)
16199 {
16200
16201 ;
16202 return 0;
16203 }
16204 _ACEOF
16205 if ac_fn_c_try_link "$LINENO"
16206 then :
16207 eval $cacheid=yes
16208 else $as_nop
16209 eval $cacheid=no
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16212 conftest$ac_exeext conftest.$ac_ext
16213 fi
16214
16215
16216 CFLAGS="$xorg_testset_save_CFLAGS"
16217
16218 eval supported=\$$cacheid
16219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16220 printf "%s\n" "$supported" >&6; }
16221 if test "$supported" = "yes" ; then
16222 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16223 found="yes"
16224 fi
16225 fi
16226
16227 if test $found = "no" ; then
16228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16230 fi
16231
16232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16234 fi
16235
16236 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16237
16238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16239 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16240 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16241 if eval test \${$cacheid+y}
16242 then :
16243 printf %s "(cached) " >&6
16244 else $as_nop
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 int i;
16248 int
16249 main (void)
16250 {
16251
16252 ;
16253 return 0;
16254 }
16255 _ACEOF
16256 if ac_fn_c_try_link "$LINENO"
16257 then :
16258 eval $cacheid=yes
16259 else $as_nop
16260 eval $cacheid=no
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16263 conftest$ac_exeext conftest.$ac_ext
16264 fi
16265
16266
16267 CFLAGS="$xorg_testset_save_CFLAGS"
16268
16269 eval supported=\$$cacheid
16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16271 printf "%s\n" "$supported" >&6; }
16272 if test "$supported" = "yes" ; then
16273 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16274 found="yes"
16275 fi
16276 fi
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292 xorg_testset_save_CFLAGS="$CFLAGS"
16293
16294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16297 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16298 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16299 then :
16300 printf %s "(cached) " >&6
16301 else $as_nop
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 int i;
16305 _ACEOF
16306 if ac_fn_c_try_compile "$LINENO"
16307 then :
16308 xorg_cv_cc_flag_unknown_warning_option=yes
16309 else $as_nop
16310 xorg_cv_cc_flag_unknown_warning_option=no
16311 fi
16312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16313 fi
16314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16315 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16317 CFLAGS="$xorg_testset_save_CFLAGS"
16318 fi
16319
16320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323 fi
16324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16328 then :
16329 printf %s "(cached) " >&6
16330 else $as_nop
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16333 int i;
16334 _ACEOF
16335 if ac_fn_c_try_compile "$LINENO"
16336 then :
16337 xorg_cv_cc_flag_unused_command_line_argument=yes
16338 else $as_nop
16339 xorg_cv_cc_flag_unused_command_line_argument=no
16340 fi
16341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16342 fi
16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16344 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16346 CFLAGS="$xorg_testset_save_CFLAGS"
16347 fi
16348
16349 found="no"
16350
16351 if test $found = "no" ; then
16352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16354 fi
16355
16356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16358 fi
16359
16360 CFLAGS="$CFLAGS -Werror=trigraphs"
16361
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16363 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16364 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16365 if eval test \${$cacheid+y}
16366 then :
16367 printf %s "(cached) " >&6
16368 else $as_nop
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 int i;
16372 int
16373 main (void)
16374 {
16375
16376 ;
16377 return 0;
16378 }
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"
16381 then :
16382 eval $cacheid=yes
16383 else $as_nop
16384 eval $cacheid=no
16385 fi
16386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16387 conftest$ac_exeext conftest.$ac_ext
16388 fi
16389
16390
16391 CFLAGS="$xorg_testset_save_CFLAGS"
16392
16393 eval supported=\$$cacheid
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16395 printf "%s\n" "$supported" >&6; }
16396 if test "$supported" = "yes" ; then
16397 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16398 found="yes"
16399 fi
16400 fi
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416 xorg_testset_save_CFLAGS="$CFLAGS"
16417
16418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16422 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16423 then :
16424 printf %s "(cached) " >&6
16425 else $as_nop
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 int i;
16429 _ACEOF
16430 if ac_fn_c_try_compile "$LINENO"
16431 then :
16432 xorg_cv_cc_flag_unknown_warning_option=yes
16433 else $as_nop
16434 xorg_cv_cc_flag_unknown_warning_option=no
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16437 fi
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16439 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16441 CFLAGS="$xorg_testset_save_CFLAGS"
16442 fi
16443
16444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447 fi
16448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16450 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16451 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16452 then :
16453 printf %s "(cached) " >&6
16454 else $as_nop
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 int i;
16458 _ACEOF
16459 if ac_fn_c_try_compile "$LINENO"
16460 then :
16461 xorg_cv_cc_flag_unused_command_line_argument=yes
16462 else $as_nop
16463 xorg_cv_cc_flag_unused_command_line_argument=no
16464 fi
16465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16466 fi
16467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16468 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16470 CFLAGS="$xorg_testset_save_CFLAGS"
16471 fi
16472
16473 found="no"
16474
16475 if test $found = "no" ; then
16476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478 fi
16479
16480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16482 fi
16483
16484 CFLAGS="$CFLAGS -Werror=array-bounds"
16485
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16487 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16488 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16489 if eval test \${$cacheid+y}
16490 then :
16491 printf %s "(cached) " >&6
16492 else $as_nop
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 int i;
16496 int
16497 main (void)
16498 {
16499
16500 ;
16501 return 0;
16502 }
16503 _ACEOF
16504 if ac_fn_c_try_link "$LINENO"
16505 then :
16506 eval $cacheid=yes
16507 else $as_nop
16508 eval $cacheid=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16511 conftest$ac_exeext conftest.$ac_ext
16512 fi
16513
16514
16515 CFLAGS="$xorg_testset_save_CFLAGS"
16516
16517 eval supported=\$$cacheid
16518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16519 printf "%s\n" "$supported" >&6; }
16520 if test "$supported" = "yes" ; then
16521 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16522 found="yes"
16523 fi
16524 fi
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540 xorg_testset_save_CFLAGS="$CFLAGS"
16541
16542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16546 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16547 then :
16548 printf %s "(cached) " >&6
16549 else $as_nop
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int i;
16553 _ACEOF
16554 if ac_fn_c_try_compile "$LINENO"
16555 then :
16556 xorg_cv_cc_flag_unknown_warning_option=yes
16557 else $as_nop
16558 xorg_cv_cc_flag_unknown_warning_option=no
16559 fi
16560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16561 fi
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16565 CFLAGS="$xorg_testset_save_CFLAGS"
16566 fi
16567
16568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571 fi
16572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16576 then :
16577 printf %s "(cached) " >&6
16578 else $as_nop
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581 int i;
16582 _ACEOF
16583 if ac_fn_c_try_compile "$LINENO"
16584 then :
16585 xorg_cv_cc_flag_unused_command_line_argument=yes
16586 else $as_nop
16587 xorg_cv_cc_flag_unused_command_line_argument=no
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16590 fi
16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16594 CFLAGS="$xorg_testset_save_CFLAGS"
16595 fi
16596
16597 found="no"
16598
16599 if test $found = "no" ; then
16600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16602 fi
16603
16604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16606 fi
16607
16608 CFLAGS="$CFLAGS -Werror=write-strings"
16609
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16611 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16612 cacheid=xorg_cv_cc_flag__Werror_write_strings
16613 if eval test \${$cacheid+y}
16614 then :
16615 printf %s "(cached) " >&6
16616 else $as_nop
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619 int i;
16620 int
16621 main (void)
16622 {
16623
16624 ;
16625 return 0;
16626 }
16627 _ACEOF
16628 if ac_fn_c_try_link "$LINENO"
16629 then :
16630 eval $cacheid=yes
16631 else $as_nop
16632 eval $cacheid=no
16633 fi
16634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16635 conftest$ac_exeext conftest.$ac_ext
16636 fi
16637
16638
16639 CFLAGS="$xorg_testset_save_CFLAGS"
16640
16641 eval supported=\$$cacheid
16642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16643 printf "%s\n" "$supported" >&6; }
16644 if test "$supported" = "yes" ; then
16645 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16646 found="yes"
16647 fi
16648 fi
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664 xorg_testset_save_CFLAGS="$CFLAGS"
16665
16666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16671 then :
16672 printf %s "(cached) " >&6
16673 else $as_nop
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 int i;
16677 _ACEOF
16678 if ac_fn_c_try_compile "$LINENO"
16679 then :
16680 xorg_cv_cc_flag_unknown_warning_option=yes
16681 else $as_nop
16682 xorg_cv_cc_flag_unknown_warning_option=no
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16685 fi
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16689 CFLAGS="$xorg_testset_save_CFLAGS"
16690 fi
16691
16692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16695 fi
16696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16700 then :
16701 printf %s "(cached) " >&6
16702 else $as_nop
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705 int i;
16706 _ACEOF
16707 if ac_fn_c_try_compile "$LINENO"
16708 then :
16709 xorg_cv_cc_flag_unused_command_line_argument=yes
16710 else $as_nop
16711 xorg_cv_cc_flag_unused_command_line_argument=no
16712 fi
16713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16714 fi
16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16718 CFLAGS="$xorg_testset_save_CFLAGS"
16719 fi
16720
16721 found="no"
16722
16723 if test $found = "no" ; then
16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726 fi
16727
16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16730 fi
16731
16732 CFLAGS="$CFLAGS -Werror=address"
16733
16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16735 printf %s "checking if $CC supports -Werror=address... " >&6; }
16736 cacheid=xorg_cv_cc_flag__Werror_address
16737 if eval test \${$cacheid+y}
16738 then :
16739 printf %s "(cached) " >&6
16740 else $as_nop
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 int i;
16744 int
16745 main (void)
16746 {
16747
16748 ;
16749 return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_c_try_link "$LINENO"
16753 then :
16754 eval $cacheid=yes
16755 else $as_nop
16756 eval $cacheid=no
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16759 conftest$ac_exeext conftest.$ac_ext
16760 fi
16761
16762
16763 CFLAGS="$xorg_testset_save_CFLAGS"
16764
16765 eval supported=\$$cacheid
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16767 printf "%s\n" "$supported" >&6; }
16768 if test "$supported" = "yes" ; then
16769 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16770 found="yes"
16771 fi
16772 fi
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788 xorg_testset_save_CFLAGS="$CFLAGS"
16789
16790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16795 then :
16796 printf %s "(cached) " >&6
16797 else $as_nop
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 int i;
16801 _ACEOF
16802 if ac_fn_c_try_compile "$LINENO"
16803 then :
16804 xorg_cv_cc_flag_unknown_warning_option=yes
16805 else $as_nop
16806 xorg_cv_cc_flag_unknown_warning_option=no
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16809 fi
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16813 CFLAGS="$xorg_testset_save_CFLAGS"
16814 fi
16815
16816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16819 fi
16820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16824 then :
16825 printf %s "(cached) " >&6
16826 else $as_nop
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 int i;
16830 _ACEOF
16831 if ac_fn_c_try_compile "$LINENO"
16832 then :
16833 xorg_cv_cc_flag_unused_command_line_argument=yes
16834 else $as_nop
16835 xorg_cv_cc_flag_unused_command_line_argument=no
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16838 fi
16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16840 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16842 CFLAGS="$xorg_testset_save_CFLAGS"
16843 fi
16844
16845 found="no"
16846
16847 if test $found = "no" ; then
16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850 fi
16851
16852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16854 fi
16855
16856 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16857
16858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16859 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16860 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16861 if eval test \${$cacheid+y}
16862 then :
16863 printf %s "(cached) " >&6
16864 else $as_nop
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 int i;
16868 int
16869 main (void)
16870 {
16871
16872 ;
16873 return 0;
16874 }
16875 _ACEOF
16876 if ac_fn_c_try_link "$LINENO"
16877 then :
16878 eval $cacheid=yes
16879 else $as_nop
16880 eval $cacheid=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16883 conftest$ac_exeext conftest.$ac_ext
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=int-to-pointer-cast"
16894 found="yes"
16895 fi
16896 fi
16897
16898 if test $found = "no" ; then
16899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16901 fi
16902
16903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16905 fi
16906
16907 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16908
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16910 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16911 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16912 if eval test \${$cacheid+y}
16913 then :
16914 printf %s "(cached) " >&6
16915 else $as_nop
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 int i;
16919 int
16920 main (void)
16921 {
16922
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 if ac_fn_c_try_link "$LINENO"
16928 then :
16929 eval $cacheid=yes
16930 else $as_nop
16931 eval $cacheid=no
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16934 conftest$ac_exeext conftest.$ac_ext
16935 fi
16936
16937
16938 CFLAGS="$xorg_testset_save_CFLAGS"
16939
16940 eval supported=\$$cacheid
16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16942 printf "%s\n" "$supported" >&6; }
16943 if test "$supported" = "yes" ; then
16944 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16945 found="yes"
16946 fi
16947 fi
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963 xorg_testset_save_CFLAGS="$CFLAGS"
16964
16965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16970 then :
16971 printf %s "(cached) " >&6
16972 else $as_nop
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 int i;
16976 _ACEOF
16977 if ac_fn_c_try_compile "$LINENO"
16978 then :
16979 xorg_cv_cc_flag_unknown_warning_option=yes
16980 else $as_nop
16981 xorg_cv_cc_flag_unknown_warning_option=no
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16984 fi
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16988 CFLAGS="$xorg_testset_save_CFLAGS"
16989 fi
16990
16991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994 fi
16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16999 then :
17000 printf %s "(cached) " >&6
17001 else $as_nop
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 int i;
17005 _ACEOF
17006 if ac_fn_c_try_compile "$LINENO"
17007 then :
17008 xorg_cv_cc_flag_unused_command_line_argument=yes
17009 else $as_nop
17010 xorg_cv_cc_flag_unused_command_line_argument=no
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17013 fi
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17017 CFLAGS="$xorg_testset_save_CFLAGS"
17018 fi
17019
17020 found="no"
17021
17022 if test $found = "no" ; then
17023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17025 fi
17026
17027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17029 fi
17030
17031 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17032
17033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17034 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17035 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17036 if eval test \${$cacheid+y}
17037 then :
17038 printf %s "(cached) " >&6
17039 else $as_nop
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 int i;
17043 int
17044 main (void)
17045 {
17046
17047 ;
17048 return 0;
17049 }
17050 _ACEOF
17051 if ac_fn_c_try_link "$LINENO"
17052 then :
17053 eval $cacheid=yes
17054 else $as_nop
17055 eval $cacheid=no
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17058 conftest$ac_exeext conftest.$ac_ext
17059 fi
17060
17061
17062 CFLAGS="$xorg_testset_save_CFLAGS"
17063
17064 eval supported=\$$cacheid
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17066 printf "%s\n" "$supported" >&6; }
17067 if test "$supported" = "yes" ; then
17068 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17069 found="yes"
17070 fi
17071 fi
17072
17073 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17074 else
17075 { 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
17076 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;}
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090 xorg_testset_save_CFLAGS="$CFLAGS"
17091
17092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17097 then :
17098 printf %s "(cached) " >&6
17099 else $as_nop
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"
17105 then :
17106 xorg_cv_cc_flag_unknown_warning_option=yes
17107 else $as_nop
17108 xorg_cv_cc_flag_unknown_warning_option=no
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17111 fi
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17115 CFLAGS="$xorg_testset_save_CFLAGS"
17116 fi
17117
17118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 fi
17122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17126 then :
17127 printf %s "(cached) " >&6
17128 else $as_nop
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131 int i;
17132 _ACEOF
17133 if ac_fn_c_try_compile "$LINENO"
17134 then :
17135 xorg_cv_cc_flag_unused_command_line_argument=yes
17136 else $as_nop
17137 xorg_cv_cc_flag_unused_command_line_argument=no
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17140 fi
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17144 CFLAGS="$xorg_testset_save_CFLAGS"
17145 fi
17146
17147 found="no"
17148
17149 if test $found = "no" ; then
17150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17152 fi
17153
17154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17156 fi
17157
17158 CFLAGS="$CFLAGS -Wimplicit"
17159
17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17161 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17162 cacheid=xorg_cv_cc_flag__Wimplicit
17163 if eval test \${$cacheid+y}
17164 then :
17165 printf %s "(cached) " >&6
17166 else $as_nop
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17169 int i;
17170 int
17171 main (void)
17172 {
17173
17174 ;
17175 return 0;
17176 }
17177 _ACEOF
17178 if ac_fn_c_try_link "$LINENO"
17179 then :
17180 eval $cacheid=yes
17181 else $as_nop
17182 eval $cacheid=no
17183 fi
17184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17185 conftest$ac_exeext conftest.$ac_ext
17186 fi
17187
17188
17189 CFLAGS="$xorg_testset_save_CFLAGS"
17190
17191 eval supported=\$$cacheid
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17193 printf "%s\n" "$supported" >&6; }
17194 if test "$supported" = "yes" ; then
17195 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17196 found="yes"
17197 fi
17198 fi
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214 xorg_testset_save_CFLAGS="$CFLAGS"
17215
17216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17221 then :
17222 printf %s "(cached) " >&6
17223 else $as_nop
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226 int i;
17227 _ACEOF
17228 if ac_fn_c_try_compile "$LINENO"
17229 then :
17230 xorg_cv_cc_flag_unknown_warning_option=yes
17231 else $as_nop
17232 xorg_cv_cc_flag_unknown_warning_option=no
17233 fi
17234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17235 fi
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17239 CFLAGS="$xorg_testset_save_CFLAGS"
17240 fi
17241
17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17245 fi
17246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17250 then :
17251 printf %s "(cached) " >&6
17252 else $as_nop
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17255 int i;
17256 _ACEOF
17257 if ac_fn_c_try_compile "$LINENO"
17258 then :
17259 xorg_cv_cc_flag_unused_command_line_argument=yes
17260 else $as_nop
17261 xorg_cv_cc_flag_unused_command_line_argument=no
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17264 fi
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17268 CFLAGS="$xorg_testset_save_CFLAGS"
17269 fi
17270
17271 found="no"
17272
17273 if test $found = "no" ; then
17274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276 fi
17277
17278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17280 fi
17281
17282 CFLAGS="$CFLAGS -Wnonnull"
17283
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17285 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17286 cacheid=xorg_cv_cc_flag__Wnonnull
17287 if eval test \${$cacheid+y}
17288 then :
17289 printf %s "(cached) " >&6
17290 else $as_nop
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17293 int i;
17294 int
17295 main (void)
17296 {
17297
17298 ;
17299 return 0;
17300 }
17301 _ACEOF
17302 if ac_fn_c_try_link "$LINENO"
17303 then :
17304 eval $cacheid=yes
17305 else $as_nop
17306 eval $cacheid=no
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17309 conftest$ac_exeext conftest.$ac_ext
17310 fi
17311
17312
17313 CFLAGS="$xorg_testset_save_CFLAGS"
17314
17315 eval supported=\$$cacheid
17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17317 printf "%s\n" "$supported" >&6; }
17318 if test "$supported" = "yes" ; then
17319 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17320 found="yes"
17321 fi
17322 fi
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338 xorg_testset_save_CFLAGS="$CFLAGS"
17339
17340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17343 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17344 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else $as_nop
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"
17353 then :
17354 xorg_cv_cc_flag_unknown_warning_option=yes
17355 else $as_nop
17356 xorg_cv_cc_flag_unknown_warning_option=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17359 fi
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17363 CFLAGS="$xorg_testset_save_CFLAGS"
17364 fi
17365
17366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369 fi
17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17374 then :
17375 printf %s "(cached) " >&6
17376 else $as_nop
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17379 int i;
17380 _ACEOF
17381 if ac_fn_c_try_compile "$LINENO"
17382 then :
17383 xorg_cv_cc_flag_unused_command_line_argument=yes
17384 else $as_nop
17385 xorg_cv_cc_flag_unused_command_line_argument=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17388 fi
17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17392 CFLAGS="$xorg_testset_save_CFLAGS"
17393 fi
17394
17395 found="no"
17396
17397 if test $found = "no" ; then
17398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17400 fi
17401
17402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17404 fi
17405
17406 CFLAGS="$CFLAGS -Winit-self"
17407
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17409 printf %s "checking if $CC supports -Winit-self... " >&6; }
17410 cacheid=xorg_cv_cc_flag__Winit_self
17411 if eval test \${$cacheid+y}
17412 then :
17413 printf %s "(cached) " >&6
17414 else $as_nop
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17417 int i;
17418 int
17419 main (void)
17420 {
17421
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_link "$LINENO"
17427 then :
17428 eval $cacheid=yes
17429 else $as_nop
17430 eval $cacheid=no
17431 fi
17432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17433 conftest$ac_exeext conftest.$ac_ext
17434 fi
17435
17436
17437 CFLAGS="$xorg_testset_save_CFLAGS"
17438
17439 eval supported=\$$cacheid
17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17441 printf "%s\n" "$supported" >&6; }
17442 if test "$supported" = "yes" ; then
17443 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17444 found="yes"
17445 fi
17446 fi
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462 xorg_testset_save_CFLAGS="$CFLAGS"
17463
17464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17469 then :
17470 printf %s "(cached) " >&6
17471 else $as_nop
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474 int i;
17475 _ACEOF
17476 if ac_fn_c_try_compile "$LINENO"
17477 then :
17478 xorg_cv_cc_flag_unknown_warning_option=yes
17479 else $as_nop
17480 xorg_cv_cc_flag_unknown_warning_option=no
17481 fi
17482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17483 fi
17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17487 CFLAGS="$xorg_testset_save_CFLAGS"
17488 fi
17489
17490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17493 fi
17494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17498 then :
17499 printf %s "(cached) " >&6
17500 else $as_nop
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17503 int i;
17504 _ACEOF
17505 if ac_fn_c_try_compile "$LINENO"
17506 then :
17507 xorg_cv_cc_flag_unused_command_line_argument=yes
17508 else $as_nop
17509 xorg_cv_cc_flag_unused_command_line_argument=no
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17512 fi
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17516 CFLAGS="$xorg_testset_save_CFLAGS"
17517 fi
17518
17519 found="no"
17520
17521 if test $found = "no" ; then
17522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17524 fi
17525
17526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17528 fi
17529
17530 CFLAGS="$CFLAGS -Wmain"
17531
17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17533 printf %s "checking if $CC supports -Wmain... " >&6; }
17534 cacheid=xorg_cv_cc_flag__Wmain
17535 if eval test \${$cacheid+y}
17536 then :
17537 printf %s "(cached) " >&6
17538 else $as_nop
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541 int i;
17542 int
17543 main (void)
17544 {
17545
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"
17551 then :
17552 eval $cacheid=yes
17553 else $as_nop
17554 eval $cacheid=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17557 conftest$ac_exeext conftest.$ac_ext
17558 fi
17559
17560
17561 CFLAGS="$xorg_testset_save_CFLAGS"
17562
17563 eval supported=\$$cacheid
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17565 printf "%s\n" "$supported" >&6; }
17566 if test "$supported" = "yes" ; then
17567 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17568 found="yes"
17569 fi
17570 fi
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586 xorg_testset_save_CFLAGS="$CFLAGS"
17587
17588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17592 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17593 then :
17594 printf %s "(cached) " >&6
17595 else $as_nop
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 int i;
17599 _ACEOF
17600 if ac_fn_c_try_compile "$LINENO"
17601 then :
17602 xorg_cv_cc_flag_unknown_warning_option=yes
17603 else $as_nop
17604 xorg_cv_cc_flag_unknown_warning_option=no
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17607 fi
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17611 CFLAGS="$xorg_testset_save_CFLAGS"
17612 fi
17613
17614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617 fi
17618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17622 then :
17623 printf %s "(cached) " >&6
17624 else $as_nop
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 int i;
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"
17630 then :
17631 xorg_cv_cc_flag_unused_command_line_argument=yes
17632 else $as_nop
17633 xorg_cv_cc_flag_unused_command_line_argument=no
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17636 fi
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17640 CFLAGS="$xorg_testset_save_CFLAGS"
17641 fi
17642
17643 found="no"
17644
17645 if test $found = "no" ; then
17646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17648 fi
17649
17650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17652 fi
17653
17654 CFLAGS="$CFLAGS -Wmissing-braces"
17655
17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17657 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17658 cacheid=xorg_cv_cc_flag__Wmissing_braces
17659 if eval test \${$cacheid+y}
17660 then :
17661 printf %s "(cached) " >&6
17662 else $as_nop
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17665 int i;
17666 int
17667 main (void)
17668 {
17669
17670 ;
17671 return 0;
17672 }
17673 _ACEOF
17674 if ac_fn_c_try_link "$LINENO"
17675 then :
17676 eval $cacheid=yes
17677 else $as_nop
17678 eval $cacheid=no
17679 fi
17680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17681 conftest$ac_exeext conftest.$ac_ext
17682 fi
17683
17684
17685 CFLAGS="$xorg_testset_save_CFLAGS"
17686
17687 eval supported=\$$cacheid
17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17689 printf "%s\n" "$supported" >&6; }
17690 if test "$supported" = "yes" ; then
17691 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17692 found="yes"
17693 fi
17694 fi
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710 xorg_testset_save_CFLAGS="$CFLAGS"
17711
17712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17715 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17716 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17717 then :
17718 printf %s "(cached) " >&6
17719 else $as_nop
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 int i;
17723 _ACEOF
17724 if ac_fn_c_try_compile "$LINENO"
17725 then :
17726 xorg_cv_cc_flag_unknown_warning_option=yes
17727 else $as_nop
17728 xorg_cv_cc_flag_unknown_warning_option=no
17729 fi
17730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17731 fi
17732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17735 CFLAGS="$xorg_testset_save_CFLAGS"
17736 fi
17737
17738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17741 fi
17742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17746 then :
17747 printf %s "(cached) " >&6
17748 else $as_nop
17749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h. */
17751 int i;
17752 _ACEOF
17753 if ac_fn_c_try_compile "$LINENO"
17754 then :
17755 xorg_cv_cc_flag_unused_command_line_argument=yes
17756 else $as_nop
17757 xorg_cv_cc_flag_unused_command_line_argument=no
17758 fi
17759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17760 fi
17761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17762 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17764 CFLAGS="$xorg_testset_save_CFLAGS"
17765 fi
17766
17767 found="no"
17768
17769 if test $found = "no" ; then
17770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17772 fi
17773
17774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17776 fi
17777
17778 CFLAGS="$CFLAGS -Wsequence-point"
17779
17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17781 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17782 cacheid=xorg_cv_cc_flag__Wsequence_point
17783 if eval test \${$cacheid+y}
17784 then :
17785 printf %s "(cached) " >&6
17786 else $as_nop
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 int i;
17790 int
17791 main (void)
17792 {
17793
17794 ;
17795 return 0;
17796 }
17797 _ACEOF
17798 if ac_fn_c_try_link "$LINENO"
17799 then :
17800 eval $cacheid=yes
17801 else $as_nop
17802 eval $cacheid=no
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17805 conftest$ac_exeext conftest.$ac_ext
17806 fi
17807
17808
17809 CFLAGS="$xorg_testset_save_CFLAGS"
17810
17811 eval supported=\$$cacheid
17812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17813 printf "%s\n" "$supported" >&6; }
17814 if test "$supported" = "yes" ; then
17815 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17816 found="yes"
17817 fi
17818 fi
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834 xorg_testset_save_CFLAGS="$CFLAGS"
17835
17836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17841 then :
17842 printf %s "(cached) " >&6
17843 else $as_nop
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846 int i;
17847 _ACEOF
17848 if ac_fn_c_try_compile "$LINENO"
17849 then :
17850 xorg_cv_cc_flag_unknown_warning_option=yes
17851 else $as_nop
17852 xorg_cv_cc_flag_unknown_warning_option=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17855 fi
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17857 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17859 CFLAGS="$xorg_testset_save_CFLAGS"
17860 fi
17861
17862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17865 fi
17866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17868 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17869 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17870 then :
17871 printf %s "(cached) " >&6
17872 else $as_nop
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 int i;
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"
17878 then :
17879 xorg_cv_cc_flag_unused_command_line_argument=yes
17880 else $as_nop
17881 xorg_cv_cc_flag_unused_command_line_argument=no
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17884 fi
17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17888 CFLAGS="$xorg_testset_save_CFLAGS"
17889 fi
17890
17891 found="no"
17892
17893 if test $found = "no" ; then
17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17896 fi
17897
17898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17900 fi
17901
17902 CFLAGS="$CFLAGS -Wreturn-type"
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17905 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17906 cacheid=xorg_cv_cc_flag__Wreturn_type
17907 if eval test \${$cacheid+y}
17908 then :
17909 printf %s "(cached) " >&6
17910 else $as_nop
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 int i;
17914 int
17915 main (void)
17916 {
17917
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"
17923 then :
17924 eval $cacheid=yes
17925 else $as_nop
17926 eval $cacheid=no
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17929 conftest$ac_exeext conftest.$ac_ext
17930 fi
17931
17932
17933 CFLAGS="$xorg_testset_save_CFLAGS"
17934
17935 eval supported=\$$cacheid
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17937 printf "%s\n" "$supported" >&6; }
17938 if test "$supported" = "yes" ; then
17939 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17940 found="yes"
17941 fi
17942 fi
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958 xorg_testset_save_CFLAGS="$CFLAGS"
17959
17960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17965 then :
17966 printf %s "(cached) " >&6
17967 else $as_nop
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970 int i;
17971 _ACEOF
17972 if ac_fn_c_try_compile "$LINENO"
17973 then :
17974 xorg_cv_cc_flag_unknown_warning_option=yes
17975 else $as_nop
17976 xorg_cv_cc_flag_unknown_warning_option=no
17977 fi
17978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17979 fi
17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17983 CFLAGS="$xorg_testset_save_CFLAGS"
17984 fi
17985
17986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17989 fi
17990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17994 then :
17995 printf %s "(cached) " >&6
17996 else $as_nop
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999 int i;
18000 _ACEOF
18001 if ac_fn_c_try_compile "$LINENO"
18002 then :
18003 xorg_cv_cc_flag_unused_command_line_argument=yes
18004 else $as_nop
18005 xorg_cv_cc_flag_unused_command_line_argument=no
18006 fi
18007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18008 fi
18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18012 CFLAGS="$xorg_testset_save_CFLAGS"
18013 fi
18014
18015 found="no"
18016
18017 if test $found = "no" ; then
18018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18020 fi
18021
18022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18024 fi
18025
18026 CFLAGS="$CFLAGS -Wtrigraphs"
18027
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18029 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18030 cacheid=xorg_cv_cc_flag__Wtrigraphs
18031 if eval test \${$cacheid+y}
18032 then :
18033 printf %s "(cached) " >&6
18034 else $as_nop
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 int i;
18038 int
18039 main (void)
18040 {
18041
18042 ;
18043 return 0;
18044 }
18045 _ACEOF
18046 if ac_fn_c_try_link "$LINENO"
18047 then :
18048 eval $cacheid=yes
18049 else $as_nop
18050 eval $cacheid=no
18051 fi
18052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18053 conftest$ac_exeext conftest.$ac_ext
18054 fi
18055
18056
18057 CFLAGS="$xorg_testset_save_CFLAGS"
18058
18059 eval supported=\$$cacheid
18060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18061 printf "%s\n" "$supported" >&6; }
18062 if test "$supported" = "yes" ; then
18063 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18064 found="yes"
18065 fi
18066 fi
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082 xorg_testset_save_CFLAGS="$CFLAGS"
18083
18084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18089 then :
18090 printf %s "(cached) " >&6
18091 else $as_nop
18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h. */
18094 int i;
18095 _ACEOF
18096 if ac_fn_c_try_compile "$LINENO"
18097 then :
18098 xorg_cv_cc_flag_unknown_warning_option=yes
18099 else $as_nop
18100 xorg_cv_cc_flag_unknown_warning_option=no
18101 fi
18102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18103 fi
18104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18107 CFLAGS="$xorg_testset_save_CFLAGS"
18108 fi
18109
18110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18113 fi
18114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18118 then :
18119 printf %s "(cached) " >&6
18120 else $as_nop
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123 int i;
18124 _ACEOF
18125 if ac_fn_c_try_compile "$LINENO"
18126 then :
18127 xorg_cv_cc_flag_unused_command_line_argument=yes
18128 else $as_nop
18129 xorg_cv_cc_flag_unused_command_line_argument=no
18130 fi
18131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18132 fi
18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18134 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18136 CFLAGS="$xorg_testset_save_CFLAGS"
18137 fi
18138
18139 found="no"
18140
18141 if test $found = "no" ; then
18142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18144 fi
18145
18146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18148 fi
18149
18150 CFLAGS="$CFLAGS -Warray-bounds"
18151
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18153 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18154 cacheid=xorg_cv_cc_flag__Warray_bounds
18155 if eval test \${$cacheid+y}
18156 then :
18157 printf %s "(cached) " >&6
18158 else $as_nop
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161 int i;
18162 int
18163 main (void)
18164 {
18165
18166 ;
18167 return 0;
18168 }
18169 _ACEOF
18170 if ac_fn_c_try_link "$LINENO"
18171 then :
18172 eval $cacheid=yes
18173 else $as_nop
18174 eval $cacheid=no
18175 fi
18176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18177 conftest$ac_exeext conftest.$ac_ext
18178 fi
18179
18180
18181 CFLAGS="$xorg_testset_save_CFLAGS"
18182
18183 eval supported=\$$cacheid
18184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18185 printf "%s\n" "$supported" >&6; }
18186 if test "$supported" = "yes" ; then
18187 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18188 found="yes"
18189 fi
18190 fi
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206 xorg_testset_save_CFLAGS="$CFLAGS"
18207
18208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18213 then :
18214 printf %s "(cached) " >&6
18215 else $as_nop
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 int i;
18219 _ACEOF
18220 if ac_fn_c_try_compile "$LINENO"
18221 then :
18222 xorg_cv_cc_flag_unknown_warning_option=yes
18223 else $as_nop
18224 xorg_cv_cc_flag_unknown_warning_option=no
18225 fi
18226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18227 fi
18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18229 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18231 CFLAGS="$xorg_testset_save_CFLAGS"
18232 fi
18233
18234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18237 fi
18238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18242 then :
18243 printf %s "(cached) " >&6
18244 else $as_nop
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247 int i;
18248 _ACEOF
18249 if ac_fn_c_try_compile "$LINENO"
18250 then :
18251 xorg_cv_cc_flag_unused_command_line_argument=yes
18252 else $as_nop
18253 xorg_cv_cc_flag_unused_command_line_argument=no
18254 fi
18255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18256 fi
18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18260 CFLAGS="$xorg_testset_save_CFLAGS"
18261 fi
18262
18263 found="no"
18264
18265 if test $found = "no" ; then
18266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18268 fi
18269
18270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18272 fi
18273
18274 CFLAGS="$CFLAGS -Wwrite-strings"
18275
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18277 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18278 cacheid=xorg_cv_cc_flag__Wwrite_strings
18279 if eval test \${$cacheid+y}
18280 then :
18281 printf %s "(cached) " >&6
18282 else $as_nop
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18285 int i;
18286 int
18287 main (void)
18288 {
18289
18290 ;
18291 return 0;
18292 }
18293 _ACEOF
18294 if ac_fn_c_try_link "$LINENO"
18295 then :
18296 eval $cacheid=yes
18297 else $as_nop
18298 eval $cacheid=no
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18301 conftest$ac_exeext conftest.$ac_ext
18302 fi
18303
18304
18305 CFLAGS="$xorg_testset_save_CFLAGS"
18306
18307 eval supported=\$$cacheid
18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18309 printf "%s\n" "$supported" >&6; }
18310 if test "$supported" = "yes" ; then
18311 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18312 found="yes"
18313 fi
18314 fi
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330 xorg_testset_save_CFLAGS="$CFLAGS"
18331
18332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18336 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18337 then :
18338 printf %s "(cached) " >&6
18339 else $as_nop
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342 int i;
18343 _ACEOF
18344 if ac_fn_c_try_compile "$LINENO"
18345 then :
18346 xorg_cv_cc_flag_unknown_warning_option=yes
18347 else $as_nop
18348 xorg_cv_cc_flag_unknown_warning_option=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18351 fi
18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18355 CFLAGS="$xorg_testset_save_CFLAGS"
18356 fi
18357
18358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18361 fi
18362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18366 then :
18367 printf %s "(cached) " >&6
18368 else $as_nop
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18371 int i;
18372 _ACEOF
18373 if ac_fn_c_try_compile "$LINENO"
18374 then :
18375 xorg_cv_cc_flag_unused_command_line_argument=yes
18376 else $as_nop
18377 xorg_cv_cc_flag_unused_command_line_argument=no
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18380 fi
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18384 CFLAGS="$xorg_testset_save_CFLAGS"
18385 fi
18386
18387 found="no"
18388
18389 if test $found = "no" ; then
18390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18392 fi
18393
18394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18396 fi
18397
18398 CFLAGS="$CFLAGS -Waddress"
18399
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18401 printf %s "checking if $CC supports -Waddress... " >&6; }
18402 cacheid=xorg_cv_cc_flag__Waddress
18403 if eval test \${$cacheid+y}
18404 then :
18405 printf %s "(cached) " >&6
18406 else $as_nop
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408 /* end confdefs.h. */
18409 int i;
18410 int
18411 main (void)
18412 {
18413
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"
18419 then :
18420 eval $cacheid=yes
18421 else $as_nop
18422 eval $cacheid=no
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18425 conftest$ac_exeext conftest.$ac_ext
18426 fi
18427
18428
18429 CFLAGS="$xorg_testset_save_CFLAGS"
18430
18431 eval supported=\$$cacheid
18432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18433 printf "%s\n" "$supported" >&6; }
18434 if test "$supported" = "yes" ; then
18435 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18436 found="yes"
18437 fi
18438 fi
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454 xorg_testset_save_CFLAGS="$CFLAGS"
18455
18456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18461 then :
18462 printf %s "(cached) " >&6
18463 else $as_nop
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 int i;
18467 _ACEOF
18468 if ac_fn_c_try_compile "$LINENO"
18469 then :
18470 xorg_cv_cc_flag_unknown_warning_option=yes
18471 else $as_nop
18472 xorg_cv_cc_flag_unknown_warning_option=no
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18475 fi
18476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18477 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18479 CFLAGS="$xorg_testset_save_CFLAGS"
18480 fi
18481
18482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18485 fi
18486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18490 then :
18491 printf %s "(cached) " >&6
18492 else $as_nop
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495 int i;
18496 _ACEOF
18497 if ac_fn_c_try_compile "$LINENO"
18498 then :
18499 xorg_cv_cc_flag_unused_command_line_argument=yes
18500 else $as_nop
18501 xorg_cv_cc_flag_unused_command_line_argument=no
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18504 fi
18505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18508 CFLAGS="$xorg_testset_save_CFLAGS"
18509 fi
18510
18511 found="no"
18512
18513 if test $found = "no" ; then
18514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18516 fi
18517
18518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18520 fi
18521
18522 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18523
18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18525 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18526 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18527 if eval test \${$cacheid+y}
18528 then :
18529 printf %s "(cached) " >&6
18530 else $as_nop
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18533 int i;
18534 int
18535 main (void)
18536 {
18537
18538 ;
18539 return 0;
18540 }
18541 _ACEOF
18542 if ac_fn_c_try_link "$LINENO"
18543 then :
18544 eval $cacheid=yes
18545 else $as_nop
18546 eval $cacheid=no
18547 fi
18548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18549 conftest$ac_exeext conftest.$ac_ext
18550 fi
18551
18552
18553 CFLAGS="$xorg_testset_save_CFLAGS"
18554
18555 eval supported=\$$cacheid
18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18557 printf "%s\n" "$supported" >&6; }
18558 if test "$supported" = "yes" ; then
18559 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18560 found="yes"
18561 fi
18562 fi
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578 xorg_testset_save_CFLAGS="$CFLAGS"
18579
18580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18585 then :
18586 printf %s "(cached) " >&6
18587 else $as_nop
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18590 int i;
18591 _ACEOF
18592 if ac_fn_c_try_compile "$LINENO"
18593 then :
18594 xorg_cv_cc_flag_unknown_warning_option=yes
18595 else $as_nop
18596 xorg_cv_cc_flag_unknown_warning_option=no
18597 fi
18598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18599 fi
18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18603 CFLAGS="$xorg_testset_save_CFLAGS"
18604 fi
18605
18606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18609 fi
18610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18614 then :
18615 printf %s "(cached) " >&6
18616 else $as_nop
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18619 int i;
18620 _ACEOF
18621 if ac_fn_c_try_compile "$LINENO"
18622 then :
18623 xorg_cv_cc_flag_unused_command_line_argument=yes
18624 else $as_nop
18625 xorg_cv_cc_flag_unused_command_line_argument=no
18626 fi
18627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18628 fi
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18632 CFLAGS="$xorg_testset_save_CFLAGS"
18633 fi
18634
18635 found="no"
18636
18637 if test $found = "no" ; then
18638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18640 fi
18641
18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18644 fi
18645
18646 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18647
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18649 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18650 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18651 if eval test \${$cacheid+y}
18652 then :
18653 printf %s "(cached) " >&6
18654 else $as_nop
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657 int i;
18658 int
18659 main (void)
18660 {
18661
18662 ;
18663 return 0;
18664 }
18665 _ACEOF
18666 if ac_fn_c_try_link "$LINENO"
18667 then :
18668 eval $cacheid=yes
18669 else $as_nop
18670 eval $cacheid=no
18671 fi
18672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18673 conftest$ac_exeext conftest.$ac_ext
18674 fi
18675
18676
18677 CFLAGS="$xorg_testset_save_CFLAGS"
18678
18679 eval supported=\$$cacheid
18680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18681 printf "%s\n" "$supported" >&6; }
18682 if test "$supported" = "yes" ; then
18683 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18684 found="yes"
18685 fi
18686 fi
18687
18688
18689 fi
18690
18691
18692
18693
18694
18695
18696
18697 CWARNFLAGS="$BASE_CFLAGS"
18698 if test "x$GCC" = xyes ; then
18699 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18700 fi
18701
18702
18703
18704
18705
18706
18707
18708
18709 # Check whether --enable-strict-compilation was given.
18710 if test ${enable_strict_compilation+y}
18711 then :
18712 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18713 else $as_nop
18714 STRICT_COMPILE=no
18715 fi
18716
18717
18718
18719
18720
18721
18722 STRICT_CFLAGS=""
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736 xorg_testset_save_CFLAGS="$CFLAGS"
18737
18738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18743 then :
18744 printf %s "(cached) " >&6
18745 else $as_nop
18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747 /* end confdefs.h. */
18748 int i;
18749 _ACEOF
18750 if ac_fn_c_try_compile "$LINENO"
18751 then :
18752 xorg_cv_cc_flag_unknown_warning_option=yes
18753 else $as_nop
18754 xorg_cv_cc_flag_unknown_warning_option=no
18755 fi
18756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18757 fi
18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18759 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18761 CFLAGS="$xorg_testset_save_CFLAGS"
18762 fi
18763
18764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18767 fi
18768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18772 then :
18773 printf %s "(cached) " >&6
18774 else $as_nop
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777 int i;
18778 _ACEOF
18779 if ac_fn_c_try_compile "$LINENO"
18780 then :
18781 xorg_cv_cc_flag_unused_command_line_argument=yes
18782 else $as_nop
18783 xorg_cv_cc_flag_unused_command_line_argument=no
18784 fi
18785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18786 fi
18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18788 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18790 CFLAGS="$xorg_testset_save_CFLAGS"
18791 fi
18792
18793 found="no"
18794
18795 if test $found = "no" ; then
18796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18798 fi
18799
18800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18802 fi
18803
18804 CFLAGS="$CFLAGS -pedantic"
18805
18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18807 printf %s "checking if $CC supports -pedantic... " >&6; }
18808 cacheid=xorg_cv_cc_flag__pedantic
18809 if eval test \${$cacheid+y}
18810 then :
18811 printf %s "(cached) " >&6
18812 else $as_nop
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 int i;
18816 int
18817 main (void)
18818 {
18819
18820 ;
18821 return 0;
18822 }
18823 _ACEOF
18824 if ac_fn_c_try_link "$LINENO"
18825 then :
18826 eval $cacheid=yes
18827 else $as_nop
18828 eval $cacheid=no
18829 fi
18830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18831 conftest$ac_exeext conftest.$ac_ext
18832 fi
18833
18834
18835 CFLAGS="$xorg_testset_save_CFLAGS"
18836
18837 eval supported=\$$cacheid
18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18839 printf "%s\n" "$supported" >&6; }
18840 if test "$supported" = "yes" ; then
18841 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18842 found="yes"
18843 fi
18844 fi
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860 xorg_testset_save_CFLAGS="$CFLAGS"
18861
18862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18866 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18867 then :
18868 printf %s "(cached) " >&6
18869 else $as_nop
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 int i;
18873 _ACEOF
18874 if ac_fn_c_try_compile "$LINENO"
18875 then :
18876 xorg_cv_cc_flag_unknown_warning_option=yes
18877 else $as_nop
18878 xorg_cv_cc_flag_unknown_warning_option=no
18879 fi
18880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18881 fi
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18883 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18885 CFLAGS="$xorg_testset_save_CFLAGS"
18886 fi
18887
18888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18891 fi
18892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18894 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18895 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18896 then :
18897 printf %s "(cached) " >&6
18898 else $as_nop
18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18901 int i;
18902 _ACEOF
18903 if ac_fn_c_try_compile "$LINENO"
18904 then :
18905 xorg_cv_cc_flag_unused_command_line_argument=yes
18906 else $as_nop
18907 xorg_cv_cc_flag_unused_command_line_argument=no
18908 fi
18909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18910 fi
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18912 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18914 CFLAGS="$xorg_testset_save_CFLAGS"
18915 fi
18916
18917 found="no"
18918
18919 if test $found = "no" ; then
18920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922 fi
18923
18924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18926 fi
18927
18928 CFLAGS="$CFLAGS -Werror"
18929
18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18931 printf %s "checking if $CC supports -Werror... " >&6; }
18932 cacheid=xorg_cv_cc_flag__Werror
18933 if eval test \${$cacheid+y}
18934 then :
18935 printf %s "(cached) " >&6
18936 else $as_nop
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18939 int i;
18940 int
18941 main (void)
18942 {
18943
18944 ;
18945 return 0;
18946 }
18947 _ACEOF
18948 if ac_fn_c_try_link "$LINENO"
18949 then :
18950 eval $cacheid=yes
18951 else $as_nop
18952 eval $cacheid=no
18953 fi
18954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18955 conftest$ac_exeext conftest.$ac_ext
18956 fi
18957
18958
18959 CFLAGS="$xorg_testset_save_CFLAGS"
18960
18961 eval supported=\$$cacheid
18962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18963 printf "%s\n" "$supported" >&6; }
18964 if test "$supported" = "yes" ; then
18965 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18966 found="yes"
18967 fi
18968 fi
18969
18970 if test $found = "no" ; then
18971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18973 fi
18974
18975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18977 fi
18978
18979 CFLAGS="$CFLAGS -errwarn"
18980
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18982 printf %s "checking if $CC supports -errwarn... " >&6; }
18983 cacheid=xorg_cv_cc_flag__errwarn
18984 if eval test \${$cacheid+y}
18985 then :
18986 printf %s "(cached) " >&6
18987 else $as_nop
18988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18990 int i;
18991 int
18992 main (void)
18993 {
18994
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 if ac_fn_c_try_link "$LINENO"
19000 then :
19001 eval $cacheid=yes
19002 else $as_nop
19003 eval $cacheid=no
19004 fi
19005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19006 conftest$ac_exeext conftest.$ac_ext
19007 fi
19008
19009
19010 CFLAGS="$xorg_testset_save_CFLAGS"
19011
19012 eval supported=\$$cacheid
19013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19014 printf "%s\n" "$supported" >&6; }
19015 if test "$supported" = "yes" ; then
19016 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19017 found="yes"
19018 fi
19019 fi
19020
19021
19022
19023 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19024 # activate it with -Werror, so we add it here explicitly.
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038 xorg_testset_save_CFLAGS="$CFLAGS"
19039
19040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19043 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19044 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19045 then :
19046 printf %s "(cached) " >&6
19047 else $as_nop
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19050 int i;
19051 _ACEOF
19052 if ac_fn_c_try_compile "$LINENO"
19053 then :
19054 xorg_cv_cc_flag_unknown_warning_option=yes
19055 else $as_nop
19056 xorg_cv_cc_flag_unknown_warning_option=no
19057 fi
19058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19059 fi
19060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19061 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19063 CFLAGS="$xorg_testset_save_CFLAGS"
19064 fi
19065
19066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19069 fi
19070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19072 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19073 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19074 then :
19075 printf %s "(cached) " >&6
19076 else $as_nop
19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078 /* end confdefs.h. */
19079 int i;
19080 _ACEOF
19081 if ac_fn_c_try_compile "$LINENO"
19082 then :
19083 xorg_cv_cc_flag_unused_command_line_argument=yes
19084 else $as_nop
19085 xorg_cv_cc_flag_unused_command_line_argument=no
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19088 fi
19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19092 CFLAGS="$xorg_testset_save_CFLAGS"
19093 fi
19094
19095 found="no"
19096
19097 if test $found = "no" ; then
19098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19100 fi
19101
19102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19104 fi
19105
19106 CFLAGS="$CFLAGS -Werror=attributes"
19107
19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19109 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19110 cacheid=xorg_cv_cc_flag__Werror_attributes
19111 if eval test \${$cacheid+y}
19112 then :
19113 printf %s "(cached) " >&6
19114 else $as_nop
19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h. */
19117 int i;
19118 int
19119 main (void)
19120 {
19121
19122 ;
19123 return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"
19127 then :
19128 eval $cacheid=yes
19129 else $as_nop
19130 eval $cacheid=no
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19133 conftest$ac_exeext conftest.$ac_ext
19134 fi
19135
19136
19137 CFLAGS="$xorg_testset_save_CFLAGS"
19138
19139 eval supported=\$$cacheid
19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19141 printf "%s\n" "$supported" >&6; }
19142 if test "$supported" = "yes" ; then
19143 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19144 found="yes"
19145 fi
19146 fi
19147
19148
19149
19150 if test "x$STRICT_COMPILE" = "xyes"; then
19151 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19152 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19153 fi
19154
19155
19156
19157
19158
19159
19160 cat >>confdefs.h <<_ACEOF
19161 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19162 _ACEOF
19163
19164 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19165 if test "x$PVM" = "x"; then
19166 PVM="0"
19167 fi
19168
19169 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19170
19171 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19172 if test "x$PVP" = "x"; then
19173 PVP="0"
19174 fi
19175
19176 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19177
19178
19179
19180 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19181 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19182 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19183 touch \$(top_srcdir)/ChangeLog; \
19184 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19185
19186
19187
19188
19189 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19190 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19191 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19192 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19193 touch \$(top_srcdir)/INSTALL; \
19194 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19195
19196
19197
19198
19199
19200
19201 case $host_os in
19202 solaris*)
19203 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19204 # check for a man page file found in later versions that use
19205 # traditional section numbers instead
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19207 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19208 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19209 then :
19210 printf %s "(cached) " >&6
19211 else $as_nop
19212 test "$cross_compiling" = yes &&
19213 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19214 if test -r "/usr/share/man/man7/attributes.7"; then
19215 ac_cv_file__usr_share_man_man7_attributes_7=yes
19216 else
19217 ac_cv_file__usr_share_man_man7_attributes_7=no
19218 fi
19219 fi
19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19221 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19222 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19223 then :
19224 SYSV_MAN_SECTIONS=false
19225 else $as_nop
19226 SYSV_MAN_SECTIONS=true
19227 fi
19228
19229 ;;
19230 *) SYSV_MAN_SECTIONS=false ;;
19231 esac
19232
19233 if test x$APP_MAN_SUFFIX = x ; then
19234 APP_MAN_SUFFIX=1
19235 fi
19236 if test x$APP_MAN_DIR = x ; then
19237 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19238 fi
19239
19240 if test x$LIB_MAN_SUFFIX = x ; then
19241 LIB_MAN_SUFFIX=3
19242 fi
19243 if test x$LIB_MAN_DIR = x ; then
19244 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19245 fi
19246
19247 if test x$FILE_MAN_SUFFIX = x ; then
19248 case $SYSV_MAN_SECTIONS in
19249 true) FILE_MAN_SUFFIX=4 ;;
19250 *) FILE_MAN_SUFFIX=5 ;;
19251 esac
19252 fi
19253 if test x$FILE_MAN_DIR = x ; then
19254 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19255 fi
19256
19257 if test x$MISC_MAN_SUFFIX = x ; then
19258 case $SYSV_MAN_SECTIONS in
19259 true) MISC_MAN_SUFFIX=5 ;;
19260 *) MISC_MAN_SUFFIX=7 ;;
19261 esac
19262 fi
19263 if test x$MISC_MAN_DIR = x ; then
19264 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19265 fi
19266
19267 if test x$DRIVER_MAN_SUFFIX = x ; then
19268 case $SYSV_MAN_SECTIONS in
19269 true) DRIVER_MAN_SUFFIX=7 ;;
19270 *) DRIVER_MAN_SUFFIX=4 ;;
19271 esac
19272 fi
19273 if test x$DRIVER_MAN_DIR = x ; then
19274 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19275 fi
19276
19277 if test x$ADMIN_MAN_SUFFIX = x ; then
19278 case $SYSV_MAN_SECTIONS in
19279 true) ADMIN_MAN_SUFFIX=1m ;;
19280 *) ADMIN_MAN_SUFFIX=8 ;;
19281 esac
19282 fi
19283 if test x$ADMIN_MAN_DIR = x ; then
19284 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19285 fi
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301 XORG_MAN_PAGE="X Version 11"
19302
19303 MAN_SUBSTS="\
19304 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19305 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19306 -e 's|__xservername__|Xorg|g' \
19307 -e 's|__xconfigfile__|xorg.conf|g' \
19308 -e 's|__projectroot__|\$(prefix)|g' \
19309 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19310 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19311 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19312 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19313 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19314 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19315 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19316
19317
19318
19319 # Check whether --enable-silent-rules was given.
19320 if test ${enable_silent_rules+y}
19321 then :
19322 enableval=$enable_silent_rules;
19323 fi
19324
19325 case $enable_silent_rules in # (((
19326 yes) AM_DEFAULT_VERBOSITY=0;;
19327 no) AM_DEFAULT_VERBOSITY=1;;
19328 *) AM_DEFAULT_VERBOSITY=0;;
19329 esac
19330 am_make=${MAKE-make}
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19332 printf %s "checking whether $am_make supports nested variables... " >&6; }
19333 if test ${am_cv_make_support_nested_variables+y}
19334 then :
19335 printf %s "(cached) " >&6
19336 else $as_nop
19337 if printf "%s\n" 'TRUE=$(BAR$(V))
19338 BAR0=false
19339 BAR1=true
19340 V=1
19341 am__doit:
19342 @$(TRUE)
19343 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19344 am_cv_make_support_nested_variables=yes
19345 else
19346 am_cv_make_support_nested_variables=no
19347 fi
19348 fi
19349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19350 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19351 if test $am_cv_make_support_nested_variables = yes; then
19352 AM_V='$(V)'
19353 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19354 else
19355 AM_V=$AM_DEFAULT_VERBOSITY
19356 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19357 fi
19358 AM_BACKSLASH='\'
19359
19360
19361
19362
19363
19364
19365
19366 # Check whether --with-lint was given.
19367 if test ${with_lint+y}
19368 then :
19369 withval=$with_lint; use_lint=$withval
19370 else $as_nop
19371 use_lint=no
19372 fi
19373
19374
19375 # Obtain platform specific info like program name and options
19376 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19377 case $host_os in
19378 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19379 lint_name=splint
19380 lint_options="-badflag"
19381 ;;
19382 *freebsd* | *netbsd*)
19383 lint_name=lint
19384 lint_options="-u -b"
19385 ;;
19386 *solaris*)
19387 lint_name=lint
19388 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19389 ;;
19390 esac
19391
19392 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19393 if test "x$use_lint" = x"yes" ; then
19394 # Extract the first word of "$lint_name", so it can be a program name with args.
19395 set dummy $lint_name; ac_word=$2
19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19397 printf %s "checking for $ac_word... " >&6; }
19398 if test ${ac_cv_path_LINT+y}
19399 then :
19400 printf %s "(cached) " >&6
19401 else $as_nop
19402 case $LINT in
19403 [\\/]* | ?:[\\/]*)
19404 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19405 ;;
19406 *)
19407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19408 for as_dir in $PATH
19409 do
19410 IFS=$as_save_IFS
19411 case $as_dir in #(((
19412 '') as_dir=./ ;;
19413 */) ;;
19414 *) as_dir=$as_dir/ ;;
19415 esac
19416 for ac_exec_ext in '' $ac_executable_extensions; do
19417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19418 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19420 break 2
19421 fi
19422 done
19423 done
19424 IFS=$as_save_IFS
19425
19426 ;;
19427 esac
19428 fi
19429 LINT=$ac_cv_path_LINT
19430 if test -n "$LINT"; then
19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19432 printf "%s\n" "$LINT" >&6; }
19433 else
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 printf "%s\n" "no" >&6; }
19436 fi
19437
19438
19439 if test "x$LINT" = "x"; then
19440 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19441 fi
19442 elif test "x$use_lint" = x"no" ; then
19443 if test "x$LINT" != "x"; then
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19445 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19446 fi
19447 else
19448 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19449 fi
19450
19451 # User supplied flags override default flags
19452 if test "x$LINT_FLAGS" != "x"; then
19453 lint_options=$LINT_FLAGS
19454 fi
19455
19456 LINT_FLAGS=$lint_options
19457
19458 if test "x$LINT" != x; then
19459 LINT_TRUE=
19460 LINT_FALSE='#'
19461 else
19462 LINT_TRUE='#'
19463 LINT_FALSE=
19464 fi
19465
19466
19467
19468
19469 # Checks for library functions
19470 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
19471 if test "x$ac_cv_func_asprintf" = xyes
19472 then :
19473 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
19474
19475 fi
19476 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
19477 if test "x$ac_cv_func_timingsafe_memcmp" = xyes
19478 then :
19479 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
19480
19481 fi
19482
19483
19484 # Obtain compiler/linker options from server and required extensions
19485
19486 pkg_failed=no
19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19488 printf %s "checking for XORG... " >&6; }
19489
19490 if test -n "$XORG_CFLAGS"; then
19491 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19492 elif test -n "$PKG_CONFIG"; then
19493 if test -n "$PKG_CONFIG" && \
19494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
19495 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
19496 ac_status=$?
19497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; then
19499 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
19500 test "x$?" != "x0" && pkg_failed=yes
19501 else
19502 pkg_failed=yes
19503 fi
19504 else
19505 pkg_failed=untried
19506 fi
19507 if test -n "$XORG_LIBS"; then
19508 pkg_cv_XORG_LIBS="$XORG_LIBS"
19509 elif test -n "$PKG_CONFIG"; then
19510 if test -n "$PKG_CONFIG" && \
19511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
19512 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
19513 ac_status=$?
19514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19515 test $ac_status = 0; }; then
19516 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
19517 test "x$?" != "x0" && pkg_failed=yes
19518 else
19519 pkg_failed=yes
19520 fi
19521 else
19522 pkg_failed=untried
19523 fi
19524
19525
19526
19527 if test $pkg_failed = yes; then
19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529 printf "%s\n" "no" >&6; }
19530
19531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19532 _pkg_short_errors_supported=yes
19533 else
19534 _pkg_short_errors_supported=no
19535 fi
19536 if test $_pkg_short_errors_supported = yes; then
19537 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
19538 else
19539 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
19540 fi
19541 # Put the nasty error message in config.log where it belongs
19542 echo "$XORG_PKG_ERRORS" >&5
19543
19544 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met:
19545
19546 $XORG_PKG_ERRORS
19547
19548 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19549 installed software in a non-standard prefix.
19550
19551 Alternatively, you may set the environment variables XORG_CFLAGS
19552 and XORG_LIBS to avoid the need to call pkg-config.
19553 See the pkg-config man page for more details." "$LINENO" 5
19554 elif test $pkg_failed = untried; then
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556 printf "%s\n" "no" >&6; }
19557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19558 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19559 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19560 is in your PATH or set the PKG_CONFIG environment variable to the full
19561 path to pkg-config.
19562
19563 Alternatively, you may set the environment variables XORG_CFLAGS
19564 and XORG_LIBS to avoid the need to call pkg-config.
19565 See the pkg-config man page for more details.
19566
19567 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19568 See \`config.log' for more details" "$LINENO" 5; }
19569 else
19570 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19571 XORG_LIBS=$pkg_cv_XORG_LIBS
19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19573 printf "%s\n" "yes" >&6; }
19574
19575 fi
19576
19577 # Define a configure option for an alternate input module directory
19578
19579 # Check whether --with-xorg-module-dir was given.
19580 if test ${with_xorg_module_dir+y}
19581 then :
19582 withval=$with_xorg_module_dir; moduledir="$withval"
19583 else $as_nop
19584 moduledir="$libdir/xorg/modules"
19585 fi
19586
19587 inputdir=${moduledir}/input
19588
19589
19590 # X Server SDK location is required to install xf86-mouse-properties.h
19591 # This location is also relayed in the xorg-mouse.pc file
19592 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19593
19594 # Workaround overriding sdkdir to be able to create a tarball when user has no
19595 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
19596
19597 # Check whether --with-sdkdir was given.
19598 if test ${with_sdkdir+y}
19599 then :
19600 withval=$with_sdkdir; sdkdir="$withval"
19601 fi
19602
19603
19604
19605
19606 # Work out which OS mouse driver we need to build
19607 case $host_os in
19608 linux*)
19609 OS_MOUSE_NAME=lnx
19610 ;;
19611 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
19612 OS_MOUSE_NAME=bsd
19613 ;;
19614 solaris*)
19615 OS_MOUSE_NAME=sun
19616 ;;
19617 gnu*)
19618 OS_MOUSE_NAME=hurd
19619 ;;
19620 esac
19621
19622
19623 DRIVER_NAME=mouse
19624
19625
19626 ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile"
19627
19628 cat >confcache <<\_ACEOF
19629 # This file is a shell script that caches the results of configure
19630 # tests run on this system so they can be shared between configure
19631 # scripts and configure runs, see configure's option --config-cache.
19632 # It is not useful on other systems. If it contains results you don't
19633 # want to keep, you may remove or edit it.
19634 #
19635 # config.status only pays attention to the cache file if you give it
19636 # the --recheck option to rerun configure.
19637 #
19638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19640 # following values.
19641
19642 _ACEOF
19643
19644 # The following way of writing the cache mishandles newlines in values,
19645 # but we know of no workaround that is simple, portable, and efficient.
19646 # So, we kill variables containing newlines.
19647 # Ultrix sh set writes to stderr and can't be redirected directly,
19648 # and sets the high bit in the cache file unless we assign to the vars.
19649 (
19650 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19651 eval ac_val=\$$ac_var
19652 case $ac_val in #(
19653 *${as_nl}*)
19654 case $ac_var in #(
19655 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19656 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19657 esac
19658 case $ac_var in #(
19659 _ | IFS | as_nl) ;; #(
19660 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19661 *) { eval $ac_var=; unset $ac_var;} ;;
19662 esac ;;
19663 esac
19664 done
19665
19666 (set) 2>&1 |
19667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19668 *${as_nl}ac_space=\ *)
19669 # `set' does not quote correctly, so add quotes: double-quote
19670 # substitution turns \\\\ into \\, and sed turns \\ into \.
19671 sed -n \
19672 "s/'/'\\\\''/g;
19673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19674 ;; #(
19675 *)
19676 # `set' quotes correctly as required by POSIX, so do not add quotes.
19677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19678 ;;
19679 esac |
19680 sort
19681 ) |
19682 sed '
19683 /^ac_cv_env_/b end
19684 t clear
19685 :clear
19686 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19687 t end
19688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19689 :end' >>confcache
19690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19691 if test -w "$cache_file"; then
19692 if test "x$cache_file" != "x/dev/null"; then
19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19694 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19695 if test ! -f "$cache_file" || test -h "$cache_file"; then
19696 cat confcache >"$cache_file"
19697 else
19698 case $cache_file in #(
19699 */* | ?:*)
19700 mv -f confcache "$cache_file"$$ &&
19701 mv -f "$cache_file"$$ "$cache_file" ;; #(
19702 *)
19703 mv -f confcache "$cache_file" ;;
19704 esac
19705 fi
19706 fi
19707 else
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19709 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19710 fi
19711 fi
19712 rm -f confcache
19713
19714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19715 # Let make expand exec_prefix.
19716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19717
19718 DEFS=-DHAVE_CONFIG_H
19719
19720 ac_libobjs=
19721 ac_ltlibobjs=
19722 U=
19723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19724 # 1. Remove the extension, and $U if already installed.
19725 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19726 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19727 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19728 # will be set to the directory where LIBOBJS objects are built.
19729 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19730 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19731 done
19732 LIBOBJS=$ac_libobjs
19733
19734 LTLIBOBJS=$ac_ltlibobjs
19735
19736
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19738 printf %s "checking that generated files are newer than configure... " >&6; }
19739 if test -n "$am_sleep_pid"; then
19740 # Hide warnings about reused PIDs.
19741 wait $am_sleep_pid 2>/dev/null
19742 fi
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19744 printf "%s\n" "done" >&6; }
19745 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19746 as_fn_error $? "conditional \"AMDEP\" was never defined.
19747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19748 fi
19749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19750 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19752 fi
19753 if test -n "$EXEEXT"; then
19754 am__EXEEXT_TRUE=
19755 am__EXEEXT_FALSE='#'
19756 else
19757 am__EXEEXT_TRUE='#'
19758 am__EXEEXT_FALSE=
19759 fi
19760
19761 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19762 as_fn_error $? "conditional \"LINT\" was never defined.
19763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19764 fi
19765
19766 : "${CONFIG_STATUS=./config.status}"
19767 ac_write_fail=0
19768 ac_clean_files_save=$ac_clean_files
19769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19771 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19772 as_write_fail=0
19773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19774 #! $SHELL
19775 # Generated by $as_me.
19776 # Run this file to recreate the current configuration.
19777 # Compiler output produced by configure, useful for debugging
19778 # configure, is in config.log if it exists.
19779
19780 debug=false
19781 ac_cs_recheck=false
19782 ac_cs_silent=false
19783
19784 SHELL=\${CONFIG_SHELL-$SHELL}
19785 export SHELL
19786 _ASEOF
19787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19788 ## -------------------- ##
19789 ## M4sh Initialization. ##
19790 ## -------------------- ##
19791
19792 # Be more Bourne compatible
19793 DUALCASE=1; export DUALCASE # for MKS sh
19794 as_nop=:
19795 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19796 then :
19797 emulate sh
19798 NULLCMD=:
19799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19800 # is contrary to our usage. Disable this feature.
19801 alias -g '${1+"$@"}'='"$@"'
19802 setopt NO_GLOB_SUBST
19803 else $as_nop
19804 case `(set -o) 2>/dev/null` in #(
19805 *posix*) :
19806 set -o posix ;; #(
19807 *) :
19808 ;;
19809 esac
19810 fi
19811
19812
19813
19814 # Reset variables that may have inherited troublesome values from
19815 # the environment.
19816
19817 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19818 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19819 # side effect of setting IFS to empty, thus disabling word splitting.)
19820 # Quoting is to prevent editors from complaining about space-tab.
19821 as_nl='
19822 '
19823 export as_nl
19824 IFS=" "" $as_nl"
19825
19826 PS1='$ '
19827 PS2='> '
19828 PS4='+ '
19829
19830 # Ensure predictable behavior from utilities with locale-dependent output.
19831 LC_ALL=C
19832 export LC_ALL
19833 LANGUAGE=C
19834 export LANGUAGE
19835
19836 # We cannot yet rely on "unset" to work, but we need these variables
19837 # to be unset--not just set to an empty or harmless value--now, to
19838 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19839 # also avoids known problems related to "unset" and subshell syntax
19840 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19841 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19842 do eval test \${$as_var+y} \
19843 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19844 done
19845
19846 # Ensure that fds 0, 1, and 2 are open.
19847 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19848 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19849 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19850
19851 # The user is always right.
19852 if ${PATH_SEPARATOR+false} :; then
19853 PATH_SEPARATOR=:
19854 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19855 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19856 PATH_SEPARATOR=';'
19857 }
19858 fi
19859
19860
19861 # Find who we are. Look in the path if we contain no directory separator.
19862 as_myself=
19863 case $0 in #((
19864 *[\\/]* ) as_myself=$0 ;;
19865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866 for as_dir in $PATH
19867 do
19868 IFS=$as_save_IFS
19869 case $as_dir in #(((
19870 '') as_dir=./ ;;
19871 */) ;;
19872 *) as_dir=$as_dir/ ;;
19873 esac
19874 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19875 done
19876 IFS=$as_save_IFS
19877
19878 ;;
19879 esac
19880 # We did not find ourselves, most probably we were run as `sh COMMAND'
19881 # in which case we are not to be found in the path.
19882 if test "x$as_myself" = x; then
19883 as_myself=$0
19884 fi
19885 if test ! -f "$as_myself"; then
19886 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19887 exit 1
19888 fi
19889
19890
19891
19892 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19893 # ----------------------------------------
19894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19896 # script with STATUS, using 1 if that was 0.
19897 as_fn_error ()
19898 {
19899 as_status=$1; test $as_status -eq 0 && as_status=1
19900 if test "$4"; then
19901 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19903 fi
19904 printf "%s\n" "$as_me: error: $2" >&2
19905 as_fn_exit $as_status
19906 } # as_fn_error
19907
19908
19909
19910 # as_fn_set_status STATUS
19911 # -----------------------
19912 # Set $? to STATUS, without forking.
19913 as_fn_set_status ()
19914 {
19915 return $1
19916 } # as_fn_set_status
19917
19918 # as_fn_exit STATUS
19919 # -----------------
19920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19921 as_fn_exit ()
19922 {
19923 set +e
19924 as_fn_set_status $1
19925 exit $1
19926 } # as_fn_exit
19927
19928 # as_fn_unset VAR
19929 # ---------------
19930 # Portably unset VAR.
19931 as_fn_unset ()
19932 {
19933 { eval $1=; unset $1;}
19934 }
19935 as_unset=as_fn_unset
19936
19937 # as_fn_append VAR VALUE
19938 # ----------------------
19939 # Append the text in VALUE to the end of the definition contained in VAR. Take
19940 # advantage of any shell optimizations that allow amortized linear growth over
19941 # repeated appends, instead of the typical quadratic growth present in naive
19942 # implementations.
19943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19944 then :
19945 eval 'as_fn_append ()
19946 {
19947 eval $1+=\$2
19948 }'
19949 else $as_nop
19950 as_fn_append ()
19951 {
19952 eval $1=\$$1\$2
19953 }
19954 fi # as_fn_append
19955
19956 # as_fn_arith ARG...
19957 # ------------------
19958 # Perform arithmetic evaluation on the ARGs, and store the result in the
19959 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19960 # must be portable across $(()) and expr.
19961 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19962 then :
19963 eval 'as_fn_arith ()
19964 {
19965 as_val=$(( $* ))
19966 }'
19967 else $as_nop
19968 as_fn_arith ()
19969 {
19970 as_val=`expr "$@" || test $? -eq 1`
19971 }
19972 fi # as_fn_arith
19973
19974
19975 if expr a : '\(a\)' >/dev/null 2>&1 &&
19976 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19977 as_expr=expr
19978 else
19979 as_expr=false
19980 fi
19981
19982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19983 as_basename=basename
19984 else
19985 as_basename=false
19986 fi
19987
19988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19989 as_dirname=dirname
19990 else
19991 as_dirname=false
19992 fi
19993
19994 as_me=`$as_basename -- "$0" ||
19995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19996 X"$0" : 'X\(//\)$' \| \
19997 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19998 printf "%s\n" X/"$0" |
19999 sed '/^.*\/\([^/][^/]*\)\/*$/{
20000 s//\1/
20001 q
20002 }
20003 /^X\/\(\/\/\)$/{
20004 s//\1/
20005 q
20006 }
20007 /^X\/\(\/\).*/{
20008 s//\1/
20009 q
20010 }
20011 s/.*/./; q'`
20012
20013 # Avoid depending upon Character Ranges.
20014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20017 as_cr_digits='0123456789'
20018 as_cr_alnum=$as_cr_Letters$as_cr_digits
20019
20020
20021 # Determine whether it's possible to make 'echo' print without a newline.
20022 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20023 # for compatibility with existing Makefiles.
20024 ECHO_C= ECHO_N= ECHO_T=
20025 case `echo -n x` in #(((((
20026 -n*)
20027 case `echo 'xy\c'` in
20028 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20029 xy) ECHO_C='\c';;
20030 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20031 ECHO_T=' ';;
20032 esac;;
20033 *)
20034 ECHO_N='-n';;
20035 esac
20036
20037 # For backward compatibility with old third-party macros, we provide
20038 # the shell variables $as_echo and $as_echo_n. New code should use
20039 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20040 as_echo='printf %s\n'
20041 as_echo_n='printf %s'
20042
20043 rm -f conf$$ conf$$.exe conf$$.file
20044 if test -d conf$$.dir; then
20045 rm -f conf$$.dir/conf$$.file
20046 else
20047 rm -f conf$$.dir
20048 mkdir conf$$.dir 2>/dev/null
20049 fi
20050 if (echo >conf$$.file) 2>/dev/null; then
20051 if ln -s conf$$.file conf$$ 2>/dev/null; then
20052 as_ln_s='ln -s'
20053 # ... but there are two gotchas:
20054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20056 # In both cases, we have to default to `cp -pR'.
20057 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20058 as_ln_s='cp -pR'
20059 elif ln conf$$.file conf$$ 2>/dev/null; then
20060 as_ln_s=ln
20061 else
20062 as_ln_s='cp -pR'
20063 fi
20064 else
20065 as_ln_s='cp -pR'
20066 fi
20067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20068 rmdir conf$$.dir 2>/dev/null
20069
20070
20071 # as_fn_mkdir_p
20072 # -------------
20073 # Create "$as_dir" as a directory, including parents if necessary.
20074 as_fn_mkdir_p ()
20075 {
20076
20077 case $as_dir in #(
20078 -*) as_dir=./$as_dir;;
20079 esac
20080 test -d "$as_dir" || eval $as_mkdir_p || {
20081 as_dirs=
20082 while :; do
20083 case $as_dir in #(
20084 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20085 *) as_qdir=$as_dir;;
20086 esac
20087 as_dirs="'$as_qdir' $as_dirs"
20088 as_dir=`$as_dirname -- "$as_dir" ||
20089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20090 X"$as_dir" : 'X\(//\)[^/]' \| \
20091 X"$as_dir" : 'X\(//\)$' \| \
20092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20093 printf "%s\n" X"$as_dir" |
20094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20095 s//\1/
20096 q
20097 }
20098 /^X\(\/\/\)[^/].*/{
20099 s//\1/
20100 q
20101 }
20102 /^X\(\/\/\)$/{
20103 s//\1/
20104 q
20105 }
20106 /^X\(\/\).*/{
20107 s//\1/
20108 q
20109 }
20110 s/.*/./; q'`
20111 test -d "$as_dir" && break
20112 done
20113 test -z "$as_dirs" || eval "mkdir $as_dirs"
20114 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20115
20116
20117 } # as_fn_mkdir_p
20118 if mkdir -p . 2>/dev/null; then
20119 as_mkdir_p='mkdir -p "$as_dir"'
20120 else
20121 test -d ./-p && rmdir ./-p
20122 as_mkdir_p=false
20123 fi
20124
20125
20126 # as_fn_executable_p FILE
20127 # -----------------------
20128 # Test if FILE is an executable regular file.
20129 as_fn_executable_p ()
20130 {
20131 test -f "$1" && test -x "$1"
20132 } # as_fn_executable_p
20133 as_test_x='test -x'
20134 as_executable_p=as_fn_executable_p
20135
20136 # Sed expression to map a string onto a valid CPP name.
20137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20138
20139 # Sed expression to map a string onto a valid variable name.
20140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20141
20142
20143 exec 6>&1
20144 ## ----------------------------------- ##
20145 ## Main body of $CONFIG_STATUS script. ##
20146 ## ----------------------------------- ##
20147 _ASEOF
20148 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20149
20150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20151 # Save the log message, to keep $0 and so on meaningful, and to
20152 # report actual input values of CONFIG_FILES etc. instead of their
20153 # values after options handling.
20154 ac_log="
20155 This file was extended by xf86-input-mouse $as_me 1.9.4, which was
20156 generated by GNU Autoconf 2.71. Invocation command line was
20157
20158 CONFIG_FILES = $CONFIG_FILES
20159 CONFIG_HEADERS = $CONFIG_HEADERS
20160 CONFIG_LINKS = $CONFIG_LINKS
20161 CONFIG_COMMANDS = $CONFIG_COMMANDS
20162 $ $0 $@
20163
20164 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20165 "
20166
20167 _ACEOF
20168
20169 case $ac_config_files in *"
20170 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20171 esac
20172
20173 case $ac_config_headers in *"
20174 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20175 esac
20176
20177
20178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20179 # Files that config.status was made for.
20180 config_files="$ac_config_files"
20181 config_headers="$ac_config_headers"
20182 config_commands="$ac_config_commands"
20183
20184 _ACEOF
20185
20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20187 ac_cs_usage="\
20188 \`$as_me' instantiates files and other configuration actions
20189 from templates according to the current configuration. Unless the files
20190 and actions are specified as TAGs, all are instantiated by default.
20191
20192 Usage: $0 [OPTION]... [TAG]...
20193
20194 -h, --help print this help, then exit
20195 -V, --version print version number and configuration settings, then exit
20196 --config print configuration, then exit
20197 -q, --quiet, --silent
20198 do not print progress messages
20199 -d, --debug don't remove temporary files
20200 --recheck update $as_me by reconfiguring in the same conditions
20201 --file=FILE[:TEMPLATE]
20202 instantiate the configuration file FILE
20203 --header=FILE[:TEMPLATE]
20204 instantiate the configuration header FILE
20205
20206 Configuration files:
20207 $config_files
20208
20209 Configuration headers:
20210 $config_headers
20211
20212 Configuration commands:
20213 $config_commands
20214
20215 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/issues>."
20216
20217 _ACEOF
20218 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20219 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20221 ac_cs_config='$ac_cs_config_escaped'
20222 ac_cs_version="\\
20223 xf86-input-mouse config.status 1.9.4
20224 configured by $0, generated by GNU Autoconf 2.71,
20225 with options \\"\$ac_cs_config\\"
20226
20227 Copyright (C) 2021 Free Software Foundation, Inc.
20228 This config.status script is free software; the Free Software Foundation
20229 gives unlimited permission to copy, distribute and modify it."
20230
20231 ac_pwd='$ac_pwd'
20232 srcdir='$srcdir'
20233 INSTALL='$INSTALL'
20234 MKDIR_P='$MKDIR_P'
20235 AWK='$AWK'
20236 test -n "\$AWK" || AWK=awk
20237 _ACEOF
20238
20239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20240 # The default lists apply if the user does not specify any file.
20241 ac_need_defaults=:
20242 while test $# != 0
20243 do
20244 case $1 in
20245 --*=?*)
20246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20247 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20248 ac_shift=:
20249 ;;
20250 --*=)
20251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20252 ac_optarg=
20253 ac_shift=:
20254 ;;
20255 *)
20256 ac_option=$1
20257 ac_optarg=$2
20258 ac_shift=shift
20259 ;;
20260 esac
20261
20262 case $ac_option in
20263 # Handling of the options.
20264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20265 ac_cs_recheck=: ;;
20266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20267 printf "%s\n" "$ac_cs_version"; exit ;;
20268 --config | --confi | --conf | --con | --co | --c )
20269 printf "%s\n" "$ac_cs_config"; exit ;;
20270 --debug | --debu | --deb | --de | --d | -d )
20271 debug=: ;;
20272 --file | --fil | --fi | --f )
20273 $ac_shift
20274 case $ac_optarg in
20275 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20276 '') as_fn_error $? "missing file argument" ;;
20277 esac
20278 as_fn_append CONFIG_FILES " '$ac_optarg'"
20279 ac_need_defaults=false;;
20280 --header | --heade | --head | --hea )
20281 $ac_shift
20282 case $ac_optarg in
20283 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20284 esac
20285 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20286 ac_need_defaults=false;;
20287 --he | --h)
20288 # Conflict between --help and --header
20289 as_fn_error $? "ambiguous option: \`$1'
20290 Try \`$0 --help' for more information.";;
20291 --help | --hel | -h )
20292 printf "%s\n" "$ac_cs_usage"; exit ;;
20293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20295 ac_cs_silent=: ;;
20296
20297 # This is an error.
20298 -*) as_fn_error $? "unrecognized option: \`$1'
20299 Try \`$0 --help' for more information." ;;
20300
20301 *) as_fn_append ac_config_targets " $1"
20302 ac_need_defaults=false ;;
20303
20304 esac
20305 shift
20306 done
20307
20308 ac_configure_extra_args=
20309
20310 if $ac_cs_silent; then
20311 exec 6>/dev/null
20312 ac_configure_extra_args="$ac_configure_extra_args --silent"
20313 fi
20314
20315 _ACEOF
20316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20317 if \$ac_cs_recheck; then
20318 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20319 shift
20320 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20321 CONFIG_SHELL='$SHELL'
20322 export CONFIG_SHELL
20323 exec "\$@"
20324 fi
20325
20326 _ACEOF
20327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20328 exec 5>>config.log
20329 {
20330 echo
20331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20332 ## Running $as_me. ##
20333 _ASBOX
20334 printf "%s\n" "$ac_log"
20335 } >&5
20336
20337 _ACEOF
20338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20339 #
20340 # INIT-COMMANDS
20341 #
20342 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20343
20344
20345 # The HP-UX ksh and POSIX shell print the target directory to stdout
20346 # if CDPATH is set.
20347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20348
20349 sed_quote_subst='$sed_quote_subst'
20350 double_quote_subst='$double_quote_subst'
20351 delay_variable_subst='$delay_variable_subst'
20352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20353 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20354 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20355 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20356 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20357 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20358 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20359 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20360 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20361 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20362 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20363 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20364 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20365 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20366 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20367 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20368 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20369 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20370 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20371 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20372 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20373 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20374 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20375 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20376 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20377 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20378 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20379 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20380 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20381 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20382 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20383 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20384 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20385 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20386 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20387 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20388 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20389 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20390 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20391 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20392 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20393 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20394 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20395 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20396 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20397 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20398 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20399 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20400 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20401 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20402 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20403 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20404 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20405 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20406 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20407 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20408 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20409 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20410 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20411 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20412 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"`'
20413 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20414 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20415 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20416 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20417 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20418 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20419 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20420 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20421 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20422 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20423 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20424 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20425 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20426 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20427 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20428 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20429 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20430 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20431 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20432 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20433 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20434 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20435 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20436 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20437 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20438 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20439 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20440 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20441 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20442 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20443 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20444 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20445 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20446 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20447 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20448 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20449 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20450 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20451 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20452 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20453 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20454 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20455 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20456 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20457 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20458 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20459 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20460 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20461 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20462 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20463 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20464 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20465 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20466 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20467 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20468 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20469 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20470 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20471 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20472 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20473 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20474 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20475 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20476 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20477 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20478 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20479 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20480 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20481 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20482 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20483 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20484 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20485 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20486 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20487 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20488 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20489
20490 LTCC='$LTCC'
20491 LTCFLAGS='$LTCFLAGS'
20492 compiler='$compiler_DEFAULT'
20493
20494 # A function that is used when there is no print builtin or printf.
20495 func_fallback_echo ()
20496 {
20497 eval 'cat <<_LTECHO_EOF
20498 \$1
20499 _LTECHO_EOF'
20500 }
20501
20502 # Quote evaled strings.
20503 for var in SHELL \
20504 ECHO \
20505 PATH_SEPARATOR \
20506 SED \
20507 GREP \
20508 EGREP \
20509 FGREP \
20510 LD \
20511 NM \
20512 LN_S \
20513 lt_SP2NL \
20514 lt_NL2SP \
20515 reload_flag \
20516 FILECMD \
20517 OBJDUMP \
20518 deplibs_check_method \
20519 file_magic_cmd \
20520 file_magic_glob \
20521 want_nocaseglob \
20522 DLLTOOL \
20523 sharedlib_from_linklib_cmd \
20524 AR \
20525 archiver_list_spec \
20526 STRIP \
20527 RANLIB \
20528 CC \
20529 CFLAGS \
20530 compiler \
20531 lt_cv_sys_global_symbol_pipe \
20532 lt_cv_sys_global_symbol_to_cdecl \
20533 lt_cv_sys_global_symbol_to_import \
20534 lt_cv_sys_global_symbol_to_c_name_address \
20535 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20536 lt_cv_nm_interface \
20537 nm_file_list_spec \
20538 lt_cv_truncate_bin \
20539 lt_prog_compiler_no_builtin_flag \
20540 lt_prog_compiler_pic \
20541 lt_prog_compiler_wl \
20542 lt_prog_compiler_static \
20543 lt_cv_prog_compiler_c_o \
20544 need_locks \
20545 MANIFEST_TOOL \
20546 DSYMUTIL \
20547 NMEDIT \
20548 LIPO \
20549 OTOOL \
20550 OTOOL64 \
20551 shrext_cmds \
20552 export_dynamic_flag_spec \
20553 whole_archive_flag_spec \
20554 compiler_needs_object \
20555 with_gnu_ld \
20556 allow_undefined_flag \
20557 no_undefined_flag \
20558 hardcode_libdir_flag_spec \
20559 hardcode_libdir_separator \
20560 exclude_expsyms \
20561 include_expsyms \
20562 file_list_spec \
20563 variables_saved_for_relink \
20564 libname_spec \
20565 library_names_spec \
20566 soname_spec \
20567 install_override_mode \
20568 finish_eval \
20569 old_striplib \
20570 striplib; do
20571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20572 *[\\\\\\\`\\"\\\$]*)
20573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20574 ;;
20575 *)
20576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20577 ;;
20578 esac
20579 done
20580
20581 # Double-quote double-evaled strings.
20582 for var in reload_cmds \
20583 old_postinstall_cmds \
20584 old_postuninstall_cmds \
20585 old_archive_cmds \
20586 extract_expsyms_cmds \
20587 old_archive_from_new_cmds \
20588 old_archive_from_expsyms_cmds \
20589 archive_cmds \
20590 archive_expsym_cmds \
20591 module_cmds \
20592 module_expsym_cmds \
20593 export_symbols_cmds \
20594 prelink_cmds \
20595 postlink_cmds \
20596 postinstall_cmds \
20597 postuninstall_cmds \
20598 finish_cmds \
20599 sys_lib_search_path_spec \
20600 configure_time_dlsearch_path \
20601 configure_time_lt_sys_library_path; do
20602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20603 *[\\\\\\\`\\"\\\$]*)
20604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20605 ;;
20606 *)
20607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20608 ;;
20609 esac
20610 done
20611
20612 ac_aux_dir='$ac_aux_dir'
20613
20614 # See if we are running on zsh, and set the options that allow our
20615 # commands through without removal of \ escapes INIT.
20616 if test -n "\${ZSH_VERSION+set}"; then
20617 setopt NO_GLOB_SUBST
20618 fi
20619
20620
20621 PACKAGE='$PACKAGE'
20622 VERSION='$VERSION'
20623 RM='$RM'
20624 ofile='$ofile'
20625
20626
20627
20628
20629 _ACEOF
20630
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632
20633 # Handling of arguments.
20634 for ac_config_target in $ac_config_targets
20635 do
20636 case $ac_config_target in
20637 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20638 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20639 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20641 "xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;;
20642 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20643 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20644 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20645
20646 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20647 esac
20648 done
20649
20650
20651 # If the user did not use the arguments to specify the items to instantiate,
20652 # then the envvar interface is used. Set only those that are not.
20653 # We use the long form for the default assignment because of an extremely
20654 # bizarre bug on SunOS 4.1.3.
20655 if $ac_need_defaults; then
20656 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20657 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20658 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20659 fi
20660
20661 # Have a temporary directory for convenience. Make it in the build tree
20662 # simply because there is no reason against having it here, and in addition,
20663 # creating and moving files from /tmp can sometimes cause problems.
20664 # Hook for its removal unless debugging.
20665 # Note that there is a small window in which the directory will not be cleaned:
20666 # after its creation but before its name has been assigned to `$tmp'.
20667 $debug ||
20668 {
20669 tmp= ac_tmp=
20670 trap 'exit_status=$?
20671 : "${ac_tmp:=$tmp}"
20672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20673 ' 0
20674 trap 'as_fn_exit 1' 1 2 13 15
20675 }
20676 # Create a (secure) tmp directory for tmp files.
20677
20678 {
20679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20680 test -d "$tmp"
20681 } ||
20682 {
20683 tmp=./conf$$-$RANDOM
20684 (umask 077 && mkdir "$tmp")
20685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20686 ac_tmp=$tmp
20687
20688 # Set up the scripts for CONFIG_FILES section.
20689 # No need to generate them if there are no CONFIG_FILES.
20690 # This happens for instance with `./config.status config.h'.
20691 if test -n "$CONFIG_FILES"; then
20692
20693
20694 ac_cr=`echo X | tr X '\015'`
20695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20696 # But we know of no other shell where ac_cr would be empty at this
20697 # point, so we can use a bashism as a fallback.
20698 if test "x$ac_cr" = x; then
20699 eval ac_cr=\$\'\\r\'
20700 fi
20701 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20703 ac_cs_awk_cr='\\r'
20704 else
20705 ac_cs_awk_cr=$ac_cr
20706 fi
20707
20708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20709 _ACEOF
20710
20711
20712 {
20713 echo "cat >conf$$subs.awk <<_ACEOF" &&
20714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20715 echo "_ACEOF"
20716 } >conf$$subs.sh ||
20717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20719 ac_delim='%!_!# '
20720 for ac_last_try in false false false false false :; do
20721 . ./conf$$subs.sh ||
20722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20723
20724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20725 if test $ac_delim_n = $ac_delim_num; then
20726 break
20727 elif $ac_last_try; then
20728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20729 else
20730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20731 fi
20732 done
20733 rm -f conf$$subs.sh
20734
20735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20737 _ACEOF
20738 sed -n '
20739 h
20740 s/^/S["/; s/!.*/"]=/
20741 p
20742 g
20743 s/^[^!]*!//
20744 :repl
20745 t repl
20746 s/'"$ac_delim"'$//
20747 t delim
20748 :nl
20749 h
20750 s/\(.\{148\}\)..*/\1/
20751 t more1
20752 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20753 p
20754 n
20755 b repl
20756 :more1
20757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20758 p
20759 g
20760 s/.\{148\}//
20761 t nl
20762 :delim
20763 h
20764 s/\(.\{148\}\)..*/\1/
20765 t more2
20766 s/["\\]/\\&/g; s/^/"/; s/$/"/
20767 p
20768 b
20769 :more2
20770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20771 p
20772 g
20773 s/.\{148\}//
20774 t delim
20775 ' <conf$$subs.awk | sed '
20776 /^[^""]/{
20777 N
20778 s/\n//
20779 }
20780 ' >>$CONFIG_STATUS || ac_write_fail=1
20781 rm -f conf$$subs.awk
20782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20783 _ACAWK
20784 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20785 for (key in S) S_is_set[key] = 1
20786 FS = ""
20787
20788 }
20789 {
20790 line = $ 0
20791 nfields = split(line, field, "@")
20792 substed = 0
20793 len = length(field[1])
20794 for (i = 2; i < nfields; i++) {
20795 key = field[i]
20796 keylen = length(key)
20797 if (S_is_set[key]) {
20798 value = S[key]
20799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20800 len += length(value) + length(field[++i])
20801 substed = 1
20802 } else
20803 len += 1 + keylen
20804 }
20805
20806 print line
20807 }
20808
20809 _ACAWK
20810 _ACEOF
20811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20814 else
20815 cat
20816 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20818 _ACEOF
20819
20820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20822 # trailing colons and then remove the whole line if VPATH becomes empty
20823 # (actually we leave an empty line to preserve line numbers).
20824 if test "x$srcdir" = x.; then
20825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20826 h
20827 s///
20828 s/^/:/
20829 s/[ ]*$/:/
20830 s/:\$(srcdir):/:/g
20831 s/:\${srcdir}:/:/g
20832 s/:@srcdir@:/:/g
20833 s/^:*//
20834 s/:*$//
20835 x
20836 s/\(=[ ]*\).*/\1/
20837 G
20838 s/\n//
20839 s/^[^=]*=[ ]*$//
20840 }'
20841 fi
20842
20843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20844 fi # test -n "$CONFIG_FILES"
20845
20846 # Set up the scripts for CONFIG_HEADERS section.
20847 # No need to generate them if there are no CONFIG_HEADERS.
20848 # This happens for instance with `./config.status Makefile'.
20849 if test -n "$CONFIG_HEADERS"; then
20850 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20851 BEGIN {
20852 _ACEOF
20853
20854 # Transform confdefs.h into an awk script `defines.awk', embedded as
20855 # here-document in config.status, that substitutes the proper values into
20856 # config.h.in to produce config.h.
20857
20858 # Create a delimiter string that does not exist in confdefs.h, to ease
20859 # handling of long lines.
20860 ac_delim='%!_!# '
20861 for ac_last_try in false false :; do
20862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20863 if test -z "$ac_tt"; then
20864 break
20865 elif $ac_last_try; then
20866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20867 else
20868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20869 fi
20870 done
20871
20872 # For the awk script, D is an array of macro values keyed by name,
20873 # likewise P contains macro parameters if any. Preserve backslash
20874 # newline sequences.
20875
20876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20877 sed -n '
20878 s/.\{148\}/&'"$ac_delim"'/g
20879 t rset
20880 :rset
20881 s/^[ ]*#[ ]*define[ ][ ]*/ /
20882 t def
20883 d
20884 :def
20885 s/\\$//
20886 t bsnl
20887 s/["\\]/\\&/g
20888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20889 D["\1"]=" \3"/p
20890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20891 d
20892 :bsnl
20893 s/["\\]/\\&/g
20894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20895 D["\1"]=" \3\\\\\\n"\\/p
20896 t cont
20897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20898 t cont
20899 d
20900 :cont
20901 n
20902 s/.\{148\}/&'"$ac_delim"'/g
20903 t clear
20904 :clear
20905 s/\\$//
20906 t bsnlc
20907 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20908 d
20909 :bsnlc
20910 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20911 b cont
20912 ' <confdefs.h | sed '
20913 s/'"$ac_delim"'/"\\\
20914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20915
20916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20917 for (key in D) D_is_set[key] = 1
20918 FS = ""
20919 }
20920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20921 line = \$ 0
20922 split(line, arg, " ")
20923 if (arg[1] == "#") {
20924 defundef = arg[2]
20925 mac1 = arg[3]
20926 } else {
20927 defundef = substr(arg[1], 2)
20928 mac1 = arg[2]
20929 }
20930 split(mac1, mac2, "(") #)
20931 macro = mac2[1]
20932 prefix = substr(line, 1, index(line, defundef) - 1)
20933 if (D_is_set[macro]) {
20934 # Preserve the white space surrounding the "#".
20935 print prefix "define", macro P[macro] D[macro]
20936 next
20937 } else {
20938 # Replace #undef with comments. This is necessary, for example,
20939 # in the case of _POSIX_SOURCE, which is predefined and required
20940 # on some systems where configure will not decide to define it.
20941 if (defundef == "undef") {
20942 print "/*", prefix defundef, macro, "*/"
20943 next
20944 }
20945 }
20946 }
20947 { print }
20948 _ACAWK
20949 _ACEOF
20950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20952 fi # test -n "$CONFIG_HEADERS"
20953
20954
20955 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20956 shift
20957 for ac_tag
20958 do
20959 case $ac_tag in
20960 :[FHLC]) ac_mode=$ac_tag; continue;;
20961 esac
20962 case $ac_mode$ac_tag in
20963 :[FHL]*:*);;
20964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20965 :[FH]-) ac_tag=-:-;;
20966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20967 esac
20968 ac_save_IFS=$IFS
20969 IFS=:
20970 set x $ac_tag
20971 IFS=$ac_save_IFS
20972 shift
20973 ac_file=$1
20974 shift
20975
20976 case $ac_mode in
20977 :L) ac_source=$1;;
20978 :[FH])
20979 ac_file_inputs=
20980 for ac_f
20981 do
20982 case $ac_f in
20983 -) ac_f="$ac_tmp/stdin";;
20984 *) # Look for the file first in the build tree, then in the source tree
20985 # (if the path is not absolute). The absolute path cannot be DOS-style,
20986 # because $ac_f cannot contain `:'.
20987 test -f "$ac_f" ||
20988 case $ac_f in
20989 [\\/$]*) false;;
20990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20991 esac ||
20992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20993 esac
20994 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20995 as_fn_append ac_file_inputs " '$ac_f'"
20996 done
20997
20998 # Let's still pretend it is `configure' which instantiates (i.e., don't
20999 # use $as_me), people would be surprised to read:
21000 # /* config.h. Generated by config.status. */
21001 configure_input='Generated from '`
21002 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21003 `' by configure.'
21004 if test x"$ac_file" != x-; then
21005 configure_input="$ac_file. $configure_input"
21006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21007 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21008 fi
21009 # Neutralize special characters interpreted by sed in replacement strings.
21010 case $configure_input in #(
21011 *\&* | *\|* | *\\* )
21012 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21014 *) ac_sed_conf_input=$configure_input;;
21015 esac
21016
21017 case $ac_tag in
21018 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21020 esac
21021 ;;
21022 esac
21023
21024 ac_dir=`$as_dirname -- "$ac_file" ||
21025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21026 X"$ac_file" : 'X\(//\)[^/]' \| \
21027 X"$ac_file" : 'X\(//\)$' \| \
21028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21029 printf "%s\n" X"$ac_file" |
21030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21031 s//\1/
21032 q
21033 }
21034 /^X\(\/\/\)[^/].*/{
21035 s//\1/
21036 q
21037 }
21038 /^X\(\/\/\)$/{
21039 s//\1/
21040 q
21041 }
21042 /^X\(\/\).*/{
21043 s//\1/
21044 q
21045 }
21046 s/.*/./; q'`
21047 as_dir="$ac_dir"; as_fn_mkdir_p
21048 ac_builddir=.
21049
21050 case "$ac_dir" in
21051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21052 *)
21053 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21054 # A ".." for each directory in $ac_dir_suffix.
21055 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21056 case $ac_top_builddir_sub in
21057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21059 esac ;;
21060 esac
21061 ac_abs_top_builddir=$ac_pwd
21062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21063 # for backward compatibility:
21064 ac_top_builddir=$ac_top_build_prefix
21065
21066 case $srcdir in
21067 .) # We are building in place.
21068 ac_srcdir=.
21069 ac_top_srcdir=$ac_top_builddir_sub
21070 ac_abs_top_srcdir=$ac_pwd ;;
21071 [\\/]* | ?:[\\/]* ) # Absolute name.
21072 ac_srcdir=$srcdir$ac_dir_suffix;
21073 ac_top_srcdir=$srcdir
21074 ac_abs_top_srcdir=$srcdir ;;
21075 *) # Relative name.
21076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21077 ac_top_srcdir=$ac_top_build_prefix$srcdir
21078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21079 esac
21080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21081
21082
21083 case $ac_mode in
21084 :F)
21085 #
21086 # CONFIG_FILE
21087 #
21088
21089 case $INSTALL in
21090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21092 esac
21093 ac_MKDIR_P=$MKDIR_P
21094 case $MKDIR_P in
21095 [\\/$]* | ?:[\\/]* ) ;;
21096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21097 esac
21098 _ACEOF
21099
21100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21101 # If the template does not know about datarootdir, expand it.
21102 # FIXME: This hack should be removed a few years after 2.60.
21103 ac_datarootdir_hack=; ac_datarootdir_seen=
21104 ac_sed_dataroot='
21105 /datarootdir/ {
21106 p
21107 q
21108 }
21109 /@datadir@/p
21110 /@docdir@/p
21111 /@infodir@/p
21112 /@localedir@/p
21113 /@mandir@/p'
21114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21115 *datarootdir*) ac_datarootdir_seen=yes;;
21116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21118 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21119 _ACEOF
21120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21121 ac_datarootdir_hack='
21122 s&@datadir@&$datadir&g
21123 s&@docdir@&$docdir&g
21124 s&@infodir@&$infodir&g
21125 s&@localedir@&$localedir&g
21126 s&@mandir@&$mandir&g
21127 s&\\\${datarootdir}&$datarootdir&g' ;;
21128 esac
21129 _ACEOF
21130
21131 # Neutralize VPATH when `$srcdir' = `.'.
21132 # Shell code in configure.ac might set extrasub.
21133 # FIXME: do we really want to maintain this feature?
21134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21135 ac_sed_extra="$ac_vpsub
21136 $extrasub
21137 _ACEOF
21138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21139 :t
21140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21141 s|@configure_input@|$ac_sed_conf_input|;t t
21142 s&@top_builddir@&$ac_top_builddir_sub&;t t
21143 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21144 s&@srcdir@&$ac_srcdir&;t t
21145 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21146 s&@top_srcdir@&$ac_top_srcdir&;t t
21147 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21148 s&@builddir@&$ac_builddir&;t t
21149 s&@abs_builddir@&$ac_abs_builddir&;t t
21150 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21151 s&@INSTALL@&$ac_INSTALL&;t t
21152 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21153 $ac_datarootdir_hack
21154 "
21155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21157
21158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21161 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21163 which seems to be undefined. Please make sure it is defined" >&5
21164 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21165 which seems to be undefined. Please make sure it is defined" >&2;}
21166
21167 rm -f "$ac_tmp/stdin"
21168 case $ac_file in
21169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21171 esac \
21172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21173 ;;
21174 :H)
21175 #
21176 # CONFIG_HEADER
21177 #
21178 if test x"$ac_file" != x-; then
21179 {
21180 printf "%s\n" "/* $configure_input */" >&1 \
21181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21182 } >"$ac_tmp/config.h" \
21183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21186 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21187 else
21188 rm -f "$ac_file"
21189 mv "$ac_tmp/config.h" "$ac_file" \
21190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21191 fi
21192 else
21193 printf "%s\n" "/* $configure_input */" >&1 \
21194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21195 || as_fn_error $? "could not create -" "$LINENO" 5
21196 fi
21197 # Compute "$ac_file"'s index in $config_headers.
21198 _am_arg="$ac_file"
21199 _am_stamp_count=1
21200 for _am_header in $config_headers :; do
21201 case $_am_header in
21202 $_am_arg | $_am_arg:* )
21203 break ;;
21204 * )
21205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21206 esac
21207 done
21208 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21209 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210 X"$_am_arg" : 'X\(//\)[^/]' \| \
21211 X"$_am_arg" : 'X\(//\)$' \| \
21212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21213 printf "%s\n" X"$_am_arg" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21215 s//\1/
21216 q
21217 }
21218 /^X\(\/\/\)[^/].*/{
21219 s//\1/
21220 q
21221 }
21222 /^X\(\/\/\)$/{
21223 s//\1/
21224 q
21225 }
21226 /^X\(\/\).*/{
21227 s//\1/
21228 q
21229 }
21230 s/.*/./; q'`/stamp-h$_am_stamp_count
21231 ;;
21232
21233 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21234 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21235 ;;
21236 esac
21237
21238
21239 case $ac_file$ac_mode in
21240 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21241 # Older Autoconf quotes --file arguments for eval, but not when files
21242 # are listed without --file. Let's play safe and only enable the eval
21243 # if we detect the quoting.
21244 # TODO: see whether this extra hack can be removed once we start
21245 # requiring Autoconf 2.70 or later.
21246 case $CONFIG_FILES in #(
21247 *\'*) :
21248 eval set x "$CONFIG_FILES" ;; #(
21249 *) :
21250 set x $CONFIG_FILES ;; #(
21251 *) :
21252 ;;
21253 esac
21254 shift
21255 # Used to flag and report bootstrapping failures.
21256 am_rc=0
21257 for am_mf
21258 do
21259 # Strip MF so we end up with the name of the file.
21260 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21261 # Check whether this is an Automake generated Makefile which includes
21262 # dependency-tracking related rules and includes.
21263 # Grep'ing the whole file directly is not great: AIX grep has a line
21264 # limit of 2048, but all sed's we know have understand at least 4000.
21265 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21266 || continue
21267 am_dirpart=`$as_dirname -- "$am_mf" ||
21268 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21269 X"$am_mf" : 'X\(//\)[^/]' \| \
21270 X"$am_mf" : 'X\(//\)$' \| \
21271 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21272 printf "%s\n" X"$am_mf" |
21273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21274 s//\1/
21275 q
21276 }
21277 /^X\(\/\/\)[^/].*/{
21278 s//\1/
21279 q
21280 }
21281 /^X\(\/\/\)$/{
21282 s//\1/
21283 q
21284 }
21285 /^X\(\/\).*/{
21286 s//\1/
21287 q
21288 }
21289 s/.*/./; q'`
21290 am_filepart=`$as_basename -- "$am_mf" ||
21291 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21292 X"$am_mf" : 'X\(//\)$' \| \
21293 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21294 printf "%s\n" X/"$am_mf" |
21295 sed '/^.*\/\([^/][^/]*\)\/*$/{
21296 s//\1/
21297 q
21298 }
21299 /^X\/\(\/\/\)$/{
21300 s//\1/
21301 q
21302 }
21303 /^X\/\(\/\).*/{
21304 s//\1/
21305 q
21306 }
21307 s/.*/./; q'`
21308 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21309 && sed -e '/# am--include-marker/d' "$am_filepart" \
21310 | $MAKE -f - am--depfiles" >&5
21311 (cd "$am_dirpart" \
21312 && sed -e '/# am--include-marker/d' "$am_filepart" \
21313 | $MAKE -f - am--depfiles) >&5 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } || am_rc=$?
21317 done
21318 if test $am_rc -ne 0; then
21319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21321 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21322 for automatic dependency tracking. If GNU make was not used, consider
21323 re-running the configure script with MAKE=\"gmake\" (or whatever is
21324 necessary). You can also try re-running configure with the
21325 '--disable-dependency-tracking' option to at least be able to build
21326 the package (albeit without support for automatic dependency tracking).
21327 See \`config.log' for more details" "$LINENO" 5; }
21328 fi
21329 { am_dirpart=; unset am_dirpart;}
21330 { am_filepart=; unset am_filepart;}
21331 { am_mf=; unset am_mf;}
21332 { am_rc=; unset am_rc;}
21333 rm -f conftest-deps.mk
21334 }
21335 ;;
21336 "libtool":C)
21337
21338 # See if we are running on zsh, and set the options that allow our
21339 # commands through without removal of \ escapes.
21340 if test -n "${ZSH_VERSION+set}"; then
21341 setopt NO_GLOB_SUBST
21342 fi
21343
21344 cfgfile=${ofile}T
21345 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21346 $RM "$cfgfile"
21347
21348 cat <<_LT_EOF >> "$cfgfile"
21349 #! $SHELL
21350 # Generated automatically by $as_me ($PACKAGE) $VERSION
21351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21352 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21353
21354 # Provide generalized library-building support services.
21355 # Written by Gordon Matzigkeit, 1996
21356
21357 # Copyright (C) 2014 Free Software Foundation, Inc.
21358 # This is free software; see the source for copying conditions. There is NO
21359 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21360
21361 # GNU Libtool is free software; you can redistribute it and/or modify
21362 # it under the terms of the GNU General Public License as published by
21363 # the Free Software Foundation; either version 2 of of the License, or
21364 # (at your option) any later version.
21365 #
21366 # As a special exception to the GNU General Public License, if you
21367 # distribute this file as part of a program or library that is built
21368 # using GNU Libtool, you may include this file under the same
21369 # distribution terms that you use for the rest of that program.
21370 #
21371 # GNU Libtool is distributed in the hope that it will be useful, but
21372 # WITHOUT ANY WARRANTY; without even the implied warranty of
21373 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21374 # GNU General Public License for more details.
21375 #
21376 # You should have received a copy of the GNU General Public License
21377 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21378
21379
21380 # The names of the tagged configurations supported by this script.
21381 available_tags=''
21382
21383 # Configured defaults for sys_lib_dlsearch_path munging.
21384 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21385
21386 # ### BEGIN LIBTOOL CONFIG
21387
21388 # Whether or not to build static libraries.
21389 build_old_libs=$enable_static
21390
21391 # Which release of libtool.m4 was used?
21392 macro_version=$macro_version
21393 macro_revision=$macro_revision
21394
21395 # Whether or not to build shared libraries.
21396 build_libtool_libs=$enable_shared
21397
21398 # What type of objects to build.
21399 pic_mode=$pic_mode
21400
21401 # Whether or not to optimize for fast installation.
21402 fast_install=$enable_fast_install
21403
21404 # Shared archive member basename,for filename based shared library versioning on AIX.
21405 shared_archive_member_spec=$shared_archive_member_spec
21406
21407 # Shell to use when invoking shell scripts.
21408 SHELL=$lt_SHELL
21409
21410 # An echo program that protects backslashes.
21411 ECHO=$lt_ECHO
21412
21413 # The PATH separator for the build system.
21414 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21415
21416 # The host system.
21417 host_alias=$host_alias
21418 host=$host
21419 host_os=$host_os
21420
21421 # The build system.
21422 build_alias=$build_alias
21423 build=$build
21424 build_os=$build_os
21425
21426 # A sed program that does not truncate output.
21427 SED=$lt_SED
21428
21429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21430 Xsed="\$SED -e 1s/^X//"
21431
21432 # A grep program that handles long lines.
21433 GREP=$lt_GREP
21434
21435 # An ERE matcher.
21436 EGREP=$lt_EGREP
21437
21438 # A literal string matcher.
21439 FGREP=$lt_FGREP
21440
21441 # A BSD- or MS-compatible name lister.
21442 NM=$lt_NM
21443
21444 # Whether we need soft or hard links.
21445 LN_S=$lt_LN_S
21446
21447 # What is the maximum length of a command?
21448 max_cmd_len=$max_cmd_len
21449
21450 # Object file suffix (normally "o").
21451 objext=$ac_objext
21452
21453 # Executable file suffix (normally "").
21454 exeext=$exeext
21455
21456 # whether the shell understands "unset".
21457 lt_unset=$lt_unset
21458
21459 # turn spaces into newlines.
21460 SP2NL=$lt_lt_SP2NL
21461
21462 # turn newlines into spaces.
21463 NL2SP=$lt_lt_NL2SP
21464
21465 # convert \$build file names to \$host format.
21466 to_host_file_cmd=$lt_cv_to_host_file_cmd
21467
21468 # convert \$build files to toolchain format.
21469 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21470
21471 # A file(cmd) program that detects file types.
21472 FILECMD=$lt_FILECMD
21473
21474 # An object symbol dumper.
21475 OBJDUMP=$lt_OBJDUMP
21476
21477 # Method to check whether dependent libraries are shared objects.
21478 deplibs_check_method=$lt_deplibs_check_method
21479
21480 # Command to use when deplibs_check_method = "file_magic".
21481 file_magic_cmd=$lt_file_magic_cmd
21482
21483 # How to find potential files when deplibs_check_method = "file_magic".
21484 file_magic_glob=$lt_file_magic_glob
21485
21486 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21487 want_nocaseglob=$lt_want_nocaseglob
21488
21489 # DLL creation program.
21490 DLLTOOL=$lt_DLLTOOL
21491
21492 # Command to associate shared and link libraries.
21493 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21494
21495 # The archiver.
21496 AR=$lt_AR
21497
21498 # Flags to create an archive (by configure).
21499 lt_ar_flags=$lt_ar_flags
21500
21501 # Flags to create an archive.
21502 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21503
21504 # How to feed a file listing to the archiver.
21505 archiver_list_spec=$lt_archiver_list_spec
21506
21507 # A symbol stripping program.
21508 STRIP=$lt_STRIP
21509
21510 # Commands used to install an old-style archive.
21511 RANLIB=$lt_RANLIB
21512 old_postinstall_cmds=$lt_old_postinstall_cmds
21513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21514
21515 # Whether to use a lock for old archive extraction.
21516 lock_old_archive_extraction=$lock_old_archive_extraction
21517
21518 # A C compiler.
21519 LTCC=$lt_CC
21520
21521 # LTCC compiler flags.
21522 LTCFLAGS=$lt_CFLAGS
21523
21524 # Take the output of nm and produce a listing of raw symbols and C names.
21525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21526
21527 # Transform the output of nm in a proper C declaration.
21528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21529
21530 # Transform the output of nm into a list of symbols to manually relocate.
21531 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21532
21533 # Transform the output of nm in a C name address pair.
21534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21535
21536 # Transform the output of nm in a C name address pair when lib prefix is needed.
21537 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21538
21539 # The name lister interface.
21540 nm_interface=$lt_lt_cv_nm_interface
21541
21542 # Specify filename containing input files for \$NM.
21543 nm_file_list_spec=$lt_nm_file_list_spec
21544
21545 # The root where to search for dependent libraries,and where our libraries should be installed.
21546 lt_sysroot=$lt_sysroot
21547
21548 # Command to truncate a binary pipe.
21549 lt_truncate_bin=$lt_lt_cv_truncate_bin
21550
21551 # The name of the directory that contains temporary libtool files.
21552 objdir=$objdir
21553
21554 # Used to examine libraries when file_magic_cmd begins with "file".
21555 MAGIC_CMD=$MAGIC_CMD
21556
21557 # Must we lock files when doing compilation?
21558 need_locks=$lt_need_locks
21559
21560 # Manifest tool.
21561 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21562
21563 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21564 DSYMUTIL=$lt_DSYMUTIL
21565
21566 # Tool to change global to local symbols on Mac OS X.
21567 NMEDIT=$lt_NMEDIT
21568
21569 # Tool to manipulate fat objects and archives on Mac OS X.
21570 LIPO=$lt_LIPO
21571
21572 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21573 OTOOL=$lt_OTOOL
21574
21575 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21576 OTOOL64=$lt_OTOOL64
21577
21578 # Old archive suffix (normally "a").
21579 libext=$libext
21580
21581 # Shared library suffix (normally ".so").
21582 shrext_cmds=$lt_shrext_cmds
21583
21584 # The commands to extract the exported symbol list from a shared archive.
21585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21586
21587 # Variables whose values should be saved in libtool wrapper scripts and
21588 # restored at link time.
21589 variables_saved_for_relink=$lt_variables_saved_for_relink
21590
21591 # Do we need the "lib" prefix for modules?
21592 need_lib_prefix=$need_lib_prefix
21593
21594 # Do we need a version for libraries?
21595 need_version=$need_version
21596
21597 # Library versioning type.
21598 version_type=$version_type
21599
21600 # Shared library runtime path variable.
21601 runpath_var=$runpath_var
21602
21603 # Shared library path variable.
21604 shlibpath_var=$shlibpath_var
21605
21606 # Is shlibpath searched before the hard-coded library search path?
21607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21608
21609 # Format of library name prefix.
21610 libname_spec=$lt_libname_spec
21611
21612 # List of archive names. First name is the real one, the rest are links.
21613 # The last name is the one that the linker finds with -lNAME
21614 library_names_spec=$lt_library_names_spec
21615
21616 # The coded name of the library, if different from the real name.
21617 soname_spec=$lt_soname_spec
21618
21619 # Permission mode override for installation of shared libraries.
21620 install_override_mode=$lt_install_override_mode
21621
21622 # Command to use after installation of a shared archive.
21623 postinstall_cmds=$lt_postinstall_cmds
21624
21625 # Command to use after uninstallation of a shared archive.
21626 postuninstall_cmds=$lt_postuninstall_cmds
21627
21628 # Commands used to finish a libtool library installation in a directory.
21629 finish_cmds=$lt_finish_cmds
21630
21631 # As "finish_cmds", except a single script fragment to be evaled but
21632 # not shown.
21633 finish_eval=$lt_finish_eval
21634
21635 # Whether we should hardcode library paths into libraries.
21636 hardcode_into_libs=$hardcode_into_libs
21637
21638 # Compile-time system search path for libraries.
21639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21640
21641 # Detected run-time system search path for libraries.
21642 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21643
21644 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21645 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21646
21647 # Whether dlopen is supported.
21648 dlopen_support=$enable_dlopen
21649
21650 # Whether dlopen of programs is supported.
21651 dlopen_self=$enable_dlopen_self
21652
21653 # Whether dlopen of statically linked programs is supported.
21654 dlopen_self_static=$enable_dlopen_self_static
21655
21656 # Commands to strip libraries.
21657 old_striplib=$lt_old_striplib
21658 striplib=$lt_striplib
21659
21660
21661 # The linker used to build libraries.
21662 LD=$lt_LD
21663
21664 # How to create reloadable object files.
21665 reload_flag=$lt_reload_flag
21666 reload_cmds=$lt_reload_cmds
21667
21668 # Commands used to build an old-style archive.
21669 old_archive_cmds=$lt_old_archive_cmds
21670
21671 # A language specific compiler.
21672 CC=$lt_compiler
21673
21674 # Is the compiler the GNU compiler?
21675 with_gcc=$GCC
21676
21677 # Compiler flag to turn off builtin functions.
21678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21679
21680 # Additional compiler flags for building library objects.
21681 pic_flag=$lt_lt_prog_compiler_pic
21682
21683 # How to pass a linker flag through the compiler.
21684 wl=$lt_lt_prog_compiler_wl
21685
21686 # Compiler flag to prevent dynamic linking.
21687 link_static_flag=$lt_lt_prog_compiler_static
21688
21689 # Does compiler simultaneously support -c and -o options?
21690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21691
21692 # Whether or not to add -lc for building shared libraries.
21693 build_libtool_need_lc=$archive_cmds_need_lc
21694
21695 # Whether or not to disallow shared libs when runtime libs are static.
21696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21697
21698 # Compiler flag to allow reflexive dlopens.
21699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21700
21701 # Compiler flag to generate shared objects directly from archives.
21702 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21703
21704 # Whether the compiler copes with passing no objects directly.
21705 compiler_needs_object=$lt_compiler_needs_object
21706
21707 # Create an old-style archive from a shared archive.
21708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21709
21710 # Create a temporary old-style archive to link instead of a shared archive.
21711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21712
21713 # Commands used to build a shared archive.
21714 archive_cmds=$lt_archive_cmds
21715 archive_expsym_cmds=$lt_archive_expsym_cmds
21716
21717 # Commands used to build a loadable module if different from building
21718 # a shared archive.
21719 module_cmds=$lt_module_cmds
21720 module_expsym_cmds=$lt_module_expsym_cmds
21721
21722 # Whether we are building with GNU ld or not.
21723 with_gnu_ld=$lt_with_gnu_ld
21724
21725 # Flag that allows shared libraries with undefined symbols to be built.
21726 allow_undefined_flag=$lt_allow_undefined_flag
21727
21728 # Flag that enforces no undefined symbols.
21729 no_undefined_flag=$lt_no_undefined_flag
21730
21731 # Flag to hardcode \$libdir into a binary during linking.
21732 # This must work even if \$libdir does not exist
21733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21734
21735 # Whether we need a single "-rpath" flag with a separated argument.
21736 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21737
21738 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21739 # DIR into the resulting binary.
21740 hardcode_direct=$hardcode_direct
21741
21742 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21743 # DIR into the resulting binary and the resulting library dependency is
21744 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21745 # library is relocated.
21746 hardcode_direct_absolute=$hardcode_direct_absolute
21747
21748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21749 # into the resulting binary.
21750 hardcode_minus_L=$hardcode_minus_L
21751
21752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21753 # into the resulting binary.
21754 hardcode_shlibpath_var=$hardcode_shlibpath_var
21755
21756 # Set to "yes" if building a shared library automatically hardcodes DIR
21757 # into the library and all subsequent libraries and executables linked
21758 # against it.
21759 hardcode_automatic=$hardcode_automatic
21760
21761 # Set to yes if linker adds runtime paths of dependent libraries
21762 # to runtime path list.
21763 inherit_rpath=$inherit_rpath
21764
21765 # Whether libtool must link a program against all its dependency libraries.
21766 link_all_deplibs=$link_all_deplibs
21767
21768 # Set to "yes" if exported symbols are required.
21769 always_export_symbols=$always_export_symbols
21770
21771 # The commands to list exported symbols.
21772 export_symbols_cmds=$lt_export_symbols_cmds
21773
21774 # Symbols that should not be listed in the preloaded symbols.
21775 exclude_expsyms=$lt_exclude_expsyms
21776
21777 # Symbols that must always be exported.
21778 include_expsyms=$lt_include_expsyms
21779
21780 # Commands necessary for linking programs (against libraries) with templates.
21781 prelink_cmds=$lt_prelink_cmds
21782
21783 # Commands necessary for finishing linking programs.
21784 postlink_cmds=$lt_postlink_cmds
21785
21786 # Specify filename containing input files.
21787 file_list_spec=$lt_file_list_spec
21788
21789 # How to hardcode a shared library path into an executable.
21790 hardcode_action=$hardcode_action
21791
21792 # ### END LIBTOOL CONFIG
21793
21794 _LT_EOF
21795
21796 cat <<'_LT_EOF' >> "$cfgfile"
21797
21798 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21799
21800 # func_munge_path_list VARIABLE PATH
21801 # -----------------------------------
21802 # VARIABLE is name of variable containing _space_ separated list of
21803 # directories to be munged by the contents of PATH, which is string
21804 # having a format:
21805 # "DIR[:DIR]:"
21806 # string "DIR[ DIR]" will be prepended to VARIABLE
21807 # ":DIR[:DIR]"
21808 # string "DIR[ DIR]" will be appended to VARIABLE
21809 # "DIRP[:DIRP]::[DIRA:]DIRA"
21810 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21811 # "DIRA[ DIRA]" will be appended to VARIABLE
21812 # "DIR[:DIR]"
21813 # VARIABLE will be replaced by "DIR[ DIR]"
21814 func_munge_path_list ()
21815 {
21816 case x$2 in
21817 x)
21818 ;;
21819 *:)
21820 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21821 ;;
21822 x:*)
21823 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21824 ;;
21825 *::*)
21826 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21827 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21828 ;;
21829 *)
21830 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21831 ;;
21832 esac
21833 }
21834
21835
21836 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21837 func_cc_basename ()
21838 {
21839 for cc_temp in $*""; do
21840 case $cc_temp in
21841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21843 \-*) ;;
21844 *) break;;
21845 esac
21846 done
21847 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21848 }
21849
21850
21851 # ### END FUNCTIONS SHARED WITH CONFIGURE
21852
21853 _LT_EOF
21854
21855 case $host_os in
21856 aix3*)
21857 cat <<\_LT_EOF >> "$cfgfile"
21858 # AIX sometimes has problems with the GCC collect2 program. For some
21859 # reason, if we set the COLLECT_NAMES environment variable, the problems
21860 # vanish in a puff of smoke.
21861 if test set != "${COLLECT_NAMES+set}"; then
21862 COLLECT_NAMES=
21863 export COLLECT_NAMES
21864 fi
21865 _LT_EOF
21866 ;;
21867 esac
21868
21869
21870
21871 ltmain=$ac_aux_dir/ltmain.sh
21872
21873
21874 # We use sed instead of cat because bash on DJGPP gets confused if
21875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21876 # text mode, it properly converts lines to CR/LF. This bash problem
21877 # is reportedly fixed, but why not run on old versions too?
21878 $SED '$q' "$ltmain" >> "$cfgfile" \
21879 || (rm -f "$cfgfile"; exit 1)
21880
21881 mv -f "$cfgfile" "$ofile" ||
21882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21883 chmod +x "$ofile"
21884
21885 ;;
21886
21887 esac
21888 done # for ac_tag
21889
21890
21891 as_fn_exit 0
21892 _ACEOF
21893 ac_clean_files=$ac_clean_files_save
21894
21895 test $ac_write_fail = 0 ||
21896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21897
21898
21899 # configure is writing to config.log, and then calls config.status.
21900 # config.status does its own redirection, appending to config.log.
21901 # Unfortunately, on DOS this fails, as config.log is still kept open
21902 # by configure, so config.status won't be able to write to it; its
21903 # output is simply discarded. So we exec the FD to /dev/null,
21904 # effectively closing config.log, so it can be properly (re)opened and
21905 # appended to by config.status. When coming back to configure, we
21906 # need to make the FD available again.
21907 if test "$no_create" != yes; then
21908 ac_cs_success=:
21909 ac_config_status_args=
21910 test "$silent" = yes &&
21911 ac_config_status_args="$ac_config_status_args --quiet"
21912 exec 5>/dev/null
21913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21914 exec 5>>config.log
21915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21916 # would make configure fail if this is the last instruction.
21917 $ac_cs_success || as_fn_exit 1
21918 fi
21919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21921 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21922 fi
21923
21924
21925