Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-input-libinput 1.5.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/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 [email protected] and
279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/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-libinput'
624 PACKAGE_TARNAME='xf86-input-libinput'
625 PACKAGE_VERSION='1.5.0'
626 PACKAGE_STRING='xf86-input-libinput 1.5.0'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/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 sdkdir
669 xorgconfdir
670 inputdir
671 INPUTPROTO24_LIBS
672 INPUTPROTO24_CFLAGS
673 LIBINPUT_LIBS
674 LIBINPUT_CFLAGS
675 XORG_LIBS
676 XORG_CFLAGS
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 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 LIBTOOL
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 CSCOPE
751 ETAGS
752 CTAGS
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
758 AWK
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
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_silent_rules
820 enable_static
821 enable_shared
822 with_pic
823 enable_fast_install
824 with_aix_soname
825 enable_dependency_tracking
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_selective_werror
830 enable_strict_compilation
831 with_xorg_module_dir
832 with_xorg_conf_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 XORG_CFLAGS
848 XORG_LIBS
849 LIBINPUT_CFLAGS
850 LIBINPUT_LIBS
851 INPUTPROTO24_CFLAGS
852 INPUTPROTO24_LIBS'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 runstatedir='${localstatedir}/run'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: \`$ac_useropt'"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: \`$ac_useropt'"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -runstatedir | --runstatedir | --runstatedi | --runstated \
1143 | --runstate | --runstat | --runsta | --runst | --runs \
1144 | --run | --ru | --r)
1145 ac_prev=runstatedir ;;
1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148 | --run=* | --ru=* | --r=*)
1149 runstatedir=$ac_optarg ;;
1150
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1167
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1177
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1184
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1195
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: \`$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: \`$ac_useropt'"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 ;;
1267
1268 esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir runstatedir
1289 do
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 printf "%s\n" X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures xf86-input-libinput 1.5.0 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root
1451 [DATAROOTDIR/doc/xf86-input-libinput]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of xf86-input-libinput 1.5.0:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --disable-selective-werror
1493 Turn off selective compiler errors. (default:
1494 enabled)
1495 --enable-strict-compilation
1496 Enable all warnings from compiler and make them
1497 errors (default: disabled)
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-aix-soname=aix|svr4|both
1505 shared library versioning (aka "SONAME") variant to
1506 provide on AIX, [default=aix].
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1509 compiler's sysroot if not specified).
1510 --with-xorg-module-dir=DIR
1511 Default xorg module directory
1512 [[default=$libdir/xorg/modules]]
1513 --with-xorg-conf-dir=DIR
1514 Default xorg.conf.d directory
1515 [[default=${prefix}/share/X11/xorg.conf.d]]
1516
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 LT_SYS_LIBRARY_PATH
1527 User-defined run-time library search path.
1528 PKG_CONFIG path to pkg-config utility
1529 PKG_CONFIG_PATH
1530 directories to add to pkg-config's search path
1531 PKG_CONFIG_LIBDIR
1532 path overriding pkg-config's built-in search path
1533 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1534 XORG_LIBS linker flags for XORG, overriding pkg-config
1535 LIBINPUT_CFLAGS
1536 C compiler flags for LIBINPUT, overriding pkg-config
1537 LIBINPUT_LIBS
1538 linker flags for LIBINPUT, overriding pkg-config
1539 INPUTPROTO24_CFLAGS
1540 C compiler flags for INPUTPROTO24, overriding pkg-config
1541 INPUTPROTO24_LIBS
1542 linker flags for INPUTPROTO24, overriding pkg-config
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for configure.gnu first; this name is used for a wrapper for
1594 # Metaconfig's "Configure" on case-insensitive file systems.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 xf86-input-libinput configure 1.5.0
1612 generated by GNU Autoconf 2.71
1613
1614 Copyright (C) 2021 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest.beam
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 printf "%s\n" "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext
1651 then :
1652 ac_retval=0
1653 else $as_nop
1654 printf "%s\n" "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 printf "%s\n" "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 test -x conftest$ac_exeext
1692 }
1693 then :
1694 ac_retval=0
1695 else $as_nop
1696 printf "%s\n" "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_link
1710
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 printf %s "checking for $2... " >&6; }
1720 if eval test \${$3+y}
1721 then :
1722 printf %s "(cached) " >&6
1723 else $as_nop
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"
1730 then :
1731 eval "$3=yes"
1732 else $as_nop
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1736 fi
1737 eval ac_res=\$$3
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 printf "%s\n" "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_compile
1743
1744 # ac_fn_c_check_func LINENO FUNC VAR
1745 # ----------------------------------
1746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1747 ac_fn_c_check_func ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 printf %s "checking for $2... " >&6; }
1752 if eval test \${$3+y}
1753 then :
1754 printf %s "(cached) " >&6
1755 else $as_nop
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below. */
1764
1765 #include <limits.h>
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main (void)
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"
1791 then :
1792 eval "$3=yes"
1793 else $as_nop
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797 conftest$ac_exeext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 printf "%s\n" "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_func
1805
1806 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1807 # ------------------------------------------------------------------
1808 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1809 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1810 ac_fn_check_decl ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 as_decl_name=`echo $2|sed 's/ *(.*//'`
1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 printf %s "checking whether $as_decl_name is declared... " >&6; }
1816 if eval test \${$3+y}
1817 then :
1818 printf %s "(cached) " >&6
1819 else $as_nop
1820 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1821 eval ac_save_FLAGS=\$$6
1822 as_fn_append $6 " $5"
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $4
1826 int
1827 main (void)
1828 {
1829 #ifndef $as_decl_name
1830 #ifdef __cplusplus
1831 (void) $as_decl_use;
1832 #else
1833 (void) $as_decl_name;
1834 #endif
1835 #endif
1836
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"
1842 then :
1843 eval "$3=yes"
1844 else $as_nop
1845 eval "$3=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1848 eval $6=\$ac_save_FLAGS
1849
1850 fi
1851 eval ac_res=\$$3
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 printf "%s\n" "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_check_decl
1857 ac_configure_args_raw=
1858 for ac_arg
1859 do
1860 case $ac_arg in
1861 *\'*)
1862 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 esac
1864 as_fn_append ac_configure_args_raw " '$ac_arg'"
1865 done
1866
1867 case $ac_configure_args_raw in
1868 *$as_nl*)
1869 ac_safe_unquote= ;;
1870 *)
1871 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1872 ac_unsafe_a="$ac_unsafe_z#~"
1873 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1874 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1875 esac
1876
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1880
1881 It was created by xf86-input-libinput $as_me 1.5.0, which was
1882 generated by GNU Autoconf 2.71. Invocation command line was
1883
1884 $ $0$ac_configure_args_raw
1885
1886 _ACEOF
1887 exec 5>>config.log
1888 {
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1893
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911 _ASUNAME
1912
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916 IFS=$as_save_IFS
1917 case $as_dir in #(((
1918 '') as_dir=./ ;;
1919 */) ;;
1920 *) as_dir=$as_dir/ ;;
1921 esac
1922 printf "%s\n" "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Sanitize IFS.
1993 IFS=" "" $as_nl"
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 printf "%s\n" "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003 (
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031 )
2032 echo
2033
2034 printf "%s\n" "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 printf "%s\n" "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 printf "%s\n" "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 printf "%s\n" "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2063
2064 if test -s confdefs.h; then
2065 printf "%s\n" "## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##"
2068 echo
2069 cat confdefs.h
2070 echo
2071 fi
2072 test "$ac_signal" != 0 &&
2073 printf "%s\n" "$as_me: caught signal $ac_signal"
2074 printf "%s\n" "$as_me: exit $exit_status"
2075 } >&5
2076 rm -f core *.core core.conftest.* &&
2077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078 exit $exit_status
2079 ' 0
2080 for ac_signal in 1 2 13 15; do
2081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 done
2083 ac_signal=0
2084
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2087
2088 printf "%s\n" "/* confdefs.h */" > confdefs.h
2089
2090 # Predefined preprocessor variables.
2091
2092 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2101
2102 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 if test -n "$CONFIG_SITE"; then
2108 ac_site_files="$CONFIG_SITE"
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2111 else
2112 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2113 fi
2114
2115 for ac_site_file in $ac_site_files
2116 do
2117 case $ac_site_file in #(
2118 */*) :
2119 ;; #(
2120 *) :
2121 ac_site_file=./$ac_site_file ;;
2122 esac
2123 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2127 . "$ac_site_file" \
2128 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2130 as_fn_error $? "failed to load site script $ac_site_file
2131 See \`config.log' for more details" "$LINENO" 5; }
2132 fi
2133 done
2134
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special files
2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2141 case $cache_file in
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2144 esac
2145 fi
2146 else
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2149 >$cache_file
2150 fi
2151
2152 # Test code for whether the C compiler supports C89 (global declarations)
2153 ac_c_conftest_c89_globals='
2154 /* Does the compiler advertise C89 conformance?
2155 Do not test the value of __STDC__, because some compilers set it to 0
2156 while being otherwise adequately conformant. */
2157 #if !defined __STDC__
2158 # error "Compiler does not advertise C89 conformance"
2159 #endif
2160
2161 #include <stddef.h>
2162 #include <stdarg.h>
2163 struct stat;
2164 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2165 struct buf { int x; };
2166 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2167 static char *e (p, i)
2168 char **p;
2169 int i;
2170 {
2171 return p[i];
2172 }
2173 static char *f (char * (*g) (char **, int), char **p, ...)
2174 {
2175 char *s;
2176 va_list v;
2177 va_start (v,p);
2178 s = g (p, va_arg (v,int));
2179 va_end (v);
2180 return s;
2181 }
2182
2183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2184 function prototypes and stuff, but not \xHH hex character constants.
2185 These do not provoke an error unfortunately, instead are silently treated
2186 as an "x". The following induces an error, until -std is added to get
2187 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2188 array size at least. It is necessary to write \x00 == 0 to get something
2189 that is true only with -std. */
2190 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2191
2192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2193 inside strings and character constants. */
2194 #define FOO(x) '\''x'\''
2195 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2196
2197 int test (int i, double x);
2198 struct s1 {int (*f) (int a);};
2199 struct s2 {int (*f) (double a);};
2200 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2201 int, int);'
2202
2203 # Test code for whether the C compiler supports C89 (body of main).
2204 ac_c_conftest_c89_main='
2205 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2206 '
2207
2208 # Test code for whether the C compiler supports C99 (global declarations)
2209 ac_c_conftest_c99_globals='
2210 // Does the compiler advertise C99 conformance?
2211 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2212 # error "Compiler does not advertise C99 conformance"
2213 #endif
2214
2215 #include <stdbool.h>
2216 extern int puts (const char *);
2217 extern int printf (const char *, ...);
2218 extern int dprintf (int, const char *, ...);
2219 extern void *malloc (size_t);
2220
2221 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2222 // dprintf is used instead of fprintf to avoid needing to declare
2223 // FILE and stderr.
2224 #define debug(...) dprintf (2, __VA_ARGS__)
2225 #define showlist(...) puts (#__VA_ARGS__)
2226 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2227 static void
2228 test_varargs_macros (void)
2229 {
2230 int x = 1234;
2231 int y = 5678;
2232 debug ("Flag");
2233 debug ("X = %d\n", x);
2234 showlist (The first, second, and third items.);
2235 report (x>y, "x is %d but y is %d", x, y);
2236 }
2237
2238 // Check long long types.
2239 #define BIG64 18446744073709551615ull
2240 #define BIG32 4294967295ul
2241 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2242 #if !BIG_OK
2243 #error "your preprocessor is broken"
2244 #endif
2245 #if BIG_OK
2246 #else
2247 #error "your preprocessor is broken"
2248 #endif
2249 static long long int bignum = -9223372036854775807LL;
2250 static unsigned long long int ubignum = BIG64;
2251
2252 struct incomplete_array
2253 {
2254 int datasize;
2255 double data[];
2256 };
2257
2258 struct named_init {
2259 int number;
2260 const wchar_t *name;
2261 double average;
2262 };
2263
2264 typedef const char *ccp;
2265
2266 static inline int
2267 test_restrict (ccp restrict text)
2268 {
2269 // See if C++-style comments work.
2270 // Iterate through items via the restricted pointer.
2271 // Also check for declarations in for loops.
2272 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2273 continue;
2274 return 0;
2275 }
2276
2277 // Check varargs and va_copy.
2278 static bool
2279 test_varargs (const char *format, ...)
2280 {
2281 va_list args;
2282 va_start (args, format);
2283 va_list args_copy;
2284 va_copy (args_copy, args);
2285
2286 const char *str = "";
2287 int number = 0;
2288 float fnumber = 0;
2289
2290 while (*format)
2291 {
2292 switch (*format++)
2293 {
2294 case '\''s'\'': // string
2295 str = va_arg (args_copy, const char *);
2296 break;
2297 case '\''d'\'': // int
2298 number = va_arg (args_copy, int);
2299 break;
2300 case '\''f'\'': // float
2301 fnumber = va_arg (args_copy, double);
2302 break;
2303 default:
2304 break;
2305 }
2306 }
2307 va_end (args_copy);
2308 va_end (args);
2309
2310 return *str && number && fnumber;
2311 }
2312 '
2313
2314 # Test code for whether the C compiler supports C99 (body of main).
2315 ac_c_conftest_c99_main='
2316 // Check bool.
2317 _Bool success = false;
2318 success |= (argc != 0);
2319
2320 // Check restrict.
2321 if (test_restrict ("String literal") == 0)
2322 success = true;
2323 char *restrict newvar = "Another string";
2324
2325 // Check varargs.
2326 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2327 test_varargs_macros ();
2328
2329 // Check flexible array members.
2330 struct incomplete_array *ia =
2331 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2332 ia->datasize = 10;
2333 for (int i = 0; i < ia->datasize; ++i)
2334 ia->data[i] = i * 1.234;
2335
2336 // Check named initializers.
2337 struct named_init ni = {
2338 .number = 34,
2339 .name = L"Test wide string",
2340 .average = 543.34343,
2341 };
2342
2343 ni.number = 58;
2344
2345 int dynamic_array[ni.number];
2346 dynamic_array[0] = argv[0][0];
2347 dynamic_array[ni.number - 1] = 543;
2348
2349 // work around unused variable warnings
2350 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2351 || dynamic_array[ni.number - 1] != 543);
2352 '
2353
2354 # Test code for whether the C compiler supports C11 (global declarations)
2355 ac_c_conftest_c11_globals='
2356 // Does the compiler advertise C11 conformance?
2357 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2358 # error "Compiler does not advertise C11 conformance"
2359 #endif
2360
2361 // Check _Alignas.
2362 char _Alignas (double) aligned_as_double;
2363 char _Alignas (0) no_special_alignment;
2364 extern char aligned_as_int;
2365 char _Alignas (0) _Alignas (int) aligned_as_int;
2366
2367 // Check _Alignof.
2368 enum
2369 {
2370 int_alignment = _Alignof (int),
2371 int_array_alignment = _Alignof (int[100]),
2372 char_alignment = _Alignof (char)
2373 };
2374 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2375
2376 // Check _Noreturn.
2377 int _Noreturn does_not_return (void) { for (;;) continue; }
2378
2379 // Check _Static_assert.
2380 struct test_static_assert
2381 {
2382 int x;
2383 _Static_assert (sizeof (int) <= sizeof (long int),
2384 "_Static_assert does not work in struct");
2385 long int y;
2386 };
2387
2388 // Check UTF-8 literals.
2389 #define u8 syntax error!
2390 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2391
2392 // Check duplicate typedefs.
2393 typedef long *long_ptr;
2394 typedef long int *long_ptr;
2395 typedef long_ptr long_ptr;
2396
2397 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2398 struct anonymous
2399 {
2400 union {
2401 struct { int i; int j; };
2402 struct { int k; long int l; } w;
2403 };
2404 int m;
2405 } v1;
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (body of main).
2409 ac_c_conftest_c11_main='
2410 _Static_assert ((offsetof (struct anonymous, i)
2411 == offsetof (struct anonymous, w.k)),
2412 "Anonymous union alignment botch");
2413 v1.i = 2;
2414 v1.w.k = 5;
2415 ok |= v1.i != 5;
2416 '
2417
2418 # Test code for whether the C compiler supports C11 (complete).
2419 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2420 ${ac_c_conftest_c99_globals}
2421 ${ac_c_conftest_c11_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 ${ac_c_conftest_c99_main}
2429 ${ac_c_conftest_c11_main}
2430 return ok;
2431 }
2432 "
2433
2434 # Test code for whether the C compiler supports C99 (complete).
2435 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2436 ${ac_c_conftest_c99_globals}
2437
2438 int
2439 main (int argc, char **argv)
2440 {
2441 int ok = 0;
2442 ${ac_c_conftest_c89_main}
2443 ${ac_c_conftest_c99_main}
2444 return ok;
2445 }
2446 "
2447
2448 # Test code for whether the C compiler supports C89 (complete).
2449 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2450
2451 int
2452 main (int argc, char **argv)
2453 {
2454 int ok = 0;
2455 ${ac_c_conftest_c89_main}
2456 return ok;
2457 }
2458 "
2459
2460 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2461 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2462 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2463 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2464 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2465 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2466 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2467 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2468 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2469
2470 # Auxiliary files required by this configure script.
2471 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2472
2473 # Locations in which to look for auxiliary files.
2474 ac_aux_dir_candidates="${srcdir}/."
2475
2476 # Search for a directory containing all of the required auxiliary files,
2477 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2478 # If we don't find one directory that contains all the files we need,
2479 # we report the set of missing files from the *first* directory in
2480 # $ac_aux_dir_candidates and give up.
2481 ac_missing_aux_files=""
2482 ac_first_candidate=:
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 as_found=false
2486 for as_dir in $ac_aux_dir_candidates
2487 do
2488 IFS=$as_save_IFS
2489 case $as_dir in #(((
2490 '') as_dir=./ ;;
2491 */) ;;
2492 *) as_dir=$as_dir/ ;;
2493 esac
2494 as_found=:
2495
2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2497 ac_aux_dir_found=yes
2498 ac_install_sh=
2499 for ac_aux in $ac_aux_files
2500 do
2501 # As a special case, if "install-sh" is required, that requirement
2502 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2503 # and $ac_install_sh is set appropriately for whichever one is found.
2504 if test x"$ac_aux" = x"install-sh"
2505 then
2506 if test -f "${as_dir}install-sh"; then
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2508 ac_install_sh="${as_dir}install-sh -c"
2509 elif test -f "${as_dir}install.sh"; then
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2511 ac_install_sh="${as_dir}install.sh -c"
2512 elif test -f "${as_dir}shtool"; then
2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2514 ac_install_sh="${as_dir}shtool install -c"
2515 else
2516 ac_aux_dir_found=no
2517 if $ac_first_candidate; then
2518 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2519 else
2520 break
2521 fi
2522 fi
2523 else
2524 if test -f "${as_dir}${ac_aux}"; then
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2526 else
2527 ac_aux_dir_found=no
2528 if $ac_first_candidate; then
2529 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2530 else
2531 break
2532 fi
2533 fi
2534 fi
2535 done
2536 if test "$ac_aux_dir_found" = yes; then
2537 ac_aux_dir="$as_dir"
2538 break
2539 fi
2540 ac_first_candidate=false
2541
2542 as_found=false
2543 done
2544 IFS=$as_save_IFS
2545 if $as_found
2546 then :
2547
2548 else $as_nop
2549 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2550 fi
2551
2552
2553 # These three variables are undocumented and unsupported,
2554 # and are intended to be withdrawn in a future Autoconf release.
2555 # They can cause serious problems if a builder's source tree is in a directory
2556 # whose full name contains unusual characters.
2557 if test -f "${ac_aux_dir}config.guess"; then
2558 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2559 fi
2560 if test -f "${ac_aux_dir}config.sub"; then
2561 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2562 fi
2563 if test -f "$ac_aux_dir/configure"; then
2564 ac_configure="$SHELL ${ac_aux_dir}configure"
2565 fi
2566
2567 # Check that the precious variables saved in the cache have kept the same
2568 # value.
2569 ac_cache_corrupted=false
2570 for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2585 *)
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2598 fi
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2615 fi
2616 done
2617 if $ac_cache_corrupted; then
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2623 and start over" "$LINENO" 5
2624 fi
2625 ## -------------------- ##
2626 ## Main body of script. ##
2627 ## -------------------- ##
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
2636
2637 ac_config_headers="$ac_config_headers config.h"
2638
2639
2640
2641 # Initialize Automake
2642 am__api_version='1.16'
2643
2644
2645
2646 # Find a good install program. We prefer a C program (faster),
2647 # so one script is as good as another. But avoid the broken or
2648 # incompatible versions:
2649 # SysV /etc/install, /usr/sbin/install
2650 # SunOS /usr/etc/install
2651 # IRIX /sbin/install
2652 # AIX /bin/install
2653 # AmigaOS /C/install, which installs bootblocks on floppy discs
2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2657 # OS/2's system install, which has a completely different semantic
2658 # ./install, which can be erroneously created by make from ./install.sh.
2659 # Reject install programs that cannot install multiple files.
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2661 printf %s "checking for a BSD-compatible install... " >&6; }
2662 if test -z "$INSTALL"; then
2663 if test ${ac_cv_path_install+y}
2664 then :
2665 printf %s "(cached) " >&6
2666 else $as_nop
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 case $as_dir in #(((
2672 '') as_dir=./ ;;
2673 */) ;;
2674 *) as_dir=$as_dir/ ;;
2675 esac
2676 # Account for fact that we put trailing slashes in our PATH walk.
2677 case $as_dir in #((
2678 ./ | /[cC]/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2692 :
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
2697 else
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2701 mkdir conftest.dir
2702 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2706 then
2707 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2708 break 3
2709 fi
2710 fi
2711 fi
2712 done
2713 done
2714 ;;
2715 esac
2716
2717 done
2718 IFS=$as_save_IFS
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721
2722 fi
2723 if test ${ac_cv_path_install+y}; then
2724 INSTALL=$ac_cv_path_install
2725 else
2726 # As a last resort, use the slow shell script. Don't cache a
2727 # value for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the value is a relative name.
2730 INSTALL=$ac_install_sh
2731 fi
2732 fi
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734 printf "%s\n" "$INSTALL" >&6; }
2735
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745 printf %s "checking whether build environment is sane... " >&6; }
2746 # Reject unsafe characters in $srcdir or the absolute working directory
2747 # name. Accept space and tab only in the latter.
2748 am_lf='
2749 '
2750 case `pwd` in
2751 *[\\\"\#\$\&\'\`$am_lf]*)
2752 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2753 esac
2754 case $srcdir in
2755 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2756 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2757 esac
2758
2759 # Do 'set' in a subshell so we don't clobber the current shell's
2760 # arguments. Must try -L first in case configure is actually a
2761 # symlink; some systems play weird games with the mod time of symlinks
2762 # (eg FreeBSD returns the mod time of the symlink's containing
2763 # directory).
2764 if (
2765 am_has_slept=no
2766 for am_try in 1 2; do
2767 echo "timestamp, slept: $am_has_slept" > conftest.file
2768 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769 if test "$*" = "X"; then
2770 # -L didn't work.
2771 set X `ls -t "$srcdir/configure" conftest.file`
2772 fi
2773 if test "$*" != "X $srcdir/configure conftest.file" \
2774 && test "$*" != "X conftest.file $srcdir/configure"; then
2775
2776 # If neither matched, then we have a broken ls. This can happen
2777 # if, for instance, CONFIG_SHELL is bash and it inherits a
2778 # broken ls alias from the environment. This has actually
2779 # happened. Such a system could not be considered "sane".
2780 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2781 alias in your environment" "$LINENO" 5
2782 fi
2783 if test "$2" = conftest.file || test $am_try -eq 2; then
2784 break
2785 fi
2786 # Just in case.
2787 sleep 1
2788 am_has_slept=yes
2789 done
2790 test "$2" = conftest.file
2791 )
2792 then
2793 # Ok.
2794 :
2795 else
2796 as_fn_error $? "newly created file is older than distributed files!
2797 Check your system clock" "$LINENO" 5
2798 fi
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800 printf "%s\n" "yes" >&6; }
2801 # If we didn't sleep, we still need to ensure time stamps of config.status and
2802 # generated files are strictly newer.
2803 am_sleep_pid=
2804 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2805 ( sleep 1 ) &
2806 am_sleep_pid=$!
2807 fi
2808
2809 rm -f conftest.file
2810
2811 test "$program_prefix" != NONE &&
2812 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2813 # Use a double $ so make ignores it.
2814 test "$program_suffix" != NONE &&
2815 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2816 # Double any \ or $.
2817 # By default was `s,x,x', remove it if useless.
2818 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2819 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2820
2821
2822 # Expand $ac_aux_dir to an absolute path.
2823 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2824
2825
2826 if test x"${MISSING+set}" != xset; then
2827 MISSING="\${SHELL} '$am_aux_dir/missing'"
2828 fi
2829 # Use eval to expand $SHELL
2830 if eval "$MISSING --is-lightweight"; then
2831 am_missing_run="$MISSING "
2832 else
2833 am_missing_run=
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2835 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2836 fi
2837
2838 if test x"${install_sh+set}" != xset; then
2839 case $am_aux_dir in
2840 *\ * | *\ *)
2841 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2842 *)
2843 install_sh="\${SHELL} $am_aux_dir/install-sh"
2844 esac
2845 fi
2846
2847 # Installed binaries are usually stripped using 'strip' when the user
2848 # run "make install-strip". However 'strip' might not be the right
2849 # tool to use in cross-compilation environments, therefore Automake
2850 # will honor the 'STRIP' environment variable to overrule this program.
2851 if test "$cross_compiling" != no; then
2852 if test -n "$ac_tool_prefix"; then
2853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2854 set dummy ${ac_tool_prefix}strip; ac_word=$2
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 printf %s "checking for $ac_word... " >&6; }
2857 if test ${ac_cv_prog_STRIP+y}
2858 then :
2859 printf %s "(cached) " >&6
2860 else $as_nop
2861 if test -n "$STRIP"; then
2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 case $as_dir in #(((
2869 '') as_dir=./ ;;
2870 */) ;;
2871 *) as_dir=$as_dir/ ;;
2872 esac
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 STRIP=$ac_cv_prog_STRIP
2886 if test -n "$STRIP"; then
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2888 printf "%s\n" "$STRIP" >&6; }
2889 else
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 printf "%s\n" "no" >&6; }
2892 fi
2893
2894
2895 fi
2896 if test -z "$ac_cv_prog_STRIP"; then
2897 ac_ct_STRIP=$STRIP
2898 # Extract the first word of "strip", so it can be a program name with args.
2899 set dummy strip; ac_word=$2
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 printf %s "checking for $ac_word... " >&6; }
2902 if test ${ac_cv_prog_ac_ct_STRIP+y}
2903 then :
2904 printf %s "(cached) " >&6
2905 else $as_nop
2906 if test -n "$ac_ct_STRIP"; then
2907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 case $as_dir in #(((
2914 '') as_dir=./ ;;
2915 */) ;;
2916 *) as_dir=$as_dir/ ;;
2917 esac
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2933 printf "%s\n" "$ac_ct_STRIP" >&6; }
2934 else
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 printf "%s\n" "no" >&6; }
2937 fi
2938
2939 if test "x$ac_ct_STRIP" = x; then
2940 STRIP=":"
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 STRIP=$ac_ct_STRIP
2949 fi
2950 else
2951 STRIP="$ac_cv_prog_STRIP"
2952 fi
2953
2954 fi
2955 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956
2957
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2959 printf %s "checking for a race-free mkdir -p... " >&6; }
2960 if test -z "$MKDIR_P"; then
2961 if test ${ac_cv_path_mkdir+y}
2962 then :
2963 printf %s "(cached) " >&6
2964 else $as_nop
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2967 do
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
2974 for ac_prog in mkdir gmkdir; do
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2977 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2978 'mkdir ('*'coreutils) '* | \
2979 'BusyBox '* | \
2980 'mkdir (fileutils) '4.1*)
2981 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2982 break 3;;
2983 esac
2984 done
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990
2991 test -d ./--version && rmdir ./--version
2992 if test ${ac_cv_path_mkdir+y}; then
2993 MKDIR_P="$ac_cv_path_mkdir -p"
2994 else
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for MKDIR_P within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 MKDIR_P="$ac_install_sh -d"
3000 fi
3001 fi
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3003 printf "%s\n" "$MKDIR_P" >&6; }
3004
3005 for ac_prog in gawk mawk nawk awk
3006 do
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 printf %s "checking for $ac_word... " >&6; }
3011 if test ${ac_cv_prog_AWK+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else $as_nop
3015 if test -n "$AWK"; then
3016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 case $as_dir in #(((
3023 '') as_dir=./ ;;
3024 */) ;;
3025 *) as_dir=$as_dir/ ;;
3026 esac
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_AWK="$ac_prog"
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 AWK=$ac_cv_prog_AWK
3040 if test -n "$AWK"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042 printf "%s\n" "$AWK" >&6; }
3043 else
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3046 fi
3047
3048
3049 test -n "$AWK" && break
3050 done
3051
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3053 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3054 set x ${MAKE-make}
3055 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3056 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3057 then :
3058 printf %s "(cached) " >&6
3059 else $as_nop
3060 cat >conftest.make <<\_ACEOF
3061 SHELL = /bin/sh
3062 all:
3063 @echo '@@@%%%=$(MAKE)=@@@%%%'
3064 _ACEOF
3065 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3067 *@@@%%%=?*=@@@%%%*)
3068 eval ac_cv_prog_make_${ac_make}_set=yes;;
3069 *)
3070 eval ac_cv_prog_make_${ac_make}_set=no;;
3071 esac
3072 rm -f conftest.make
3073 fi
3074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 printf "%s\n" "yes" >&6; }
3077 SET_MAKE=
3078 else
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 printf "%s\n" "no" >&6; }
3081 SET_MAKE="MAKE=${MAKE-make}"
3082 fi
3083
3084 rm -rf .tst 2>/dev/null
3085 mkdir .tst 2>/dev/null
3086 if test -d .tst; then
3087 am__leading_dot=.
3088 else
3089 am__leading_dot=_
3090 fi
3091 rmdir .tst 2>/dev/null
3092
3093 # Check whether --enable-silent-rules was given.
3094 if test ${enable_silent_rules+y}
3095 then :
3096 enableval=$enable_silent_rules;
3097 fi
3098
3099 case $enable_silent_rules in # (((
3100 yes) AM_DEFAULT_VERBOSITY=0;;
3101 no) AM_DEFAULT_VERBOSITY=1;;
3102 *) AM_DEFAULT_VERBOSITY=1;;
3103 esac
3104 am_make=${MAKE-make}
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3106 printf %s "checking whether $am_make supports nested variables... " >&6; }
3107 if test ${am_cv_make_support_nested_variables+y}
3108 then :
3109 printf %s "(cached) " >&6
3110 else $as_nop
3111 if printf "%s\n" 'TRUE=$(BAR$(V))
3112 BAR0=false
3113 BAR1=true
3114 V=1
3115 am__doit:
3116 @$(TRUE)
3117 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3118 am_cv_make_support_nested_variables=yes
3119 else
3120 am_cv_make_support_nested_variables=no
3121 fi
3122 fi
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3124 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3125 if test $am_cv_make_support_nested_variables = yes; then
3126 AM_V='$(V)'
3127 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3128 else
3129 AM_V=$AM_DEFAULT_VERBOSITY
3130 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3131 fi
3132 AM_BACKSLASH='\'
3133
3134 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3135 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3136 # is not polluted with repeated "-I."
3137 am__isrc=' -I$(srcdir)'
3138 # test to see if srcdir already configured
3139 if test -f $srcdir/config.status; then
3140 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3141 fi
3142 fi
3143
3144 # test whether we have cygpath
3145 if test -z "$CYGPATH_W"; then
3146 if (cygpath --version) >/dev/null 2>/dev/null; then
3147 CYGPATH_W='cygpath -w'
3148 else
3149 CYGPATH_W=echo
3150 fi
3151 fi
3152
3153
3154 # Define the identity of the package.
3155 PACKAGE='xf86-input-libinput'
3156 VERSION='1.5.0'
3157
3158
3159 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3160
3161
3162 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3163
3164 # Some tools Automake needs.
3165
3166 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167
3168
3169 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170
3171
3172 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173
3174
3175 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176
3177
3178 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179
3180 # For better backward compatibility. To be removed once Automake 1.9.x
3181 # dies out for good. For more background, see:
3182 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184 mkdir_p='$(MKDIR_P)'
3185
3186 # We need awk for the "check" target (and possibly the TAP driver). The
3187 # system "awk" is bad on some platforms.
3188 # Always define AMTAR for backward compatibility. Yes, it's still used
3189 # in the wild :-( We should find a proper way to deprecate it ...
3190 AMTAR='$${TAR-tar}'
3191
3192
3193 # We'll loop over all known methods to create a tar archive until one works.
3194 _am_tools='gnutar pax cpio none'
3195
3196 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197
3198
3199
3200
3201
3202 # Variables for tags utilities; see am/tags.am
3203 if test -z "$CTAGS"; then
3204 CTAGS=ctags
3205 fi
3206
3207 if test -z "$ETAGS"; then
3208 ETAGS=etags
3209 fi
3210
3211 if test -z "$CSCOPE"; then
3212 CSCOPE=cscope
3213 fi
3214
3215
3216
3217 # POSIX will say in a future version that running "rm -f" with no argument
3218 # is OK; and we want to be able to make that assumption in our Makefile
3219 # recipes. So use an aggressive probe to check that the usage we want is
3220 # actually supported "in the wild" to an acceptable degree.
3221 # See automake bug#10828.
3222 # To make any issue more visible, cause the running configure to be aborted
3223 # by default if the 'rm' program in use doesn't match our expectations; the
3224 # user can still override this though.
3225 if rm -f && rm -fr && rm -rf; then : OK; else
3226 cat >&2 <<'END'
3227 Oops!
3228
3229 Your 'rm' program seems unable to run without file operands specified
3230 on the command line, even when the '-f' option is present. This is contrary
3231 to the behaviour of most rm programs out there, and not conforming with
3232 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3233
3234 Please tell [email protected] about your system, including the value
3235 of your $PATH and any error possibly output before this message. This
3236 can help us improve future automake versions.
3237
3238 END
3239 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3240 echo 'Configuration will proceed anyway, since you have set the' >&2
3241 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3242 echo >&2
3243 else
3244 cat >&2 <<'END'
3245 Aborting the configuration process, to ensure you take notice of the issue.
3246
3247 You can download and install GNU coreutils to get an 'rm' implementation
3248 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3249
3250 If you want to complete the configuration process using your problematic
3251 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3252 to "yes", and re-run configure.
3253
3254 END
3255 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3256 fi
3257 fi
3258
3259
3260 # Initialize libtool
3261 # Check whether --enable-static was given.
3262 if test ${enable_static+y}
3263 then :
3264 enableval=$enable_static; p=${PACKAGE-default}
3265 case $enableval in
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3268 *)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3272 for pkg in $enableval; do
3273 IFS=$lt_save_ifs
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS=$lt_save_ifs
3279 ;;
3280 esac
3281 else $as_nop
3282 enable_static=no
3283 fi
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293 case `pwd` in
3294 *\ * | *\ *)
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3296 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3297 esac
3298
3299
3300
3301 macro_version='2.4.7'
3302 macro_revision='2.4.7'
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317 ltmain=$ac_aux_dir/ltmain.sh
3318
3319
3320
3321 # Make sure we can run config.sub.
3322 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3323 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3324
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3326 printf %s "checking build system type... " >&6; }
3327 if test ${ac_cv_build+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else $as_nop
3331 ac_build_alias=$build_alias
3332 test "x$ac_build_alias" = x &&
3333 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3334 test "x$ac_build_alias" = x &&
3335 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3336 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3337 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3338
3339 fi
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3341 printf "%s\n" "$ac_cv_build" >&6; }
3342 case $ac_cv_build in
3343 *-*-*) ;;
3344 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3345 esac
3346 build=$ac_cv_build
3347 ac_save_IFS=$IFS; IFS='-'
3348 set x $ac_cv_build
3349 shift
3350 build_cpu=$1
3351 build_vendor=$2
3352 shift; shift
3353 # Remember, the first character of IFS is used to create $*,
3354 # except with old shells:
3355 build_os=$*
3356 IFS=$ac_save_IFS
3357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3358
3359
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3361 printf %s "checking host system type... " >&6; }
3362 if test ${ac_cv_host+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else $as_nop
3366 if test "x$host_alias" = x; then
3367 ac_cv_host=$ac_cv_build
3368 else
3369 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3370 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3371 fi
3372
3373 fi
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3375 printf "%s\n" "$ac_cv_host" >&6; }
3376 case $ac_cv_host in
3377 *-*-*) ;;
3378 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3379 esac
3380 host=$ac_cv_host
3381 ac_save_IFS=$IFS; IFS='-'
3382 set x $ac_cv_host
3383 shift
3384 host_cpu=$1
3385 host_vendor=$2
3386 shift; shift
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3389 host_os=$*
3390 IFS=$ac_save_IFS
3391 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3392
3393
3394 # Backslashify metacharacters that are still active within
3395 # double-quoted strings.
3396 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3397
3398 # Same as above, but do not quote variable references.
3399 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3400
3401 # Sed substitution to delay expansion of an escaped shell variable in a
3402 # double_quote_subst'ed string.
3403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3404
3405 # Sed substitution to delay expansion of an escaped single quote.
3406 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3407
3408 # Sed substitution to avoid accidental globbing in evaled expressions
3409 no_glob_subst='s/\*/\\\*/g'
3410
3411 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3412 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3413 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3414
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3416 printf %s "checking how to print strings... " >&6; }
3417 # Test print first, because it will be a builtin if present.
3418 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3419 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3420 ECHO='print -r --'
3421 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3422 ECHO='printf %s\n'
3423 else
3424 # Use this function as a fallback that always works.
3425 func_fallback_echo ()
3426 {
3427 eval 'cat <<_LTECHO_EOF
3428 $1
3429 _LTECHO_EOF'
3430 }
3431 ECHO='func_fallback_echo'
3432 fi
3433
3434 # func_echo_all arg...
3435 # Invoke $ECHO with all args, space-separated.
3436 func_echo_all ()
3437 {
3438 $ECHO ""
3439 }
3440
3441 case $ECHO in
3442 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3443 printf "%s\n" "printf" >&6; } ;;
3444 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3445 printf "%s\n" "print -r" >&6; } ;;
3446 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3447 printf "%s\n" "cat" >&6; } ;;
3448 esac
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472 DEPDIR="${am__leading_dot}deps"
3473
3474 ac_config_commands="$ac_config_commands depfiles"
3475
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3477 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3478 cat > confinc.mk << 'END'
3479 am__doit:
3480 @echo this is the am__doit target >confinc.out
3481 .PHONY: am__doit
3482 END
3483 am__include="#"
3484 am__quote=
3485 # BSD make does it like this.
3486 echo '.include "confinc.mk" # ignored' > confmf.BSD
3487 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3488 echo 'include confinc.mk # ignored' > confmf.GNU
3489 _am_result=no
3490 for s in GNU BSD; do
3491 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3492 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 case $?:`cat confinc.out 2>/dev/null` in #(
3497 '0:this is the am__doit target') :
3498 case $s in #(
3499 BSD) :
3500 am__include='.include' am__quote='"' ;; #(
3501 *) :
3502 am__include='include' am__quote='' ;;
3503 esac ;; #(
3504 *) :
3505 ;;
3506 esac
3507 if test "$am__include" != "#"; then
3508 _am_result="yes ($s style)"
3509 break
3510 fi
3511 done
3512 rm -f confinc.* confmf.*
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3514 printf "%s\n" "${_am_result}" >&6; }
3515
3516 # Check whether --enable-dependency-tracking was given.
3517 if test ${enable_dependency_tracking+y}
3518 then :
3519 enableval=$enable_dependency_tracking;
3520 fi
3521
3522 if test "x$enable_dependency_tracking" != xno; then
3523 am_depcomp="$ac_aux_dir/depcomp"
3524 AMDEPBACKSLASH='\'
3525 am__nodep='_no'
3526 fi
3527 if test "x$enable_dependency_tracking" != xno; then
3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530 else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3533 fi
3534
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_CC+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else $as_nop
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 printf "%s\n" "$CC" >&6; }
3578 else
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 printf "%s\n" "no" >&6; }
3581 fi
3582
3583
3584 fi
3585 if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc; ac_word=$2
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 printf %s "checking for $ac_word... " >&6; }
3591 if test ${ac_cv_prog_ac_ct_CC+y}
3592 then :
3593 printf %s "(cached) " >&6
3594 else $as_nop
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 case $as_dir in #(((
3603 '') as_dir=./ ;;
3604 */) ;;
3605 *) as_dir=$as_dir/ ;;
3606 esac
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="gcc"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 printf "%s\n" "$ac_ct_CC" >&6; }
3623 else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3626 fi
3627
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 CC=$ac_ct_CC
3638 fi
3639 else
3640 CC="$ac_cv_prog_CC"
3641 fi
3642
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else $as_nop
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="${ac_tool_prefix}cc"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 fi
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else $as_nop
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 ac_prog_rejected=no
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3714 ac_prog_rejected=yes
3715 continue
3716 fi
3717 ac_cv_prog_CC="cc"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 if test $ac_prog_rejected = yes; then
3726 # We found a bogon in the path, so make sure we never use it.
3727 set dummy $ac_cv_prog_CC
3728 shift
3729 if test $# != 0; then
3730 # We chose a different compiler from the bogus one.
3731 # However, it has the same basename, so the bogon will be chosen
3732 # first if we set CC to just the basename; use the full file name.
3733 shift
3734 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3735 fi
3736 fi
3737 fi
3738 fi
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 printf "%s\n" "$CC" >&6; }
3743 else
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 printf "%s\n" "no" >&6; }
3746 fi
3747
3748
3749 fi
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in cl.exe
3753 do
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_CC+y}
3759 then :
3760 printf %s "(cached) " >&6
3761 else $as_nop
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 case $as_dir in #(((
3770 '') as_dir=./ ;;
3771 */) ;;
3772 *) as_dir=$as_dir/ ;;
3773 esac
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 printf "%s\n" "$CC" >&6; }
3790 else
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3793 fi
3794
3795
3796 test -n "$CC" && break
3797 done
3798 fi
3799 if test -z "$CC"; then
3800 ac_ct_CC=$CC
3801 for ac_prog in cl.exe
3802 do
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_ac_ct_CC+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="$ac_prog"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 printf "%s\n" "$ac_ct_CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844
3845 test -n "$ac_ct_CC" && break
3846 done
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3858 fi
3859 fi
3860
3861 fi
3862 if test -z "$CC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}clang; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_CC+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else $as_nop
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 case $as_dir in #(((
3880 '') as_dir=./ ;;
3881 */) ;;
3882 *) as_dir=$as_dir/ ;;
3883 esac
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC="${ac_tool_prefix}clang"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 printf "%s\n" "$CC" >&6; }
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 fi
3904
3905
3906 fi
3907 if test -z "$ac_cv_prog_CC"; then
3908 ac_ct_CC=$CC
3909 # Extract the first word of "clang", so it can be a program name with args.
3910 set dummy clang; ac_word=$2
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 printf %s "checking for $ac_word... " >&6; }
3913 if test ${ac_cv_prog_ac_ct_CC+y}
3914 then :
3915 printf %s "(cached) " >&6
3916 else $as_nop
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 case $as_dir in #(((
3925 '') as_dir=./ ;;
3926 */) ;;
3927 *) as_dir=$as_dir/ ;;
3928 esac
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC="clang"
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3948 fi
3949
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3960 fi
3961 else
3962 CC="$ac_cv_prog_CC"
3963 fi
3964
3965 fi
3966
3967
3968 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "no acceptable C compiler found in \$PATH
3971 See \`config.log' for more details" "$LINENO" 5; }
3972
3973 # Provide some information about the compiler.
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3975 set X $ac_compile
3976 ac_compiler=$2
3977 for ac_option in --version -v -V -qversion -version; do
3978 { { ac_try="$ac_compiler $ac_option >&5"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3986 ac_status=$?
3987 if test -s conftest.err; then
3988 sed '10a\
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err >conftest.er1
3991 cat conftest.er1 >&5
3992 fi
3993 rm -f conftest.er1 conftest.err
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 done
3997
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 int
4002 main (void)
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 ac_clean_files_save=$ac_clean_files
4010 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4013 # of exeext.
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 printf %s "checking whether the C compiler works... " >&6; }
4016 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4017
4018 # The possible output files:
4019 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4020
4021 ac_rmfiles=
4022 for ac_file in $ac_files
4023 do
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4027 esac
4028 done
4029 rm -f $ac_rmfiles
4030
4031 if { { ac_try="$ac_link_default"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 printf "%s\n" "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4039 ac_status=$?
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042 then :
4043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4046 # so that the user can short-circuit this test for compilers unknown to
4047 # Autoconf.
4048 for ac_file in $ac_files ''
4049 do
4050 test -f "$ac_file" || continue
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4053 ;;
4054 [ab].out )
4055 # We found the default executable, but exeext='' is most
4056 # certainly right.
4057 break;;
4058 *.* )
4059 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4060 then :; else
4061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 fi
4063 # We set ac_cv_exeext here because the later test for it is not
4064 # safe: cross compilers may not add the suffix if given an `-o'
4065 # argument, so we may need to know it at that point already.
4066 # Even if this section looks crufty: it has the advantage of
4067 # actually working.
4068 break;;
4069 * )
4070 break;;
4071 esac
4072 done
4073 test "$ac_cv_exeext" = no && ac_cv_exeext=
4074
4075 else $as_nop
4076 ac_file=''
4077 fi
4078 if test -z "$ac_file"
4079 then :
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 printf "%s\n" "no" >&6; }
4082 printf "%s\n" "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error 77 "C compiler cannot create executables
4088 See \`config.log' for more details" "$LINENO" 5; }
4089 else $as_nop
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 printf "%s\n" "yes" >&6; }
4092 fi
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 printf %s "checking for C compiler default output file name... " >&6; }
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4096 printf "%s\n" "$ac_file" >&6; }
4097 ac_exeext=$ac_cv_exeext
4098
4099 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4100 ac_clean_files=$ac_clean_files_save
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4102 printf %s "checking for suffix of executables... " >&6; }
4103 if { { ac_try="$ac_link"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 printf "%s\n" "$ac_try_echo"; } >&5
4110 (eval "$ac_link") 2>&5
4111 ac_status=$?
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 then :
4115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4117 # work properly (i.e., refer to `conftest.exe'), while it won't with
4118 # `rm'.
4119 for ac_file in conftest.exe conftest conftest.*; do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4124 break;;
4125 * ) break;;
4126 esac
4127 done
4128 else $as_nop
4129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4132 See \`config.log' for more details" "$LINENO" 5; }
4133 fi
4134 rm -f conftest conftest$ac_cv_exeext
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4136 printf "%s\n" "$ac_cv_exeext" >&6; }
4137
4138 rm -f conftest.$ac_ext
4139 EXEEXT=$ac_cv_exeext
4140 ac_exeext=$EXEEXT
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <stdio.h>
4144 int
4145 main (void)
4146 {
4147 FILE *f = fopen ("conftest.out", "w");
4148 return ferror (f) || fclose (f) != 0;
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 ac_clean_files="$ac_clean_files conftest.out"
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4158 printf %s "checking whether we are cross compiling... " >&6; }
4159 if test "$cross_compiling" != yes; then
4160 { { ac_try="$ac_link"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 printf "%s\n" "$ac_try_echo"; } >&5
4167 (eval "$ac_link") 2>&5
4168 ac_status=$?
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4170 test $ac_status = 0; }
4171 if { ac_try='./conftest$ac_cv_exeext'
4172 { { case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 printf "%s\n" "$ac_try_echo"; } >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }; }; then
4182 cross_compiling=no
4183 else
4184 if test "$cross_compiling" = maybe; then
4185 cross_compiling=yes
4186 else
4187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error 77 "cannot run C compiled programs.
4190 If you meant to cross compile, use \`--host'.
4191 See \`config.log' for more details" "$LINENO" 5; }
4192 fi
4193 fi
4194 fi
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4196 printf "%s\n" "$cross_compiling" >&6; }
4197
4198 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4199 ac_clean_files=$ac_clean_files_save
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4201 printf %s "checking for suffix of object files... " >&6; }
4202 if test ${ac_cv_objext+y}
4203 then :
4204 printf %s "(cached) " >&6
4205 else $as_nop
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208
4209 int
4210 main (void)
4211 {
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 rm -f conftest.o conftest.obj
4218 if { { ac_try="$ac_compile"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 printf "%s\n" "$ac_try_echo"; } >&5
4225 (eval "$ac_compile") 2>&5
4226 ac_status=$?
4227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4229 then :
4230 for ac_file in conftest.o conftest.obj conftest.*; do
4231 test -f "$ac_file" || continue;
4232 case $ac_file in
4233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4235 break;;
4236 esac
4237 done
4238 else $as_nop
4239 printf "%s\n" "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "cannot compute suffix of object files: cannot compile
4245 See \`config.log' for more details" "$LINENO" 5; }
4246 fi
4247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4248 fi
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4250 printf "%s\n" "$ac_cv_objext" >&6; }
4251 OBJEXT=$ac_cv_objext
4252 ac_objext=$OBJEXT
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4254 printf %s "checking whether the compiler supports GNU C... " >&6; }
4255 if test ${ac_cv_c_compiler_gnu+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main (void)
4264 {
4265 #ifndef __GNUC__
4266 choke me
4267 #endif
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"
4274 then :
4275 ac_compiler_gnu=yes
4276 else $as_nop
4277 ac_compiler_gnu=no
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4281
4282 fi
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4284 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287 if test $ac_compiler_gnu = yes; then
4288 GCC=yes
4289 else
4290 GCC=
4291 fi
4292 ac_test_CFLAGS=${CFLAGS+y}
4293 ac_save_CFLAGS=$CFLAGS
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4295 printf %s "checking whether $CC accepts -g... " >&6; }
4296 if test ${ac_cv_prog_cc_g+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else $as_nop
4300 ac_save_c_werror_flag=$ac_c_werror_flag
4301 ac_c_werror_flag=yes
4302 ac_cv_prog_cc_g=no
4303 CFLAGS="-g"
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 if ac_fn_c_try_compile "$LINENO"
4316 then :
4317 ac_cv_prog_cc_g=yes
4318 else $as_nop
4319 CFLAGS=""
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322
4323 int
4324 main (void)
4325 {
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"
4332 then :
4333
4334 else $as_nop
4335 ac_c_werror_flag=$ac_save_c_werror_flag
4336 CFLAGS="-g"
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339
4340 int
4341 main (void)
4342 {
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_c_try_compile "$LINENO"
4349 then :
4350 ac_cv_prog_cc_g=yes
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 ac_c_werror_flag=$ac_save_c_werror_flag
4358 fi
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4361 if test $ac_test_CFLAGS; then
4362 CFLAGS=$ac_save_CFLAGS
4363 elif test $ac_cv_prog_cc_g = yes; then
4364 if test "$GCC" = yes; then
4365 CFLAGS="-g -O2"
4366 else
4367 CFLAGS="-g"
4368 fi
4369 else
4370 if test "$GCC" = yes; then
4371 CFLAGS="-O2"
4372 else
4373 CFLAGS=
4374 fi
4375 fi
4376 ac_prog_cc_stdc=no
4377 if test x$ac_prog_cc_stdc = xno
4378 then :
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4380 printf %s "checking for $CC option to enable C11 features... " >&6; }
4381 if test ${ac_cv_prog_cc_c11+y}
4382 then :
4383 printf %s "(cached) " >&6
4384 else $as_nop
4385 ac_cv_prog_cc_c11=no
4386 ac_save_CC=$CC
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 $ac_c_conftest_c11_program
4390 _ACEOF
4391 for ac_arg in '' -std=gnu11
4392 do
4393 CC="$ac_save_CC $ac_arg"
4394 if ac_fn_c_try_compile "$LINENO"
4395 then :
4396 ac_cv_prog_cc_c11=$ac_arg
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.beam
4399 test "x$ac_cv_prog_cc_c11" != "xno" && break
4400 done
4401 rm -f conftest.$ac_ext
4402 CC=$ac_save_CC
4403 fi
4404
4405 if test "x$ac_cv_prog_cc_c11" = xno
4406 then :
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4408 printf "%s\n" "unsupported" >&6; }
4409 else $as_nop
4410 if test "x$ac_cv_prog_cc_c11" = x
4411 then :
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4413 printf "%s\n" "none needed" >&6; }
4414 else $as_nop
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4416 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4417 CC="$CC $ac_cv_prog_cc_c11"
4418 fi
4419 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4420 ac_prog_cc_stdc=c11
4421 fi
4422 fi
4423 if test x$ac_prog_cc_stdc = xno
4424 then :
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4426 printf %s "checking for $CC option to enable C99 features... " >&6; }
4427 if test ${ac_cv_prog_cc_c99+y}
4428 then :
4429 printf %s "(cached) " >&6
4430 else $as_nop
4431 ac_cv_prog_cc_c99=no
4432 ac_save_CC=$CC
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 $ac_c_conftest_c99_program
4436 _ACEOF
4437 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4438 do
4439 CC="$ac_save_CC $ac_arg"
4440 if ac_fn_c_try_compile "$LINENO"
4441 then :
4442 ac_cv_prog_cc_c99=$ac_arg
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.beam
4445 test "x$ac_cv_prog_cc_c99" != "xno" && break
4446 done
4447 rm -f conftest.$ac_ext
4448 CC=$ac_save_CC
4449 fi
4450
4451 if test "x$ac_cv_prog_cc_c99" = xno
4452 then :
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4454 printf "%s\n" "unsupported" >&6; }
4455 else $as_nop
4456 if test "x$ac_cv_prog_cc_c99" = x
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 printf "%s\n" "none needed" >&6; }
4460 else $as_nop
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4462 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4463 CC="$CC $ac_cv_prog_cc_c99"
4464 fi
4465 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4466 ac_prog_cc_stdc=c99
4467 fi
4468 fi
4469 if test x$ac_prog_cc_stdc = xno
4470 then :
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4472 printf %s "checking for $CC option to enable C89 features... " >&6; }
4473 if test ${ac_cv_prog_cc_c89+y}
4474 then :
4475 printf %s "(cached) " >&6
4476 else $as_nop
4477 ac_cv_prog_cc_c89=no
4478 ac_save_CC=$CC
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 $ac_c_conftest_c89_program
4482 _ACEOF
4483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4484 do
4485 CC="$ac_save_CC $ac_arg"
4486 if ac_fn_c_try_compile "$LINENO"
4487 then :
4488 ac_cv_prog_cc_c89=$ac_arg
4489 fi
4490 rm -f core conftest.err conftest.$ac_objext conftest.beam
4491 test "x$ac_cv_prog_cc_c89" != "xno" && break
4492 done
4493 rm -f conftest.$ac_ext
4494 CC=$ac_save_CC
4495 fi
4496
4497 if test "x$ac_cv_prog_cc_c89" = xno
4498 then :
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4500 printf "%s\n" "unsupported" >&6; }
4501 else $as_nop
4502 if test "x$ac_cv_prog_cc_c89" = x
4503 then :
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 printf "%s\n" "none needed" >&6; }
4506 else $as_nop
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4508 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4509 CC="$CC $ac_cv_prog_cc_c89"
4510 fi
4511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4512 ac_prog_cc_stdc=c89
4513 fi
4514 fi
4515
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4529 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4530 if test ${am_cv_prog_cc_c_o+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else $as_nop
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main (void)
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 # Make sure it works both with $CC and with simple cc.
4546 # Following AC_PROG_CC_C_O, we do the test twice because some
4547 # compilers refuse to overwrite an existing .o file with -o,
4548 # though they will create one.
4549 am_cv_prog_cc_c_o=yes
4550 for am_i in 1 2; do
4551 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4552 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } \
4556 && test -f conftest2.$ac_objext; then
4557 : OK
4558 else
4559 am_cv_prog_cc_c_o=no
4560 break
4561 fi
4562 done
4563 rm -f core conftest*
4564 unset am_i
4565 fi
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4567 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4568 if test "$am_cv_prog_cc_c_o" != yes; then
4569 # Losing compiler, so override with the script.
4570 # FIXME: It is wrong to rewrite CC.
4571 # But if we don't then we get into trouble of one sort or another.
4572 # A longer-term fix would be to have automake use am__CC in this case,
4573 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4574 CC="$am_aux_dir/compile $CC"
4575 fi
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583 depcc="$CC" am_compiler_list=
4584
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4586 printf %s "checking dependency style of $depcc... " >&6; }
4587 if test ${am_cv_CC_dependencies_compiler_type+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else $as_nop
4591 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4592 # We make a subdir and do the tests there. Otherwise we can end up
4593 # making bogus files that we don't know about and never remove. For
4594 # instance it was reported that on HP-UX the gcc test will end up
4595 # making a dummy file named 'D' -- because '-MD' means "put the output
4596 # in D".
4597 rm -rf conftest.dir
4598 mkdir conftest.dir
4599 # Copy depcomp to subdir because otherwise we won't find it if we're
4600 # using a relative directory.
4601 cp "$am_depcomp" conftest.dir
4602 cd conftest.dir
4603 # We will build objects and dependencies in a subdirectory because
4604 # it helps to detect inapplicable dependency modes. For instance
4605 # both Tru64's cc and ICC support -MD to output dependencies as a
4606 # side effect of compilation, but ICC will put the dependencies in
4607 # the current directory while Tru64 will put them in the object
4608 # directory.
4609 mkdir sub
4610
4611 am_cv_CC_dependencies_compiler_type=none
4612 if test "$am_compiler_list" = ""; then
4613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4614 fi
4615 am__universal=false
4616 case " $depcc " in #(
4617 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4618 esac
4619
4620 for depmode in $am_compiler_list; do
4621 # Setup a source with many dependencies, because some compilers
4622 # like to wrap large dependency lists on column 80 (with \), and
4623 # we should not choose a depcomp mode which is confused by this.
4624 #
4625 # We need to recreate these files for each test, as the compiler may
4626 # overwrite some of them when testing with obscure command lines.
4627 # This happens at least with the AIX C compiler.
4628 : > sub/conftest.c
4629 for i in 1 2 3 4 5 6; do
4630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4631 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4632 # Solaris 10 /bin/sh.
4633 echo '/* dummy */' > sub/conftst$i.h
4634 done
4635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4636
4637 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4638 # mode. It turns out that the SunPro C++ compiler does not properly
4639 # handle '-M -o', and we need to detect this. Also, some Intel
4640 # versions had trouble with output in subdirs.
4641 am__obj=sub/conftest.${OBJEXT-o}
4642 am__minus_obj="-o $am__obj"
4643 case $depmode in
4644 gcc)
4645 # This depmode causes a compiler race in universal mode.
4646 test "$am__universal" = false || continue
4647 ;;
4648 nosideeffect)
4649 # After this tag, mechanisms are not by side-effect, so they'll
4650 # only be used when explicitly requested.
4651 if test "x$enable_dependency_tracking" = xyes; then
4652 continue
4653 else
4654 break
4655 fi
4656 ;;
4657 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4658 # This compiler won't grok '-c -o', but also, the minuso test has
4659 # not run yet. These depmodes are late enough in the game, and
4660 # so weak that their functioning should not be impacted.
4661 am__obj=conftest.${OBJEXT-o}
4662 am__minus_obj=
4663 ;;
4664 none) break ;;
4665 esac
4666 if depmode=$depmode \
4667 source=sub/conftest.c object=$am__obj \
4668 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4669 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4670 >/dev/null 2>conftest.err &&
4671 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4673 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4675 # icc doesn't choke on unknown options, it will just issue warnings
4676 # or remarks (even with -Werror). So we grep stderr for any message
4677 # that says an option was ignored or not supported.
4678 # When given -MP, icc 7.0 and 7.1 complain thusly:
4679 # icc: Command line warning: ignoring option '-M'; no argument required
4680 # The diagnosis changed in icc 8.0:
4681 # icc: Command line remark: option '-MP' not supported
4682 if (grep 'ignoring option' conftest.err ||
4683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4684 am_cv_CC_dependencies_compiler_type=$depmode
4685 break
4686 fi
4687 fi
4688 done
4689
4690 cd ..
4691 rm -rf conftest.dir
4692 else
4693 am_cv_CC_dependencies_compiler_type=none
4694 fi
4695
4696 fi
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4698 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4700
4701 if
4702 test "x$enable_dependency_tracking" != xno \
4703 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4704 am__fastdepCC_TRUE=
4705 am__fastdepCC_FALSE='#'
4706 else
4707 am__fastdepCC_TRUE='#'
4708 am__fastdepCC_FALSE=
4709 fi
4710
4711
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713 printf %s "checking for a sed that does not truncate output... " >&6; }
4714 if test ${ac_cv_path_SED+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else $as_nop
4718 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4719 for ac_i in 1 2 3 4 5 6 7; do
4720 ac_script="$ac_script$as_nl$ac_script"
4721 done
4722 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4723 { ac_script=; unset ac_script;}
4724 if test -z "$SED"; then
4725 ac_path_SED_found=false
4726 # Loop through the user's path and test for each of PROGNAME-LIST
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730 IFS=$as_save_IFS
4731 case $as_dir in #(((
4732 '') as_dir=./ ;;
4733 */) ;;
4734 *) as_dir=$as_dir/ ;;
4735 esac
4736 for ac_prog in sed gsed
4737 do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4740 as_fn_executable_p "$ac_path_SED" || continue
4741 # Check for GNU ac_path_SED and select it if it is found.
4742 # Check for GNU $ac_path_SED
4743 case `"$ac_path_SED" --version 2>&1` in
4744 *GNU*)
4745 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4746 *)
4747 ac_count=0
4748 printf %s 0123456789 >"conftest.in"
4749 while :
4750 do
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 printf "%s\n" '' >> "conftest.nl"
4755 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_SED_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_SED="$ac_path_SED"
4761 ac_path_SED_max=$ac_count
4762 fi
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4765 done
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 esac
4768
4769 $ac_path_SED_found && break 3
4770 done
4771 done
4772 done
4773 IFS=$as_save_IFS
4774 if test -z "$ac_cv_path_SED"; then
4775 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4776 fi
4777 else
4778 ac_cv_path_SED=$SED
4779 fi
4780
4781 fi
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4783 printf "%s\n" "$ac_cv_path_SED" >&6; }
4784 SED="$ac_cv_path_SED"
4785 rm -f conftest.sed
4786
4787 test -z "$SED" && SED=sed
4788 Xsed="$SED -e 1s/^X//"
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4801 printf %s "checking for grep that handles long lines and -e... " >&6; }
4802 if test ${ac_cv_path_GREP+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else $as_nop
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4811 do
4812 IFS=$as_save_IFS
4813 case $as_dir in #(((
4814 '') as_dir=./ ;;
4815 */) ;;
4816 *) as_dir=$as_dir/ ;;
4817 esac
4818 for ac_prog in grep ggrep
4819 do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_GREP" || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824 # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4828 *)
4829 ac_count=0
4830 printf %s 0123456789 >"conftest.in"
4831 while :
4832 do
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 printf "%s\n" 'GREP' >> "conftest.nl"
4837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_GREP="$ac_path_GREP"
4843 ac_path_GREP_max=$ac_count
4844 fi
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4850
4851 $ac_path_GREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_GREP"; then
4857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 fi
4859 else
4860 ac_cv_path_GREP=$GREP
4861 fi
4862
4863 fi
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4867
4868
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 printf %s "checking for egrep... " >&6; }
4871 if test ${ac_cv_path_EGREP+y}
4872 then :
4873 printf %s "(cached) " >&6
4874 else $as_nop
4875 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4876 then ac_cv_path_EGREP="$GREP -E"
4877 else
4878 if test -z "$EGREP"; then
4879 ac_path_EGREP_found=false
4880 # Loop through the user's path and test for each of PROGNAME-LIST
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4883 do
4884 IFS=$as_save_IFS
4885 case $as_dir in #(((
4886 '') as_dir=./ ;;
4887 */) ;;
4888 *) as_dir=$as_dir/ ;;
4889 esac
4890 for ac_prog in egrep
4891 do
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4894 as_fn_executable_p "$ac_path_EGREP" || continue
4895 # Check for GNU ac_path_EGREP and select it if it is found.
4896 # Check for GNU $ac_path_EGREP
4897 case `"$ac_path_EGREP" --version 2>&1` in
4898 *GNU*)
4899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4900 *)
4901 ac_count=0
4902 printf %s 0123456789 >"conftest.in"
4903 while :
4904 do
4905 cat "conftest.in" "conftest.in" >"conftest.tmp"
4906 mv "conftest.tmp" "conftest.in"
4907 cp "conftest.in" "conftest.nl"
4908 printf "%s\n" 'EGREP' >> "conftest.nl"
4909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4911 as_fn_arith $ac_count + 1 && ac_count=$as_val
4912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4913 # Best one so far, save it but keep looking for a better one
4914 ac_cv_path_EGREP="$ac_path_EGREP"
4915 ac_path_EGREP_max=$ac_count
4916 fi
4917 # 10*(2^10) chars as input seems more than enough
4918 test $ac_count -gt 10 && break
4919 done
4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 esac
4922
4923 $ac_path_EGREP_found && break 3
4924 done
4925 done
4926 done
4927 IFS=$as_save_IFS
4928 if test -z "$ac_cv_path_EGREP"; then
4929 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930 fi
4931 else
4932 ac_cv_path_EGREP=$EGREP
4933 fi
4934
4935 fi
4936 fi
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4938 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4939 EGREP="$ac_cv_path_EGREP"
4940
4941
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4943 printf %s "checking for fgrep... " >&6; }
4944 if test ${ac_cv_path_FGREP+y}
4945 then :
4946 printf %s "(cached) " >&6
4947 else $as_nop
4948 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4949 then ac_cv_path_FGREP="$GREP -F"
4950 else
4951 if test -z "$FGREP"; then
4952 ac_path_FGREP_found=false
4953 # Loop through the user's path and test for each of PROGNAME-LIST
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 do
4957 IFS=$as_save_IFS
4958 case $as_dir in #(((
4959 '') as_dir=./ ;;
4960 */) ;;
4961 *) as_dir=$as_dir/ ;;
4962 esac
4963 for ac_prog in fgrep
4964 do
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4967 as_fn_executable_p "$ac_path_FGREP" || continue
4968 # Check for GNU ac_path_FGREP and select it if it is found.
4969 # Check for GNU $ac_path_FGREP
4970 case `"$ac_path_FGREP" --version 2>&1` in
4971 *GNU*)
4972 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4973 *)
4974 ac_count=0
4975 printf %s 0123456789 >"conftest.in"
4976 while :
4977 do
4978 cat "conftest.in" "conftest.in" >"conftest.tmp"
4979 mv "conftest.tmp" "conftest.in"
4980 cp "conftest.in" "conftest.nl"
4981 printf "%s\n" 'FGREP' >> "conftest.nl"
4982 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4984 as_fn_arith $ac_count + 1 && ac_count=$as_val
4985 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4986 # Best one so far, save it but keep looking for a better one
4987 ac_cv_path_FGREP="$ac_path_FGREP"
4988 ac_path_FGREP_max=$ac_count
4989 fi
4990 # 10*(2^10) chars as input seems more than enough
4991 test $ac_count -gt 10 && break
4992 done
4993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4994 esac
4995
4996 $ac_path_FGREP_found && break 3
4997 done
4998 done
4999 done
5000 IFS=$as_save_IFS
5001 if test -z "$ac_cv_path_FGREP"; then
5002 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003 fi
5004 else
5005 ac_cv_path_FGREP=$FGREP
5006 fi
5007
5008 fi
5009 fi
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5011 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5012 FGREP="$ac_cv_path_FGREP"
5013
5014
5015 test -z "$GREP" && GREP=grep
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 # Check whether --with-gnu-ld was given.
5036 if test ${with_gnu_ld+y}
5037 then :
5038 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5039 else $as_nop
5040 with_gnu_ld=no
5041 fi
5042
5043 ac_prog=ld
5044 if test yes = "$GCC"; then
5045 # Check if gcc -print-prog-name=ld gives a path.
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5047 printf %s "checking for ld used by $CC... " >&6; }
5048 case $host in
5049 *-*-mingw*)
5050 # gcc leaves a trailing carriage return, which upsets mingw
5051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5052 *)
5053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5054 esac
5055 case $ac_prog in
5056 # Accept absolute paths.
5057 [\\/]* | ?:[\\/]*)
5058 re_direlt='/[^/][^/]*/\.\./'
5059 # Canonicalize the pathname of ld
5060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5063 done
5064 test -z "$LD" && LD=$ac_prog
5065 ;;
5066 "")
5067 # If it fails, then pretend we aren't using GCC.
5068 ac_prog=ld
5069 ;;
5070 *)
5071 # If it is relative, then search for the first ld in PATH.
5072 with_gnu_ld=unknown
5073 ;;
5074 esac
5075 elif test yes = "$with_gnu_ld"; then
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5077 printf %s "checking for GNU ld... " >&6; }
5078 else
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5080 printf %s "checking for non-GNU ld... " >&6; }
5081 fi
5082 if test ${lt_cv_path_LD+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else $as_nop
5086 if test -z "$LD"; then
5087 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5088 for ac_dir in $PATH; do
5089 IFS=$lt_save_ifs
5090 test -z "$ac_dir" && ac_dir=.
5091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5092 lt_cv_path_LD=$ac_dir/$ac_prog
5093 # Check to see if the program is GNU ld. I'd rather use --version,
5094 # but apparently some variants of GNU ld only accept -v.
5095 # Break only if it was the GNU/non-GNU ld that we prefer.
5096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5097 *GNU* | *'with BFD'*)
5098 test no != "$with_gnu_ld" && break
5099 ;;
5100 *)
5101 test yes != "$with_gnu_ld" && break
5102 ;;
5103 esac
5104 fi
5105 done
5106 IFS=$lt_save_ifs
5107 else
5108 lt_cv_path_LD=$LD # Let the user override the test with a path.
5109 fi
5110 fi
5111
5112 LD=$lt_cv_path_LD
5113 if test -n "$LD"; then
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5115 printf "%s\n" "$LD" >&6; }
5116 else
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 printf "%s\n" "no" >&6; }
5119 fi
5120 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5122 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5123 if test ${lt_cv_prog_gnu_ld+y}
5124 then :
5125 printf %s "(cached) " >&6
5126 else $as_nop
5127 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5128 case `$LD -v 2>&1 </dev/null` in
5129 *GNU* | *'with BFD'*)
5130 lt_cv_prog_gnu_ld=yes
5131 ;;
5132 *)
5133 lt_cv_prog_gnu_ld=no
5134 ;;
5135 esac
5136 fi
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5138 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5139 with_gnu_ld=$lt_cv_prog_gnu_ld
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5150 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5151 if test ${lt_cv_path_NM+y}
5152 then :
5153 printf %s "(cached) " >&6
5154 else $as_nop
5155 if test -n "$NM"; then
5156 # Let the user override the test.
5157 lt_cv_path_NM=$NM
5158 else
5159 lt_nm_to_check=${ac_tool_prefix}nm
5160 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5161 lt_nm_to_check="$lt_nm_to_check nm"
5162 fi
5163 for lt_tmp_nm in $lt_nm_to_check; do
5164 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5165 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5166 IFS=$lt_save_ifs
5167 test -z "$ac_dir" && ac_dir=.
5168 tmp_nm=$ac_dir/$lt_tmp_nm
5169 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5170 # Check to see if the nm accepts a BSD-compat flag.
5171 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5172 # nm: unknown option "B" ignored
5173 # Tru64's nm complains that /dev/null is an invalid object file
5174 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5175 case $build_os in
5176 mingw*) lt_bad_file=conftest.nm/nofile ;;
5177 *) lt_bad_file=/dev/null ;;
5178 esac
5179 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5180 *$lt_bad_file* | *'Invalid file or object type'*)
5181 lt_cv_path_NM="$tmp_nm -B"
5182 break 2
5183 ;;
5184 *)
5185 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5186 */dev/null*)
5187 lt_cv_path_NM="$tmp_nm -p"
5188 break 2
5189 ;;
5190 *)
5191 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5192 continue # so that we can try to find one that supports BSD flags
5193 ;;
5194 esac
5195 ;;
5196 esac
5197 fi
5198 done
5199 IFS=$lt_save_ifs
5200 done
5201 : ${lt_cv_path_NM=no}
5202 fi
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5205 printf "%s\n" "$lt_cv_path_NM" >&6; }
5206 if test no != "$lt_cv_path_NM"; then
5207 NM=$lt_cv_path_NM
5208 else
5209 # Didn't find any BSD compatible name lister, look for dumpbin.
5210 if test -n "$DUMPBIN"; then :
5211 # Let the user override the test.
5212 else
5213 if test -n "$ac_tool_prefix"; then
5214 for ac_prog in dumpbin "link -dump"
5215 do
5216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 printf %s "checking for $ac_word... " >&6; }
5220 if test ${ac_cv_prog_DUMPBIN+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else $as_nop
5224 if test -n "$DUMPBIN"; then
5225 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 case $as_dir in #(((
5232 '') as_dir=./ ;;
5233 */) ;;
5234 *) as_dir=$as_dir/ ;;
5235 esac
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 DUMPBIN=$ac_cv_prog_DUMPBIN
5249 if test -n "$DUMPBIN"; then
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5251 printf "%s\n" "$DUMPBIN" >&6; }
5252 else
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 printf "%s\n" "no" >&6; }
5255 fi
5256
5257
5258 test -n "$DUMPBIN" && break
5259 done
5260 fi
5261 if test -z "$DUMPBIN"; then
5262 ac_ct_DUMPBIN=$DUMPBIN
5263 for ac_prog in dumpbin "link -dump"
5264 do
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 printf %s "checking for $ac_word... " >&6; }
5269 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else $as_nop
5273 if test -n "$ac_ct_DUMPBIN"; then
5274 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 case $as_dir in #(((
5281 '') as_dir=./ ;;
5282 */) ;;
5283 *) as_dir=$as_dir/ ;;
5284 esac
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5298 if test -n "$ac_ct_DUMPBIN"; then
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5300 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5301 else
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 printf "%s\n" "no" >&6; }
5304 fi
5305
5306
5307 test -n "$ac_ct_DUMPBIN" && break
5308 done
5309
5310 if test "x$ac_ct_DUMPBIN" = x; then
5311 DUMPBIN=":"
5312 else
5313 case $cross_compiling:$ac_tool_warned in
5314 yes:)
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 DUMPBIN=$ac_ct_DUMPBIN
5320 fi
5321 fi
5322
5323 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5324 *COFF*)
5325 DUMPBIN="$DUMPBIN -symbols -headers"
5326 ;;
5327 *)
5328 DUMPBIN=:
5329 ;;
5330 esac
5331 fi
5332
5333 if test : != "$DUMPBIN"; then
5334 NM=$DUMPBIN
5335 fi
5336 fi
5337 test -z "$NM" && NM=nm
5338
5339
5340
5341
5342
5343
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5345 printf %s "checking the name lister ($NM) interface... " >&6; }
5346 if test ${lt_cv_nm_interface+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else $as_nop
5350 lt_cv_nm_interface="BSD nm"
5351 echo "int some_variable = 0;" > conftest.$ac_ext
5352 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5353 (eval "$ac_compile" 2>conftest.err)
5354 cat conftest.err >&5
5355 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5356 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5357 cat conftest.err >&5
5358 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5359 cat conftest.out >&5
5360 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5361 lt_cv_nm_interface="MS dumpbin"
5362 fi
5363 rm -f conftest*
5364 fi
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5366 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5367
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5369 printf %s "checking whether ln -s works... " >&6; }
5370 LN_S=$as_ln_s
5371 if test "$LN_S" = "ln -s"; then
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 printf "%s\n" "yes" >&6; }
5374 else
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5376 printf "%s\n" "no, using $LN_S" >&6; }
5377 fi
5378
5379 # find the maximum length of command line arguments
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5381 printf %s "checking the maximum length of command line arguments... " >&6; }
5382 if test ${lt_cv_sys_max_cmd_len+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else $as_nop
5386 i=0
5387 teststring=ABCD
5388
5389 case $build_os in
5390 msdosdjgpp*)
5391 # On DJGPP, this test can blow up pretty badly due to problems in libc
5392 # (any single argument exceeding 2000 bytes causes a buffer overrun
5393 # during glob expansion). Even if it were fixed, the result of this
5394 # check would be larger than it should be.
5395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5396 ;;
5397
5398 gnu*)
5399 # Under GNU Hurd, this test is not required because there is
5400 # no limit to the length of command line arguments.
5401 # Libtool will interpret -1 as no limit whatsoever
5402 lt_cv_sys_max_cmd_len=-1;
5403 ;;
5404
5405 cygwin* | mingw* | cegcc*)
5406 # On Win9x/ME, this test blows up -- it succeeds, but takes
5407 # about 5 minutes as the teststring grows exponentially.
5408 # Worse, since 9x/ME are not pre-emptively multitasking,
5409 # you end up with a "frozen" computer, even though with patience
5410 # the test eventually succeeds (with a max line length of 256k).
5411 # Instead, let's just punt: use the minimum linelength reported by
5412 # all of the supported platforms: 8192 (on NT/2K/XP).
5413 lt_cv_sys_max_cmd_len=8192;
5414 ;;
5415
5416 mint*)
5417 # On MiNT this can take a long time and run out of memory.
5418 lt_cv_sys_max_cmd_len=8192;
5419 ;;
5420
5421 amigaos*)
5422 # On AmigaOS with pdksh, this test takes hours, literally.
5423 # So we just punt and use a minimum line length of 8192.
5424 lt_cv_sys_max_cmd_len=8192;
5425 ;;
5426
5427 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5428 # This has been around since 386BSD, at least. Likely further.
5429 if test -x /sbin/sysctl; then
5430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5431 elif test -x /usr/sbin/sysctl; then
5432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5433 else
5434 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5435 fi
5436 # And add a safety zone
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5439 ;;
5440
5441 interix*)
5442 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5443 lt_cv_sys_max_cmd_len=196608
5444 ;;
5445
5446 os2*)
5447 # The test takes a long time on OS/2.
5448 lt_cv_sys_max_cmd_len=8192
5449 ;;
5450
5451 osf*)
5452 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5453 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5454 # nice to cause kernel panics so lets avoid the loop below.
5455 # First set a reasonable default.
5456 lt_cv_sys_max_cmd_len=16384
5457 #
5458 if test -x /sbin/sysconfig; then
5459 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5460 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5461 esac
5462 fi
5463 ;;
5464 sco3.2v5*)
5465 lt_cv_sys_max_cmd_len=102400
5466 ;;
5467 sysv5* | sco5v6* | sysv4.2uw2*)
5468 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5469 if test -n "$kargmax"; then
5470 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5471 else
5472 lt_cv_sys_max_cmd_len=32768
5473 fi
5474 ;;
5475 *)
5476 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5477 if test -n "$lt_cv_sys_max_cmd_len" && \
5478 test undefined != "$lt_cv_sys_max_cmd_len"; then
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5481 else
5482 # Make teststring a little bigger before we do anything with it.
5483 # a 1K string should be a reasonable start.
5484 for i in 1 2 3 4 5 6 7 8; do
5485 teststring=$teststring$teststring
5486 done
5487 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5488 # If test is not a shell built-in, we'll probably end up computing a
5489 # maximum length that is only half of the actual maximum length, but
5490 # we can't tell.
5491 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5492 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5493 test 17 != "$i" # 1/2 MB should be enough
5494 do
5495 i=`expr $i + 1`
5496 teststring=$teststring$teststring
5497 done
5498 # Only check the string length outside the loop.
5499 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5500 teststring=
5501 # Add a significant safety factor because C++ compilers can tack on
5502 # massive amounts of additional arguments before passing them to the
5503 # linker. It appears as though 1/2 is a usable value.
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5505 fi
5506 ;;
5507 esac
5508
5509 fi
5510
5511 if test -n "$lt_cv_sys_max_cmd_len"; then
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5513 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5514 else
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5516 printf "%s\n" "none" >&6; }
5517 fi
5518 max_cmd_len=$lt_cv_sys_max_cmd_len
5519
5520
5521
5522
5523
5524
5525 : ${CP="cp -f"}
5526 : ${MV="mv -f"}
5527 : ${RM="rm -f"}
5528
5529 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5530 lt_unset=unset
5531 else
5532 lt_unset=false
5533 fi
5534
5535
5536
5537
5538
5539 # test EBCDIC or ASCII
5540 case `echo X|tr X '\101'` in
5541 A) # ASCII based system
5542 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5543 lt_SP2NL='tr \040 \012'
5544 lt_NL2SP='tr \015\012 \040\040'
5545 ;;
5546 *) # EBCDIC based system
5547 lt_SP2NL='tr \100 \n'
5548 lt_NL2SP='tr \r\n \100\100'
5549 ;;
5550 esac
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5561 printf %s "checking how to convert $build file names to $host format... " >&6; }
5562 if test ${lt_cv_to_host_file_cmd+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else $as_nop
5566 case $host in
5567 *-*-mingw* )
5568 case $build in
5569 *-*-mingw* ) # actually msys
5570 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5571 ;;
5572 *-*-cygwin* )
5573 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5574 ;;
5575 * ) # otherwise, assume *nix
5576 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5577 ;;
5578 esac
5579 ;;
5580 *-*-cygwin* )
5581 case $build in
5582 *-*-mingw* ) # actually msys
5583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5584 ;;
5585 *-*-cygwin* )
5586 lt_cv_to_host_file_cmd=func_convert_file_noop
5587 ;;
5588 * ) # otherwise, assume *nix
5589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5590 ;;
5591 esac
5592 ;;
5593 * ) # unhandled hosts (and "normal" native builds)
5594 lt_cv_to_host_file_cmd=func_convert_file_noop
5595 ;;
5596 esac
5597
5598 fi
5599
5600 to_host_file_cmd=$lt_cv_to_host_file_cmd
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5602 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5603
5604
5605
5606
5607
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5609 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5610 if test ${lt_cv_to_tool_file_cmd+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else $as_nop
5614 #assume ordinary cross tools, or native build.
5615 lt_cv_to_tool_file_cmd=func_convert_file_noop
5616 case $host in
5617 *-*-mingw* )
5618 case $build in
5619 *-*-mingw* ) # actually msys
5620 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5621 ;;
5622 esac
5623 ;;
5624 esac
5625
5626 fi
5627
5628 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5630 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5631
5632
5633
5634
5635
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5637 printf %s "checking for $LD option to reload object files... " >&6; }
5638 if test ${lt_cv_ld_reload_flag+y}
5639 then :
5640 printf %s "(cached) " >&6
5641 else $as_nop
5642 lt_cv_ld_reload_flag='-r'
5643 fi
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5645 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5646 reload_flag=$lt_cv_ld_reload_flag
5647 case $reload_flag in
5648 "" | " "*) ;;
5649 *) reload_flag=" $reload_flag" ;;
5650 esac
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652 case $host_os in
5653 cygwin* | mingw* | pw32* | cegcc*)
5654 if test yes != "$GCC"; then
5655 reload_cmds=false
5656 fi
5657 ;;
5658 darwin*)
5659 if test yes = "$GCC"; then
5660 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5661 else
5662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5663 fi
5664 ;;
5665 esac
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}file; ac_word=$2
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 printf %s "checking for $ac_word... " >&6; }
5680 if test ${ac_cv_prog_FILECMD+y}
5681 then :
5682 printf %s "(cached) " >&6
5683 else $as_nop
5684 if test -n "$FILECMD"; then
5685 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 case $as_dir in #(((
5692 '') as_dir=./ ;;
5693 */) ;;
5694 *) as_dir=$as_dir/ ;;
5695 esac
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702 done
5703 done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 FILECMD=$ac_cv_prog_FILECMD
5709 if test -n "$FILECMD"; then
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5711 printf "%s\n" "$FILECMD" >&6; }
5712 else
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 printf "%s\n" "no" >&6; }
5715 fi
5716
5717
5718 fi
5719 if test -z "$ac_cv_prog_FILECMD"; then
5720 ac_ct_FILECMD=$FILECMD
5721 # Extract the first word of "file", so it can be a program name with args.
5722 set dummy file; ac_word=$2
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 printf %s "checking for $ac_word... " >&6; }
5725 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729 if test -n "$ac_ct_FILECMD"; then
5730 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735 IFS=$as_save_IFS
5736 case $as_dir in #(((
5737 '') as_dir=./ ;;
5738 */) ;;
5739 *) as_dir=$as_dir/ ;;
5740 esac
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5743 ac_cv_prog_ac_ct_FILECMD="file"
5744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5754 if test -n "$ac_ct_FILECMD"; then
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5756 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5757 else
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 printf "%s\n" "no" >&6; }
5760 fi
5761
5762 if test "x$ac_ct_FILECMD" = x; then
5763 FILECMD=":"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned=yes ;;
5770 esac
5771 FILECMD=$ac_ct_FILECMD
5772 fi
5773 else
5774 FILECMD="$ac_cv_prog_FILECMD"
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783 if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 printf %s "checking for $ac_word... " >&6; }
5788 if test ${ac_cv_prog_OBJDUMP+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else $as_nop
5792 if test -n "$OBJDUMP"; then
5793 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 case $as_dir in #(((
5800 '') as_dir=./ ;;
5801 */) ;;
5802 *) as_dir=$as_dir/ ;;
5803 esac
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 OBJDUMP=$ac_cv_prog_OBJDUMP
5817 if test -n "$OBJDUMP"; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5819 printf "%s\n" "$OBJDUMP" >&6; }
5820 else
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
5823 fi
5824
5825
5826 fi
5827 if test -z "$ac_cv_prog_OBJDUMP"; then
5828 ac_ct_OBJDUMP=$OBJDUMP
5829 # Extract the first word of "objdump", so it can be a program name with args.
5830 set dummy objdump; ac_word=$2
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 printf %s "checking for $ac_word... " >&6; }
5833 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else $as_nop
5837 if test -n "$ac_ct_OBJDUMP"; then
5838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 case $as_dir in #(((
5845 '') as_dir=./ ;;
5846 */) ;;
5847 *) as_dir=$as_dir/ ;;
5848 esac
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5862 if test -n "$ac_ct_OBJDUMP"; then
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5864 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5865 else
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 printf "%s\n" "no" >&6; }
5868 fi
5869
5870 if test "x$ac_ct_OBJDUMP" = x; then
5871 OBJDUMP="false"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5878 esac
5879 OBJDUMP=$ac_ct_OBJDUMP
5880 fi
5881 else
5882 OBJDUMP="$ac_cv_prog_OBJDUMP"
5883 fi
5884
5885 test -z "$OBJDUMP" && OBJDUMP=objdump
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5896 printf %s "checking how to recognize dependent libraries... " >&6; }
5897 if test ${lt_cv_deplibs_check_method+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else $as_nop
5901 lt_cv_file_magic_cmd='$MAGIC_CMD'
5902 lt_cv_file_magic_test_file=
5903 lt_cv_deplibs_check_method='unknown'
5904 # Need to set the preceding variable on all platforms that support
5905 # interlibrary dependencies.
5906 # 'none' -- dependencies not supported.
5907 # 'unknown' -- same as none, but documents that we really don't know.
5908 # 'pass_all' -- all dependencies passed with no checks.
5909 # 'test_compile' -- check by making test program.
5910 # 'file_magic [[regex]]' -- check by looking for files in library path
5911 # that responds to the $file_magic_cmd with a given extended regex.
5912 # If you have 'file' or equivalent on your system and you're not sure
5913 # whether 'pass_all' will *always* work, you probably want this one.
5914
5915 case $host_os in
5916 aix[4-9]*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 beos*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 bsdi[45]*)
5925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5926 lt_cv_file_magic_cmd='$FILECMD -L'
5927 lt_cv_file_magic_test_file=/shlib/libc.so
5928 ;;
5929
5930 cygwin*)
5931 # func_win32_libid is a shell function defined in ltmain.sh
5932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5933 lt_cv_file_magic_cmd='func_win32_libid'
5934 ;;
5935
5936 mingw* | pw32*)
5937 # Base MSYS/MinGW do not provide the 'file' command needed by
5938 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5939 # unless we find 'file', for example because we are cross-compiling.
5940 if ( file / ) >/dev/null 2>&1; then
5941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5942 lt_cv_file_magic_cmd='func_win32_libid'
5943 else
5944 # Keep this pattern in sync with the one in func_win32_libid.
5945 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5946 lt_cv_file_magic_cmd='$OBJDUMP -f'
5947 fi
5948 ;;
5949
5950 cegcc*)
5951 # use the weaker test based on 'objdump'. See mingw*.
5952 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5953 lt_cv_file_magic_cmd='$OBJDUMP -f'
5954 ;;
5955
5956 darwin* | rhapsody*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 freebsd* | dragonfly* | midnightbsd*)
5961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5962 case $host_cpu in
5963 i*86 )
5964 # Not sure whether the presence of OpenBSD here was a mistake.
5965 # Let's accept both of them until this is cleared up.
5966 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5967 lt_cv_file_magic_cmd=$FILECMD
5968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5969 ;;
5970 esac
5971 else
5972 lt_cv_deplibs_check_method=pass_all
5973 fi
5974 ;;
5975
5976 haiku*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 hpux10.20* | hpux11*)
5981 lt_cv_file_magic_cmd=$FILECMD
5982 case $host_cpu in
5983 ia64*)
5984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5986 ;;
5987 hppa*64*)
5988 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]'
5989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5990 ;;
5991 *)
5992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5994 ;;
5995 esac
5996 ;;
5997
5998 interix[3-9]*)
5999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6001 ;;
6002
6003 irix5* | irix6* | nonstopux*)
6004 case $LD in
6005 *-32|*"-32 ") libmagic=32-bit;;
6006 *-n32|*"-n32 ") libmagic=N32;;
6007 *-64|*"-64 ") libmagic=64-bit;;
6008 *) libmagic=never-match;;
6009 esac
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013 # This must be glibc/ELF.
6014 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 netbsd*)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021 else
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6023 fi
6024 ;;
6025
6026 newos6*)
6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6028 lt_cv_file_magic_cmd=$FILECMD
6029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6030 ;;
6031
6032 *nto* | *qnx*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 openbsd* | bitrig*)
6037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6039 else
6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6041 fi
6042 ;;
6043
6044 osf3* | osf4* | osf5*)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048 rdos*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052 solaris*)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6057 lt_cv_deplibs_check_method=pass_all
6058 ;;
6059
6060 sysv4 | sysv4.3*)
6061 case $host_vendor in
6062 motorola)
6063 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]'
6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6065 ;;
6066 ncr)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069 sequent)
6070 lt_cv_file_magic_cmd='/bin/file'
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6072 ;;
6073 sni)
6074 lt_cv_file_magic_cmd='/bin/file'
6075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6076 lt_cv_file_magic_test_file=/lib/libc.so
6077 ;;
6078 siemens)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081 pc)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084 esac
6085 ;;
6086
6087 tpf*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090 os2*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093 esac
6094
6095 fi
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6097 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6098
6099 file_magic_glob=
6100 want_nocaseglob=no
6101 if test "$build" = "$host"; then
6102 case $host_os in
6103 mingw* | pw32*)
6104 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6105 want_nocaseglob=yes
6106 else
6107 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6108 fi
6109 ;;
6110 esac
6111 fi
6112
6113 file_magic_cmd=$lt_cv_file_magic_cmd
6114 deplibs_check_method=$lt_cv_deplibs_check_method
6115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 printf %s "checking for $ac_word... " >&6; }
6143 if test ${ac_cv_prog_DLLTOOL+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else $as_nop
6147 if test -n "$DLLTOOL"; then
6148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153 IFS=$as_save_IFS
6154 case $as_dir in #(((
6155 '') as_dir=./ ;;
6156 */) ;;
6157 *) as_dir=$as_dir/ ;;
6158 esac
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 DLLTOOL=$ac_cv_prog_DLLTOOL
6172 if test -n "$DLLTOOL"; then
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6174 printf "%s\n" "$DLLTOOL" >&6; }
6175 else
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 printf "%s\n" "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_DLLTOOL"; then
6183 ac_ct_DLLTOOL=$DLLTOOL
6184 # Extract the first word of "dlltool", so it can be a program name with args.
6185 set dummy dlltool; ac_word=$2
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 printf %s "checking for $ac_word... " >&6; }
6188 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else $as_nop
6192 if test -n "$ac_ct_DLLTOOL"; then
6193 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 case $as_dir in #(((
6200 '') as_dir=./ ;;
6201 */) ;;
6202 *) as_dir=$as_dir/ ;;
6203 esac
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6217 if test -n "$ac_ct_DLLTOOL"; then
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6219 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6220 else
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 printf "%s\n" "no" >&6; }
6223 fi
6224
6225 if test "x$ac_ct_DLLTOOL" = x; then
6226 DLLTOOL="false"
6227 else
6228 case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234 DLLTOOL=$ac_ct_DLLTOOL
6235 fi
6236 else
6237 DLLTOOL="$ac_cv_prog_DLLTOOL"
6238 fi
6239
6240 test -z "$DLLTOOL" && DLLTOOL=dlltool
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6252 printf %s "checking how to associate runtime and link libraries... " >&6; }
6253 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6254 then :
6255 printf %s "(cached) " >&6
6256 else $as_nop
6257 lt_cv_sharedlib_from_linklib_cmd='unknown'
6258
6259 case $host_os in
6260 cygwin* | mingw* | pw32* | cegcc*)
6261 # two different shell functions defined in ltmain.sh;
6262 # decide which one to use based on capabilities of $DLLTOOL
6263 case `$DLLTOOL --help 2>&1` in
6264 *--identify-strict*)
6265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6266 ;;
6267 *)
6268 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6269 ;;
6270 esac
6271 ;;
6272 *)
6273 # fallback: assume linklib IS sharedlib
6274 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6275 ;;
6276 esac
6277
6278 fi
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6280 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6281 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6282 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6283
6284
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292 for ac_prog in ar
6293 do
6294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 printf %s "checking for $ac_word... " >&6; }
6298 if test ${ac_cv_prog_AR+y}
6299 then :
6300 printf %s "(cached) " >&6
6301 else $as_nop
6302 if test -n "$AR"; then
6303 ac_cv_prog_AR="$AR" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 case $as_dir in #(((
6310 '') as_dir=./ ;;
6311 */) ;;
6312 *) as_dir=$as_dir/ ;;
6313 esac
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 AR=$ac_cv_prog_AR
6327 if test -n "$AR"; then
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6329 printf "%s\n" "$AR" >&6; }
6330 else
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 printf "%s\n" "no" >&6; }
6333 fi
6334
6335
6336 test -n "$AR" && break
6337 done
6338 fi
6339 if test -z "$AR"; then
6340 ac_ct_AR=$AR
6341 for ac_prog in ar
6342 do
6343 # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 printf %s "checking for $ac_word... " >&6; }
6347 if test ${ac_cv_prog_ac_ct_AR+y}
6348 then :
6349 printf %s "(cached) " >&6
6350 else $as_nop
6351 if test -n "$ac_ct_AR"; then
6352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 case $as_dir in #(((
6359 '') as_dir=./ ;;
6360 */) ;;
6361 *) as_dir=$as_dir/ ;;
6362 esac
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_ac_ct_AR="$ac_prog"
6366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6367 break 2
6368 fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6376 if test -n "$ac_ct_AR"; then
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6378 printf "%s\n" "$ac_ct_AR" >&6; }
6379 else
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 printf "%s\n" "no" >&6; }
6382 fi
6383
6384
6385 test -n "$ac_ct_AR" && break
6386 done
6387
6388 if test "x$ac_ct_AR" = x; then
6389 AR="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 AR=$ac_ct_AR
6398 fi
6399 fi
6400
6401 : ${AR=ar}
6402
6403
6404
6405
6406
6407
6408 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6409 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6410 # higher priority because thats what people were doing historically (setting
6411 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6412 # variable obsoleted/removed.
6413
6414 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6415 lt_ar_flags=$AR_FLAGS
6416
6417
6418
6419
6420
6421
6422 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6423 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6424
6425
6426
6427
6428
6429
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6431 printf %s "checking for archiver @FILE support... " >&6; }
6432 if test ${lt_cv_ar_at_file+y}
6433 then :
6434 printf %s "(cached) " >&6
6435 else $as_nop
6436 lt_cv_ar_at_file=no
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439
6440 int
6441 main (void)
6442 {
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"
6449 then :
6450 echo conftest.$ac_objext > conftest.lst
6451 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6453 (eval $lt_ar_try) 2>&5
6454 ac_status=$?
6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; }
6457 if test 0 -eq "$ac_status"; then
6458 # Ensure the archiver fails upon bogus file names.
6459 rm -f conftest.$ac_objext libconftest.a
6460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6461 (eval $lt_ar_try) 2>&5
6462 ac_status=$?
6463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }
6465 if test 0 -ne "$ac_status"; then
6466 lt_cv_ar_at_file=@
6467 fi
6468 fi
6469 rm -f conftest.* libconftest.a
6470
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473
6474 fi
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6476 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6477
6478 if test no = "$lt_cv_ar_at_file"; then
6479 archiver_list_spec=
6480 else
6481 archiver_list_spec=$lt_cv_ar_at_file
6482 fi
6483
6484
6485
6486
6487
6488
6489
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}strip; ac_word=$2
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 printf %s "checking for $ac_word... " >&6; }
6495 if test ${ac_cv_prog_STRIP+y}
6496 then :
6497 printf %s "(cached) " >&6
6498 else $as_nop
6499 if test -n "$STRIP"; then
6500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505 IFS=$as_save_IFS
6506 case $as_dir in #(((
6507 '') as_dir=./ ;;
6508 */) ;;
6509 *) as_dir=$as_dir/ ;;
6510 esac
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 STRIP=$ac_cv_prog_STRIP
6524 if test -n "$STRIP"; then
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6526 printf "%s\n" "$STRIP" >&6; }
6527 else
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 printf "%s\n" "no" >&6; }
6530 fi
6531
6532
6533 fi
6534 if test -z "$ac_cv_prog_STRIP"; then
6535 ac_ct_STRIP=$STRIP
6536 # Extract the first word of "strip", so it can be a program name with args.
6537 set dummy strip; ac_word=$2
6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 printf %s "checking for $ac_word... " >&6; }
6540 if test ${ac_cv_prog_ac_ct_STRIP+y}
6541 then :
6542 printf %s "(cached) " >&6
6543 else $as_nop
6544 if test -n "$ac_ct_STRIP"; then
6545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 case $as_dir in #(((
6552 '') as_dir=./ ;;
6553 */) ;;
6554 *) as_dir=$as_dir/ ;;
6555 esac
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_ac_ct_STRIP="strip"
6559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6569 if test -n "$ac_ct_STRIP"; then
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6571 printf "%s\n" "$ac_ct_STRIP" >&6; }
6572 else
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 printf "%s\n" "no" >&6; }
6575 fi
6576
6577 if test "x$ac_ct_STRIP" = x; then
6578 STRIP=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586 STRIP=$ac_ct_STRIP
6587 fi
6588 else
6589 STRIP="$ac_cv_prog_STRIP"
6590 fi
6591
6592 test -z "$STRIP" && STRIP=:
6593
6594
6595
6596
6597
6598
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 printf %s "checking for $ac_word... " >&6; }
6604 if test ${ac_cv_prog_RANLIB+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else $as_nop
6608 if test -n "$RANLIB"; then
6609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 case $as_dir in #(((
6616 '') as_dir=./ ;;
6617 */) ;;
6618 *) as_dir=$as_dir/ ;;
6619 esac
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 RANLIB=$ac_cv_prog_RANLIB
6633 if test -n "$RANLIB"; then
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6635 printf "%s\n" "$RANLIB" >&6; }
6636 else
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 printf "%s\n" "no" >&6; }
6639 fi
6640
6641
6642 fi
6643 if test -z "$ac_cv_prog_RANLIB"; then
6644 ac_ct_RANLIB=$RANLIB
6645 # Extract the first word of "ranlib", so it can be a program name with args.
6646 set dummy ranlib; ac_word=$2
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 printf %s "checking for $ac_word... " >&6; }
6649 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6650 then :
6651 printf %s "(cached) " >&6
6652 else $as_nop
6653 if test -n "$ac_ct_RANLIB"; then
6654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 case $as_dir in #(((
6661 '') as_dir=./ ;;
6662 */) ;;
6663 *) as_dir=$as_dir/ ;;
6664 esac
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_ac_ct_RANLIB="ranlib"
6668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678 if test -n "$ac_ct_RANLIB"; then
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6680 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6681 else
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 printf "%s\n" "no" >&6; }
6684 fi
6685
6686 if test "x$ac_ct_RANLIB" = x; then
6687 RANLIB=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695 RANLIB=$ac_ct_RANLIB
6696 fi
6697 else
6698 RANLIB="$ac_cv_prog_RANLIB"
6699 fi
6700
6701 test -z "$RANLIB" && RANLIB=:
6702
6703
6704
6705
6706
6707
6708 # Determine commands to create old-style static archives.
6709 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6710 old_postinstall_cmds='chmod 644 $oldlib'
6711 old_postuninstall_cmds=
6712
6713 if test -n "$RANLIB"; then
6714 case $host_os in
6715 bitrig* | openbsd*)
6716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6717 ;;
6718 *)
6719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6720 ;;
6721 esac
6722 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6723 fi
6724
6725 case $host_os in
6726 darwin*)
6727 lock_old_archive_extraction=yes ;;
6728 *)
6729 lock_old_archive_extraction=no ;;
6730 esac
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 # If no C compiler was specified, use CC.
6771 LTCC=${LTCC-"$CC"}
6772
6773 # If no C compiler flags were specified, use CFLAGS.
6774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6775
6776 # Allow CC to be a program name with arguments.
6777 compiler=$CC
6778
6779
6780 # Check for command to grab the raw symbol name followed by C symbol from nm.
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6782 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6783 if test ${lt_cv_sys_global_symbol_pipe+y}
6784 then :
6785 printf %s "(cached) " >&6
6786 else $as_nop
6787
6788 # These are sane defaults that work on at least a few old systems.
6789 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6790
6791 # Character class describing NM global symbol codes.
6792 symcode='[BCDEGRST]'
6793
6794 # Regexp to match symbols that can be accessed directly from C.
6795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6796
6797 # Define system-specific variables.
6798 case $host_os in
6799 aix*)
6800 symcode='[BCDT]'
6801 ;;
6802 cygwin* | mingw* | pw32* | cegcc*)
6803 symcode='[ABCDGISTW]'
6804 ;;
6805 hpux*)
6806 if test ia64 = "$host_cpu"; then
6807 symcode='[ABCDEGRST]'
6808 fi
6809 ;;
6810 irix* | nonstopux*)
6811 symcode='[BCDEGRST]'
6812 ;;
6813 osf*)
6814 symcode='[BCDEGQRST]'
6815 ;;
6816 solaris*)
6817 symcode='[BDRT]'
6818 ;;
6819 sco3.2v5*)
6820 symcode='[DT]'
6821 ;;
6822 sysv4.2uw2*)
6823 symcode='[DT]'
6824 ;;
6825 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6826 symcode='[ABDT]'
6827 ;;
6828 sysv4)
6829 symcode='[DFNSTU]'
6830 ;;
6831 esac
6832
6833 # If we're using GNU nm, then use its standard symbol codes.
6834 case `$NM -V 2>&1` in
6835 *GNU* | *'with BFD'*)
6836 symcode='[ABCDGIRSTW]' ;;
6837 esac
6838
6839 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6840 # Gets list of data symbols to import.
6841 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6842 # Adjust the below global symbol transforms to fixup imported variables.
6843 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6844 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6845 lt_c_name_lib_hook="\
6846 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6847 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6848 else
6849 # Disable hooks by default.
6850 lt_cv_sys_global_symbol_to_import=
6851 lt_cdecl_hook=
6852 lt_c_name_hook=
6853 lt_c_name_lib_hook=
6854 fi
6855
6856 # Transform an extracted symbol line into a proper C declaration.
6857 # Some systems (esp. on ia64) link data and code symbols differently,
6858 # so use this general approach.
6859 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6860 $lt_cdecl_hook\
6861 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6862 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6863
6864 # Transform an extracted symbol line into symbol name and symbol address
6865 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6866 $lt_c_name_hook\
6867 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6868 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6869
6870 # Transform an extracted symbol line into symbol name with lib prefix and
6871 # symbol address.
6872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6873 $lt_c_name_lib_hook\
6874 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6875 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6876 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6877
6878 # Handle CRLF in mingw tool chain
6879 opt_cr=
6880 case $build_os in
6881 mingw*)
6882 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6883 ;;
6884 esac
6885
6886 # Try without a prefix underscore, then with it.
6887 for ac_symprfx in "" "_"; do
6888
6889 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6890 symxfrm="\\1 $ac_symprfx\\2 \\2"
6891
6892 # Write the raw and C identifiers.
6893 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6894 # Fake it for dumpbin and say T for any non-static function,
6895 # D for any global variable and I for any imported variable.
6896 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6897 # which start with @ or ?.
6898 lt_cv_sys_global_symbol_pipe="$AWK '"\
6899 " {last_section=section; section=\$ 3};"\
6900 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6901 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6902 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6903 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6904 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6905 " \$ 0!~/External *\|/{next};"\
6906 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6907 " {if(hide[section]) next};"\
6908 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6909 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6910 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6911 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6912 " ' prfx=^$ac_symprfx"
6913 else
6914 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6915 fi
6916 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6917
6918 # Check to see that the pipe works correctly.
6919 pipe_works=no
6920
6921 rm -f conftest*
6922 cat > conftest.$ac_ext <<_LT_EOF
6923 #ifdef __cplusplus
6924 extern "C" {
6925 #endif
6926 char nm_test_var;
6927 void nm_test_func(void);
6928 void nm_test_func(void){}
6929 #ifdef __cplusplus
6930 }
6931 #endif
6932 int main(){nm_test_var='a';nm_test_func();return(0);}
6933 _LT_EOF
6934
6935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936 (eval $ac_compile) 2>&5
6937 ac_status=$?
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939 test $ac_status = 0; }; then
6940 # Now try to grab the symbols.
6941 nlist=conftest.nm
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6943 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6944 ac_status=$?
6945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; } && test -s "$nlist"; then
6947 # Try sorting and uniquifying the output.
6948 if sort "$nlist" | uniq > "$nlist"T; then
6949 mv -f "$nlist"T "$nlist"
6950 else
6951 rm -f "$nlist"T
6952 fi
6953
6954 # Make sure that we snagged all the symbols we need.
6955 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6956 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6957 cat <<_LT_EOF > conftest.$ac_ext
6958 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6959 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6960 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6961 relocations are performed -- see ld's documentation on pseudo-relocs. */
6962 # define LT_DLSYM_CONST
6963 #elif defined __osf__
6964 /* This system does not cope well with relocations in const data. */
6965 # define LT_DLSYM_CONST
6966 #else
6967 # define LT_DLSYM_CONST const
6968 #endif
6969
6970 #ifdef __cplusplus
6971 extern "C" {
6972 #endif
6973
6974 _LT_EOF
6975 # Now generate the symbol file.
6976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6977
6978 cat <<_LT_EOF >> conftest.$ac_ext
6979
6980 /* The mapping between symbol names and symbols. */
6981 LT_DLSYM_CONST struct {
6982 const char *name;
6983 void *address;
6984 }
6985 lt__PROGRAM__LTX_preloaded_symbols[] =
6986 {
6987 { "@PROGRAM@", (void *) 0 },
6988 _LT_EOF
6989 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6990 cat <<\_LT_EOF >> conftest.$ac_ext
6991 {0, (void *) 0}
6992 };
6993
6994 /* This works around a problem in FreeBSD linker */
6995 #ifdef FREEBSD_WORKAROUND
6996 static const void *lt_preloaded_setup() {
6997 return lt__PROGRAM__LTX_preloaded_symbols;
6998 }
6999 #endif
7000
7001 #ifdef __cplusplus
7002 }
7003 #endif
7004 _LT_EOF
7005 # Now try linking the two files.
7006 mv conftest.$ac_objext conftstm.$ac_objext
7007 lt_globsym_save_LIBS=$LIBS
7008 lt_globsym_save_CFLAGS=$CFLAGS
7009 LIBS=conftstm.$ac_objext
7010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7012 (eval $ac_link) 2>&5
7013 ac_status=$?
7014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7016 pipe_works=yes
7017 fi
7018 LIBS=$lt_globsym_save_LIBS
7019 CFLAGS=$lt_globsym_save_CFLAGS
7020 else
7021 echo "cannot find nm_test_func in $nlist" >&5
7022 fi
7023 else
7024 echo "cannot find nm_test_var in $nlist" >&5
7025 fi
7026 else
7027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7028 fi
7029 else
7030 echo "$progname: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 fi
7033 rm -rf conftest* conftst*
7034
7035 # Do not use the global_symbol_pipe unless it works.
7036 if test yes = "$pipe_works"; then
7037 break
7038 else
7039 lt_cv_sys_global_symbol_pipe=
7040 fi
7041 done
7042
7043 fi
7044
7045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7046 lt_cv_sys_global_symbol_to_cdecl=
7047 fi
7048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7050 printf "%s\n" "failed" >&6; }
7051 else
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7053 printf "%s\n" "ok" >&6; }
7054 fi
7055
7056 # Response file support.
7057 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7058 nm_file_list_spec='@'
7059 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7060 nm_file_list_spec='@'
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7100 printf %s "checking for sysroot... " >&6; }
7101
7102 # Check whether --with-sysroot was given.
7103 if test ${with_sysroot+y}
7104 then :
7105 withval=$with_sysroot;
7106 else $as_nop
7107 with_sysroot=no
7108 fi
7109
7110
7111 lt_sysroot=
7112 case $with_sysroot in #(
7113 yes)
7114 if test yes = "$GCC"; then
7115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7116 fi
7117 ;; #(
7118 /*)
7119 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7120 ;; #(
7121 no|'')
7122 ;; #(
7123 *)
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7125 printf "%s\n" "$with_sysroot" >&6; }
7126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7127 ;;
7128 esac
7129
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7131 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7132
7133
7134
7135
7136
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7138 printf %s "checking for a working dd... " >&6; }
7139 if test ${ac_cv_path_lt_DD+y}
7140 then :
7141 printf %s "(cached) " >&6
7142 else $as_nop
7143 printf 0123456789abcdef0123456789abcdef >conftest.i
7144 cat conftest.i conftest.i >conftest2.i
7145 : ${lt_DD:=$DD}
7146 if test -z "$lt_DD"; then
7147 ac_path_lt_DD_found=false
7148 # Loop through the user's path and test for each of PROGNAME-LIST
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 case $as_dir in #(((
7154 '') as_dir=./ ;;
7155 */) ;;
7156 *) as_dir=$as_dir/ ;;
7157 esac
7158 for ac_prog in dd
7159 do
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7162 as_fn_executable_p "$ac_path_lt_DD" || continue
7163 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7164 cmp -s conftest.i conftest.out \
7165 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7166 fi
7167 $ac_path_lt_DD_found && break 3
7168 done
7169 done
7170 done
7171 IFS=$as_save_IFS
7172 if test -z "$ac_cv_path_lt_DD"; then
7173 :
7174 fi
7175 else
7176 ac_cv_path_lt_DD=$lt_DD
7177 fi
7178
7179 rm -f conftest.i conftest2.i conftest.out
7180 fi
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7182 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7183
7184
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7186 printf %s "checking how to truncate binary pipes... " >&6; }
7187 if test ${lt_cv_truncate_bin+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else $as_nop
7191 printf 0123456789abcdef0123456789abcdef >conftest.i
7192 cat conftest.i conftest.i >conftest2.i
7193 lt_cv_truncate_bin=
7194 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7195 cmp -s conftest.i conftest.out \
7196 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7197 fi
7198 rm -f conftest.i conftest2.i conftest.out
7199 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7200 fi
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7202 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7203
7204
7205
7206
7207
7208
7209
7210 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7211 func_cc_basename ()
7212 {
7213 for cc_temp in $*""; do
7214 case $cc_temp in
7215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7217 \-*) ;;
7218 *) break;;
7219 esac
7220 done
7221 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7222 }
7223
7224 # Check whether --enable-libtool-lock was given.
7225 if test ${enable_libtool_lock+y}
7226 then :
7227 enableval=$enable_libtool_lock;
7228 fi
7229
7230 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7231
7232 # Some flags need to be propagated to the compiler or linker for good
7233 # libtool support.
7234 case $host in
7235 ia64-*-hpux*)
7236 # Find out what ABI is being produced by ac_compile, and set mode
7237 # options accordingly.
7238 echo 'int i;' > conftest.$ac_ext
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240 (eval $ac_compile) 2>&5
7241 ac_status=$?
7242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 case `$FILECMD conftest.$ac_objext` in
7245 *ELF-32*)
7246 HPUX_IA64_MODE=32
7247 ;;
7248 *ELF-64*)
7249 HPUX_IA64_MODE=64
7250 ;;
7251 esac
7252 fi
7253 rm -rf conftest*
7254 ;;
7255 *-*-irix6*)
7256 # Find out what ABI is being produced by ac_compile, and set linker
7257 # options accordingly.
7258 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7260 (eval $ac_compile) 2>&5
7261 ac_status=$?
7262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263 test $ac_status = 0; }; then
7264 if test yes = "$lt_cv_prog_gnu_ld"; then
7265 case `$FILECMD conftest.$ac_objext` in
7266 *32-bit*)
7267 LD="${LD-ld} -melf32bsmip"
7268 ;;
7269 *N32*)
7270 LD="${LD-ld} -melf32bmipn32"
7271 ;;
7272 *64-bit*)
7273 LD="${LD-ld} -melf64bmip"
7274 ;;
7275 esac
7276 else
7277 case `$FILECMD conftest.$ac_objext` in
7278 *32-bit*)
7279 LD="${LD-ld} -32"
7280 ;;
7281 *N32*)
7282 LD="${LD-ld} -n32"
7283 ;;
7284 *64-bit*)
7285 LD="${LD-ld} -64"
7286 ;;
7287 esac
7288 fi
7289 fi
7290 rm -rf conftest*
7291 ;;
7292
7293 mips64*-*linux*)
7294 # Find out what ABI is being produced by ac_compile, and set linker
7295 # options accordingly.
7296 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7298 (eval $ac_compile) 2>&5
7299 ac_status=$?
7300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7302 emul=elf
7303 case `$FILECMD conftest.$ac_objext` in
7304 *32-bit*)
7305 emul="${emul}32"
7306 ;;
7307 *64-bit*)
7308 emul="${emul}64"
7309 ;;
7310 esac
7311 case `$FILECMD conftest.$ac_objext` in
7312 *MSB*)
7313 emul="${emul}btsmip"
7314 ;;
7315 *LSB*)
7316 emul="${emul}ltsmip"
7317 ;;
7318 esac
7319 case `$FILECMD conftest.$ac_objext` in
7320 *N32*)
7321 emul="${emul}n32"
7322 ;;
7323 esac
7324 LD="${LD-ld} -m $emul"
7325 fi
7326 rm -rf conftest*
7327 ;;
7328
7329 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7330 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7331 # Find out what ABI is being produced by ac_compile, and set linker
7332 # options accordingly. Note that the listed cases only cover the
7333 # situations where additional linker options are needed (such as when
7334 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7335 # vice versa); the common cases where no linker options are needed do
7336 # not appear in the list.
7337 echo 'int i;' > conftest.$ac_ext
7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 case `$FILECMD conftest.o` in
7344 *32-bit*)
7345 case $host in
7346 x86_64-*kfreebsd*-gnu)
7347 LD="${LD-ld} -m elf_i386_fbsd"
7348 ;;
7349 x86_64-*linux*)
7350 case `$FILECMD conftest.o` in
7351 *x86-64*)
7352 LD="${LD-ld} -m elf32_x86_64"
7353 ;;
7354 *)
7355 LD="${LD-ld} -m elf_i386"
7356 ;;
7357 esac
7358 ;;
7359 powerpc64le-*linux*)
7360 LD="${LD-ld} -m elf32lppclinux"
7361 ;;
7362 powerpc64-*linux*)
7363 LD="${LD-ld} -m elf32ppclinux"
7364 ;;
7365 s390x-*linux*)
7366 LD="${LD-ld} -m elf_s390"
7367 ;;
7368 sparc64-*linux*)
7369 LD="${LD-ld} -m elf32_sparc"
7370 ;;
7371 esac
7372 ;;
7373 *64-bit*)
7374 case $host in
7375 x86_64-*kfreebsd*-gnu)
7376 LD="${LD-ld} -m elf_x86_64_fbsd"
7377 ;;
7378 x86_64-*linux*)
7379 LD="${LD-ld} -m elf_x86_64"
7380 ;;
7381 powerpcle-*linux*)
7382 LD="${LD-ld} -m elf64lppc"
7383 ;;
7384 powerpc-*linux*)
7385 LD="${LD-ld} -m elf64ppc"
7386 ;;
7387 s390*-*linux*|s390*-*tpf*)
7388 LD="${LD-ld} -m elf64_s390"
7389 ;;
7390 sparc*-*linux*)
7391 LD="${LD-ld} -m elf64_sparc"
7392 ;;
7393 esac
7394 ;;
7395 esac
7396 fi
7397 rm -rf conftest*
7398 ;;
7399
7400 *-*-sco3.2v5*)
7401 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7402 SAVE_CFLAGS=$CFLAGS
7403 CFLAGS="$CFLAGS -belf"
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7405 printf %s "checking whether the C compiler needs -belf... " >&6; }
7406 if test ${lt_cv_cc_needs_belf+y}
7407 then :
7408 printf %s "(cached) " >&6
7409 else $as_nop
7410 ac_ext=c
7411 ac_cpp='$CPP $CPPFLAGS'
7412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418
7419 int
7420 main (void)
7421 {
7422
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 if ac_fn_c_try_link "$LINENO"
7428 then :
7429 lt_cv_cc_needs_belf=yes
7430 else $as_nop
7431 lt_cv_cc_needs_belf=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7434 conftest$ac_exeext conftest.$ac_ext
7435 ac_ext=c
7436 ac_cpp='$CPP $CPPFLAGS'
7437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7440
7441 fi
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7443 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7444 if test yes != "$lt_cv_cc_needs_belf"; then
7445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7446 CFLAGS=$SAVE_CFLAGS
7447 fi
7448 ;;
7449 *-*solaris*)
7450 # Find out what ABI is being produced by ac_compile, and set linker
7451 # options accordingly.
7452 echo 'int i;' > conftest.$ac_ext
7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }; then
7458 case `$FILECMD conftest.o` in
7459 *64-bit*)
7460 case $lt_cv_prog_gnu_ld in
7461 yes*)
7462 case $host in
7463 i?86-*-solaris*|x86_64-*-solaris*)
7464 LD="${LD-ld} -m elf_x86_64"
7465 ;;
7466 sparc*-*-solaris*)
7467 LD="${LD-ld} -m elf64_sparc"
7468 ;;
7469 esac
7470 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7471 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7472 LD=${LD-ld}_sol2
7473 fi
7474 ;;
7475 *)
7476 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7477 LD="${LD-ld} -64"
7478 fi
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486 esac
7487
7488 need_locks=$enable_libtool_lock
7489
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}mt; ac_word=$2
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 printf %s "checking for $ac_word... " >&6; }
7495 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7496 then :
7497 printf %s "(cached) " >&6
7498 else $as_nop
7499 if test -n "$MANIFEST_TOOL"; then
7500 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505 IFS=$as_save_IFS
7506 case $as_dir in #(((
7507 '') as_dir=./ ;;
7508 */) ;;
7509 *) as_dir=$as_dir/ ;;
7510 esac
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7524 if test -n "$MANIFEST_TOOL"; then
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7526 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7527 else
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 printf "%s\n" "no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7535 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7536 # Extract the first word of "mt", so it can be a program name with args.
7537 set dummy mt; ac_word=$2
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 printf %s "checking for $ac_word... " >&6; }
7540 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else $as_nop
7544 if test -n "$ac_ct_MANIFEST_TOOL"; then
7545 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 case $as_dir in #(((
7552 '') as_dir=./ ;;
7553 */) ;;
7554 *) as_dir=$as_dir/ ;;
7555 esac
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7569 if test -n "$ac_ct_MANIFEST_TOOL"; then
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7571 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7572 else
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 printf "%s\n" "no" >&6; }
7575 fi
7576
7577 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7578 MANIFEST_TOOL=":"
7579 else
7580 case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7587 fi
7588 else
7589 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7590 fi
7591
7592 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7594 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7595 if test ${lt_cv_path_mainfest_tool+y}
7596 then :
7597 printf %s "(cached) " >&6
7598 else $as_nop
7599 lt_cv_path_mainfest_tool=no
7600 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7601 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7602 cat conftest.err >&5
7603 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7604 lt_cv_path_mainfest_tool=yes
7605 fi
7606 rm -f conftest*
7607 fi
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7609 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7610 if test yes != "$lt_cv_path_mainfest_tool"; then
7611 MANIFEST_TOOL=:
7612 fi
7613
7614
7615
7616
7617
7618
7619 case $host_os in
7620 rhapsody* | darwin*)
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 printf %s "checking for $ac_word... " >&6; }
7626 if test ${ac_cv_prog_DSYMUTIL+y}
7627 then :
7628 printf %s "(cached) " >&6
7629 else $as_nop
7630 if test -n "$DSYMUTIL"; then
7631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636 IFS=$as_save_IFS
7637 case $as_dir in #(((
7638 '') as_dir=./ ;;
7639 */) ;;
7640 *) as_dir=$as_dir/ ;;
7641 esac
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7655 if test -n "$DSYMUTIL"; then
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7657 printf "%s\n" "$DSYMUTIL" >&6; }
7658 else
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 printf "%s\n" "no" >&6; }
7661 fi
7662
7663
7664 fi
7665 if test -z "$ac_cv_prog_DSYMUTIL"; then
7666 ac_ct_DSYMUTIL=$DSYMUTIL
7667 # Extract the first word of "dsymutil", so it can be a program name with args.
7668 set dummy dsymutil; ac_word=$2
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 printf %s "checking for $ac_word... " >&6; }
7671 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else $as_nop
7675 if test -n "$ac_ct_DSYMUTIL"; then
7676 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681 IFS=$as_save_IFS
7682 case $as_dir in #(((
7683 '') as_dir=./ ;;
7684 */) ;;
7685 *) as_dir=$as_dir/ ;;
7686 esac
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7700 if test -n "$ac_ct_DSYMUTIL"; then
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7702 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7703 else
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 printf "%s\n" "no" >&6; }
7706 fi
7707
7708 if test "x$ac_ct_DSYMUTIL" = x; then
7709 DSYMUTIL=":"
7710 else
7711 case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7715 ac_tool_warned=yes ;;
7716 esac
7717 DSYMUTIL=$ac_ct_DSYMUTIL
7718 fi
7719 else
7720 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7721 fi
7722
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 printf %s "checking for $ac_word... " >&6; }
7728 if test ${ac_cv_prog_NMEDIT+y}
7729 then :
7730 printf %s "(cached) " >&6
7731 else $as_nop
7732 if test -n "$NMEDIT"; then
7733 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 case $as_dir in #(((
7740 '') as_dir=./ ;;
7741 */) ;;
7742 *) as_dir=$as_dir/ ;;
7743 esac
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 NMEDIT=$ac_cv_prog_NMEDIT
7757 if test -n "$NMEDIT"; then
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7759 printf "%s\n" "$NMEDIT" >&6; }
7760 else
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 printf "%s\n" "no" >&6; }
7763 fi
7764
7765
7766 fi
7767 if test -z "$ac_cv_prog_NMEDIT"; then
7768 ac_ct_NMEDIT=$NMEDIT
7769 # Extract the first word of "nmedit", so it can be a program name with args.
7770 set dummy nmedit; ac_word=$2
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 printf %s "checking for $ac_word... " >&6; }
7773 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7774 then :
7775 printf %s "(cached) " >&6
7776 else $as_nop
7777 if test -n "$ac_ct_NMEDIT"; then
7778 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 case $as_dir in #(((
7785 '') as_dir=./ ;;
7786 */) ;;
7787 *) as_dir=$as_dir/ ;;
7788 esac
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7802 if test -n "$ac_ct_NMEDIT"; then
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7804 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7805 else
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 printf "%s\n" "no" >&6; }
7808 fi
7809
7810 if test "x$ac_ct_NMEDIT" = x; then
7811 NMEDIT=":"
7812 else
7813 case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819 NMEDIT=$ac_ct_NMEDIT
7820 fi
7821 else
7822 NMEDIT="$ac_cv_prog_NMEDIT"
7823 fi
7824
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 printf %s "checking for $ac_word... " >&6; }
7830 if test ${ac_cv_prog_LIPO+y}
7831 then :
7832 printf %s "(cached) " >&6
7833 else $as_nop
7834 if test -n "$LIPO"; then
7835 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840 IFS=$as_save_IFS
7841 case $as_dir in #(((
7842 '') as_dir=./ ;;
7843 */) ;;
7844 *) as_dir=$as_dir/ ;;
7845 esac
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852 done
7853 done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 LIPO=$ac_cv_prog_LIPO
7859 if test -n "$LIPO"; then
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7861 printf "%s\n" "$LIPO" >&6; }
7862 else
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 printf "%s\n" "no" >&6; }
7865 fi
7866
7867
7868 fi
7869 if test -z "$ac_cv_prog_LIPO"; then
7870 ac_ct_LIPO=$LIPO
7871 # Extract the first word of "lipo", so it can be a program name with args.
7872 set dummy lipo; ac_word=$2
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 printf %s "checking for $ac_word... " >&6; }
7875 if test ${ac_cv_prog_ac_ct_LIPO+y}
7876 then :
7877 printf %s "(cached) " >&6
7878 else $as_nop
7879 if test -n "$ac_ct_LIPO"; then
7880 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 case $as_dir in #(((
7887 '') as_dir=./ ;;
7888 */) ;;
7889 *) as_dir=$as_dir/ ;;
7890 esac
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_ac_ct_LIPO="lipo"
7894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897 done
7898 done
7899 IFS=$as_save_IFS
7900
7901 fi
7902 fi
7903 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7904 if test -n "$ac_ct_LIPO"; then
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7906 printf "%s\n" "$ac_ct_LIPO" >&6; }
7907 else
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 printf "%s\n" "no" >&6; }
7910 fi
7911
7912 if test "x$ac_ct_LIPO" = x; then
7913 LIPO=":"
7914 else
7915 case $cross_compiling:$ac_tool_warned in
7916 yes:)
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7918 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7919 ac_tool_warned=yes ;;
7920 esac
7921 LIPO=$ac_ct_LIPO
7922 fi
7923 else
7924 LIPO="$ac_cv_prog_LIPO"
7925 fi
7926
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}otool; ac_word=$2
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 printf %s "checking for $ac_word... " >&6; }
7932 if test ${ac_cv_prog_OTOOL+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else $as_nop
7936 if test -n "$OTOOL"; then
7937 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942 IFS=$as_save_IFS
7943 case $as_dir in #(((
7944 '') as_dir=./ ;;
7945 */) ;;
7946 *) as_dir=$as_dir/ ;;
7947 esac
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 OTOOL=$ac_cv_prog_OTOOL
7961 if test -n "$OTOOL"; then
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7963 printf "%s\n" "$OTOOL" >&6; }
7964 else
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 printf "%s\n" "no" >&6; }
7967 fi
7968
7969
7970 fi
7971 if test -z "$ac_cv_prog_OTOOL"; then
7972 ac_ct_OTOOL=$OTOOL
7973 # Extract the first word of "otool", so it can be a program name with args.
7974 set dummy otool; ac_word=$2
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 printf %s "checking for $ac_word... " >&6; }
7977 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7978 then :
7979 printf %s "(cached) " >&6
7980 else $as_nop
7981 if test -n "$ac_ct_OTOOL"; then
7982 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 case $as_dir in #(((
7989 '') as_dir=./ ;;
7990 */) ;;
7991 *) as_dir=$as_dir/ ;;
7992 esac
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_ac_ct_OTOOL="otool"
7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8006 if test -n "$ac_ct_OTOOL"; then
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8008 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8009 else
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 printf "%s\n" "no" >&6; }
8012 fi
8013
8014 if test "x$ac_ct_OTOOL" = x; then
8015 OTOOL=":"
8016 else
8017 case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023 OTOOL=$ac_ct_OTOOL
8024 fi
8025 else
8026 OTOOL="$ac_cv_prog_OTOOL"
8027 fi
8028
8029 if test -n "$ac_tool_prefix"; then
8030 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 printf %s "checking for $ac_word... " >&6; }
8034 if test ${ac_cv_prog_OTOOL64+y}
8035 then :
8036 printf %s "(cached) " >&6
8037 else $as_nop
8038 if test -n "$OTOOL64"; then
8039 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044 IFS=$as_save_IFS
8045 case $as_dir in #(((
8046 '') as_dir=./ ;;
8047 */) ;;
8048 *) as_dir=$as_dir/ ;;
8049 esac
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056 done
8057 done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 OTOOL64=$ac_cv_prog_OTOOL64
8063 if test -n "$OTOOL64"; then
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065 printf "%s\n" "$OTOOL64" >&6; }
8066 else
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 printf "%s\n" "no" >&6; }
8069 fi
8070
8071
8072 fi
8073 if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076 set dummy otool64; ac_word=$2
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 printf %s "checking for $ac_word... " >&6; }
8079 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8080 then :
8081 printf %s "(cached) " >&6
8082 else $as_nop
8083 if test -n "$ac_ct_OTOOL64"; then
8084 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089 IFS=$as_save_IFS
8090 case $as_dir in #(((
8091 '') as_dir=./ ;;
8092 */) ;;
8093 *) as_dir=$as_dir/ ;;
8094 esac
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_OTOOL64="otool64"
8098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8108 if test -n "$ac_ct_OTOOL64"; then
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8110 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8111 else
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 printf "%s\n" "no" >&6; }
8114 fi
8115
8116 if test "x$ac_ct_OTOOL64" = x; then
8117 OTOOL64=":"
8118 else
8119 case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125 OTOOL64=$ac_ct_OTOOL64
8126 fi
8127 else
8128 OTOOL64="$ac_cv_prog_OTOOL64"
8129 fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8158 printf %s "checking for -single_module linker flag... " >&6; }
8159 if test ${lt_cv_apple_cc_single_mod+y}
8160 then :
8161 printf %s "(cached) " >&6
8162 else $as_nop
8163 lt_cv_apple_cc_single_mod=no
8164 if test -z "$LT_MULTI_MODULE"; then
8165 # By default we will add the -single_module flag. You can override
8166 # by either setting the environment variable LT_MULTI_MODULE
8167 # non-empty at configure time, or by adding -multi_module to the
8168 # link flags.
8169 rm -rf libconftest.dylib*
8170 echo "int foo(void){return 1;}" > conftest.c
8171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8172 -dynamiclib -Wl,-single_module conftest.c" >&5
8173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8175 _lt_result=$?
8176 # If there is a non-empty error log, and "single_module"
8177 # appears in it, assume the flag caused a linker warning
8178 if test -s conftest.err && $GREP single_module conftest.err; then
8179 cat conftest.err >&5
8180 # Otherwise, if the output was created with a 0 exit code from
8181 # the compiler, it worked.
8182 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8183 lt_cv_apple_cc_single_mod=yes
8184 else
8185 cat conftest.err >&5
8186 fi
8187 rm -rf libconftest.dylib*
8188 rm -f conftest.*
8189 fi
8190 fi
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8192 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8193
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8195 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8196 if test ${lt_cv_ld_exported_symbols_list+y}
8197 then :
8198 printf %s "(cached) " >&6
8199 else $as_nop
8200 lt_cv_ld_exported_symbols_list=no
8201 save_LDFLAGS=$LDFLAGS
8202 echo "_main" > conftest.sym
8203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206
8207 int
8208 main (void)
8209 {
8210
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"
8216 then :
8217 lt_cv_ld_exported_symbols_list=yes
8218 else $as_nop
8219 lt_cv_ld_exported_symbols_list=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8222 conftest$ac_exeext conftest.$ac_ext
8223 LDFLAGS=$save_LDFLAGS
8224
8225 fi
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8227 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8228
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8230 printf %s "checking for -force_load linker flag... " >&6; }
8231 if test ${lt_cv_ld_force_load+y}
8232 then :
8233 printf %s "(cached) " >&6
8234 else $as_nop
8235 lt_cv_ld_force_load=no
8236 cat > conftest.c << _LT_EOF
8237 int forced_loaded() { return 2;}
8238 _LT_EOF
8239 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8240 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8241 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8242 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8243 echo "$RANLIB libconftest.a" >&5
8244 $RANLIB libconftest.a 2>&5
8245 cat > conftest.c << _LT_EOF
8246 int main() { return 0;}
8247 _LT_EOF
8248 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8249 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8250 _lt_result=$?
8251 if test -s conftest.err && $GREP force_load conftest.err; then
8252 cat conftest.err >&5
8253 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8254 lt_cv_ld_force_load=yes
8255 else
8256 cat conftest.err >&5
8257 fi
8258 rm -f conftest.err libconftest.a conftest conftest.c
8259 rm -rf conftest.dSYM
8260
8261 fi
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8263 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8264 case $host_os in
8265 rhapsody* | darwin1.[012])
8266 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8267 darwin1.*)
8268 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8269 darwin*)
8270 case $MACOSX_DEPLOYMENT_TARGET,$host in
8271 10.[012],*|,*powerpc*-darwin[5-8]*)
8272 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8273 *)
8274 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8275 esac
8276 ;;
8277 esac
8278 if test yes = "$lt_cv_apple_cc_single_mod"; then
8279 _lt_dar_single_mod='$single_module'
8280 fi
8281 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8282 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8283 else
8284 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8285 fi
8286 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8287 _lt_dsymutil='~$DSYMUTIL $lib || :'
8288 else
8289 _lt_dsymutil=
8290 fi
8291 ;;
8292 esac
8293
8294 # func_munge_path_list VARIABLE PATH
8295 # -----------------------------------
8296 # VARIABLE is name of variable containing _space_ separated list of
8297 # directories to be munged by the contents of PATH, which is string
8298 # having a format:
8299 # "DIR[:DIR]:"
8300 # string "DIR[ DIR]" will be prepended to VARIABLE
8301 # ":DIR[:DIR]"
8302 # string "DIR[ DIR]" will be appended to VARIABLE
8303 # "DIRP[:DIRP]::[DIRA:]DIRA"
8304 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8305 # "DIRA[ DIRA]" will be appended to VARIABLE
8306 # "DIR[:DIR]"
8307 # VARIABLE will be replaced by "DIR[ DIR]"
8308 func_munge_path_list ()
8309 {
8310 case x$2 in
8311 x)
8312 ;;
8313 *:)
8314 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8315 ;;
8316 x:*)
8317 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8318 ;;
8319 *::*)
8320 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8321 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8322 ;;
8323 *)
8324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8325 ;;
8326 esac
8327 }
8328
8329 ac_header= ac_cache=
8330 for ac_item in $ac_header_c_list
8331 do
8332 if test $ac_cache; then
8333 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8334 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8335 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8336 fi
8337 ac_header= ac_cache=
8338 elif test $ac_header; then
8339 ac_cache=$ac_item
8340 else
8341 ac_header=$ac_item
8342 fi
8343 done
8344
8345
8346
8347
8348
8349
8350
8351
8352 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8353 then :
8354
8355 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8356
8357 fi
8358 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8359 "
8360 if test "x$ac_cv_header_dlfcn_h" = xyes
8361 then :
8362 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8363
8364 fi
8365
8366
8367
8368
8369
8370 # Set options
8371
8372
8373
8374 enable_dlopen=no
8375
8376
8377 enable_win32_dll=no
8378
8379
8380 # Check whether --enable-shared was given.
8381 if test ${enable_shared+y}
8382 then :
8383 enableval=$enable_shared; p=${PACKAGE-default}
8384 case $enableval in
8385 yes) enable_shared=yes ;;
8386 no) enable_shared=no ;;
8387 *)
8388 enable_shared=no
8389 # Look at the argument we got. We use all the common list separators.
8390 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8391 for pkg in $enableval; do
8392 IFS=$lt_save_ifs
8393 if test "X$pkg" = "X$p"; then
8394 enable_shared=yes
8395 fi
8396 done
8397 IFS=$lt_save_ifs
8398 ;;
8399 esac
8400 else $as_nop
8401 enable_shared=yes
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 # Check whether --with-pic was given.
8415 if test ${with_pic+y}
8416 then :
8417 withval=$with_pic; lt_p=${PACKAGE-default}
8418 case $withval in
8419 yes|no) pic_mode=$withval ;;
8420 *)
8421 pic_mode=default
8422 # Look at the argument we got. We use all the common list separators.
8423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8424 for lt_pkg in $withval; do
8425 IFS=$lt_save_ifs
8426 if test "X$lt_pkg" = "X$lt_p"; then
8427 pic_mode=yes
8428 fi
8429 done
8430 IFS=$lt_save_ifs
8431 ;;
8432 esac
8433 else $as_nop
8434 pic_mode=default
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444 # Check whether --enable-fast-install was given.
8445 if test ${enable_fast_install+y}
8446 then :
8447 enableval=$enable_fast_install; p=${PACKAGE-default}
8448 case $enableval in
8449 yes) enable_fast_install=yes ;;
8450 no) enable_fast_install=no ;;
8451 *)
8452 enable_fast_install=no
8453 # Look at the argument we got. We use all the common list separators.
8454 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8455 for pkg in $enableval; do
8456 IFS=$lt_save_ifs
8457 if test "X$pkg" = "X$p"; then
8458 enable_fast_install=yes
8459 fi
8460 done
8461 IFS=$lt_save_ifs
8462 ;;
8463 esac
8464 else $as_nop
8465 enable_fast_install=yes
8466 fi
8467
8468
8469
8470
8471
8472
8473
8474
8475 shared_archive_member_spec=
8476 case $host,$enable_shared in
8477 power*-*-aix[5-9]*,yes)
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8479 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8480
8481 # Check whether --with-aix-soname was given.
8482 if test ${with_aix_soname+y}
8483 then :
8484 withval=$with_aix_soname; case $withval in
8485 aix|svr4|both)
8486 ;;
8487 *)
8488 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8489 ;;
8490 esac
8491 lt_cv_with_aix_soname=$with_aix_soname
8492 else $as_nop
8493 if test ${lt_cv_with_aix_soname+y}
8494 then :
8495 printf %s "(cached) " >&6
8496 else $as_nop
8497 lt_cv_with_aix_soname=aix
8498 fi
8499
8500 with_aix_soname=$lt_cv_with_aix_soname
8501 fi
8502
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8504 printf "%s\n" "$with_aix_soname" >&6; }
8505 if test aix != "$with_aix_soname"; then
8506 # For the AIX way of multilib, we name the shared archive member
8507 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8508 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8509 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8510 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8511 if test 64 = "${OBJECT_MODE-32}"; then
8512 shared_archive_member_spec=shr_64
8513 else
8514 shared_archive_member_spec=shr
8515 fi
8516 fi
8517 ;;
8518 *)
8519 with_aix_soname=aix
8520 ;;
8521 esac
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 # This can be used to rebuild libtool when needed
8533 LIBTOOL_DEPS=$ltmain
8534
8535 # Always use our own libtool.
8536 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 test -z "$LN_S" && LN_S="ln -s"
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582 if test -n "${ZSH_VERSION+set}"; then
8583 setopt NO_GLOB_SUBST
8584 fi
8585
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8587 printf %s "checking for objdir... " >&6; }
8588 if test ${lt_cv_objdir+y}
8589 then :
8590 printf %s "(cached) " >&6
8591 else $as_nop
8592 rm -f .libs 2>/dev/null
8593 mkdir .libs 2>/dev/null
8594 if test -d .libs; then
8595 lt_cv_objdir=.libs
8596 else
8597 # MS-DOS does not allow filenames that begin with a dot.
8598 lt_cv_objdir=_libs
8599 fi
8600 rmdir .libs 2>/dev/null
8601 fi
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8603 printf "%s\n" "$lt_cv_objdir" >&6; }
8604 objdir=$lt_cv_objdir
8605
8606
8607
8608
8609
8610 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8611
8612
8613
8614
8615 case $host_os in
8616 aix3*)
8617 # AIX sometimes has problems with the GCC collect2 program. For some
8618 # reason, if we set the COLLECT_NAMES environment variable, the problems
8619 # vanish in a puff of smoke.
8620 if test set != "${COLLECT_NAMES+set}"; then
8621 COLLECT_NAMES=
8622 export COLLECT_NAMES
8623 fi
8624 ;;
8625 esac
8626
8627 # Global variables:
8628 ofile=libtool
8629 can_build_shared=yes
8630
8631 # All known linkers require a '.a' archive for static linking (except MSVC and
8632 # ICC, which need '.lib').
8633 libext=a
8634
8635 with_gnu_ld=$lt_cv_prog_gnu_ld
8636
8637 old_CC=$CC
8638 old_CFLAGS=$CFLAGS
8639
8640 # Set sane defaults for various variables
8641 test -z "$CC" && CC=cc
8642 test -z "$LTCC" && LTCC=$CC
8643 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8644 test -z "$LD" && LD=ld
8645 test -z "$ac_objext" && ac_objext=o
8646
8647 func_cc_basename $compiler
8648 cc_basename=$func_cc_basename_result
8649
8650
8651 # Only perform the check for file, if the check method requires it
8652 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8653 case $deplibs_check_method in
8654 file_magic*)
8655 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8657 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8658 if test ${lt_cv_path_MAGIC_CMD+y}
8659 then :
8660 printf %s "(cached) " >&6
8661 else $as_nop
8662 case $MAGIC_CMD in
8663 [\\/*] | ?:[\\/]*)
8664 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8665 ;;
8666 *)
8667 lt_save_MAGIC_CMD=$MAGIC_CMD
8668 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8669 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8670 for ac_dir in $ac_dummy; do
8671 IFS=$lt_save_ifs
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8674 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8675 if test -n "$file_magic_test_file"; then
8676 case $deplibs_check_method in
8677 "file_magic "*)
8678 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8679 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8681 $EGREP "$file_magic_regex" > /dev/null; then
8682 :
8683 else
8684 cat <<_LT_EOF 1>&2
8685
8686 *** Warning: the command libtool uses to detect shared libraries,
8687 *** $file_magic_cmd, produces output that libtool cannot recognize.
8688 *** The result is that libtool may fail to recognize shared libraries
8689 *** as such. This will affect the creation of libtool libraries that
8690 *** depend on shared libraries, but programs linked with such libtool
8691 *** libraries will work regardless of this problem. Nevertheless, you
8692 *** may want to report the problem to your system manager and/or to
8693 *** [email protected]
8694
8695 _LT_EOF
8696 fi ;;
8697 esac
8698 fi
8699 break
8700 fi
8701 done
8702 IFS=$lt_save_ifs
8703 MAGIC_CMD=$lt_save_MAGIC_CMD
8704 ;;
8705 esac
8706 fi
8707
8708 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8709 if test -n "$MAGIC_CMD"; then
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8711 printf "%s\n" "$MAGIC_CMD" >&6; }
8712 else
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 printf "%s\n" "no" >&6; }
8715 fi
8716
8717
8718
8719
8720
8721 if test -z "$lt_cv_path_MAGIC_CMD"; then
8722 if test -n "$ac_tool_prefix"; then
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8724 printf %s "checking for file... " >&6; }
8725 if test ${lt_cv_path_MAGIC_CMD+y}
8726 then :
8727 printf %s "(cached) " >&6
8728 else $as_nop
8729 case $MAGIC_CMD in
8730 [\\/*] | ?:[\\/]*)
8731 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8732 ;;
8733 *)
8734 lt_save_MAGIC_CMD=$MAGIC_CMD
8735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8737 for ac_dir in $ac_dummy; do
8738 IFS=$lt_save_ifs
8739 test -z "$ac_dir" && ac_dir=.
8740 if test -f "$ac_dir/file"; then
8741 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8742 if test -n "$file_magic_test_file"; then
8743 case $deplibs_check_method in
8744 "file_magic "*)
8745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8746 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8748 $EGREP "$file_magic_regex" > /dev/null; then
8749 :
8750 else
8751 cat <<_LT_EOF 1>&2
8752
8753 *** Warning: the command libtool uses to detect shared libraries,
8754 *** $file_magic_cmd, produces output that libtool cannot recognize.
8755 *** The result is that libtool may fail to recognize shared libraries
8756 *** as such. This will affect the creation of libtool libraries that
8757 *** depend on shared libraries, but programs linked with such libtool
8758 *** libraries will work regardless of this problem. Nevertheless, you
8759 *** may want to report the problem to your system manager and/or to
8760 *** [email protected]
8761
8762 _LT_EOF
8763 fi ;;
8764 esac
8765 fi
8766 break
8767 fi
8768 done
8769 IFS=$lt_save_ifs
8770 MAGIC_CMD=$lt_save_MAGIC_CMD
8771 ;;
8772 esac
8773 fi
8774
8775 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8776 if test -n "$MAGIC_CMD"; then
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8778 printf "%s\n" "$MAGIC_CMD" >&6; }
8779 else
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 printf "%s\n" "no" >&6; }
8782 fi
8783
8784
8785 else
8786 MAGIC_CMD=:
8787 fi
8788 fi
8789
8790 fi
8791 ;;
8792 esac
8793
8794 # Use C for the default configuration in the libtool script
8795
8796 lt_save_CC=$CC
8797 ac_ext=c
8798 ac_cpp='$CPP $CPPFLAGS'
8799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802
8803
8804 # Source file extension for C test sources.
8805 ac_ext=c
8806
8807 # Object file extension for compiled C test sources.
8808 objext=o
8809 objext=$objext
8810
8811 # Code to be used in simple compile tests
8812 lt_simple_compile_test_code="int some_variable = 0;"
8813
8814 # Code to be used in simple link tests
8815 lt_simple_link_test_code='int main(){return(0);}'
8816
8817
8818
8819
8820
8821
8822
8823 # If no C compiler was specified, use CC.
8824 LTCC=${LTCC-"$CC"}
8825
8826 # If no C compiler flags were specified, use CFLAGS.
8827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8828
8829 # Allow CC to be a program name with arguments.
8830 compiler=$CC
8831
8832 # Save the default compiler, since it gets overwritten when the other
8833 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8834 compiler_DEFAULT=$CC
8835
8836 # save warnings/boilerplate of simple test code
8837 ac_outfile=conftest.$ac_objext
8838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8840 _lt_compiler_boilerplate=`cat conftest.err`
8841 $RM conftest*
8842
8843 ac_outfile=conftest.$ac_objext
8844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8846 _lt_linker_boilerplate=`cat conftest.err`
8847 $RM -r conftest*
8848
8849
8850 if test -n "$compiler"; then
8851
8852 lt_prog_compiler_no_builtin_flag=
8853
8854 if test yes = "$GCC"; then
8855 case $cc_basename in
8856 nvcc*)
8857 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8858 *)
8859 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8860 esac
8861
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8863 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8864 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 lt_cv_prog_compiler_rtti_exceptions=no
8869 ac_outfile=conftest.$ac_objext
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8872 # Insert the option either (1) after the last *FLAGS variable, or
8873 # (2) before a word containing "conftest.", or (3) at the end.
8874 # Note that $ac_compile itself does not contain backslashes and begins
8875 # with a dollar sign (not a hyphen), so the echo should work correctly.
8876 # The option is referenced via a variable to avoid confusing sed.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882 (eval "$lt_compile" 2>conftest.err)
8883 ac_status=$?
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 if (exit $ac_status) && test -s "$ac_outfile"; then
8887 # The compiler can only warn and ignore the option if not recognized
8888 # So say no if there are warnings other than the usual output.
8889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892 lt_cv_prog_compiler_rtti_exceptions=yes
8893 fi
8894 fi
8895 $RM conftest*
8896
8897 fi
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8899 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8900
8901 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8902 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8903 else
8904 :
8905 fi
8906
8907 fi
8908
8909
8910
8911
8912
8913
8914 lt_prog_compiler_wl=
8915 lt_prog_compiler_pic=
8916 lt_prog_compiler_static=
8917
8918
8919 if test yes = "$GCC"; then
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_static='-static'
8922
8923 case $host_os in
8924 aix*)
8925 # All AIX code is PIC.
8926 if test ia64 = "$host_cpu"; then
8927 # AIX 5 now supports IA64 processor
8928 lt_prog_compiler_static='-Bstatic'
8929 fi
8930 lt_prog_compiler_pic='-fPIC'
8931 ;;
8932
8933 amigaos*)
8934 case $host_cpu in
8935 powerpc)
8936 # see comment about AmigaOS4 .so support
8937 lt_prog_compiler_pic='-fPIC'
8938 ;;
8939 m68k)
8940 # FIXME: we need at least 68020 code to build shared libraries, but
8941 # adding the '-m68020' flag to GCC prevents building anything better,
8942 # like '-m68040'.
8943 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8944 ;;
8945 esac
8946 ;;
8947
8948 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8949 # PIC is the default for these OSes.
8950 ;;
8951
8952 mingw* | cygwin* | pw32* | os2* | cegcc*)
8953 # This hack is so that the source file can tell whether it is being
8954 # built for inclusion in a dll (and should export symbols for example).
8955 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8956 # (--disable-auto-import) libraries
8957 lt_prog_compiler_pic='-DDLL_EXPORT'
8958 case $host_os in
8959 os2*)
8960 lt_prog_compiler_static='$wl-static'
8961 ;;
8962 esac
8963 ;;
8964
8965 darwin* | rhapsody*)
8966 # PIC is the default on this platform
8967 # Common symbols not allowed in MH_DYLIB files
8968 lt_prog_compiler_pic='-fno-common'
8969 ;;
8970
8971 haiku*)
8972 # PIC is the default for Haiku.
8973 # The "-static" flag exists, but is broken.
8974 lt_prog_compiler_static=
8975 ;;
8976
8977 hpux*)
8978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8980 # sets the default TLS model and affects inlining.
8981 case $host_cpu in
8982 hppa*64*)
8983 # +Z the default
8984 ;;
8985 *)
8986 lt_prog_compiler_pic='-fPIC'
8987 ;;
8988 esac
8989 ;;
8990
8991 interix[3-9]*)
8992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8993 # Instead, we relocate shared libraries at runtime.
8994 ;;
8995
8996 msdosdjgpp*)
8997 # Just because we use GCC doesn't mean we suddenly get shared libraries
8998 # on systems that don't support them.
8999 lt_prog_compiler_can_build_shared=no
9000 enable_shared=no
9001 ;;
9002
9003 *nto* | *qnx*)
9004 # QNX uses GNU C++, but need to define -shared option too, otherwise
9005 # it will coredump.
9006 lt_prog_compiler_pic='-fPIC -shared'
9007 ;;
9008
9009 sysv4*MP*)
9010 if test -d /usr/nec; then
9011 lt_prog_compiler_pic=-Kconform_pic
9012 fi
9013 ;;
9014
9015 *)
9016 lt_prog_compiler_pic='-fPIC'
9017 ;;
9018 esac
9019
9020 case $cc_basename in
9021 nvcc*) # Cuda Compiler Driver 2.2
9022 lt_prog_compiler_wl='-Xlinker '
9023 if test -n "$lt_prog_compiler_pic"; then
9024 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9025 fi
9026 ;;
9027 esac
9028 else
9029 # PORTME Check for flag to pass linker flags through the system compiler.
9030 case $host_os in
9031 aix*)
9032 lt_prog_compiler_wl='-Wl,'
9033 if test ia64 = "$host_cpu"; then
9034 # AIX 5 now supports IA64 processor
9035 lt_prog_compiler_static='-Bstatic'
9036 else
9037 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9038 fi
9039 ;;
9040
9041 darwin* | rhapsody*)
9042 # PIC is the default on this platform
9043 # Common symbols not allowed in MH_DYLIB files
9044 lt_prog_compiler_pic='-fno-common'
9045 case $cc_basename in
9046 nagfor*)
9047 # NAG Fortran compiler
9048 lt_prog_compiler_wl='-Wl,-Wl,,'
9049 lt_prog_compiler_pic='-PIC'
9050 lt_prog_compiler_static='-Bstatic'
9051 ;;
9052 esac
9053 ;;
9054
9055 mingw* | cygwin* | pw32* | os2* | cegcc*)
9056 # This hack is so that the source file can tell whether it is being
9057 # built for inclusion in a dll (and should export symbols for example).
9058 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 case $host_os in
9060 os2*)
9061 lt_prog_compiler_static='$wl-static'
9062 ;;
9063 esac
9064 ;;
9065
9066 hpux9* | hpux10* | hpux11*)
9067 lt_prog_compiler_wl='-Wl,'
9068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9069 # not for PA HP-UX.
9070 case $host_cpu in
9071 hppa*64*|ia64*)
9072 # +Z the default
9073 ;;
9074 *)
9075 lt_prog_compiler_pic='+Z'
9076 ;;
9077 esac
9078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9079 lt_prog_compiler_static='$wl-a ${wl}archive'
9080 ;;
9081
9082 irix5* | irix6* | nonstopux*)
9083 lt_prog_compiler_wl='-Wl,'
9084 # PIC (with -KPIC) is the default.
9085 lt_prog_compiler_static='-non_shared'
9086 ;;
9087
9088 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9089 case $cc_basename in
9090 # old Intel for x86_64, which still supported -KPIC.
9091 ecc*)
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-KPIC'
9094 lt_prog_compiler_static='-static'
9095 ;;
9096 # icc used to be incompatible with GCC.
9097 # ICC 10 doesn't accept -KPIC any more.
9098 icc* | ifort*)
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_pic='-fPIC'
9101 lt_prog_compiler_static='-static'
9102 ;;
9103 # Lahey Fortran 8.1.
9104 lf95*)
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='--shared'
9107 lt_prog_compiler_static='--static'
9108 ;;
9109 nagfor*)
9110 # NAG Fortran compiler
9111 lt_prog_compiler_wl='-Wl,-Wl,,'
9112 lt_prog_compiler_pic='-PIC'
9113 lt_prog_compiler_static='-Bstatic'
9114 ;;
9115 tcc*)
9116 # Fabrice Bellard et al's Tiny C Compiler
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_pic='-fPIC'
9119 lt_prog_compiler_static='-static'
9120 ;;
9121 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9122 # Portland Group compilers (*not* the Pentium gcc compiler,
9123 # which looks to be a dead project)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-fpic'
9126 lt_prog_compiler_static='-Bstatic'
9127 ;;
9128 ccc*)
9129 lt_prog_compiler_wl='-Wl,'
9130 # All Alpha code is PIC.
9131 lt_prog_compiler_static='-non_shared'
9132 ;;
9133 xl* | bgxl* | bgf* | mpixl*)
9134 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-qpic'
9137 lt_prog_compiler_static='-qstaticlink'
9138 ;;
9139 *)
9140 case `$CC -V 2>&1 | $SED 5q` in
9141 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9145 lt_prog_compiler_wl=''
9146 ;;
9147 *Sun\ F* | *Sun*Fortran*)
9148 lt_prog_compiler_pic='-KPIC'
9149 lt_prog_compiler_static='-Bstatic'
9150 lt_prog_compiler_wl='-Qoption ld '
9151 ;;
9152 *Sun\ C*)
9153 # Sun C 5.9
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Wl,'
9157 ;;
9158 *Intel*\ [CF]*Compiler*)
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_pic='-fPIC'
9161 lt_prog_compiler_static='-static'
9162 ;;
9163 *Portland\ Group*)
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fpic'
9166 lt_prog_compiler_static='-Bstatic'
9167 ;;
9168 esac
9169 ;;
9170 esac
9171 ;;
9172
9173 newsos6)
9174 lt_prog_compiler_pic='-KPIC'
9175 lt_prog_compiler_static='-Bstatic'
9176 ;;
9177
9178 *nto* | *qnx*)
9179 # QNX uses GNU C++, but need to define -shared option too, otherwise
9180 # it will coredump.
9181 lt_prog_compiler_pic='-fPIC -shared'
9182 ;;
9183
9184 osf3* | osf4* | osf5*)
9185 lt_prog_compiler_wl='-Wl,'
9186 # All OSF/1 code is PIC.
9187 lt_prog_compiler_static='-non_shared'
9188 ;;
9189
9190 rdos*)
9191 lt_prog_compiler_static='-non_shared'
9192 ;;
9193
9194 solaris*)
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 case $cc_basename in
9198 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9199 lt_prog_compiler_wl='-Qoption ld ';;
9200 *)
9201 lt_prog_compiler_wl='-Wl,';;
9202 esac
9203 ;;
9204
9205 sunos4*)
9206 lt_prog_compiler_wl='-Qoption ld '
9207 lt_prog_compiler_pic='-PIC'
9208 lt_prog_compiler_static='-Bstatic'
9209 ;;
9210
9211 sysv4 | sysv4.2uw2* | sysv4.3*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 ;;
9216
9217 sysv4*MP*)
9218 if test -d /usr/nec; then
9219 lt_prog_compiler_pic='-Kconform_pic'
9220 lt_prog_compiler_static='-Bstatic'
9221 fi
9222 ;;
9223
9224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-Bstatic'
9228 ;;
9229
9230 unicos*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_can_build_shared=no
9233 ;;
9234
9235 uts4*)
9236 lt_prog_compiler_pic='-pic'
9237 lt_prog_compiler_static='-Bstatic'
9238 ;;
9239
9240 *)
9241 lt_prog_compiler_can_build_shared=no
9242 ;;
9243 esac
9244 fi
9245
9246 case $host_os in
9247 # For platforms that do not support PIC, -DPIC is meaningless:
9248 *djgpp*)
9249 lt_prog_compiler_pic=
9250 ;;
9251 *)
9252 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9253 ;;
9254 esac
9255
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9257 printf %s "checking for $compiler option to produce PIC... " >&6; }
9258 if test ${lt_cv_prog_compiler_pic+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else $as_nop
9262 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9263 fi
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9265 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9266 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9267
9268 #
9269 # Check to make sure the PIC flag actually works.
9270 #
9271 if test -n "$lt_prog_compiler_pic"; then
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9273 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9274 if test ${lt_cv_prog_compiler_pic_works+y}
9275 then :
9276 printf %s "(cached) " >&6
9277 else $as_nop
9278 lt_cv_prog_compiler_pic_works=no
9279 ac_outfile=conftest.$ac_objext
9280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9281 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9282 # Insert the option either (1) after the last *FLAGS variable, or
9283 # (2) before a word containing "conftest.", or (3) at the end.
9284 # Note that $ac_compile itself does not contain backslashes and begins
9285 # with a dollar sign (not a hyphen), so the echo should work correctly.
9286 # The option is referenced via a variable to avoid confusing sed.
9287 lt_compile=`echo "$ac_compile" | $SED \
9288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9290 -e 's:$: $lt_compiler_flag:'`
9291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9292 (eval "$lt_compile" 2>conftest.err)
9293 ac_status=$?
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 if (exit $ac_status) && test -s "$ac_outfile"; then
9297 # The compiler can only warn and ignore the option if not recognized
9298 # So say no if there are warnings other than the usual output.
9299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9302 lt_cv_prog_compiler_pic_works=yes
9303 fi
9304 fi
9305 $RM conftest*
9306
9307 fi
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9309 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9310
9311 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9312 case $lt_prog_compiler_pic in
9313 "" | " "*) ;;
9314 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9315 esac
9316 else
9317 lt_prog_compiler_pic=
9318 lt_prog_compiler_can_build_shared=no
9319 fi
9320
9321 fi
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 #
9334 # Check to make sure the static flag actually works.
9335 #
9336 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9338 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9339 if test ${lt_cv_prog_compiler_static_works+y}
9340 then :
9341 printf %s "(cached) " >&6
9342 else $as_nop
9343 lt_cv_prog_compiler_static_works=no
9344 save_LDFLAGS=$LDFLAGS
9345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9348 # The linker can only warn and ignore the option if not recognized
9349 # So say no if there are warnings
9350 if test -s conftest.err; then
9351 # Append any errors to the config.log.
9352 cat conftest.err 1>&5
9353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9355 if diff conftest.exp conftest.er2 >/dev/null; then
9356 lt_cv_prog_compiler_static_works=yes
9357 fi
9358 else
9359 lt_cv_prog_compiler_static_works=yes
9360 fi
9361 fi
9362 $RM -r conftest*
9363 LDFLAGS=$save_LDFLAGS
9364
9365 fi
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9367 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9368
9369 if test yes = "$lt_cv_prog_compiler_static_works"; then
9370 :
9371 else
9372 lt_prog_compiler_static=
9373 fi
9374
9375
9376
9377
9378
9379
9380
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9382 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9383 if test ${lt_cv_prog_compiler_c_o+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else $as_nop
9387 lt_cv_prog_compiler_c_o=no
9388 $RM -r conftest 2>/dev/null
9389 mkdir conftest
9390 cd conftest
9391 mkdir out
9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9393
9394 lt_compiler_flag="-o out/conftest2.$ac_objext"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 lt_compile=`echo "$ac_compile" | $SED \
9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402 -e 's:$: $lt_compiler_flag:'`
9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9404 (eval "$lt_compile" 2>out/conftest.err)
9405 ac_status=$?
9406 cat out/conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409 then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_c_o=yes
9416 fi
9417 fi
9418 chmod u+w . 2>&5
9419 $RM conftest*
9420 # SGI C++ compiler will create directory out/ii_files/ for
9421 # template instantiation
9422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423 $RM out/* && rmdir out
9424 cd ..
9425 $RM -r conftest
9426 $RM conftest*
9427
9428 fi
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9430 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9431
9432
9433
9434
9435
9436
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9438 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9439 if test ${lt_cv_prog_compiler_c_o+y}
9440 then :
9441 printf %s "(cached) " >&6
9442 else $as_nop
9443 lt_cv_prog_compiler_c_o=no
9444 $RM -r conftest 2>/dev/null
9445 mkdir conftest
9446 cd conftest
9447 mkdir out
9448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9449
9450 lt_compiler_flag="-o out/conftest2.$ac_objext"
9451 # Insert the option either (1) after the last *FLAGS variable, or
9452 # (2) before a word containing "conftest.", or (3) at the end.
9453 # Note that $ac_compile itself does not contain backslashes and begins
9454 # with a dollar sign (not a hyphen), so the echo should work correctly.
9455 lt_compile=`echo "$ac_compile" | $SED \
9456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9458 -e 's:$: $lt_compiler_flag:'`
9459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9460 (eval "$lt_compile" 2>out/conftest.err)
9461 ac_status=$?
9462 cat out/conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9465 then
9466 # The compiler can only warn and ignore the option if not recognized
9467 # So say no if there are warnings
9468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9471 lt_cv_prog_compiler_c_o=yes
9472 fi
9473 fi
9474 chmod u+w . 2>&5
9475 $RM conftest*
9476 # SGI C++ compiler will create directory out/ii_files/ for
9477 # template instantiation
9478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9479 $RM out/* && rmdir out
9480 cd ..
9481 $RM -r conftest
9482 $RM conftest*
9483
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9486 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9487
9488
9489
9490
9491 hard_links=nottested
9492 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9493 # do not overwrite the value of need_locks provided by the user
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9495 printf %s "checking if we can lock with hard links... " >&6; }
9496 hard_links=yes
9497 $RM conftest*
9498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9499 touch conftest.a
9500 ln conftest.a conftest.b 2>&5 || hard_links=no
9501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9503 printf "%s\n" "$hard_links" >&6; }
9504 if test no = "$hard_links"; then
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9506 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9507 need_locks=warn
9508 fi
9509 else
9510 need_locks=no
9511 fi
9512
9513
9514
9515
9516
9517
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9519 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9520
9521 runpath_var=
9522 allow_undefined_flag=
9523 always_export_symbols=no
9524 archive_cmds=
9525 archive_expsym_cmds=
9526 compiler_needs_object=no
9527 enable_shared_with_static_runtimes=no
9528 export_dynamic_flag_spec=
9529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9530 hardcode_automatic=no
9531 hardcode_direct=no
9532 hardcode_direct_absolute=no
9533 hardcode_libdir_flag_spec=
9534 hardcode_libdir_separator=
9535 hardcode_minus_L=no
9536 hardcode_shlibpath_var=unsupported
9537 inherit_rpath=no
9538 link_all_deplibs=unknown
9539 module_cmds=
9540 module_expsym_cmds=
9541 old_archive_from_new_cmds=
9542 old_archive_from_expsyms_cmds=
9543 thread_safe_flag_spec=
9544 whole_archive_flag_spec=
9545 # include_expsyms should be a list of space-separated symbols to be *always*
9546 # included in the symbol list
9547 include_expsyms=
9548 # exclude_expsyms can be an extended regexp of symbols to exclude
9549 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9550 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9551 # as well as any symbol that contains 'd'.
9552 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9554 # platforms (ab)use it in PIC code, but their linkers get confused if
9555 # the symbol is explicitly referenced. Since portable code cannot
9556 # rely on this symbol name, it's probably fine to never include it in
9557 # preloaded symbol tables.
9558 # Exclude shared library initialization/finalization symbols.
9559 extract_expsyms_cmds=
9560
9561 case $host_os in
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9564 # When not using gcc, we currently assume that we are using
9565 # Microsoft Visual C++ or Intel C++ Compiler.
9566 if test yes != "$GCC"; then
9567 with_gnu_ld=no
9568 fi
9569 ;;
9570 interix*)
9571 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9572 with_gnu_ld=yes
9573 ;;
9574 openbsd* | bitrig*)
9575 with_gnu_ld=no
9576 ;;
9577 esac
9578
9579 ld_shlibs=yes
9580
9581 # On some targets, GNU ld is compatible enough with the native linker
9582 # that we're better off using the native interface for both.
9583 lt_use_gnu_ld_interface=no
9584 if test yes = "$with_gnu_ld"; then
9585 case $host_os in
9586 aix*)
9587 # The AIX port of GNU ld has always aspired to compatibility
9588 # with the native linker. However, as the warning in the GNU ld
9589 # block says, versions before 2.19.5* couldn't really create working
9590 # shared libraries, regardless of the interface used.
9591 case `$LD -v 2>&1` in
9592 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9593 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9594 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9595 *)
9596 lt_use_gnu_ld_interface=yes
9597 ;;
9598 esac
9599 ;;
9600 *)
9601 lt_use_gnu_ld_interface=yes
9602 ;;
9603 esac
9604 fi
9605
9606 if test yes = "$lt_use_gnu_ld_interface"; then
9607 # If archive_cmds runs LD, not CC, wlarc should be empty
9608 wlarc='$wl'
9609
9610 # Set some defaults for GNU ld with shared library support. These
9611 # are reset later if shared libraries are not supported. Putting them
9612 # here allows them to be overridden if necessary.
9613 runpath_var=LD_RUN_PATH
9614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9615 export_dynamic_flag_spec='$wl--export-dynamic'
9616 # ancient GNU ld didn't support --whole-archive et. al.
9617 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9618 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9619 else
9620 whole_archive_flag_spec=
9621 fi
9622 supports_anon_versioning=no
9623 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9624 *GNU\ gold*) supports_anon_versioning=yes ;;
9625 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9628 *\ 2.11.*) ;; # other 2.11 versions
9629 *) supports_anon_versioning=yes ;;
9630 esac
9631
9632 # See if GNU ld supports shared libraries.
9633 case $host_os in
9634 aix[3-9]*)
9635 # On AIX/PPC, the GNU linker is very broken
9636 if test ia64 != "$host_cpu"; then
9637 ld_shlibs=no
9638 cat <<_LT_EOF 1>&2
9639
9640 *** Warning: the GNU linker, at least up to release 2.19, is reported
9641 *** to be unable to reliably create shared libraries on AIX.
9642 *** Therefore, libtool is disabling shared libraries support. If you
9643 *** really care for shared libraries, you may want to install binutils
9644 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9645 *** You will then need to restart the configuration process.
9646
9647 _LT_EOF
9648 fi
9649 ;;
9650
9651 amigaos*)
9652 case $host_cpu in
9653 powerpc)
9654 # see comment about AmigaOS4 .so support
9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656 archive_expsym_cmds=''
9657 ;;
9658 m68k)
9659 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)'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 ;;
9663 esac
9664 ;;
9665
9666 beos*)
9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668 allow_undefined_flag=unsupported
9669 # Joseph Beckenbach <[email protected]> says some releases of gcc
9670 # support --undefined. This deserves some investigation. FIXME
9671 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9672 else
9673 ld_shlibs=no
9674 fi
9675 ;;
9676
9677 cygwin* | mingw* | pw32* | cegcc*)
9678 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9679 # as there is no search path for DLLs.
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 export_dynamic_flag_spec='$wl--export-all-symbols'
9682 allow_undefined_flag=unsupported
9683 always_export_symbols=no
9684 enable_shared_with_static_runtimes=yes
9685 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'
9686 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9687
9688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9690 # If the export-symbols file already is a .def file, use it as
9691 # is; otherwise, prepend EXPORTS...
9692 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9693 cp $export_symbols $output_objdir/$soname.def;
9694 else
9695 echo EXPORTS > $output_objdir/$soname.def;
9696 cat $export_symbols >> $output_objdir/$soname.def;
9697 fi~
9698 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9699 else
9700 ld_shlibs=no
9701 fi
9702 ;;
9703
9704 haiku*)
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9706 link_all_deplibs=yes
9707 ;;
9708
9709 os2*)
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_minus_L=yes
9712 allow_undefined_flag=unsupported
9713 shrext_cmds=.dll
9714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9717 $ECHO EXPORTS >> $output_objdir/$libname.def~
9718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9720 emximp -o $lib $output_objdir/$libname.def'
9721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9724 $ECHO EXPORTS >> $output_objdir/$libname.def~
9725 prefix_cmds="$SED"~
9726 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9727 prefix_cmds="$prefix_cmds -e 1d";
9728 fi~
9729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9732 emximp -o $lib $output_objdir/$libname.def'
9733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9734 enable_shared_with_static_runtimes=yes
9735 file_list_spec='@'
9736 ;;
9737
9738 interix[3-9]*)
9739 hardcode_direct=no
9740 hardcode_shlibpath_var=no
9741 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9742 export_dynamic_flag_spec='$wl-E'
9743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9744 # Instead, shared libraries are loaded at an image base (0x10000000 by
9745 # default) and relocated if they conflict, which is a slow very memory
9746 # consuming and fragmenting process. To avoid this, we pick a random,
9747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9750 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'
9751 ;;
9752
9753 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9754 tmp_diet=no
9755 if test linux-dietlibc = "$host_os"; then
9756 case $cc_basename in
9757 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9758 esac
9759 fi
9760 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9761 && test no = "$tmp_diet"
9762 then
9763 tmp_addflag=' $pic_flag'
9764 tmp_sharedflag='-shared'
9765 case $cc_basename,$host_cpu in
9766 pgcc*) # Portland Group C compiler
9767 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'
9768 tmp_addflag=' $pic_flag'
9769 ;;
9770 pgf77* | pgf90* | pgf95* | pgfortran*)
9771 # Portland Group f77 and f90 compilers
9772 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'
9773 tmp_addflag=' $pic_flag -Mnomain' ;;
9774 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9775 tmp_addflag=' -i_dynamic' ;;
9776 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9777 tmp_addflag=' -i_dynamic -nofor_main' ;;
9778 ifc* | ifort*) # Intel Fortran compiler
9779 tmp_addflag=' -nofor_main' ;;
9780 lf95*) # Lahey Fortran 8.1
9781 whole_archive_flag_spec=
9782 tmp_sharedflag='--shared' ;;
9783 nagfor*) # NAGFOR 5.3
9784 tmp_sharedflag='-Wl,-shared' ;;
9785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9786 tmp_sharedflag='-qmkshrobj'
9787 tmp_addflag= ;;
9788 nvcc*) # Cuda Compiler Driver 2.2
9789 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'
9790 compiler_needs_object=yes
9791 ;;
9792 esac
9793 case `$CC -V 2>&1 | $SED 5q` in
9794 *Sun\ C*) # Sun C 5.9
9795 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'
9796 compiler_needs_object=yes
9797 tmp_sharedflag='-G' ;;
9798 *Sun\ F*) # Sun Fortran 8.3
9799 tmp_sharedflag='-G' ;;
9800 esac
9801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9802
9803 if test yes = "$supports_anon_versioning"; then
9804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9805 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9806 echo "local: *; };" >> $output_objdir/$libname.ver~
9807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9808 fi
9809
9810 case $cc_basename in
9811 tcc*)
9812 export_dynamic_flag_spec='-rdynamic'
9813 ;;
9814 xlf* | bgf* | bgxlf* | mpixlf*)
9815 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9816 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9818 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9819 if test yes = "$supports_anon_versioning"; then
9820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822 echo "local: *; };" >> $output_objdir/$libname.ver~
9823 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9824 fi
9825 ;;
9826 esac
9827 else
9828 ld_shlibs=no
9829 fi
9830 ;;
9831
9832 netbsd*)
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9835 wlarc=
9836 else
9837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9838 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9839 fi
9840 ;;
9841
9842 solaris*)
9843 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9844 ld_shlibs=no
9845 cat <<_LT_EOF 1>&2
9846
9847 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9848 *** create shared libraries on Solaris systems. Therefore, libtool
9849 *** is disabling shared libraries support. We urge you to upgrade GNU
9850 *** binutils to release 2.9.1 or newer. Another option is to modify
9851 *** your PATH or compiler configuration so that the native linker is
9852 *** used, and then restart.
9853
9854 _LT_EOF
9855 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9858 else
9859 ld_shlibs=no
9860 fi
9861 ;;
9862
9863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9864 case `$LD -v 2>&1` in
9865 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9866 ld_shlibs=no
9867 cat <<_LT_EOF 1>&2
9868
9869 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9870 *** reliably create shared libraries on SCO systems. Therefore, libtool
9871 *** is disabling shared libraries support. We urge you to upgrade GNU
9872 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9873 *** your PATH or compiler configuration so that the native linker is
9874 *** used, and then restart.
9875
9876 _LT_EOF
9877 ;;
9878 *)
9879 # For security reasons, it is highly recommended that you always
9880 # use absolute paths for naming shared libraries, and exclude the
9881 # DT_RUNPATH tag from executables and libraries. But doing so
9882 # requires that you compile everything twice, which is a pain.
9883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9887 else
9888 ld_shlibs=no
9889 fi
9890 ;;
9891 esac
9892 ;;
9893
9894 sunos4*)
9895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896 wlarc=
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 *)
9902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9905 else
9906 ld_shlibs=no
9907 fi
9908 ;;
9909 esac
9910
9911 if test no = "$ld_shlibs"; then
9912 runpath_var=
9913 hardcode_libdir_flag_spec=
9914 export_dynamic_flag_spec=
9915 whole_archive_flag_spec=
9916 fi
9917 else
9918 # PORTME fill in a description of your system's linker (not GNU ld)
9919 case $host_os in
9920 aix3*)
9921 allow_undefined_flag=unsupported
9922 always_export_symbols=yes
9923 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'
9924 # Note: this linker hardcodes the directories in LIBPATH if there
9925 # are no directories specified by -L.
9926 hardcode_minus_L=yes
9927 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9928 # Neither direct hardcoding nor static linking is supported with a
9929 # broken collect2.
9930 hardcode_direct=unsupported
9931 fi
9932 ;;
9933
9934 aix[4-9]*)
9935 if test ia64 = "$host_cpu"; then
9936 # On IA64, the linker does run time linking by default, so we don't
9937 # have to do anything special.
9938 aix_use_runtimelinking=no
9939 exp_sym_flag='-Bexport'
9940 no_entry_flag=
9941 else
9942 # If we're using GNU nm, then we don't want the "-C" option.
9943 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9944 # Without the "-l" option, or with the "-B" option, AIX nm treats
9945 # weak defined symbols like other global defined symbols, whereas
9946 # GNU nm marks them as "W".
9947 # While the 'weak' keyword is ignored in the Export File, we need
9948 # it in the Import File for the 'aix-soname' feature, so we have
9949 # to replace the "-B" option with "-P" for AIX nm.
9950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9951 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'
9952 else
9953 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'
9954 fi
9955 aix_use_runtimelinking=no
9956
9957 # Test if we are trying to use run time linking or normal
9958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9959 # have runtime linking enabled, and use it for executables.
9960 # For shared libraries, we enable/disable runtime linking
9961 # depending on the kind of the shared library created -
9962 # when "with_aix_soname,aix_use_runtimelinking" is:
9963 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9964 # "aix,yes" lib.so shared, rtl:yes, for executables
9965 # lib.a static archive
9966 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9967 # lib.a(lib.so.V) shared, rtl:no, for executables
9968 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9969 # lib.a(lib.so.V) shared, rtl:no
9970 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9971 # lib.a static archive
9972 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9973 for ld_flag in $LDFLAGS; do
9974 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9975 aix_use_runtimelinking=yes
9976 break
9977 fi
9978 done
9979 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9980 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9981 # so we don't have lib.a shared libs to link our executables.
9982 # We have to force runtime linking in this case.
9983 aix_use_runtimelinking=yes
9984 LDFLAGS="$LDFLAGS -Wl,-brtl"
9985 fi
9986 ;;
9987 esac
9988
9989 exp_sym_flag='-bexport'
9990 no_entry_flag='-bnoentry'
9991 fi
9992
9993 # When large executables or shared objects are built, AIX ld can
9994 # have problems creating the table of contents. If linking a library
9995 # or program results in "error TOC overflow" add -mminimal-toc to
9996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9998
9999 archive_cmds=''
10000 hardcode_direct=yes
10001 hardcode_direct_absolute=yes
10002 hardcode_libdir_separator=':'
10003 link_all_deplibs=yes
10004 file_list_spec='$wl-f,'
10005 case $with_aix_soname,$aix_use_runtimelinking in
10006 aix,*) ;; # traditional, no import file
10007 svr4,* | *,yes) # use import file
10008 # The Import File defines what to hardcode.
10009 hardcode_direct=no
10010 hardcode_direct_absolute=no
10011 ;;
10012 esac
10013
10014 if test yes = "$GCC"; then
10015 case $host_os in aix4.[012]|aix4.[012].*)
10016 # We only want to do this on AIX 4.2 and lower, the check
10017 # below for broken collect2 doesn't work under 4.3+
10018 collect2name=`$CC -print-prog-name=collect2`
10019 if test -f "$collect2name" &&
10020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10021 then
10022 # We have reworked collect2
10023 :
10024 else
10025 # We have old collect2
10026 hardcode_direct=unsupported
10027 # It fails to find uninstalled libraries when the uninstalled
10028 # path is not listed in the libpath. Setting hardcode_minus_L
10029 # to unsupported forces relinking
10030 hardcode_minus_L=yes
10031 hardcode_libdir_flag_spec='-L$libdir'
10032 hardcode_libdir_separator=
10033 fi
10034 ;;
10035 esac
10036 shared_flag='-shared'
10037 if test yes = "$aix_use_runtimelinking"; then
10038 shared_flag="$shared_flag "'$wl-G'
10039 fi
10040 # Need to ensure runtime linking is disabled for the traditional
10041 # shared library, or the linker may eventually find shared libraries
10042 # /with/ Import File - we do not want to mix them.
10043 shared_flag_aix='-shared'
10044 shared_flag_svr4='-shared $wl-G'
10045 else
10046 # not using gcc
10047 if test ia64 = "$host_cpu"; then
10048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10049 # chokes on -Wl,-G. The following line is correct:
10050 shared_flag='-G'
10051 else
10052 if test yes = "$aix_use_runtimelinking"; then
10053 shared_flag='$wl-G'
10054 else
10055 shared_flag='$wl-bM:SRE'
10056 fi
10057 shared_flag_aix='$wl-bM:SRE'
10058 shared_flag_svr4='$wl-G'
10059 fi
10060 fi
10061
10062 export_dynamic_flag_spec='$wl-bexpall'
10063 # It seems that -bexpall does not export symbols beginning with
10064 # underscore (_), so it is better to generate a list of symbols to export.
10065 always_export_symbols=yes
10066 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10067 # Warning - without using the other runtime loading flags (-brtl),
10068 # -berok will link without error, but may produce a broken library.
10069 allow_undefined_flag='-berok'
10070 # Determine the default libpath from the value encoded in an
10071 # empty executable.
10072 if test set = "${lt_cv_aix_libpath+set}"; then
10073 aix_libpath=$lt_cv_aix_libpath
10074 else
10075 if test ${lt_cv_aix_libpath_+y}
10076 then :
10077 printf %s "(cached) " >&6
10078 else $as_nop
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081
10082 int
10083 main (void)
10084 {
10085
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"
10091 then :
10092
10093 lt_aix_libpath_sed='
10094 /Import File Strings/,/^$/ {
10095 /^0/ {
10096 s/^0 *\([^ ]*\) *$/\1/
10097 p
10098 }
10099 }'
10100 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 # Check for a 64-bit object if we didn't find anything.
10102 if test -z "$lt_cv_aix_libpath_"; then
10103 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10104 fi
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test -z "$lt_cv_aix_libpath_"; then
10109 lt_cv_aix_libpath_=/usr/lib:/lib
10110 fi
10111
10112 fi
10113
10114 aix_libpath=$lt_cv_aix_libpath_
10115 fi
10116
10117 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10118 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
10119 else
10120 if test ia64 = "$host_cpu"; then
10121 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10122 allow_undefined_flag="-z nodefs"
10123 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"
10124 else
10125 # Determine the default libpath from the value encoded in an
10126 # empty executable.
10127 if test set = "${lt_cv_aix_libpath+set}"; then
10128 aix_libpath=$lt_cv_aix_libpath
10129 else
10130 if test ${lt_cv_aix_libpath_+y}
10131 then :
10132 printf %s "(cached) " >&6
10133 else $as_nop
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136
10137 int
10138 main (void)
10139 {
10140
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"
10146 then :
10147
10148 lt_aix_libpath_sed='
10149 /Import File Strings/,/^$/ {
10150 /^0/ {
10151 s/^0 *\([^ ]*\) *$/\1/
10152 p
10153 }
10154 }'
10155 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156 # Check for a 64-bit object if we didn't find anything.
10157 if test -z "$lt_cv_aix_libpath_"; then
10158 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10159 fi
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10162 conftest$ac_exeext conftest.$ac_ext
10163 if test -z "$lt_cv_aix_libpath_"; then
10164 lt_cv_aix_libpath_=/usr/lib:/lib
10165 fi
10166
10167 fi
10168
10169 aix_libpath=$lt_cv_aix_libpath_
10170 fi
10171
10172 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10173 # Warning - without using the other run time loading flags,
10174 # -berok will link without error, but may produce a broken library.
10175 no_undefined_flag=' $wl-bernotok'
10176 allow_undefined_flag=' $wl-berok'
10177 if test yes = "$with_gnu_ld"; then
10178 # We only use this code for GNU lds that support --whole-archive.
10179 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10180 else
10181 # Exported symbols can be pulled into shared objects from archives
10182 whole_archive_flag_spec='$convenience'
10183 fi
10184 archive_cmds_need_lc=yes
10185 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10186 # -brtl affects multiple linker settings, -berok does not and is overridden later
10187 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10188 if test svr4 != "$with_aix_soname"; then
10189 # This is similar to how AIX traditionally builds its shared libraries.
10190 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'
10191 fi
10192 if test aix != "$with_aix_soname"; then
10193 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'
10194 else
10195 # used by -dlpreopen to get the symbols
10196 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10197 fi
10198 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10199 fi
10200 fi
10201 ;;
10202
10203 amigaos*)
10204 case $host_cpu in
10205 powerpc)
10206 # see comment about AmigaOS4 .so support
10207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208 archive_expsym_cmds=''
10209 ;;
10210 m68k)
10211 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)'
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_minus_L=yes
10214 ;;
10215 esac
10216 ;;
10217
10218 bsdi[45]*)
10219 export_dynamic_flag_spec=-rdynamic
10220 ;;
10221
10222 cygwin* | mingw* | pw32* | cegcc*)
10223 # When not using gcc, we currently assume that we are using
10224 # Microsoft Visual C++ or Intel C++ Compiler.
10225 # hardcode_libdir_flag_spec is actually meaningless, as there is
10226 # no search path for DLLs.
10227 case $cc_basename in
10228 cl* | icl*)
10229 # Native MSVC or ICC
10230 hardcode_libdir_flag_spec=' '
10231 allow_undefined_flag=unsupported
10232 always_export_symbols=yes
10233 file_list_spec='@'
10234 # Tell ltmain to make .lib files, not .a files.
10235 libext=lib
10236 # Tell ltmain to make .dll files, not .so files.
10237 shrext_cmds=.dll
10238 # FIXME: Setting linknames here is a bad hack.
10239 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10240 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10241 cp "$export_symbols" "$output_objdir/$soname.def";
10242 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10243 else
10244 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10245 fi~
10246 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10247 linknames='
10248 # The linker will not automatically build a static lib if we build a DLL.
10249 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10250 enable_shared_with_static_runtimes=yes
10251 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10252 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10253 # Don't use ranlib
10254 old_postinstall_cmds='chmod 644 $oldlib'
10255 postlink_cmds='lt_outputfile="@OUTPUT@"~
10256 lt_tool_outputfile="@TOOL_OUTPUT@"~
10257 case $lt_outputfile in
10258 *.exe|*.EXE) ;;
10259 *)
10260 lt_outputfile=$lt_outputfile.exe
10261 lt_tool_outputfile=$lt_tool_outputfile.exe
10262 ;;
10263 esac~
10264 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10265 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10266 $RM "$lt_outputfile.manifest";
10267 fi'
10268 ;;
10269 *)
10270 # Assume MSVC and ICC wrapper
10271 hardcode_libdir_flag_spec=' '
10272 allow_undefined_flag=unsupported
10273 # Tell ltmain to make .lib files, not .a files.
10274 libext=lib
10275 # Tell ltmain to make .dll files, not .so files.
10276 shrext_cmds=.dll
10277 # FIXME: Setting linknames here is a bad hack.
10278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10279 # The linker will automatically build a .lib file if we build a DLL.
10280 old_archive_from_new_cmds='true'
10281 # FIXME: Should let the user specify the lib program.
10282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10283 enable_shared_with_static_runtimes=yes
10284 ;;
10285 esac
10286 ;;
10287
10288 darwin* | rhapsody*)
10289
10290
10291 archive_cmds_need_lc=no
10292 hardcode_direct=no
10293 hardcode_automatic=yes
10294 hardcode_shlibpath_var=unsupported
10295 if test yes = "$lt_cv_ld_force_load"; then
10296 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\"`'
10297
10298 else
10299 whole_archive_flag_spec=''
10300 fi
10301 link_all_deplibs=yes
10302 allow_undefined_flag=$_lt_dar_allow_undefined
10303 case $cc_basename in
10304 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10305 *) _lt_dar_can_shared=$GCC ;;
10306 esac
10307 if test yes = "$_lt_dar_can_shared"; then
10308 output_verbose_link_cmd=func_echo_all
10309 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10310 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10311 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"
10312 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"
10313
10314 else
10315 ld_shlibs=no
10316 fi
10317
10318 ;;
10319
10320 dgux*)
10321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_shlibpath_var=no
10324 ;;
10325
10326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10327 # support. Future versions do this automatically, but an explicit c++rt0.o
10328 # does not break anything, and helps significantly (at the cost of a little
10329 # extra space).
10330 freebsd2.2*)
10331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10332 hardcode_libdir_flag_spec='-R$libdir'
10333 hardcode_direct=yes
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10338 freebsd2.*)
10339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10346 freebsd* | dragonfly* | midnightbsd*)
10347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10348 hardcode_libdir_flag_spec='-R$libdir'
10349 hardcode_direct=yes
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 hpux9*)
10354 if test yes = "$GCC"; then
10355 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'
10356 else
10357 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'
10358 fi
10359 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10360 hardcode_libdir_separator=:
10361 hardcode_direct=yes
10362
10363 # hardcode_minus_L: Not really in the search PATH,
10364 # but as the default location of the library.
10365 hardcode_minus_L=yes
10366 export_dynamic_flag_spec='$wl-E'
10367 ;;
10368
10369 hpux10*)
10370 if test yes,no = "$GCC,$with_gnu_ld"; then
10371 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10372 else
10373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10374 fi
10375 if test no = "$with_gnu_ld"; then
10376 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10377 hardcode_libdir_separator=:
10378 hardcode_direct=yes
10379 hardcode_direct_absolute=yes
10380 export_dynamic_flag_spec='$wl-E'
10381 # hardcode_minus_L: Not really in the search PATH,
10382 # but as the default location of the library.
10383 hardcode_minus_L=yes
10384 fi
10385 ;;
10386
10387 hpux11*)
10388 if test yes,no = "$GCC,$with_gnu_ld"; then
10389 case $host_cpu in
10390 hppa*64*)
10391 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 ;;
10393 ia64*)
10394 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10395 ;;
10396 *)
10397 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10398 ;;
10399 esac
10400 else
10401 case $host_cpu in
10402 hppa*64*)
10403 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 ;;
10405 ia64*)
10406 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10407 ;;
10408 *)
10409
10410 # Older versions of the 11.00 compiler do not understand -b yet
10411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10413 printf %s "checking if $CC understands -b... " >&6; }
10414 if test ${lt_cv_prog_compiler__b+y}
10415 then :
10416 printf %s "(cached) " >&6
10417 else $as_nop
10418 lt_cv_prog_compiler__b=no
10419 save_LDFLAGS=$LDFLAGS
10420 LDFLAGS="$LDFLAGS -b"
10421 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10423 # The linker can only warn and ignore the option if not recognized
10424 # So say no if there are warnings
10425 if test -s conftest.err; then
10426 # Append any errors to the config.log.
10427 cat conftest.err 1>&5
10428 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10430 if diff conftest.exp conftest.er2 >/dev/null; then
10431 lt_cv_prog_compiler__b=yes
10432 fi
10433 else
10434 lt_cv_prog_compiler__b=yes
10435 fi
10436 fi
10437 $RM -r conftest*
10438 LDFLAGS=$save_LDFLAGS
10439
10440 fi
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10442 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10443
10444 if test yes = "$lt_cv_prog_compiler__b"; then
10445 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10446 else
10447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10448 fi
10449
10450 ;;
10451 esac
10452 fi
10453 if test no = "$with_gnu_ld"; then
10454 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10455 hardcode_libdir_separator=:
10456
10457 case $host_cpu in
10458 hppa*64*|ia64*)
10459 hardcode_direct=no
10460 hardcode_shlibpath_var=no
10461 ;;
10462 *)
10463 hardcode_direct=yes
10464 hardcode_direct_absolute=yes
10465 export_dynamic_flag_spec='$wl-E'
10466
10467 # hardcode_minus_L: Not really in the search PATH,
10468 # but as the default location of the library.
10469 hardcode_minus_L=yes
10470 ;;
10471 esac
10472 fi
10473 ;;
10474
10475 irix5* | irix6* | nonstopux*)
10476 if test yes = "$GCC"; then
10477 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'
10478 # Try to use the -exported_symbol ld option, if it does not
10479 # work, assume that -exports_file does not work either and
10480 # implicitly export all symbols.
10481 # This should be the same for all languages, so no per-tag cache variable.
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10483 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10484 if test ${lt_cv_irix_exported_symbol+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else $as_nop
10488 save_LDFLAGS=$LDFLAGS
10489 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492 int foo (void) { return 0; }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"
10495 then :
10496 lt_cv_irix_exported_symbol=yes
10497 else $as_nop
10498 lt_cv_irix_exported_symbol=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LDFLAGS=$save_LDFLAGS
10503 fi
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10505 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10506 if test yes = "$lt_cv_irix_exported_symbol"; then
10507 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'
10508 fi
10509 else
10510 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'
10511 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'
10512 fi
10513 archive_cmds_need_lc='no'
10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515 hardcode_libdir_separator=:
10516 inherit_rpath=yes
10517 link_all_deplibs=yes
10518 ;;
10519
10520 linux*)
10521 case $cc_basename in
10522 tcc*)
10523 # Fabrice Bellard et al's Tiny C Compiler
10524 ld_shlibs=yes
10525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10526 ;;
10527 esac
10528 ;;
10529
10530 netbsd*)
10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10533 else
10534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10535 fi
10536 hardcode_libdir_flag_spec='-R$libdir'
10537 hardcode_direct=yes
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 newsos6)
10542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543 hardcode_direct=yes
10544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10545 hardcode_libdir_separator=:
10546 hardcode_shlibpath_var=no
10547 ;;
10548
10549 *nto* | *qnx*)
10550 ;;
10551
10552 openbsd* | bitrig*)
10553 if test -f /usr/libexec/ld.so; then
10554 hardcode_direct=yes
10555 hardcode_shlibpath_var=no
10556 hardcode_direct_absolute=yes
10557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10560 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10561 export_dynamic_flag_spec='$wl-E'
10562 else
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10565 fi
10566 else
10567 ld_shlibs=no
10568 fi
10569 ;;
10570
10571 os2*)
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_minus_L=yes
10574 allow_undefined_flag=unsupported
10575 shrext_cmds=.dll
10576 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10579 $ECHO EXPORTS >> $output_objdir/$libname.def~
10580 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10581 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10582 emximp -o $lib $output_objdir/$libname.def'
10583 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10586 $ECHO EXPORTS >> $output_objdir/$libname.def~
10587 prefix_cmds="$SED"~
10588 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10589 prefix_cmds="$prefix_cmds -e 1d";
10590 fi~
10591 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10592 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10594 emximp -o $lib $output_objdir/$libname.def'
10595 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10596 enable_shared_with_static_runtimes=yes
10597 file_list_spec='@'
10598 ;;
10599
10600 osf3*)
10601 if test yes = "$GCC"; then
10602 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10603 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'
10604 else
10605 allow_undefined_flag=' -expect_unresolved \*'
10606 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'
10607 fi
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10610 hardcode_libdir_separator=:
10611 ;;
10612
10613 osf4* | osf5*) # as osf3* with the addition of -msym flag
10614 if test yes = "$GCC"; then
10615 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10616 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'
10617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10618 else
10619 allow_undefined_flag=' -expect_unresolved \*'
10620 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'
10621 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~
10622 $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'
10623
10624 # Both c and cxx compiler support -rpath directly
10625 hardcode_libdir_flag_spec='-rpath $libdir'
10626 fi
10627 archive_cmds_need_lc='no'
10628 hardcode_libdir_separator=:
10629 ;;
10630
10631 solaris*)
10632 no_undefined_flag=' -z defs'
10633 if test yes = "$GCC"; then
10634 wlarc='$wl'
10635 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637 $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'
10638 else
10639 case `$CC -V 2>&1` in
10640 *"Compilers 5.0"*)
10641 wlarc=''
10642 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645 ;;
10646 *)
10647 wlarc='$wl'
10648 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10651 ;;
10652 esac
10653 fi
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_shlibpath_var=no
10656 case $host_os in
10657 solaris2.[0-5] | solaris2.[0-5].*) ;;
10658 *)
10659 # The compiler driver will combine and reorder linker options,
10660 # but understands '-z linker_flag'. GCC discards it without '$wl',
10661 # but is careful enough not to reorder.
10662 # Supported since Solaris 2.6 (maybe 2.5.1?)
10663 if test yes = "$GCC"; then
10664 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10665 else
10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667 fi
10668 ;;
10669 esac
10670 link_all_deplibs=yes
10671 ;;
10672
10673 sunos4*)
10674 if test sequent = "$host_vendor"; then
10675 # Use $CC to link under sequent, because it throws in some extra .o
10676 # files that make .init and .fini sections work.
10677 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 else
10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10680 fi
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_direct=yes
10683 hardcode_minus_L=yes
10684 hardcode_shlibpath_var=no
10685 ;;
10686
10687 sysv4)
10688 case $host_vendor in
10689 sni)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=yes # is this really true???
10692 ;;
10693 siemens)
10694 ## LD is ld it makes a PLAMLIB
10695 ## CC just makes a GrossModule.
10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697 reload_cmds='$CC -r -o $output$reload_objs'
10698 hardcode_direct=no
10699 ;;
10700 motorola)
10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10703 ;;
10704 esac
10705 runpath_var='LD_RUN_PATH'
10706 hardcode_shlibpath_var=no
10707 ;;
10708
10709 sysv4.3*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_shlibpath_var=no
10712 export_dynamic_flag_spec='-Bexport'
10713 ;;
10714
10715 sysv4*MP*)
10716 if test -d /usr/nec; then
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var=no
10719 runpath_var=LD_RUN_PATH
10720 hardcode_runpath_var=yes
10721 ld_shlibs=yes
10722 fi
10723 ;;
10724
10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726 no_undefined_flag='$wl-z,text'
10727 archive_cmds_need_lc=no
10728 hardcode_shlibpath_var=no
10729 runpath_var='LD_RUN_PATH'
10730
10731 if test yes = "$GCC"; then
10732 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 fi
10738 ;;
10739
10740 sysv5* | sco3.2v5* | sco5v6*)
10741 # Note: We CANNOT use -z defs as we might desire, because we do not
10742 # link with -lc, and that would cause any symbols used from libc to
10743 # always be unresolved, which means just about no library would
10744 # ever link correctly. If we're not using GNU ld we use -z text
10745 # though, which does catch some bad symbols but isn't as heavy-handed
10746 # as -z defs.
10747 no_undefined_flag='$wl-z,text'
10748 allow_undefined_flag='$wl-z,nodefs'
10749 archive_cmds_need_lc=no
10750 hardcode_shlibpath_var=no
10751 hardcode_libdir_flag_spec='$wl-R,$libdir'
10752 hardcode_libdir_separator=':'
10753 link_all_deplibs=yes
10754 export_dynamic_flag_spec='$wl-Bexport'
10755 runpath_var='LD_RUN_PATH'
10756
10757 if test yes = "$GCC"; then
10758 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 else
10761 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 fi
10764 ;;
10765
10766 uts4*)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_shlibpath_var=no
10770 ;;
10771
10772 *)
10773 ld_shlibs=no
10774 ;;
10775 esac
10776
10777 if test sni = "$host_vendor"; then
10778 case $host in
10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780 export_dynamic_flag_spec='$wl-Blargedynsym'
10781 ;;
10782 esac
10783 fi
10784 fi
10785
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10787 printf "%s\n" "$ld_shlibs" >&6; }
10788 test no = "$ld_shlibs" && can_build_shared=no
10789
10790 with_gnu_ld=$with_gnu_ld
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806 #
10807 # Do we need to explicitly link libc?
10808 #
10809 case "x$archive_cmds_need_lc" in
10810 x|xyes)
10811 # Assume -lc should be added
10812 archive_cmds_need_lc=yes
10813
10814 if test yes,yes = "$GCC,$enable_shared"; then
10815 case $archive_cmds in
10816 *'~'*)
10817 # FIXME: we may have to deal with multi-command sequences.
10818 ;;
10819 '$CC '*)
10820 # Test whether the compiler implicitly links with -lc since on some
10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822 # to ld, don't add -lc before -lgcc.
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10824 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10825 if test ${lt_cv_archive_cmds_need_lc+y}
10826 then :
10827 printf %s "(cached) " >&6
10828 else $as_nop
10829 $RM conftest*
10830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10831
10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10833 (eval $ac_compile) 2>&5
10834 ac_status=$?
10835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; } 2>conftest.err; then
10837 soname=conftest
10838 lib=conftest
10839 libobjs=conftest.$ac_objext
10840 deplibs=
10841 wl=$lt_prog_compiler_wl
10842 pic_flag=$lt_prog_compiler_pic
10843 compiler_flags=-v
10844 linker_flags=-v
10845 verstring=
10846 output_objdir=.
10847 libname=conftest
10848 lt_save_allow_undefined_flag=$allow_undefined_flag
10849 allow_undefined_flag=
10850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10852 ac_status=$?
10853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854 test $ac_status = 0; }
10855 then
10856 lt_cv_archive_cmds_need_lc=no
10857 else
10858 lt_cv_archive_cmds_need_lc=yes
10859 fi
10860 allow_undefined_flag=$lt_save_allow_undefined_flag
10861 else
10862 cat conftest.err 1>&5
10863 fi
10864 $RM conftest*
10865
10866 fi
10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10868 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10870 ;;
10871 esac
10872 fi
10873 ;;
10874 esac
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11028 printf %s "checking dynamic linker characteristics... " >&6; }
11029
11030 if test yes = "$GCC"; then
11031 case $host_os in
11032 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11033 *) lt_awk_arg='/^libraries:/' ;;
11034 esac
11035 case $host_os in
11036 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11037 *) lt_sed_strip_eq='s|=/|/|g' ;;
11038 esac
11039 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11040 case $lt_search_path_spec in
11041 *\;*)
11042 # if the path contains ";" then we assume it to be the separator
11043 # otherwise default to the standard path separator (i.e. ":") - it is
11044 # assumed that no part of a normal pathname contains ";" but that should
11045 # okay in the real world where ";" in dirpaths is itself problematic.
11046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11047 ;;
11048 *)
11049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11050 ;;
11051 esac
11052 # Ok, now we have the path, separated by spaces, we can step through it
11053 # and add multilib dir if necessary...
11054 lt_tmp_lt_search_path_spec=
11055 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11056 # ...but if some path component already ends with the multilib dir we assume
11057 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11058 case "$lt_multi_os_dir; $lt_search_path_spec " in
11059 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11060 lt_multi_os_dir=
11061 ;;
11062 esac
11063 for lt_sys_path in $lt_search_path_spec; do
11064 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11066 elif test -n "$lt_multi_os_dir"; then
11067 test -d "$lt_sys_path" && \
11068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11069 fi
11070 done
11071 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11072 BEGIN {RS = " "; FS = "/|\n";} {
11073 lt_foo = "";
11074 lt_count = 0;
11075 for (lt_i = NF; lt_i > 0; lt_i--) {
11076 if ($lt_i != "" && $lt_i != ".") {
11077 if ($lt_i == "..") {
11078 lt_count++;
11079 } else {
11080 if (lt_count == 0) {
11081 lt_foo = "/" $lt_i lt_foo;
11082 } else {
11083 lt_count--;
11084 }
11085 }
11086 }
11087 }
11088 if (lt_foo != "") { lt_freq[lt_foo]++; }
11089 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11090 }'`
11091 # AWK program above erroneously prepends '/' to C:/dos/paths
11092 # for these hosts.
11093 case $host_os in
11094 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11095 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11096 esac
11097 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11098 else
11099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11100 fi
11101 library_names_spec=
11102 libname_spec='lib$name'
11103 soname_spec=
11104 shrext_cmds=.so
11105 postinstall_cmds=
11106 postuninstall_cmds=
11107 finish_cmds=
11108 finish_eval=
11109 shlibpath_var=
11110 shlibpath_overrides_runpath=unknown
11111 version_type=none
11112 dynamic_linker="$host_os ld.so"
11113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11114 need_lib_prefix=unknown
11115 hardcode_into_libs=no
11116
11117 # when you set need_version to no, make sure it does not cause -set_version
11118 # flags to be left without arguments
11119 need_version=unknown
11120
11121
11122
11123 case $host_os in
11124 aix3*)
11125 version_type=linux # correct to gnu/linux during the next big refactor
11126 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11127 shlibpath_var=LIBPATH
11128
11129 # AIX 3 has no versioning support, so we append a major version to the name.
11130 soname_spec='$libname$release$shared_ext$major'
11131 ;;
11132
11133 aix[4-9]*)
11134 version_type=linux # correct to gnu/linux during the next big refactor
11135 need_lib_prefix=no
11136 need_version=no
11137 hardcode_into_libs=yes
11138 if test ia64 = "$host_cpu"; then
11139 # AIX 5 supports IA64
11140 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 else
11143 # With GCC up to 2.95.x, collect2 would create an import file
11144 # for dependence libraries. The import file would start with
11145 # the line '#! .'. This would cause the generated library to
11146 # depend on '.', always an invalid library. This was fixed in
11147 # development snapshots of GCC prior to 3.0.
11148 case $host_os in
11149 aix4 | aix4.[01] | aix4.[01].*)
11150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11151 echo ' yes '
11152 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11153 :
11154 else
11155 can_build_shared=no
11156 fi
11157 ;;
11158 esac
11159 # Using Import Files as archive members, it is possible to support
11160 # filename-based versioning of shared library archives on AIX. While
11161 # this would work for both with and without runtime linking, it will
11162 # prevent static linking of such archives. So we do filename-based
11163 # shared library versioning with .so extension only, which is used
11164 # when both runtime linking and shared linking is enabled.
11165 # Unfortunately, runtime linking may impact performance, so we do
11166 # not want this to be the default eventually. Also, we use the
11167 # versioned .so libs for executables only if there is the -brtl
11168 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11169 # To allow for filename-based versioning support, we need to create
11170 # libNAME.so.V as an archive file, containing:
11171 # *) an Import File, referring to the versioned filename of the
11172 # archive as well as the shared archive member, telling the
11173 # bitwidth (32 or 64) of that shared object, and providing the
11174 # list of exported symbols of that shared object, eventually
11175 # decorated with the 'weak' keyword
11176 # *) the shared object with the F_LOADONLY flag set, to really avoid
11177 # it being seen by the linker.
11178 # At run time we better use the real file rather than another symlink,
11179 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11180
11181 case $with_aix_soname,$aix_use_runtimelinking in
11182 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11183 # soname into executable. Probably we can add versioning support to
11184 # collect2, so additional links can be useful in future.
11185 aix,yes) # traditional libtool
11186 dynamic_linker='AIX unversionable lib.so'
11187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11188 # instead of lib<name>.a to let people know that these are not
11189 # typical AIX shared libraries.
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 ;;
11192 aix,no) # traditional AIX only
11193 dynamic_linker='AIX lib.a(lib.so.V)'
11194 # We preserve .a as extension for shared libraries through AIX4.2
11195 # and later when we are not doing run time linking.
11196 library_names_spec='$libname$release.a $libname.a'
11197 soname_spec='$libname$release$shared_ext$major'
11198 ;;
11199 svr4,*) # full svr4 only
11200 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11201 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11202 # We do not specify a path in Import Files, so LIBPATH fires.
11203 shlibpath_overrides_runpath=yes
11204 ;;
11205 *,yes) # both, prefer svr4
11206 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11207 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11208 # unpreferred sharedlib libNAME.a needs extra handling
11209 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"'
11210 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"'
11211 # We do not specify a path in Import Files, so LIBPATH fires.
11212 shlibpath_overrides_runpath=yes
11213 ;;
11214 *,no) # both, prefer aix
11215 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11216 library_names_spec='$libname$release.a $libname.a'
11217 soname_spec='$libname$release$shared_ext$major'
11218 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11219 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)'
11220 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"'
11221 ;;
11222 esac
11223 shlibpath_var=LIBPATH
11224 fi
11225 ;;
11226
11227 amigaos*)
11228 case $host_cpu in
11229 powerpc)
11230 # Since July 2007 AmigaOS4 officially supports .so libraries.
11231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233 ;;
11234 m68k)
11235 library_names_spec='$libname.ixlibrary $libname.a'
11236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11237 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'
11238 ;;
11239 esac
11240 ;;
11241
11242 beos*)
11243 library_names_spec='$libname$shared_ext'
11244 dynamic_linker="$host_os ld.so"
11245 shlibpath_var=LIBRARY_PATH
11246 ;;
11247
11248 bsdi[45]*)
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 need_version=no
11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252 soname_spec='$libname$release$shared_ext$major'
11253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11257 # the default ld.so.conf also contains /usr/contrib/lib and
11258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11259 # libtool to hard-code these into programs
11260 ;;
11261
11262 cygwin* | mingw* | pw32* | cegcc*)
11263 version_type=windows
11264 shrext_cmds=.dll
11265 need_version=no
11266 need_lib_prefix=no
11267
11268 case $GCC,$cc_basename in
11269 yes,*)
11270 # gcc
11271 library_names_spec='$libname.dll.a'
11272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11273 postinstall_cmds='base_file=`basename \$file`~
11274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11275 dldir=$destdir/`dirname \$dlpath`~
11276 test -d \$dldir || mkdir -p \$dldir~
11277 $install_prog $dir/$dlname \$dldir/$dlname~
11278 chmod a+x \$dldir/$dlname~
11279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11281 fi'
11282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11283 dlpath=$dir/\$dldll~
11284 $RM \$dlpath'
11285 shlibpath_overrides_runpath=yes
11286
11287 case $host_os in
11288 cygwin*)
11289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11290 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11291
11292 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11293 ;;
11294 mingw* | cegcc*)
11295 # MinGW DLLs use traditional 'lib' prefix
11296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11297 ;;
11298 pw32*)
11299 # pw32 DLLs use 'pw' prefix rather than 'lib'
11300 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11301 ;;
11302 esac
11303 dynamic_linker='Win32 ld.exe'
11304 ;;
11305
11306 *,cl* | *,icl*)
11307 # Native MSVC or ICC
11308 libname_spec='$name'
11309 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11310 library_names_spec='$libname.dll.lib'
11311
11312 case $build_os in
11313 mingw*)
11314 sys_lib_search_path_spec=
11315 lt_save_ifs=$IFS
11316 IFS=';'
11317 for lt_path in $LIB
11318 do
11319 IFS=$lt_save_ifs
11320 # Let DOS variable expansion print the short 8.3 style file name.
11321 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11322 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11323 done
11324 IFS=$lt_save_ifs
11325 # Convert to MSYS style.
11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11327 ;;
11328 cygwin*)
11329 # Convert to unix form, then to dos form, then back to unix form
11330 # but this time dos style (no spaces!) so that the unix form looks
11331 # like /cygdrive/c/PROGRA~1:/cygdr...
11332 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11333 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11334 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11335 ;;
11336 *)
11337 sys_lib_search_path_spec=$LIB
11338 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11339 # It is most probably a Windows format PATH.
11340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11341 else
11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11343 fi
11344 # FIXME: find the short name or the path components, as spaces are
11345 # common. (e.g. "Program Files" -> "PROGRA~1")
11346 ;;
11347 esac
11348
11349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11350 postinstall_cmds='base_file=`basename \$file`~
11351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11352 dldir=$destdir/`dirname \$dlpath`~
11353 test -d \$dldir || mkdir -p \$dldir~
11354 $install_prog $dir/$dlname \$dldir/$dlname'
11355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11356 dlpath=$dir/\$dldll~
11357 $RM \$dlpath'
11358 shlibpath_overrides_runpath=yes
11359 dynamic_linker='Win32 link.exe'
11360 ;;
11361
11362 *)
11363 # Assume MSVC and ICC wrapper
11364 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11365 dynamic_linker='Win32 ld.exe'
11366 ;;
11367 esac
11368 # FIXME: first we should search . and the directory the executable is in
11369 shlibpath_var=PATH
11370 ;;
11371
11372 darwin* | rhapsody*)
11373 dynamic_linker="$host_os dyld"
11374 version_type=darwin
11375 need_lib_prefix=no
11376 need_version=no
11377 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11378 soname_spec='$libname$release$major$shared_ext'
11379 shlibpath_overrides_runpath=yes
11380 shlibpath_var=DYLD_LIBRARY_PATH
11381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11382
11383 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11385 ;;
11386
11387 dgux*)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 need_lib_prefix=no
11390 need_version=no
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 soname_spec='$libname$release$shared_ext$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 ;;
11395
11396 freebsd* | dragonfly* | midnightbsd*)
11397 # DragonFly does not have aout. When/if they implement a new
11398 # versioning mechanism, adjust this.
11399 if test -x /usr/bin/objformat; then
11400 objformat=`/usr/bin/objformat`
11401 else
11402 case $host_os in
11403 freebsd[23].*) objformat=aout ;;
11404 *) objformat=elf ;;
11405 esac
11406 fi
11407 version_type=freebsd-$objformat
11408 case $version_type in
11409 freebsd-elf*)
11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 soname_spec='$libname$release$shared_ext$major'
11412 need_version=no
11413 need_lib_prefix=no
11414 ;;
11415 freebsd-*)
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11417 need_version=yes
11418 ;;
11419 esac
11420 shlibpath_var=LD_LIBRARY_PATH
11421 case $host_os in
11422 freebsd2.*)
11423 shlibpath_overrides_runpath=yes
11424 ;;
11425 freebsd3.[01]* | freebsdelf3.[01]*)
11426 shlibpath_overrides_runpath=yes
11427 hardcode_into_libs=yes
11428 ;;
11429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 ;;
11434 *) # from 4.6 on, and DragonFly
11435 shlibpath_overrides_runpath=yes
11436 hardcode_into_libs=yes
11437 ;;
11438 esac
11439 ;;
11440
11441 haiku*)
11442 version_type=linux # correct to gnu/linux during the next big refactor
11443 need_lib_prefix=no
11444 need_version=no
11445 dynamic_linker="$host_os runtime_loader"
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec='$libname$release$shared_ext$major'
11448 shlibpath_var=LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11451 hardcode_into_libs=yes
11452 ;;
11453
11454 hpux9* | hpux10* | hpux11*)
11455 # Give a soname corresponding to the major version so that dld.sl refuses to
11456 # link against other versions.
11457 version_type=sunos
11458 need_lib_prefix=no
11459 need_version=no
11460 case $host_cpu in
11461 ia64*)
11462 shrext_cmds='.so'
11463 hardcode_into_libs=yes
11464 dynamic_linker="$host_os dld.so"
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468 soname_spec='$libname$release$shared_ext$major'
11469 if test 32 = "$HPUX_IA64_MODE"; then
11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11471 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11472 else
11473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11474 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11475 fi
11476 ;;
11477 hppa*64*)
11478 shrext_cmds='.sl'
11479 hardcode_into_libs=yes
11480 dynamic_linker="$host_os dld.sl"
11481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484 soname_spec='$libname$release$shared_ext$major'
11485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11487 ;;
11488 *)
11489 shrext_cmds='.sl'
11490 dynamic_linker="$host_os dld.sl"
11491 shlibpath_var=SHLIB_PATH
11492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11494 soname_spec='$libname$release$shared_ext$major'
11495 ;;
11496 esac
11497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11498 postinstall_cmds='chmod 555 $lib'
11499 # or fails outright, so override atomically:
11500 install_override_mode=555
11501 ;;
11502
11503 interix[3-9]*)
11504 version_type=linux # correct to gnu/linux during the next big refactor
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508 soname_spec='$libname$release$shared_ext$major'
11509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=no
11512 hardcode_into_libs=yes
11513 ;;
11514
11515 irix5* | irix6* | nonstopux*)
11516 case $host_os in
11517 nonstopux*) version_type=nonstopux ;;
11518 *)
11519 if test yes = "$lt_cv_prog_gnu_ld"; then
11520 version_type=linux # correct to gnu/linux during the next big refactor
11521 else
11522 version_type=irix
11523 fi ;;
11524 esac
11525 need_lib_prefix=no
11526 need_version=no
11527 soname_spec='$libname$release$shared_ext$major'
11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11529 case $host_os in
11530 irix5* | nonstopux*)
11531 libsuff= shlibsuff=
11532 ;;
11533 *)
11534 case $LD in # libtool.m4 will add one of these switches to LD
11535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11536 libsuff= shlibsuff= libmagic=32-bit;;
11537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11538 libsuff=32 shlibsuff=N32 libmagic=N32;;
11539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11540 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11541 *) libsuff= shlibsuff= libmagic=never-match;;
11542 esac
11543 ;;
11544 esac
11545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11546 shlibpath_overrides_runpath=no
11547 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11548 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11549 hardcode_into_libs=yes
11550 ;;
11551
11552 # No shared lib support for Linux oldld, aout, or coff.
11553 linux*oldld* | linux*aout* | linux*coff*)
11554 dynamic_linker=no
11555 ;;
11556
11557 linux*android*)
11558 version_type=none # Android doesn't support versioned libraries.
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='$libname$release$shared_ext'
11562 soname_spec='$libname$release$shared_ext'
11563 finish_cmds=
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566
11567 # This implies no fast_install, which is unacceptable.
11568 # Some rework will be needed to allow for fast_install
11569 # before this can be enabled.
11570 hardcode_into_libs=yes
11571
11572 dynamic_linker='Android linker'
11573 # Don't embed -rpath directories since the linker doesn't support them.
11574 hardcode_libdir_flag_spec='-L$libdir'
11575 ;;
11576
11577 # This must be glibc/ELF.
11578 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583 soname_spec='$libname$release$shared_ext$major'
11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=no
11587
11588 # Some binutils ld are patched to set DT_RUNPATH
11589 if test ${lt_cv_shlibpath_overrides_runpath+y}
11590 then :
11591 printf %s "(cached) " >&6
11592 else $as_nop
11593 lt_cv_shlibpath_overrides_runpath=no
11594 save_LDFLAGS=$LDFLAGS
11595 save_libdir=$libdir
11596 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11597 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600
11601 int
11602 main (void)
11603 {
11604
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"
11610 then :
11611 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11612 then :
11613 lt_cv_shlibpath_overrides_runpath=yes
11614 fi
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11617 conftest$ac_exeext conftest.$ac_ext
11618 LDFLAGS=$save_LDFLAGS
11619 libdir=$save_libdir
11620
11621 fi
11622
11623 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11624
11625 # This implies no fast_install, which is unacceptable.
11626 # Some rework will be needed to allow for fast_install
11627 # before this can be enabled.
11628 hardcode_into_libs=yes
11629
11630 # Add ABI-specific directories to the system library path.
11631 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11632
11633 # Ideally, we could use ldconfig to report *all* directores which are
11634 # searched for libraries, however this is still not possible. Aside from not
11635 # being certain /sbin/ldconfig is available, command
11636 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11637 # even though it is searched at run-time. Try to do the best guess by
11638 # appending ld.so.conf contents (and includes) to the search path.
11639 if test -f /etc/ld.so.conf; then
11640 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' ' '`
11641 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11642 fi
11643
11644 # We used to test for /lib/ld.so.1 and disable shared libraries on
11645 # powerpc, because MkLinux only supported shared libraries with the
11646 # GNU dynamic linker. Since this was broken with cross compilers,
11647 # most powerpc-linux boxes support dynamic linking these days and
11648 # people can always --disable-shared, the test was removed, and we
11649 # assume the GNU/Linux dynamic linker is in use.
11650 dynamic_linker='GNU/Linux ld.so'
11651 ;;
11652
11653 netbsd*)
11654 version_type=sunos
11655 need_lib_prefix=no
11656 need_version=no
11657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11660 dynamic_linker='NetBSD (a.out) ld.so'
11661 else
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663 soname_spec='$libname$release$shared_ext$major'
11664 dynamic_linker='NetBSD ld.elf_so'
11665 fi
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11669 ;;
11670
11671 newsos6)
11672 version_type=linux # correct to gnu/linux during the next big refactor
11673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11676 ;;
11677
11678 *nto* | *qnx*)
11679 version_type=qnx
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11683 soname_spec='$libname$release$shared_ext$major'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=no
11686 hardcode_into_libs=yes
11687 dynamic_linker='ldqnx.so'
11688 ;;
11689
11690 openbsd* | bitrig*)
11691 version_type=sunos
11692 sys_lib_dlsearch_path_spec=/usr/lib
11693 need_lib_prefix=no
11694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11695 need_version=no
11696 else
11697 need_version=yes
11698 fi
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703 ;;
11704
11705 os2*)
11706 libname_spec='$name'
11707 version_type=windows
11708 shrext_cmds=.dll
11709 need_version=no
11710 need_lib_prefix=no
11711 # OS/2 can only load a DLL with a base name of 8 characters or less.
11712 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11713 v=$($ECHO $release$versuffix | tr -d .-);
11714 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11715 $ECHO $n$v`$shared_ext'
11716 library_names_spec='${libname}_dll.$libext'
11717 dynamic_linker='OS/2 ld.exe'
11718 shlibpath_var=BEGINLIBPATH
11719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11721 postinstall_cmds='base_file=`basename \$file`~
11722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11723 dldir=$destdir/`dirname \$dlpath`~
11724 test -d \$dldir || mkdir -p \$dldir~
11725 $install_prog $dir/$dlname \$dldir/$dlname~
11726 chmod a+x \$dldir/$dlname~
11727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11729 fi'
11730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11731 dlpath=$dir/\$dldll~
11732 $RM \$dlpath'
11733 ;;
11734
11735 osf3* | osf4* | osf5*)
11736 version_type=osf
11737 need_lib_prefix=no
11738 need_version=no
11739 soname_spec='$libname$release$shared_ext$major'
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11744 ;;
11745
11746 rdos*)
11747 dynamic_linker=no
11748 ;;
11749
11750 solaris*)
11751 version_type=linux # correct to gnu/linux during the next big refactor
11752 need_lib_prefix=no
11753 need_version=no
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755 soname_spec='$libname$release$shared_ext$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes
11758 hardcode_into_libs=yes
11759 # ldd complains unless libraries are executable
11760 postinstall_cmds='chmod +x $lib'
11761 ;;
11762
11763 sunos4*)
11764 version_type=sunos
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11766 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=yes
11769 if test yes = "$with_gnu_ld"; then
11770 need_lib_prefix=no
11771 fi
11772 need_version=yes
11773 ;;
11774
11775 sysv4 | sysv4.3*)
11776 version_type=linux # correct to gnu/linux during the next big refactor
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11778 soname_spec='$libname$release$shared_ext$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 case $host_vendor in
11781 sni)
11782 shlibpath_overrides_runpath=no
11783 need_lib_prefix=no
11784 runpath_var=LD_RUN_PATH
11785 ;;
11786 siemens)
11787 need_lib_prefix=no
11788 ;;
11789 motorola)
11790 need_lib_prefix=no
11791 need_version=no
11792 shlibpath_overrides_runpath=no
11793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11794 ;;
11795 esac
11796 ;;
11797
11798 sysv4*MP*)
11799 if test -d /usr/nec; then
11800 version_type=linux # correct to gnu/linux during the next big refactor
11801 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11802 soname_spec='$libname$shared_ext.$major'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 fi
11805 ;;
11806
11807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11808 version_type=sco
11809 need_lib_prefix=no
11810 need_version=no
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11812 soname_spec='$libname$release$shared_ext$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11815 hardcode_into_libs=yes
11816 if test yes = "$with_gnu_ld"; then
11817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11818 else
11819 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11820 case $host_os in
11821 sco3.2v5*)
11822 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11823 ;;
11824 esac
11825 fi
11826 sys_lib_dlsearch_path_spec='/usr/lib'
11827 ;;
11828
11829 tpf*)
11830 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11831 version_type=linux # correct to gnu/linux during the next big refactor
11832 need_lib_prefix=no
11833 need_version=no
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=no
11837 hardcode_into_libs=yes
11838 ;;
11839
11840 uts4*)
11841 version_type=linux # correct to gnu/linux during the next big refactor
11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11843 soname_spec='$libname$release$shared_ext$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 ;;
11846
11847 *)
11848 dynamic_linker=no
11849 ;;
11850 esac
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11852 printf "%s\n" "$dynamic_linker" >&6; }
11853 test no = "$dynamic_linker" && can_build_shared=no
11854
11855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11856 if test yes = "$GCC"; then
11857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11858 fi
11859
11860 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11861 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11862 fi
11863
11864 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11865 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11866 fi
11867
11868 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11869 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11870
11871 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11872 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11873
11874 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11875 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11974 printf %s "checking how to hardcode library paths into programs... " >&6; }
11975 hardcode_action=
11976 if test -n "$hardcode_libdir_flag_spec" ||
11977 test -n "$runpath_var" ||
11978 test yes = "$hardcode_automatic"; then
11979
11980 # We can hardcode non-existent directories.
11981 if test no != "$hardcode_direct" &&
11982 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11983 # have to relink, otherwise we might link with an installed library
11984 # when we should be linking with a yet-to-be-installed one
11985 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11986 test no != "$hardcode_minus_L"; then
11987 # Linking always hardcodes the temporary library directory.
11988 hardcode_action=relink
11989 else
11990 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11991 hardcode_action=immediate
11992 fi
11993 else
11994 # We cannot hardcode anything, or else we can only hardcode existing
11995 # directories.
11996 hardcode_action=unsupported
11997 fi
11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11999 printf "%s\n" "$hardcode_action" >&6; }
12000
12001 if test relink = "$hardcode_action" ||
12002 test yes = "$inherit_rpath"; then
12003 # Fast installation is not supported
12004 enable_fast_install=no
12005 elif test yes = "$shlibpath_overrides_runpath" ||
12006 test no = "$enable_shared"; then
12007 # Fast installation is not necessary
12008 enable_fast_install=needless
12009 fi
12010
12011
12012
12013
12014
12015
12016 if test yes != "$enable_dlopen"; then
12017 enable_dlopen=unknown
12018 enable_dlopen_self=unknown
12019 enable_dlopen_self_static=unknown
12020 else
12021 lt_cv_dlopen=no
12022 lt_cv_dlopen_libs=
12023
12024 case $host_os in
12025 beos*)
12026 lt_cv_dlopen=load_add_on
12027 lt_cv_dlopen_libs=
12028 lt_cv_dlopen_self=yes
12029 ;;
12030
12031 mingw* | pw32* | cegcc*)
12032 lt_cv_dlopen=LoadLibrary
12033 lt_cv_dlopen_libs=
12034 ;;
12035
12036 cygwin*)
12037 lt_cv_dlopen=dlopen
12038 lt_cv_dlopen_libs=
12039 ;;
12040
12041 darwin*)
12042 # if libdl is installed we need to link against it
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12044 printf %s "checking for dlopen in -ldl... " >&6; }
12045 if test ${ac_cv_lib_dl_dlopen+y}
12046 then :
12047 printf %s "(cached) " >&6
12048 else $as_nop
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-ldl $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 char dlopen ();
12058 int
12059 main (void)
12060 {
12061 return dlopen ();
12062 ;
12063 return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"
12067 then :
12068 ac_cv_lib_dl_dlopen=yes
12069 else $as_nop
12070 ac_cv_lib_dl_dlopen=no
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12077 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12078 if test "x$ac_cv_lib_dl_dlopen" = xyes
12079 then :
12080 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12081 else $as_nop
12082
12083 lt_cv_dlopen=dyld
12084 lt_cv_dlopen_libs=
12085 lt_cv_dlopen_self=yes
12086
12087 fi
12088
12089 ;;
12090
12091 tpf*)
12092 # Don't try to run any link tests for TPF. We know it's impossible
12093 # because TPF is a cross-compiler, and we know how we open DSOs.
12094 lt_cv_dlopen=dlopen
12095 lt_cv_dlopen_libs=
12096 lt_cv_dlopen_self=no
12097 ;;
12098
12099 *)
12100 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12101 if test "x$ac_cv_func_shl_load" = xyes
12102 then :
12103 lt_cv_dlopen=shl_load
12104 else $as_nop
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12106 printf %s "checking for shl_load in -ldld... " >&6; }
12107 if test ${ac_cv_lib_dld_shl_load+y}
12108 then :
12109 printf %s "(cached) " >&6
12110 else $as_nop
12111 ac_check_lib_save_LIBS=$LIBS
12112 LIBS="-ldld $LIBS"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119 char shl_load ();
12120 int
12121 main (void)
12122 {
12123 return shl_load ();
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 if ac_fn_c_try_link "$LINENO"
12129 then :
12130 ac_cv_lib_dld_shl_load=yes
12131 else $as_nop
12132 ac_cv_lib_dld_shl_load=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12139 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12140 if test "x$ac_cv_lib_dld_shl_load" = xyes
12141 then :
12142 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12143 else $as_nop
12144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12145 if test "x$ac_cv_func_dlopen" = xyes
12146 then :
12147 lt_cv_dlopen=dlopen
12148 else $as_nop
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12150 printf %s "checking for dlopen in -ldl... " >&6; }
12151 if test ${ac_cv_lib_dl_dlopen+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else $as_nop
12155 ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-ldl $LIBS"
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 char dlopen ();
12164 int
12165 main (void)
12166 {
12167 return dlopen ();
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"
12173 then :
12174 ac_cv_lib_dl_dlopen=yes
12175 else $as_nop
12176 ac_cv_lib_dl_dlopen=no
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12181 fi
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12183 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12184 if test "x$ac_cv_lib_dl_dlopen" = xyes
12185 then :
12186 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12187 else $as_nop
12188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12189 printf %s "checking for dlopen in -lsvld... " >&6; }
12190 if test ${ac_cv_lib_svld_dlopen+y}
12191 then :
12192 printf %s "(cached) " >&6
12193 else $as_nop
12194 ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-lsvld $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 char dlopen ();
12203 int
12204 main (void)
12205 {
12206 return dlopen ();
12207 ;
12208 return 0;
12209 }
12210 _ACEOF
12211 if ac_fn_c_try_link "$LINENO"
12212 then :
12213 ac_cv_lib_svld_dlopen=yes
12214 else $as_nop
12215 ac_cv_lib_svld_dlopen=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12220 fi
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12222 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12223 if test "x$ac_cv_lib_svld_dlopen" = xyes
12224 then :
12225 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12226 else $as_nop
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12228 printf %s "checking for dld_link in -ldld... " >&6; }
12229 if test ${ac_cv_lib_dld_dld_link+y}
12230 then :
12231 printf %s "(cached) " >&6
12232 else $as_nop
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-ldld $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237
12238 /* Override any GCC internal prototype to avoid an error.
12239 Use char because int might match the return type of a GCC
12240 builtin and then its argument prototype would still apply. */
12241 char dld_link ();
12242 int
12243 main (void)
12244 {
12245 return dld_link ();
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"
12251 then :
12252 ac_cv_lib_dld_dld_link=yes
12253 else $as_nop
12254 ac_cv_lib_dld_dld_link=no
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12257 conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12259 fi
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12261 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12262 if test "x$ac_cv_lib_dld_dld_link" = xyes
12263 then :
12264 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12265 fi
12266
12267
12268 fi
12269
12270
12271 fi
12272
12273
12274 fi
12275
12276
12277 fi
12278
12279
12280 fi
12281
12282 ;;
12283 esac
12284
12285 if test no = "$lt_cv_dlopen"; then
12286 enable_dlopen=no
12287 else
12288 enable_dlopen=yes
12289 fi
12290
12291 case $lt_cv_dlopen in
12292 dlopen)
12293 save_CPPFLAGS=$CPPFLAGS
12294 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12295
12296 save_LDFLAGS=$LDFLAGS
12297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12298
12299 save_LIBS=$LIBS
12300 LIBS="$lt_cv_dlopen_libs $LIBS"
12301
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12303 printf %s "checking whether a program can dlopen itself... " >&6; }
12304 if test ${lt_cv_dlopen_self+y}
12305 then :
12306 printf %s "(cached) " >&6
12307 else $as_nop
12308 if test yes = "$cross_compiling"; then :
12309 lt_cv_dlopen_self=cross
12310 else
12311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312 lt_status=$lt_dlunknown
12313 cat > conftest.$ac_ext <<_LT_EOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316
12317 #if HAVE_DLFCN_H
12318 #include <dlfcn.h>
12319 #endif
12320
12321 #include <stdio.h>
12322
12323 #ifdef RTLD_GLOBAL
12324 # define LT_DLGLOBAL RTLD_GLOBAL
12325 #else
12326 # ifdef DL_GLOBAL
12327 # define LT_DLGLOBAL DL_GLOBAL
12328 # else
12329 # define LT_DLGLOBAL 0
12330 # endif
12331 #endif
12332
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334 find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12336 # ifdef RTLD_LAZY
12337 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12338 # else
12339 # ifdef DL_LAZY
12340 # define LT_DLLAZY_OR_NOW DL_LAZY
12341 # else
12342 # ifdef RTLD_NOW
12343 # define LT_DLLAZY_OR_NOW RTLD_NOW
12344 # else
12345 # ifdef DL_NOW
12346 # define LT_DLLAZY_OR_NOW DL_NOW
12347 # else
12348 # define LT_DLLAZY_OR_NOW 0
12349 # endif
12350 # endif
12351 # endif
12352 # endif
12353 #endif
12354
12355 /* When -fvisibility=hidden is used, assume the code has been annotated
12356 correspondingly for the symbols needed. */
12357 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12358 int fnord () __attribute__((visibility("default")));
12359 #endif
12360
12361 int fnord () { return 42; }
12362 int main ()
12363 {
12364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12365 int status = $lt_dlunknown;
12366
12367 if (self)
12368 {
12369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12370 else
12371 {
12372 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12373 else puts (dlerror ());
12374 }
12375 /* dlclose (self); */
12376 }
12377 else
12378 puts (dlerror ());
12379
12380 return status;
12381 }
12382 _LT_EOF
12383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12388 (./conftest; exit; ) >&5 2>/dev/null
12389 lt_status=$?
12390 case x$lt_status in
12391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12393 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12394 esac
12395 else :
12396 # compilation failed
12397 lt_cv_dlopen_self=no
12398 fi
12399 fi
12400 rm -fr conftest*
12401
12402
12403 fi
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12405 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12406
12407 if test yes = "$lt_cv_dlopen_self"; then
12408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12410 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12411 if test ${lt_cv_dlopen_self_static+y}
12412 then :
12413 printf %s "(cached) " >&6
12414 else $as_nop
12415 if test yes = "$cross_compiling"; then :
12416 lt_cv_dlopen_self_static=cross
12417 else
12418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12419 lt_status=$lt_dlunknown
12420 cat > conftest.$ac_ext <<_LT_EOF
12421 #line $LINENO "configure"
12422 #include "confdefs.h"
12423
12424 #if HAVE_DLFCN_H
12425 #include <dlfcn.h>
12426 #endif
12427
12428 #include <stdio.h>
12429
12430 #ifdef RTLD_GLOBAL
12431 # define LT_DLGLOBAL RTLD_GLOBAL
12432 #else
12433 # ifdef DL_GLOBAL
12434 # define LT_DLGLOBAL DL_GLOBAL
12435 # else
12436 # define LT_DLGLOBAL 0
12437 # endif
12438 #endif
12439
12440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12441 find out it does not work in some platform. */
12442 #ifndef LT_DLLAZY_OR_NOW
12443 # ifdef RTLD_LAZY
12444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12445 # else
12446 # ifdef DL_LAZY
12447 # define LT_DLLAZY_OR_NOW DL_LAZY
12448 # else
12449 # ifdef RTLD_NOW
12450 # define LT_DLLAZY_OR_NOW RTLD_NOW
12451 # else
12452 # ifdef DL_NOW
12453 # define LT_DLLAZY_OR_NOW DL_NOW
12454 # else
12455 # define LT_DLLAZY_OR_NOW 0
12456 # endif
12457 # endif
12458 # endif
12459 # endif
12460 #endif
12461
12462 /* When -fvisibility=hidden is used, assume the code has been annotated
12463 correspondingly for the symbols needed. */
12464 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12465 int fnord () __attribute__((visibility("default")));
12466 #endif
12467
12468 int fnord () { return 42; }
12469 int main ()
12470 {
12471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12472 int status = $lt_dlunknown;
12473
12474 if (self)
12475 {
12476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12477 else
12478 {
12479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12480 else puts (dlerror ());
12481 }
12482 /* dlclose (self); */
12483 }
12484 else
12485 puts (dlerror ());
12486
12487 return status;
12488 }
12489 _LT_EOF
12490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12491 (eval $ac_link) 2>&5
12492 ac_status=$?
12493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12494 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12495 (./conftest; exit; ) >&5 2>/dev/null
12496 lt_status=$?
12497 case x$lt_status in
12498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12501 esac
12502 else :
12503 # compilation failed
12504 lt_cv_dlopen_self_static=no
12505 fi
12506 fi
12507 rm -fr conftest*
12508
12509
12510 fi
12511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12512 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12513 fi
12514
12515 CPPFLAGS=$save_CPPFLAGS
12516 LDFLAGS=$save_LDFLAGS
12517 LIBS=$save_LIBS
12518 ;;
12519 esac
12520
12521 case $lt_cv_dlopen_self in
12522 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12523 *) enable_dlopen_self=unknown ;;
12524 esac
12525
12526 case $lt_cv_dlopen_self_static in
12527 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12528 *) enable_dlopen_self_static=unknown ;;
12529 esac
12530 fi
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548 striplib=
12549 old_striplib=
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12551 printf %s "checking whether stripping libraries is possible... " >&6; }
12552 if test -z "$STRIP"; then
12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 printf "%s\n" "no" >&6; }
12555 else
12556 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12557 old_striplib="$STRIP --strip-debug"
12558 striplib="$STRIP --strip-unneeded"
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 printf "%s\n" "yes" >&6; }
12561 else
12562 case $host_os in
12563 darwin*)
12564 # FIXME - insert some real tests, host_os isn't really good enough
12565 striplib="$STRIP -x"
12566 old_striplib="$STRIP -S"
12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12568 printf "%s\n" "yes" >&6; }
12569 ;;
12570 freebsd*)
12571 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12572 old_striplib="$STRIP --strip-debug"
12573 striplib="$STRIP --strip-unneeded"
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 printf "%s\n" "yes" >&6; }
12576 else
12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 printf "%s\n" "no" >&6; }
12579 fi
12580 ;;
12581 *)
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 printf "%s\n" "no" >&6; }
12584 ;;
12585 esac
12586 fi
12587 fi
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600 # Report what library types will actually be built
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12602 printf %s "checking if libtool supports shared libraries... " >&6; }
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12604 printf "%s\n" "$can_build_shared" >&6; }
12605
12606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12607 printf %s "checking whether to build shared libraries... " >&6; }
12608 test no = "$can_build_shared" && enable_shared=no
12609
12610 # On AIX, shared libraries and static libraries use the same namespace, and
12611 # are all built from PIC.
12612 case $host_os in
12613 aix3*)
12614 test yes = "$enable_shared" && enable_static=no
12615 if test -n "$RANLIB"; then
12616 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12617 postinstall_cmds='$RANLIB $lib'
12618 fi
12619 ;;
12620
12621 aix[4-9]*)
12622 if test ia64 != "$host_cpu"; then
12623 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12624 yes,aix,yes) ;; # shared object as lib.so file only
12625 yes,svr4,*) ;; # shared object as lib.so archive member only
12626 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12627 esac
12628 fi
12629 ;;
12630 esac
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12632 printf "%s\n" "$enable_shared" >&6; }
12633
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12635 printf %s "checking whether to build static libraries... " >&6; }
12636 # Make sure either enable_shared or enable_static is yes.
12637 test yes = "$enable_shared" || enable_static=yes
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12639 printf "%s\n" "$enable_static" >&6; }
12640
12641
12642
12643
12644 fi
12645 ac_ext=c
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651 CC=$lt_save_CC
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667 ac_config_commands="$ac_config_commands libtool"
12668
12669
12670
12671
12672 # Only expand once:
12673
12674
12675
12676 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12689 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12690 if test ${ac_cv_c_undeclared_builtin_options+y}
12691 then :
12692 printf %s "(cached) " >&6
12693 else $as_nop
12694 ac_save_CFLAGS=$CFLAGS
12695 ac_cv_c_undeclared_builtin_options='cannot detect'
12696 for ac_arg in '' -fno-builtin; do
12697 CFLAGS="$ac_save_CFLAGS $ac_arg"
12698 # This test program should *not* compile successfully.
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701
12702 int
12703 main (void)
12704 {
12705 (void) strchr;
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_compile "$LINENO"
12711 then :
12712
12713 else $as_nop
12714 # This test program should compile successfully.
12715 # No library function is consistently available on
12716 # freestanding implementations, so test against a dummy
12717 # declaration. Include always-available headers on the
12718 # off chance that they somehow elicit warnings.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <float.h>
12722 #include <limits.h>
12723 #include <stdarg.h>
12724 #include <stddef.h>
12725 extern void ac_decl (int, char *);
12726
12727 int
12728 main (void)
12729 {
12730 (void) ac_decl (0, (char *) 0);
12731 (void) ac_decl;
12732
12733 ;
12734 return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_compile "$LINENO"
12738 then :
12739 if test x"$ac_arg" = x
12740 then :
12741 ac_cv_c_undeclared_builtin_options='none needed'
12742 else $as_nop
12743 ac_cv_c_undeclared_builtin_options=$ac_arg
12744 fi
12745 break
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12750 done
12751 CFLAGS=$ac_save_CFLAGS
12752
12753 fi
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12755 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12756 case $ac_cv_c_undeclared_builtin_options in #(
12757 'cannot detect') :
12758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12759 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12760 as_fn_error $? "cannot make $CC report undeclared builtins
12761 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12762 'none needed') :
12763 ac_c_undeclared_builtin_options='' ;; #(
12764 *) :
12765 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12766 esac
12767
12768
12769
12770
12771
12772 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12773 if test "x$ac_cv_have_decl___clang__" = xyes
12774 then :
12775 CLANGCC="yes"
12776 else $as_nop
12777 CLANGCC="no"
12778 fi
12779 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12780 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12781 then :
12782 INTELCC="yes"
12783 else $as_nop
12784 INTELCC="no"
12785 fi
12786 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12787 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12788 then :
12789 SUNCC="yes"
12790 else $as_nop
12791 SUNCC="no"
12792 fi
12793
12794
12795
12796
12797
12798
12799
12800
12801 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12802 if test -n "$ac_tool_prefix"; then
12803 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12804 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 printf %s "checking for $ac_word... " >&6; }
12807 if test ${ac_cv_path_PKG_CONFIG+y}
12808 then :
12809 printf %s "(cached) " >&6
12810 else $as_nop
12811 case $PKG_CONFIG in
12812 [\\/]* | ?:[\\/]*)
12813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12814 ;;
12815 *)
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12818 do
12819 IFS=$as_save_IFS
12820 case $as_dir in #(((
12821 '') as_dir=./ ;;
12822 */) ;;
12823 *) as_dir=$as_dir/ ;;
12824 esac
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12827 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831 done
12832 done
12833 IFS=$as_save_IFS
12834
12835 ;;
12836 esac
12837 fi
12838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12839 if test -n "$PKG_CONFIG"; then
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12841 printf "%s\n" "$PKG_CONFIG" >&6; }
12842 else
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 printf "%s\n" "no" >&6; }
12845 fi
12846
12847
12848 fi
12849 if test -z "$ac_cv_path_PKG_CONFIG"; then
12850 ac_pt_PKG_CONFIG=$PKG_CONFIG
12851 # Extract the first word of "pkg-config", so it can be a program name with args.
12852 set dummy pkg-config; ac_word=$2
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 printf %s "checking for $ac_word... " >&6; }
12855 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12856 then :
12857 printf %s "(cached) " >&6
12858 else $as_nop
12859 case $ac_pt_PKG_CONFIG in
12860 [\\/]* | ?:[\\/]*)
12861 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12862 ;;
12863 *)
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12866 do
12867 IFS=$as_save_IFS
12868 case $as_dir in #(((
12869 '') as_dir=./ ;;
12870 */) ;;
12871 *) as_dir=$as_dir/ ;;
12872 esac
12873 for ac_exec_ext in '' $ac_executable_extensions; do
12874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12875 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12877 break 2
12878 fi
12879 done
12880 done
12881 IFS=$as_save_IFS
12882
12883 ;;
12884 esac
12885 fi
12886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12887 if test -n "$ac_pt_PKG_CONFIG"; then
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12889 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12890 else
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 printf "%s\n" "no" >&6; }
12893 fi
12894
12895 if test "x$ac_pt_PKG_CONFIG" = x; then
12896 PKG_CONFIG=""
12897 else
12898 case $cross_compiling:$ac_tool_warned in
12899 yes:)
12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12902 ac_tool_warned=yes ;;
12903 esac
12904 PKG_CONFIG=$ac_pt_PKG_CONFIG
12905 fi
12906 else
12907 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12908 fi
12909
12910 fi
12911 if test -n "$PKG_CONFIG"; then
12912 _pkg_min_version=0.9.0
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12914 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12915 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 printf "%s\n" "yes" >&6; }
12918 else
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 printf "%s\n" "no" >&6; }
12921 PKG_CONFIG=""
12922 fi
12923 fi
12924
12925
12926
12927
12928
12929 # Check whether --enable-selective-werror was given.
12930 if test ${enable_selective_werror+y}
12931 then :
12932 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12933 else $as_nop
12934 SELECTIVE_WERROR=yes
12935 fi
12936
12937
12938
12939
12940
12941 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12942 if test "x$SUNCC" = "xyes"; then
12943 BASE_CFLAGS="-v"
12944 else
12945 BASE_CFLAGS=""
12946 fi
12947
12948 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962 xorg_testset_save_CFLAGS="$CFLAGS"
12963
12964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12969 then :
12970 printf %s "(cached) " >&6
12971 else $as_nop
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 int i;
12975 _ACEOF
12976 if ac_fn_c_try_compile "$LINENO"
12977 then :
12978 xorg_cv_cc_flag_unknown_warning_option=yes
12979 else $as_nop
12980 xorg_cv_cc_flag_unknown_warning_option=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12983 fi
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 fi
12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12998 then :
12999 printf %s "(cached) " >&6
13000 else $as_nop
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 int i;
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"
13006 then :
13007 xorg_cv_cc_flag_unused_command_line_argument=yes
13008 else $as_nop
13009 xorg_cv_cc_flag_unused_command_line_argument=no
13010 fi
13011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13012 fi
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13016 CFLAGS="$xorg_testset_save_CFLAGS"
13017 fi
13018
13019 found="no"
13020
13021 if test $found = "no" ; then
13022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13024 fi
13025
13026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13028 fi
13029
13030 CFLAGS="$CFLAGS -Wall"
13031
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13033 printf %s "checking if $CC supports -Wall... " >&6; }
13034 cacheid=xorg_cv_cc_flag__Wall
13035 if eval test \${$cacheid+y}
13036 then :
13037 printf %s "(cached) " >&6
13038 else $as_nop
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 int i;
13042 int
13043 main (void)
13044 {
13045
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"
13051 then :
13052 eval $cacheid=yes
13053 else $as_nop
13054 eval $cacheid=no
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13057 conftest$ac_exeext conftest.$ac_ext
13058 fi
13059
13060
13061 CFLAGS="$xorg_testset_save_CFLAGS"
13062
13063 eval supported=\$$cacheid
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13065 printf "%s\n" "$supported" >&6; }
13066 if test "$supported" = "yes" ; then
13067 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13068 found="yes"
13069 fi
13070 fi
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086 xorg_testset_save_CFLAGS="$CFLAGS"
13087
13088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13093 then :
13094 printf %s "(cached) " >&6
13095 else $as_nop
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 int i;
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"
13101 then :
13102 xorg_cv_cc_flag_unknown_warning_option=yes
13103 else $as_nop
13104 xorg_cv_cc_flag_unknown_warning_option=no
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13107 fi
13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13111 CFLAGS="$xorg_testset_save_CFLAGS"
13112 fi
13113
13114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117 fi
13118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13122 then :
13123 printf %s "(cached) " >&6
13124 else $as_nop
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 int i;
13128 _ACEOF
13129 if ac_fn_c_try_compile "$LINENO"
13130 then :
13131 xorg_cv_cc_flag_unused_command_line_argument=yes
13132 else $as_nop
13133 xorg_cv_cc_flag_unused_command_line_argument=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13136 fi
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13140 CFLAGS="$xorg_testset_save_CFLAGS"
13141 fi
13142
13143 found="no"
13144
13145 if test $found = "no" ; then
13146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13148 fi
13149
13150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13152 fi
13153
13154 CFLAGS="$CFLAGS -Wpointer-arith"
13155
13156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13157 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13158 cacheid=xorg_cv_cc_flag__Wpointer_arith
13159 if eval test \${$cacheid+y}
13160 then :
13161 printf %s "(cached) " >&6
13162 else $as_nop
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 int i;
13166 int
13167 main (void)
13168 {
13169
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"
13175 then :
13176 eval $cacheid=yes
13177 else $as_nop
13178 eval $cacheid=no
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13181 conftest$ac_exeext conftest.$ac_ext
13182 fi
13183
13184
13185 CFLAGS="$xorg_testset_save_CFLAGS"
13186
13187 eval supported=\$$cacheid
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13189 printf "%s\n" "$supported" >&6; }
13190 if test "$supported" = "yes" ; then
13191 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13192 found="yes"
13193 fi
13194 fi
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210 xorg_testset_save_CFLAGS="$CFLAGS"
13211
13212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13217 then :
13218 printf %s "(cached) " >&6
13219 else $as_nop
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 int i;
13223 _ACEOF
13224 if ac_fn_c_try_compile "$LINENO"
13225 then :
13226 xorg_cv_cc_flag_unknown_warning_option=yes
13227 else $as_nop
13228 xorg_cv_cc_flag_unknown_warning_option=no
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13231 fi
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13235 CFLAGS="$xorg_testset_save_CFLAGS"
13236 fi
13237
13238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13241 fi
13242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13246 then :
13247 printf %s "(cached) " >&6
13248 else $as_nop
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 int i;
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"
13254 then :
13255 xorg_cv_cc_flag_unused_command_line_argument=yes
13256 else $as_nop
13257 xorg_cv_cc_flag_unused_command_line_argument=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13260 fi
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13264 CFLAGS="$xorg_testset_save_CFLAGS"
13265 fi
13266
13267 found="no"
13268
13269 if test $found = "no" ; then
13270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272 fi
13273
13274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13276 fi
13277
13278 CFLAGS="$CFLAGS -Wmissing-declarations"
13279
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13281 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13282 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13283 if eval test \${$cacheid+y}
13284 then :
13285 printf %s "(cached) " >&6
13286 else $as_nop
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 int i;
13290 int
13291 main (void)
13292 {
13293
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 if ac_fn_c_try_link "$LINENO"
13299 then :
13300 eval $cacheid=yes
13301 else $as_nop
13302 eval $cacheid=no
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13305 conftest$ac_exeext conftest.$ac_ext
13306 fi
13307
13308
13309 CFLAGS="$xorg_testset_save_CFLAGS"
13310
13311 eval supported=\$$cacheid
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13313 printf "%s\n" "$supported" >&6; }
13314 if test "$supported" = "yes" ; then
13315 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13316 found="yes"
13317 fi
13318 fi
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334 xorg_testset_save_CFLAGS="$CFLAGS"
13335
13336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13341 then :
13342 printf %s "(cached) " >&6
13343 else $as_nop
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 int i;
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"
13349 then :
13350 xorg_cv_cc_flag_unknown_warning_option=yes
13351 else $as_nop
13352 xorg_cv_cc_flag_unknown_warning_option=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13355 fi
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13359 CFLAGS="$xorg_testset_save_CFLAGS"
13360 fi
13361
13362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365 fi
13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13370 then :
13371 printf %s "(cached) " >&6
13372 else $as_nop
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 int i;
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"
13378 then :
13379 xorg_cv_cc_flag_unused_command_line_argument=yes
13380 else $as_nop
13381 xorg_cv_cc_flag_unused_command_line_argument=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13384 fi
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13388 CFLAGS="$xorg_testset_save_CFLAGS"
13389 fi
13390
13391 found="no"
13392
13393 if test $found = "no" ; then
13394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13396 fi
13397
13398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13400 fi
13401
13402 CFLAGS="$CFLAGS -Wformat=2"
13403
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13405 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13406 cacheid=xorg_cv_cc_flag__Wformat_2
13407 if eval test \${$cacheid+y}
13408 then :
13409 printf %s "(cached) " >&6
13410 else $as_nop
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 int i;
13414 int
13415 main (void)
13416 {
13417
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_link "$LINENO"
13423 then :
13424 eval $cacheid=yes
13425 else $as_nop
13426 eval $cacheid=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13429 conftest$ac_exeext conftest.$ac_ext
13430 fi
13431
13432
13433 CFLAGS="$xorg_testset_save_CFLAGS"
13434
13435 eval supported=\$$cacheid
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13437 printf "%s\n" "$supported" >&6; }
13438 if test "$supported" = "yes" ; then
13439 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13440 found="yes"
13441 fi
13442 fi
13443
13444 if test $found = "no" ; then
13445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13447 fi
13448
13449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13451 fi
13452
13453 CFLAGS="$CFLAGS -Wformat"
13454
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13456 printf %s "checking if $CC supports -Wformat... " >&6; }
13457 cacheid=xorg_cv_cc_flag__Wformat
13458 if eval test \${$cacheid+y}
13459 then :
13460 printf %s "(cached) " >&6
13461 else $as_nop
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464 int i;
13465 int
13466 main (void)
13467 {
13468
13469 ;
13470 return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"
13474 then :
13475 eval $cacheid=yes
13476 else $as_nop
13477 eval $cacheid=no
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13480 conftest$ac_exeext conftest.$ac_ext
13481 fi
13482
13483
13484 CFLAGS="$xorg_testset_save_CFLAGS"
13485
13486 eval supported=\$$cacheid
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13488 printf "%s\n" "$supported" >&6; }
13489 if test "$supported" = "yes" ; then
13490 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13491 found="yes"
13492 fi
13493 fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511 xorg_testset_save_CFLAGS="$CFLAGS"
13512
13513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13517 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13518 then :
13519 printf %s "(cached) " >&6
13520 else $as_nop
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 int i;
13524 _ACEOF
13525 if ac_fn_c_try_compile "$LINENO"
13526 then :
13527 xorg_cv_cc_flag_unknown_warning_option=yes
13528 else $as_nop
13529 xorg_cv_cc_flag_unknown_warning_option=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13532 fi
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13536 CFLAGS="$xorg_testset_save_CFLAGS"
13537 fi
13538
13539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542 fi
13543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13547 then :
13548 printf %s "(cached) " >&6
13549 else $as_nop
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552 int i;
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"
13555 then :
13556 xorg_cv_cc_flag_unused_command_line_argument=yes
13557 else $as_nop
13558 xorg_cv_cc_flag_unused_command_line_argument=no
13559 fi
13560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13561 fi
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13563 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13565 CFLAGS="$xorg_testset_save_CFLAGS"
13566 fi
13567
13568 found="no"
13569
13570 if test $found = "no" ; then
13571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13573 fi
13574
13575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13577 fi
13578
13579 CFLAGS="$CFLAGS -Wstrict-prototypes"
13580
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13582 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13583 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13584 if eval test \${$cacheid+y}
13585 then :
13586 printf %s "(cached) " >&6
13587 else $as_nop
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 int i;
13591 int
13592 main (void)
13593 {
13594
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"
13600 then :
13601 eval $cacheid=yes
13602 else $as_nop
13603 eval $cacheid=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13606 conftest$ac_exeext conftest.$ac_ext
13607 fi
13608
13609
13610 CFLAGS="$xorg_testset_save_CFLAGS"
13611
13612 eval supported=\$$cacheid
13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614 printf "%s\n" "$supported" >&6; }
13615 if test "$supported" = "yes" ; then
13616 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13617 found="yes"
13618 fi
13619 fi
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 xorg_testset_save_CFLAGS="$CFLAGS"
13636
13637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13641 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13642 then :
13643 printf %s "(cached) " >&6
13644 else $as_nop
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647 int i;
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"
13650 then :
13651 xorg_cv_cc_flag_unknown_warning_option=yes
13652 else $as_nop
13653 xorg_cv_cc_flag_unknown_warning_option=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13656 fi
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13660 CFLAGS="$xorg_testset_save_CFLAGS"
13661 fi
13662
13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666 fi
13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13671 then :
13672 printf %s "(cached) " >&6
13673 else $as_nop
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 int i;
13677 _ACEOF
13678 if ac_fn_c_try_compile "$LINENO"
13679 then :
13680 xorg_cv_cc_flag_unused_command_line_argument=yes
13681 else $as_nop
13682 xorg_cv_cc_flag_unused_command_line_argument=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13685 fi
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13689 CFLAGS="$xorg_testset_save_CFLAGS"
13690 fi
13691
13692 found="no"
13693
13694 if test $found = "no" ; then
13695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13697 fi
13698
13699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13701 fi
13702
13703 CFLAGS="$CFLAGS -Wmissing-prototypes"
13704
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13706 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13707 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13708 if eval test \${$cacheid+y}
13709 then :
13710 printf %s "(cached) " >&6
13711 else $as_nop
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 int i;
13715 int
13716 main (void)
13717 {
13718
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_link "$LINENO"
13724 then :
13725 eval $cacheid=yes
13726 else $as_nop
13727 eval $cacheid=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13730 conftest$ac_exeext conftest.$ac_ext
13731 fi
13732
13733
13734 CFLAGS="$xorg_testset_save_CFLAGS"
13735
13736 eval supported=\$$cacheid
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13738 printf "%s\n" "$supported" >&6; }
13739 if test "$supported" = "yes" ; then
13740 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13741 found="yes"
13742 fi
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759 xorg_testset_save_CFLAGS="$CFLAGS"
13760
13761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13766 then :
13767 printf %s "(cached) " >&6
13768 else $as_nop
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771 int i;
13772 _ACEOF
13773 if ac_fn_c_try_compile "$LINENO"
13774 then :
13775 xorg_cv_cc_flag_unknown_warning_option=yes
13776 else $as_nop
13777 xorg_cv_cc_flag_unknown_warning_option=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13780 fi
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13782 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13784 CFLAGS="$xorg_testset_save_CFLAGS"
13785 fi
13786
13787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790 fi
13791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13793 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13794 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13795 then :
13796 printf %s "(cached) " >&6
13797 else $as_nop
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 int i;
13801 _ACEOF
13802 if ac_fn_c_try_compile "$LINENO"
13803 then :
13804 xorg_cv_cc_flag_unused_command_line_argument=yes
13805 else $as_nop
13806 xorg_cv_cc_flag_unused_command_line_argument=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13809 fi
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13813 CFLAGS="$xorg_testset_save_CFLAGS"
13814 fi
13815
13816 found="no"
13817
13818 if test $found = "no" ; then
13819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13821 fi
13822
13823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13825 fi
13826
13827 CFLAGS="$CFLAGS -Wnested-externs"
13828
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13830 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13831 cacheid=xorg_cv_cc_flag__Wnested_externs
13832 if eval test \${$cacheid+y}
13833 then :
13834 printf %s "(cached) " >&6
13835 else $as_nop
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 int i;
13839 int
13840 main (void)
13841 {
13842
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"
13848 then :
13849 eval $cacheid=yes
13850 else $as_nop
13851 eval $cacheid=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13854 conftest$ac_exeext conftest.$ac_ext
13855 fi
13856
13857
13858 CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860 eval supported=\$$cacheid
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862 printf "%s\n" "$supported" >&6; }
13863 if test "$supported" = "yes" ; then
13864 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13865 found="yes"
13866 fi
13867 fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883 xorg_testset_save_CFLAGS="$CFLAGS"
13884
13885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13890 then :
13891 printf %s "(cached) " >&6
13892 else $as_nop
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 int i;
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"
13898 then :
13899 xorg_cv_cc_flag_unknown_warning_option=yes
13900 else $as_nop
13901 xorg_cv_cc_flag_unknown_warning_option=no
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13904 fi
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13908 CFLAGS="$xorg_testset_save_CFLAGS"
13909 fi
13910
13911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13914 fi
13915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13919 then :
13920 printf %s "(cached) " >&6
13921 else $as_nop
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 int i;
13925 _ACEOF
13926 if ac_fn_c_try_compile "$LINENO"
13927 then :
13928 xorg_cv_cc_flag_unused_command_line_argument=yes
13929 else $as_nop
13930 xorg_cv_cc_flag_unused_command_line_argument=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13933 fi
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13935 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13937 CFLAGS="$xorg_testset_save_CFLAGS"
13938 fi
13939
13940 found="no"
13941
13942 if test $found = "no" ; then
13943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13945 fi
13946
13947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13949 fi
13950
13951 CFLAGS="$CFLAGS -Wbad-function-cast"
13952
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13954 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13955 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13956 if eval test \${$cacheid+y}
13957 then :
13958 printf %s "(cached) " >&6
13959 else $as_nop
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962 int i;
13963 int
13964 main (void)
13965 {
13966
13967 ;
13968 return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_link "$LINENO"
13972 then :
13973 eval $cacheid=yes
13974 else $as_nop
13975 eval $cacheid=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13978 conftest$ac_exeext conftest.$ac_ext
13979 fi
13980
13981
13982 CFLAGS="$xorg_testset_save_CFLAGS"
13983
13984 eval supported=\$$cacheid
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13986 printf "%s\n" "$supported" >&6; }
13987 if test "$supported" = "yes" ; then
13988 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13989 found="yes"
13990 fi
13991 fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007 xorg_testset_save_CFLAGS="$CFLAGS"
14008
14009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14013 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14014 then :
14015 printf %s "(cached) " >&6
14016 else $as_nop
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 int i;
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"
14022 then :
14023 xorg_cv_cc_flag_unknown_warning_option=yes
14024 else $as_nop
14025 xorg_cv_cc_flag_unknown_warning_option=no
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14028 fi
14029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14032 CFLAGS="$xorg_testset_save_CFLAGS"
14033 fi
14034
14035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14038 fi
14039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14043 then :
14044 printf %s "(cached) " >&6
14045 else $as_nop
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 int i;
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"
14051 then :
14052 xorg_cv_cc_flag_unused_command_line_argument=yes
14053 else $as_nop
14054 xorg_cv_cc_flag_unused_command_line_argument=no
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14057 fi
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14059 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14061 CFLAGS="$xorg_testset_save_CFLAGS"
14062 fi
14063
14064 found="no"
14065
14066 if test $found = "no" ; then
14067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14069 fi
14070
14071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14073 fi
14074
14075 CFLAGS="$CFLAGS -Wold-style-definition"
14076
14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14078 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14079 cacheid=xorg_cv_cc_flag__Wold_style_definition
14080 if eval test \${$cacheid+y}
14081 then :
14082 printf %s "(cached) " >&6
14083 else $as_nop
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 int i;
14087 int
14088 main (void)
14089 {
14090
14091 ;
14092 return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_link "$LINENO"
14096 then :
14097 eval $cacheid=yes
14098 else $as_nop
14099 eval $cacheid=no
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14102 conftest$ac_exeext conftest.$ac_ext
14103 fi
14104
14105
14106 CFLAGS="$xorg_testset_save_CFLAGS"
14107
14108 eval supported=\$$cacheid
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14110 printf "%s\n" "$supported" >&6; }
14111 if test "$supported" = "yes" ; then
14112 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14113 found="yes"
14114 fi
14115 fi
14116
14117 if test $found = "no" ; then
14118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120 fi
14121
14122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124 fi
14125
14126 CFLAGS="$CFLAGS -fd"
14127
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14129 printf %s "checking if $CC supports -fd... " >&6; }
14130 cacheid=xorg_cv_cc_flag__fd
14131 if eval test \${$cacheid+y}
14132 then :
14133 printf %s "(cached) " >&6
14134 else $as_nop
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 int i;
14138 int
14139 main (void)
14140 {
14141
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"
14147 then :
14148 eval $cacheid=yes
14149 else $as_nop
14150 eval $cacheid=no
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14153 conftest$ac_exeext conftest.$ac_ext
14154 fi
14155
14156
14157 CFLAGS="$xorg_testset_save_CFLAGS"
14158
14159 eval supported=\$$cacheid
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14161 printf "%s\n" "$supported" >&6; }
14162 if test "$supported" = "yes" ; then
14163 BASE_CFLAGS="$BASE_CFLAGS -fd"
14164 found="yes"
14165 fi
14166 fi
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182 xorg_testset_save_CFLAGS="$CFLAGS"
14183
14184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14189 then :
14190 printf %s "(cached) " >&6
14191 else $as_nop
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 int i;
14195 _ACEOF
14196 if ac_fn_c_try_compile "$LINENO"
14197 then :
14198 xorg_cv_cc_flag_unknown_warning_option=yes
14199 else $as_nop
14200 xorg_cv_cc_flag_unknown_warning_option=no
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14203 fi
14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14207 CFLAGS="$xorg_testset_save_CFLAGS"
14208 fi
14209
14210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14213 fi
14214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14218 then :
14219 printf %s "(cached) " >&6
14220 else $as_nop
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 int i;
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"
14226 then :
14227 xorg_cv_cc_flag_unused_command_line_argument=yes
14228 else $as_nop
14229 xorg_cv_cc_flag_unused_command_line_argument=no
14230 fi
14231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14232 fi
14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14236 CFLAGS="$xorg_testset_save_CFLAGS"
14237 fi
14238
14239 found="no"
14240
14241 if test $found = "no" ; then
14242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14244 fi
14245
14246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14248 fi
14249
14250 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14251
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14253 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14254 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14255 if eval test \${$cacheid+y}
14256 then :
14257 printf %s "(cached) " >&6
14258 else $as_nop
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 int i;
14262 int
14263 main (void)
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"
14271 then :
14272 eval $cacheid=yes
14273 else $as_nop
14274 eval $cacheid=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14277 conftest$ac_exeext conftest.$ac_ext
14278 fi
14279
14280
14281 CFLAGS="$xorg_testset_save_CFLAGS"
14282
14283 eval supported=\$$cacheid
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14285 printf "%s\n" "$supported" >&6; }
14286 if test "$supported" = "yes" ; then
14287 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14288 found="yes"
14289 fi
14290 fi
14291
14292
14293
14294
14295
14296 # This chunk adds additional warnings that could catch undesired effects.
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310 xorg_testset_save_CFLAGS="$CFLAGS"
14311
14312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14316 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14317 then :
14318 printf %s "(cached) " >&6
14319 else $as_nop
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 int i;
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"
14325 then :
14326 xorg_cv_cc_flag_unknown_warning_option=yes
14327 else $as_nop
14328 xorg_cv_cc_flag_unknown_warning_option=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14331 fi
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14333 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14335 CFLAGS="$xorg_testset_save_CFLAGS"
14336 fi
14337
14338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341 fi
14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14346 then :
14347 printf %s "(cached) " >&6
14348 else $as_nop
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 int i;
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"
14354 then :
14355 xorg_cv_cc_flag_unused_command_line_argument=yes
14356 else $as_nop
14357 xorg_cv_cc_flag_unused_command_line_argument=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14360 fi
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14364 CFLAGS="$xorg_testset_save_CFLAGS"
14365 fi
14366
14367 found="no"
14368
14369 if test $found = "no" ; then
14370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14372 fi
14373
14374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14376 fi
14377
14378 CFLAGS="$CFLAGS -Wunused"
14379
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14381 printf %s "checking if $CC supports -Wunused... " >&6; }
14382 cacheid=xorg_cv_cc_flag__Wunused
14383 if eval test \${$cacheid+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else $as_nop
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main (void)
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"
14399 then :
14400 eval $cacheid=yes
14401 else $as_nop
14402 eval $cacheid=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14405 conftest$ac_exeext conftest.$ac_ext
14406 fi
14407
14408
14409 CFLAGS="$xorg_testset_save_CFLAGS"
14410
14411 eval supported=\$$cacheid
14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14413 printf "%s\n" "$supported" >&6; }
14414 if test "$supported" = "yes" ; then
14415 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14416 found="yes"
14417 fi
14418 fi
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434 xorg_testset_save_CFLAGS="$CFLAGS"
14435
14436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14440 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14441 then :
14442 printf %s "(cached) " >&6
14443 else $as_nop
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 int i;
14447 _ACEOF
14448 if ac_fn_c_try_compile "$LINENO"
14449 then :
14450 xorg_cv_cc_flag_unknown_warning_option=yes
14451 else $as_nop
14452 xorg_cv_cc_flag_unknown_warning_option=no
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14455 fi
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14459 CFLAGS="$xorg_testset_save_CFLAGS"
14460 fi
14461
14462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465 fi
14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14470 then :
14471 printf %s "(cached) " >&6
14472 else $as_nop
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 int i;
14476 _ACEOF
14477 if ac_fn_c_try_compile "$LINENO"
14478 then :
14479 xorg_cv_cc_flag_unused_command_line_argument=yes
14480 else $as_nop
14481 xorg_cv_cc_flag_unused_command_line_argument=no
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14484 fi
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14488 CFLAGS="$xorg_testset_save_CFLAGS"
14489 fi
14490
14491 found="no"
14492
14493 if test $found = "no" ; then
14494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14496 fi
14497
14498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14500 fi
14501
14502 CFLAGS="$CFLAGS -Wuninitialized"
14503
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14505 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14506 cacheid=xorg_cv_cc_flag__Wuninitialized
14507 if eval test \${$cacheid+y}
14508 then :
14509 printf %s "(cached) " >&6
14510 else $as_nop
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 int i;
14514 int
14515 main (void)
14516 {
14517
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"
14523 then :
14524 eval $cacheid=yes
14525 else $as_nop
14526 eval $cacheid=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14529 conftest$ac_exeext conftest.$ac_ext
14530 fi
14531
14532
14533 CFLAGS="$xorg_testset_save_CFLAGS"
14534
14535 eval supported=\$$cacheid
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14537 printf "%s\n" "$supported" >&6; }
14538 if test "$supported" = "yes" ; then
14539 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14540 found="yes"
14541 fi
14542 fi
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 xorg_testset_save_CFLAGS="$CFLAGS"
14559
14560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14563 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14564 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14565 then :
14566 printf %s "(cached) " >&6
14567 else $as_nop
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 int i;
14571 _ACEOF
14572 if ac_fn_c_try_compile "$LINENO"
14573 then :
14574 xorg_cv_cc_flag_unknown_warning_option=yes
14575 else $as_nop
14576 xorg_cv_cc_flag_unknown_warning_option=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14579 fi
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14581 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14583 CFLAGS="$xorg_testset_save_CFLAGS"
14584 fi
14585
14586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14589 fi
14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14592 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14593 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14594 then :
14595 printf %s "(cached) " >&6
14596 else $as_nop
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 int i;
14600 _ACEOF
14601 if ac_fn_c_try_compile "$LINENO"
14602 then :
14603 xorg_cv_cc_flag_unused_command_line_argument=yes
14604 else $as_nop
14605 xorg_cv_cc_flag_unused_command_line_argument=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14608 fi
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14610 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14612 CFLAGS="$xorg_testset_save_CFLAGS"
14613 fi
14614
14615 found="no"
14616
14617 if test $found = "no" ; then
14618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620 fi
14621
14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624 fi
14625
14626 CFLAGS="$CFLAGS -Wshadow"
14627
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14629 printf %s "checking if $CC supports -Wshadow... " >&6; }
14630 cacheid=xorg_cv_cc_flag__Wshadow
14631 if eval test \${$cacheid+y}
14632 then :
14633 printf %s "(cached) " >&6
14634 else $as_nop
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 int i;
14638 int
14639 main (void)
14640 {
14641
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"
14647 then :
14648 eval $cacheid=yes
14649 else $as_nop
14650 eval $cacheid=no
14651 fi
14652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14653 conftest$ac_exeext conftest.$ac_ext
14654 fi
14655
14656
14657 CFLAGS="$xorg_testset_save_CFLAGS"
14658
14659 eval supported=\$$cacheid
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14661 printf "%s\n" "$supported" >&6; }
14662 if test "$supported" = "yes" ; then
14663 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14664 found="yes"
14665 fi
14666 fi
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682 xorg_testset_save_CFLAGS="$CFLAGS"
14683
14684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14688 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14689 then :
14690 printf %s "(cached) " >&6
14691 else $as_nop
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14694 int i;
14695 _ACEOF
14696 if ac_fn_c_try_compile "$LINENO"
14697 then :
14698 xorg_cv_cc_flag_unknown_warning_option=yes
14699 else $as_nop
14700 xorg_cv_cc_flag_unknown_warning_option=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14703 fi
14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14707 CFLAGS="$xorg_testset_save_CFLAGS"
14708 fi
14709
14710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14713 fi
14714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14718 then :
14719 printf %s "(cached) " >&6
14720 else $as_nop
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 int i;
14724 _ACEOF
14725 if ac_fn_c_try_compile "$LINENO"
14726 then :
14727 xorg_cv_cc_flag_unused_command_line_argument=yes
14728 else $as_nop
14729 xorg_cv_cc_flag_unused_command_line_argument=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14732 fi
14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14734 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14736 CFLAGS="$xorg_testset_save_CFLAGS"
14737 fi
14738
14739 found="no"
14740
14741 if test $found = "no" ; then
14742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14744 fi
14745
14746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14748 fi
14749
14750 CFLAGS="$CFLAGS -Wmissing-noreturn"
14751
14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14753 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14754 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14755 if eval test \${$cacheid+y}
14756 then :
14757 printf %s "(cached) " >&6
14758 else $as_nop
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 int i;
14762 int
14763 main (void)
14764 {
14765
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_link "$LINENO"
14771 then :
14772 eval $cacheid=yes
14773 else $as_nop
14774 eval $cacheid=no
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14777 conftest$ac_exeext conftest.$ac_ext
14778 fi
14779
14780
14781 CFLAGS="$xorg_testset_save_CFLAGS"
14782
14783 eval supported=\$$cacheid
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14785 printf "%s\n" "$supported" >&6; }
14786 if test "$supported" = "yes" ; then
14787 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14788 found="yes"
14789 fi
14790 fi
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806 xorg_testset_save_CFLAGS="$CFLAGS"
14807
14808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14813 then :
14814 printf %s "(cached) " >&6
14815 else $as_nop
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 int i;
14819 _ACEOF
14820 if ac_fn_c_try_compile "$LINENO"
14821 then :
14822 xorg_cv_cc_flag_unknown_warning_option=yes
14823 else $as_nop
14824 xorg_cv_cc_flag_unknown_warning_option=no
14825 fi
14826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14827 fi
14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14831 CFLAGS="$xorg_testset_save_CFLAGS"
14832 fi
14833
14834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837 fi
14838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14842 then :
14843 printf %s "(cached) " >&6
14844 else $as_nop
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14847 int i;
14848 _ACEOF
14849 if ac_fn_c_try_compile "$LINENO"
14850 then :
14851 xorg_cv_cc_flag_unused_command_line_argument=yes
14852 else $as_nop
14853 xorg_cv_cc_flag_unused_command_line_argument=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14856 fi
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14858 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14860 CFLAGS="$xorg_testset_save_CFLAGS"
14861 fi
14862
14863 found="no"
14864
14865 if test $found = "no" ; then
14866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14868 fi
14869
14870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14872 fi
14873
14874 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14875
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14877 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14878 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14879 if eval test \${$cacheid+y}
14880 then :
14881 printf %s "(cached) " >&6
14882 else $as_nop
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 int i;
14886 int
14887 main (void)
14888 {
14889
14890 ;
14891 return 0;
14892 }
14893 _ACEOF
14894 if ac_fn_c_try_link "$LINENO"
14895 then :
14896 eval $cacheid=yes
14897 else $as_nop
14898 eval $cacheid=no
14899 fi
14900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14901 conftest$ac_exeext conftest.$ac_ext
14902 fi
14903
14904
14905 CFLAGS="$xorg_testset_save_CFLAGS"
14906
14907 eval supported=\$$cacheid
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14909 printf "%s\n" "$supported" >&6; }
14910 if test "$supported" = "yes" ; then
14911 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14912 found="yes"
14913 fi
14914 fi
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930 xorg_testset_save_CFLAGS="$CFLAGS"
14931
14932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14937 then :
14938 printf %s "(cached) " >&6
14939 else $as_nop
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 int i;
14943 _ACEOF
14944 if ac_fn_c_try_compile "$LINENO"
14945 then :
14946 xorg_cv_cc_flag_unknown_warning_option=yes
14947 else $as_nop
14948 xorg_cv_cc_flag_unknown_warning_option=no
14949 fi
14950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14951 fi
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14955 CFLAGS="$xorg_testset_save_CFLAGS"
14956 fi
14957
14958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 fi
14962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14966 then :
14967 printf %s "(cached) " >&6
14968 else $as_nop
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 int i;
14972 _ACEOF
14973 if ac_fn_c_try_compile "$LINENO"
14974 then :
14975 xorg_cv_cc_flag_unused_command_line_argument=yes
14976 else $as_nop
14977 xorg_cv_cc_flag_unused_command_line_argument=no
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14980 fi
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14984 CFLAGS="$xorg_testset_save_CFLAGS"
14985 fi
14986
14987 found="no"
14988
14989 if test $found = "no" ; then
14990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14992 fi
14993
14994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14996 fi
14997
14998 CFLAGS="$CFLAGS -Wredundant-decls"
14999
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15001 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15002 cacheid=xorg_cv_cc_flag__Wredundant_decls
15003 if eval test \${$cacheid+y}
15004 then :
15005 printf %s "(cached) " >&6
15006 else $as_nop
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 int i;
15010 int
15011 main (void)
15012 {
15013
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"
15019 then :
15020 eval $cacheid=yes
15021 else $as_nop
15022 eval $cacheid=no
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15025 conftest$ac_exeext conftest.$ac_ext
15026 fi
15027
15028
15029 CFLAGS="$xorg_testset_save_CFLAGS"
15030
15031 eval supported=\$$cacheid
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15033 printf "%s\n" "$supported" >&6; }
15034 if test "$supported" = "yes" ; then
15035 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15036 found="yes"
15037 fi
15038 fi
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054 xorg_testset_save_CFLAGS="$CFLAGS"
15055
15056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15059 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15060 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15061 then :
15062 printf %s "(cached) " >&6
15063 else $as_nop
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15066 int i;
15067 _ACEOF
15068 if ac_fn_c_try_compile "$LINENO"
15069 then :
15070 xorg_cv_cc_flag_unknown_warning_option=yes
15071 else $as_nop
15072 xorg_cv_cc_flag_unknown_warning_option=no
15073 fi
15074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15075 fi
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15079 CFLAGS="$xorg_testset_save_CFLAGS"
15080 fi
15081
15082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15085 fi
15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else $as_nop
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"
15098 then :
15099 xorg_cv_cc_flag_unused_command_line_argument=yes
15100 else $as_nop
15101 xorg_cv_cc_flag_unused_command_line_argument=no
15102 fi
15103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15104 fi
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15108 CFLAGS="$xorg_testset_save_CFLAGS"
15109 fi
15110
15111 found="no"
15112
15113 if test $found = "no" ; then
15114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15116 fi
15117
15118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15120 fi
15121
15122 CFLAGS="$CFLAGS -Wlogical-op"
15123
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15125 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15126 cacheid=xorg_cv_cc_flag__Wlogical_op
15127 if eval test \${$cacheid+y}
15128 then :
15129 printf %s "(cached) " >&6
15130 else $as_nop
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 int i;
15134 int
15135 main (void)
15136 {
15137
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"
15143 then :
15144 eval $cacheid=yes
15145 else $as_nop
15146 eval $cacheid=no
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15149 conftest$ac_exeext conftest.$ac_ext
15150 fi
15151
15152
15153 CFLAGS="$xorg_testset_save_CFLAGS"
15154
15155 eval supported=\$$cacheid
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15157 printf "%s\n" "$supported" >&6; }
15158 if test "$supported" = "yes" ; then
15159 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15160 found="yes"
15161 fi
15162 fi
15163
15164
15165
15166 # These are currently disabled because they are noisy. They will be enabled
15167 # in the future once the codebase is sufficiently modernized to silence
15168 # them. For now, I don't want them to drown out the other warnings.
15169 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15170 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15171 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15172
15173 # Turn some warnings into errors, so we don't accidentally get successful builds
15174 # when there are problems that should be fixed.
15175
15176 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190 xorg_testset_save_CFLAGS="$CFLAGS"
15191
15192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15195 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15196 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15197 then :
15198 printf %s "(cached) " >&6
15199 else $as_nop
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 int i;
15203 _ACEOF
15204 if ac_fn_c_try_compile "$LINENO"
15205 then :
15206 xorg_cv_cc_flag_unknown_warning_option=yes
15207 else $as_nop
15208 xorg_cv_cc_flag_unknown_warning_option=no
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15211 fi
15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15213 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15215 CFLAGS="$xorg_testset_save_CFLAGS"
15216 fi
15217
15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221 fi
15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15224 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15225 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15226 then :
15227 printf %s "(cached) " >&6
15228 else $as_nop
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 _ACEOF
15233 if ac_fn_c_try_compile "$LINENO"
15234 then :
15235 xorg_cv_cc_flag_unused_command_line_argument=yes
15236 else $as_nop
15237 xorg_cv_cc_flag_unused_command_line_argument=no
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15240 fi
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15242 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15244 CFLAGS="$xorg_testset_save_CFLAGS"
15245 fi
15246
15247 found="no"
15248
15249 if test $found = "no" ; then
15250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252 fi
15253
15254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15256 fi
15257
15258 CFLAGS="$CFLAGS -Werror=implicit"
15259
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15261 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15262 cacheid=xorg_cv_cc_flag__Werror_implicit
15263 if eval test \${$cacheid+y}
15264 then :
15265 printf %s "(cached) " >&6
15266 else $as_nop
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269 int i;
15270 int
15271 main (void)
15272 {
15273
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"
15279 then :
15280 eval $cacheid=yes
15281 else $as_nop
15282 eval $cacheid=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15285 conftest$ac_exeext conftest.$ac_ext
15286 fi
15287
15288
15289 CFLAGS="$xorg_testset_save_CFLAGS"
15290
15291 eval supported=\$$cacheid
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15293 printf "%s\n" "$supported" >&6; }
15294 if test "$supported" = "yes" ; then
15295 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15296 found="yes"
15297 fi
15298 fi
15299
15300 if test $found = "no" ; then
15301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303 fi
15304
15305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307 fi
15308
15309 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15310
15311 { 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
15312 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15313 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15314 if eval test \${$cacheid+y}
15315 then :
15316 printf %s "(cached) " >&6
15317 else $as_nop
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320 int i;
15321 int
15322 main (void)
15323 {
15324
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"
15330 then :
15331 eval $cacheid=yes
15332 else $as_nop
15333 eval $cacheid=no
15334 fi
15335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15336 conftest$ac_exeext conftest.$ac_ext
15337 fi
15338
15339
15340 CFLAGS="$xorg_testset_save_CFLAGS"
15341
15342 eval supported=\$$cacheid
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15344 printf "%s\n" "$supported" >&6; }
15345 if test "$supported" = "yes" ; then
15346 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15347 found="yes"
15348 fi
15349 fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365 xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372 then :
15373 printf %s "(cached) " >&6
15374 else $as_nop
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 _ACEOF
15379 if ac_fn_c_try_compile "$LINENO"
15380 then :
15381 xorg_cv_cc_flag_unknown_warning_option=yes
15382 else $as_nop
15383 xorg_cv_cc_flag_unknown_warning_option=no
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15386 fi
15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15390 CFLAGS="$xorg_testset_save_CFLAGS"
15391 fi
15392
15393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 fi
15397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15401 then :
15402 printf %s "(cached) " >&6
15403 else $as_nop
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 int i;
15407 _ACEOF
15408 if ac_fn_c_try_compile "$LINENO"
15409 then :
15410 xorg_cv_cc_flag_unused_command_line_argument=yes
15411 else $as_nop
15412 xorg_cv_cc_flag_unused_command_line_argument=no
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15415 fi
15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15419 CFLAGS="$xorg_testset_save_CFLAGS"
15420 fi
15421
15422 found="no"
15423
15424 if test $found = "no" ; then
15425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15427 fi
15428
15429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15431 fi
15432
15433 CFLAGS="$CFLAGS -Werror=nonnull"
15434
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15436 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15437 cacheid=xorg_cv_cc_flag__Werror_nonnull
15438 if eval test \${$cacheid+y}
15439 then :
15440 printf %s "(cached) " >&6
15441 else $as_nop
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 int i;
15445 int
15446 main (void)
15447 {
15448
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"
15454 then :
15455 eval $cacheid=yes
15456 else $as_nop
15457 eval $cacheid=no
15458 fi
15459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15460 conftest$ac_exeext conftest.$ac_ext
15461 fi
15462
15463
15464 CFLAGS="$xorg_testset_save_CFLAGS"
15465
15466 eval supported=\$$cacheid
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15468 printf "%s\n" "$supported" >&6; }
15469 if test "$supported" = "yes" ; then
15470 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15471 found="yes"
15472 fi
15473 fi
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489 xorg_testset_save_CFLAGS="$CFLAGS"
15490
15491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15496 then :
15497 printf %s "(cached) " >&6
15498 else $as_nop
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501 int i;
15502 _ACEOF
15503 if ac_fn_c_try_compile "$LINENO"
15504 then :
15505 xorg_cv_cc_flag_unknown_warning_option=yes
15506 else $as_nop
15507 xorg_cv_cc_flag_unknown_warning_option=no
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15510 fi
15511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15514 CFLAGS="$xorg_testset_save_CFLAGS"
15515 fi
15516
15517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15520 fi
15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15525 then :
15526 printf %s "(cached) " >&6
15527 else $as_nop
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 int i;
15531 _ACEOF
15532 if ac_fn_c_try_compile "$LINENO"
15533 then :
15534 xorg_cv_cc_flag_unused_command_line_argument=yes
15535 else $as_nop
15536 xorg_cv_cc_flag_unused_command_line_argument=no
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15539 fi
15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15543 CFLAGS="$xorg_testset_save_CFLAGS"
15544 fi
15545
15546 found="no"
15547
15548 if test $found = "no" ; then
15549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15551 fi
15552
15553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15555 fi
15556
15557 CFLAGS="$CFLAGS -Werror=init-self"
15558
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15560 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15561 cacheid=xorg_cv_cc_flag__Werror_init_self
15562 if eval test \${$cacheid+y}
15563 then :
15564 printf %s "(cached) " >&6
15565 else $as_nop
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 int i;
15569 int
15570 main (void)
15571 {
15572
15573 ;
15574 return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_link "$LINENO"
15578 then :
15579 eval $cacheid=yes
15580 else $as_nop
15581 eval $cacheid=no
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15584 conftest$ac_exeext conftest.$ac_ext
15585 fi
15586
15587
15588 CFLAGS="$xorg_testset_save_CFLAGS"
15589
15590 eval supported=\$$cacheid
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15592 printf "%s\n" "$supported" >&6; }
15593 if test "$supported" = "yes" ; then
15594 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15595 found="yes"
15596 fi
15597 fi
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613 xorg_testset_save_CFLAGS="$CFLAGS"
15614
15615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15620 then :
15621 printf %s "(cached) " >&6
15622 else $as_nop
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 int i;
15626 _ACEOF
15627 if ac_fn_c_try_compile "$LINENO"
15628 then :
15629 xorg_cv_cc_flag_unknown_warning_option=yes
15630 else $as_nop
15631 xorg_cv_cc_flag_unknown_warning_option=no
15632 fi
15633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15634 fi
15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15638 CFLAGS="$xorg_testset_save_CFLAGS"
15639 fi
15640
15641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644 fi
15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15649 then :
15650 printf %s "(cached) " >&6
15651 else $as_nop
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 int i;
15655 _ACEOF
15656 if ac_fn_c_try_compile "$LINENO"
15657 then :
15658 xorg_cv_cc_flag_unused_command_line_argument=yes
15659 else $as_nop
15660 xorg_cv_cc_flag_unused_command_line_argument=no
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15663 fi
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15667 CFLAGS="$xorg_testset_save_CFLAGS"
15668 fi
15669
15670 found="no"
15671
15672 if test $found = "no" ; then
15673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15675 fi
15676
15677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15679 fi
15680
15681 CFLAGS="$CFLAGS -Werror=main"
15682
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15684 printf %s "checking if $CC supports -Werror=main... " >&6; }
15685 cacheid=xorg_cv_cc_flag__Werror_main
15686 if eval test \${$cacheid+y}
15687 then :
15688 printf %s "(cached) " >&6
15689 else $as_nop
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692 int i;
15693 int
15694 main (void)
15695 {
15696
15697 ;
15698 return 0;
15699 }
15700 _ACEOF
15701 if ac_fn_c_try_link "$LINENO"
15702 then :
15703 eval $cacheid=yes
15704 else $as_nop
15705 eval $cacheid=no
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15708 conftest$ac_exeext conftest.$ac_ext
15709 fi
15710
15711
15712 CFLAGS="$xorg_testset_save_CFLAGS"
15713
15714 eval supported=\$$cacheid
15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15716 printf "%s\n" "$supported" >&6; }
15717 if test "$supported" = "yes" ; then
15718 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15719 found="yes"
15720 fi
15721 fi
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737 xorg_testset_save_CFLAGS="$CFLAGS"
15738
15739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15744 then :
15745 printf %s "(cached) " >&6
15746 else $as_nop
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749 int i;
15750 _ACEOF
15751 if ac_fn_c_try_compile "$LINENO"
15752 then :
15753 xorg_cv_cc_flag_unknown_warning_option=yes
15754 else $as_nop
15755 xorg_cv_cc_flag_unknown_warning_option=no
15756 fi
15757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15758 fi
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15762 CFLAGS="$xorg_testset_save_CFLAGS"
15763 fi
15764
15765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15768 fi
15769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15773 then :
15774 printf %s "(cached) " >&6
15775 else $as_nop
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 int i;
15779 _ACEOF
15780 if ac_fn_c_try_compile "$LINENO"
15781 then :
15782 xorg_cv_cc_flag_unused_command_line_argument=yes
15783 else $as_nop
15784 xorg_cv_cc_flag_unused_command_line_argument=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 fi
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15791 CFLAGS="$xorg_testset_save_CFLAGS"
15792 fi
15793
15794 found="no"
15795
15796 if test $found = "no" ; then
15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803 fi
15804
15805 CFLAGS="$CFLAGS -Werror=missing-braces"
15806
15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15808 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15809 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15810 if eval test \${$cacheid+y}
15811 then :
15812 printf %s "(cached) " >&6
15813 else $as_nop
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 int i;
15817 int
15818 main (void)
15819 {
15820
15821 ;
15822 return 0;
15823 }
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"
15826 then :
15827 eval $cacheid=yes
15828 else $as_nop
15829 eval $cacheid=no
15830 fi
15831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15832 conftest$ac_exeext conftest.$ac_ext
15833 fi
15834
15835
15836 CFLAGS="$xorg_testset_save_CFLAGS"
15837
15838 eval supported=\$$cacheid
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15840 printf "%s\n" "$supported" >&6; }
15841 if test "$supported" = "yes" ; then
15842 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15843 found="yes"
15844 fi
15845 fi
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861 xorg_testset_save_CFLAGS="$CFLAGS"
15862
15863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15867 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15868 then :
15869 printf %s "(cached) " >&6
15870 else $as_nop
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 int i;
15874 _ACEOF
15875 if ac_fn_c_try_compile "$LINENO"
15876 then :
15877 xorg_cv_cc_flag_unknown_warning_option=yes
15878 else $as_nop
15879 xorg_cv_cc_flag_unknown_warning_option=no
15880 fi
15881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15882 fi
15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15886 CFLAGS="$xorg_testset_save_CFLAGS"
15887 fi
15888
15889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892 fi
15893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15897 then :
15898 printf %s "(cached) " >&6
15899 else $as_nop
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 int i;
15903 _ACEOF
15904 if ac_fn_c_try_compile "$LINENO"
15905 then :
15906 xorg_cv_cc_flag_unused_command_line_argument=yes
15907 else $as_nop
15908 xorg_cv_cc_flag_unused_command_line_argument=no
15909 fi
15910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15911 fi
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15915 CFLAGS="$xorg_testset_save_CFLAGS"
15916 fi
15917
15918 found="no"
15919
15920 if test $found = "no" ; then
15921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15923 fi
15924
15925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15927 fi
15928
15929 CFLAGS="$CFLAGS -Werror=sequence-point"
15930
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15932 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15933 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15934 if eval test \${$cacheid+y}
15935 then :
15936 printf %s "(cached) " >&6
15937 else $as_nop
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 int i;
15941 int
15942 main (void)
15943 {
15944
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 if ac_fn_c_try_link "$LINENO"
15950 then :
15951 eval $cacheid=yes
15952 else $as_nop
15953 eval $cacheid=no
15954 fi
15955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15956 conftest$ac_exeext conftest.$ac_ext
15957 fi
15958
15959
15960 CFLAGS="$xorg_testset_save_CFLAGS"
15961
15962 eval supported=\$$cacheid
15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15964 printf "%s\n" "$supported" >&6; }
15965 if test "$supported" = "yes" ; then
15966 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15967 found="yes"
15968 fi
15969 fi
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985 xorg_testset_save_CFLAGS="$CFLAGS"
15986
15987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15992 then :
15993 printf %s "(cached) " >&6
15994 else $as_nop
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 int i;
15998 _ACEOF
15999 if ac_fn_c_try_compile "$LINENO"
16000 then :
16001 xorg_cv_cc_flag_unknown_warning_option=yes
16002 else $as_nop
16003 xorg_cv_cc_flag_unknown_warning_option=no
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16006 fi
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16010 CFLAGS="$xorg_testset_save_CFLAGS"
16011 fi
16012
16013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016 fi
16017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16021 then :
16022 printf %s "(cached) " >&6
16023 else $as_nop
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 int i;
16027 _ACEOF
16028 if ac_fn_c_try_compile "$LINENO"
16029 then :
16030 xorg_cv_cc_flag_unused_command_line_argument=yes
16031 else $as_nop
16032 xorg_cv_cc_flag_unused_command_line_argument=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16035 fi
16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16039 CFLAGS="$xorg_testset_save_CFLAGS"
16040 fi
16041
16042 found="no"
16043
16044 if test $found = "no" ; then
16045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16047 fi
16048
16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051 fi
16052
16053 CFLAGS="$CFLAGS -Werror=return-type"
16054
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16056 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16057 cacheid=xorg_cv_cc_flag__Werror_return_type
16058 if eval test \${$cacheid+y}
16059 then :
16060 printf %s "(cached) " >&6
16061 else $as_nop
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16064 int i;
16065 int
16066 main (void)
16067 {
16068
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_link "$LINENO"
16074 then :
16075 eval $cacheid=yes
16076 else $as_nop
16077 eval $cacheid=no
16078 fi
16079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16080 conftest$ac_exeext conftest.$ac_ext
16081 fi
16082
16083
16084 CFLAGS="$xorg_testset_save_CFLAGS"
16085
16086 eval supported=\$$cacheid
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16088 printf "%s\n" "$supported" >&6; }
16089 if test "$supported" = "yes" ; then
16090 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16091 found="yes"
16092 fi
16093 fi
16094
16095 if test $found = "no" ; then
16096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16098 fi
16099
16100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16102 fi
16103
16104 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16105
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16107 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16108 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16109 if eval test \${$cacheid+y}
16110 then :
16111 printf %s "(cached) " >&6
16112 else $as_nop
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 int
16117 main (void)
16118 {
16119
16120 ;
16121 return 0;
16122 }
16123 _ACEOF
16124 if ac_fn_c_try_link "$LINENO"
16125 then :
16126 eval $cacheid=yes
16127 else $as_nop
16128 eval $cacheid=no
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16131 conftest$ac_exeext conftest.$ac_ext
16132 fi
16133
16134
16135 CFLAGS="$xorg_testset_save_CFLAGS"
16136
16137 eval supported=\$$cacheid
16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16139 printf "%s\n" "$supported" >&6; }
16140 if test "$supported" = "yes" ; then
16141 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16142 found="yes"
16143 fi
16144 fi
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160 xorg_testset_save_CFLAGS="$CFLAGS"
16161
16162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16166 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16167 then :
16168 printf %s "(cached) " >&6
16169 else $as_nop
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172 int i;
16173 _ACEOF
16174 if ac_fn_c_try_compile "$LINENO"
16175 then :
16176 xorg_cv_cc_flag_unknown_warning_option=yes
16177 else $as_nop
16178 xorg_cv_cc_flag_unknown_warning_option=no
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16181 fi
16182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16185 CFLAGS="$xorg_testset_save_CFLAGS"
16186 fi
16187
16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191 fi
16192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16196 then :
16197 printf %s "(cached) " >&6
16198 else $as_nop
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 int i;
16202 _ACEOF
16203 if ac_fn_c_try_compile "$LINENO"
16204 then :
16205 xorg_cv_cc_flag_unused_command_line_argument=yes
16206 else $as_nop
16207 xorg_cv_cc_flag_unused_command_line_argument=no
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16210 fi
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16214 CFLAGS="$xorg_testset_save_CFLAGS"
16215 fi
16216
16217 found="no"
16218
16219 if test $found = "no" ; then
16220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16222 fi
16223
16224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16226 fi
16227
16228 CFLAGS="$CFLAGS -Werror=trigraphs"
16229
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16231 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16232 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16233 if eval test \${$cacheid+y}
16234 then :
16235 printf %s "(cached) " >&6
16236 else $as_nop
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 int i;
16240 int
16241 main (void)
16242 {
16243
16244 ;
16245 return 0;
16246 }
16247 _ACEOF
16248 if ac_fn_c_try_link "$LINENO"
16249 then :
16250 eval $cacheid=yes
16251 else $as_nop
16252 eval $cacheid=no
16253 fi
16254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16255 conftest$ac_exeext conftest.$ac_ext
16256 fi
16257
16258
16259 CFLAGS="$xorg_testset_save_CFLAGS"
16260
16261 eval supported=\$$cacheid
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16263 printf "%s\n" "$supported" >&6; }
16264 if test "$supported" = "yes" ; then
16265 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16266 found="yes"
16267 fi
16268 fi
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284 xorg_testset_save_CFLAGS="$CFLAGS"
16285
16286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16290 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16291 then :
16292 printf %s "(cached) " >&6
16293 else $as_nop
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16296 int i;
16297 _ACEOF
16298 if ac_fn_c_try_compile "$LINENO"
16299 then :
16300 xorg_cv_cc_flag_unknown_warning_option=yes
16301 else $as_nop
16302 xorg_cv_cc_flag_unknown_warning_option=no
16303 fi
16304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16305 fi
16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16309 CFLAGS="$xorg_testset_save_CFLAGS"
16310 fi
16311
16312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16315 fi
16316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16320 then :
16321 printf %s "(cached) " >&6
16322 else $as_nop
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 int i;
16326 _ACEOF
16327 if ac_fn_c_try_compile "$LINENO"
16328 then :
16329 xorg_cv_cc_flag_unused_command_line_argument=yes
16330 else $as_nop
16331 xorg_cv_cc_flag_unused_command_line_argument=no
16332 fi
16333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16334 fi
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16338 CFLAGS="$xorg_testset_save_CFLAGS"
16339 fi
16340
16341 found="no"
16342
16343 if test $found = "no" ; then
16344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16346 fi
16347
16348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16350 fi
16351
16352 CFLAGS="$CFLAGS -Werror=array-bounds"
16353
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16355 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16356 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16357 if eval test \${$cacheid+y}
16358 then :
16359 printf %s "(cached) " >&6
16360 else $as_nop
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 int i;
16364 int
16365 main (void)
16366 {
16367
16368 ;
16369 return 0;
16370 }
16371 _ACEOF
16372 if ac_fn_c_try_link "$LINENO"
16373 then :
16374 eval $cacheid=yes
16375 else $as_nop
16376 eval $cacheid=no
16377 fi
16378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16379 conftest$ac_exeext conftest.$ac_ext
16380 fi
16381
16382
16383 CFLAGS="$xorg_testset_save_CFLAGS"
16384
16385 eval supported=\$$cacheid
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16387 printf "%s\n" "$supported" >&6; }
16388 if test "$supported" = "yes" ; then
16389 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16390 found="yes"
16391 fi
16392 fi
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408 xorg_testset_save_CFLAGS="$CFLAGS"
16409
16410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16413 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16414 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16415 then :
16416 printf %s "(cached) " >&6
16417 else $as_nop
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 int i;
16421 _ACEOF
16422 if ac_fn_c_try_compile "$LINENO"
16423 then :
16424 xorg_cv_cc_flag_unknown_warning_option=yes
16425 else $as_nop
16426 xorg_cv_cc_flag_unknown_warning_option=no
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16429 fi
16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16433 CFLAGS="$xorg_testset_save_CFLAGS"
16434 fi
16435
16436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16439 fi
16440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16444 then :
16445 printf %s "(cached) " >&6
16446 else $as_nop
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 int i;
16450 _ACEOF
16451 if ac_fn_c_try_compile "$LINENO"
16452 then :
16453 xorg_cv_cc_flag_unused_command_line_argument=yes
16454 else $as_nop
16455 xorg_cv_cc_flag_unused_command_line_argument=no
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16458 fi
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16462 CFLAGS="$xorg_testset_save_CFLAGS"
16463 fi
16464
16465 found="no"
16466
16467 if test $found = "no" ; then
16468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16470 fi
16471
16472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16474 fi
16475
16476 CFLAGS="$CFLAGS -Werror=write-strings"
16477
16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16479 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16480 cacheid=xorg_cv_cc_flag__Werror_write_strings
16481 if eval test \${$cacheid+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else $as_nop
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16487 int i;
16488 int
16489 main (void)
16490 {
16491
16492 ;
16493 return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"
16497 then :
16498 eval $cacheid=yes
16499 else $as_nop
16500 eval $cacheid=no
16501 fi
16502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16503 conftest$ac_exeext conftest.$ac_ext
16504 fi
16505
16506
16507 CFLAGS="$xorg_testset_save_CFLAGS"
16508
16509 eval supported=\$$cacheid
16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16511 printf "%s\n" "$supported" >&6; }
16512 if test "$supported" = "yes" ; then
16513 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16514 found="yes"
16515 fi
16516 fi
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532 xorg_testset_save_CFLAGS="$CFLAGS"
16533
16534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16539 then :
16540 printf %s "(cached) " >&6
16541 else $as_nop
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16544 int i;
16545 _ACEOF
16546 if ac_fn_c_try_compile "$LINENO"
16547 then :
16548 xorg_cv_cc_flag_unknown_warning_option=yes
16549 else $as_nop
16550 xorg_cv_cc_flag_unknown_warning_option=no
16551 fi
16552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16553 fi
16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16557 CFLAGS="$xorg_testset_save_CFLAGS"
16558 fi
16559
16560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16563 fi
16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16568 then :
16569 printf %s "(cached) " >&6
16570 else $as_nop
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 int i;
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"
16576 then :
16577 xorg_cv_cc_flag_unused_command_line_argument=yes
16578 else $as_nop
16579 xorg_cv_cc_flag_unused_command_line_argument=no
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16582 fi
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16586 CFLAGS="$xorg_testset_save_CFLAGS"
16587 fi
16588
16589 found="no"
16590
16591 if test $found = "no" ; then
16592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16594 fi
16595
16596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16598 fi
16599
16600 CFLAGS="$CFLAGS -Werror=address"
16601
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16603 printf %s "checking if $CC supports -Werror=address... " >&6; }
16604 cacheid=xorg_cv_cc_flag__Werror_address
16605 if eval test \${$cacheid+y}
16606 then :
16607 printf %s "(cached) " >&6
16608 else $as_nop
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611 int i;
16612 int
16613 main (void)
16614 {
16615
16616 ;
16617 return 0;
16618 }
16619 _ACEOF
16620 if ac_fn_c_try_link "$LINENO"
16621 then :
16622 eval $cacheid=yes
16623 else $as_nop
16624 eval $cacheid=no
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16627 conftest$ac_exeext conftest.$ac_ext
16628 fi
16629
16630
16631 CFLAGS="$xorg_testset_save_CFLAGS"
16632
16633 eval supported=\$$cacheid
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16635 printf "%s\n" "$supported" >&6; }
16636 if test "$supported" = "yes" ; then
16637 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16638 found="yes"
16639 fi
16640 fi
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656 xorg_testset_save_CFLAGS="$CFLAGS"
16657
16658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16663 then :
16664 printf %s "(cached) " >&6
16665 else $as_nop
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16668 int i;
16669 _ACEOF
16670 if ac_fn_c_try_compile "$LINENO"
16671 then :
16672 xorg_cv_cc_flag_unknown_warning_option=yes
16673 else $as_nop
16674 xorg_cv_cc_flag_unknown_warning_option=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16677 fi
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16679 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16681 CFLAGS="$xorg_testset_save_CFLAGS"
16682 fi
16683
16684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687 fi
16688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16690 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16691 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16692 then :
16693 printf %s "(cached) " >&6
16694 else $as_nop
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697 int i;
16698 _ACEOF
16699 if ac_fn_c_try_compile "$LINENO"
16700 then :
16701 xorg_cv_cc_flag_unused_command_line_argument=yes
16702 else $as_nop
16703 xorg_cv_cc_flag_unused_command_line_argument=no
16704 fi
16705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16706 fi
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16710 CFLAGS="$xorg_testset_save_CFLAGS"
16711 fi
16712
16713 found="no"
16714
16715 if test $found = "no" ; then
16716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16718 fi
16719
16720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16722 fi
16723
16724 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16725
16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16727 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16728 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16729 if eval test \${$cacheid+y}
16730 then :
16731 printf %s "(cached) " >&6
16732 else $as_nop
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 int i;
16736 int
16737 main (void)
16738 {
16739
16740 ;
16741 return 0;
16742 }
16743 _ACEOF
16744 if ac_fn_c_try_link "$LINENO"
16745 then :
16746 eval $cacheid=yes
16747 else $as_nop
16748 eval $cacheid=no
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16751 conftest$ac_exeext conftest.$ac_ext
16752 fi
16753
16754
16755 CFLAGS="$xorg_testset_save_CFLAGS"
16756
16757 eval supported=\$$cacheid
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16759 printf "%s\n" "$supported" >&6; }
16760 if test "$supported" = "yes" ; then
16761 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16762 found="yes"
16763 fi
16764 fi
16765
16766 if test $found = "no" ; then
16767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769 fi
16770
16771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773 fi
16774
16775 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16776
16777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16778 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16779 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16780 if eval test \${$cacheid+y}
16781 then :
16782 printf %s "(cached) " >&6
16783 else $as_nop
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16786 int i;
16787 int
16788 main (void)
16789 {
16790
16791 ;
16792 return 0;
16793 }
16794 _ACEOF
16795 if ac_fn_c_try_link "$LINENO"
16796 then :
16797 eval $cacheid=yes
16798 else $as_nop
16799 eval $cacheid=no
16800 fi
16801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16802 conftest$ac_exeext conftest.$ac_ext
16803 fi
16804
16805
16806 CFLAGS="$xorg_testset_save_CFLAGS"
16807
16808 eval supported=\$$cacheid
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16810 printf "%s\n" "$supported" >&6; }
16811 if test "$supported" = "yes" ; then
16812 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16813 found="yes"
16814 fi
16815 fi
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831 xorg_testset_save_CFLAGS="$CFLAGS"
16832
16833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16838 then :
16839 printf %s "(cached) " >&6
16840 else $as_nop
16841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h. */
16843 int i;
16844 _ACEOF
16845 if ac_fn_c_try_compile "$LINENO"
16846 then :
16847 xorg_cv_cc_flag_unknown_warning_option=yes
16848 else $as_nop
16849 xorg_cv_cc_flag_unknown_warning_option=no
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16852 fi
16853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16856 CFLAGS="$xorg_testset_save_CFLAGS"
16857 fi
16858
16859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862 fi
16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16867 then :
16868 printf %s "(cached) " >&6
16869 else $as_nop
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 int i;
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"
16875 then :
16876 xorg_cv_cc_flag_unused_command_line_argument=yes
16877 else $as_nop
16878 xorg_cv_cc_flag_unused_command_line_argument=no
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16881 fi
16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16885 CFLAGS="$xorg_testset_save_CFLAGS"
16886 fi
16887
16888 found="no"
16889
16890 if test $found = "no" ; then
16891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893 fi
16894
16895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16897 fi
16898
16899 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16900
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16902 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16903 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16904 if eval test \${$cacheid+y}
16905 then :
16906 printf %s "(cached) " >&6
16907 else $as_nop
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 int i;
16911 int
16912 main (void)
16913 {
16914
16915 ;
16916 return 0;
16917 }
16918 _ACEOF
16919 if ac_fn_c_try_link "$LINENO"
16920 then :
16921 eval $cacheid=yes
16922 else $as_nop
16923 eval $cacheid=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16926 conftest$ac_exeext conftest.$ac_ext
16927 fi
16928
16929
16930 CFLAGS="$xorg_testset_save_CFLAGS"
16931
16932 eval supported=\$$cacheid
16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16934 printf "%s\n" "$supported" >&6; }
16935 if test "$supported" = "yes" ; then
16936 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16937 found="yes"
16938 fi
16939 fi
16940
16941 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16942 else
16943 { 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
16944 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;}
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958 xorg_testset_save_CFLAGS="$CFLAGS"
16959
16960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16965 then :
16966 printf %s "(cached) " >&6
16967 else $as_nop
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16970 int i;
16971 _ACEOF
16972 if ac_fn_c_try_compile "$LINENO"
16973 then :
16974 xorg_cv_cc_flag_unknown_warning_option=yes
16975 else $as_nop
16976 xorg_cv_cc_flag_unknown_warning_option=no
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16979 fi
16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16983 CFLAGS="$xorg_testset_save_CFLAGS"
16984 fi
16985
16986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989 fi
16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16994 then :
16995 printf %s "(cached) " >&6
16996 else $as_nop
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
16999 int i;
17000 _ACEOF
17001 if ac_fn_c_try_compile "$LINENO"
17002 then :
17003 xorg_cv_cc_flag_unused_command_line_argument=yes
17004 else $as_nop
17005 xorg_cv_cc_flag_unused_command_line_argument=no
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17008 fi
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17012 CFLAGS="$xorg_testset_save_CFLAGS"
17013 fi
17014
17015 found="no"
17016
17017 if test $found = "no" ; then
17018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020 fi
17021
17022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17024 fi
17025
17026 CFLAGS="$CFLAGS -Wimplicit"
17027
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17029 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17030 cacheid=xorg_cv_cc_flag__Wimplicit
17031 if eval test \${$cacheid+y}
17032 then :
17033 printf %s "(cached) " >&6
17034 else $as_nop
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 int i;
17038 int
17039 main (void)
17040 {
17041
17042 ;
17043 return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"
17047 then :
17048 eval $cacheid=yes
17049 else $as_nop
17050 eval $cacheid=no
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17053 conftest$ac_exeext conftest.$ac_ext
17054 fi
17055
17056
17057 CFLAGS="$xorg_testset_save_CFLAGS"
17058
17059 eval supported=\$$cacheid
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17061 printf "%s\n" "$supported" >&6; }
17062 if test "$supported" = "yes" ; then
17063 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17064 found="yes"
17065 fi
17066 fi
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082 xorg_testset_save_CFLAGS="$CFLAGS"
17083
17084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17089 then :
17090 printf %s "(cached) " >&6
17091 else $as_nop
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 int i;
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"
17097 then :
17098 xorg_cv_cc_flag_unknown_warning_option=yes
17099 else $as_nop
17100 xorg_cv_cc_flag_unknown_warning_option=no
17101 fi
17102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17103 fi
17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17107 CFLAGS="$xorg_testset_save_CFLAGS"
17108 fi
17109
17110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113 fi
17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17118 then :
17119 printf %s "(cached) " >&6
17120 else $as_nop
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123 int i;
17124 _ACEOF
17125 if ac_fn_c_try_compile "$LINENO"
17126 then :
17127 xorg_cv_cc_flag_unused_command_line_argument=yes
17128 else $as_nop
17129 xorg_cv_cc_flag_unused_command_line_argument=no
17130 fi
17131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17132 fi
17133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17134 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17136 CFLAGS="$xorg_testset_save_CFLAGS"
17137 fi
17138
17139 found="no"
17140
17141 if test $found = "no" ; then
17142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17144 fi
17145
17146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17148 fi
17149
17150 CFLAGS="$CFLAGS -Wnonnull"
17151
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17153 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17154 cacheid=xorg_cv_cc_flag__Wnonnull
17155 if eval test \${$cacheid+y}
17156 then :
17157 printf %s "(cached) " >&6
17158 else $as_nop
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17161 int i;
17162 int
17163 main (void)
17164 {
17165
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"
17171 then :
17172 eval $cacheid=yes
17173 else $as_nop
17174 eval $cacheid=no
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17177 conftest$ac_exeext conftest.$ac_ext
17178 fi
17179
17180
17181 CFLAGS="$xorg_testset_save_CFLAGS"
17182
17183 eval supported=\$$cacheid
17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17185 printf "%s\n" "$supported" >&6; }
17186 if test "$supported" = "yes" ; then
17187 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17188 found="yes"
17189 fi
17190 fi
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206 xorg_testset_save_CFLAGS="$CFLAGS"
17207
17208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17213 then :
17214 printf %s "(cached) " >&6
17215 else $as_nop
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17218 int i;
17219 _ACEOF
17220 if ac_fn_c_try_compile "$LINENO"
17221 then :
17222 xorg_cv_cc_flag_unknown_warning_option=yes
17223 else $as_nop
17224 xorg_cv_cc_flag_unknown_warning_option=no
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17227 fi
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17229 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17231 CFLAGS="$xorg_testset_save_CFLAGS"
17232 fi
17233
17234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237 fi
17238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17242 then :
17243 printf %s "(cached) " >&6
17244 else $as_nop
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 int i;
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"
17250 then :
17251 xorg_cv_cc_flag_unused_command_line_argument=yes
17252 else $as_nop
17253 xorg_cv_cc_flag_unused_command_line_argument=no
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17256 fi
17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17260 CFLAGS="$xorg_testset_save_CFLAGS"
17261 fi
17262
17263 found="no"
17264
17265 if test $found = "no" ; then
17266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268 fi
17269
17270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17272 fi
17273
17274 CFLAGS="$CFLAGS -Winit-self"
17275
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17277 printf %s "checking if $CC supports -Winit-self... " >&6; }
17278 cacheid=xorg_cv_cc_flag__Winit_self
17279 if eval test \${$cacheid+y}
17280 then :
17281 printf %s "(cached) " >&6
17282 else $as_nop
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 int i;
17286 int
17287 main (void)
17288 {
17289
17290 ;
17291 return 0;
17292 }
17293 _ACEOF
17294 if ac_fn_c_try_link "$LINENO"
17295 then :
17296 eval $cacheid=yes
17297 else $as_nop
17298 eval $cacheid=no
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17301 conftest$ac_exeext conftest.$ac_ext
17302 fi
17303
17304
17305 CFLAGS="$xorg_testset_save_CFLAGS"
17306
17307 eval supported=\$$cacheid
17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17309 printf "%s\n" "$supported" >&6; }
17310 if test "$supported" = "yes" ; then
17311 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17312 found="yes"
17313 fi
17314 fi
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330 xorg_testset_save_CFLAGS="$CFLAGS"
17331
17332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17336 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17337 then :
17338 printf %s "(cached) " >&6
17339 else $as_nop
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 int i;
17343 _ACEOF
17344 if ac_fn_c_try_compile "$LINENO"
17345 then :
17346 xorg_cv_cc_flag_unknown_warning_option=yes
17347 else $as_nop
17348 xorg_cv_cc_flag_unknown_warning_option=no
17349 fi
17350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17351 fi
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17355 CFLAGS="$xorg_testset_save_CFLAGS"
17356 fi
17357
17358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361 fi
17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17366 then :
17367 printf %s "(cached) " >&6
17368 else $as_nop
17369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370 /* end confdefs.h. */
17371 int i;
17372 _ACEOF
17373 if ac_fn_c_try_compile "$LINENO"
17374 then :
17375 xorg_cv_cc_flag_unused_command_line_argument=yes
17376 else $as_nop
17377 xorg_cv_cc_flag_unused_command_line_argument=no
17378 fi
17379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17380 fi
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17384 CFLAGS="$xorg_testset_save_CFLAGS"
17385 fi
17386
17387 found="no"
17388
17389 if test $found = "no" ; then
17390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17392 fi
17393
17394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17396 fi
17397
17398 CFLAGS="$CFLAGS -Wmain"
17399
17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17401 printf %s "checking if $CC supports -Wmain... " >&6; }
17402 cacheid=xorg_cv_cc_flag__Wmain
17403 if eval test \${$cacheid+y}
17404 then :
17405 printf %s "(cached) " >&6
17406 else $as_nop
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 int i;
17410 int
17411 main (void)
17412 {
17413
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 if ac_fn_c_try_link "$LINENO"
17419 then :
17420 eval $cacheid=yes
17421 else $as_nop
17422 eval $cacheid=no
17423 fi
17424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17425 conftest$ac_exeext conftest.$ac_ext
17426 fi
17427
17428
17429 CFLAGS="$xorg_testset_save_CFLAGS"
17430
17431 eval supported=\$$cacheid
17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17433 printf "%s\n" "$supported" >&6; }
17434 if test "$supported" = "yes" ; then
17435 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17436 found="yes"
17437 fi
17438 fi
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454 xorg_testset_save_CFLAGS="$CFLAGS"
17455
17456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17461 then :
17462 printf %s "(cached) " >&6
17463 else $as_nop
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466 int i;
17467 _ACEOF
17468 if ac_fn_c_try_compile "$LINENO"
17469 then :
17470 xorg_cv_cc_flag_unknown_warning_option=yes
17471 else $as_nop
17472 xorg_cv_cc_flag_unknown_warning_option=no
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17475 fi
17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17477 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17479 CFLAGS="$xorg_testset_save_CFLAGS"
17480 fi
17481
17482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 fi
17486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17490 then :
17491 printf %s "(cached) " >&6
17492 else $as_nop
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17495 int i;
17496 _ACEOF
17497 if ac_fn_c_try_compile "$LINENO"
17498 then :
17499 xorg_cv_cc_flag_unused_command_line_argument=yes
17500 else $as_nop
17501 xorg_cv_cc_flag_unused_command_line_argument=no
17502 fi
17503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17504 fi
17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17508 CFLAGS="$xorg_testset_save_CFLAGS"
17509 fi
17510
17511 found="no"
17512
17513 if test $found = "no" ; then
17514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17516 fi
17517
17518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17520 fi
17521
17522 CFLAGS="$CFLAGS -Wmissing-braces"
17523
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17525 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17526 cacheid=xorg_cv_cc_flag__Wmissing_braces
17527 if eval test \${$cacheid+y}
17528 then :
17529 printf %s "(cached) " >&6
17530 else $as_nop
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h. */
17533 int i;
17534 int
17535 main (void)
17536 {
17537
17538 ;
17539 return 0;
17540 }
17541 _ACEOF
17542 if ac_fn_c_try_link "$LINENO"
17543 then :
17544 eval $cacheid=yes
17545 else $as_nop
17546 eval $cacheid=no
17547 fi
17548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17549 conftest$ac_exeext conftest.$ac_ext
17550 fi
17551
17552
17553 CFLAGS="$xorg_testset_save_CFLAGS"
17554
17555 eval supported=\$$cacheid
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17557 printf "%s\n" "$supported" >&6; }
17558 if test "$supported" = "yes" ; then
17559 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17560 found="yes"
17561 fi
17562 fi
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578 xorg_testset_save_CFLAGS="$CFLAGS"
17579
17580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17585 then :
17586 printf %s "(cached) " >&6
17587 else $as_nop
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17590 int i;
17591 _ACEOF
17592 if ac_fn_c_try_compile "$LINENO"
17593 then :
17594 xorg_cv_cc_flag_unknown_warning_option=yes
17595 else $as_nop
17596 xorg_cv_cc_flag_unknown_warning_option=no
17597 fi
17598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17599 fi
17600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17603 CFLAGS="$xorg_testset_save_CFLAGS"
17604 fi
17605
17606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17609 fi
17610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17614 then :
17615 printf %s "(cached) " >&6
17616 else $as_nop
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 _ACEOF
17621 if ac_fn_c_try_compile "$LINENO"
17622 then :
17623 xorg_cv_cc_flag_unused_command_line_argument=yes
17624 else $as_nop
17625 xorg_cv_cc_flag_unused_command_line_argument=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17628 fi
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17632 CFLAGS="$xorg_testset_save_CFLAGS"
17633 fi
17634
17635 found="no"
17636
17637 if test $found = "no" ; then
17638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17640 fi
17641
17642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17644 fi
17645
17646 CFLAGS="$CFLAGS -Wsequence-point"
17647
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17649 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17650 cacheid=xorg_cv_cc_flag__Wsequence_point
17651 if eval test \${$cacheid+y}
17652 then :
17653 printf %s "(cached) " >&6
17654 else $as_nop
17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17657 int i;
17658 int
17659 main (void)
17660 {
17661
17662 ;
17663 return 0;
17664 }
17665 _ACEOF
17666 if ac_fn_c_try_link "$LINENO"
17667 then :
17668 eval $cacheid=yes
17669 else $as_nop
17670 eval $cacheid=no
17671 fi
17672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17673 conftest$ac_exeext conftest.$ac_ext
17674 fi
17675
17676
17677 CFLAGS="$xorg_testset_save_CFLAGS"
17678
17679 eval supported=\$$cacheid
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17681 printf "%s\n" "$supported" >&6; }
17682 if test "$supported" = "yes" ; then
17683 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17684 found="yes"
17685 fi
17686 fi
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702 xorg_testset_save_CFLAGS="$CFLAGS"
17703
17704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17709 then :
17710 printf %s "(cached) " >&6
17711 else $as_nop
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714 int i;
17715 _ACEOF
17716 if ac_fn_c_try_compile "$LINENO"
17717 then :
17718 xorg_cv_cc_flag_unknown_warning_option=yes
17719 else $as_nop
17720 xorg_cv_cc_flag_unknown_warning_option=no
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17723 fi
17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17727 CFLAGS="$xorg_testset_save_CFLAGS"
17728 fi
17729
17730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17733 fi
17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17738 then :
17739 printf %s "(cached) " >&6
17740 else $as_nop
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743 int i;
17744 _ACEOF
17745 if ac_fn_c_try_compile "$LINENO"
17746 then :
17747 xorg_cv_cc_flag_unused_command_line_argument=yes
17748 else $as_nop
17749 xorg_cv_cc_flag_unused_command_line_argument=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17756 CFLAGS="$xorg_testset_save_CFLAGS"
17757 fi
17758
17759 found="no"
17760
17761 if test $found = "no" ; then
17762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17764 fi
17765
17766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17768 fi
17769
17770 CFLAGS="$CFLAGS -Wreturn-type"
17771
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17773 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17774 cacheid=xorg_cv_cc_flag__Wreturn_type
17775 if eval test \${$cacheid+y}
17776 then :
17777 printf %s "(cached) " >&6
17778 else $as_nop
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781 int i;
17782 int
17783 main (void)
17784 {
17785
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"
17791 then :
17792 eval $cacheid=yes
17793 else $as_nop
17794 eval $cacheid=no
17795 fi
17796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17797 conftest$ac_exeext conftest.$ac_ext
17798 fi
17799
17800
17801 CFLAGS="$xorg_testset_save_CFLAGS"
17802
17803 eval supported=\$$cacheid
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17805 printf "%s\n" "$supported" >&6; }
17806 if test "$supported" = "yes" ; then
17807 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17808 found="yes"
17809 fi
17810 fi
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826 xorg_testset_save_CFLAGS="$CFLAGS"
17827
17828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17832 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17833 then :
17834 printf %s "(cached) " >&6
17835 else $as_nop
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17838 int i;
17839 _ACEOF
17840 if ac_fn_c_try_compile "$LINENO"
17841 then :
17842 xorg_cv_cc_flag_unknown_warning_option=yes
17843 else $as_nop
17844 xorg_cv_cc_flag_unknown_warning_option=no
17845 fi
17846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17847 fi
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17851 CFLAGS="$xorg_testset_save_CFLAGS"
17852 fi
17853
17854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 fi
17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17862 then :
17863 printf %s "(cached) " >&6
17864 else $as_nop
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 int i;
17868 _ACEOF
17869 if ac_fn_c_try_compile "$LINENO"
17870 then :
17871 xorg_cv_cc_flag_unused_command_line_argument=yes
17872 else $as_nop
17873 xorg_cv_cc_flag_unused_command_line_argument=no
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17876 fi
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17880 CFLAGS="$xorg_testset_save_CFLAGS"
17881 fi
17882
17883 found="no"
17884
17885 if test $found = "no" ; then
17886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17888 fi
17889
17890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17892 fi
17893
17894 CFLAGS="$CFLAGS -Wtrigraphs"
17895
17896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17897 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17898 cacheid=xorg_cv_cc_flag__Wtrigraphs
17899 if eval test \${$cacheid+y}
17900 then :
17901 printf %s "(cached) " >&6
17902 else $as_nop
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905 int i;
17906 int
17907 main (void)
17908 {
17909
17910 ;
17911 return 0;
17912 }
17913 _ACEOF
17914 if ac_fn_c_try_link "$LINENO"
17915 then :
17916 eval $cacheid=yes
17917 else $as_nop
17918 eval $cacheid=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17921 conftest$ac_exeext conftest.$ac_ext
17922 fi
17923
17924
17925 CFLAGS="$xorg_testset_save_CFLAGS"
17926
17927 eval supported=\$$cacheid
17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17929 printf "%s\n" "$supported" >&6; }
17930 if test "$supported" = "yes" ; then
17931 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17932 found="yes"
17933 fi
17934 fi
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950 xorg_testset_save_CFLAGS="$CFLAGS"
17951
17952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17956 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17957 then :
17958 printf %s "(cached) " >&6
17959 else $as_nop
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962 int i;
17963 _ACEOF
17964 if ac_fn_c_try_compile "$LINENO"
17965 then :
17966 xorg_cv_cc_flag_unknown_warning_option=yes
17967 else $as_nop
17968 xorg_cv_cc_flag_unknown_warning_option=no
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17971 fi
17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17973 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17975 CFLAGS="$xorg_testset_save_CFLAGS"
17976 fi
17977
17978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17981 fi
17982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17984 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17985 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17986 then :
17987 printf %s "(cached) " >&6
17988 else $as_nop
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 int i;
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"
17994 then :
17995 xorg_cv_cc_flag_unused_command_line_argument=yes
17996 else $as_nop
17997 xorg_cv_cc_flag_unused_command_line_argument=no
17998 fi
17999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18000 fi
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18004 CFLAGS="$xorg_testset_save_CFLAGS"
18005 fi
18006
18007 found="no"
18008
18009 if test $found = "no" ; then
18010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18012 fi
18013
18014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18016 fi
18017
18018 CFLAGS="$CFLAGS -Warray-bounds"
18019
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18021 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18022 cacheid=xorg_cv_cc_flag__Warray_bounds
18023 if eval test \${$cacheid+y}
18024 then :
18025 printf %s "(cached) " >&6
18026 else $as_nop
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18029 int i;
18030 int
18031 main (void)
18032 {
18033
18034 ;
18035 return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_c_try_link "$LINENO"
18039 then :
18040 eval $cacheid=yes
18041 else $as_nop
18042 eval $cacheid=no
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18045 conftest$ac_exeext conftest.$ac_ext
18046 fi
18047
18048
18049 CFLAGS="$xorg_testset_save_CFLAGS"
18050
18051 eval supported=\$$cacheid
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18053 printf "%s\n" "$supported" >&6; }
18054 if test "$supported" = "yes" ; then
18055 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18056 found="yes"
18057 fi
18058 fi
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074 xorg_testset_save_CFLAGS="$CFLAGS"
18075
18076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18080 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18081 then :
18082 printf %s "(cached) " >&6
18083 else $as_nop
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 int i;
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"
18089 then :
18090 xorg_cv_cc_flag_unknown_warning_option=yes
18091 else $as_nop
18092 xorg_cv_cc_flag_unknown_warning_option=no
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18095 fi
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18099 CFLAGS="$xorg_testset_save_CFLAGS"
18100 fi
18101
18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18105 fi
18106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18110 then :
18111 printf %s "(cached) " >&6
18112 else $as_nop
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 int i;
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"
18118 then :
18119 xorg_cv_cc_flag_unused_command_line_argument=yes
18120 else $as_nop
18121 xorg_cv_cc_flag_unused_command_line_argument=no
18122 fi
18123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18124 fi
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18126 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18128 CFLAGS="$xorg_testset_save_CFLAGS"
18129 fi
18130
18131 found="no"
18132
18133 if test $found = "no" ; then
18134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18136 fi
18137
18138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18140 fi
18141
18142 CFLAGS="$CFLAGS -Wwrite-strings"
18143
18144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18145 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18146 cacheid=xorg_cv_cc_flag__Wwrite_strings
18147 if eval test \${$cacheid+y}
18148 then :
18149 printf %s "(cached) " >&6
18150 else $as_nop
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18153 int i;
18154 int
18155 main (void)
18156 {
18157
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"
18163 then :
18164 eval $cacheid=yes
18165 else $as_nop
18166 eval $cacheid=no
18167 fi
18168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18169 conftest$ac_exeext conftest.$ac_ext
18170 fi
18171
18172
18173 CFLAGS="$xorg_testset_save_CFLAGS"
18174
18175 eval supported=\$$cacheid
18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18177 printf "%s\n" "$supported" >&6; }
18178 if test "$supported" = "yes" ; then
18179 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18180 found="yes"
18181 fi
18182 fi
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198 xorg_testset_save_CFLAGS="$CFLAGS"
18199
18200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18204 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18205 then :
18206 printf %s "(cached) " >&6
18207 else $as_nop
18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18210 int i;
18211 _ACEOF
18212 if ac_fn_c_try_compile "$LINENO"
18213 then :
18214 xorg_cv_cc_flag_unknown_warning_option=yes
18215 else $as_nop
18216 xorg_cv_cc_flag_unknown_warning_option=no
18217 fi
18218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18219 fi
18220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18221 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18223 CFLAGS="$xorg_testset_save_CFLAGS"
18224 fi
18225
18226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18229 fi
18230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18232 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18233 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18234 then :
18235 printf %s "(cached) " >&6
18236 else $as_nop
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 int i;
18240 _ACEOF
18241 if ac_fn_c_try_compile "$LINENO"
18242 then :
18243 xorg_cv_cc_flag_unused_command_line_argument=yes
18244 else $as_nop
18245 xorg_cv_cc_flag_unused_command_line_argument=no
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18248 fi
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18250 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18252 CFLAGS="$xorg_testset_save_CFLAGS"
18253 fi
18254
18255 found="no"
18256
18257 if test $found = "no" ; then
18258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18260 fi
18261
18262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18264 fi
18265
18266 CFLAGS="$CFLAGS -Waddress"
18267
18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18269 printf %s "checking if $CC supports -Waddress... " >&6; }
18270 cacheid=xorg_cv_cc_flag__Waddress
18271 if eval test \${$cacheid+y}
18272 then :
18273 printf %s "(cached) " >&6
18274 else $as_nop
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 int i;
18278 int
18279 main (void)
18280 {
18281
18282 ;
18283 return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"
18287 then :
18288 eval $cacheid=yes
18289 else $as_nop
18290 eval $cacheid=no
18291 fi
18292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18293 conftest$ac_exeext conftest.$ac_ext
18294 fi
18295
18296
18297 CFLAGS="$xorg_testset_save_CFLAGS"
18298
18299 eval supported=\$$cacheid
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18301 printf "%s\n" "$supported" >&6; }
18302 if test "$supported" = "yes" ; then
18303 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18304 found="yes"
18305 fi
18306 fi
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322 xorg_testset_save_CFLAGS="$CFLAGS"
18323
18324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18328 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18329 then :
18330 printf %s "(cached) " >&6
18331 else $as_nop
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18334 int i;
18335 _ACEOF
18336 if ac_fn_c_try_compile "$LINENO"
18337 then :
18338 xorg_cv_cc_flag_unknown_warning_option=yes
18339 else $as_nop
18340 xorg_cv_cc_flag_unknown_warning_option=no
18341 fi
18342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18343 fi
18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18347 CFLAGS="$xorg_testset_save_CFLAGS"
18348 fi
18349
18350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18353 fi
18354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18358 then :
18359 printf %s "(cached) " >&6
18360 else $as_nop
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363 int i;
18364 _ACEOF
18365 if ac_fn_c_try_compile "$LINENO"
18366 then :
18367 xorg_cv_cc_flag_unused_command_line_argument=yes
18368 else $as_nop
18369 xorg_cv_cc_flag_unused_command_line_argument=no
18370 fi
18371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18372 fi
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18376 CFLAGS="$xorg_testset_save_CFLAGS"
18377 fi
18378
18379 found="no"
18380
18381 if test $found = "no" ; then
18382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18384 fi
18385
18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18388 fi
18389
18390 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18391
18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18393 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18394 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18395 if eval test \${$cacheid+y}
18396 then :
18397 printf %s "(cached) " >&6
18398 else $as_nop
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 int i;
18402 int
18403 main (void)
18404 {
18405
18406 ;
18407 return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"
18411 then :
18412 eval $cacheid=yes
18413 else $as_nop
18414 eval $cacheid=no
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18417 conftest$ac_exeext conftest.$ac_ext
18418 fi
18419
18420
18421 CFLAGS="$xorg_testset_save_CFLAGS"
18422
18423 eval supported=\$$cacheid
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18425 printf "%s\n" "$supported" >&6; }
18426 if test "$supported" = "yes" ; then
18427 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18428 found="yes"
18429 fi
18430 fi
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446 xorg_testset_save_CFLAGS="$CFLAGS"
18447
18448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18452 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18453 then :
18454 printf %s "(cached) " >&6
18455 else $as_nop
18456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18458 int i;
18459 _ACEOF
18460 if ac_fn_c_try_compile "$LINENO"
18461 then :
18462 xorg_cv_cc_flag_unknown_warning_option=yes
18463 else $as_nop
18464 xorg_cv_cc_flag_unknown_warning_option=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18467 fi
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18471 CFLAGS="$xorg_testset_save_CFLAGS"
18472 fi
18473
18474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477 fi
18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18482 then :
18483 printf %s "(cached) " >&6
18484 else $as_nop
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 int i;
18488 _ACEOF
18489 if ac_fn_c_try_compile "$LINENO"
18490 then :
18491 xorg_cv_cc_flag_unused_command_line_argument=yes
18492 else $as_nop
18493 xorg_cv_cc_flag_unused_command_line_argument=no
18494 fi
18495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18496 fi
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18498 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18500 CFLAGS="$xorg_testset_save_CFLAGS"
18501 fi
18502
18503 found="no"
18504
18505 if test $found = "no" ; then
18506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18508 fi
18509
18510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18512 fi
18513
18514 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18515
18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18517 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18518 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18519 if eval test \${$cacheid+y}
18520 then :
18521 printf %s "(cached) " >&6
18522 else $as_nop
18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525 int i;
18526 int
18527 main (void)
18528 {
18529
18530 ;
18531 return 0;
18532 }
18533 _ACEOF
18534 if ac_fn_c_try_link "$LINENO"
18535 then :
18536 eval $cacheid=yes
18537 else $as_nop
18538 eval $cacheid=no
18539 fi
18540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18541 conftest$ac_exeext conftest.$ac_ext
18542 fi
18543
18544
18545 CFLAGS="$xorg_testset_save_CFLAGS"
18546
18547 eval supported=\$$cacheid
18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18549 printf "%s\n" "$supported" >&6; }
18550 if test "$supported" = "yes" ; then
18551 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18552 found="yes"
18553 fi
18554 fi
18555
18556
18557 fi
18558
18559
18560
18561
18562
18563
18564
18565 CWARNFLAGS="$BASE_CFLAGS"
18566 if test "x$GCC" = xyes ; then
18567 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18568 fi
18569
18570
18571
18572
18573
18574
18575
18576
18577 # Check whether --enable-strict-compilation was given.
18578 if test ${enable_strict_compilation+y}
18579 then :
18580 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18581 else $as_nop
18582 STRICT_COMPILE=no
18583 fi
18584
18585
18586
18587
18588
18589
18590 STRICT_CFLAGS=""
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604 xorg_testset_save_CFLAGS="$CFLAGS"
18605
18606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18611 then :
18612 printf %s "(cached) " >&6
18613 else $as_nop
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616 int i;
18617 _ACEOF
18618 if ac_fn_c_try_compile "$LINENO"
18619 then :
18620 xorg_cv_cc_flag_unknown_warning_option=yes
18621 else $as_nop
18622 xorg_cv_cc_flag_unknown_warning_option=no
18623 fi
18624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18625 fi
18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18629 CFLAGS="$xorg_testset_save_CFLAGS"
18630 fi
18631
18632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18635 fi
18636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18640 then :
18641 printf %s "(cached) " >&6
18642 else $as_nop
18643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18644 /* end confdefs.h. */
18645 int i;
18646 _ACEOF
18647 if ac_fn_c_try_compile "$LINENO"
18648 then :
18649 xorg_cv_cc_flag_unused_command_line_argument=yes
18650 else $as_nop
18651 xorg_cv_cc_flag_unused_command_line_argument=no
18652 fi
18653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18654 fi
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18658 CFLAGS="$xorg_testset_save_CFLAGS"
18659 fi
18660
18661 found="no"
18662
18663 if test $found = "no" ; then
18664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18666 fi
18667
18668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18670 fi
18671
18672 CFLAGS="$CFLAGS -pedantic"
18673
18674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18675 printf %s "checking if $CC supports -pedantic... " >&6; }
18676 cacheid=xorg_cv_cc_flag__pedantic
18677 if eval test \${$cacheid+y}
18678 then :
18679 printf %s "(cached) " >&6
18680 else $as_nop
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18683 int i;
18684 int
18685 main (void)
18686 {
18687
18688 ;
18689 return 0;
18690 }
18691 _ACEOF
18692 if ac_fn_c_try_link "$LINENO"
18693 then :
18694 eval $cacheid=yes
18695 else $as_nop
18696 eval $cacheid=no
18697 fi
18698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18699 conftest$ac_exeext conftest.$ac_ext
18700 fi
18701
18702
18703 CFLAGS="$xorg_testset_save_CFLAGS"
18704
18705 eval supported=\$$cacheid
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18707 printf "%s\n" "$supported" >&6; }
18708 if test "$supported" = "yes" ; then
18709 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18710 found="yes"
18711 fi
18712 fi
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728 xorg_testset_save_CFLAGS="$CFLAGS"
18729
18730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18733 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18734 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18735 then :
18736 printf %s "(cached) " >&6
18737 else $as_nop
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18740 int i;
18741 _ACEOF
18742 if ac_fn_c_try_compile "$LINENO"
18743 then :
18744 xorg_cv_cc_flag_unknown_warning_option=yes
18745 else $as_nop
18746 xorg_cv_cc_flag_unknown_warning_option=no
18747 fi
18748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18749 fi
18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18751 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18753 CFLAGS="$xorg_testset_save_CFLAGS"
18754 fi
18755
18756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18759 fi
18760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18764 then :
18765 printf %s "(cached) " >&6
18766 else $as_nop
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h. */
18769 int i;
18770 _ACEOF
18771 if ac_fn_c_try_compile "$LINENO"
18772 then :
18773 xorg_cv_cc_flag_unused_command_line_argument=yes
18774 else $as_nop
18775 xorg_cv_cc_flag_unused_command_line_argument=no
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18778 fi
18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18780 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18782 CFLAGS="$xorg_testset_save_CFLAGS"
18783 fi
18784
18785 found="no"
18786
18787 if test $found = "no" ; then
18788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18790 fi
18791
18792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18794 fi
18795
18796 CFLAGS="$CFLAGS -Werror"
18797
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18799 printf %s "checking if $CC supports -Werror... " >&6; }
18800 cacheid=xorg_cv_cc_flag__Werror
18801 if eval test \${$cacheid+y}
18802 then :
18803 printf %s "(cached) " >&6
18804 else $as_nop
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18807 int i;
18808 int
18809 main (void)
18810 {
18811
18812 ;
18813 return 0;
18814 }
18815 _ACEOF
18816 if ac_fn_c_try_link "$LINENO"
18817 then :
18818 eval $cacheid=yes
18819 else $as_nop
18820 eval $cacheid=no
18821 fi
18822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18823 conftest$ac_exeext conftest.$ac_ext
18824 fi
18825
18826
18827 CFLAGS="$xorg_testset_save_CFLAGS"
18828
18829 eval supported=\$$cacheid
18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18831 printf "%s\n" "$supported" >&6; }
18832 if test "$supported" = "yes" ; then
18833 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18834 found="yes"
18835 fi
18836 fi
18837
18838 if test $found = "no" ; then
18839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18841 fi
18842
18843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845 fi
18846
18847 CFLAGS="$CFLAGS -errwarn"
18848
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18850 printf %s "checking if $CC supports -errwarn... " >&6; }
18851 cacheid=xorg_cv_cc_flag__errwarn
18852 if eval test \${$cacheid+y}
18853 then :
18854 printf %s "(cached) " >&6
18855 else $as_nop
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858 int i;
18859 int
18860 main (void)
18861 {
18862
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 if ac_fn_c_try_link "$LINENO"
18868 then :
18869 eval $cacheid=yes
18870 else $as_nop
18871 eval $cacheid=no
18872 fi
18873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18874 conftest$ac_exeext conftest.$ac_ext
18875 fi
18876
18877
18878 CFLAGS="$xorg_testset_save_CFLAGS"
18879
18880 eval supported=\$$cacheid
18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18882 printf "%s\n" "$supported" >&6; }
18883 if test "$supported" = "yes" ; then
18884 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18885 found="yes"
18886 fi
18887 fi
18888
18889
18890
18891 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18892 # activate it with -Werror, so we add it here explicitly.
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906 xorg_testset_save_CFLAGS="$CFLAGS"
18907
18908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18912 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18913 then :
18914 printf %s "(cached) " >&6
18915 else $as_nop
18916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18918 int i;
18919 _ACEOF
18920 if ac_fn_c_try_compile "$LINENO"
18921 then :
18922 xorg_cv_cc_flag_unknown_warning_option=yes
18923 else $as_nop
18924 xorg_cv_cc_flag_unknown_warning_option=no
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18927 fi
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18931 CFLAGS="$xorg_testset_save_CFLAGS"
18932 fi
18933
18934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18937 fi
18938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18942 then :
18943 printf %s "(cached) " >&6
18944 else $as_nop
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947 int i;
18948 _ACEOF
18949 if ac_fn_c_try_compile "$LINENO"
18950 then :
18951 xorg_cv_cc_flag_unused_command_line_argument=yes
18952 else $as_nop
18953 xorg_cv_cc_flag_unused_command_line_argument=no
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18956 fi
18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18960 CFLAGS="$xorg_testset_save_CFLAGS"
18961 fi
18962
18963 found="no"
18964
18965 if test $found = "no" ; then
18966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968 fi
18969
18970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18972 fi
18973
18974 CFLAGS="$CFLAGS -Werror=attributes"
18975
18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18977 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18978 cacheid=xorg_cv_cc_flag__Werror_attributes
18979 if eval test \${$cacheid+y}
18980 then :
18981 printf %s "(cached) " >&6
18982 else $as_nop
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 int i;
18986 int
18987 main (void)
18988 {
18989
18990 ;
18991 return 0;
18992 }
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"
18995 then :
18996 eval $cacheid=yes
18997 else $as_nop
18998 eval $cacheid=no
18999 fi
19000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19001 conftest$ac_exeext conftest.$ac_ext
19002 fi
19003
19004
19005 CFLAGS="$xorg_testset_save_CFLAGS"
19006
19007 eval supported=\$$cacheid
19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19009 printf "%s\n" "$supported" >&6; }
19010 if test "$supported" = "yes" ; then
19011 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19012 found="yes"
19013 fi
19014 fi
19015
19016
19017
19018 if test "x$STRICT_COMPILE" = "xyes"; then
19019 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19020 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19021 fi
19022
19023
19024
19025
19026
19027
19028
19029
19030 cat >>confdefs.h <<_ACEOF
19031 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19032 _ACEOF
19033
19034 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19035 if test "x$PVM" = "x"; then
19036 PVM="0"
19037 fi
19038
19039 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19040
19041 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19042 if test "x$PVP" = "x"; then
19043 PVP="0"
19044 fi
19045
19046 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19047
19048
19049
19050 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19051 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19052 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19053 touch \$(top_srcdir)/ChangeLog; \
19054 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19055
19056
19057
19058
19059 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19060 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19061 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19062 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19063 touch \$(top_srcdir)/INSTALL; \
19064 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19065
19066
19067
19068
19069
19070
19071 case $host_os in
19072 solaris*)
19073 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19074 # check for a man page file found in later versions that use
19075 # traditional section numbers instead
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19077 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19078 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19079 then :
19080 printf %s "(cached) " >&6
19081 else $as_nop
19082 test "$cross_compiling" = yes &&
19083 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19084 if test -r "/usr/share/man/man7/attributes.7"; then
19085 ac_cv_file__usr_share_man_man7_attributes_7=yes
19086 else
19087 ac_cv_file__usr_share_man_man7_attributes_7=no
19088 fi
19089 fi
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19091 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19092 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19093 then :
19094 SYSV_MAN_SECTIONS=false
19095 else $as_nop
19096 SYSV_MAN_SECTIONS=true
19097 fi
19098
19099 ;;
19100 *) SYSV_MAN_SECTIONS=false ;;
19101 esac
19102
19103 if test x$APP_MAN_SUFFIX = x ; then
19104 APP_MAN_SUFFIX=1
19105 fi
19106 if test x$APP_MAN_DIR = x ; then
19107 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19108 fi
19109
19110 if test x$LIB_MAN_SUFFIX = x ; then
19111 LIB_MAN_SUFFIX=3
19112 fi
19113 if test x$LIB_MAN_DIR = x ; then
19114 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19115 fi
19116
19117 if test x$FILE_MAN_SUFFIX = x ; then
19118 case $SYSV_MAN_SECTIONS in
19119 true) FILE_MAN_SUFFIX=4 ;;
19120 *) FILE_MAN_SUFFIX=5 ;;
19121 esac
19122 fi
19123 if test x$FILE_MAN_DIR = x ; then
19124 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19125 fi
19126
19127 if test x$MISC_MAN_SUFFIX = x ; then
19128 case $SYSV_MAN_SECTIONS in
19129 true) MISC_MAN_SUFFIX=5 ;;
19130 *) MISC_MAN_SUFFIX=7 ;;
19131 esac
19132 fi
19133 if test x$MISC_MAN_DIR = x ; then
19134 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19135 fi
19136
19137 if test x$DRIVER_MAN_SUFFIX = x ; then
19138 case $SYSV_MAN_SECTIONS in
19139 true) DRIVER_MAN_SUFFIX=7 ;;
19140 *) DRIVER_MAN_SUFFIX=4 ;;
19141 esac
19142 fi
19143 if test x$DRIVER_MAN_DIR = x ; then
19144 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19145 fi
19146
19147 if test x$ADMIN_MAN_SUFFIX = x ; then
19148 case $SYSV_MAN_SECTIONS in
19149 true) ADMIN_MAN_SUFFIX=1m ;;
19150 *) ADMIN_MAN_SUFFIX=8 ;;
19151 esac
19152 fi
19153 if test x$ADMIN_MAN_DIR = x ; then
19154 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19155 fi
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171 XORG_MAN_PAGE="X Version 11"
19172
19173 MAN_SUBSTS="\
19174 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19175 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19176 -e 's|__xservername__|Xorg|g' \
19177 -e 's|__xconfigfile__|xorg.conf|g' \
19178 -e 's|__projectroot__|\$(prefix)|g' \
19179 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19180 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19181 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19182 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19183 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19184 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19185 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19186
19187
19188
19189 # Check whether --enable-silent-rules was given.
19190 if test ${enable_silent_rules+y}
19191 then :
19192 enableval=$enable_silent_rules;
19193 fi
19194
19195 case $enable_silent_rules in # (((
19196 yes) AM_DEFAULT_VERBOSITY=0;;
19197 no) AM_DEFAULT_VERBOSITY=1;;
19198 *) AM_DEFAULT_VERBOSITY=0;;
19199 esac
19200 am_make=${MAKE-make}
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19202 printf %s "checking whether $am_make supports nested variables... " >&6; }
19203 if test ${am_cv_make_support_nested_variables+y}
19204 then :
19205 printf %s "(cached) " >&6
19206 else $as_nop
19207 if printf "%s\n" 'TRUE=$(BAR$(V))
19208 BAR0=false
19209 BAR1=true
19210 V=1
19211 am__doit:
19212 @$(TRUE)
19213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19214 am_cv_make_support_nested_variables=yes
19215 else
19216 am_cv_make_support_nested_variables=no
19217 fi
19218 fi
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19220 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19221 if test $am_cv_make_support_nested_variables = yes; then
19222 AM_V='$(V)'
19223 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19224 else
19225 AM_V=$AM_DEFAULT_VERBOSITY
19226 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19227 fi
19228 AM_BACKSLASH='\'
19229
19230
19231
19232
19233 # Obtain compiler/linker options from server and required extensions
19234
19235 pkg_failed=no
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.19 xproto inputproto >= 2.2" >&5
19237 printf %s "checking for xorg-server >= 1.19 xproto inputproto >= 2.2... " >&6; }
19238
19239 if test -n "$XORG_CFLAGS"; then
19240 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19241 elif test -n "$PKG_CONFIG"; then
19242 if test -n "$PKG_CONFIG" && \
19243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.19 xproto inputproto >= 2.2\""; } >&5
19244 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.19 xproto inputproto >= 2.2") 2>&5
19245 ac_status=$?
19246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247 test $ac_status = 0; }; then
19248 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.19 xproto inputproto >= 2.2" 2>/dev/null`
19249 test "x$?" != "x0" && pkg_failed=yes
19250 else
19251 pkg_failed=yes
19252 fi
19253 else
19254 pkg_failed=untried
19255 fi
19256 if test -n "$XORG_LIBS"; then
19257 pkg_cv_XORG_LIBS="$XORG_LIBS"
19258 elif test -n "$PKG_CONFIG"; then
19259 if test -n "$PKG_CONFIG" && \
19260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.19 xproto inputproto >= 2.2\""; } >&5
19261 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.19 xproto inputproto >= 2.2") 2>&5
19262 ac_status=$?
19263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19264 test $ac_status = 0; }; then
19265 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.19 xproto inputproto >= 2.2" 2>/dev/null`
19266 test "x$?" != "x0" && pkg_failed=yes
19267 else
19268 pkg_failed=yes
19269 fi
19270 else
19271 pkg_failed=untried
19272 fi
19273
19274
19275
19276 if test $pkg_failed = yes; then
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19278 printf "%s\n" "no" >&6; }
19279
19280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19281 _pkg_short_errors_supported=yes
19282 else
19283 _pkg_short_errors_supported=no
19284 fi
19285 if test $_pkg_short_errors_supported = yes; then
19286 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.19 xproto inputproto >= 2.2" 2>&1`
19287 else
19288 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.19 xproto inputproto >= 2.2" 2>&1`
19289 fi
19290 # Put the nasty error message in config.log where it belongs
19291 echo "$XORG_PKG_ERRORS" >&5
19292
19293 as_fn_error $? "Package requirements (xorg-server >= 1.19 xproto inputproto >= 2.2) were not met:
19294
19295 $XORG_PKG_ERRORS
19296
19297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19298 installed software in a non-standard prefix.
19299
19300 Alternatively, you may set the environment variables XORG_CFLAGS
19301 and XORG_LIBS to avoid the need to call pkg-config.
19302 See the pkg-config man page for more details." "$LINENO" 5
19303 elif test $pkg_failed = untried; then
19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 printf "%s\n" "no" >&6; }
19306 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19307 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19308 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19309 is in your PATH or set the PKG_CONFIG environment variable to the full
19310 path to pkg-config.
19311
19312 Alternatively, you may set the environment variables XORG_CFLAGS
19313 and XORG_LIBS to avoid the need to call pkg-config.
19314 See the pkg-config man page for more details.
19315
19316 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19317 See \`config.log' for more details" "$LINENO" 5; }
19318 else
19319 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19320 XORG_LIBS=$pkg_cv_XORG_LIBS
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19322 printf "%s\n" "yes" >&6; }
19323
19324 fi
19325
19326 pkg_failed=no
19327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libinput >= 1.11.0" >&5
19328 printf %s "checking for libinput >= 1.11.0... " >&6; }
19329
19330 if test -n "$LIBINPUT_CFLAGS"; then
19331 pkg_cv_LIBINPUT_CFLAGS="$LIBINPUT_CFLAGS"
19332 elif test -n "$PKG_CONFIG"; then
19333 if test -n "$PKG_CONFIG" && \
19334 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinput >= 1.11.0\""; } >&5
19335 ($PKG_CONFIG --exists --print-errors "libinput >= 1.11.0") 2>&5
19336 ac_status=$?
19337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19338 test $ac_status = 0; }; then
19339 pkg_cv_LIBINPUT_CFLAGS=`$PKG_CONFIG --cflags "libinput >= 1.11.0" 2>/dev/null`
19340 test "x$?" != "x0" && pkg_failed=yes
19341 else
19342 pkg_failed=yes
19343 fi
19344 else
19345 pkg_failed=untried
19346 fi
19347 if test -n "$LIBINPUT_LIBS"; then
19348 pkg_cv_LIBINPUT_LIBS="$LIBINPUT_LIBS"
19349 elif test -n "$PKG_CONFIG"; then
19350 if test -n "$PKG_CONFIG" && \
19351 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinput >= 1.11.0\""; } >&5
19352 ($PKG_CONFIG --exists --print-errors "libinput >= 1.11.0") 2>&5
19353 ac_status=$?
19354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19355 test $ac_status = 0; }; then
19356 pkg_cv_LIBINPUT_LIBS=`$PKG_CONFIG --libs "libinput >= 1.11.0" 2>/dev/null`
19357 test "x$?" != "x0" && pkg_failed=yes
19358 else
19359 pkg_failed=yes
19360 fi
19361 else
19362 pkg_failed=untried
19363 fi
19364
19365
19366
19367 if test $pkg_failed = yes; then
19368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19369 printf "%s\n" "no" >&6; }
19370
19371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19372 _pkg_short_errors_supported=yes
19373 else
19374 _pkg_short_errors_supported=no
19375 fi
19376 if test $_pkg_short_errors_supported = yes; then
19377 LIBINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libinput >= 1.11.0" 2>&1`
19378 else
19379 LIBINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libinput >= 1.11.0" 2>&1`
19380 fi
19381 # Put the nasty error message in config.log where it belongs
19382 echo "$LIBINPUT_PKG_ERRORS" >&5
19383
19384 as_fn_error $? "Package requirements (libinput >= 1.11.0) were not met:
19385
19386 $LIBINPUT_PKG_ERRORS
19387
19388 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19389 installed software in a non-standard prefix.
19390
19391 Alternatively, you may set the environment variables LIBINPUT_CFLAGS
19392 and LIBINPUT_LIBS to avoid the need to call pkg-config.
19393 See the pkg-config man page for more details." "$LINENO" 5
19394 elif test $pkg_failed = untried; then
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19396 printf "%s\n" "no" >&6; }
19397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19398 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19399 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19400 is in your PATH or set the PKG_CONFIG environment variable to the full
19401 path to pkg-config.
19402
19403 Alternatively, you may set the environment variables LIBINPUT_CFLAGS
19404 and LIBINPUT_LIBS to avoid the need to call pkg-config.
19405 See the pkg-config man page for more details.
19406
19407 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19408 See \`config.log' for more details" "$LINENO" 5; }
19409 else
19410 LIBINPUT_CFLAGS=$pkg_cv_LIBINPUT_CFLAGS
19411 LIBINPUT_LIBS=$pkg_cv_LIBINPUT_LIBS
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19413 printf "%s\n" "yes" >&6; }
19414
19415 fi
19416
19417
19418 pkg_failed=no
19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inputproto >= 2.3.99.1" >&5
19420 printf %s "checking for inputproto >= 2.3.99.1... " >&6; }
19421
19422 if test -n "$INPUTPROTO24_CFLAGS"; then
19423 pkg_cv_INPUTPROTO24_CFLAGS="$INPUTPROTO24_CFLAGS"
19424 elif test -n "$PKG_CONFIG"; then
19425 if test -n "$PKG_CONFIG" && \
19426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"inputproto >= 2.3.99.1\""; } >&5
19427 ($PKG_CONFIG --exists --print-errors "inputproto >= 2.3.99.1") 2>&5
19428 ac_status=$?
19429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }; then
19431 pkg_cv_INPUTPROTO24_CFLAGS=`$PKG_CONFIG --cflags "inputproto >= 2.3.99.1" 2>/dev/null`
19432 test "x$?" != "x0" && pkg_failed=yes
19433 else
19434 pkg_failed=yes
19435 fi
19436 else
19437 pkg_failed=untried
19438 fi
19439 if test -n "$INPUTPROTO24_LIBS"; then
19440 pkg_cv_INPUTPROTO24_LIBS="$INPUTPROTO24_LIBS"
19441 elif test -n "$PKG_CONFIG"; then
19442 if test -n "$PKG_CONFIG" && \
19443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"inputproto >= 2.3.99.1\""; } >&5
19444 ($PKG_CONFIG --exists --print-errors "inputproto >= 2.3.99.1") 2>&5
19445 ac_status=$?
19446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19447 test $ac_status = 0; }; then
19448 pkg_cv_INPUTPROTO24_LIBS=`$PKG_CONFIG --libs "inputproto >= 2.3.99.1" 2>/dev/null`
19449 test "x$?" != "x0" && pkg_failed=yes
19450 else
19451 pkg_failed=yes
19452 fi
19453 else
19454 pkg_failed=untried
19455 fi
19456
19457
19458
19459 if test $pkg_failed = yes; then
19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19461 printf "%s\n" "no" >&6; }
19462
19463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19464 _pkg_short_errors_supported=yes
19465 else
19466 _pkg_short_errors_supported=no
19467 fi
19468 if test $_pkg_short_errors_supported = yes; then
19469 INPUTPROTO24_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "inputproto >= 2.3.99.1" 2>&1`
19470 else
19471 INPUTPROTO24_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "inputproto >= 2.3.99.1" 2>&1`
19472 fi
19473 # Put the nasty error message in config.log where it belongs
19474 echo "$INPUTPROTO24_PKG_ERRORS" >&5
19475
19476 :
19477 elif test $pkg_failed = untried; then
19478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19479 printf "%s\n" "no" >&6; }
19480 :
19481 else
19482 INPUTPROTO24_CFLAGS=$pkg_cv_INPUTPROTO24_CFLAGS
19483 INPUTPROTO24_LIBS=$pkg_cv_INPUTPROTO24_LIBS
19484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19485 printf "%s\n" "yes" >&6; }
19486
19487 printf "%s\n" "#define HAVE_INPUTPROTO24 1" >>confdefs.h
19488
19489 fi
19490
19491 OLD_LIBS=$LIBS
19492 OLD_CFLAGS=$CFLAGS
19493 LIBS="$LIBS $LIBINPUT_LIBS"
19494 CFLAGS="$CFLAGS $LIBINPUT_CFLAGS"
19495
19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libinput_device_config_scroll_get_button_lock is available" >&5
19497 printf %s "checking if libinput_device_config_scroll_get_button_lock is available... " >&6; }
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19500 #include <libinput.h>
19501 int
19502 main (void)
19503 {
19504 libinput_device_config_scroll_get_button_lock(NULL)
19505 ;
19506 return 0;
19507 }
19508 _ACEOF
19509 if ac_fn_c_try_link "$LINENO"
19510 then :
19511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19512 printf "%s\n" "yes" >&6; }
19513
19514 printf "%s\n" "#define HAVE_LIBINPUT_SCROLL_BUTTON_LOCK 1" >>confdefs.h
19515
19516 libinput_have_scroll_button_lock=yes
19517 else $as_nop
19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19519 printf "%s\n" "no" >&6; }
19520 libinput_have_scroll_button_lock=no
19521 fi
19522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19523 conftest$ac_exeext conftest.$ac_ext
19524
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libinput_event_pointer_get_scroll_value_v120 is available" >&5
19526 printf %s "checking if libinput_event_pointer_get_scroll_value_v120 is available... " >&6; }
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 #include <libinput.h>
19530 int
19531 main (void)
19532 {
19533 libinput_event_pointer_get_scroll_value_v120(NULL, 0)
19534 ;
19535 return 0;
19536 }
19537 _ACEOF
19538 if ac_fn_c_try_link "$LINENO"
19539 then :
19540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 printf "%s\n" "yes" >&6; }
19542
19543 printf "%s\n" "#define HAVE_LIBINPUT_AXIS_VALUE_V120 1" >>confdefs.h
19544
19545 libinput_have_axis_value_v120=yes
19546 else $as_nop
19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548 printf "%s\n" "no" >&6; }
19549 libinput_have_axis_value_v120=no
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19552 conftest$ac_exeext conftest.$ac_ext
19553
19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libinput_config_accel_create is available" >&5
19555 printf %s "checking if libinput_config_accel_create is available... " >&6; }
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558 #include <libinput.h>
19559 int
19560 main (void)
19561 {
19562 libinput_config_accel_create(0)
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 if ac_fn_c_try_link "$LINENO"
19568 then :
19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19570 printf "%s\n" "yes" >&6; }
19571
19572 printf "%s\n" "#define HAVE_LIBINPUT_CUSTOM_ACCEL 1" >>confdefs.h
19573
19574 libinput_have_custom_accel=yes
19575 else $as_nop
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 printf "%s\n" "no" >&6; }
19578 libinput_have_custom_accel=no
19579 fi
19580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19581 conftest$ac_exeext conftest.$ac_ext
19582
19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libinput_tablet_tool_config_pressure_range_set is available" >&5
19584 printf %s "checking if libinput_tablet_tool_config_pressure_range_set is available... " >&6; }
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587 #include <libinput.h>
19588 int
19589 main (void)
19590 {
19591 libinput_tablet_tool_config_pressure_range_set(0)
19592 ;
19593 return 0;
19594 }
19595 _ACEOF
19596 if ac_fn_c_try_link "$LINENO"
19597 then :
19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19599 printf "%s\n" "yes" >&6; }
19600
19601 printf "%s\n" "#define HAVE_LIBINPUT_PRESURE_RANGE 1" >>confdefs.h
19602
19603 libinput_have_pressure_range=yes
19604 else $as_nop
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19606 printf "%s\n" "no" >&6; }
19607 libinput_have_pressure_range=no
19608 fi
19609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19610 conftest$ac_exeext conftest.$ac_ext
19611
19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libinput_device_config_click_set_clickfinger_button_map is available" >&5
19613 printf %s "checking if libinput_device_config_click_set_clickfinger_button_map is available... " >&6; }
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19616 #include <libinput.h>
19617 int
19618 main (void)
19619 {
19620 libinput_device_config_click_set_clickfinger_button_map(NULL, 0)
19621 ;
19622 return 0;
19623 }
19624 _ACEOF
19625 if ac_fn_c_try_link "$LINENO"
19626 then :
19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19628 printf "%s\n" "yes" >&6; }
19629
19630 printf "%s\n" "#define HAVE_LIBINPUT_CLICKFINGER_BUTTON_MAP 1" >>confdefs.h
19631
19632 libinput_have_clickfinger_button_map=yes
19633 else $as_nop
19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 printf "%s\n" "no" >&6; }
19636 libinput_have_clickfinger_button_map=no
19637 fi
19638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19639 conftest$ac_exeext conftest.$ac_ext
19640
19641 LIBS=$OLD_LIBS
19642 CFLAGS=$OLD_CFLAGS
19643
19644 # Define a configure option for an alternate input module directory
19645
19646 # Check whether --with-xorg-module-dir was given.
19647 if test ${with_xorg_module_dir+y}
19648 then :
19649 withval=$with_xorg_module_dir; moduledir="$withval"
19650 else $as_nop
19651 moduledir="$libdir/xorg/modules"
19652 fi
19653
19654 inputdir=${moduledir}/input
19655
19656
19657
19658 # Check whether --with-xorg-conf-dir was given.
19659 if test ${with_xorg_conf_dir+y}
19660 then :
19661 withval=$with_xorg_conf_dir; xorgconfdir="$withval"
19662 else $as_nop
19663 xorgconfdir='${prefix}/share/X11/xorg.conf.d'
19664 fi
19665
19666
19667
19668 # X Server SDK location is required to install header files
19669 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19670
19671 # Workaround overriding sdkdir to be able to create a tarball when user has no
19672 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
19673
19674 # Check whether --with-sdkdir was given.
19675 if test ${with_sdkdir+y}
19676 then :
19677 withval=$with_sdkdir; sdkdir="$withval"
19678 fi
19679
19680
19681
19682 DRIVER_NAME=libinput
19683
19684
19685 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile man/Makefile test/Makefile xorg-libinput.pc"
19686
19687 cat >confcache <<\_ACEOF
19688 # This file is a shell script that caches the results of configure
19689 # tests run on this system so they can be shared between configure
19690 # scripts and configure runs, see configure's option --config-cache.
19691 # It is not useful on other systems. If it contains results you don't
19692 # want to keep, you may remove or edit it.
19693 #
19694 # config.status only pays attention to the cache file if you give it
19695 # the --recheck option to rerun configure.
19696 #
19697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19699 # following values.
19700
19701 _ACEOF
19702
19703 # The following way of writing the cache mishandles newlines in values,
19704 # but we know of no workaround that is simple, portable, and efficient.
19705 # So, we kill variables containing newlines.
19706 # Ultrix sh set writes to stderr and can't be redirected directly,
19707 # and sets the high bit in the cache file unless we assign to the vars.
19708 (
19709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19710 eval ac_val=\$$ac_var
19711 case $ac_val in #(
19712 *${as_nl}*)
19713 case $ac_var in #(
19714 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19715 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19716 esac
19717 case $ac_var in #(
19718 _ | IFS | as_nl) ;; #(
19719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19720 *) { eval $ac_var=; unset $ac_var;} ;;
19721 esac ;;
19722 esac
19723 done
19724
19725 (set) 2>&1 |
19726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19727 *${as_nl}ac_space=\ *)
19728 # `set' does not quote correctly, so add quotes: double-quote
19729 # substitution turns \\\\ into \\, and sed turns \\ into \.
19730 sed -n \
19731 "s/'/'\\\\''/g;
19732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19733 ;; #(
19734 *)
19735 # `set' quotes correctly as required by POSIX, so do not add quotes.
19736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19737 ;;
19738 esac |
19739 sort
19740 ) |
19741 sed '
19742 /^ac_cv_env_/b end
19743 t clear
19744 :clear
19745 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19746 t end
19747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19748 :end' >>confcache
19749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19750 if test -w "$cache_file"; then
19751 if test "x$cache_file" != "x/dev/null"; then
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19753 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19754 if test ! -f "$cache_file" || test -h "$cache_file"; then
19755 cat confcache >"$cache_file"
19756 else
19757 case $cache_file in #(
19758 */* | ?:*)
19759 mv -f confcache "$cache_file"$$ &&
19760 mv -f "$cache_file"$$ "$cache_file" ;; #(
19761 *)
19762 mv -f confcache "$cache_file" ;;
19763 esac
19764 fi
19765 fi
19766 else
19767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19768 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19769 fi
19770 fi
19771 rm -f confcache
19772
19773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19774 # Let make expand exec_prefix.
19775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19776
19777 DEFS=-DHAVE_CONFIG_H
19778
19779 ac_libobjs=
19780 ac_ltlibobjs=
19781 U=
19782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19783 # 1. Remove the extension, and $U if already installed.
19784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19785 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19787 # will be set to the directory where LIBOBJS objects are built.
19788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19790 done
19791 LIBOBJS=$ac_libobjs
19792
19793 LTLIBOBJS=$ac_ltlibobjs
19794
19795
19796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19797 printf %s "checking that generated files are newer than configure... " >&6; }
19798 if test -n "$am_sleep_pid"; then
19799 # Hide warnings about reused PIDs.
19800 wait $am_sleep_pid 2>/dev/null
19801 fi
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19803 printf "%s\n" "done" >&6; }
19804 if test -n "$EXEEXT"; then
19805 am__EXEEXT_TRUE=
19806 am__EXEEXT_FALSE='#'
19807 else
19808 am__EXEEXT_TRUE='#'
19809 am__EXEEXT_FALSE=
19810 fi
19811
19812 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19813 as_fn_error $? "conditional \"AMDEP\" was never defined.
19814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19815 fi
19816 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19817 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19819 fi
19820
19821 : "${CONFIG_STATUS=./config.status}"
19822 ac_write_fail=0
19823 ac_clean_files_save=$ac_clean_files
19824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19826 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19827 as_write_fail=0
19828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19829 #! $SHELL
19830 # Generated by $as_me.
19831 # Run this file to recreate the current configuration.
19832 # Compiler output produced by configure, useful for debugging
19833 # configure, is in config.log if it exists.
19834
19835 debug=false
19836 ac_cs_recheck=false
19837 ac_cs_silent=false
19838
19839 SHELL=\${CONFIG_SHELL-$SHELL}
19840 export SHELL
19841 _ASEOF
19842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19843 ## -------------------- ##
19844 ## M4sh Initialization. ##
19845 ## -------------------- ##
19846
19847 # Be more Bourne compatible
19848 DUALCASE=1; export DUALCASE # for MKS sh
19849 as_nop=:
19850 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19851 then :
19852 emulate sh
19853 NULLCMD=:
19854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19855 # is contrary to our usage. Disable this feature.
19856 alias -g '${1+"$@"}'='"$@"'
19857 setopt NO_GLOB_SUBST
19858 else $as_nop
19859 case `(set -o) 2>/dev/null` in #(
19860 *posix*) :
19861 set -o posix ;; #(
19862 *) :
19863 ;;
19864 esac
19865 fi
19866
19867
19868
19869 # Reset variables that may have inherited troublesome values from
19870 # the environment.
19871
19872 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19873 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19874 # side effect of setting IFS to empty, thus disabling word splitting.)
19875 # Quoting is to prevent editors from complaining about space-tab.
19876 as_nl='
19877 '
19878 export as_nl
19879 IFS=" "" $as_nl"
19880
19881 PS1='$ '
19882 PS2='> '
19883 PS4='+ '
19884
19885 # Ensure predictable behavior from utilities with locale-dependent output.
19886 LC_ALL=C
19887 export LC_ALL
19888 LANGUAGE=C
19889 export LANGUAGE
19890
19891 # We cannot yet rely on "unset" to work, but we need these variables
19892 # to be unset--not just set to an empty or harmless value--now, to
19893 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19894 # also avoids known problems related to "unset" and subshell syntax
19895 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19896 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19897 do eval test \${$as_var+y} \
19898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19899 done
19900
19901 # Ensure that fds 0, 1, and 2 are open.
19902 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19903 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19904 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19905
19906 # The user is always right.
19907 if ${PATH_SEPARATOR+false} :; then
19908 PATH_SEPARATOR=:
19909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19911 PATH_SEPARATOR=';'
19912 }
19913 fi
19914
19915
19916 # Find who we are. Look in the path if we contain no directory separator.
19917 as_myself=
19918 case $0 in #((
19919 *[\\/]* ) as_myself=$0 ;;
19920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921 for as_dir in $PATH
19922 do
19923 IFS=$as_save_IFS
19924 case $as_dir in #(((
19925 '') as_dir=./ ;;
19926 */) ;;
19927 *) as_dir=$as_dir/ ;;
19928 esac
19929 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19930 done
19931 IFS=$as_save_IFS
19932
19933 ;;
19934 esac
19935 # We did not find ourselves, most probably we were run as `sh COMMAND'
19936 # in which case we are not to be found in the path.
19937 if test "x$as_myself" = x; then
19938 as_myself=$0
19939 fi
19940 if test ! -f "$as_myself"; then
19941 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19942 exit 1
19943 fi
19944
19945
19946
19947 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19948 # ----------------------------------------
19949 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19950 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19951 # script with STATUS, using 1 if that was 0.
19952 as_fn_error ()
19953 {
19954 as_status=$1; test $as_status -eq 0 && as_status=1
19955 if test "$4"; then
19956 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19958 fi
19959 printf "%s\n" "$as_me: error: $2" >&2
19960 as_fn_exit $as_status
19961 } # as_fn_error
19962
19963
19964
19965 # as_fn_set_status STATUS
19966 # -----------------------
19967 # Set $? to STATUS, without forking.
19968 as_fn_set_status ()
19969 {
19970 return $1
19971 } # as_fn_set_status
19972
19973 # as_fn_exit STATUS
19974 # -----------------
19975 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19976 as_fn_exit ()
19977 {
19978 set +e
19979 as_fn_set_status $1
19980 exit $1
19981 } # as_fn_exit
19982
19983 # as_fn_unset VAR
19984 # ---------------
19985 # Portably unset VAR.
19986 as_fn_unset ()
19987 {
19988 { eval $1=; unset $1;}
19989 }
19990 as_unset=as_fn_unset
19991
19992 # as_fn_append VAR VALUE
19993 # ----------------------
19994 # Append the text in VALUE to the end of the definition contained in VAR. Take
19995 # advantage of any shell optimizations that allow amortized linear growth over
19996 # repeated appends, instead of the typical quadratic growth present in naive
19997 # implementations.
19998 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19999 then :
20000 eval 'as_fn_append ()
20001 {
20002 eval $1+=\$2
20003 }'
20004 else $as_nop
20005 as_fn_append ()
20006 {
20007 eval $1=\$$1\$2
20008 }
20009 fi # as_fn_append
20010
20011 # as_fn_arith ARG...
20012 # ------------------
20013 # Perform arithmetic evaluation on the ARGs, and store the result in the
20014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20015 # must be portable across $(()) and expr.
20016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20017 then :
20018 eval 'as_fn_arith ()
20019 {
20020 as_val=$(( $* ))
20021 }'
20022 else $as_nop
20023 as_fn_arith ()
20024 {
20025 as_val=`expr "$@" || test $? -eq 1`
20026 }
20027 fi # as_fn_arith
20028
20029
20030 if expr a : '\(a\)' >/dev/null 2>&1 &&
20031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20032 as_expr=expr
20033 else
20034 as_expr=false
20035 fi
20036
20037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20038 as_basename=basename
20039 else
20040 as_basename=false
20041 fi
20042
20043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20044 as_dirname=dirname
20045 else
20046 as_dirname=false
20047 fi
20048
20049 as_me=`$as_basename -- "$0" ||
20050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20051 X"$0" : 'X\(//\)$' \| \
20052 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20053 printf "%s\n" X/"$0" |
20054 sed '/^.*\/\([^/][^/]*\)\/*$/{
20055 s//\1/
20056 q
20057 }
20058 /^X\/\(\/\/\)$/{
20059 s//\1/
20060 q
20061 }
20062 /^X\/\(\/\).*/{
20063 s//\1/
20064 q
20065 }
20066 s/.*/./; q'`
20067
20068 # Avoid depending upon Character Ranges.
20069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20072 as_cr_digits='0123456789'
20073 as_cr_alnum=$as_cr_Letters$as_cr_digits
20074
20075
20076 # Determine whether it's possible to make 'echo' print without a newline.
20077 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20078 # for compatibility with existing Makefiles.
20079 ECHO_C= ECHO_N= ECHO_T=
20080 case `echo -n x` in #(((((
20081 -n*)
20082 case `echo 'xy\c'` in
20083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20084 xy) ECHO_C='\c';;
20085 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20086 ECHO_T=' ';;
20087 esac;;
20088 *)
20089 ECHO_N='-n';;
20090 esac
20091
20092 # For backward compatibility with old third-party macros, we provide
20093 # the shell variables $as_echo and $as_echo_n. New code should use
20094 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20095 as_echo='printf %s\n'
20096 as_echo_n='printf %s'
20097
20098 rm -f conf$$ conf$$.exe conf$$.file
20099 if test -d conf$$.dir; then
20100 rm -f conf$$.dir/conf$$.file
20101 else
20102 rm -f conf$$.dir
20103 mkdir conf$$.dir 2>/dev/null
20104 fi
20105 if (echo >conf$$.file) 2>/dev/null; then
20106 if ln -s conf$$.file conf$$ 2>/dev/null; then
20107 as_ln_s='ln -s'
20108 # ... but there are two gotchas:
20109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20111 # In both cases, we have to default to `cp -pR'.
20112 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20113 as_ln_s='cp -pR'
20114 elif ln conf$$.file conf$$ 2>/dev/null; then
20115 as_ln_s=ln
20116 else
20117 as_ln_s='cp -pR'
20118 fi
20119 else
20120 as_ln_s='cp -pR'
20121 fi
20122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20123 rmdir conf$$.dir 2>/dev/null
20124
20125
20126 # as_fn_mkdir_p
20127 # -------------
20128 # Create "$as_dir" as a directory, including parents if necessary.
20129 as_fn_mkdir_p ()
20130 {
20131
20132 case $as_dir in #(
20133 -*) as_dir=./$as_dir;;
20134 esac
20135 test -d "$as_dir" || eval $as_mkdir_p || {
20136 as_dirs=
20137 while :; do
20138 case $as_dir in #(
20139 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20140 *) as_qdir=$as_dir;;
20141 esac
20142 as_dirs="'$as_qdir' $as_dirs"
20143 as_dir=`$as_dirname -- "$as_dir" ||
20144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20145 X"$as_dir" : 'X\(//\)[^/]' \| \
20146 X"$as_dir" : 'X\(//\)$' \| \
20147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20148 printf "%s\n" X"$as_dir" |
20149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20150 s//\1/
20151 q
20152 }
20153 /^X\(\/\/\)[^/].*/{
20154 s//\1/
20155 q
20156 }
20157 /^X\(\/\/\)$/{
20158 s//\1/
20159 q
20160 }
20161 /^X\(\/\).*/{
20162 s//\1/
20163 q
20164 }
20165 s/.*/./; q'`
20166 test -d "$as_dir" && break
20167 done
20168 test -z "$as_dirs" || eval "mkdir $as_dirs"
20169 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20170
20171
20172 } # as_fn_mkdir_p
20173 if mkdir -p . 2>/dev/null; then
20174 as_mkdir_p='mkdir -p "$as_dir"'
20175 else
20176 test -d ./-p && rmdir ./-p
20177 as_mkdir_p=false
20178 fi
20179
20180
20181 # as_fn_executable_p FILE
20182 # -----------------------
20183 # Test if FILE is an executable regular file.
20184 as_fn_executable_p ()
20185 {
20186 test -f "$1" && test -x "$1"
20187 } # as_fn_executable_p
20188 as_test_x='test -x'
20189 as_executable_p=as_fn_executable_p
20190
20191 # Sed expression to map a string onto a valid CPP name.
20192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20193
20194 # Sed expression to map a string onto a valid variable name.
20195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20196
20197
20198 exec 6>&1
20199 ## ----------------------------------- ##
20200 ## Main body of $CONFIG_STATUS script. ##
20201 ## ----------------------------------- ##
20202 _ASEOF
20203 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20204
20205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20206 # Save the log message, to keep $0 and so on meaningful, and to
20207 # report actual input values of CONFIG_FILES etc. instead of their
20208 # values after options handling.
20209 ac_log="
20210 This file was extended by xf86-input-libinput $as_me 1.5.0, which was
20211 generated by GNU Autoconf 2.71. Invocation command line was
20212
20213 CONFIG_FILES = $CONFIG_FILES
20214 CONFIG_HEADERS = $CONFIG_HEADERS
20215 CONFIG_LINKS = $CONFIG_LINKS
20216 CONFIG_COMMANDS = $CONFIG_COMMANDS
20217 $ $0 $@
20218
20219 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20220 "
20221
20222 _ACEOF
20223
20224 case $ac_config_files in *"
20225 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20226 esac
20227
20228 case $ac_config_headers in *"
20229 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20230 esac
20231
20232
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20234 # Files that config.status was made for.
20235 config_files="$ac_config_files"
20236 config_headers="$ac_config_headers"
20237 config_commands="$ac_config_commands"
20238
20239 _ACEOF
20240
20241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20242 ac_cs_usage="\
20243 \`$as_me' instantiates files and other configuration actions
20244 from templates according to the current configuration. Unless the files
20245 and actions are specified as TAGs, all are instantiated by default.
20246
20247 Usage: $0 [OPTION]... [TAG]...
20248
20249 -h, --help print this help, then exit
20250 -V, --version print version number and configuration settings, then exit
20251 --config print configuration, then exit
20252 -q, --quiet, --silent
20253 do not print progress messages
20254 -d, --debug don't remove temporary files
20255 --recheck update $as_me by reconfiguring in the same conditions
20256 --file=FILE[:TEMPLATE]
20257 instantiate the configuration file FILE
20258 --header=FILE[:TEMPLATE]
20259 instantiate the configuration header FILE
20260
20261 Configuration files:
20262 $config_files
20263
20264 Configuration headers:
20265 $config_headers
20266
20267 Configuration commands:
20268 $config_commands
20269
20270 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/issues>."
20271
20272 _ACEOF
20273 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20274 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20276 ac_cs_config='$ac_cs_config_escaped'
20277 ac_cs_version="\\
20278 xf86-input-libinput config.status 1.5.0
20279 configured by $0, generated by GNU Autoconf 2.71,
20280 with options \\"\$ac_cs_config\\"
20281
20282 Copyright (C) 2021 Free Software Foundation, Inc.
20283 This config.status script is free software; the Free Software Foundation
20284 gives unlimited permission to copy, distribute and modify it."
20285
20286 ac_pwd='$ac_pwd'
20287 srcdir='$srcdir'
20288 INSTALL='$INSTALL'
20289 MKDIR_P='$MKDIR_P'
20290 AWK='$AWK'
20291 test -n "\$AWK" || AWK=awk
20292 _ACEOF
20293
20294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20295 # The default lists apply if the user does not specify any file.
20296 ac_need_defaults=:
20297 while test $# != 0
20298 do
20299 case $1 in
20300 --*=?*)
20301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20303 ac_shift=:
20304 ;;
20305 --*=)
20306 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20307 ac_optarg=
20308 ac_shift=:
20309 ;;
20310 *)
20311 ac_option=$1
20312 ac_optarg=$2
20313 ac_shift=shift
20314 ;;
20315 esac
20316
20317 case $ac_option in
20318 # Handling of the options.
20319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20320 ac_cs_recheck=: ;;
20321 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20322 printf "%s\n" "$ac_cs_version"; exit ;;
20323 --config | --confi | --conf | --con | --co | --c )
20324 printf "%s\n" "$ac_cs_config"; exit ;;
20325 --debug | --debu | --deb | --de | --d | -d )
20326 debug=: ;;
20327 --file | --fil | --fi | --f )
20328 $ac_shift
20329 case $ac_optarg in
20330 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20331 '') as_fn_error $? "missing file argument" ;;
20332 esac
20333 as_fn_append CONFIG_FILES " '$ac_optarg'"
20334 ac_need_defaults=false;;
20335 --header | --heade | --head | --hea )
20336 $ac_shift
20337 case $ac_optarg in
20338 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20339 esac
20340 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20341 ac_need_defaults=false;;
20342 --he | --h)
20343 # Conflict between --help and --header
20344 as_fn_error $? "ambiguous option: \`$1'
20345 Try \`$0 --help' for more information.";;
20346 --help | --hel | -h )
20347 printf "%s\n" "$ac_cs_usage"; exit ;;
20348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20350 ac_cs_silent=: ;;
20351
20352 # This is an error.
20353 -*) as_fn_error $? "unrecognized option: \`$1'
20354 Try \`$0 --help' for more information." ;;
20355
20356 *) as_fn_append ac_config_targets " $1"
20357 ac_need_defaults=false ;;
20358
20359 esac
20360 shift
20361 done
20362
20363 ac_configure_extra_args=
20364
20365 if $ac_cs_silent; then
20366 exec 6>/dev/null
20367 ac_configure_extra_args="$ac_configure_extra_args --silent"
20368 fi
20369
20370 _ACEOF
20371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20372 if \$ac_cs_recheck; then
20373 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20374 shift
20375 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20376 CONFIG_SHELL='$SHELL'
20377 export CONFIG_SHELL
20378 exec "\$@"
20379 fi
20380
20381 _ACEOF
20382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20383 exec 5>>config.log
20384 {
20385 echo
20386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20387 ## Running $as_me. ##
20388 _ASBOX
20389 printf "%s\n" "$ac_log"
20390 } >&5
20391
20392 _ACEOF
20393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20394 #
20395 # INIT-COMMANDS
20396 #
20397 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20398
20399
20400 # The HP-UX ksh and POSIX shell print the target directory to stdout
20401 # if CDPATH is set.
20402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20403
20404 sed_quote_subst='$sed_quote_subst'
20405 double_quote_subst='$double_quote_subst'
20406 delay_variable_subst='$delay_variable_subst'
20407 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20410 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20411 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20412 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20413 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20441 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20442 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20443 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20444 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20445 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20446 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20447 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20448 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20449 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20450 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20451 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20452 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20465 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20466 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20467 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"`'
20468 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20469 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20470 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20471 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20472 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20473 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20474 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20475 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20476 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20477 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20478 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20479 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20480 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20481 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20482 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20483 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20484 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20485 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20486 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20487 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20488 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20489 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20490 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20491 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20492 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20493 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20494 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20495 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20496 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20497 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20498 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20499 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20500 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20501 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20502 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20503 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20504 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20505 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20506 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20507 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20508 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20509 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20510 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20511 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20512 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20513 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20514 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20515 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20516 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20517 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20518 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20519 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20520 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20521 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20522 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20523 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20524 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20525 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20526 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20527 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20528 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20529 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20530 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20531 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20532 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20533 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20534 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20535 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20536 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20537 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20538 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20539 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20540 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20541 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20542 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20543 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20544
20545 LTCC='$LTCC'
20546 LTCFLAGS='$LTCFLAGS'
20547 compiler='$compiler_DEFAULT'
20548
20549 # A function that is used when there is no print builtin or printf.
20550 func_fallback_echo ()
20551 {
20552 eval 'cat <<_LTECHO_EOF
20553 \$1
20554 _LTECHO_EOF'
20555 }
20556
20557 # Quote evaled strings.
20558 for var in SHELL \
20559 ECHO \
20560 PATH_SEPARATOR \
20561 SED \
20562 GREP \
20563 EGREP \
20564 FGREP \
20565 LD \
20566 NM \
20567 LN_S \
20568 lt_SP2NL \
20569 lt_NL2SP \
20570 reload_flag \
20571 FILECMD \
20572 OBJDUMP \
20573 deplibs_check_method \
20574 file_magic_cmd \
20575 file_magic_glob \
20576 want_nocaseglob \
20577 DLLTOOL \
20578 sharedlib_from_linklib_cmd \
20579 AR \
20580 archiver_list_spec \
20581 STRIP \
20582 RANLIB \
20583 CC \
20584 CFLAGS \
20585 compiler \
20586 lt_cv_sys_global_symbol_pipe \
20587 lt_cv_sys_global_symbol_to_cdecl \
20588 lt_cv_sys_global_symbol_to_import \
20589 lt_cv_sys_global_symbol_to_c_name_address \
20590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20591 lt_cv_nm_interface \
20592 nm_file_list_spec \
20593 lt_cv_truncate_bin \
20594 lt_prog_compiler_no_builtin_flag \
20595 lt_prog_compiler_pic \
20596 lt_prog_compiler_wl \
20597 lt_prog_compiler_static \
20598 lt_cv_prog_compiler_c_o \
20599 need_locks \
20600 MANIFEST_TOOL \
20601 DSYMUTIL \
20602 NMEDIT \
20603 LIPO \
20604 OTOOL \
20605 OTOOL64 \
20606 shrext_cmds \
20607 export_dynamic_flag_spec \
20608 whole_archive_flag_spec \
20609 compiler_needs_object \
20610 with_gnu_ld \
20611 allow_undefined_flag \
20612 no_undefined_flag \
20613 hardcode_libdir_flag_spec \
20614 hardcode_libdir_separator \
20615 exclude_expsyms \
20616 include_expsyms \
20617 file_list_spec \
20618 variables_saved_for_relink \
20619 libname_spec \
20620 library_names_spec \
20621 soname_spec \
20622 install_override_mode \
20623 finish_eval \
20624 old_striplib \
20625 striplib; do
20626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20627 *[\\\\\\\`\\"\\\$]*)
20628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20629 ;;
20630 *)
20631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20632 ;;
20633 esac
20634 done
20635
20636 # Double-quote double-evaled strings.
20637 for var in reload_cmds \
20638 old_postinstall_cmds \
20639 old_postuninstall_cmds \
20640 old_archive_cmds \
20641 extract_expsyms_cmds \
20642 old_archive_from_new_cmds \
20643 old_archive_from_expsyms_cmds \
20644 archive_cmds \
20645 archive_expsym_cmds \
20646 module_cmds \
20647 module_expsym_cmds \
20648 export_symbols_cmds \
20649 prelink_cmds \
20650 postlink_cmds \
20651 postinstall_cmds \
20652 postuninstall_cmds \
20653 finish_cmds \
20654 sys_lib_search_path_spec \
20655 configure_time_dlsearch_path \
20656 configure_time_lt_sys_library_path; do
20657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20658 *[\\\\\\\`\\"\\\$]*)
20659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20660 ;;
20661 *)
20662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20663 ;;
20664 esac
20665 done
20666
20667 ac_aux_dir='$ac_aux_dir'
20668
20669 # See if we are running on zsh, and set the options that allow our
20670 # commands through without removal of \ escapes INIT.
20671 if test -n "\${ZSH_VERSION+set}"; then
20672 setopt NO_GLOB_SUBST
20673 fi
20674
20675
20676 PACKAGE='$PACKAGE'
20677 VERSION='$VERSION'
20678 RM='$RM'
20679 ofile='$ofile'
20680
20681
20682
20683
20684 _ACEOF
20685
20686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20687
20688 # Handling of arguments.
20689 for ac_config_target in $ac_config_targets
20690 do
20691 case $ac_config_target in
20692 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20693 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20694 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20696 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20697 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20698 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20699 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20700 "xorg-libinput.pc") CONFIG_FILES="$CONFIG_FILES xorg-libinput.pc" ;;
20701
20702 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20703 esac
20704 done
20705
20706
20707 # If the user did not use the arguments to specify the items to instantiate,
20708 # then the envvar interface is used. Set only those that are not.
20709 # We use the long form for the default assignment because of an extremely
20710 # bizarre bug on SunOS 4.1.3.
20711 if $ac_need_defaults; then
20712 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20713 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20714 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20715 fi
20716
20717 # Have a temporary directory for convenience. Make it in the build tree
20718 # simply because there is no reason against having it here, and in addition,
20719 # creating and moving files from /tmp can sometimes cause problems.
20720 # Hook for its removal unless debugging.
20721 # Note that there is a small window in which the directory will not be cleaned:
20722 # after its creation but before its name has been assigned to `$tmp'.
20723 $debug ||
20724 {
20725 tmp= ac_tmp=
20726 trap 'exit_status=$?
20727 : "${ac_tmp:=$tmp}"
20728 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20729 ' 0
20730 trap 'as_fn_exit 1' 1 2 13 15
20731 }
20732 # Create a (secure) tmp directory for tmp files.
20733
20734 {
20735 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20736 test -d "$tmp"
20737 } ||
20738 {
20739 tmp=./conf$$-$RANDOM
20740 (umask 077 && mkdir "$tmp")
20741 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20742 ac_tmp=$tmp
20743
20744 # Set up the scripts for CONFIG_FILES section.
20745 # No need to generate them if there are no CONFIG_FILES.
20746 # This happens for instance with `./config.status config.h'.
20747 if test -n "$CONFIG_FILES"; then
20748
20749
20750 ac_cr=`echo X | tr X '\015'`
20751 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20752 # But we know of no other shell where ac_cr would be empty at this
20753 # point, so we can use a bashism as a fallback.
20754 if test "x$ac_cr" = x; then
20755 eval ac_cr=\$\'\\r\'
20756 fi
20757 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20758 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20759 ac_cs_awk_cr='\\r'
20760 else
20761 ac_cs_awk_cr=$ac_cr
20762 fi
20763
20764 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20765 _ACEOF
20766
20767
20768 {
20769 echo "cat >conf$$subs.awk <<_ACEOF" &&
20770 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20771 echo "_ACEOF"
20772 } >conf$$subs.sh ||
20773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20774 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20775 ac_delim='%!_!# '
20776 for ac_last_try in false false false false false :; do
20777 . ./conf$$subs.sh ||
20778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20779
20780 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20781 if test $ac_delim_n = $ac_delim_num; then
20782 break
20783 elif $ac_last_try; then
20784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20785 else
20786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20787 fi
20788 done
20789 rm -f conf$$subs.sh
20790
20791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20793 _ACEOF
20794 sed -n '
20795 h
20796 s/^/S["/; s/!.*/"]=/
20797 p
20798 g
20799 s/^[^!]*!//
20800 :repl
20801 t repl
20802 s/'"$ac_delim"'$//
20803 t delim
20804 :nl
20805 h
20806 s/\(.\{148\}\)..*/\1/
20807 t more1
20808 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20809 p
20810 n
20811 b repl
20812 :more1
20813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20814 p
20815 g
20816 s/.\{148\}//
20817 t nl
20818 :delim
20819 h
20820 s/\(.\{148\}\)..*/\1/
20821 t more2
20822 s/["\\]/\\&/g; s/^/"/; s/$/"/
20823 p
20824 b
20825 :more2
20826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20827 p
20828 g
20829 s/.\{148\}//
20830 t delim
20831 ' <conf$$subs.awk | sed '
20832 /^[^""]/{
20833 N
20834 s/\n//
20835 }
20836 ' >>$CONFIG_STATUS || ac_write_fail=1
20837 rm -f conf$$subs.awk
20838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20839 _ACAWK
20840 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20841 for (key in S) S_is_set[key] = 1
20842 FS = ""
20843
20844 }
20845 {
20846 line = $ 0
20847 nfields = split(line, field, "@")
20848 substed = 0
20849 len = length(field[1])
20850 for (i = 2; i < nfields; i++) {
20851 key = field[i]
20852 keylen = length(key)
20853 if (S_is_set[key]) {
20854 value = S[key]
20855 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20856 len += length(value) + length(field[++i])
20857 substed = 1
20858 } else
20859 len += 1 + keylen
20860 }
20861
20862 print line
20863 }
20864
20865 _ACAWK
20866 _ACEOF
20867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20868 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20869 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20870 else
20871 cat
20872 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20873 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20874 _ACEOF
20875
20876 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20877 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20878 # trailing colons and then remove the whole line if VPATH becomes empty
20879 # (actually we leave an empty line to preserve line numbers).
20880 if test "x$srcdir" = x.; then
20881 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20882 h
20883 s///
20884 s/^/:/
20885 s/[ ]*$/:/
20886 s/:\$(srcdir):/:/g
20887 s/:\${srcdir}:/:/g
20888 s/:@srcdir@:/:/g
20889 s/^:*//
20890 s/:*$//
20891 x
20892 s/\(=[ ]*\).*/\1/
20893 G
20894 s/\n//
20895 s/^[^=]*=[ ]*$//
20896 }'
20897 fi
20898
20899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20900 fi # test -n "$CONFIG_FILES"
20901
20902 # Set up the scripts for CONFIG_HEADERS section.
20903 # No need to generate them if there are no CONFIG_HEADERS.
20904 # This happens for instance with `./config.status Makefile'.
20905 if test -n "$CONFIG_HEADERS"; then
20906 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20907 BEGIN {
20908 _ACEOF
20909
20910 # Transform confdefs.h into an awk script `defines.awk', embedded as
20911 # here-document in config.status, that substitutes the proper values into
20912 # config.h.in to produce config.h.
20913
20914 # Create a delimiter string that does not exist in confdefs.h, to ease
20915 # handling of long lines.
20916 ac_delim='%!_!# '
20917 for ac_last_try in false false :; do
20918 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20919 if test -z "$ac_tt"; then
20920 break
20921 elif $ac_last_try; then
20922 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20923 else
20924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20925 fi
20926 done
20927
20928 # For the awk script, D is an array of macro values keyed by name,
20929 # likewise P contains macro parameters if any. Preserve backslash
20930 # newline sequences.
20931
20932 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20933 sed -n '
20934 s/.\{148\}/&'"$ac_delim"'/g
20935 t rset
20936 :rset
20937 s/^[ ]*#[ ]*define[ ][ ]*/ /
20938 t def
20939 d
20940 :def
20941 s/\\$//
20942 t bsnl
20943 s/["\\]/\\&/g
20944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20945 D["\1"]=" \3"/p
20946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20947 d
20948 :bsnl
20949 s/["\\]/\\&/g
20950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20951 D["\1"]=" \3\\\\\\n"\\/p
20952 t cont
20953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20954 t cont
20955 d
20956 :cont
20957 n
20958 s/.\{148\}/&'"$ac_delim"'/g
20959 t clear
20960 :clear
20961 s/\\$//
20962 t bsnlc
20963 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20964 d
20965 :bsnlc
20966 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20967 b cont
20968 ' <confdefs.h | sed '
20969 s/'"$ac_delim"'/"\\\
20970 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20971
20972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20973 for (key in D) D_is_set[key] = 1
20974 FS = ""
20975 }
20976 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20977 line = \$ 0
20978 split(line, arg, " ")
20979 if (arg[1] == "#") {
20980 defundef = arg[2]
20981 mac1 = arg[3]
20982 } else {
20983 defundef = substr(arg[1], 2)
20984 mac1 = arg[2]
20985 }
20986 split(mac1, mac2, "(") #)
20987 macro = mac2[1]
20988 prefix = substr(line, 1, index(line, defundef) - 1)
20989 if (D_is_set[macro]) {
20990 # Preserve the white space surrounding the "#".
20991 print prefix "define", macro P[macro] D[macro]
20992 next
20993 } else {
20994 # Replace #undef with comments. This is necessary, for example,
20995 # in the case of _POSIX_SOURCE, which is predefined and required
20996 # on some systems where configure will not decide to define it.
20997 if (defundef == "undef") {
20998 print "/*", prefix defundef, macro, "*/"
20999 next
21000 }
21001 }
21002 }
21003 { print }
21004 _ACAWK
21005 _ACEOF
21006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21007 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21008 fi # test -n "$CONFIG_HEADERS"
21009
21010
21011 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21012 shift
21013 for ac_tag
21014 do
21015 case $ac_tag in
21016 :[FHLC]) ac_mode=$ac_tag; continue;;
21017 esac
21018 case $ac_mode$ac_tag in
21019 :[FHL]*:*);;
21020 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21021 :[FH]-) ac_tag=-:-;;
21022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21023 esac
21024 ac_save_IFS=$IFS
21025 IFS=:
21026 set x $ac_tag
21027 IFS=$ac_save_IFS
21028 shift
21029 ac_file=$1
21030 shift
21031
21032 case $ac_mode in
21033 :L) ac_source=$1;;
21034 :[FH])
21035 ac_file_inputs=
21036 for ac_f
21037 do
21038 case $ac_f in
21039 -) ac_f="$ac_tmp/stdin";;
21040 *) # Look for the file first in the build tree, then in the source tree
21041 # (if the path is not absolute). The absolute path cannot be DOS-style,
21042 # because $ac_f cannot contain `:'.
21043 test -f "$ac_f" ||
21044 case $ac_f in
21045 [\\/$]*) false;;
21046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21047 esac ||
21048 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21049 esac
21050 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21051 as_fn_append ac_file_inputs " '$ac_f'"
21052 done
21053
21054 # Let's still pretend it is `configure' which instantiates (i.e., don't
21055 # use $as_me), people would be surprised to read:
21056 # /* config.h. Generated by config.status. */
21057 configure_input='Generated from '`
21058 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21059 `' by configure.'
21060 if test x"$ac_file" != x-; then
21061 configure_input="$ac_file. $configure_input"
21062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21063 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21064 fi
21065 # Neutralize special characters interpreted by sed in replacement strings.
21066 case $configure_input in #(
21067 *\&* | *\|* | *\\* )
21068 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21069 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21070 *) ac_sed_conf_input=$configure_input;;
21071 esac
21072
21073 case $ac_tag in
21074 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21076 esac
21077 ;;
21078 esac
21079
21080 ac_dir=`$as_dirname -- "$ac_file" ||
21081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21082 X"$ac_file" : 'X\(//\)[^/]' \| \
21083 X"$ac_file" : 'X\(//\)$' \| \
21084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21085 printf "%s\n" X"$ac_file" |
21086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21087 s//\1/
21088 q
21089 }
21090 /^X\(\/\/\)[^/].*/{
21091 s//\1/
21092 q
21093 }
21094 /^X\(\/\/\)$/{
21095 s//\1/
21096 q
21097 }
21098 /^X\(\/\).*/{
21099 s//\1/
21100 q
21101 }
21102 s/.*/./; q'`
21103 as_dir="$ac_dir"; as_fn_mkdir_p
21104 ac_builddir=.
21105
21106 case "$ac_dir" in
21107 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21108 *)
21109 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21110 # A ".." for each directory in $ac_dir_suffix.
21111 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21112 case $ac_top_builddir_sub in
21113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21115 esac ;;
21116 esac
21117 ac_abs_top_builddir=$ac_pwd
21118 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21119 # for backward compatibility:
21120 ac_top_builddir=$ac_top_build_prefix
21121
21122 case $srcdir in
21123 .) # We are building in place.
21124 ac_srcdir=.
21125 ac_top_srcdir=$ac_top_builddir_sub
21126 ac_abs_top_srcdir=$ac_pwd ;;
21127 [\\/]* | ?:[\\/]* ) # Absolute name.
21128 ac_srcdir=$srcdir$ac_dir_suffix;
21129 ac_top_srcdir=$srcdir
21130 ac_abs_top_srcdir=$srcdir ;;
21131 *) # Relative name.
21132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21133 ac_top_srcdir=$ac_top_build_prefix$srcdir
21134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21135 esac
21136 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21137
21138
21139 case $ac_mode in
21140 :F)
21141 #
21142 # CONFIG_FILE
21143 #
21144
21145 case $INSTALL in
21146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21147 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21148 esac
21149 ac_MKDIR_P=$MKDIR_P
21150 case $MKDIR_P in
21151 [\\/$]* | ?:[\\/]* ) ;;
21152 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21153 esac
21154 _ACEOF
21155
21156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21157 # If the template does not know about datarootdir, expand it.
21158 # FIXME: This hack should be removed a few years after 2.60.
21159 ac_datarootdir_hack=; ac_datarootdir_seen=
21160 ac_sed_dataroot='
21161 /datarootdir/ {
21162 p
21163 q
21164 }
21165 /@datadir@/p
21166 /@docdir@/p
21167 /@infodir@/p
21168 /@localedir@/p
21169 /@mandir@/p'
21170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21171 *datarootdir*) ac_datarootdir_seen=yes;;
21172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21174 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21175 _ACEOF
21176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21177 ac_datarootdir_hack='
21178 s&@datadir@&$datadir&g
21179 s&@docdir@&$docdir&g
21180 s&@infodir@&$infodir&g
21181 s&@localedir@&$localedir&g
21182 s&@mandir@&$mandir&g
21183 s&\\\${datarootdir}&$datarootdir&g' ;;
21184 esac
21185 _ACEOF
21186
21187 # Neutralize VPATH when `$srcdir' = `.'.
21188 # Shell code in configure.ac might set extrasub.
21189 # FIXME: do we really want to maintain this feature?
21190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21191 ac_sed_extra="$ac_vpsub
21192 $extrasub
21193 _ACEOF
21194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21195 :t
21196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21197 s|@configure_input@|$ac_sed_conf_input|;t t
21198 s&@top_builddir@&$ac_top_builddir_sub&;t t
21199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21200 s&@srcdir@&$ac_srcdir&;t t
21201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21202 s&@top_srcdir@&$ac_top_srcdir&;t t
21203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21204 s&@builddir@&$ac_builddir&;t t
21205 s&@abs_builddir@&$ac_abs_builddir&;t t
21206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21207 s&@INSTALL@&$ac_INSTALL&;t t
21208 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21209 $ac_datarootdir_hack
21210 "
21211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21212 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21213
21214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21215 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21217 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21219 which seems to be undefined. Please make sure it is defined" >&5
21220 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21221 which seems to be undefined. Please make sure it is defined" >&2;}
21222
21223 rm -f "$ac_tmp/stdin"
21224 case $ac_file in
21225 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21226 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21227 esac \
21228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21229 ;;
21230 :H)
21231 #
21232 # CONFIG_HEADER
21233 #
21234 if test x"$ac_file" != x-; then
21235 {
21236 printf "%s\n" "/* $configure_input */" >&1 \
21237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21238 } >"$ac_tmp/config.h" \
21239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21240 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21242 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21243 else
21244 rm -f "$ac_file"
21245 mv "$ac_tmp/config.h" "$ac_file" \
21246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21247 fi
21248 else
21249 printf "%s\n" "/* $configure_input */" >&1 \
21250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21251 || as_fn_error $? "could not create -" "$LINENO" 5
21252 fi
21253 # Compute "$ac_file"'s index in $config_headers.
21254 _am_arg="$ac_file"
21255 _am_stamp_count=1
21256 for _am_header in $config_headers :; do
21257 case $_am_header in
21258 $_am_arg | $_am_arg:* )
21259 break ;;
21260 * )
21261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21262 esac
21263 done
21264 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21265 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21266 X"$_am_arg" : 'X\(//\)[^/]' \| \
21267 X"$_am_arg" : 'X\(//\)$' \| \
21268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21269 printf "%s\n" X"$_am_arg" |
21270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21271 s//\1/
21272 q
21273 }
21274 /^X\(\/\/\)[^/].*/{
21275 s//\1/
21276 q
21277 }
21278 /^X\(\/\/\)$/{
21279 s//\1/
21280 q
21281 }
21282 /^X\(\/\).*/{
21283 s//\1/
21284 q
21285 }
21286 s/.*/./; q'`/stamp-h$_am_stamp_count
21287 ;;
21288
21289 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21290 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21291 ;;
21292 esac
21293
21294
21295 case $ac_file$ac_mode in
21296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21297 # Older Autoconf quotes --file arguments for eval, but not when files
21298 # are listed without --file. Let's play safe and only enable the eval
21299 # if we detect the quoting.
21300 # TODO: see whether this extra hack can be removed once we start
21301 # requiring Autoconf 2.70 or later.
21302 case $CONFIG_FILES in #(
21303 *\'*) :
21304 eval set x "$CONFIG_FILES" ;; #(
21305 *) :
21306 set x $CONFIG_FILES ;; #(
21307 *) :
21308 ;;
21309 esac
21310 shift
21311 # Used to flag and report bootstrapping failures.
21312 am_rc=0
21313 for am_mf
21314 do
21315 # Strip MF so we end up with the name of the file.
21316 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21317 # Check whether this is an Automake generated Makefile which includes
21318 # dependency-tracking related rules and includes.
21319 # Grep'ing the whole file directly is not great: AIX grep has a line
21320 # limit of 2048, but all sed's we know have understand at least 4000.
21321 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21322 || continue
21323 am_dirpart=`$as_dirname -- "$am_mf" ||
21324 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21325 X"$am_mf" : 'X\(//\)[^/]' \| \
21326 X"$am_mf" : 'X\(//\)$' \| \
21327 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21328 printf "%s\n" X"$am_mf" |
21329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21330 s//\1/
21331 q
21332 }
21333 /^X\(\/\/\)[^/].*/{
21334 s//\1/
21335 q
21336 }
21337 /^X\(\/\/\)$/{
21338 s//\1/
21339 q
21340 }
21341 /^X\(\/\).*/{
21342 s//\1/
21343 q
21344 }
21345 s/.*/./; q'`
21346 am_filepart=`$as_basename -- "$am_mf" ||
21347 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21348 X"$am_mf" : 'X\(//\)$' \| \
21349 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21350 printf "%s\n" X/"$am_mf" |
21351 sed '/^.*\/\([^/][^/]*\)\/*$/{
21352 s//\1/
21353 q
21354 }
21355 /^X\/\(\/\/\)$/{
21356 s//\1/
21357 q
21358 }
21359 /^X\/\(\/\).*/{
21360 s//\1/
21361 q
21362 }
21363 s/.*/./; q'`
21364 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21365 && sed -e '/# am--include-marker/d' "$am_filepart" \
21366 | $MAKE -f - am--depfiles" >&5
21367 (cd "$am_dirpart" \
21368 && sed -e '/# am--include-marker/d' "$am_filepart" \
21369 | $MAKE -f - am--depfiles) >&5 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } || am_rc=$?
21373 done
21374 if test $am_rc -ne 0; then
21375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21376 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21377 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21378 for automatic dependency tracking. If GNU make was not used, consider
21379 re-running the configure script with MAKE=\"gmake\" (or whatever is
21380 necessary). You can also try re-running configure with the
21381 '--disable-dependency-tracking' option to at least be able to build
21382 the package (albeit without support for automatic dependency tracking).
21383 See \`config.log' for more details" "$LINENO" 5; }
21384 fi
21385 { am_dirpart=; unset am_dirpart;}
21386 { am_filepart=; unset am_filepart;}
21387 { am_mf=; unset am_mf;}
21388 { am_rc=; unset am_rc;}
21389 rm -f conftest-deps.mk
21390 }
21391 ;;
21392 "libtool":C)
21393
21394 # See if we are running on zsh, and set the options that allow our
21395 # commands through without removal of \ escapes.
21396 if test -n "${ZSH_VERSION+set}"; then
21397 setopt NO_GLOB_SUBST
21398 fi
21399
21400 cfgfile=${ofile}T
21401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21402 $RM "$cfgfile"
21403
21404 cat <<_LT_EOF >> "$cfgfile"
21405 #! $SHELL
21406 # Generated automatically by $as_me ($PACKAGE) $VERSION
21407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21408 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21409
21410 # Provide generalized library-building support services.
21411 # Written by Gordon Matzigkeit, 1996
21412
21413 # Copyright (C) 2014 Free Software Foundation, Inc.
21414 # This is free software; see the source for copying conditions. There is NO
21415 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21416
21417 # GNU Libtool is free software; you can redistribute it and/or modify
21418 # it under the terms of the GNU General Public License as published by
21419 # the Free Software Foundation; either version 2 of of the License, or
21420 # (at your option) any later version.
21421 #
21422 # As a special exception to the GNU General Public License, if you
21423 # distribute this file as part of a program or library that is built
21424 # using GNU Libtool, you may include this file under the same
21425 # distribution terms that you use for the rest of that program.
21426 #
21427 # GNU Libtool is distributed in the hope that it will be useful, but
21428 # WITHOUT ANY WARRANTY; without even the implied warranty of
21429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21430 # GNU General Public License for more details.
21431 #
21432 # You should have received a copy of the GNU General Public License
21433 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21434
21435
21436 # The names of the tagged configurations supported by this script.
21437 available_tags=''
21438
21439 # Configured defaults for sys_lib_dlsearch_path munging.
21440 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21441
21442 # ### BEGIN LIBTOOL CONFIG
21443
21444 # Whether or not to build static libraries.
21445 build_old_libs=$enable_static
21446
21447 # Which release of libtool.m4 was used?
21448 macro_version=$macro_version
21449 macro_revision=$macro_revision
21450
21451 # Whether or not to build shared libraries.
21452 build_libtool_libs=$enable_shared
21453
21454 # What type of objects to build.
21455 pic_mode=$pic_mode
21456
21457 # Whether or not to optimize for fast installation.
21458 fast_install=$enable_fast_install
21459
21460 # Shared archive member basename,for filename based shared library versioning on AIX.
21461 shared_archive_member_spec=$shared_archive_member_spec
21462
21463 # Shell to use when invoking shell scripts.
21464 SHELL=$lt_SHELL
21465
21466 # An echo program that protects backslashes.
21467 ECHO=$lt_ECHO
21468
21469 # The PATH separator for the build system.
21470 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21471
21472 # The host system.
21473 host_alias=$host_alias
21474 host=$host
21475 host_os=$host_os
21476
21477 # The build system.
21478 build_alias=$build_alias
21479 build=$build
21480 build_os=$build_os
21481
21482 # A sed program that does not truncate output.
21483 SED=$lt_SED
21484
21485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21486 Xsed="\$SED -e 1s/^X//"
21487
21488 # A grep program that handles long lines.
21489 GREP=$lt_GREP
21490
21491 # An ERE matcher.
21492 EGREP=$lt_EGREP
21493
21494 # A literal string matcher.
21495 FGREP=$lt_FGREP
21496
21497 # A BSD- or MS-compatible name lister.
21498 NM=$lt_NM
21499
21500 # Whether we need soft or hard links.
21501 LN_S=$lt_LN_S
21502
21503 # What is the maximum length of a command?
21504 max_cmd_len=$max_cmd_len
21505
21506 # Object file suffix (normally "o").
21507 objext=$ac_objext
21508
21509 # Executable file suffix (normally "").
21510 exeext=$exeext
21511
21512 # whether the shell understands "unset".
21513 lt_unset=$lt_unset
21514
21515 # turn spaces into newlines.
21516 SP2NL=$lt_lt_SP2NL
21517
21518 # turn newlines into spaces.
21519 NL2SP=$lt_lt_NL2SP
21520
21521 # convert \$build file names to \$host format.
21522 to_host_file_cmd=$lt_cv_to_host_file_cmd
21523
21524 # convert \$build files to toolchain format.
21525 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21526
21527 # A file(cmd) program that detects file types.
21528 FILECMD=$lt_FILECMD
21529
21530 # An object symbol dumper.
21531 OBJDUMP=$lt_OBJDUMP
21532
21533 # Method to check whether dependent libraries are shared objects.
21534 deplibs_check_method=$lt_deplibs_check_method
21535
21536 # Command to use when deplibs_check_method = "file_magic".
21537 file_magic_cmd=$lt_file_magic_cmd
21538
21539 # How to find potential files when deplibs_check_method = "file_magic".
21540 file_magic_glob=$lt_file_magic_glob
21541
21542 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21543 want_nocaseglob=$lt_want_nocaseglob
21544
21545 # DLL creation program.
21546 DLLTOOL=$lt_DLLTOOL
21547
21548 # Command to associate shared and link libraries.
21549 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21550
21551 # The archiver.
21552 AR=$lt_AR
21553
21554 # Flags to create an archive (by configure).
21555 lt_ar_flags=$lt_ar_flags
21556
21557 # Flags to create an archive.
21558 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21559
21560 # How to feed a file listing to the archiver.
21561 archiver_list_spec=$lt_archiver_list_spec
21562
21563 # A symbol stripping program.
21564 STRIP=$lt_STRIP
21565
21566 # Commands used to install an old-style archive.
21567 RANLIB=$lt_RANLIB
21568 old_postinstall_cmds=$lt_old_postinstall_cmds
21569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21570
21571 # Whether to use a lock for old archive extraction.
21572 lock_old_archive_extraction=$lock_old_archive_extraction
21573
21574 # A C compiler.
21575 LTCC=$lt_CC
21576
21577 # LTCC compiler flags.
21578 LTCFLAGS=$lt_CFLAGS
21579
21580 # Take the output of nm and produce a listing of raw symbols and C names.
21581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21582
21583 # Transform the output of nm in a proper C declaration.
21584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21585
21586 # Transform the output of nm into a list of symbols to manually relocate.
21587 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21588
21589 # Transform the output of nm in a C name address pair.
21590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21591
21592 # Transform the output of nm in a C name address pair when lib prefix is needed.
21593 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21594
21595 # The name lister interface.
21596 nm_interface=$lt_lt_cv_nm_interface
21597
21598 # Specify filename containing input files for \$NM.
21599 nm_file_list_spec=$lt_nm_file_list_spec
21600
21601 # The root where to search for dependent libraries,and where our libraries should be installed.
21602 lt_sysroot=$lt_sysroot
21603
21604 # Command to truncate a binary pipe.
21605 lt_truncate_bin=$lt_lt_cv_truncate_bin
21606
21607 # The name of the directory that contains temporary libtool files.
21608 objdir=$objdir
21609
21610 # Used to examine libraries when file_magic_cmd begins with "file".
21611 MAGIC_CMD=$MAGIC_CMD
21612
21613 # Must we lock files when doing compilation?
21614 need_locks=$lt_need_locks
21615
21616 # Manifest tool.
21617 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21618
21619 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21620 DSYMUTIL=$lt_DSYMUTIL
21621
21622 # Tool to change global to local symbols on Mac OS X.
21623 NMEDIT=$lt_NMEDIT
21624
21625 # Tool to manipulate fat objects and archives on Mac OS X.
21626 LIPO=$lt_LIPO
21627
21628 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21629 OTOOL=$lt_OTOOL
21630
21631 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21632 OTOOL64=$lt_OTOOL64
21633
21634 # Old archive suffix (normally "a").
21635 libext=$libext
21636
21637 # Shared library suffix (normally ".so").
21638 shrext_cmds=$lt_shrext_cmds
21639
21640 # The commands to extract the exported symbol list from a shared archive.
21641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21642
21643 # Variables whose values should be saved in libtool wrapper scripts and
21644 # restored at link time.
21645 variables_saved_for_relink=$lt_variables_saved_for_relink
21646
21647 # Do we need the "lib" prefix for modules?
21648 need_lib_prefix=$need_lib_prefix
21649
21650 # Do we need a version for libraries?
21651 need_version=$need_version
21652
21653 # Library versioning type.
21654 version_type=$version_type
21655
21656 # Shared library runtime path variable.
21657 runpath_var=$runpath_var
21658
21659 # Shared library path variable.
21660 shlibpath_var=$shlibpath_var
21661
21662 # Is shlibpath searched before the hard-coded library search path?
21663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21664
21665 # Format of library name prefix.
21666 libname_spec=$lt_libname_spec
21667
21668 # List of archive names. First name is the real one, the rest are links.
21669 # The last name is the one that the linker finds with -lNAME
21670 library_names_spec=$lt_library_names_spec
21671
21672 # The coded name of the library, if different from the real name.
21673 soname_spec=$lt_soname_spec
21674
21675 # Permission mode override for installation of shared libraries.
21676 install_override_mode=$lt_install_override_mode
21677
21678 # Command to use after installation of a shared archive.
21679 postinstall_cmds=$lt_postinstall_cmds
21680
21681 # Command to use after uninstallation of a shared archive.
21682 postuninstall_cmds=$lt_postuninstall_cmds
21683
21684 # Commands used to finish a libtool library installation in a directory.
21685 finish_cmds=$lt_finish_cmds
21686
21687 # As "finish_cmds", except a single script fragment to be evaled but
21688 # not shown.
21689 finish_eval=$lt_finish_eval
21690
21691 # Whether we should hardcode library paths into libraries.
21692 hardcode_into_libs=$hardcode_into_libs
21693
21694 # Compile-time system search path for libraries.
21695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21696
21697 # Detected run-time system search path for libraries.
21698 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21699
21700 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21701 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21702
21703 # Whether dlopen is supported.
21704 dlopen_support=$enable_dlopen
21705
21706 # Whether dlopen of programs is supported.
21707 dlopen_self=$enable_dlopen_self
21708
21709 # Whether dlopen of statically linked programs is supported.
21710 dlopen_self_static=$enable_dlopen_self_static
21711
21712 # Commands to strip libraries.
21713 old_striplib=$lt_old_striplib
21714 striplib=$lt_striplib
21715
21716
21717 # The linker used to build libraries.
21718 LD=$lt_LD
21719
21720 # How to create reloadable object files.
21721 reload_flag=$lt_reload_flag
21722 reload_cmds=$lt_reload_cmds
21723
21724 # Commands used to build an old-style archive.
21725 old_archive_cmds=$lt_old_archive_cmds
21726
21727 # A language specific compiler.
21728 CC=$lt_compiler
21729
21730 # Is the compiler the GNU compiler?
21731 with_gcc=$GCC
21732
21733 # Compiler flag to turn off builtin functions.
21734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21735
21736 # Additional compiler flags for building library objects.
21737 pic_flag=$lt_lt_prog_compiler_pic
21738
21739 # How to pass a linker flag through the compiler.
21740 wl=$lt_lt_prog_compiler_wl
21741
21742 # Compiler flag to prevent dynamic linking.
21743 link_static_flag=$lt_lt_prog_compiler_static
21744
21745 # Does compiler simultaneously support -c and -o options?
21746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21747
21748 # Whether or not to add -lc for building shared libraries.
21749 build_libtool_need_lc=$archive_cmds_need_lc
21750
21751 # Whether or not to disallow shared libs when runtime libs are static.
21752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21753
21754 # Compiler flag to allow reflexive dlopens.
21755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21756
21757 # Compiler flag to generate shared objects directly from archives.
21758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21759
21760 # Whether the compiler copes with passing no objects directly.
21761 compiler_needs_object=$lt_compiler_needs_object
21762
21763 # Create an old-style archive from a shared archive.
21764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21765
21766 # Create a temporary old-style archive to link instead of a shared archive.
21767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21768
21769 # Commands used to build a shared archive.
21770 archive_cmds=$lt_archive_cmds
21771 archive_expsym_cmds=$lt_archive_expsym_cmds
21772
21773 # Commands used to build a loadable module if different from building
21774 # a shared archive.
21775 module_cmds=$lt_module_cmds
21776 module_expsym_cmds=$lt_module_expsym_cmds
21777
21778 # Whether we are building with GNU ld or not.
21779 with_gnu_ld=$lt_with_gnu_ld
21780
21781 # Flag that allows shared libraries with undefined symbols to be built.
21782 allow_undefined_flag=$lt_allow_undefined_flag
21783
21784 # Flag that enforces no undefined symbols.
21785 no_undefined_flag=$lt_no_undefined_flag
21786
21787 # Flag to hardcode \$libdir into a binary during linking.
21788 # This must work even if \$libdir does not exist
21789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21790
21791 # Whether we need a single "-rpath" flag with a separated argument.
21792 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21793
21794 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21795 # DIR into the resulting binary.
21796 hardcode_direct=$hardcode_direct
21797
21798 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21799 # DIR into the resulting binary and the resulting library dependency is
21800 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21801 # library is relocated.
21802 hardcode_direct_absolute=$hardcode_direct_absolute
21803
21804 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21805 # into the resulting binary.
21806 hardcode_minus_L=$hardcode_minus_L
21807
21808 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21809 # into the resulting binary.
21810 hardcode_shlibpath_var=$hardcode_shlibpath_var
21811
21812 # Set to "yes" if building a shared library automatically hardcodes DIR
21813 # into the library and all subsequent libraries and executables linked
21814 # against it.
21815 hardcode_automatic=$hardcode_automatic
21816
21817 # Set to yes if linker adds runtime paths of dependent libraries
21818 # to runtime path list.
21819 inherit_rpath=$inherit_rpath
21820
21821 # Whether libtool must link a program against all its dependency libraries.
21822 link_all_deplibs=$link_all_deplibs
21823
21824 # Set to "yes" if exported symbols are required.
21825 always_export_symbols=$always_export_symbols
21826
21827 # The commands to list exported symbols.
21828 export_symbols_cmds=$lt_export_symbols_cmds
21829
21830 # Symbols that should not be listed in the preloaded symbols.
21831 exclude_expsyms=$lt_exclude_expsyms
21832
21833 # Symbols that must always be exported.
21834 include_expsyms=$lt_include_expsyms
21835
21836 # Commands necessary for linking programs (against libraries) with templates.
21837 prelink_cmds=$lt_prelink_cmds
21838
21839 # Commands necessary for finishing linking programs.
21840 postlink_cmds=$lt_postlink_cmds
21841
21842 # Specify filename containing input files.
21843 file_list_spec=$lt_file_list_spec
21844
21845 # How to hardcode a shared library path into an executable.
21846 hardcode_action=$hardcode_action
21847
21848 # ### END LIBTOOL CONFIG
21849
21850 _LT_EOF
21851
21852 cat <<'_LT_EOF' >> "$cfgfile"
21853
21854 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21855
21856 # func_munge_path_list VARIABLE PATH
21857 # -----------------------------------
21858 # VARIABLE is name of variable containing _space_ separated list of
21859 # directories to be munged by the contents of PATH, which is string
21860 # having a format:
21861 # "DIR[:DIR]:"
21862 # string "DIR[ DIR]" will be prepended to VARIABLE
21863 # ":DIR[:DIR]"
21864 # string "DIR[ DIR]" will be appended to VARIABLE
21865 # "DIRP[:DIRP]::[DIRA:]DIRA"
21866 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21867 # "DIRA[ DIRA]" will be appended to VARIABLE
21868 # "DIR[:DIR]"
21869 # VARIABLE will be replaced by "DIR[ DIR]"
21870 func_munge_path_list ()
21871 {
21872 case x$2 in
21873 x)
21874 ;;
21875 *:)
21876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21877 ;;
21878 x:*)
21879 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21880 ;;
21881 *::*)
21882 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21883 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21884 ;;
21885 *)
21886 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21887 ;;
21888 esac
21889 }
21890
21891
21892 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21893 func_cc_basename ()
21894 {
21895 for cc_temp in $*""; do
21896 case $cc_temp in
21897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21899 \-*) ;;
21900 *) break;;
21901 esac
21902 done
21903 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21904 }
21905
21906
21907 # ### END FUNCTIONS SHARED WITH CONFIGURE
21908
21909 _LT_EOF
21910
21911 case $host_os in
21912 aix3*)
21913 cat <<\_LT_EOF >> "$cfgfile"
21914 # AIX sometimes has problems with the GCC collect2 program. For some
21915 # reason, if we set the COLLECT_NAMES environment variable, the problems
21916 # vanish in a puff of smoke.
21917 if test set != "${COLLECT_NAMES+set}"; then
21918 COLLECT_NAMES=
21919 export COLLECT_NAMES
21920 fi
21921 _LT_EOF
21922 ;;
21923 esac
21924
21925
21926
21927 ltmain=$ac_aux_dir/ltmain.sh
21928
21929
21930 # We use sed instead of cat because bash on DJGPP gets confused if
21931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21932 # text mode, it properly converts lines to CR/LF. This bash problem
21933 # is reportedly fixed, but why not run on old versions too?
21934 $SED '$q' "$ltmain" >> "$cfgfile" \
21935 || (rm -f "$cfgfile"; exit 1)
21936
21937 mv -f "$cfgfile" "$ofile" ||
21938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21939 chmod +x "$ofile"
21940
21941 ;;
21942
21943 esac
21944 done # for ac_tag
21945
21946
21947 as_fn_exit 0
21948 _ACEOF
21949 ac_clean_files=$ac_clean_files_save
21950
21951 test $ac_write_fail = 0 ||
21952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21953
21954
21955 # configure is writing to config.log, and then calls config.status.
21956 # config.status does its own redirection, appending to config.log.
21957 # Unfortunately, on DOS this fails, as config.log is still kept open
21958 # by configure, so config.status won't be able to write to it; its
21959 # output is simply discarded. So we exec the FD to /dev/null,
21960 # effectively closing config.log, so it can be properly (re)opened and
21961 # appended to by config.status. When coming back to configure, we
21962 # need to make the FD available again.
21963 if test "$no_create" != yes; then
21964 ac_cs_success=:
21965 ac_config_status_args=
21966 test "$silent" = yes &&
21967 ac_config_status_args="$ac_config_status_args --quiet"
21968 exec 5>/dev/null
21969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21970 exec 5>>config.log
21971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21972 # would make configure fail if this is the last instruction.
21973 $ac_cs_success || as_fn_exit 1
21974 fi
21975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21977 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21978 fi
21979
21980