configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libxkbfile 1.1.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libxkbfile'
593 PACKAGE_TARNAME='libxkbfile'
594 PACKAGE_VERSION='1.1.0'
595 PACKAGE_STRING='libxkbfile 1.1.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XKBFILE_LIBS
641 XKBFILE_CFLAGS
642 MAN_SUBSTS
643 XORG_MAN_PAGE
644 ADMIN_MAN_DIR
645 DRIVER_MAN_DIR
646 MISC_MAN_DIR
647 FILE_MAN_DIR
648 LIB_MAN_DIR
649 APP_MAN_DIR
650 ADMIN_MAN_SUFFIX
651 DRIVER_MAN_SUFFIX
652 MISC_MAN_SUFFIX
653 FILE_MAN_SUFFIX
654 LIB_MAN_SUFFIX
655 APP_MAN_SUFFIX
656 INSTALL_CMD
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 CHANGELOG_CMD
661 STRICT_CFLAGS
662 CWARNFLAGS
663 BASE_CFLAGS
664 CPP
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_silent_rules
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 with_aix_soname
786 enable_dependency_tracking
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 enable_selective_werror
791 enable_strict_compilation
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 LT_SYS_LIBRARY_PATH
802 CPP
803 PKG_CONFIG
804 PKG_CONFIG_PATH
805 PKG_CONFIG_LIBDIR
806 XKBFILE_CFLAGS
807 XKBFILE_LIBS'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures libxkbfile 1.1.0 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of libxkbfile 1.1.0:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --disable-selective-werror
1438 Turn off selective compiler errors. (default:
1439 enabled)
1440 --enable-strict-compilation
1441 Enable all warnings from compiler and make them
1442 errors (default: disabled)
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-aix-soname=aix|svr4|both
1450 shared library versioning (aka "SONAME") variant to
1451 provide on AIX, [default=aix].
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1454 compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 LT_SYS_LIBRARY_PATH
1465 User-defined run-time library search path.
1466 CPP C preprocessor
1467 PKG_CONFIG path to pkg-config utility
1468 PKG_CONFIG_PATH
1469 directories to add to pkg-config's search path
1470 PKG_CONFIG_LIBDIR
1471 path overriding pkg-config's built-in search path
1472 XKBFILE_CFLAGS
1473 C compiler flags for XKBFILE, overriding pkg-config
1474 XKBFILE_LIBS
1475 linker flags for XKBFILE, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 libxkbfile configure 1.1.0
1544 generated by GNU Autoconf 2.69
1545
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_link ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 test -x conftest$ac_exeext
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_link
1640
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660 else
1661 eval "$3=no"
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 fi
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_compile
1671
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_cpp ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } > conftest.i && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_cpp
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744 fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1767
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1772
1773 #ifdef __STDC__
1774 # include <limits.h>
1775 #else
1776 # include <assert.h>
1777 #endif
1778
1779 #undef $2
1780
1781 /* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1784 #ifdef __cplusplus
1785 extern "C"
1786 #endif
1787 char $2 ();
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined __stub_$2 || defined __stub___$2
1792 choke me
1793 #endif
1794
1795 int
1796 main ()
1797 {
1798 return $2 ();
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_link "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_func
1817
1818 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1819 # ---------------------------------------------
1820 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_decl ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 as_decl_name=`echo $2|sed 's/ *(.*//'`
1826 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1828 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 int
1836 main ()
1837 {
1838 #ifndef $as_decl_name
1839 #ifdef __cplusplus
1840 (void) $as_decl_use;
1841 #else
1842 (void) $as_decl_name;
1843 #endif
1844 #endif
1845
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_decl
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1866
1867 It was created by libxkbfile $as_me 1.1.0, which was
1868 generated by GNU Autoconf 2.69. Invocation command line was
1869
1870 $ $0 $@
1871
1872 _ACEOF
1873 exec 5>>config.log
1874 {
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1879
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896
1897 _ASUNAME
1898
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1975 {
1976 echo
1977
1978 $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1983 (
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2006 *)
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 ;;
2009 esac |
2010 sort
2011 )
2012 echo
2013
2014 $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2017 echo
2018 for ac_var in $ac_subst_vars
2019 do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 esac
2024 $as_echo "$ac_var='\''$ac_val'\''"
2025 done | sort
2026 echo
2027
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2032 echo
2033 for ac_var in $ac_subst_files
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042 fi
2043
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##"
2048 echo
2049 cat confdefs.h
2050 echo
2051 fi
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 $as_echo "/* confdefs.h */" > confdefs.h
2069
2070 # Predefined preprocessor variables.
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2107 esac
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2111 else
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2114 fi
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2116 do
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2122 . "$ac_site_file" \
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2127 fi
2128 done
2129
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2136 case $cache_file in
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2139 esac
2140 fi
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2144 >$cache_file
2145 fi
2146
2147 # Check that the precious variables saved in the cache have kept the same
2148 # value.
2149 ac_cache_corrupted=false
2150 for ac_var in $ac_precious_vars; do
2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152 eval ac_new_set=\$ac_env_${ac_var}_set
2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154 eval ac_new_val=\$ac_env_${ac_var}_value
2155 case $ac_old_set,$ac_new_set in
2156 set,)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,set)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,);;
2165 *)
2166 if test "x$ac_old_val" != "x$ac_new_val"; then
2167 # differences in whitespace do not lead to failure.
2168 ac_old_val_w=`echo x $ac_old_val`
2169 ac_new_val_w=`echo x $ac_new_val`
2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2173 ac_cache_corrupted=:
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2177 eval $ac_var=\$ac_old_val
2178 fi
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 fi;;
2184 esac
2185 # Pass precious variables to config.status.
2186 if test "$ac_new_set" = set; then
2187 case $ac_new_val in
2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 *) ac_arg=$ac_var=$ac_new_val ;;
2190 esac
2191 case " $ac_configure_args " in
2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2194 esac
2195 fi
2196 done
2197 if $ac_cache_corrupted; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203 fi
2204 ## -------------------- ##
2205 ## Main body of script. ##
2206 ## -------------------- ##
2207
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213
2214
2215
2216 ac_config_headers="$ac_config_headers config.h"
2217
2218
2219 # Initialize Automake
2220 am__api_version='1.15'
2221
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 if test -f "$ac_dir/install-sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2227 break
2228 elif test -f "$ac_dir/install.sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2231 break
2232 elif test -f "$ac_dir/shtool"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2235 break
2236 fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249
2250
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2257 # AIX /bin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278 ./ | .// | /[cC]/* | \
2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281 /usr/ucb/* ) ;;
2282 *)
2283 # OSF1 and SCO ODT 3.0 have their own names for install.
2284 # Don't use installbsd from OSF since it installs stuff as root
2285 # by default.
2286 for ac_prog in ginstall scoinst install; do
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2289 if test $ac_prog = install &&
2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # AIX install. It has an incompatible calling convention.
2292 :
2293 elif test $ac_prog = install &&
2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # program-specific install script used by HP pwplus--don't use.
2296 :
2297 else
2298 rm -rf conftest.one conftest.two conftest.dir
2299 echo one > conftest.one
2300 echo two > conftest.two
2301 mkdir conftest.dir
2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303 test -s conftest.one && test -s conftest.two &&
2304 test -s conftest.dir/conftest.one &&
2305 test -s conftest.dir/conftest.two
2306 then
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308 break 3
2309 fi
2310 fi
2311 fi
2312 done
2313 done
2314 ;;
2315 esac
2316
2317 done
2318 IFS=$as_save_IFS
2319
2320 rm -rf conftest.one conftest.two conftest.dir
2321
2322 fi
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2325 else
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 INSTALL=$ac_install_sh
2331 fi
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2335
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 # Reject unsafe characters in $srcdir or the absolute working directory
2347 # name. Accept space and tab only in the latter.
2348 am_lf='
2349 '
2350 case `pwd` in
2351 *[\\\"\#\$\&\'\`$am_lf]*)
2352 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2353 esac
2354 case $srcdir in
2355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2356 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2357 esac
2358
2359 # Do 'set' in a subshell so we don't clobber the current shell's
2360 # arguments. Must try -L first in case configure is actually a
2361 # symlink; some systems play weird games with the mod time of symlinks
2362 # (eg FreeBSD returns the mod time of the symlink's containing
2363 # directory).
2364 if (
2365 am_has_slept=no
2366 for am_try in 1 2; do
2367 echo "timestamp, slept: $am_has_slept" > conftest.file
2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369 if test "$*" = "X"; then
2370 # -L didn't work.
2371 set X `ls -t "$srcdir/configure" conftest.file`
2372 fi
2373 if test "$*" != "X $srcdir/configure conftest.file" \
2374 && test "$*" != "X conftest.file $srcdir/configure"; then
2375
2376 # If neither matched, then we have a broken ls. This can happen
2377 # if, for instance, CONFIG_SHELL is bash and it inherits a
2378 # broken ls alias from the environment. This has actually
2379 # happened. Such a system could not be considered "sane".
2380 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2381 alias in your environment" "$LINENO" 5
2382 fi
2383 if test "$2" = conftest.file || test $am_try -eq 2; then
2384 break
2385 fi
2386 # Just in case.
2387 sleep 1
2388 am_has_slept=yes
2389 done
2390 test "$2" = conftest.file
2391 )
2392 then
2393 # Ok.
2394 :
2395 else
2396 as_fn_error $? "newly created file is older than distributed files!
2397 Check your system clock" "$LINENO" 5
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2400 $as_echo "yes" >&6; }
2401 # If we didn't sleep, we still need to ensure time stamps of config.status and
2402 # generated files are strictly newer.
2403 am_sleep_pid=
2404 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2405 ( sleep 1 ) &
2406 am_sleep_pid=$!
2407 fi
2408
2409 rm -f conftest.file
2410
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421 # Expand $ac_aux_dir to an absolute path.
2422 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2423
2424 if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2428 *)
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2431 fi
2432 # Use eval to expand $SHELL
2433 if eval "$MISSING --is-lightweight"; then
2434 am_missing_run="$MISSING "
2435 else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2438 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2439 fi
2440
2441 if test x"${install_sh+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2445 *)
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2448 fi
2449
2450 # Installed binaries are usually stripped using 'strip' when the user
2451 # run "make install-strip". However 'strip' might not be the right
2452 # tool to use in cross-compilation environments, therefore Automake
2453 # will honor the 'STRIP' environment variable to overrule this program.
2454 if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 STRIP=$ac_cv_prog_STRIP
2484 if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486 $as_echo "$STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492
2493 fi
2494 if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497 set dummy strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524 if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526 $as_echo "$ac_ct_STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 STRIP=$ac_ct_STRIP
2542 fi
2543 else
2544 STRIP="$ac_cv_prog_STRIP"
2545 fi
2546
2547 fi
2548 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552 if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2587 fi
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590 $as_echo "$MKDIR_P" >&6; }
2591
2592 for ac_prog in gawk mawk nawk awk
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_AWK+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$AWK"; then
2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_AWK="$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 AWK=$ac_cv_prog_AWK
2622 if test -n "$AWK"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624 $as_echo "$AWK" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 test -n "$AWK" && break
2632 done
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636 set x ${MAKE-make}
2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat >conftest.make <<\_ACEOF
2642 SHELL = /bin/sh
2643 all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645 _ACEOF
2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652 esac
2653 rm -f conftest.make
2654 fi
2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 SET_MAKE=
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663 fi
2664
2665 rm -rf .tst 2>/dev/null
2666 mkdir .tst 2>/dev/null
2667 if test -d .tst; then
2668 am__leading_dot=.
2669 else
2670 am__leading_dot=_
2671 fi
2672 rmdir .tst 2>/dev/null
2673
2674 # Check whether --enable-silent-rules was given.
2675 if test "${enable_silent_rules+set}" = set; then :
2676 enableval=$enable_silent_rules;
2677 fi
2678
2679 case $enable_silent_rules in # (((
2680 yes) AM_DEFAULT_VERBOSITY=0;;
2681 no) AM_DEFAULT_VERBOSITY=1;;
2682 *) AM_DEFAULT_VERBOSITY=1;;
2683 esac
2684 am_make=${MAKE-make}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2686 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2687 if ${am_cv_make_support_nested_variables+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if $as_echo 'TRUE=$(BAR$(V))
2691 BAR0=false
2692 BAR1=true
2693 V=1
2694 am__doit:
2695 @$(TRUE)
2696 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2697 am_cv_make_support_nested_variables=yes
2698 else
2699 am_cv_make_support_nested_variables=no
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2703 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2704 if test $am_cv_make_support_nested_variables = yes; then
2705 AM_V='$(V)'
2706 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2707 else
2708 AM_V=$AM_DEFAULT_VERBOSITY
2709 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2710 fi
2711 AM_BACKSLASH='\'
2712
2713 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2715 # is not polluted with repeated "-I."
2716 am__isrc=' -I$(srcdir)'
2717 # test to see if srcdir already configured
2718 if test -f $srcdir/config.status; then
2719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2720 fi
2721 fi
2722
2723 # test whether we have cygpath
2724 if test -z "$CYGPATH_W"; then
2725 if (cygpath --version) >/dev/null 2>/dev/null; then
2726 CYGPATH_W='cygpath -w'
2727 else
2728 CYGPATH_W=echo
2729 fi
2730 fi
2731
2732
2733 # Define the identity of the package.
2734 PACKAGE='libxkbfile'
2735 VERSION='1.1.0'
2736
2737
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE "$PACKAGE"
2740 _ACEOF
2741
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define VERSION "$VERSION"
2745 _ACEOF
2746
2747 # Some tools Automake needs.
2748
2749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763 # For better backward compatibility. To be removed once Automake 1.9.x
2764 # dies out for good. For more background, see:
2765 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2767 mkdir_p='$(MKDIR_P)'
2768
2769 # We need awk for the "check" target (and possibly the TAP driver). The
2770 # system "awk" is bad on some platforms.
2771 # Always define AMTAR for backward compatibility. Yes, it's still used
2772 # in the wild :-( We should find a proper way to deprecate it ...
2773 AMTAR='$${TAR-tar}'
2774
2775
2776 # We'll loop over all known methods to create a tar archive until one works.
2777 _am_tools='gnutar pax cpio none'
2778
2779 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2780
2781
2782
2783
2784
2785
2786 # POSIX will say in a future version that running "rm -f" with no argument
2787 # is OK; and we want to be able to make that assumption in our Makefile
2788 # recipes. So use an aggressive probe to check that the usage we want is
2789 # actually supported "in the wild" to an acceptable degree.
2790 # See automake bug#10828.
2791 # To make any issue more visible, cause the running configure to be aborted
2792 # by default if the 'rm' program in use doesn't match our expectations; the
2793 # user can still override this though.
2794 if rm -f && rm -fr && rm -rf; then : OK; else
2795 cat >&2 <<'END'
2796 Oops!
2797
2798 Your 'rm' program seems unable to run without file operands specified
2799 on the command line, even when the '-f' option is present. This is contrary
2800 to the behaviour of most rm programs out there, and not conforming with
2801 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2802
2803 Please tell bug-automake@gnu.org about your system, including the value
2804 of your $PATH and any error possibly output before this message. This
2805 can help us improve future automake versions.
2806
2807 END
2808 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2809 echo 'Configuration will proceed anyway, since you have set the' >&2
2810 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2811 echo >&2
2812 else
2813 cat >&2 <<'END'
2814 Aborting the configuration process, to ensure you take notice of the issue.
2815
2816 You can download and install GNU coreutils to get an 'rm' implementation
2817 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2818
2819 If you want to complete the configuration process using your problematic
2820 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2821 to "yes", and re-run configure.
2822
2823 END
2824 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2825 fi
2826 fi
2827
2828
2829 # Initialize libtool
2830 case `pwd` in
2831 *\ * | *\ *)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2833 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2834 esac
2835
2836
2837
2838 macro_version='2.4.6'
2839 macro_revision='2.4.6'
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853 ltmain=$ac_aux_dir/ltmain.sh
2854
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if ${ac_cv_build+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2878 esac
2879 build=$ac_cv_build
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_build
2882 shift
2883 build_cpu=$1
2884 build_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 build_os=$*
2889 IFS=$ac_save_IFS
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if ${ac_cv_host+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test "x$host_alias" = x; then
2899 ac_cv_host=$ac_cv_build
2900 else
2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2903 fi
2904
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2908 case $ac_cv_host in
2909 *-*-*) ;;
2910 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2911 esac
2912 host=$ac_cv_host
2913 ac_save_IFS=$IFS; IFS='-'
2914 set x $ac_cv_host
2915 shift
2916 host_cpu=$1
2917 host_vendor=$2
2918 shift; shift
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2921 host_os=$*
2922 IFS=$ac_save_IFS
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2924
2925
2926 # Backslashify metacharacters that are still active within
2927 # double-quoted strings.
2928 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2929
2930 # Same as above, but do not quote variable references.
2931 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2932
2933 # Sed substitution to delay expansion of an escaped shell variable in a
2934 # double_quote_subst'ed string.
2935 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2936
2937 # Sed substitution to delay expansion of an escaped single quote.
2938 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2939
2940 # Sed substitution to avoid accidental globbing in evaled expressions
2941 no_glob_subst='s/\*/\\\*/g'
2942
2943 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2946
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2948 $as_echo_n "checking how to print strings... " >&6; }
2949 # Test print first, because it will be a builtin if present.
2950 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2952 ECHO='print -r --'
2953 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2954 ECHO='printf %s\n'
2955 else
2956 # Use this function as a fallback that always works.
2957 func_fallback_echo ()
2958 {
2959 eval 'cat <<_LTECHO_EOF
2960 $1
2961 _LTECHO_EOF'
2962 }
2963 ECHO='func_fallback_echo'
2964 fi
2965
2966 # func_echo_all arg...
2967 # Invoke $ECHO with all args, space-separated.
2968 func_echo_all ()
2969 {
2970 $ECHO ""
2971 }
2972
2973 case $ECHO in
2974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2975 $as_echo "printf" >&6; } ;;
2976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2977 $as_echo "print -r" >&6; } ;;
2978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2979 $as_echo "cat" >&6; } ;;
2980 esac
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995 DEPDIR="${am__leading_dot}deps"
2996
2997 ac_config_commands="$ac_config_commands depfiles"
2998
2999
3000 am_make=${MAKE-make}
3001 cat > confinc << 'END'
3002 am__doit:
3003 @echo this is the am__doit target
3004 .PHONY: am__doit
3005 END
3006 # If we don't find an include directive, just comment out the code.
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3009 am__include="#"
3010 am__quote=
3011 _am_result=none
3012 # First try GNU make style include.
3013 echo "include confinc" > confmf
3014 # Ignore all kinds of additional output from 'make'.
3015 case `$am_make -s -f confmf 2> /dev/null` in #(
3016 *the\ am__doit\ target*)
3017 am__include=include
3018 am__quote=
3019 _am_result=GNU
3020 ;;
3021 esac
3022 # Now try BSD make style include.
3023 if test "$am__include" = "#"; then
3024 echo '.include "confinc"' > confmf
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3027 am__include=.include
3028 am__quote="\""
3029 _am_result=BSD
3030 ;;
3031 esac
3032 fi
3033
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3036 $as_echo "$_am_result" >&6; }
3037 rm -f confinc confmf
3038
3039 # Check whether --enable-dependency-tracking was given.
3040 if test "${enable_dependency_tracking+set}" = set; then :
3041 enableval=$enable_dependency_tracking;
3042 fi
3043
3044 if test "x$enable_dependency_tracking" != xno; then
3045 am_depcomp="$ac_aux_dir/depcomp"
3046 AMDEPBACKSLASH='\'
3047 am__nodep='_no'
3048 fi
3049 if test "x$enable_dependency_tracking" != xno; then
3050 AMDEP_TRUE=
3051 AMDEP_FALSE='#'
3052 else
3053 AMDEP_TRUE='#'
3054 AMDEP_FALSE=
3055 fi
3056
3057
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 fi
3102 if test -z "$ac_cv_prog_CC"; then
3103 ac_ct_CC=$CC
3104 # Extract the first word of "gcc", so it can be a program name with args.
3105 set dummy gcc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="gcc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140 if test "x$ac_ct_CC" = x; then
3141 CC=""
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 CC=$ac_ct_CC
3150 fi
3151 else
3152 CC="$ac_cv_prog_CC"
3153 fi
3154
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}cc; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_CC+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_CC="${ac_tool_prefix}cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 fi
3195 fi
3196 if test -z "$CC"; then
3197 # Extract the first word of "cc", so it can be a program name with args.
3198 set dummy cc; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 ac_prog_rejected=no
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3216 ac_prog_rejected=yes
3217 continue
3218 fi
3219 ac_cv_prog_CC="cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 if test $ac_prog_rejected = yes; then
3228 # We found a bogon in the path, so make sure we never use it.
3229 set dummy $ac_cv_prog_CC
3230 shift
3231 if test $# != 0; then
3232 # We chose a different compiler from the bogus one.
3233 # However, it has the same basename, so the bogon will be chosen
3234 # first if we set CC to just the basename; use the full file name.
3235 shift
3236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3237 fi
3238 fi
3239 fi
3240 fi
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 fi
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in cl.exe
3255 do
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 test -n "$CC" && break
3294 done
3295 fi
3296 if test -z "$CC"; then
3297 ac_ct_CC=$CC
3298 for ac_prog in cl.exe
3299 do
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$ac_ct_CC"; then
3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_CC="$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 $as_echo "$ac_ct_CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 test -n "$ac_ct_CC" && break
3338 done
3339
3340 if test "x$ac_ct_CC" = x; then
3341 CC=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 CC=$ac_ct_CC
3350 fi
3351 fi
3352
3353 fi
3354
3355
3356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "no acceptable C compiler found in \$PATH
3359 See \`config.log' for more details" "$LINENO" 5; }
3360
3361 # Provide some information about the compiler.
3362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3363 set X $ac_compile
3364 ac_compiler=$2
3365 for ac_option in --version -v -V -qversion; do
3366 { { ac_try="$ac_compiler $ac_option >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3374 ac_status=$?
3375 if test -s conftest.err; then
3376 sed '10a\
3377 ... rest of stderr output deleted ...
3378 10q' conftest.err >conftest.er1
3379 cat conftest.er1 >&5
3380 fi
3381 rm -f conftest.er1 conftest.err
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3384 done
3385
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 ac_clean_files_save=$ac_clean_files
3398 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3399 # Try to create an executable without -o first, disregard a.out.
3400 # It will help us diagnose broken compilers, and finding out an intuition
3401 # of exeext.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3403 $as_echo_n "checking whether the C compiler works... " >&6; }
3404 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3405
3406 # The possible output files:
3407 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3408
3409 ac_rmfiles=
3410 for ac_file in $ac_files
3411 do
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 esac
3416 done
3417 rm -f $ac_rmfiles
3418
3419 if { { ac_try="$ac_link_default"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link_default") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3433 # so that the user can short-circuit this test for compilers unknown to
3434 # Autoconf.
3435 for ac_file in $ac_files ''
3436 do
3437 test -f "$ac_file" || continue
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3440 ;;
3441 [ab].out )
3442 # We found the default executable, but exeext='' is most
3443 # certainly right.
3444 break;;
3445 *.* )
3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3447 then :; else
3448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 fi
3450 # We set ac_cv_exeext here because the later test for it is not
3451 # safe: cross compilers may not add the suffix if given an `-o'
3452 # argument, so we may need to know it at that point already.
3453 # Even if this section looks crufty: it has the advantage of
3454 # actually working.
3455 break;;
3456 * )
3457 break;;
3458 esac
3459 done
3460 test "$ac_cv_exeext" = no && ac_cv_exeext=
3461
3462 else
3463 ac_file=''
3464 fi
3465 if test -z "$ac_file"; then :
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error 77 "C compiler cannot create executables
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480 $as_echo_n "checking for C compiler default output file name... " >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482 $as_echo "$ac_file" >&6; }
3483 ac_exeext=$ac_cv_exeext
3484
3485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488 $as_echo_n "checking for suffix of executables... " >&6; }
3489 if { { ac_try="$ac_link"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3502 # work properly (i.e., refer to `conftest.exe'), while it won't with
3503 # `rm'.
3504 for ac_file in conftest.exe conftest conftest.*; do
3505 test -f "$ac_file" || continue
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 break;;
3510 * ) break;;
3511 esac
3512 done
3513 else
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 rm -f conftest conftest$ac_cv_exeext
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521 $as_echo "$ac_cv_exeext" >&6; }
3522
3523 rm -f conftest.$ac_ext
3524 EXEEXT=$ac_cv_exeext
3525 ac_exeext=$EXEEXT
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #include <stdio.h>
3529 int
3530 main ()
3531 {
3532 FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 ac_clean_files="$ac_clean_files conftest.out"
3540 # Check that the compiler produces executables we can run. If not, either
3541 # the compiler is broken, or we cross compile.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543 $as_echo_n "checking whether we are cross compiling... " >&6; }
3544 if test "$cross_compiling" != yes; then
3545 { { ac_try="$ac_link"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 if { ac_try='./conftest$ac_cv_exeext'
3557 { { case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_try") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; }; then
3567 cross_compiling=no
3568 else
3569 if test "$cross_compiling" = maybe; then
3570 cross_compiling=yes
3571 else
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 fi
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3582
3583 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3584 ac_clean_files=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586 $as_echo_n "checking for suffix of object files... " >&6; }
3587 if ${ac_cv_objext+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.o conftest.obj
3602 if { { ac_try="$ac_compile"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compile") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 break;;
3619 esac
3620 done
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot compute suffix of object files: cannot compile
3628 See \`config.log' for more details" "$LINENO" 5; }
3629 fi
3630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633 $as_echo "$ac_cv_objext" >&6; }
3634 OBJEXT=$ac_cv_objext
3635 ac_objext=$OBJEXT
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3637 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3638 if ${ac_cv_c_compiler_gnu+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647 #ifndef __GNUC__
3648 choke me
3649 #endif
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_compiler_gnu=yes
3657 else
3658 ac_compiler_gnu=no
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3667 GCC=yes
3668 else
3669 GCC=
3670 fi
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3674 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3675 if ${ac_cv_prog_cc_g+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_g=yes
3695 else
3696 CFLAGS=""
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709
3710 else
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3712 CFLAGS="-g"
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_g=yes
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 ac_c_werror_flag=$ac_save_c_werror_flag
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3735 $as_echo "$ac_cv_prog_cc_g" >&6; }
3736 if test "$ac_test_CFLAGS" = set; then
3737 CFLAGS=$ac_save_CFLAGS
3738 elif test $ac_cv_prog_cc_g = yes; then
3739 if test "$GCC" = yes; then
3740 CFLAGS="-g -O2"
3741 else
3742 CFLAGS="-g"
3743 fi
3744 else
3745 if test "$GCC" = yes; then
3746 CFLAGS="-O2"
3747 else
3748 CFLAGS=
3749 fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753 if ${ac_cv_prog_cc_c89+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_cv_prog_cc_c89=no
3757 ac_save_CC=$CC
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <stdarg.h>
3761 #include <stdio.h>
3762 struct stat;
3763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3764 struct buf { int x; };
3765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766 static char *e (p, i)
3767 char **p;
3768 int i;
3769 {
3770 return p[i];
3771 }
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3773 {
3774 char *s;
3775 va_list v;
3776 va_start (v,p);
3777 s = g (p, va_arg (v,int));
3778 va_end (v);
3779 return s;
3780 }
3781
3782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3783 function prototypes and stuff, but not '\xHH' hex character constants.
3784 These don't provoke an error unfortunately, instead are silently treated
3785 as 'x'. The following induces an error, until -std is added to get
3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3787 array size at least. It's necessary to write '\x00'==0 to get something
3788 that's true only with -std. */
3789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790
3791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792 inside strings and character constants. */
3793 #define FOO(x) 'x'
3794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795
3796 int test (int i, double x);
3797 struct s1 {int (*f) (int a);};
3798 struct s2 {int (*f) (double a);};
3799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 int argc;
3801 char **argv;
3802 int
3803 main ()
3804 {
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 do
3813 CC="$ac_save_CC $ac_arg"
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_c89=$ac_arg
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext
3818 test "x$ac_cv_prog_cc_c89" != "xno" && break
3819 done
3820 rm -f conftest.$ac_ext
3821 CC=$ac_save_CC
3822
3823 fi
3824 # AC_CACHE_VAL
3825 case "x$ac_cv_prog_cc_c89" in
3826 x)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3828 $as_echo "none needed" >&6; } ;;
3829 xno)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831 $as_echo "unsupported" >&6; } ;;
3832 *)
3833 CC="$CC $ac_cv_prog_cc_c89"
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3836 esac
3837 if test "x$ac_cv_prog_cc_c89" != xno; then :
3838
3839 fi
3840
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3853 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3854 if ${am_cv_prog_cc_c_o+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 # Make sure it works both with $CC and with simple cc.
3869 # Following AC_PROG_CC_C_O, we do the test twice because some
3870 # compilers refuse to overwrite an existing .o file with -o,
3871 # though they will create one.
3872 am_cv_prog_cc_c_o=yes
3873 for am_i in 1 2; do
3874 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3875 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } \
3879 && test -f conftest2.$ac_objext; then
3880 : OK
3881 else
3882 am_cv_prog_cc_c_o=no
3883 break
3884 fi
3885 done
3886 rm -f core conftest*
3887 unset am_i
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3890 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3891 if test "$am_cv_prog_cc_c_o" != yes; then
3892 # Losing compiler, so override with the script.
3893 # FIXME: It is wrong to rewrite CC.
3894 # But if we don't then we get into trouble of one sort or another.
3895 # A longer-term fix would be to have automake use am__CC in this case,
3896 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3897 CC="$am_aux_dir/compile $CC"
3898 fi
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905
3906 depcc="$CC" am_compiler_list=
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3909 $as_echo_n "checking dependency style of $depcc... " >&6; }
3910 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3914 # We make a subdir and do the tests there. Otherwise we can end up
3915 # making bogus files that we don't know about and never remove. For
3916 # instance it was reported that on HP-UX the gcc test will end up
3917 # making a dummy file named 'D' -- because '-MD' means "put the output
3918 # in D".
3919 rm -rf conftest.dir
3920 mkdir conftest.dir
3921 # Copy depcomp to subdir because otherwise we won't find it if we're
3922 # using a relative directory.
3923 cp "$am_depcomp" conftest.dir
3924 cd conftest.dir
3925 # We will build objects and dependencies in a subdirectory because
3926 # it helps to detect inapplicable dependency modes. For instance
3927 # both Tru64's cc and ICC support -MD to output dependencies as a
3928 # side effect of compilation, but ICC will put the dependencies in
3929 # the current directory while Tru64 will put them in the object
3930 # directory.
3931 mkdir sub
3932
3933 am_cv_CC_dependencies_compiler_type=none
3934 if test "$am_compiler_list" = ""; then
3935 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3936 fi
3937 am__universal=false
3938 case " $depcc " in #(
3939 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3940 esac
3941
3942 for depmode in $am_compiler_list; do
3943 # Setup a source with many dependencies, because some compilers
3944 # like to wrap large dependency lists on column 80 (with \), and
3945 # we should not choose a depcomp mode which is confused by this.
3946 #
3947 # We need to recreate these files for each test, as the compiler may
3948 # overwrite some of them when testing with obscure command lines.
3949 # This happens at least with the AIX C compiler.
3950 : > sub/conftest.c
3951 for i in 1 2 3 4 5 6; do
3952 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3953 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3954 # Solaris 10 /bin/sh.
3955 echo '/* dummy */' > sub/conftst$i.h
3956 done
3957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3958
3959 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3960 # mode. It turns out that the SunPro C++ compiler does not properly
3961 # handle '-M -o', and we need to detect this. Also, some Intel
3962 # versions had trouble with output in subdirs.
3963 am__obj=sub/conftest.${OBJEXT-o}
3964 am__minus_obj="-o $am__obj"
3965 case $depmode in
3966 gcc)
3967 # This depmode causes a compiler race in universal mode.
3968 test "$am__universal" = false || continue
3969 ;;
3970 nosideeffect)
3971 # After this tag, mechanisms are not by side-effect, so they'll
3972 # only be used when explicitly requested.
3973 if test "x$enable_dependency_tracking" = xyes; then
3974 continue
3975 else
3976 break
3977 fi
3978 ;;
3979 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3980 # This compiler won't grok '-c -o', but also, the minuso test has
3981 # not run yet. These depmodes are late enough in the game, and
3982 # so weak that their functioning should not be impacted.
3983 am__obj=conftest.${OBJEXT-o}
3984 am__minus_obj=
3985 ;;
3986 none) break ;;
3987 esac
3988 if depmode=$depmode \
3989 source=sub/conftest.c object=$am__obj \
3990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3991 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3992 >/dev/null 2>conftest.err &&
3993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3997 # icc doesn't choke on unknown options, it will just issue warnings
3998 # or remarks (even with -Werror). So we grep stderr for any message
3999 # that says an option was ignored or not supported.
4000 # When given -MP, icc 7.0 and 7.1 complain thusly:
4001 # icc: Command line warning: ignoring option '-M'; no argument required
4002 # The diagnosis changed in icc 8.0:
4003 # icc: Command line remark: option '-MP' not supported
4004 if (grep 'ignoring option' conftest.err ||
4005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4006 am_cv_CC_dependencies_compiler_type=$depmode
4007 break
4008 fi
4009 fi
4010 done
4011
4012 cd ..
4013 rm -rf conftest.dir
4014 else
4015 am_cv_CC_dependencies_compiler_type=none
4016 fi
4017
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4020 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4021 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4022
4023 if
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCC_TRUE=
4027 am__fastdepCC_FALSE='#'
4028 else
4029 am__fastdepCC_TRUE='#'
4030 am__fastdepCC_FALSE=
4031 fi
4032
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4035 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4036 if ${ac_cv_path_SED+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4040 for ac_i in 1 2 3 4 5 6 7; do
4041 ac_script="$ac_script$as_nl$ac_script"
4042 done
4043 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4044 { ac_script=; unset ac_script;}
4045 if test -z "$SED"; then
4046 ac_path_SED_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in sed gsed; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4056 as_fn_executable_p "$ac_path_SED" || continue
4057 # Check for GNU ac_path_SED and select it if it is found.
4058 # Check for GNU $ac_path_SED
4059 case `"$ac_path_SED" --version 2>&1` in
4060 *GNU*)
4061 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4062 *)
4063 ac_count=0
4064 $as_echo_n 0123456789 >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo '' >> "conftest.nl"
4071 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
4074 if test $ac_count -gt ${ac_path_SED_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_SED="$ac_path_SED"
4077 ac_path_SED_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083 esac
4084
4085 $ac_path_SED_found && break 3
4086 done
4087 done
4088 done
4089 IFS=$as_save_IFS
4090 if test -z "$ac_cv_path_SED"; then
4091 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4092 fi
4093 else
4094 ac_cv_path_SED=$SED
4095 fi
4096
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4099 $as_echo "$ac_cv_path_SED" >&6; }
4100 SED="$ac_cv_path_SED"
4101 rm -f conftest.sed
4102
4103 test -z "$SED" && SED=sed
4104 Xsed="$SED -e 1s/^X//"
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4117 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4118 if ${ac_cv_path_GREP+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -z "$GREP"; then
4122 ac_path_GREP_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126 do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in grep ggrep; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4132 as_fn_executable_p "$ac_path_GREP" || continue
4133 # Check for GNU ac_path_GREP and select it if it is found.
4134 # Check for GNU $ac_path_GREP
4135 case `"$ac_path_GREP" --version 2>&1` in
4136 *GNU*)
4137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4138 *)
4139 ac_count=0
4140 $as_echo_n 0123456789 >"conftest.in"
4141 while :
4142 do
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 $as_echo 'GREP' >> "conftest.nl"
4147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_GREP="$ac_path_GREP"
4153 ac_path_GREP_max=$ac_count
4154 fi
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4157 done
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161 $ac_path_GREP_found && break 3
4162 done
4163 done
4164 done
4165 IFS=$as_save_IFS
4166 if test -z "$ac_cv_path_GREP"; then
4167 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4168 fi
4169 else
4170 ac_cv_path_GREP=$GREP
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4175 $as_echo "$ac_cv_path_GREP" >&6; }
4176 GREP="$ac_cv_path_GREP"
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4180 $as_echo_n "checking for egrep... " >&6; }
4181 if ${ac_cv_path_EGREP+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4185 then ac_cv_path_EGREP="$GREP -E"
4186 else
4187 if test -z "$EGREP"; then
4188 ac_path_EGREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 as_fn_executable_p "$ac_path_EGREP" || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201 case `"$ac_path_EGREP" --version 2>&1` in
4202 *GNU*)
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204 *)
4205 ac_count=0
4206 $as_echo_n 0123456789 >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4226
4227 $ac_path_EGREP_found && break 3
4228 done
4229 done
4230 done
4231 IFS=$as_save_IFS
4232 if test -z "$ac_cv_path_EGREP"; then
4233 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 fi
4235 else
4236 ac_cv_path_EGREP=$EGREP
4237 fi
4238
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4242 $as_echo "$ac_cv_path_EGREP" >&6; }
4243 EGREP="$ac_cv_path_EGREP"
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4247 $as_echo_n "checking for fgrep... " >&6; }
4248 if ${ac_cv_path_FGREP+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4252 then ac_cv_path_FGREP="$GREP -F"
4253 else
4254 if test -z "$FGREP"; then
4255 ac_path_FGREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in fgrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4265 as_fn_executable_p "$ac_path_FGREP" || continue
4266 # Check for GNU ac_path_FGREP and select it if it is found.
4267 # Check for GNU $ac_path_FGREP
4268 case `"$ac_path_FGREP" --version 2>&1` in
4269 *GNU*)
4270 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4271 *)
4272 ac_count=0
4273 $as_echo_n 0123456789 >"conftest.in"
4274 while :
4275 do
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 $as_echo 'FGREP' >> "conftest.nl"
4280 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 as_fn_arith $ac_count + 1 && ac_count=$as_val
4283 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_FGREP="$ac_path_FGREP"
4286 ac_path_FGREP_max=$ac_count
4287 fi
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4290 done
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4293
4294 $ac_path_FGREP_found && break 3
4295 done
4296 done
4297 done
4298 IFS=$as_save_IFS
4299 if test -z "$ac_cv_path_FGREP"; then
4300 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301 fi
4302 else
4303 ac_cv_path_FGREP=$FGREP
4304 fi
4305
4306 fi
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4309 $as_echo "$ac_cv_path_FGREP" >&6; }
4310 FGREP="$ac_cv_path_FGREP"
4311
4312
4313 test -z "$GREP" && GREP=grep
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333 # Check whether --with-gnu-ld was given.
4334 if test "${with_gnu_ld+set}" = set; then :
4335 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4336 else
4337 with_gnu_ld=no
4338 fi
4339
4340 ac_prog=ld
4341 if test yes = "$GCC"; then
4342 # Check if gcc -print-prog-name=ld gives a path.
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4344 $as_echo_n "checking for ld used by $CC... " >&6; }
4345 case $host in
4346 *-*-mingw*)
4347 # gcc leaves a trailing carriage return, which upsets mingw
4348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4349 *)
4350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4351 esac
4352 case $ac_prog in
4353 # Accept absolute paths.
4354 [\\/]* | ?:[\\/]*)
4355 re_direlt='/[^/][^/]*/\.\./'
4356 # Canonicalize the pathname of ld
4357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4360 done
4361 test -z "$LD" && LD=$ac_prog
4362 ;;
4363 "")
4364 # If it fails, then pretend we aren't using GCC.
4365 ac_prog=ld
4366 ;;
4367 *)
4368 # If it is relative, then search for the first ld in PATH.
4369 with_gnu_ld=unknown
4370 ;;
4371 esac
4372 elif test yes = "$with_gnu_ld"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4374 $as_echo_n "checking for GNU ld... " >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4377 $as_echo_n "checking for non-GNU ld... " >&6; }
4378 fi
4379 if ${lt_cv_path_LD+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -z "$LD"; then
4383 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4384 for ac_dir in $PATH; do
4385 IFS=$lt_save_ifs
4386 test -z "$ac_dir" && ac_dir=.
4387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4388 lt_cv_path_LD=$ac_dir/$ac_prog
4389 # Check to see if the program is GNU ld. I'd rather use --version,
4390 # but apparently some variants of GNU ld only accept -v.
4391 # Break only if it was the GNU/non-GNU ld that we prefer.
4392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4393 *GNU* | *'with BFD'*)
4394 test no != "$with_gnu_ld" && break
4395 ;;
4396 *)
4397 test yes != "$with_gnu_ld" && break
4398 ;;
4399 esac
4400 fi
4401 done
4402 IFS=$lt_save_ifs
4403 else
4404 lt_cv_path_LD=$LD # Let the user override the test with a path.
4405 fi
4406 fi
4407
4408 LD=$lt_cv_path_LD
4409 if test -n "$LD"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4411 $as_echo "$LD" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4419 if ${lt_cv_prog_gnu_ld+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4423 case `$LD -v 2>&1 </dev/null` in
4424 *GNU* | *'with BFD'*)
4425 lt_cv_prog_gnu_ld=yes
4426 ;;
4427 *)
4428 lt_cv_prog_gnu_ld=no
4429 ;;
4430 esac
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4434 with_gnu_ld=$lt_cv_prog_gnu_ld
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4445 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4446 if ${lt_cv_path_NM+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$NM"; then
4450 # Let the user override the test.
4451 lt_cv_path_NM=$NM
4452 else
4453 lt_nm_to_check=${ac_tool_prefix}nm
4454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4455 lt_nm_to_check="$lt_nm_to_check nm"
4456 fi
4457 for lt_tmp_nm in $lt_nm_to_check; do
4458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4460 IFS=$lt_save_ifs
4461 test -z "$ac_dir" && ac_dir=.
4462 tmp_nm=$ac_dir/$lt_tmp_nm
4463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4464 # Check to see if the nm accepts a BSD-compat flag.
4465 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4466 # nm: unknown option "B" ignored
4467 # Tru64's nm complains that /dev/null is an invalid object file
4468 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4469 case $build_os in
4470 mingw*) lt_bad_file=conftest.nm/nofile ;;
4471 *) lt_bad_file=/dev/null ;;
4472 esac
4473 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4474 *$lt_bad_file* | *'Invalid file or object type'*)
4475 lt_cv_path_NM="$tmp_nm -B"
4476 break 2
4477 ;;
4478 *)
4479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4480 */dev/null*)
4481 lt_cv_path_NM="$tmp_nm -p"
4482 break 2
4483 ;;
4484 *)
4485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4486 continue # so that we can try to find one that supports BSD flags
4487 ;;
4488 esac
4489 ;;
4490 esac
4491 fi
4492 done
4493 IFS=$lt_save_ifs
4494 done
4495 : ${lt_cv_path_NM=no}
4496 fi
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4499 $as_echo "$lt_cv_path_NM" >&6; }
4500 if test no != "$lt_cv_path_NM"; then
4501 NM=$lt_cv_path_NM
4502 else
4503 # Didn't find any BSD compatible name lister, look for dumpbin.
4504 if test -n "$DUMPBIN"; then :
4505 # Let the user override the test.
4506 else
4507 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in dumpbin "link -dump"
4509 do
4510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_DUMPBIN+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -n "$DUMPBIN"; then
4518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 DUMPBIN=$ac_cv_prog_DUMPBIN
4538 if test -n "$DUMPBIN"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4540 $as_echo "$DUMPBIN" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547 test -n "$DUMPBIN" && break
4548 done
4549 fi
4550 if test -z "$DUMPBIN"; then
4551 ac_ct_DUMPBIN=$DUMPBIN
4552 for ac_prog in dumpbin "link -dump"
4553 do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$ac_ct_DUMPBIN"; then
4562 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4582 if test -n "$ac_ct_DUMPBIN"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4584 $as_echo "$ac_ct_DUMPBIN" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$ac_ct_DUMPBIN" && break
4592 done
4593
4594 if test "x$ac_ct_DUMPBIN" = x; then
4595 DUMPBIN=":"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 DUMPBIN=$ac_ct_DUMPBIN
4604 fi
4605 fi
4606
4607 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4608 *COFF*)
4609 DUMPBIN="$DUMPBIN -symbols -headers"
4610 ;;
4611 *)
4612 DUMPBIN=:
4613 ;;
4614 esac
4615 fi
4616
4617 if test : != "$DUMPBIN"; then
4618 NM=$DUMPBIN
4619 fi
4620 fi
4621 test -z "$NM" && NM=nm
4622
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4629 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4630 if ${lt_cv_nm_interface+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 lt_cv_nm_interface="BSD nm"
4634 echo "int some_variable = 0;" > conftest.$ac_ext
4635 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4636 (eval "$ac_compile" 2>conftest.err)
4637 cat conftest.err >&5
4638 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4639 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4640 cat conftest.err >&5
4641 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4642 cat conftest.out >&5
4643 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4644 lt_cv_nm_interface="MS dumpbin"
4645 fi
4646 rm -f conftest*
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4649 $as_echo "$lt_cv_nm_interface" >&6; }
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4652 $as_echo_n "checking whether ln -s works... " >&6; }
4653 LN_S=$as_ln_s
4654 if test "$LN_S" = "ln -s"; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4656 $as_echo "yes" >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4659 $as_echo "no, using $LN_S" >&6; }
4660 fi
4661
4662 # find the maximum length of command line arguments
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4664 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4665 if ${lt_cv_sys_max_cmd_len+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 i=0
4669 teststring=ABCD
4670
4671 case $build_os in
4672 msdosdjgpp*)
4673 # On DJGPP, this test can blow up pretty badly due to problems in libc
4674 # (any single argument exceeding 2000 bytes causes a buffer overrun
4675 # during glob expansion). Even if it were fixed, the result of this
4676 # check would be larger than it should be.
4677 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4678 ;;
4679
4680 gnu*)
4681 # Under GNU Hurd, this test is not required because there is
4682 # no limit to the length of command line arguments.
4683 # Libtool will interpret -1 as no limit whatsoever
4684 lt_cv_sys_max_cmd_len=-1;
4685 ;;
4686
4687 cygwin* | mingw* | cegcc*)
4688 # On Win9x/ME, this test blows up -- it succeeds, but takes
4689 # about 5 minutes as the teststring grows exponentially.
4690 # Worse, since 9x/ME are not pre-emptively multitasking,
4691 # you end up with a "frozen" computer, even though with patience
4692 # the test eventually succeeds (with a max line length of 256k).
4693 # Instead, let's just punt: use the minimum linelength reported by
4694 # all of the supported platforms: 8192 (on NT/2K/XP).
4695 lt_cv_sys_max_cmd_len=8192;
4696 ;;
4697
4698 mint*)
4699 # On MiNT this can take a long time and run out of memory.
4700 lt_cv_sys_max_cmd_len=8192;
4701 ;;
4702
4703 amigaos*)
4704 # On AmigaOS with pdksh, this test takes hours, literally.
4705 # So we just punt and use a minimum line length of 8192.
4706 lt_cv_sys_max_cmd_len=8192;
4707 ;;
4708
4709 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4710 # This has been around since 386BSD, at least. Likely further.
4711 if test -x /sbin/sysctl; then
4712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4713 elif test -x /usr/sbin/sysctl; then
4714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4715 else
4716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4717 fi
4718 # And add a safety zone
4719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4721 ;;
4722
4723 interix*)
4724 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4725 lt_cv_sys_max_cmd_len=196608
4726 ;;
4727
4728 os2*)
4729 # The test takes a long time on OS/2.
4730 lt_cv_sys_max_cmd_len=8192
4731 ;;
4732
4733 osf*)
4734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4736 # nice to cause kernel panics so lets avoid the loop below.
4737 # First set a reasonable default.
4738 lt_cv_sys_max_cmd_len=16384
4739 #
4740 if test -x /sbin/sysconfig; then
4741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4742 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4743 esac
4744 fi
4745 ;;
4746 sco3.2v5*)
4747 lt_cv_sys_max_cmd_len=102400
4748 ;;
4749 sysv5* | sco5v6* | sysv4.2uw2*)
4750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4751 if test -n "$kargmax"; then
4752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4753 else
4754 lt_cv_sys_max_cmd_len=32768
4755 fi
4756 ;;
4757 *)
4758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4759 if test -n "$lt_cv_sys_max_cmd_len" && \
4760 test undefined != "$lt_cv_sys_max_cmd_len"; then
4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4763 else
4764 # Make teststring a little bigger before we do anything with it.
4765 # a 1K string should be a reasonable start.
4766 for i in 1 2 3 4 5 6 7 8; do
4767 teststring=$teststring$teststring
4768 done
4769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4770 # If test is not a shell built-in, we'll probably end up computing a
4771 # maximum length that is only half of the actual maximum length, but
4772 # we can't tell.
4773 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4774 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4775 test 17 != "$i" # 1/2 MB should be enough
4776 do
4777 i=`expr $i + 1`
4778 teststring=$teststring$teststring
4779 done
4780 # Only check the string length outside the loop.
4781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4782 teststring=
4783 # Add a significant safety factor because C++ compilers can tack on
4784 # massive amounts of additional arguments before passing them to the
4785 # linker. It appears as though 1/2 is a usable value.
4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4787 fi
4788 ;;
4789 esac
4790
4791 fi
4792
4793 if test -n "$lt_cv_sys_max_cmd_len"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4795 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4798 $as_echo "none" >&6; }
4799 fi
4800 max_cmd_len=$lt_cv_sys_max_cmd_len
4801
4802
4803
4804
4805
4806
4807 : ${CP="cp -f"}
4808 : ${MV="mv -f"}
4809 : ${RM="rm -f"}
4810
4811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812 lt_unset=unset
4813 else
4814 lt_unset=false
4815 fi
4816
4817
4818
4819
4820
4821 # test EBCDIC or ASCII
4822 case `echo X|tr X '\101'` in
4823 A) # ASCII based system
4824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4825 lt_SP2NL='tr \040 \012'
4826 lt_NL2SP='tr \015\012 \040\040'
4827 ;;
4828 *) # EBCDIC based system
4829 lt_SP2NL='tr \100 \n'
4830 lt_NL2SP='tr \r\n \100\100'
4831 ;;
4832 esac
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4843 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4844 if ${lt_cv_to_host_file_cmd+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 case $host in
4848 *-*-mingw* )
4849 case $build in
4850 *-*-mingw* ) # actually msys
4851 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4852 ;;
4853 *-*-cygwin* )
4854 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4855 ;;
4856 * ) # otherwise, assume *nix
4857 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4858 ;;
4859 esac
4860 ;;
4861 *-*-cygwin* )
4862 case $build in
4863 *-*-mingw* ) # actually msys
4864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4865 ;;
4866 *-*-cygwin* )
4867 lt_cv_to_host_file_cmd=func_convert_file_noop
4868 ;;
4869 * ) # otherwise, assume *nix
4870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4871 ;;
4872 esac
4873 ;;
4874 * ) # unhandled hosts (and "normal" native builds)
4875 lt_cv_to_host_file_cmd=func_convert_file_noop
4876 ;;
4877 esac
4878
4879 fi
4880
4881 to_host_file_cmd=$lt_cv_to_host_file_cmd
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4883 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4884
4885
4886
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4890 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4891 if ${lt_cv_to_tool_file_cmd+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 #assume ordinary cross tools, or native build.
4895 lt_cv_to_tool_file_cmd=func_convert_file_noop
4896 case $host in
4897 *-*-mingw* )
4898 case $build in
4899 *-*-mingw* ) # actually msys
4900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4901 ;;
4902 esac
4903 ;;
4904 esac
4905
4906 fi
4907
4908 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4910 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4911
4912
4913
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4917 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4918 if ${lt_cv_ld_reload_flag+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 lt_cv_ld_reload_flag='-r'
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4924 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4925 reload_flag=$lt_cv_ld_reload_flag
4926 case $reload_flag in
4927 "" | " "*) ;;
4928 *) reload_flag=" $reload_flag" ;;
4929 esac
4930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4931 case $host_os in
4932 cygwin* | mingw* | pw32* | cegcc*)
4933 if test yes != "$GCC"; then
4934 reload_cmds=false
4935 fi
4936 ;;
4937 darwin*)
4938 if test yes = "$GCC"; then
4939 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4940 else
4941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4942 fi
4943 ;;
4944 esac
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_OBJDUMP+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$OBJDUMP"; then
4963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976 done
4977 done
4978 IFS=$as_save_IFS
4979
4980 fi
4981 fi
4982 OBJDUMP=$ac_cv_prog_OBJDUMP
4983 if test -n "$OBJDUMP"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4985 $as_echo "$OBJDUMP" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991
4992 fi
4993 if test -z "$ac_cv_prog_OBJDUMP"; then
4994 ac_ct_OBJDUMP=$OBJDUMP
4995 # Extract the first word of "objdump", so it can be a program name with args.
4996 set dummy objdump; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$ac_ct_OBJDUMP"; then
5003 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5023 if test -n "$ac_ct_OBJDUMP"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5025 $as_echo "$ac_ct_OBJDUMP" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031 if test "x$ac_ct_OBJDUMP" = x; then
5032 OBJDUMP="false"
5033 else
5034 case $cross_compiling:$ac_tool_warned in
5035 yes:)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038 ac_tool_warned=yes ;;
5039 esac
5040 OBJDUMP=$ac_ct_OBJDUMP
5041 fi
5042 else
5043 OBJDUMP="$ac_cv_prog_OBJDUMP"
5044 fi
5045
5046 test -z "$OBJDUMP" && OBJDUMP=objdump
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5057 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5058 if ${lt_cv_deplibs_check_method+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 lt_cv_file_magic_cmd='$MAGIC_CMD'
5062 lt_cv_file_magic_test_file=
5063 lt_cv_deplibs_check_method='unknown'
5064 # Need to set the preceding variable on all platforms that support
5065 # interlibrary dependencies.
5066 # 'none' -- dependencies not supported.
5067 # 'unknown' -- same as none, but documents that we really don't know.
5068 # 'pass_all' -- all dependencies passed with no checks.
5069 # 'test_compile' -- check by making test program.
5070 # 'file_magic [[regex]]' -- check by looking for files in library path
5071 # that responds to the $file_magic_cmd with a given extended regex.
5072 # If you have 'file' or equivalent on your system and you're not sure
5073 # whether 'pass_all' will *always* work, you probably want this one.
5074
5075 case $host_os in
5076 aix[4-9]*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079
5080 beos*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084 bsdi[45]*)
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5086 lt_cv_file_magic_cmd='/usr/bin/file -L'
5087 lt_cv_file_magic_test_file=/shlib/libc.so
5088 ;;
5089
5090 cygwin*)
5091 # func_win32_libid is a shell function defined in ltmain.sh
5092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5093 lt_cv_file_magic_cmd='func_win32_libid'
5094 ;;
5095
5096 mingw* | pw32*)
5097 # Base MSYS/MinGW do not provide the 'file' command needed by
5098 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5099 # unless we find 'file', for example because we are cross-compiling.
5100 if ( file / ) >/dev/null 2>&1; then
5101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5102 lt_cv_file_magic_cmd='func_win32_libid'
5103 else
5104 # Keep this pattern in sync with the one in func_win32_libid.
5105 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5106 lt_cv_file_magic_cmd='$OBJDUMP -f'
5107 fi
5108 ;;
5109
5110 cegcc*)
5111 # use the weaker test based on 'objdump'. See mingw*.
5112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5113 lt_cv_file_magic_cmd='$OBJDUMP -f'
5114 ;;
5115
5116 darwin* | rhapsody*)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120 freebsd* | dragonfly*)
5121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5122 case $host_cpu in
5123 i*86 )
5124 # Not sure whether the presence of OpenBSD here was a mistake.
5125 # Let's accept both of them until this is cleared up.
5126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5127 lt_cv_file_magic_cmd=/usr/bin/file
5128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5129 ;;
5130 esac
5131 else
5132 lt_cv_deplibs_check_method=pass_all
5133 fi
5134 ;;
5135
5136 haiku*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 hpux10.20* | hpux11*)
5141 lt_cv_file_magic_cmd=/usr/bin/file
5142 case $host_cpu in
5143 ia64*)
5144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5146 ;;
5147 hppa*64*)
5148 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]'
5149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5150 ;;
5151 *)
5152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5154 ;;
5155 esac
5156 ;;
5157
5158 interix[3-9]*)
5159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5161 ;;
5162
5163 irix5* | irix6* | nonstopux*)
5164 case $LD in
5165 *-32|*"-32 ") libmagic=32-bit;;
5166 *-n32|*"-n32 ") libmagic=N32;;
5167 *-64|*"-64 ") libmagic=64-bit;;
5168 *) libmagic=never-match;;
5169 esac
5170 lt_cv_deplibs_check_method=pass_all
5171 ;;
5172
5173 # This must be glibc/ELF.
5174 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178 netbsd*)
5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5181 else
5182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5183 fi
5184 ;;
5185
5186 newos6*)
5187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5188 lt_cv_file_magic_cmd=/usr/bin/file
5189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5190 ;;
5191
5192 *nto* | *qnx*)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195
5196 openbsd* | bitrig*)
5197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5199 else
5200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5201 fi
5202 ;;
5203
5204 osf3* | osf4* | osf5*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208 rdos*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 solaris*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 sysv4 | sysv4.3*)
5221 case $host_vendor in
5222 motorola)
5223 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]'
5224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5225 ;;
5226 ncr)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229 sequent)
5230 lt_cv_file_magic_cmd='/bin/file'
5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5232 ;;
5233 sni)
5234 lt_cv_file_magic_cmd='/bin/file'
5235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5236 lt_cv_file_magic_test_file=/lib/libc.so
5237 ;;
5238 siemens)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241 pc)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244 esac
5245 ;;
5246
5247 tpf*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250 os2*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253 esac
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5257 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5258
5259 file_magic_glob=
5260 want_nocaseglob=no
5261 if test "$build" = "$host"; then
5262 case $host_os in
5263 mingw* | pw32*)
5264 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5265 want_nocaseglob=yes
5266 else
5267 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5268 fi
5269 ;;
5270 esac
5271 fi
5272
5273 file_magic_cmd=$lt_cv_file_magic_cmd
5274 deplibs_check_method=$lt_cv_deplibs_check_method
5275 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5300 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_DLLTOOL+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$DLLTOOL"; then
5307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 DLLTOOL=$ac_cv_prog_DLLTOOL
5327 if test -n "$DLLTOOL"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5329 $as_echo "$DLLTOOL" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335
5336 fi
5337 if test -z "$ac_cv_prog_DLLTOOL"; then
5338 ac_ct_DLLTOOL=$DLLTOOL
5339 # Extract the first word of "dlltool", so it can be a program name with args.
5340 set dummy dlltool; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$ac_ct_DLLTOOL"; then
5347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5367 if test -n "$ac_ct_DLLTOOL"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5369 $as_echo "$ac_ct_DLLTOOL" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375 if test "x$ac_ct_DLLTOOL" = x; then
5376 DLLTOOL="false"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384 DLLTOOL=$ac_ct_DLLTOOL
5385 fi
5386 else
5387 DLLTOOL="$ac_cv_prog_DLLTOOL"
5388 fi
5389
5390 test -z "$DLLTOOL" && DLLTOOL=dlltool
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5402 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5403 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 lt_cv_sharedlib_from_linklib_cmd='unknown'
5407
5408 case $host_os in
5409 cygwin* | mingw* | pw32* | cegcc*)
5410 # two different shell functions defined in ltmain.sh;
5411 # decide which one to use based on capabilities of $DLLTOOL
5412 case `$DLLTOOL --help 2>&1` in
5413 *--identify-strict*)
5414 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5415 ;;
5416 *)
5417 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5418 ;;
5419 esac
5420 ;;
5421 *)
5422 # fallback: assume linklib IS sharedlib
5423 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5424 ;;
5425 esac
5426
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5429 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5430 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5431 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5432
5433
5434
5435
5436
5437
5438
5439
5440 if test -n "$ac_tool_prefix"; then
5441 for ac_prog in ar
5442 do
5443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_AR+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if test -n "$AR"; then
5451 ac_cv_prog_AR="$AR" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464 done
5465 done
5466 IFS=$as_save_IFS
5467
5468 fi
5469 fi
5470 AR=$ac_cv_prog_AR
5471 if test -n "$AR"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5473 $as_echo "$AR" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 test -n "$AR" && break
5481 done
5482 fi
5483 if test -z "$AR"; then
5484 ac_ct_AR=$AR
5485 for ac_prog in ar
5486 do
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488 set dummy $ac_prog; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_AR"; then
5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_ac_ct_AR="$ac_prog"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5515 if test -n "$ac_ct_AR"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5517 $as_echo "$ac_ct_AR" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523
5524 test -n "$ac_ct_AR" && break
5525 done
5526
5527 if test "x$ac_ct_AR" = x; then
5528 AR="false"
5529 else
5530 case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 AR=$ac_ct_AR
5537 fi
5538 fi
5539
5540 : ${AR=ar}
5541 : ${AR_FLAGS=cru}
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5554 $as_echo_n "checking for archiver @FILE support... " >&6; }
5555 if ${lt_cv_ar_at_file+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 lt_cv_ar_at_file=no
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561
5562 int
5563 main ()
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 echo conftest.$ac_objext > conftest.lst
5572 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574 (eval $lt_ar_try) 2>&5
5575 ac_status=$?
5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577 test $ac_status = 0; }
5578 if test 0 -eq "$ac_status"; then
5579 # Ensure the archiver fails upon bogus file names.
5580 rm -f conftest.$ac_objext libconftest.a
5581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5582 (eval $lt_ar_try) 2>&5
5583 ac_status=$?
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; }
5586 if test 0 -ne "$ac_status"; then
5587 lt_cv_ar_at_file=@
5588 fi
5589 fi
5590 rm -f conftest.* libconftest.a
5591
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594
5595 fi
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5597 $as_echo "$lt_cv_ar_at_file" >&6; }
5598
5599 if test no = "$lt_cv_ar_at_file"; then
5600 archiver_list_spec=
5601 else
5602 archiver_list_spec=$lt_cv_ar_at_file
5603 fi
5604
5605
5606
5607
5608
5609
5610
5611 if test -n "$ac_tool_prefix"; then
5612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5613 set dummy ${ac_tool_prefix}strip; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_STRIP+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$STRIP"; then
5620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5632 fi
5633 done
5634 done
5635 IFS=$as_save_IFS
5636
5637 fi
5638 fi
5639 STRIP=$ac_cv_prog_STRIP
5640 if test -n "$STRIP"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5642 $as_echo "$STRIP" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648
5649 fi
5650 if test -z "$ac_cv_prog_STRIP"; then
5651 ac_ct_STRIP=$STRIP
5652 # Extract the first word of "strip", so it can be a program name with args.
5653 set dummy strip; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$ac_ct_STRIP"; then
5660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_ac_ct_STRIP="strip"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5680 if test -n "$ac_ct_STRIP"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5682 $as_echo "$ac_ct_STRIP" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688 if test "x$ac_ct_STRIP" = x; then
5689 STRIP=":"
5690 else
5691 case $cross_compiling:$ac_tool_warned in
5692 yes:)
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5696 esac
5697 STRIP=$ac_ct_STRIP
5698 fi
5699 else
5700 STRIP="$ac_cv_prog_STRIP"
5701 fi
5702
5703 test -z "$STRIP" && STRIP=:
5704
5705
5706
5707
5708
5709
5710 if test -n "$ac_tool_prefix"; then
5711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_RANLIB+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$RANLIB"; then
5719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 RANLIB=$ac_cv_prog_RANLIB
5739 if test -n "$RANLIB"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5741 $as_echo "$RANLIB" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748 fi
5749 if test -z "$ac_cv_prog_RANLIB"; then
5750 ac_ct_RANLIB=$RANLIB
5751 # Extract the first word of "ranlib", so it can be a program name with args.
5752 set dummy ranlib; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$ac_ct_RANLIB"; then
5759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_ac_ct_RANLIB="ranlib"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5779 if test -n "$ac_ct_RANLIB"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5781 $as_echo "$ac_ct_RANLIB" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787 if test "x$ac_ct_RANLIB" = x; then
5788 RANLIB=":"
5789 else
5790 case $cross_compiling:$ac_tool_warned in
5791 yes:)
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796 RANLIB=$ac_ct_RANLIB
5797 fi
5798 else
5799 RANLIB="$ac_cv_prog_RANLIB"
5800 fi
5801
5802 test -z "$RANLIB" && RANLIB=:
5803
5804
5805
5806
5807
5808
5809 # Determine commands to create old-style static archives.
5810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5811 old_postinstall_cmds='chmod 644 $oldlib'
5812 old_postuninstall_cmds=
5813
5814 if test -n "$RANLIB"; then
5815 case $host_os in
5816 bitrig* | openbsd*)
5817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5818 ;;
5819 *)
5820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5821 ;;
5822 esac
5823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5824 fi
5825
5826 case $host_os in
5827 darwin*)
5828 lock_old_archive_extraction=yes ;;
5829 *)
5830 lock_old_archive_extraction=no ;;
5831 esac
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 # If no C compiler was specified, use CC.
5872 LTCC=${LTCC-"$CC"}
5873
5874 # If no C compiler flags were specified, use CFLAGS.
5875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5876
5877 # Allow CC to be a program name with arguments.
5878 compiler=$CC
5879
5880
5881 # Check for command to grab the raw symbol name followed by C symbol from nm.
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5884 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887
5888 # These are sane defaults that work on at least a few old systems.
5889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5890
5891 # Character class describing NM global symbol codes.
5892 symcode='[BCDEGRST]'
5893
5894 # Regexp to match symbols that can be accessed directly from C.
5895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5896
5897 # Define system-specific variables.
5898 case $host_os in
5899 aix*)
5900 symcode='[BCDT]'
5901 ;;
5902 cygwin* | mingw* | pw32* | cegcc*)
5903 symcode='[ABCDGISTW]'
5904 ;;
5905 hpux*)
5906 if test ia64 = "$host_cpu"; then
5907 symcode='[ABCDEGRST]'
5908 fi
5909 ;;
5910 irix* | nonstopux*)
5911 symcode='[BCDEGRST]'
5912 ;;
5913 osf*)
5914 symcode='[BCDEGQRST]'
5915 ;;
5916 solaris*)
5917 symcode='[BDRT]'
5918 ;;
5919 sco3.2v5*)
5920 symcode='[DT]'
5921 ;;
5922 sysv4.2uw2*)
5923 symcode='[DT]'
5924 ;;
5925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5926 symcode='[ABDT]'
5927 ;;
5928 sysv4)
5929 symcode='[DFNSTU]'
5930 ;;
5931 esac
5932
5933 # If we're using GNU nm, then use its standard symbol codes.
5934 case `$NM -V 2>&1` in
5935 *GNU* | *'with BFD'*)
5936 symcode='[ABCDGIRSTW]' ;;
5937 esac
5938
5939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5940 # Gets list of data symbols to import.
5941 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5942 # Adjust the below global symbol transforms to fixup imported variables.
5943 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5944 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5945 lt_c_name_lib_hook="\
5946 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5947 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5948 else
5949 # Disable hooks by default.
5950 lt_cv_sys_global_symbol_to_import=
5951 lt_cdecl_hook=
5952 lt_c_name_hook=
5953 lt_c_name_lib_hook=
5954 fi
5955
5956 # Transform an extracted symbol line into a proper C declaration.
5957 # Some systems (esp. on ia64) link data and code symbols differently,
5958 # so use this general approach.
5959 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5960 $lt_cdecl_hook\
5961 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5962 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5963
5964 # Transform an extracted symbol line into symbol name and symbol address
5965 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5966 $lt_c_name_hook\
5967 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5968 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5969
5970 # Transform an extracted symbol line into symbol name with lib prefix and
5971 # symbol address.
5972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5973 $lt_c_name_lib_hook\
5974 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5975 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5976 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5977
5978 # Handle CRLF in mingw tool chain
5979 opt_cr=
5980 case $build_os in
5981 mingw*)
5982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5983 ;;
5984 esac
5985
5986 # Try without a prefix underscore, then with it.
5987 for ac_symprfx in "" "_"; do
5988
5989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5990 symxfrm="\\1 $ac_symprfx\\2 \\2"
5991
5992 # Write the raw and C identifiers.
5993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5994 # Fake it for dumpbin and say T for any non-static function,
5995 # D for any global variable and I for any imported variable.
5996 # Also find C++ and __fastcall symbols from MSVC++,
5997 # which start with @ or ?.
5998 lt_cv_sys_global_symbol_pipe="$AWK '"\
5999 " {last_section=section; section=\$ 3};"\
6000 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6001 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6002 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6003 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6004 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6005 " \$ 0!~/External *\|/{next};"\
6006 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6007 " {if(hide[section]) next};"\
6008 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6009 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6010 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6011 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6012 " ' prfx=^$ac_symprfx"
6013 else
6014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6015 fi
6016 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6017
6018 # Check to see that the pipe works correctly.
6019 pipe_works=no
6020
6021 rm -f conftest*
6022 cat > conftest.$ac_ext <<_LT_EOF
6023 #ifdef __cplusplus
6024 extern "C" {
6025 #endif
6026 char nm_test_var;
6027 void nm_test_func(void);
6028 void nm_test_func(void){}
6029 #ifdef __cplusplus
6030 }
6031 #endif
6032 int main(){nm_test_var='a';nm_test_func();return(0);}
6033 _LT_EOF
6034
6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; then
6040 # Now try to grab the symbols.
6041 nlist=conftest.nm
6042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6043 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6044 ac_status=$?
6045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046 test $ac_status = 0; } && test -s "$nlist"; then
6047 # Try sorting and uniquifying the output.
6048 if sort "$nlist" | uniq > "$nlist"T; then
6049 mv -f "$nlist"T "$nlist"
6050 else
6051 rm -f "$nlist"T
6052 fi
6053
6054 # Make sure that we snagged all the symbols we need.
6055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6057 cat <<_LT_EOF > conftest.$ac_ext
6058 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6059 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6060 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6061 relocations are performed -- see ld's documentation on pseudo-relocs. */
6062 # define LT_DLSYM_CONST
6063 #elif defined __osf__
6064 /* This system does not cope well with relocations in const data. */
6065 # define LT_DLSYM_CONST
6066 #else
6067 # define LT_DLSYM_CONST const
6068 #endif
6069
6070 #ifdef __cplusplus
6071 extern "C" {
6072 #endif
6073
6074 _LT_EOF
6075 # Now generate the symbol file.
6076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6077
6078 cat <<_LT_EOF >> conftest.$ac_ext
6079
6080 /* The mapping between symbol names and symbols. */
6081 LT_DLSYM_CONST struct {
6082 const char *name;
6083 void *address;
6084 }
6085 lt__PROGRAM__LTX_preloaded_symbols[] =
6086 {
6087 { "@PROGRAM@", (void *) 0 },
6088 _LT_EOF
6089 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6090 cat <<\_LT_EOF >> conftest.$ac_ext
6091 {0, (void *) 0}
6092 };
6093
6094 /* This works around a problem in FreeBSD linker */
6095 #ifdef FREEBSD_WORKAROUND
6096 static const void *lt_preloaded_setup() {
6097 return lt__PROGRAM__LTX_preloaded_symbols;
6098 }
6099 #endif
6100
6101 #ifdef __cplusplus
6102 }
6103 #endif
6104 _LT_EOF
6105 # Now try linking the two files.
6106 mv conftest.$ac_objext conftstm.$ac_objext
6107 lt_globsym_save_LIBS=$LIBS
6108 lt_globsym_save_CFLAGS=$CFLAGS
6109 LIBS=conftstm.$ac_objext
6110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6112 (eval $ac_link) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6116 pipe_works=yes
6117 fi
6118 LIBS=$lt_globsym_save_LIBS
6119 CFLAGS=$lt_globsym_save_CFLAGS
6120 else
6121 echo "cannot find nm_test_func in $nlist" >&5
6122 fi
6123 else
6124 echo "cannot find nm_test_var in $nlist" >&5
6125 fi
6126 else
6127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6128 fi
6129 else
6130 echo "$progname: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6132 fi
6133 rm -rf conftest* conftst*
6134
6135 # Do not use the global_symbol_pipe unless it works.
6136 if test yes = "$pipe_works"; then
6137 break
6138 else
6139 lt_cv_sys_global_symbol_pipe=
6140 fi
6141 done
6142
6143 fi
6144
6145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6146 lt_cv_sys_global_symbol_to_cdecl=
6147 fi
6148 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6150 $as_echo "failed" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6153 $as_echo "ok" >&6; }
6154 fi
6155
6156 # Response file support.
6157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158 nm_file_list_spec='@'
6159 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6160 nm_file_list_spec='@'
6161 fi
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6200 $as_echo_n "checking for sysroot... " >&6; }
6201
6202 # Check whether --with-sysroot was given.
6203 if test "${with_sysroot+set}" = set; then :
6204 withval=$with_sysroot;
6205 else
6206 with_sysroot=no
6207 fi
6208
6209
6210 lt_sysroot=
6211 case $with_sysroot in #(
6212 yes)
6213 if test yes = "$GCC"; then
6214 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6215 fi
6216 ;; #(
6217 /*)
6218 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6219 ;; #(
6220 no|'')
6221 ;; #(
6222 *)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6224 $as_echo "$with_sysroot" >&6; }
6225 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6226 ;;
6227 esac
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6230 $as_echo "${lt_sysroot:-no}" >&6; }
6231
6232
6233
6234
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6237 $as_echo_n "checking for a working dd... " >&6; }
6238 if ${ac_cv_path_lt_DD+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 printf 0123456789abcdef0123456789abcdef >conftest.i
6242 cat conftest.i conftest.i >conftest2.i
6243 : ${lt_DD:=$DD}
6244 if test -z "$lt_DD"; then
6245 ac_path_lt_DD_found=false
6246 # Loop through the user's path and test for each of PROGNAME-LIST
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_prog in dd; do
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6255 as_fn_executable_p "$ac_path_lt_DD" || continue
6256 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6257 cmp -s conftest.i conftest.out \
6258 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6259 fi
6260 $ac_path_lt_DD_found && break 3
6261 done
6262 done
6263 done
6264 IFS=$as_save_IFS
6265 if test -z "$ac_cv_path_lt_DD"; then
6266 :
6267 fi
6268 else
6269 ac_cv_path_lt_DD=$lt_DD
6270 fi
6271
6272 rm -f conftest.i conftest2.i conftest.out
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6275 $as_echo "$ac_cv_path_lt_DD" >&6; }
6276
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6279 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6280 if ${lt_cv_truncate_bin+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 printf 0123456789abcdef0123456789abcdef >conftest.i
6284 cat conftest.i conftest.i >conftest2.i
6285 lt_cv_truncate_bin=
6286 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6287 cmp -s conftest.i conftest.out \
6288 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6289 fi
6290 rm -f conftest.i conftest2.i conftest.out
6291 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6294 $as_echo "$lt_cv_truncate_bin" >&6; }
6295
6296
6297
6298
6299
6300
6301
6302 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6303 func_cc_basename ()
6304 {
6305 for cc_temp in $*""; do
6306 case $cc_temp in
6307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6309 \-*) ;;
6310 *) break;;
6311 esac
6312 done
6313 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6314 }
6315
6316 # Check whether --enable-libtool-lock was given.
6317 if test "${enable_libtool_lock+set}" = set; then :
6318 enableval=$enable_libtool_lock;
6319 fi
6320
6321 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6322
6323 # Some flags need to be propagated to the compiler or linker for good
6324 # libtool support.
6325 case $host in
6326 ia64-*-hpux*)
6327 # Find out what ABI is being produced by ac_compile, and set mode
6328 # options accordingly.
6329 echo 'int i;' > conftest.$ac_ext
6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6331 (eval $ac_compile) 2>&5
6332 ac_status=$?
6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334 test $ac_status = 0; }; then
6335 case `/usr/bin/file conftest.$ac_objext` in
6336 *ELF-32*)
6337 HPUX_IA64_MODE=32
6338 ;;
6339 *ELF-64*)
6340 HPUX_IA64_MODE=64
6341 ;;
6342 esac
6343 fi
6344 rm -rf conftest*
6345 ;;
6346 *-*-irix6*)
6347 # Find out what ABI is being produced by ac_compile, and set linker
6348 # options accordingly.
6349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; then
6355 if test yes = "$lt_cv_prog_gnu_ld"; then
6356 case `/usr/bin/file conftest.$ac_objext` in
6357 *32-bit*)
6358 LD="${LD-ld} -melf32bsmip"
6359 ;;
6360 *N32*)
6361 LD="${LD-ld} -melf32bmipn32"
6362 ;;
6363 *64-bit*)
6364 LD="${LD-ld} -melf64bmip"
6365 ;;
6366 esac
6367 else
6368 case `/usr/bin/file conftest.$ac_objext` in
6369 *32-bit*)
6370 LD="${LD-ld} -32"
6371 ;;
6372 *N32*)
6373 LD="${LD-ld} -n32"
6374 ;;
6375 *64-bit*)
6376 LD="${LD-ld} -64"
6377 ;;
6378 esac
6379 fi
6380 fi
6381 rm -rf conftest*
6382 ;;
6383
6384 mips64*-*linux*)
6385 # Find out what ABI is being produced by ac_compile, and set linker
6386 # options accordingly.
6387 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 emul=elf
6394 case `/usr/bin/file conftest.$ac_objext` in
6395 *32-bit*)
6396 emul="${emul}32"
6397 ;;
6398 *64-bit*)
6399 emul="${emul}64"
6400 ;;
6401 esac
6402 case `/usr/bin/file conftest.$ac_objext` in
6403 *MSB*)
6404 emul="${emul}btsmip"
6405 ;;
6406 *LSB*)
6407 emul="${emul}ltsmip"
6408 ;;
6409 esac
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *N32*)
6412 emul="${emul}n32"
6413 ;;
6414 esac
6415 LD="${LD-ld} -m $emul"
6416 fi
6417 rm -rf conftest*
6418 ;;
6419
6420 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6421 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6422 # Find out what ABI is being produced by ac_compile, and set linker
6423 # options accordingly. Note that the listed cases only cover the
6424 # situations where additional linker options are needed (such as when
6425 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6426 # vice versa); the common cases where no linker options are needed do
6427 # not appear in the list.
6428 echo 'int i;' > conftest.$ac_ext
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }; then
6434 case `/usr/bin/file conftest.o` in
6435 *32-bit*)
6436 case $host in
6437 x86_64-*kfreebsd*-gnu)
6438 LD="${LD-ld} -m elf_i386_fbsd"
6439 ;;
6440 x86_64-*linux*)
6441 case `/usr/bin/file conftest.o` in
6442 *x86-64*)
6443 LD="${LD-ld} -m elf32_x86_64"
6444 ;;
6445 *)
6446 LD="${LD-ld} -m elf_i386"
6447 ;;
6448 esac
6449 ;;
6450 powerpc64le-*linux*)
6451 LD="${LD-ld} -m elf32lppclinux"
6452 ;;
6453 powerpc64-*linux*)
6454 LD="${LD-ld} -m elf32ppclinux"
6455 ;;
6456 s390x-*linux*)
6457 LD="${LD-ld} -m elf_s390"
6458 ;;
6459 sparc64-*linux*)
6460 LD="${LD-ld} -m elf32_sparc"
6461 ;;
6462 esac
6463 ;;
6464 *64-bit*)
6465 case $host in
6466 x86_64-*kfreebsd*-gnu)
6467 LD="${LD-ld} -m elf_x86_64_fbsd"
6468 ;;
6469 x86_64-*linux*)
6470 LD="${LD-ld} -m elf_x86_64"
6471 ;;
6472 powerpcle-*linux*)
6473 LD="${LD-ld} -m elf64lppc"
6474 ;;
6475 powerpc-*linux*)
6476 LD="${LD-ld} -m elf64ppc"
6477 ;;
6478 s390*-*linux*|s390*-*tpf*)
6479 LD="${LD-ld} -m elf64_s390"
6480 ;;
6481 sparc*-*linux*)
6482 LD="${LD-ld} -m elf64_sparc"
6483 ;;
6484 esac
6485 ;;
6486 esac
6487 fi
6488 rm -rf conftest*
6489 ;;
6490
6491 *-*-sco3.2v5*)
6492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6493 SAVE_CFLAGS=$CFLAGS
6494 CFLAGS="$CFLAGS -belf"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6496 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6497 if ${lt_cv_cc_needs_belf+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_link "$LINENO"; then :
6518 lt_cv_cc_needs_belf=yes
6519 else
6520 lt_cv_cc_needs_belf=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 ac_ext=c
6525 ac_cpp='$CPP $CPPFLAGS'
6526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529
6530 fi
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6532 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6533 if test yes != "$lt_cv_cc_needs_belf"; then
6534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6535 CFLAGS=$SAVE_CFLAGS
6536 fi
6537 ;;
6538 *-*solaris*)
6539 # Find out what ABI is being produced by ac_compile, and set linker
6540 # options accordingly.
6541 echo 'int i;' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 case `/usr/bin/file conftest.o` in
6548 *64-bit*)
6549 case $lt_cv_prog_gnu_ld in
6550 yes*)
6551 case $host in
6552 i?86-*-solaris*|x86_64-*-solaris*)
6553 LD="${LD-ld} -m elf_x86_64"
6554 ;;
6555 sparc*-*-solaris*)
6556 LD="${LD-ld} -m elf64_sparc"
6557 ;;
6558 esac
6559 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6560 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6561 LD=${LD-ld}_sol2
6562 fi
6563 ;;
6564 *)
6565 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6566 LD="${LD-ld} -64"
6567 fi
6568 ;;
6569 esac
6570 ;;
6571 esac
6572 fi
6573 rm -rf conftest*
6574 ;;
6575 esac
6576
6577 need_locks=$enable_libtool_lock
6578
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}mt; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$MANIFEST_TOOL"; then
6588 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6608 if test -n "$MANIFEST_TOOL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6610 $as_echo "$MANIFEST_TOOL" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616
6617 fi
6618 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6619 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6620 # Extract the first word of "mt", so it can be a program name with args.
6621 set dummy mt; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$ac_ct_MANIFEST_TOOL"; then
6628 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6648 if test -n "$ac_ct_MANIFEST_TOOL"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6650 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6657 MANIFEST_TOOL=":"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660 yes:)
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6664 esac
6665 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6666 fi
6667 else
6668 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6669 fi
6670
6671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6673 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6674 if ${lt_cv_path_mainfest_tool+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 lt_cv_path_mainfest_tool=no
6678 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6679 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6680 cat conftest.err >&5
6681 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6682 lt_cv_path_mainfest_tool=yes
6683 fi
6684 rm -f conftest*
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6687 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6688 if test yes != "$lt_cv_path_mainfest_tool"; then
6689 MANIFEST_TOOL=:
6690 fi
6691
6692
6693
6694
6695
6696
6697 case $host_os in
6698 rhapsody* | darwin*)
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$DSYMUTIL"; then
6708 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6728 if test -n "$DSYMUTIL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6730 $as_echo "$DSYMUTIL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_DSYMUTIL"; then
6739 ac_ct_DSYMUTIL=$DSYMUTIL
6740 # Extract the first word of "dsymutil", so it can be a program name with args.
6741 set dummy dsymutil; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_DSYMUTIL"; then
6748 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6768 if test -n "$ac_ct_DSYMUTIL"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6770 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776 if test "x$ac_ct_DSYMUTIL" = x; then
6777 DSYMUTIL=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 DSYMUTIL=$ac_ct_DSYMUTIL
6786 fi
6787 else
6788 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6789 fi
6790
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_NMEDIT+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$NMEDIT"; then
6800 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 NMEDIT=$ac_cv_prog_NMEDIT
6820 if test -n "$NMEDIT"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6822 $as_echo "$NMEDIT" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_NMEDIT"; then
6831 ac_ct_NMEDIT=$NMEDIT
6832 # Extract the first word of "nmedit", so it can be a program name with args.
6833 set dummy nmedit; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$ac_ct_NMEDIT"; then
6840 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6860 if test -n "$ac_ct_NMEDIT"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6862 $as_echo "$ac_ct_NMEDIT" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868 if test "x$ac_ct_NMEDIT" = x; then
6869 NMEDIT=":"
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 NMEDIT=$ac_ct_NMEDIT
6878 fi
6879 else
6880 NMEDIT="$ac_cv_prog_NMEDIT"
6881 fi
6882
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_LIPO+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$LIPO"; then
6892 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 LIPO=$ac_cv_prog_LIPO
6912 if test -n "$LIPO"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6914 $as_echo "$LIPO" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920
6921 fi
6922 if test -z "$ac_cv_prog_LIPO"; then
6923 ac_ct_LIPO=$LIPO
6924 # Extract the first word of "lipo", so it can be a program name with args.
6925 set dummy lipo; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_LIPO"; then
6932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_LIPO="lipo"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6952 if test -n "$ac_ct_LIPO"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6954 $as_echo "$ac_ct_LIPO" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960 if test "x$ac_ct_LIPO" = x; then
6961 LIPO=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 LIPO=$ac_ct_LIPO
6970 fi
6971 else
6972 LIPO="$ac_cv_prog_LIPO"
6973 fi
6974
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}otool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_OTOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$OTOOL"; then
6984 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 OTOOL=$ac_cv_prog_OTOOL
7004 if test -n "$OTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7006 $as_echo "$OTOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_OTOOL"; then
7015 ac_ct_OTOOL=$OTOOL
7016 # Extract the first word of "otool", so it can be a program name with args.
7017 set dummy otool; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_OTOOL"; then
7024 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_OTOOL="otool"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7044 if test -n "$ac_ct_OTOOL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7046 $as_echo "$ac_ct_OTOOL" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052 if test "x$ac_ct_OTOOL" = x; then
7053 OTOOL=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 OTOOL=$ac_ct_OTOOL
7062 fi
7063 else
7064 OTOOL="$ac_cv_prog_OTOOL"
7065 fi
7066
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7069 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_OTOOL64+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$OTOOL64"; then
7076 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 OTOOL64=$ac_cv_prog_OTOOL64
7096 if test -n "$OTOOL64"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7098 $as_echo "$OTOOL64" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104
7105 fi
7106 if test -z "$ac_cv_prog_OTOOL64"; then
7107 ac_ct_OTOOL64=$OTOOL64
7108 # Extract the first word of "otool64", so it can be a program name with args.
7109 set dummy otool64; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_OTOOL64"; then
7116 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_OTOOL64="otool64"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7136 if test -n "$ac_ct_OTOOL64"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7138 $as_echo "$ac_ct_OTOOL64" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144 if test "x$ac_ct_OTOOL64" = x; then
7145 OTOOL64=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148 yes:)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151 ac_tool_warned=yes ;;
7152 esac
7153 OTOOL64=$ac_ct_OTOOL64
7154 fi
7155 else
7156 OTOOL64="$ac_cv_prog_OTOOL64"
7157 fi
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7186 $as_echo_n "checking for -single_module linker flag... " >&6; }
7187 if ${lt_cv_apple_cc_single_mod+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 lt_cv_apple_cc_single_mod=no
7191 if test -z "$LT_MULTI_MODULE"; then
7192 # By default we will add the -single_module flag. You can override
7193 # by either setting the environment variable LT_MULTI_MODULE
7194 # non-empty at configure time, or by adding -multi_module to the
7195 # link flags.
7196 rm -rf libconftest.dylib*
7197 echo "int foo(void){return 1;}" > conftest.c
7198 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7199 -dynamiclib -Wl,-single_module conftest.c" >&5
7200 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7201 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7202 _lt_result=$?
7203 # If there is a non-empty error log, and "single_module"
7204 # appears in it, assume the flag caused a linker warning
7205 if test -s conftest.err && $GREP single_module conftest.err; then
7206 cat conftest.err >&5
7207 # Otherwise, if the output was created with a 0 exit code from
7208 # the compiler, it worked.
7209 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7210 lt_cv_apple_cc_single_mod=yes
7211 else
7212 cat conftest.err >&5
7213 fi
7214 rm -rf libconftest.dylib*
7215 rm -f conftest.*
7216 fi
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7219 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7222 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7223 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 lt_cv_ld_exported_symbols_list=no
7227 save_LDFLAGS=$LDFLAGS
7228 echo "_main" > conftest.sym
7229 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"; then :
7242 lt_cv_ld_exported_symbols_list=yes
7243 else
7244 lt_cv_ld_exported_symbols_list=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248 LDFLAGS=$save_LDFLAGS
7249
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7252 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7255 $as_echo_n "checking for -force_load linker flag... " >&6; }
7256 if ${lt_cv_ld_force_load+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 lt_cv_ld_force_load=no
7260 cat > conftest.c << _LT_EOF
7261 int forced_loaded() { return 2;}
7262 _LT_EOF
7263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7265 echo "$AR cru libconftest.a conftest.o" >&5
7266 $AR cru libconftest.a conftest.o 2>&5
7267 echo "$RANLIB libconftest.a" >&5
7268 $RANLIB libconftest.a 2>&5
7269 cat > conftest.c << _LT_EOF
7270 int main() { return 0;}
7271 _LT_EOF
7272 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7273 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7274 _lt_result=$?
7275 if test -s conftest.err && $GREP force_load conftest.err; then
7276 cat conftest.err >&5
7277 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7278 lt_cv_ld_force_load=yes
7279 else
7280 cat conftest.err >&5
7281 fi
7282 rm -f conftest.err libconftest.a conftest conftest.c
7283 rm -rf conftest.dSYM
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7287 $as_echo "$lt_cv_ld_force_load" >&6; }
7288 case $host_os in
7289 rhapsody* | darwin1.[012])
7290 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7291 darwin1.*)
7292 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7293 darwin*) # darwin 5.x on
7294 # if running on 10.5 or later, the deployment target defaults
7295 # to the OS version, if on x86, and 10.4, the deployment
7296 # target defaults to 10.4. Don't you love it?
7297 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7298 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7299 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7300 10.[012][,.]*)
7301 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7302 10.*)
7303 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7304 esac
7305 ;;
7306 esac
7307 if test yes = "$lt_cv_apple_cc_single_mod"; then
7308 _lt_dar_single_mod='$single_module'
7309 fi
7310 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7311 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7312 else
7313 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7314 fi
7315 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7316 _lt_dsymutil='~$DSYMUTIL $lib || :'
7317 else
7318 _lt_dsymutil=
7319 fi
7320 ;;
7321 esac
7322
7323 # func_munge_path_list VARIABLE PATH
7324 # -----------------------------------
7325 # VARIABLE is name of variable containing _space_ separated list of
7326 # directories to be munged by the contents of PATH, which is string
7327 # having a format:
7328 # "DIR[:DIR]:"
7329 # string "DIR[ DIR]" will be prepended to VARIABLE
7330 # ":DIR[:DIR]"
7331 # string "DIR[ DIR]" will be appended to VARIABLE
7332 # "DIRP[:DIRP]::[DIRA:]DIRA"
7333 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7334 # "DIRA[ DIRA]" will be appended to VARIABLE
7335 # "DIR[:DIR]"
7336 # VARIABLE will be replaced by "DIR[ DIR]"
7337 func_munge_path_list ()
7338 {
7339 case x$2 in
7340 x)
7341 ;;
7342 *:)
7343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7344 ;;
7345 x:*)
7346 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7347 ;;
7348 *::*)
7349 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7350 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7351 ;;
7352 *)
7353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7354 ;;
7355 esac
7356 }
7357
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7364 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7365 # On Suns, sometimes $CPP names a directory.
7366 if test -n "$CPP" && test -d "$CPP"; then
7367 CPP=
7368 fi
7369 if test -z "$CPP"; then
7370 if ${ac_cv_prog_CPP+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 # Double quotes because CPP needs to be expanded
7374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7375 do
7376 ac_preproc_ok=false
7377 for ac_c_preproc_warn_flag in '' yes
7378 do
7379 # Use a header file that comes with gcc, so configuring glibc
7380 # with a fresh cross-compiler works.
7381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7382 # <limits.h> exists even on freestanding compilers.
7383 # On the NeXT, cc -E runs the code through the compiler's parser,
7384 # not just through cpp. "Syntax error" is here to catch this case.
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 #ifdef __STDC__
7388 # include <limits.h>
7389 #else
7390 # include <assert.h>
7391 #endif
7392 Syntax error
7393 _ACEOF
7394 if ac_fn_c_try_cpp "$LINENO"; then :
7395
7396 else
7397 # Broken: fails on valid input.
7398 continue
7399 fi
7400 rm -f conftest.err conftest.i conftest.$ac_ext
7401
7402 # OK, works on sane cases. Now check whether nonexistent headers
7403 # can be detected and how.
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <ac_nonexistent.h>
7407 _ACEOF
7408 if ac_fn_c_try_cpp "$LINENO"; then :
7409 # Broken: success on invalid input.
7410 continue
7411 else
7412 # Passes both tests.
7413 ac_preproc_ok=:
7414 break
7415 fi
7416 rm -f conftest.err conftest.i conftest.$ac_ext
7417
7418 done
7419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7420 rm -f conftest.i conftest.err conftest.$ac_ext
7421 if $ac_preproc_ok; then :
7422 break
7423 fi
7424
7425 done
7426 ac_cv_prog_CPP=$CPP
7427
7428 fi
7429 CPP=$ac_cv_prog_CPP
7430 else
7431 ac_cv_prog_CPP=$CPP
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7434 $as_echo "$CPP" >&6; }
7435 ac_preproc_ok=false
7436 for ac_c_preproc_warn_flag in '' yes
7437 do
7438 # Use a header file that comes with gcc, so configuring glibc
7439 # with a fresh cross-compiler works.
7440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7441 # <limits.h> exists even on freestanding compilers.
7442 # On the NeXT, cc -E runs the code through the compiler's parser,
7443 # not just through cpp. "Syntax error" is here to catch this case.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #ifdef __STDC__
7447 # include <limits.h>
7448 #else
7449 # include <assert.h>
7450 #endif
7451 Syntax error
7452 _ACEOF
7453 if ac_fn_c_try_cpp "$LINENO"; then :
7454
7455 else
7456 # Broken: fails on valid input.
7457 continue
7458 fi
7459 rm -f conftest.err conftest.i conftest.$ac_ext
7460
7461 # OK, works on sane cases. Now check whether nonexistent headers
7462 # can be detected and how.
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <ac_nonexistent.h>
7466 _ACEOF
7467 if ac_fn_c_try_cpp "$LINENO"; then :
7468 # Broken: success on invalid input.
7469 continue
7470 else
7471 # Passes both tests.
7472 ac_preproc_ok=:
7473 break
7474 fi
7475 rm -f conftest.err conftest.i conftest.$ac_ext
7476
7477 done
7478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479 rm -f conftest.i conftest.err conftest.$ac_ext
7480 if $ac_preproc_ok; then :
7481
7482 else
7483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7485 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7486 See \`config.log' for more details" "$LINENO" 5; }
7487 fi
7488
7489 ac_ext=c
7490 ac_cpp='$CPP $CPPFLAGS'
7491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494
7495
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7497 $as_echo_n "checking for ANSI C header files... " >&6; }
7498 if ${ac_cv_header_stdc+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #include <stdlib.h>
7504 #include <stdarg.h>
7505 #include <string.h>
7506 #include <float.h>
7507
7508 int
7509 main ()
7510 {
7511
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 ac_cv_header_stdc=yes
7518 else
7519 ac_cv_header_stdc=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522
7523 if test $ac_cv_header_stdc = yes; then
7524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <string.h>
7528
7529 _ACEOF
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531 $EGREP "memchr" >/dev/null 2>&1; then :
7532
7533 else
7534 ac_cv_header_stdc=no
7535 fi
7536 rm -f conftest*
7537
7538 fi
7539
7540 if test $ac_cv_header_stdc = yes; then
7541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #include <stdlib.h>
7545
7546 _ACEOF
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548 $EGREP "free" >/dev/null 2>&1; then :
7549
7550 else
7551 ac_cv_header_stdc=no
7552 fi
7553 rm -f conftest*
7554
7555 fi
7556
7557 if test $ac_cv_header_stdc = yes; then
7558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7559 if test "$cross_compiling" = yes; then :
7560 :
7561 else
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <ctype.h>
7565 #include <stdlib.h>
7566 #if ((' ' & 0x0FF) == 0x020)
7567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7569 #else
7570 # define ISLOWER(c) \
7571 (('a' <= (c) && (c) <= 'i') \
7572 || ('j' <= (c) && (c) <= 'r') \
7573 || ('s' <= (c) && (c) <= 'z'))
7574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7575 #endif
7576
7577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7578 int
7579 main ()
7580 {
7581 int i;
7582 for (i = 0; i < 256; i++)
7583 if (XOR (islower (i), ISLOWER (i))
7584 || toupper (i) != TOUPPER (i))
7585 return 2;
7586 return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_run "$LINENO"; then :
7590
7591 else
7592 ac_cv_header_stdc=no
7593 fi
7594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7595 conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 fi
7597
7598 fi
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7601 $as_echo "$ac_cv_header_stdc" >&6; }
7602 if test $ac_cv_header_stdc = yes; then
7603
7604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7605
7606 fi
7607
7608 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7610 inttypes.h stdint.h unistd.h
7611 do :
7612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7614 "
7615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7616 cat >>confdefs.h <<_ACEOF
7617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618 _ACEOF
7619
7620 fi
7621
7622 done
7623
7624
7625 for ac_header in dlfcn.h
7626 do :
7627 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7628 "
7629 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_DLFCN_H 1
7632 _ACEOF
7633
7634 fi
7635
7636 done
7637
7638
7639
7640
7641
7642 # Set options
7643
7644
7645
7646 enable_dlopen=no
7647
7648
7649 enable_win32_dll=no
7650
7651
7652 # Check whether --enable-shared was given.
7653 if test "${enable_shared+set}" = set; then :
7654 enableval=$enable_shared; p=${PACKAGE-default}
7655 case $enableval in
7656 yes) enable_shared=yes ;;
7657 no) enable_shared=no ;;
7658 *)
7659 enable_shared=no
7660 # Look at the argument we got. We use all the common list separators.
7661 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7662 for pkg in $enableval; do
7663 IFS=$lt_save_ifs
7664 if test "X$pkg" = "X$p"; then
7665 enable_shared=yes
7666 fi
7667 done
7668 IFS=$lt_save_ifs
7669 ;;
7670 esac
7671 else
7672 enable_shared=yes
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 # Check whether --enable-static was given.
7684 if test "${enable_static+set}" = set; then :
7685 enableval=$enable_static; p=${PACKAGE-default}
7686 case $enableval in
7687 yes) enable_static=yes ;;
7688 no) enable_static=no ;;
7689 *)
7690 enable_static=no
7691 # Look at the argument we got. We use all the common list separators.
7692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7693 for pkg in $enableval; do
7694 IFS=$lt_save_ifs
7695 if test "X$pkg" = "X$p"; then
7696 enable_static=yes
7697 fi
7698 done
7699 IFS=$lt_save_ifs
7700 ;;
7701 esac
7702 else
7703 enable_static=yes
7704 fi
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 # Check whether --with-pic was given.
7716 if test "${with_pic+set}" = set; then :
7717 withval=$with_pic; lt_p=${PACKAGE-default}
7718 case $withval in
7719 yes|no) pic_mode=$withval ;;
7720 *)
7721 pic_mode=default
7722 # Look at the argument we got. We use all the common list separators.
7723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7724 for lt_pkg in $withval; do
7725 IFS=$lt_save_ifs
7726 if test "X$lt_pkg" = "X$lt_p"; then
7727 pic_mode=yes
7728 fi
7729 done
7730 IFS=$lt_save_ifs
7731 ;;
7732 esac
7733 else
7734 pic_mode=default
7735 fi
7736
7737
7738
7739
7740
7741
7742
7743
7744 # Check whether --enable-fast-install was given.
7745 if test "${enable_fast_install+set}" = set; then :
7746 enableval=$enable_fast_install; p=${PACKAGE-default}
7747 case $enableval in
7748 yes) enable_fast_install=yes ;;
7749 no) enable_fast_install=no ;;
7750 *)
7751 enable_fast_install=no
7752 # Look at the argument we got. We use all the common list separators.
7753 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7754 for pkg in $enableval; do
7755 IFS=$lt_save_ifs
7756 if test "X$pkg" = "X$p"; then
7757 enable_fast_install=yes
7758 fi
7759 done
7760 IFS=$lt_save_ifs
7761 ;;
7762 esac
7763 else
7764 enable_fast_install=yes
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774 shared_archive_member_spec=
7775 case $host,$enable_shared in
7776 power*-*-aix[5-9]*,yes)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7778 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7779
7780 # Check whether --with-aix-soname was given.
7781 if test "${with_aix_soname+set}" = set; then :
7782 withval=$with_aix_soname; case $withval in
7783 aix|svr4|both)
7784 ;;
7785 *)
7786 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7787 ;;
7788 esac
7789 lt_cv_with_aix_soname=$with_aix_soname
7790 else
7791 if ${lt_cv_with_aix_soname+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 lt_cv_with_aix_soname=aix
7795 fi
7796
7797 with_aix_soname=$lt_cv_with_aix_soname
7798 fi
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7801 $as_echo "$with_aix_soname" >&6; }
7802 if test aix != "$with_aix_soname"; then
7803 # For the AIX way of multilib, we name the shared archive member
7804 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7805 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7806 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7807 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7808 if test 64 = "${OBJECT_MODE-32}"; then
7809 shared_archive_member_spec=shr_64
7810 else
7811 shared_archive_member_spec=shr
7812 fi
7813 fi
7814 ;;
7815 *)
7816 with_aix_soname=aix
7817 ;;
7818 esac
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 # This can be used to rebuild libtool when needed
7830 LIBTOOL_DEPS=$ltmain
7831
7832 # Always use our own libtool.
7833 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 test -z "$LN_S" && LN_S="ln -s"
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 if test -n "${ZSH_VERSION+set}"; then
7880 setopt NO_GLOB_SUBST
7881 fi
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7884 $as_echo_n "checking for objdir... " >&6; }
7885 if ${lt_cv_objdir+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 rm -f .libs 2>/dev/null
7889 mkdir .libs 2>/dev/null
7890 if test -d .libs; then
7891 lt_cv_objdir=.libs
7892 else
7893 # MS-DOS does not allow filenames that begin with a dot.
7894 lt_cv_objdir=_libs
7895 fi
7896 rmdir .libs 2>/dev/null
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7899 $as_echo "$lt_cv_objdir" >&6; }
7900 objdir=$lt_cv_objdir
7901
7902
7903
7904
7905
7906 cat >>confdefs.h <<_ACEOF
7907 #define LT_OBJDIR "$lt_cv_objdir/"
7908 _ACEOF
7909
7910
7911
7912
7913 case $host_os in
7914 aix3*)
7915 # AIX sometimes has problems with the GCC collect2 program. For some
7916 # reason, if we set the COLLECT_NAMES environment variable, the problems
7917 # vanish in a puff of smoke.
7918 if test set != "${COLLECT_NAMES+set}"; then
7919 COLLECT_NAMES=
7920 export COLLECT_NAMES
7921 fi
7922 ;;
7923 esac
7924
7925 # Global variables:
7926 ofile=libtool
7927 can_build_shared=yes
7928
7929 # All known linkers require a '.a' archive for static linking (except MSVC,
7930 # which needs '.lib').
7931 libext=a
7932
7933 with_gnu_ld=$lt_cv_prog_gnu_ld
7934
7935 old_CC=$CC
7936 old_CFLAGS=$CFLAGS
7937
7938 # Set sane defaults for various variables
7939 test -z "$CC" && CC=cc
7940 test -z "$LTCC" && LTCC=$CC
7941 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7942 test -z "$LD" && LD=ld
7943 test -z "$ac_objext" && ac_objext=o
7944
7945 func_cc_basename $compiler
7946 cc_basename=$func_cc_basename_result
7947
7948
7949 # Only perform the check for file, if the check method requires it
7950 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7951 case $deplibs_check_method in
7952 file_magic*)
7953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7955 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 case $MAGIC_CMD in
7960 [\\/*] | ?:[\\/]*)
7961 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7962 ;;
7963 *)
7964 lt_save_MAGIC_CMD=$MAGIC_CMD
7965 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967 for ac_dir in $ac_dummy; do
7968 IFS=$lt_save_ifs
7969 test -z "$ac_dir" && ac_dir=.
7970 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7971 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7972 if test -n "$file_magic_test_file"; then
7973 case $deplibs_check_method in
7974 "file_magic "*)
7975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978 $EGREP "$file_magic_regex" > /dev/null; then
7979 :
7980 else
7981 cat <<_LT_EOF 1>&2
7982
7983 *** Warning: the command libtool uses to detect shared libraries,
7984 *** $file_magic_cmd, produces output that libtool cannot recognize.
7985 *** The result is that libtool may fail to recognize shared libraries
7986 *** as such. This will affect the creation of libtool libraries that
7987 *** depend on shared libraries, but programs linked with such libtool
7988 *** libraries will work regardless of this problem. Nevertheless, you
7989 *** may want to report the problem to your system manager and/or to
7990 *** bug-libtool (at] gnu.org
7991
7992 _LT_EOF
7993 fi ;;
7994 esac
7995 fi
7996 break
7997 fi
7998 done
7999 IFS=$lt_save_ifs
8000 MAGIC_CMD=$lt_save_MAGIC_CMD
8001 ;;
8002 esac
8003 fi
8004
8005 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8006 if test -n "$MAGIC_CMD"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008 $as_echo "$MAGIC_CMD" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015
8016
8017
8018 if test -z "$lt_cv_path_MAGIC_CMD"; then
8019 if test -n "$ac_tool_prefix"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8021 $as_echo_n "checking for file... " >&6; }
8022 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 case $MAGIC_CMD in
8026 [\\/*] | ?:[\\/]*)
8027 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8028 ;;
8029 *)
8030 lt_save_MAGIC_CMD=$MAGIC_CMD
8031 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8033 for ac_dir in $ac_dummy; do
8034 IFS=$lt_save_ifs
8035 test -z "$ac_dir" && ac_dir=.
8036 if test -f "$ac_dir/file"; then
8037 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8038 if test -n "$file_magic_test_file"; then
8039 case $deplibs_check_method in
8040 "file_magic "*)
8041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8042 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8044 $EGREP "$file_magic_regex" > /dev/null; then
8045 :
8046 else
8047 cat <<_LT_EOF 1>&2
8048
8049 *** Warning: the command libtool uses to detect shared libraries,
8050 *** $file_magic_cmd, produces output that libtool cannot recognize.
8051 *** The result is that libtool may fail to recognize shared libraries
8052 *** as such. This will affect the creation of libtool libraries that
8053 *** depend on shared libraries, but programs linked with such libtool
8054 *** libraries will work regardless of this problem. Nevertheless, you
8055 *** may want to report the problem to your system manager and/or to
8056 *** bug-libtool (at] gnu.org
8057
8058 _LT_EOF
8059 fi ;;
8060 esac
8061 fi
8062 break
8063 fi
8064 done
8065 IFS=$lt_save_ifs
8066 MAGIC_CMD=$lt_save_MAGIC_CMD
8067 ;;
8068 esac
8069 fi
8070
8071 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8072 if test -n "$MAGIC_CMD"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8074 $as_echo "$MAGIC_CMD" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080
8081 else
8082 MAGIC_CMD=:
8083 fi
8084 fi
8085
8086 fi
8087 ;;
8088 esac
8089
8090 # Use C for the default configuration in the libtool script
8091
8092 lt_save_CC=$CC
8093 ac_ext=c
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099
8100 # Source file extension for C test sources.
8101 ac_ext=c
8102
8103 # Object file extension for compiled C test sources.
8104 objext=o
8105 objext=$objext
8106
8107 # Code to be used in simple compile tests
8108 lt_simple_compile_test_code="int some_variable = 0;"
8109
8110 # Code to be used in simple link tests
8111 lt_simple_link_test_code='int main(){return(0);}'
8112
8113
8114
8115
8116
8117
8118
8119 # If no C compiler was specified, use CC.
8120 LTCC=${LTCC-"$CC"}
8121
8122 # If no C compiler flags were specified, use CFLAGS.
8123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8124
8125 # Allow CC to be a program name with arguments.
8126 compiler=$CC
8127
8128 # Save the default compiler, since it gets overwritten when the other
8129 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8130 compiler_DEFAULT=$CC
8131
8132 # save warnings/boilerplate of simple test code
8133 ac_outfile=conftest.$ac_objext
8134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8136 _lt_compiler_boilerplate=`cat conftest.err`
8137 $RM conftest*
8138
8139 ac_outfile=conftest.$ac_objext
8140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142 _lt_linker_boilerplate=`cat conftest.err`
8143 $RM -r conftest*
8144
8145
8146 if test -n "$compiler"; then
8147
8148 lt_prog_compiler_no_builtin_flag=
8149
8150 if test yes = "$GCC"; then
8151 case $cc_basename in
8152 nvcc*)
8153 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8154 *)
8155 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8156 esac
8157
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8159 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8160 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 lt_cv_prog_compiler_rtti_exceptions=no
8164 ac_outfile=conftest.$ac_objext
8165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8166 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 # The option is referenced via a variable to avoid confusing sed.
8172 lt_compile=`echo "$ac_compile" | $SED \
8173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8175 -e 's:$: $lt_compiler_flag:'`
8176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8177 (eval "$lt_compile" 2>conftest.err)
8178 ac_status=$?
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 if (exit $ac_status) && test -s "$ac_outfile"; then
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings other than the usual output.
8184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_rtti_exceptions=yes
8188 fi
8189 fi
8190 $RM conftest*
8191
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8194 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8195
8196 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8198 else
8199 :
8200 fi
8201
8202 fi
8203
8204
8205
8206
8207
8208
8209 lt_prog_compiler_wl=
8210 lt_prog_compiler_pic=
8211 lt_prog_compiler_static=
8212
8213
8214 if test yes = "$GCC"; then
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_static='-static'
8217
8218 case $host_os in
8219 aix*)
8220 # All AIX code is PIC.
8221 if test ia64 = "$host_cpu"; then
8222 # AIX 5 now supports IA64 processor
8223 lt_prog_compiler_static='-Bstatic'
8224 fi
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227
8228 amigaos*)
8229 case $host_cpu in
8230 powerpc)
8231 # see comment about AmigaOS4 .so support
8232 lt_prog_compiler_pic='-fPIC'
8233 ;;
8234 m68k)
8235 # FIXME: we need at least 68020 code to build shared libraries, but
8236 # adding the '-m68020' flag to GCC prevents building anything better,
8237 # like '-m68040'.
8238 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8239 ;;
8240 esac
8241 ;;
8242
8243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8244 # PIC is the default for these OSes.
8245 ;;
8246
8247 mingw* | cygwin* | pw32* | os2* | cegcc*)
8248 # This hack is so that the source file can tell whether it is being
8249 # built for inclusion in a dll (and should export symbols for example).
8250 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8251 # (--disable-auto-import) libraries
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8253 case $host_os in
8254 os2*)
8255 lt_prog_compiler_static='$wl-static'
8256 ;;
8257 esac
8258 ;;
8259
8260 darwin* | rhapsody*)
8261 # PIC is the default on this platform
8262 # Common symbols not allowed in MH_DYLIB files
8263 lt_prog_compiler_pic='-fno-common'
8264 ;;
8265
8266 haiku*)
8267 # PIC is the default for Haiku.
8268 # The "-static" flag exists, but is broken.
8269 lt_prog_compiler_static=
8270 ;;
8271
8272 hpux*)
8273 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8274 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8275 # sets the default TLS model and affects inlining.
8276 case $host_cpu in
8277 hppa*64*)
8278 # +Z the default
8279 ;;
8280 *)
8281 lt_prog_compiler_pic='-fPIC'
8282 ;;
8283 esac
8284 ;;
8285
8286 interix[3-9]*)
8287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8288 # Instead, we relocate shared libraries at runtime.
8289 ;;
8290
8291 msdosdjgpp*)
8292 # Just because we use GCC doesn't mean we suddenly get shared libraries
8293 # on systems that don't support them.
8294 lt_prog_compiler_can_build_shared=no
8295 enable_shared=no
8296 ;;
8297
8298 *nto* | *qnx*)
8299 # QNX uses GNU C++, but need to define -shared option too, otherwise
8300 # it will coredump.
8301 lt_prog_compiler_pic='-fPIC -shared'
8302 ;;
8303
8304 sysv4*MP*)
8305 if test -d /usr/nec; then
8306 lt_prog_compiler_pic=-Kconform_pic
8307 fi
8308 ;;
8309
8310 *)
8311 lt_prog_compiler_pic='-fPIC'
8312 ;;
8313 esac
8314
8315 case $cc_basename in
8316 nvcc*) # Cuda Compiler Driver 2.2
8317 lt_prog_compiler_wl='-Xlinker '
8318 if test -n "$lt_prog_compiler_pic"; then
8319 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8320 fi
8321 ;;
8322 esac
8323 else
8324 # PORTME Check for flag to pass linker flags through the system compiler.
8325 case $host_os in
8326 aix*)
8327 lt_prog_compiler_wl='-Wl,'
8328 if test ia64 = "$host_cpu"; then
8329 # AIX 5 now supports IA64 processor
8330 lt_prog_compiler_static='-Bstatic'
8331 else
8332 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8333 fi
8334 ;;
8335
8336 darwin* | rhapsody*)
8337 # PIC is the default on this platform
8338 # Common symbols not allowed in MH_DYLIB files
8339 lt_prog_compiler_pic='-fno-common'
8340 case $cc_basename in
8341 nagfor*)
8342 # NAG Fortran compiler
8343 lt_prog_compiler_wl='-Wl,-Wl,,'
8344 lt_prog_compiler_pic='-PIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 ;;
8347 esac
8348 ;;
8349
8350 mingw* | cygwin* | pw32* | os2* | cegcc*)
8351 # This hack is so that the source file can tell whether it is being
8352 # built for inclusion in a dll (and should export symbols for example).
8353 lt_prog_compiler_pic='-DDLL_EXPORT'
8354 case $host_os in
8355 os2*)
8356 lt_prog_compiler_static='$wl-static'
8357 ;;
8358 esac
8359 ;;
8360
8361 hpux9* | hpux10* | hpux11*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8364 # not for PA HP-UX.
8365 case $host_cpu in
8366 hppa*64*|ia64*)
8367 # +Z the default
8368 ;;
8369 *)
8370 lt_prog_compiler_pic='+Z'
8371 ;;
8372 esac
8373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8374 lt_prog_compiler_static='$wl-a ${wl}archive'
8375 ;;
8376
8377 irix5* | irix6* | nonstopux*)
8378 lt_prog_compiler_wl='-Wl,'
8379 # PIC (with -KPIC) is the default.
8380 lt_prog_compiler_static='-non_shared'
8381 ;;
8382
8383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8384 case $cc_basename in
8385 # old Intel for x86_64, which still supported -KPIC.
8386 ecc*)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-static'
8390 ;;
8391 # icc used to be incompatible with GCC.
8392 # ICC 10 doesn't accept -KPIC any more.
8393 icc* | ifort*)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-fPIC'
8396 lt_prog_compiler_static='-static'
8397 ;;
8398 # Lahey Fortran 8.1.
8399 lf95*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='--shared'
8402 lt_prog_compiler_static='--static'
8403 ;;
8404 nagfor*)
8405 # NAG Fortran compiler
8406 lt_prog_compiler_wl='-Wl,-Wl,,'
8407 lt_prog_compiler_pic='-PIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 ;;
8410 tcc*)
8411 # Fabrice Bellard et al's Tiny C Compiler
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='-fPIC'
8414 lt_prog_compiler_static='-static'
8415 ;;
8416 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8417 # Portland Group compilers (*not* the Pentium gcc compiler,
8418 # which looks to be a dead project)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_pic='-fpic'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423 ccc*)
8424 lt_prog_compiler_wl='-Wl,'
8425 # All Alpha code is PIC.
8426 lt_prog_compiler_static='-non_shared'
8427 ;;
8428 xl* | bgxl* | bgf* | mpixl*)
8429 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-qpic'
8432 lt_prog_compiler_static='-qstaticlink'
8433 ;;
8434 *)
8435 case `$CC -V 2>&1 | sed 5q` in
8436 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8437 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8438 lt_prog_compiler_pic='-KPIC'
8439 lt_prog_compiler_static='-Bstatic'
8440 lt_prog_compiler_wl=''
8441 ;;
8442 *Sun\ F* | *Sun*Fortran*)
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_wl='-Qoption ld '
8446 ;;
8447 *Sun\ C*)
8448 # Sun C 5.9
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl='-Wl,'
8452 ;;
8453 *Intel*\ [CF]*Compiler*)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-fPIC'
8456 lt_prog_compiler_static='-static'
8457 ;;
8458 *Portland\ Group*)
8459 lt_prog_compiler_wl='-Wl,'
8460 lt_prog_compiler_pic='-fpic'
8461 lt_prog_compiler_static='-Bstatic'
8462 ;;
8463 esac
8464 ;;
8465 esac
8466 ;;
8467
8468 newsos6)
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 ;;
8472
8473 *nto* | *qnx*)
8474 # QNX uses GNU C++, but need to define -shared option too, otherwise
8475 # it will coredump.
8476 lt_prog_compiler_pic='-fPIC -shared'
8477 ;;
8478
8479 osf3* | osf4* | osf5*)
8480 lt_prog_compiler_wl='-Wl,'
8481 # All OSF/1 code is PIC.
8482 lt_prog_compiler_static='-non_shared'
8483 ;;
8484
8485 rdos*)
8486 lt_prog_compiler_static='-non_shared'
8487 ;;
8488
8489 solaris*)
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 case $cc_basename in
8493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8494 lt_prog_compiler_wl='-Qoption ld ';;
8495 *)
8496 lt_prog_compiler_wl='-Wl,';;
8497 esac
8498 ;;
8499
8500 sunos4*)
8501 lt_prog_compiler_wl='-Qoption ld '
8502 lt_prog_compiler_pic='-PIC'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
8505
8506 sysv4 | sysv4.2uw2* | sysv4.3*)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
8512 sysv4*MP*)
8513 if test -d /usr/nec; then
8514 lt_prog_compiler_pic='-Kconform_pic'
8515 lt_prog_compiler_static='-Bstatic'
8516 fi
8517 ;;
8518
8519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524
8525 unicos*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_can_build_shared=no
8528 ;;
8529
8530 uts4*)
8531 lt_prog_compiler_pic='-pic'
8532 lt_prog_compiler_static='-Bstatic'
8533 ;;
8534
8535 *)
8536 lt_prog_compiler_can_build_shared=no
8537 ;;
8538 esac
8539 fi
8540
8541 case $host_os in
8542 # For platforms that do not support PIC, -DPIC is meaningless:
8543 *djgpp*)
8544 lt_prog_compiler_pic=
8545 ;;
8546 *)
8547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8548 ;;
8549 esac
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8553 if ${lt_cv_prog_compiler_pic+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8559 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8560 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8561
8562 #
8563 # Check to make sure the PIC flag actually works.
8564 #
8565 if test -n "$lt_prog_compiler_pic"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8568 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 lt_cv_prog_compiler_pic_works=no
8572 ac_outfile=conftest.$ac_objext
8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8575 # Insert the option either (1) after the last *FLAGS variable, or
8576 # (2) before a word containing "conftest.", or (3) at the end.
8577 # Note that $ac_compile itself does not contain backslashes and begins
8578 # with a dollar sign (not a hyphen), so the echo should work correctly.
8579 # The option is referenced via a variable to avoid confusing sed.
8580 lt_compile=`echo "$ac_compile" | $SED \
8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583 -e 's:$: $lt_compiler_flag:'`
8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585 (eval "$lt_compile" 2>conftest.err)
8586 ac_status=$?
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 if (exit $ac_status) && test -s "$ac_outfile"; then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings other than the usual output.
8592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8595 lt_cv_prog_compiler_pic_works=yes
8596 fi
8597 fi
8598 $RM conftest*
8599
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8602 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8603
8604 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8605 case $lt_prog_compiler_pic in
8606 "" | " "*) ;;
8607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8608 esac
8609 else
8610 lt_prog_compiler_pic=
8611 lt_prog_compiler_can_build_shared=no
8612 fi
8613
8614 fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626 #
8627 # Check to make sure the static flag actually works.
8628 #
8629 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8632 if ${lt_cv_prog_compiler_static_works+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 lt_cv_prog_compiler_static_works=no
8636 save_LDFLAGS=$LDFLAGS
8637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8640 # The linker can only warn and ignore the option if not recognized
8641 # So say no if there are warnings
8642 if test -s conftest.err; then
8643 # Append any errors to the config.log.
8644 cat conftest.err 1>&5
8645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8647 if diff conftest.exp conftest.er2 >/dev/null; then
8648 lt_cv_prog_compiler_static_works=yes
8649 fi
8650 else
8651 lt_cv_prog_compiler_static_works=yes
8652 fi
8653 fi
8654 $RM -r conftest*
8655 LDFLAGS=$save_LDFLAGS
8656
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8659 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8660
8661 if test yes = "$lt_cv_prog_compiler_static_works"; then
8662 :
8663 else
8664 lt_prog_compiler_static=
8665 fi
8666
8667
8668
8669
8670
8671
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8674 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8675 if ${lt_cv_prog_compiler_c_o+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 lt_cv_prog_compiler_c_o=no
8679 $RM -r conftest 2>/dev/null
8680 mkdir conftest
8681 cd conftest
8682 mkdir out
8683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8684
8685 lt_compiler_flag="-o out/conftest2.$ac_objext"
8686 # Insert the option either (1) after the last *FLAGS variable, or
8687 # (2) before a word containing "conftest.", or (3) at the end.
8688 # Note that $ac_compile itself does not contain backslashes and begins
8689 # with a dollar sign (not a hyphen), so the echo should work correctly.
8690 lt_compile=`echo "$ac_compile" | $SED \
8691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8693 -e 's:$: $lt_compiler_flag:'`
8694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8695 (eval "$lt_compile" 2>out/conftest.err)
8696 ac_status=$?
8697 cat out/conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8700 then
8701 # The compiler can only warn and ignore the option if not recognized
8702 # So say no if there are warnings
8703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8706 lt_cv_prog_compiler_c_o=yes
8707 fi
8708 fi
8709 chmod u+w . 2>&5
8710 $RM conftest*
8711 # SGI C++ compiler will create directory out/ii_files/ for
8712 # template instantiation
8713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8714 $RM out/* && rmdir out
8715 cd ..
8716 $RM -r conftest
8717 $RM conftest*
8718
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8721 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8722
8723
8724
8725
8726
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8730 if ${lt_cv_prog_compiler_c_o+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 lt_cv_prog_compiler_c_o=no
8734 $RM -r conftest 2>/dev/null
8735 mkdir conftest
8736 cd conftest
8737 mkdir out
8738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739
8740 lt_compiler_flag="-o out/conftest2.$ac_objext"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 lt_compile=`echo "$ac_compile" | $SED \
8746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748 -e 's:$: $lt_compiler_flag:'`
8749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8750 (eval "$lt_compile" 2>out/conftest.err)
8751 ac_status=$?
8752 cat out/conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8755 then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_c_o=yes
8762 fi
8763 fi
8764 chmod u+w . 2>&5
8765 $RM conftest*
8766 # SGI C++ compiler will create directory out/ii_files/ for
8767 # template instantiation
8768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8769 $RM out/* && rmdir out
8770 cd ..
8771 $RM -r conftest
8772 $RM conftest*
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8776 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8777
8778
8779
8780
8781 hard_links=nottested
8782 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8783 # do not overwrite the value of need_locks provided by the user
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8785 $as_echo_n "checking if we can lock with hard links... " >&6; }
8786 hard_links=yes
8787 $RM conftest*
8788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8789 touch conftest.a
8790 ln conftest.a conftest.b 2>&5 || hard_links=no
8791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8793 $as_echo "$hard_links" >&6; }
8794 if test no = "$hard_links"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8796 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8797 need_locks=warn
8798 fi
8799 else
8800 need_locks=no
8801 fi
8802
8803
8804
8805
8806
8807
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8810
8811 runpath_var=
8812 allow_undefined_flag=
8813 always_export_symbols=no
8814 archive_cmds=
8815 archive_expsym_cmds=
8816 compiler_needs_object=no
8817 enable_shared_with_static_runtimes=no
8818 export_dynamic_flag_spec=
8819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8820 hardcode_automatic=no
8821 hardcode_direct=no
8822 hardcode_direct_absolute=no
8823 hardcode_libdir_flag_spec=
8824 hardcode_libdir_separator=
8825 hardcode_minus_L=no
8826 hardcode_shlibpath_var=unsupported
8827 inherit_rpath=no
8828 link_all_deplibs=unknown
8829 module_cmds=
8830 module_expsym_cmds=
8831 old_archive_from_new_cmds=
8832 old_archive_from_expsyms_cmds=
8833 thread_safe_flag_spec=
8834 whole_archive_flag_spec=
8835 # include_expsyms should be a list of space-separated symbols to be *always*
8836 # included in the symbol list
8837 include_expsyms=
8838 # exclude_expsyms can be an extended regexp of symbols to exclude
8839 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8840 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8841 # as well as any symbol that contains 'd'.
8842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8844 # platforms (ab)use it in PIC code, but their linkers get confused if
8845 # the symbol is explicitly referenced. Since portable code cannot
8846 # rely on this symbol name, it's probably fine to never include it in
8847 # preloaded symbol tables.
8848 # Exclude shared library initialization/finalization symbols.
8849 extract_expsyms_cmds=
8850
8851 case $host_os in
8852 cygwin* | mingw* | pw32* | cegcc*)
8853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8854 # When not using gcc, we currently assume that we are using
8855 # Microsoft Visual C++.
8856 if test yes != "$GCC"; then
8857 with_gnu_ld=no
8858 fi
8859 ;;
8860 interix*)
8861 # we just hope/assume this is gcc and not c89 (= MSVC++)
8862 with_gnu_ld=yes
8863 ;;
8864 openbsd* | bitrig*)
8865 with_gnu_ld=no
8866 ;;
8867 esac
8868
8869 ld_shlibs=yes
8870
8871 # On some targets, GNU ld is compatible enough with the native linker
8872 # that we're better off using the native interface for both.
8873 lt_use_gnu_ld_interface=no
8874 if test yes = "$with_gnu_ld"; then
8875 case $host_os in
8876 aix*)
8877 # The AIX port of GNU ld has always aspired to compatibility
8878 # with the native linker. However, as the warning in the GNU ld
8879 # block says, versions before 2.19.5* couldn't really create working
8880 # shared libraries, regardless of the interface used.
8881 case `$LD -v 2>&1` in
8882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8885 *)
8886 lt_use_gnu_ld_interface=yes
8887 ;;
8888 esac
8889 ;;
8890 *)
8891 lt_use_gnu_ld_interface=yes
8892 ;;
8893 esac
8894 fi
8895
8896 if test yes = "$lt_use_gnu_ld_interface"; then
8897 # If archive_cmds runs LD, not CC, wlarc should be empty
8898 wlarc='$wl'
8899
8900 # Set some defaults for GNU ld with shared library support. These
8901 # are reset later if shared libraries are not supported. Putting them
8902 # here allows them to be overridden if necessary.
8903 runpath_var=LD_RUN_PATH
8904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8905 export_dynamic_flag_spec='$wl--export-dynamic'
8906 # ancient GNU ld didn't support --whole-archive et. al.
8907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8908 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8909 else
8910 whole_archive_flag_spec=
8911 fi
8912 supports_anon_versioning=no
8913 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8914 *GNU\ gold*) supports_anon_versioning=yes ;;
8915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8918 *\ 2.11.*) ;; # other 2.11 versions
8919 *) supports_anon_versioning=yes ;;
8920 esac
8921
8922 # See if GNU ld supports shared libraries.
8923 case $host_os in
8924 aix[3-9]*)
8925 # On AIX/PPC, the GNU linker is very broken
8926 if test ia64 != "$host_cpu"; then
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
8929
8930 *** Warning: the GNU linker, at least up to release 2.19, is reported
8931 *** to be unable to reliably create shared libraries on AIX.
8932 *** Therefore, libtool is disabling shared libraries support. If you
8933 *** really care for shared libraries, you may want to install binutils
8934 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8935 *** You will then need to restart the configuration process.
8936
8937 _LT_EOF
8938 fi
8939 ;;
8940
8941 amigaos*)
8942 case $host_cpu in
8943 powerpc)
8944 # see comment about AmigaOS4 .so support
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8946 archive_expsym_cmds=''
8947 ;;
8948 m68k)
8949 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)'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_minus_L=yes
8952 ;;
8953 esac
8954 ;;
8955
8956 beos*)
8957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8958 allow_undefined_flag=unsupported
8959 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8960 # support --undefined. This deserves some investigation. FIXME
8961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8962 else
8963 ld_shlibs=no
8964 fi
8965 ;;
8966
8967 cygwin* | mingw* | pw32* | cegcc*)
8968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8969 # as there is no search path for DLLs.
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 export_dynamic_flag_spec='$wl--export-all-symbols'
8972 allow_undefined_flag=unsupported
8973 always_export_symbols=no
8974 enable_shared_with_static_runtimes=yes
8975 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'
8976 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8977
8978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8980 # If the export-symbols file already is a .def file, use it as
8981 # is; otherwise, prepend EXPORTS...
8982 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8983 cp $export_symbols $output_objdir/$soname.def;
8984 else
8985 echo EXPORTS > $output_objdir/$soname.def;
8986 cat $export_symbols >> $output_objdir/$soname.def;
8987 fi~
8988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
8994 haiku*)
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8996 link_all_deplibs=yes
8997 ;;
8998
8999 os2*)
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_minus_L=yes
9002 allow_undefined_flag=unsupported
9003 shrext_cmds=.dll
9004 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9005 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9006 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9007 $ECHO EXPORTS >> $output_objdir/$libname.def~
9008 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9009 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9010 emximp -o $lib $output_objdir/$libname.def'
9011 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9012 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9013 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9014 $ECHO EXPORTS >> $output_objdir/$libname.def~
9015 prefix_cmds="$SED"~
9016 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9017 prefix_cmds="$prefix_cmds -e 1d";
9018 fi~
9019 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9020 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9022 emximp -o $lib $output_objdir/$libname.def'
9023 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9024 enable_shared_with_static_runtimes=yes
9025 ;;
9026
9027 interix[3-9]*)
9028 hardcode_direct=no
9029 hardcode_shlibpath_var=no
9030 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9031 export_dynamic_flag_spec='$wl-E'
9032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9033 # Instead, shared libraries are loaded at an image base (0x10000000 by
9034 # default) and relocated if they conflict, which is a slow very memory
9035 # consuming and fragmenting process. To avoid this, we pick a random,
9036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9039 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'
9040 ;;
9041
9042 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9043 tmp_diet=no
9044 if test linux-dietlibc = "$host_os"; then
9045 case $cc_basename in
9046 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9047 esac
9048 fi
9049 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9050 && test no = "$tmp_diet"
9051 then
9052 tmp_addflag=' $pic_flag'
9053 tmp_sharedflag='-shared'
9054 case $cc_basename,$host_cpu in
9055 pgcc*) # Portland Group C compiler
9056 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'
9057 tmp_addflag=' $pic_flag'
9058 ;;
9059 pgf77* | pgf90* | pgf95* | pgfortran*)
9060 # Portland Group f77 and f90 compilers
9061 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'
9062 tmp_addflag=' $pic_flag -Mnomain' ;;
9063 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9064 tmp_addflag=' -i_dynamic' ;;
9065 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9066 tmp_addflag=' -i_dynamic -nofor_main' ;;
9067 ifc* | ifort*) # Intel Fortran compiler
9068 tmp_addflag=' -nofor_main' ;;
9069 lf95*) # Lahey Fortran 8.1
9070 whole_archive_flag_spec=
9071 tmp_sharedflag='--shared' ;;
9072 nagfor*) # NAGFOR 5.3
9073 tmp_sharedflag='-Wl,-shared' ;;
9074 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9075 tmp_sharedflag='-qmkshrobj'
9076 tmp_addflag= ;;
9077 nvcc*) # Cuda Compiler Driver 2.2
9078 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'
9079 compiler_needs_object=yes
9080 ;;
9081 esac
9082 case `$CC -V 2>&1 | sed 5q` in
9083 *Sun\ C*) # Sun C 5.9
9084 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'
9085 compiler_needs_object=yes
9086 tmp_sharedflag='-G' ;;
9087 *Sun\ F*) # Sun Fortran 8.3
9088 tmp_sharedflag='-G' ;;
9089 esac
9090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9091
9092 if test yes = "$supports_anon_versioning"; then
9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095 echo "local: *; };" >> $output_objdir/$libname.ver~
9096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9097 fi
9098
9099 case $cc_basename in
9100 tcc*)
9101 export_dynamic_flag_spec='-rdynamic'
9102 ;;
9103 xlf* | bgf* | bgxlf* | mpixlf*)
9104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9105 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9107 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9108 if test yes = "$supports_anon_versioning"; then
9109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111 echo "local: *; };" >> $output_objdir/$libname.ver~
9112 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9113 fi
9114 ;;
9115 esac
9116 else
9117 ld_shlibs=no
9118 fi
9119 ;;
9120
9121 netbsd*)
9122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9124 wlarc=
9125 else
9126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9127 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9128 fi
9129 ;;
9130
9131 solaris*)
9132 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9133 ld_shlibs=no
9134 cat <<_LT_EOF 1>&2
9135
9136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9137 *** create shared libraries on Solaris systems. Therefore, libtool
9138 *** is disabling shared libraries support. We urge you to upgrade GNU
9139 *** binutils to release 2.9.1 or newer. Another option is to modify
9140 *** your PATH or compiler configuration so that the native linker is
9141 *** used, and then restart.
9142
9143 _LT_EOF
9144 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9146 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9147 else
9148 ld_shlibs=no
9149 fi
9150 ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9153 case `$LD -v 2>&1` in
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9155 ld_shlibs=no
9156 cat <<_LT_EOF 1>&2
9157
9158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9159 *** reliably create shared libraries on SCO systems. Therefore, libtool
9160 *** is disabling shared libraries support. We urge you to upgrade GNU
9161 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9162 *** your PATH or compiler configuration so that the native linker is
9163 *** used, and then restart.
9164
9165 _LT_EOF
9166 ;;
9167 *)
9168 # For security reasons, it is highly recommended that you always
9169 # use absolute paths for naming shared libraries, and exclude the
9170 # DT_RUNPATH tag from executables and libraries. But doing so
9171 # requires that you compile everything twice, which is a pain.
9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9176 else
9177 ld_shlibs=no
9178 fi
9179 ;;
9180 esac
9181 ;;
9182
9183 sunos4*)
9184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185 wlarc=
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
9188 ;;
9189
9190 *)
9191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9194 else
9195 ld_shlibs=no
9196 fi
9197 ;;
9198 esac
9199
9200 if test no = "$ld_shlibs"; then
9201 runpath_var=
9202 hardcode_libdir_flag_spec=
9203 export_dynamic_flag_spec=
9204 whole_archive_flag_spec=
9205 fi
9206 else
9207 # PORTME fill in a description of your system's linker (not GNU ld)
9208 case $host_os in
9209 aix3*)
9210 allow_undefined_flag=unsupported
9211 always_export_symbols=yes
9212 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'
9213 # Note: this linker hardcodes the directories in LIBPATH if there
9214 # are no directories specified by -L.
9215 hardcode_minus_L=yes
9216 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9217 # Neither direct hardcoding nor static linking is supported with a
9218 # broken collect2.
9219 hardcode_direct=unsupported
9220 fi
9221 ;;
9222
9223 aix[4-9]*)
9224 if test ia64 = "$host_cpu"; then
9225 # On IA64, the linker does run time linking by default, so we don't
9226 # have to do anything special.
9227 aix_use_runtimelinking=no
9228 exp_sym_flag='-Bexport'
9229 no_entry_flag=
9230 else
9231 # If we're using GNU nm, then we don't want the "-C" option.
9232 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9233 # Without the "-l" option, or with the "-B" option, AIX nm treats
9234 # weak defined symbols like other global defined symbols, whereas
9235 # GNU nm marks them as "W".
9236 # While the 'weak' keyword is ignored in the Export File, we need
9237 # it in the Import File for the 'aix-soname' feature, so we have
9238 # to replace the "-B" option with "-P" for AIX nm.
9239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9240 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'
9241 else
9242 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 == "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'
9243 fi
9244 aix_use_runtimelinking=no
9245
9246 # Test if we are trying to use run time linking or normal
9247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9248 # have runtime linking enabled, and use it for executables.
9249 # For shared libraries, we enable/disable runtime linking
9250 # depending on the kind of the shared library created -
9251 # when "with_aix_soname,aix_use_runtimelinking" is:
9252 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9253 # "aix,yes" lib.so shared, rtl:yes, for executables
9254 # lib.a static archive
9255 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9256 # lib.a(lib.so.V) shared, rtl:no, for executables
9257 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9258 # lib.a(lib.so.V) shared, rtl:no
9259 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9260 # lib.a static archive
9261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9262 for ld_flag in $LDFLAGS; do
9263 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9264 aix_use_runtimelinking=yes
9265 break
9266 fi
9267 done
9268 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9269 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9270 # so we don't have lib.a shared libs to link our executables.
9271 # We have to force runtime linking in this case.
9272 aix_use_runtimelinking=yes
9273 LDFLAGS="$LDFLAGS -Wl,-brtl"
9274 fi
9275 ;;
9276 esac
9277
9278 exp_sym_flag='-bexport'
9279 no_entry_flag='-bnoentry'
9280 fi
9281
9282 # When large executables or shared objects are built, AIX ld can
9283 # have problems creating the table of contents. If linking a library
9284 # or program results in "error TOC overflow" add -mminimal-toc to
9285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9287
9288 archive_cmds=''
9289 hardcode_direct=yes
9290 hardcode_direct_absolute=yes
9291 hardcode_libdir_separator=':'
9292 link_all_deplibs=yes
9293 file_list_spec='$wl-f,'
9294 case $with_aix_soname,$aix_use_runtimelinking in
9295 aix,*) ;; # traditional, no import file
9296 svr4,* | *,yes) # use import file
9297 # The Import File defines what to hardcode.
9298 hardcode_direct=no
9299 hardcode_direct_absolute=no
9300 ;;
9301 esac
9302
9303 if test yes = "$GCC"; then
9304 case $host_os in aix4.[012]|aix4.[012].*)
9305 # We only want to do this on AIX 4.2 and lower, the check
9306 # below for broken collect2 doesn't work under 4.3+
9307 collect2name=`$CC -print-prog-name=collect2`
9308 if test -f "$collect2name" &&
9309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9310 then
9311 # We have reworked collect2
9312 :
9313 else
9314 # We have old collect2
9315 hardcode_direct=unsupported
9316 # It fails to find uninstalled libraries when the uninstalled
9317 # path is not listed in the libpath. Setting hardcode_minus_L
9318 # to unsupported forces relinking
9319 hardcode_minus_L=yes
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_libdir_separator=
9322 fi
9323 ;;
9324 esac
9325 shared_flag='-shared'
9326 if test yes = "$aix_use_runtimelinking"; then
9327 shared_flag="$shared_flag "'$wl-G'
9328 fi
9329 # Need to ensure runtime linking is disabled for the traditional
9330 # shared library, or the linker may eventually find shared libraries
9331 # /with/ Import File - we do not want to mix them.
9332 shared_flag_aix='-shared'
9333 shared_flag_svr4='-shared $wl-G'
9334 else
9335 # not using gcc
9336 if test ia64 = "$host_cpu"; then
9337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9338 # chokes on -Wl,-G. The following line is correct:
9339 shared_flag='-G'
9340 else
9341 if test yes = "$aix_use_runtimelinking"; then
9342 shared_flag='$wl-G'
9343 else
9344 shared_flag='$wl-bM:SRE'
9345 fi
9346 shared_flag_aix='$wl-bM:SRE'
9347 shared_flag_svr4='$wl-G'
9348 fi
9349 fi
9350
9351 export_dynamic_flag_spec='$wl-bexpall'
9352 # It seems that -bexpall does not export symbols beginning with
9353 # underscore (_), so it is better to generate a list of symbols to export.
9354 always_export_symbols=yes
9355 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9356 # Warning - without using the other runtime loading flags (-brtl),
9357 # -berok will link without error, but may produce a broken library.
9358 allow_undefined_flag='-berok'
9359 # Determine the default libpath from the value encoded in an
9360 # empty executable.
9361 if test set = "${lt_cv_aix_libpath+set}"; then
9362 aix_libpath=$lt_cv_aix_libpath
9363 else
9364 if ${lt_cv_aix_libpath_+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369
9370 int
9371 main ()
9372 {
9373
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"; then :
9379
9380 lt_aix_libpath_sed='
9381 /Import File Strings/,/^$/ {
9382 /^0/ {
9383 s/^0 *\([^ ]*\) *$/\1/
9384 p
9385 }
9386 }'
9387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9388 # Check for a 64-bit object if we didn't find anything.
9389 if test -z "$lt_cv_aix_libpath_"; then
9390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9391 fi
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 if test -z "$lt_cv_aix_libpath_"; then
9396 lt_cv_aix_libpath_=/usr/lib:/lib
9397 fi
9398
9399 fi
9400
9401 aix_libpath=$lt_cv_aix_libpath_
9402 fi
9403
9404 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9405 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
9406 else
9407 if test ia64 = "$host_cpu"; then
9408 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9409 allow_undefined_flag="-z nodefs"
9410 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"
9411 else
9412 # Determine the default libpath from the value encoded in an
9413 # empty executable.
9414 if test set = "${lt_cv_aix_libpath+set}"; then
9415 aix_libpath=$lt_cv_aix_libpath
9416 else
9417 if ${lt_cv_aix_libpath_+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422
9423 int
9424 main ()
9425 {
9426
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432
9433 lt_aix_libpath_sed='
9434 /Import File Strings/,/^$/ {
9435 /^0/ {
9436 s/^0 *\([^ ]*\) *$/\1/
9437 p
9438 }
9439 }'
9440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9441 # Check for a 64-bit object if we didn't find anything.
9442 if test -z "$lt_cv_aix_libpath_"; then
9443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9444 fi
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 if test -z "$lt_cv_aix_libpath_"; then
9449 lt_cv_aix_libpath_=/usr/lib:/lib
9450 fi
9451
9452 fi
9453
9454 aix_libpath=$lt_cv_aix_libpath_
9455 fi
9456
9457 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9458 # Warning - without using the other run time loading flags,
9459 # -berok will link without error, but may produce a broken library.
9460 no_undefined_flag=' $wl-bernotok'
9461 allow_undefined_flag=' $wl-berok'
9462 if test yes = "$with_gnu_ld"; then
9463 # We only use this code for GNU lds that support --whole-archive.
9464 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9465 else
9466 # Exported symbols can be pulled into shared objects from archives
9467 whole_archive_flag_spec='$convenience'
9468 fi
9469 archive_cmds_need_lc=yes
9470 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9471 # -brtl affects multiple linker settings, -berok does not and is overridden later
9472 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9473 if test svr4 != "$with_aix_soname"; then
9474 # This is similar to how AIX traditionally builds its shared libraries.
9475 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'
9476 fi
9477 if test aix != "$with_aix_soname"; then
9478 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'
9479 else
9480 # used by -dlpreopen to get the symbols
9481 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9482 fi
9483 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9484 fi
9485 fi
9486 ;;
9487
9488 amigaos*)
9489 case $host_cpu in
9490 powerpc)
9491 # see comment about AmigaOS4 .so support
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9493 archive_expsym_cmds=''
9494 ;;
9495 m68k)
9496 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)'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_minus_L=yes
9499 ;;
9500 esac
9501 ;;
9502
9503 bsdi[45]*)
9504 export_dynamic_flag_spec=-rdynamic
9505 ;;
9506
9507 cygwin* | mingw* | pw32* | cegcc*)
9508 # When not using gcc, we currently assume that we are using
9509 # Microsoft Visual C++.
9510 # hardcode_libdir_flag_spec is actually meaningless, as there is
9511 # no search path for DLLs.
9512 case $cc_basename in
9513 cl*)
9514 # Native MSVC
9515 hardcode_libdir_flag_spec=' '
9516 allow_undefined_flag=unsupported
9517 always_export_symbols=yes
9518 file_list_spec='@'
9519 # Tell ltmain to make .lib files, not .a files.
9520 libext=lib
9521 # Tell ltmain to make .dll files, not .so files.
9522 shrext_cmds=.dll
9523 # FIXME: Setting linknames here is a bad hack.
9524 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9525 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9526 cp "$export_symbols" "$output_objdir/$soname.def";
9527 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9528 else
9529 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9530 fi~
9531 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9532 linknames='
9533 # The linker will not automatically build a static lib if we build a DLL.
9534 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9535 enable_shared_with_static_runtimes=yes
9536 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9537 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9538 # Don't use ranlib
9539 old_postinstall_cmds='chmod 644 $oldlib'
9540 postlink_cmds='lt_outputfile="@OUTPUT@"~
9541 lt_tool_outputfile="@TOOL_OUTPUT@"~
9542 case $lt_outputfile in
9543 *.exe|*.EXE) ;;
9544 *)
9545 lt_outputfile=$lt_outputfile.exe
9546 lt_tool_outputfile=$lt_tool_outputfile.exe
9547 ;;
9548 esac~
9549 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9550 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9551 $RM "$lt_outputfile.manifest";
9552 fi'
9553 ;;
9554 *)
9555 # Assume MSVC wrapper
9556 hardcode_libdir_flag_spec=' '
9557 allow_undefined_flag=unsupported
9558 # Tell ltmain to make .lib files, not .a files.
9559 libext=lib
9560 # Tell ltmain to make .dll files, not .so files.
9561 shrext_cmds=.dll
9562 # FIXME: Setting linknames here is a bad hack.
9563 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9564 # The linker will automatically build a .lib file if we build a DLL.
9565 old_archive_from_new_cmds='true'
9566 # FIXME: Should let the user specify the lib program.
9567 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9568 enable_shared_with_static_runtimes=yes
9569 ;;
9570 esac
9571 ;;
9572
9573 darwin* | rhapsody*)
9574
9575
9576 archive_cmds_need_lc=no
9577 hardcode_direct=no
9578 hardcode_automatic=yes
9579 hardcode_shlibpath_var=unsupported
9580 if test yes = "$lt_cv_ld_force_load"; then
9581 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\"`'
9582
9583 else
9584 whole_archive_flag_spec=''
9585 fi
9586 link_all_deplibs=yes
9587 allow_undefined_flag=$_lt_dar_allow_undefined
9588 case $cc_basename in
9589 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9590 *) _lt_dar_can_shared=$GCC ;;
9591 esac
9592 if test yes = "$_lt_dar_can_shared"; then
9593 output_verbose_link_cmd=func_echo_all
9594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9596 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"
9597 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"
9598
9599 else
9600 ld_shlibs=no
9601 fi
9602
9603 ;;
9604
9605 dgux*)
9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_libdir_flag_spec='-L$libdir'
9608 hardcode_shlibpath_var=no
9609 ;;
9610
9611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9612 # support. Future versions do this automatically, but an explicit c++rt0.o
9613 # does not break anything, and helps significantly (at the cost of a little
9614 # extra space).
9615 freebsd2.2*)
9616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9623 freebsd2.*)
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_direct=yes
9626 hardcode_minus_L=yes
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9631 freebsd* | dragonfly*)
9632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9633 hardcode_libdir_flag_spec='-R$libdir'
9634 hardcode_direct=yes
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 hpux9*)
9639 if test yes = "$GCC"; then
9640 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'
9641 else
9642 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'
9643 fi
9644 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9645 hardcode_libdir_separator=:
9646 hardcode_direct=yes
9647
9648 # hardcode_minus_L: Not really in the search PATH,
9649 # but as the default location of the library.
9650 hardcode_minus_L=yes
9651 export_dynamic_flag_spec='$wl-E'
9652 ;;
9653
9654 hpux10*)
9655 if test yes,no = "$GCC,$with_gnu_ld"; then
9656 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9659 fi
9660 if test no = "$with_gnu_ld"; then
9661 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_direct=yes
9664 hardcode_direct_absolute=yes
9665 export_dynamic_flag_spec='$wl-E'
9666 # hardcode_minus_L: Not really in the search PATH,
9667 # but as the default location of the library.
9668 hardcode_minus_L=yes
9669 fi
9670 ;;
9671
9672 hpux11*)
9673 if test yes,no = "$GCC,$with_gnu_ld"; then
9674 case $host_cpu in
9675 hppa*64*)
9676 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 ;;
9678 ia64*)
9679 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9680 ;;
9681 *)
9682 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 ;;
9684 esac
9685 else
9686 case $host_cpu in
9687 hppa*64*)
9688 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 ia64*)
9691 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692 ;;
9693 *)
9694
9695 # Older versions of the 11.00 compiler do not understand -b yet
9696 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9698 $as_echo_n "checking if $CC understands -b... " >&6; }
9699 if ${lt_cv_prog_compiler__b+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 lt_cv_prog_compiler__b=no
9703 save_LDFLAGS=$LDFLAGS
9704 LDFLAGS="$LDFLAGS -b"
9705 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9707 # The linker can only warn and ignore the option if not recognized
9708 # So say no if there are warnings
9709 if test -s conftest.err; then
9710 # Append any errors to the config.log.
9711 cat conftest.err 1>&5
9712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714 if diff conftest.exp conftest.er2 >/dev/null; then
9715 lt_cv_prog_compiler__b=yes
9716 fi
9717 else
9718 lt_cv_prog_compiler__b=yes
9719 fi
9720 fi
9721 $RM -r conftest*
9722 LDFLAGS=$save_LDFLAGS
9723
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9726 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9727
9728 if test yes = "$lt_cv_prog_compiler__b"; then
9729 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730 else
9731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9732 fi
9733
9734 ;;
9735 esac
9736 fi
9737 if test no = "$with_gnu_ld"; then
9738 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9739 hardcode_libdir_separator=:
9740
9741 case $host_cpu in
9742 hppa*64*|ia64*)
9743 hardcode_direct=no
9744 hardcode_shlibpath_var=no
9745 ;;
9746 *)
9747 hardcode_direct=yes
9748 hardcode_direct_absolute=yes
9749 export_dynamic_flag_spec='$wl-E'
9750
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L=yes
9754 ;;
9755 esac
9756 fi
9757 ;;
9758
9759 irix5* | irix6* | nonstopux*)
9760 if test yes = "$GCC"; then
9761 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'
9762 # Try to use the -exported_symbol ld option, if it does not
9763 # work, assume that -exports_file does not work either and
9764 # implicitly export all symbols.
9765 # This should be the same for all languages, so no per-tag cache variable.
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9767 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9768 if ${lt_cv_irix_exported_symbol+:} false; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 save_LDFLAGS=$LDFLAGS
9772 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int foo (void) { return 0; }
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778 lt_cv_irix_exported_symbol=yes
9779 else
9780 lt_cv_irix_exported_symbol=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LDFLAGS=$save_LDFLAGS
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9787 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9788 if test yes = "$lt_cv_irix_exported_symbol"; then
9789 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'
9790 fi
9791 else
9792 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'
9793 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'
9794 fi
9795 archive_cmds_need_lc='no'
9796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9797 hardcode_libdir_separator=:
9798 inherit_rpath=yes
9799 link_all_deplibs=yes
9800 ;;
9801
9802 linux*)
9803 case $cc_basename in
9804 tcc*)
9805 # Fabrice Bellard et al's Tiny C Compiler
9806 ld_shlibs=yes
9807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 esac
9810 ;;
9811
9812 netbsd*)
9813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9815 else
9816 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9817 fi
9818 hardcode_libdir_flag_spec='-R$libdir'
9819 hardcode_direct=yes
9820 hardcode_shlibpath_var=no
9821 ;;
9822
9823 newsos6)
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_direct=yes
9826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9827 hardcode_libdir_separator=:
9828 hardcode_shlibpath_var=no
9829 ;;
9830
9831 *nto* | *qnx*)
9832 ;;
9833
9834 openbsd* | bitrig*)
9835 if test -f /usr/libexec/ld.so; then
9836 hardcode_direct=yes
9837 hardcode_shlibpath_var=no
9838 hardcode_direct_absolute=yes
9839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9842 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9843 export_dynamic_flag_spec='$wl-E'
9844 else
9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9847 fi
9848 else
9849 ld_shlibs=no
9850 fi
9851 ;;
9852
9853 os2*)
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_minus_L=yes
9856 allow_undefined_flag=unsupported
9857 shrext_cmds=.dll
9858 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9861 $ECHO EXPORTS >> $output_objdir/$libname.def~
9862 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9864 emximp -o $lib $output_objdir/$libname.def'
9865 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9868 $ECHO EXPORTS >> $output_objdir/$libname.def~
9869 prefix_cmds="$SED"~
9870 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9871 prefix_cmds="$prefix_cmds -e 1d";
9872 fi~
9873 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9874 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9876 emximp -o $lib $output_objdir/$libname.def'
9877 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9878 enable_shared_with_static_runtimes=yes
9879 ;;
9880
9881 osf3*)
9882 if test yes = "$GCC"; then
9883 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9884 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'
9885 else
9886 allow_undefined_flag=' -expect_unresolved \*'
9887 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'
9888 fi
9889 archive_cmds_need_lc='no'
9890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9891 hardcode_libdir_separator=:
9892 ;;
9893
9894 osf4* | osf5*) # as osf3* with the addition of -msym flag
9895 if test yes = "$GCC"; then
9896 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9897 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'
9898 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9899 else
9900 allow_undefined_flag=' -expect_unresolved \*'
9901 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'
9902 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~
9903 $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'
9904
9905 # Both c and cxx compiler support -rpath directly
9906 hardcode_libdir_flag_spec='-rpath $libdir'
9907 fi
9908 archive_cmds_need_lc='no'
9909 hardcode_libdir_separator=:
9910 ;;
9911
9912 solaris*)
9913 no_undefined_flag=' -z defs'
9914 if test yes = "$GCC"; then
9915 wlarc='$wl'
9916 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9918 $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'
9919 else
9920 case `$CC -V 2>&1` in
9921 *"Compilers 5.0"*)
9922 wlarc=''
9923 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9925 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9926 ;;
9927 *)
9928 wlarc='$wl'
9929 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9932 ;;
9933 esac
9934 fi
9935 hardcode_libdir_flag_spec='-R$libdir'
9936 hardcode_shlibpath_var=no
9937 case $host_os in
9938 solaris2.[0-5] | solaris2.[0-5].*) ;;
9939 *)
9940 # The compiler driver will combine and reorder linker options,
9941 # but understands '-z linker_flag'. GCC discards it without '$wl',
9942 # but is careful enough not to reorder.
9943 # Supported since Solaris 2.6 (maybe 2.5.1?)
9944 if test yes = "$GCC"; then
9945 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9946 else
9947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9948 fi
9949 ;;
9950 esac
9951 link_all_deplibs=yes
9952 ;;
9953
9954 sunos4*)
9955 if test sequent = "$host_vendor"; then
9956 # Use $CC to link under sequent, because it throws in some extra .o
9957 # files that make .init and .fini sections work.
9958 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9959 else
9960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9961 fi
9962 hardcode_libdir_flag_spec='-L$libdir'
9963 hardcode_direct=yes
9964 hardcode_minus_L=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 sysv4)
9969 case $host_vendor in
9970 sni)
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes # is this really true???
9973 ;;
9974 siemens)
9975 ## LD is ld it makes a PLAMLIB
9976 ## CC just makes a GrossModule.
9977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9978 reload_cmds='$CC -r -o $output$reload_objs'
9979 hardcode_direct=no
9980 ;;
9981 motorola)
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9984 ;;
9985 esac
9986 runpath_var='LD_RUN_PATH'
9987 hardcode_shlibpath_var=no
9988 ;;
9989
9990 sysv4.3*)
9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_shlibpath_var=no
9993 export_dynamic_flag_spec='-Bexport'
9994 ;;
9995
9996 sysv4*MP*)
9997 if test -d /usr/nec; then
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_shlibpath_var=no
10000 runpath_var=LD_RUN_PATH
10001 hardcode_runpath_var=yes
10002 ld_shlibs=yes
10003 fi
10004 ;;
10005
10006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10007 no_undefined_flag='$wl-z,text'
10008 archive_cmds_need_lc=no
10009 hardcode_shlibpath_var=no
10010 runpath_var='LD_RUN_PATH'
10011
10012 if test yes = "$GCC"; then
10013 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 else
10016 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 fi
10019 ;;
10020
10021 sysv5* | sco3.2v5* | sco5v6*)
10022 # Note: We CANNOT use -z defs as we might desire, because we do not
10023 # link with -lc, and that would cause any symbols used from libc to
10024 # always be unresolved, which means just about no library would
10025 # ever link correctly. If we're not using GNU ld we use -z text
10026 # though, which does catch some bad symbols but isn't as heavy-handed
10027 # as -z defs.
10028 no_undefined_flag='$wl-z,text'
10029 allow_undefined_flag='$wl-z,nodefs'
10030 archive_cmds_need_lc=no
10031 hardcode_shlibpath_var=no
10032 hardcode_libdir_flag_spec='$wl-R,$libdir'
10033 hardcode_libdir_separator=':'
10034 link_all_deplibs=yes
10035 export_dynamic_flag_spec='$wl-Bexport'
10036 runpath_var='LD_RUN_PATH'
10037
10038 if test yes = "$GCC"; then
10039 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 fi
10045 ;;
10046
10047 uts4*)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_shlibpath_var=no
10051 ;;
10052
10053 *)
10054 ld_shlibs=no
10055 ;;
10056 esac
10057
10058 if test sni = "$host_vendor"; then
10059 case $host in
10060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10061 export_dynamic_flag_spec='$wl-Blargedynsym'
10062 ;;
10063 esac
10064 fi
10065 fi
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10068 $as_echo "$ld_shlibs" >&6; }
10069 test no = "$ld_shlibs" && can_build_shared=no
10070
10071 with_gnu_ld=$with_gnu_ld
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087 #
10088 # Do we need to explicitly link libc?
10089 #
10090 case "x$archive_cmds_need_lc" in
10091 x|xyes)
10092 # Assume -lc should be added
10093 archive_cmds_need_lc=yes
10094
10095 if test yes,yes = "$GCC,$enable_shared"; then
10096 case $archive_cmds in
10097 *'~'*)
10098 # FIXME: we may have to deal with multi-command sequences.
10099 ;;
10100 '$CC '*)
10101 # Test whether the compiler implicitly links with -lc since on some
10102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10103 # to ld, don't add -lc before -lgcc.
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10105 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10106 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 $RM conftest*
10110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10111
10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; } 2>conftest.err; then
10117 soname=conftest
10118 lib=conftest
10119 libobjs=conftest.$ac_objext
10120 deplibs=
10121 wl=$lt_prog_compiler_wl
10122 pic_flag=$lt_prog_compiler_pic
10123 compiler_flags=-v
10124 linker_flags=-v
10125 verstring=
10126 output_objdir=.
10127 libname=conftest
10128 lt_save_allow_undefined_flag=$allow_undefined_flag
10129 allow_undefined_flag=
10130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10131 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10132 ac_status=$?
10133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10134 test $ac_status = 0; }
10135 then
10136 lt_cv_archive_cmds_need_lc=no
10137 else
10138 lt_cv_archive_cmds_need_lc=yes
10139 fi
10140 allow_undefined_flag=$lt_save_allow_undefined_flag
10141 else
10142 cat conftest.err 1>&5
10143 fi
10144 $RM conftest*
10145
10146 fi
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10148 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10149 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10150 ;;
10151 esac
10152 fi
10153 ;;
10154 esac
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10308 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10309
10310 if test yes = "$GCC"; then
10311 case $host_os in
10312 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10313 *) lt_awk_arg='/^libraries:/' ;;
10314 esac
10315 case $host_os in
10316 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10317 *) lt_sed_strip_eq='s|=/|/|g' ;;
10318 esac
10319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10320 case $lt_search_path_spec in
10321 *\;*)
10322 # if the path contains ";" then we assume it to be the separator
10323 # otherwise default to the standard path separator (i.e. ":") - it is
10324 # assumed that no part of a normal pathname contains ";" but that should
10325 # okay in the real world where ";" in dirpaths is itself problematic.
10326 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10327 ;;
10328 *)
10329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10330 ;;
10331 esac
10332 # Ok, now we have the path, separated by spaces, we can step through it
10333 # and add multilib dir if necessary...
10334 lt_tmp_lt_search_path_spec=
10335 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10336 # ...but if some path component already ends with the multilib dir we assume
10337 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10338 case "$lt_multi_os_dir; $lt_search_path_spec " in
10339 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10340 lt_multi_os_dir=
10341 ;;
10342 esac
10343 for lt_sys_path in $lt_search_path_spec; do
10344 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10345 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10346 elif test -n "$lt_multi_os_dir"; then
10347 test -d "$lt_sys_path" && \
10348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10349 fi
10350 done
10351 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10352 BEGIN {RS = " "; FS = "/|\n";} {
10353 lt_foo = "";
10354 lt_count = 0;
10355 for (lt_i = NF; lt_i > 0; lt_i--) {
10356 if ($lt_i != "" && $lt_i != ".") {
10357 if ($lt_i == "..") {
10358 lt_count++;
10359 } else {
10360 if (lt_count == 0) {
10361 lt_foo = "/" $lt_i lt_foo;
10362 } else {
10363 lt_count--;
10364 }
10365 }
10366 }
10367 }
10368 if (lt_foo != "") { lt_freq[lt_foo]++; }
10369 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10370 }'`
10371 # AWK program above erroneously prepends '/' to C:/dos/paths
10372 # for these hosts.
10373 case $host_os in
10374 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10375 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10376 esac
10377 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10378 else
10379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10380 fi
10381 library_names_spec=
10382 libname_spec='lib$name'
10383 soname_spec=
10384 shrext_cmds=.so
10385 postinstall_cmds=
10386 postuninstall_cmds=
10387 finish_cmds=
10388 finish_eval=
10389 shlibpath_var=
10390 shlibpath_overrides_runpath=unknown
10391 version_type=none
10392 dynamic_linker="$host_os ld.so"
10393 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10394 need_lib_prefix=unknown
10395 hardcode_into_libs=no
10396
10397 # when you set need_version to no, make sure it does not cause -set_version
10398 # flags to be left without arguments
10399 need_version=unknown
10400
10401
10402
10403 case $host_os in
10404 aix3*)
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10407 shlibpath_var=LIBPATH
10408
10409 # AIX 3 has no versioning support, so we append a major version to the name.
10410 soname_spec='$libname$release$shared_ext$major'
10411 ;;
10412
10413 aix[4-9]*)
10414 version_type=linux # correct to gnu/linux during the next big refactor
10415 need_lib_prefix=no
10416 need_version=no
10417 hardcode_into_libs=yes
10418 if test ia64 = "$host_cpu"; then
10419 # AIX 5 supports IA64
10420 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 else
10423 # With GCC up to 2.95.x, collect2 would create an import file
10424 # for dependence libraries. The import file would start with
10425 # the line '#! .'. This would cause the generated library to
10426 # depend on '.', always an invalid library. This was fixed in
10427 # development snapshots of GCC prior to 3.0.
10428 case $host_os in
10429 aix4 | aix4.[01] | aix4.[01].*)
10430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10431 echo ' yes '
10432 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10433 :
10434 else
10435 can_build_shared=no
10436 fi
10437 ;;
10438 esac
10439 # Using Import Files as archive members, it is possible to support
10440 # filename-based versioning of shared library archives on AIX. While
10441 # this would work for both with and without runtime linking, it will
10442 # prevent static linking of such archives. So we do filename-based
10443 # shared library versioning with .so extension only, which is used
10444 # when both runtime linking and shared linking is enabled.
10445 # Unfortunately, runtime linking may impact performance, so we do
10446 # not want this to be the default eventually. Also, we use the
10447 # versioned .so libs for executables only if there is the -brtl
10448 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10449 # To allow for filename-based versioning support, we need to create
10450 # libNAME.so.V as an archive file, containing:
10451 # *) an Import File, referring to the versioned filename of the
10452 # archive as well as the shared archive member, telling the
10453 # bitwidth (32 or 64) of that shared object, and providing the
10454 # list of exported symbols of that shared object, eventually
10455 # decorated with the 'weak' keyword
10456 # *) the shared object with the F_LOADONLY flag set, to really avoid
10457 # it being seen by the linker.
10458 # At run time we better use the real file rather than another symlink,
10459 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10460
10461 case $with_aix_soname,$aix_use_runtimelinking in
10462 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10463 # soname into executable. Probably we can add versioning support to
10464 # collect2, so additional links can be useful in future.
10465 aix,yes) # traditional libtool
10466 dynamic_linker='AIX unversionable lib.so'
10467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10468 # instead of lib<name>.a to let people know that these are not
10469 # typical AIX shared libraries.
10470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10471 ;;
10472 aix,no) # traditional AIX only
10473 dynamic_linker='AIX lib.a(lib.so.V)'
10474 # We preserve .a as extension for shared libraries through AIX4.2
10475 # and later when we are not doing run time linking.
10476 library_names_spec='$libname$release.a $libname.a'
10477 soname_spec='$libname$release$shared_ext$major'
10478 ;;
10479 svr4,*) # full svr4 only
10480 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10481 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10482 # We do not specify a path in Import Files, so LIBPATH fires.
10483 shlibpath_overrides_runpath=yes
10484 ;;
10485 *,yes) # both, prefer svr4
10486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10488 # unpreferred sharedlib libNAME.a needs extra handling
10489 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"'
10490 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"'
10491 # We do not specify a path in Import Files, so LIBPATH fires.
10492 shlibpath_overrides_runpath=yes
10493 ;;
10494 *,no) # both, prefer aix
10495 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10496 library_names_spec='$libname$release.a $libname.a'
10497 soname_spec='$libname$release$shared_ext$major'
10498 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10499 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)'
10500 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"'
10501 ;;
10502 esac
10503 shlibpath_var=LIBPATH
10504 fi
10505 ;;
10506
10507 amigaos*)
10508 case $host_cpu in
10509 powerpc)
10510 # Since July 2007 AmigaOS4 officially supports .so libraries.
10511 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10513 ;;
10514 m68k)
10515 library_names_spec='$libname.ixlibrary $libname.a'
10516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10517 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'
10518 ;;
10519 esac
10520 ;;
10521
10522 beos*)
10523 library_names_spec='$libname$shared_ext'
10524 dynamic_linker="$host_os ld.so"
10525 shlibpath_var=LIBRARY_PATH
10526 ;;
10527
10528 bsdi[45]*)
10529 version_type=linux # correct to gnu/linux during the next big refactor
10530 need_version=no
10531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10532 soname_spec='$libname$release$shared_ext$major'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10537 # the default ld.so.conf also contains /usr/contrib/lib and
10538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10539 # libtool to hard-code these into programs
10540 ;;
10541
10542 cygwin* | mingw* | pw32* | cegcc*)
10543 version_type=windows
10544 shrext_cmds=.dll
10545 need_version=no
10546 need_lib_prefix=no
10547
10548 case $GCC,$cc_basename in
10549 yes,*)
10550 # gcc
10551 library_names_spec='$libname.dll.a'
10552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10553 postinstall_cmds='base_file=`basename \$file`~
10554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10555 dldir=$destdir/`dirname \$dlpath`~
10556 test -d \$dldir || mkdir -p \$dldir~
10557 $install_prog $dir/$dlname \$dldir/$dlname~
10558 chmod a+x \$dldir/$dlname~
10559 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10560 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10561 fi'
10562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10563 dlpath=$dir/\$dldll~
10564 $RM \$dlpath'
10565 shlibpath_overrides_runpath=yes
10566
10567 case $host_os in
10568 cygwin*)
10569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10570 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10571
10572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10573 ;;
10574 mingw* | cegcc*)
10575 # MinGW DLLs use traditional 'lib' prefix
10576 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10577 ;;
10578 pw32*)
10579 # pw32 DLLs use 'pw' prefix rather than 'lib'
10580 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10581 ;;
10582 esac
10583 dynamic_linker='Win32 ld.exe'
10584 ;;
10585
10586 *,cl*)
10587 # Native MSVC
10588 libname_spec='$name'
10589 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10590 library_names_spec='$libname.dll.lib'
10591
10592 case $build_os in
10593 mingw*)
10594 sys_lib_search_path_spec=
10595 lt_save_ifs=$IFS
10596 IFS=';'
10597 for lt_path in $LIB
10598 do
10599 IFS=$lt_save_ifs
10600 # Let DOS variable expansion print the short 8.3 style file name.
10601 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10602 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10603 done
10604 IFS=$lt_save_ifs
10605 # Convert to MSYS style.
10606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10607 ;;
10608 cygwin*)
10609 # Convert to unix form, then to dos form, then back to unix form
10610 # but this time dos style (no spaces!) so that the unix form looks
10611 # like /cygdrive/c/PROGRA~1:/cygdr...
10612 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10613 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10614 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10615 ;;
10616 *)
10617 sys_lib_search_path_spec=$LIB
10618 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10619 # It is most probably a Windows format PATH.
10620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10621 else
10622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10623 fi
10624 # FIXME: find the short name or the path components, as spaces are
10625 # common. (e.g. "Program Files" -> "PROGRA~1")
10626 ;;
10627 esac
10628
10629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10630 postinstall_cmds='base_file=`basename \$file`~
10631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10632 dldir=$destdir/`dirname \$dlpath`~
10633 test -d \$dldir || mkdir -p \$dldir~
10634 $install_prog $dir/$dlname \$dldir/$dlname'
10635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10636 dlpath=$dir/\$dldll~
10637 $RM \$dlpath'
10638 shlibpath_overrides_runpath=yes
10639 dynamic_linker='Win32 link.exe'
10640 ;;
10641
10642 *)
10643 # Assume MSVC wrapper
10644 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10645 dynamic_linker='Win32 ld.exe'
10646 ;;
10647 esac
10648 # FIXME: first we should search . and the directory the executable is in
10649 shlibpath_var=PATH
10650 ;;
10651
10652 darwin* | rhapsody*)
10653 dynamic_linker="$host_os dyld"
10654 version_type=darwin
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10658 soname_spec='$libname$release$major$shared_ext'
10659 shlibpath_overrides_runpath=yes
10660 shlibpath_var=DYLD_LIBRARY_PATH
10661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10662
10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10665 ;;
10666
10667 dgux*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10672 soname_spec='$libname$release$shared_ext$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 ;;
10675
10676 freebsd* | dragonfly*)
10677 # DragonFly does not have aout. When/if they implement a new
10678 # versioning mechanism, adjust this.
10679 if test -x /usr/bin/objformat; then
10680 objformat=`/usr/bin/objformat`
10681 else
10682 case $host_os in
10683 freebsd[23].*) objformat=aout ;;
10684 *) objformat=elf ;;
10685 esac
10686 fi
10687 version_type=freebsd-$objformat
10688 case $version_type in
10689 freebsd-elf*)
10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691 soname_spec='$libname$release$shared_ext$major'
10692 need_version=no
10693 need_lib_prefix=no
10694 ;;
10695 freebsd-*)
10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10697 need_version=yes
10698 ;;
10699 esac
10700 shlibpath_var=LD_LIBRARY_PATH
10701 case $host_os in
10702 freebsd2.*)
10703 shlibpath_overrides_runpath=yes
10704 ;;
10705 freebsd3.[01]* | freebsdelf3.[01]*)
10706 shlibpath_overrides_runpath=yes
10707 hardcode_into_libs=yes
10708 ;;
10709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10711 shlibpath_overrides_runpath=no
10712 hardcode_into_libs=yes
10713 ;;
10714 *) # from 4.6 on, and DragonFly
10715 shlibpath_overrides_runpath=yes
10716 hardcode_into_libs=yes
10717 ;;
10718 esac
10719 ;;
10720
10721 haiku*)
10722 version_type=linux # correct to gnu/linux during the next big refactor
10723 need_lib_prefix=no
10724 need_version=no
10725 dynamic_linker="$host_os runtime_loader"
10726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10727 soname_spec='$libname$release$shared_ext$major'
10728 shlibpath_var=LIBRARY_PATH
10729 shlibpath_overrides_runpath=no
10730 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10731 hardcode_into_libs=yes
10732 ;;
10733
10734 hpux9* | hpux10* | hpux11*)
10735 # Give a soname corresponding to the major version so that dld.sl refuses to
10736 # link against other versions.
10737 version_type=sunos
10738 need_lib_prefix=no
10739 need_version=no
10740 case $host_cpu in
10741 ia64*)
10742 shrext_cmds='.so'
10743 hardcode_into_libs=yes
10744 dynamic_linker="$host_os dld.so"
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10748 soname_spec='$libname$release$shared_ext$major'
10749 if test 32 = "$HPUX_IA64_MODE"; then
10750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10751 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10752 else
10753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10754 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10755 fi
10756 ;;
10757 hppa*64*)
10758 shrext_cmds='.sl'
10759 hardcode_into_libs=yes
10760 dynamic_linker="$host_os dld.sl"
10761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764 soname_spec='$libname$release$shared_ext$major'
10765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767 ;;
10768 *)
10769 shrext_cmds='.sl'
10770 dynamic_linker="$host_os dld.sl"
10771 shlibpath_var=SHLIB_PATH
10772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10774 soname_spec='$libname$release$shared_ext$major'
10775 ;;
10776 esac
10777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10778 postinstall_cmds='chmod 555 $lib'
10779 # or fails outright, so override atomically:
10780 install_override_mode=555
10781 ;;
10782
10783 interix[3-9]*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10788 soname_spec='$libname$release$shared_ext$major'
10789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 ;;
10794
10795 irix5* | irix6* | nonstopux*)
10796 case $host_os in
10797 nonstopux*) version_type=nonstopux ;;
10798 *)
10799 if test yes = "$lt_cv_prog_gnu_ld"; then
10800 version_type=linux # correct to gnu/linux during the next big refactor
10801 else
10802 version_type=irix
10803 fi ;;
10804 esac
10805 need_lib_prefix=no
10806 need_version=no
10807 soname_spec='$libname$release$shared_ext$major'
10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10809 case $host_os in
10810 irix5* | nonstopux*)
10811 libsuff= shlibsuff=
10812 ;;
10813 *)
10814 case $LD in # libtool.m4 will add one of these switches to LD
10815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10816 libsuff= shlibsuff= libmagic=32-bit;;
10817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10818 libsuff=32 shlibsuff=N32 libmagic=N32;;
10819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10821 *) libsuff= shlibsuff= libmagic=never-match;;
10822 esac
10823 ;;
10824 esac
10825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10826 shlibpath_overrides_runpath=no
10827 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10828 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10829 hardcode_into_libs=yes
10830 ;;
10831
10832 # No shared lib support for Linux oldld, aout, or coff.
10833 linux*oldld* | linux*aout* | linux*coff*)
10834 dynamic_linker=no
10835 ;;
10836
10837 linux*android*)
10838 version_type=none # Android doesn't support versioned libraries.
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='$libname$release$shared_ext'
10842 soname_spec='$libname$release$shared_ext'
10843 finish_cmds=
10844 shlibpath_var=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes
10846
10847 # This implies no fast_install, which is unacceptable.
10848 # Some rework will be needed to allow for fast_install
10849 # before this can be enabled.
10850 hardcode_into_libs=yes
10851
10852 dynamic_linker='Android linker'
10853 # Don't embed -rpath directories since the linker doesn't support them.
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 ;;
10856
10857 # This must be glibc/ELF.
10858 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10859 version_type=linux # correct to gnu/linux during the next big refactor
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10863 soname_spec='$libname$release$shared_ext$major'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10867
10868 # Some binutils ld are patched to set DT_RUNPATH
10869 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 lt_cv_shlibpath_overrides_runpath=no
10873 save_LDFLAGS=$LDFLAGS
10874 save_libdir=$libdir
10875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879
10880 int
10881 main ()
10882 {
10883
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10890 lt_cv_shlibpath_overrides_runpath=yes
10891 fi
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LDFLAGS=$save_LDFLAGS
10896 libdir=$save_libdir
10897
10898 fi
10899
10900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10901
10902 # This implies no fast_install, which is unacceptable.
10903 # Some rework will be needed to allow for fast_install
10904 # before this can be enabled.
10905 hardcode_into_libs=yes
10906
10907 # Ideally, we could use ldconfig to report *all* directores which are
10908 # searched for libraries, however this is still not possible. Aside from not
10909 # being certain /sbin/ldconfig is available, command
10910 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10911 # even though it is searched at run-time. Try to do the best guess by
10912 # appending ld.so.conf contents (and includes) to the search path.
10913 if test -f /etc/ld.so.conf; then
10914 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' ' '`
10915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10916 fi
10917
10918 # We used to test for /lib/ld.so.1 and disable shared libraries on
10919 # powerpc, because MkLinux only supported shared libraries with the
10920 # GNU dynamic linker. Since this was broken with cross compilers,
10921 # most powerpc-linux boxes support dynamic linking these days and
10922 # people can always --disable-shared, the test was removed, and we
10923 # assume the GNU/Linux dynamic linker is in use.
10924 dynamic_linker='GNU/Linux ld.so'
10925 ;;
10926
10927 netbsd*)
10928 version_type=sunos
10929 need_lib_prefix=no
10930 need_version=no
10931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 dynamic_linker='NetBSD (a.out) ld.so'
10935 else
10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937 soname_spec='$libname$release$shared_ext$major'
10938 dynamic_linker='NetBSD ld.elf_so'
10939 fi
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10943 ;;
10944
10945 newsos6)
10946 version_type=linux # correct to gnu/linux during the next big refactor
10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=yes
10950 ;;
10951
10952 *nto* | *qnx*)
10953 version_type=qnx
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10957 soname_spec='$libname$release$shared_ext$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=no
10960 hardcode_into_libs=yes
10961 dynamic_linker='ldqnx.so'
10962 ;;
10963
10964 openbsd* | bitrig*)
10965 version_type=sunos
10966 sys_lib_dlsearch_path_spec=/usr/lib
10967 need_lib_prefix=no
10968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10969 need_version=no
10970 else
10971 need_version=yes
10972 fi
10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=yes
10977 ;;
10978
10979 os2*)
10980 libname_spec='$name'
10981 version_type=windows
10982 shrext_cmds=.dll
10983 need_version=no
10984 need_lib_prefix=no
10985 # OS/2 can only load a DLL with a base name of 8 characters or less.
10986 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10987 v=$($ECHO $release$versuffix | tr -d .-);
10988 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10989 $ECHO $n$v`$shared_ext'
10990 library_names_spec='${libname}_dll.$libext'
10991 dynamic_linker='OS/2 ld.exe'
10992 shlibpath_var=BEGINLIBPATH
10993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995 postinstall_cmds='base_file=`basename \$file`~
10996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10997 dldir=$destdir/`dirname \$dlpath`~
10998 test -d \$dldir || mkdir -p \$dldir~
10999 $install_prog $dir/$dlname \$dldir/$dlname~
11000 chmod a+x \$dldir/$dlname~
11001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11003 fi'
11004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11005 dlpath=$dir/\$dldll~
11006 $RM \$dlpath'
11007 ;;
11008
11009 osf3* | osf4* | osf5*)
11010 version_type=osf
11011 need_lib_prefix=no
11012 need_version=no
11013 soname_spec='$libname$release$shared_ext$major'
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11018 ;;
11019
11020 rdos*)
11021 dynamic_linker=no
11022 ;;
11023
11024 solaris*)
11025 version_type=linux # correct to gnu/linux during the next big refactor
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11029 soname_spec='$libname$release$shared_ext$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes
11032 hardcode_into_libs=yes
11033 # ldd complains unless libraries are executable
11034 postinstall_cmds='chmod +x $lib'
11035 ;;
11036
11037 sunos4*)
11038 version_type=sunos
11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 if test yes = "$with_gnu_ld"; then
11044 need_lib_prefix=no
11045 fi
11046 need_version=yes
11047 ;;
11048
11049 sysv4 | sysv4.3*)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052 soname_spec='$libname$release$shared_ext$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 case $host_vendor in
11055 sni)
11056 shlibpath_overrides_runpath=no
11057 need_lib_prefix=no
11058 runpath_var=LD_RUN_PATH
11059 ;;
11060 siemens)
11061 need_lib_prefix=no
11062 ;;
11063 motorola)
11064 need_lib_prefix=no
11065 need_version=no
11066 shlibpath_overrides_runpath=no
11067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11068 ;;
11069 esac
11070 ;;
11071
11072 sysv4*MP*)
11073 if test -d /usr/nec; then
11074 version_type=linux # correct to gnu/linux during the next big refactor
11075 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11076 soname_spec='$libname$shared_ext.$major'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 fi
11079 ;;
11080
11081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11082 version_type=sco
11083 need_lib_prefix=no
11084 need_version=no
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11086 soname_spec='$libname$release$shared_ext$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 hardcode_into_libs=yes
11090 if test yes = "$with_gnu_ld"; then
11091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11092 else
11093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11094 case $host_os in
11095 sco3.2v5*)
11096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11097 ;;
11098 esac
11099 fi
11100 sys_lib_dlsearch_path_spec='/usr/lib'
11101 ;;
11102
11103 tpf*)
11104 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=no
11111 hardcode_into_libs=yes
11112 ;;
11113
11114 uts4*)
11115 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11117 soname_spec='$libname$release$shared_ext$major'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 ;;
11120
11121 *)
11122 dynamic_linker=no
11123 ;;
11124 esac
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11126 $as_echo "$dynamic_linker" >&6; }
11127 test no = "$dynamic_linker" && can_build_shared=no
11128
11129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11130 if test yes = "$GCC"; then
11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11132 fi
11133
11134 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11135 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11136 fi
11137
11138 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11139 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11140 fi
11141
11142 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11143 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11144
11145 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11146 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11147
11148 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11149 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11249 hardcode_action=
11250 if test -n "$hardcode_libdir_flag_spec" ||
11251 test -n "$runpath_var" ||
11252 test yes = "$hardcode_automatic"; then
11253
11254 # We can hardcode non-existent directories.
11255 if test no != "$hardcode_direct" &&
11256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11257 # have to relink, otherwise we might link with an installed library
11258 # when we should be linking with a yet-to-be-installed one
11259 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11260 test no != "$hardcode_minus_L"; then
11261 # Linking always hardcodes the temporary library directory.
11262 hardcode_action=relink
11263 else
11264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11265 hardcode_action=immediate
11266 fi
11267 else
11268 # We cannot hardcode anything, or else we can only hardcode existing
11269 # directories.
11270 hardcode_action=unsupported
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11273 $as_echo "$hardcode_action" >&6; }
11274
11275 if test relink = "$hardcode_action" ||
11276 test yes = "$inherit_rpath"; then
11277 # Fast installation is not supported
11278 enable_fast_install=no
11279 elif test yes = "$shlibpath_overrides_runpath" ||
11280 test no = "$enable_shared"; then
11281 # Fast installation is not necessary
11282 enable_fast_install=needless
11283 fi
11284
11285
11286
11287
11288
11289
11290 if test yes != "$enable_dlopen"; then
11291 enable_dlopen=unknown
11292 enable_dlopen_self=unknown
11293 enable_dlopen_self_static=unknown
11294 else
11295 lt_cv_dlopen=no
11296 lt_cv_dlopen_libs=
11297
11298 case $host_os in
11299 beos*)
11300 lt_cv_dlopen=load_add_on
11301 lt_cv_dlopen_libs=
11302 lt_cv_dlopen_self=yes
11303 ;;
11304
11305 mingw* | pw32* | cegcc*)
11306 lt_cv_dlopen=LoadLibrary
11307 lt_cv_dlopen_libs=
11308 ;;
11309
11310 cygwin*)
11311 lt_cv_dlopen=dlopen
11312 lt_cv_dlopen_libs=
11313 ;;
11314
11315 darwin*)
11316 # if libdl is installed we need to link against it
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11318 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11319 if ${ac_cv_lib_dl_dlopen+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 ac_check_lib_save_LIBS=$LIBS
11323 LIBS="-ldl $LIBS"
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326
11327 /* Override any GCC internal prototype to avoid an error.
11328 Use char because int might match the return type of a GCC
11329 builtin and then its argument prototype would still apply. */
11330 #ifdef __cplusplus
11331 extern "C"
11332 #endif
11333 char dlopen ();
11334 int
11335 main ()
11336 {
11337 return dlopen ();
11338 ;
11339 return 0;
11340 }
11341 _ACEOF
11342 if ac_fn_c_try_link "$LINENO"; then :
11343 ac_cv_lib_dl_dlopen=yes
11344 else
11345 ac_cv_lib_dl_dlopen=no
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11353 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11354 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11355 else
11356
11357 lt_cv_dlopen=dyld
11358 lt_cv_dlopen_libs=
11359 lt_cv_dlopen_self=yes
11360
11361 fi
11362
11363 ;;
11364
11365 tpf*)
11366 # Don't try to run any link tests for TPF. We know it's impossible
11367 # because TPF is a cross-compiler, and we know how we open DSOs.
11368 lt_cv_dlopen=dlopen
11369 lt_cv_dlopen_libs=
11370 lt_cv_dlopen_self=no
11371 ;;
11372
11373 *)
11374 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11375 if test "x$ac_cv_func_shl_load" = xyes; then :
11376 lt_cv_dlopen=shl_load
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11379 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11380 if ${ac_cv_lib_dld_shl_load+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldld $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char shl_load ();
11395 int
11396 main ()
11397 {
11398 return shl_load ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_dld_shl_load=yes
11405 else
11406 ac_cv_lib_dld_shl_load=no
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11413 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11414 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11415 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11416 else
11417 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11418 if test "x$ac_cv_func_dlopen" = xyes; then :
11419 lt_cv_dlopen=dlopen
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11423 if ${ac_cv_lib_dl_dlopen+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 ac_check_lib_save_LIBS=$LIBS
11427 LIBS="-ldl $LIBS"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char dlopen ();
11438 int
11439 main ()
11440 {
11441 return dlopen ();
11442 ;
11443 return 0;
11444 }
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 ac_cv_lib_dl_dlopen=yes
11448 else
11449 ac_cv_lib_dl_dlopen=no
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11456 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11457 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11458 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11461 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11462 if ${ac_cv_lib_svld_dlopen+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-lsvld $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char dlopen ();
11477 int
11478 main ()
11479 {
11480 return dlopen ();
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_svld_dlopen=yes
11487 else
11488 ac_cv_lib_svld_dlopen=no
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11495 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11496 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11497 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11500 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11501 if ${ac_cv_lib_dld_dld_link+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-ldld $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512 #ifdef __cplusplus
11513 extern "C"
11514 #endif
11515 char dld_link ();
11516 int
11517 main ()
11518 {
11519 return dld_link ();
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dld_dld_link=yes
11526 else
11527 ac_cv_lib_dld_dld_link=no
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_lib_save_LIBS
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11534 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11535 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11536 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11537 fi
11538
11539
11540 fi
11541
11542
11543 fi
11544
11545
11546 fi
11547
11548
11549 fi
11550
11551
11552 fi
11553
11554 ;;
11555 esac
11556
11557 if test no = "$lt_cv_dlopen"; then
11558 enable_dlopen=no
11559 else
11560 enable_dlopen=yes
11561 fi
11562
11563 case $lt_cv_dlopen in
11564 dlopen)
11565 save_CPPFLAGS=$CPPFLAGS
11566 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11567
11568 save_LDFLAGS=$LDFLAGS
11569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11570
11571 save_LIBS=$LIBS
11572 LIBS="$lt_cv_dlopen_libs $LIBS"
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11575 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11576 if ${lt_cv_dlopen_self+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 if test yes = "$cross_compiling"; then :
11580 lt_cv_dlopen_self=cross
11581 else
11582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11583 lt_status=$lt_dlunknown
11584 cat > conftest.$ac_ext <<_LT_EOF
11585 #line $LINENO "configure"
11586 #include "confdefs.h"
11587
11588 #if HAVE_DLFCN_H
11589 #include <dlfcn.h>
11590 #endif
11591
11592 #include <stdio.h>
11593
11594 #ifdef RTLD_GLOBAL
11595 # define LT_DLGLOBAL RTLD_GLOBAL
11596 #else
11597 # ifdef DL_GLOBAL
11598 # define LT_DLGLOBAL DL_GLOBAL
11599 # else
11600 # define LT_DLGLOBAL 0
11601 # endif
11602 #endif
11603
11604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605 find out it does not work in some platform. */
11606 #ifndef LT_DLLAZY_OR_NOW
11607 # ifdef RTLD_LAZY
11608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11609 # else
11610 # ifdef DL_LAZY
11611 # define LT_DLLAZY_OR_NOW DL_LAZY
11612 # else
11613 # ifdef RTLD_NOW
11614 # define LT_DLLAZY_OR_NOW RTLD_NOW
11615 # else
11616 # ifdef DL_NOW
11617 # define LT_DLLAZY_OR_NOW DL_NOW
11618 # else
11619 # define LT_DLLAZY_OR_NOW 0
11620 # endif
11621 # endif
11622 # endif
11623 # endif
11624 #endif
11625
11626 /* When -fvisibility=hidden is used, assume the code has been annotated
11627 correspondingly for the symbols needed. */
11628 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11629 int fnord () __attribute__((visibility("default")));
11630 #endif
11631
11632 int fnord () { return 42; }
11633 int main ()
11634 {
11635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11636 int status = $lt_dlunknown;
11637
11638 if (self)
11639 {
11640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11641 else
11642 {
11643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644 else puts (dlerror ());
11645 }
11646 /* dlclose (self); */
11647 }
11648 else
11649 puts (dlerror ());
11650
11651 return status;
11652 }
11653 _LT_EOF
11654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11659 (./conftest; exit; ) >&5 2>/dev/null
11660 lt_status=$?
11661 case x$lt_status in
11662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11665 esac
11666 else :
11667 # compilation failed
11668 lt_cv_dlopen_self=no
11669 fi
11670 fi
11671 rm -fr conftest*
11672
11673
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11676 $as_echo "$lt_cv_dlopen_self" >&6; }
11677
11678 if test yes = "$lt_cv_dlopen_self"; then
11679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11681 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11682 if ${lt_cv_dlopen_self_static+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test yes = "$cross_compiling"; then :
11686 lt_cv_dlopen_self_static=cross
11687 else
11688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11689 lt_status=$lt_dlunknown
11690 cat > conftest.$ac_ext <<_LT_EOF
11691 #line $LINENO "configure"
11692 #include "confdefs.h"
11693
11694 #if HAVE_DLFCN_H
11695 #include <dlfcn.h>
11696 #endif
11697
11698 #include <stdio.h>
11699
11700 #ifdef RTLD_GLOBAL
11701 # define LT_DLGLOBAL RTLD_GLOBAL
11702 #else
11703 # ifdef DL_GLOBAL
11704 # define LT_DLGLOBAL DL_GLOBAL
11705 # else
11706 # define LT_DLGLOBAL 0
11707 # endif
11708 #endif
11709
11710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11711 find out it does not work in some platform. */
11712 #ifndef LT_DLLAZY_OR_NOW
11713 # ifdef RTLD_LAZY
11714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11715 # else
11716 # ifdef DL_LAZY
11717 # define LT_DLLAZY_OR_NOW DL_LAZY
11718 # else
11719 # ifdef RTLD_NOW
11720 # define LT_DLLAZY_OR_NOW RTLD_NOW
11721 # else
11722 # ifdef DL_NOW
11723 # define LT_DLLAZY_OR_NOW DL_NOW
11724 # else
11725 # define LT_DLLAZY_OR_NOW 0
11726 # endif
11727 # endif
11728 # endif
11729 # endif
11730 #endif
11731
11732 /* When -fvisibility=hidden is used, assume the code has been annotated
11733 correspondingly for the symbols needed. */
11734 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11735 int fnord () __attribute__((visibility("default")));
11736 #endif
11737
11738 int fnord () { return 42; }
11739 int main ()
11740 {
11741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11742 int status = $lt_dlunknown;
11743
11744 if (self)
11745 {
11746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11747 else
11748 {
11749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11750 else puts (dlerror ());
11751 }
11752 /* dlclose (self); */
11753 }
11754 else
11755 puts (dlerror ());
11756
11757 return status;
11758 }
11759 _LT_EOF
11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11765 (./conftest; exit; ) >&5 2>/dev/null
11766 lt_status=$?
11767 case x$lt_status in
11768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11771 esac
11772 else :
11773 # compilation failed
11774 lt_cv_dlopen_self_static=no
11775 fi
11776 fi
11777 rm -fr conftest*
11778
11779
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11782 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11783 fi
11784
11785 CPPFLAGS=$save_CPPFLAGS
11786 LDFLAGS=$save_LDFLAGS
11787 LIBS=$save_LIBS
11788 ;;
11789 esac
11790
11791 case $lt_cv_dlopen_self in
11792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11793 *) enable_dlopen_self=unknown ;;
11794 esac
11795
11796 case $lt_cv_dlopen_self_static in
11797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11798 *) enable_dlopen_self_static=unknown ;;
11799 esac
11800 fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818 striplib=
11819 old_striplib=
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11821 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11822 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11823 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11824 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826 $as_echo "yes" >&6; }
11827 else
11828 # FIXME - insert some real tests, host_os isn't really good enough
11829 case $host_os in
11830 darwin*)
11831 if test -n "$STRIP"; then
11832 striplib="$STRIP -x"
11833 old_striplib="$STRIP -S"
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11835 $as_echo "yes" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840 ;;
11841 *)
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 ;;
11845 esac
11846 fi
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859 # Report what library types will actually be built
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11861 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11863 $as_echo "$can_build_shared" >&6; }
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11866 $as_echo_n "checking whether to build shared libraries... " >&6; }
11867 test no = "$can_build_shared" && enable_shared=no
11868
11869 # On AIX, shared libraries and static libraries use the same namespace, and
11870 # are all built from PIC.
11871 case $host_os in
11872 aix3*)
11873 test yes = "$enable_shared" && enable_static=no
11874 if test -n "$RANLIB"; then
11875 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11876 postinstall_cmds='$RANLIB $lib'
11877 fi
11878 ;;
11879
11880 aix[4-9]*)
11881 if test ia64 != "$host_cpu"; then
11882 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11883 yes,aix,yes) ;; # shared object as lib.so file only
11884 yes,svr4,*) ;; # shared object as lib.so archive member only
11885 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11886 esac
11887 fi
11888 ;;
11889 esac
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11891 $as_echo "$enable_shared" >&6; }
11892
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11894 $as_echo_n "checking whether to build static libraries... " >&6; }
11895 # Make sure either enable_shared or enable_static is yes.
11896 test yes = "$enable_shared" || enable_static=yes
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11898 $as_echo "$enable_static" >&6; }
11899
11900
11901
11902
11903 fi
11904 ac_ext=c
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11909
11910 CC=$lt_save_CC
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 ac_config_commands="$ac_config_commands libtool"
11927
11928
11929
11930
11931 # Only expand once:
11932
11933
11934
11935 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11948 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11949 if ${ac_cv_prog_cc_c99+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_cv_prog_cc_c99=no
11953 ac_save_CC=$CC
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <stdarg.h>
11957 #include <stdbool.h>
11958 #include <stdlib.h>
11959 #include <wchar.h>
11960 #include <stdio.h>
11961
11962 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11963 #define debug(...) fprintf (stderr, __VA_ARGS__)
11964 #define showlist(...) puts (#__VA_ARGS__)
11965 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11966 static void
11967 test_varargs_macros (void)
11968 {
11969 int x = 1234;
11970 int y = 5678;
11971 debug ("Flag");
11972 debug ("X = %d\n", x);
11973 showlist (The first, second, and third items.);
11974 report (x>y, "x is %d but y is %d", x, y);
11975 }
11976
11977 // Check long long types.
11978 #define BIG64 18446744073709551615ull
11979 #define BIG32 4294967295ul
11980 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11981 #if !BIG_OK
11982 your preprocessor is broken;
11983 #endif
11984 #if BIG_OK
11985 #else
11986 your preprocessor is broken;
11987 #endif
11988 static long long int bignum = -9223372036854775807LL;
11989 static unsigned long long int ubignum = BIG64;
11990
11991 struct incomplete_array
11992 {
11993 int datasize;
11994 double data[];
11995 };
11996
11997 struct named_init {
11998 int number;
11999 const wchar_t *name;
12000 double average;
12001 };
12002
12003 typedef const char *ccp;
12004
12005 static inline int
12006 test_restrict (ccp restrict text)
12007 {
12008 // See if C++-style comments work.
12009 // Iterate through items via the restricted pointer.
12010 // Also check for declarations in for loops.
12011 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12012 continue;
12013 return 0;
12014 }
12015
12016 // Check varargs and va_copy.
12017 static void
12018 test_varargs (const char *format, ...)
12019 {
12020 va_list args;
12021 va_start (args, format);
12022 va_list args_copy;
12023 va_copy (args_copy, args);
12024
12025 const char *str;
12026 int number;
12027 float fnumber;
12028
12029 while (*format)
12030 {
12031 switch (*format++)
12032 {
12033 case 's': // string
12034 str = va_arg (args_copy, const char *);
12035 break;
12036 case 'd': // int
12037 number = va_arg (args_copy, int);
12038 break;
12039 case 'f': // float
12040 fnumber = va_arg (args_copy, double);
12041 break;
12042 default:
12043 break;
12044 }
12045 }
12046 va_end (args_copy);
12047 va_end (args);
12048 }
12049
12050 int
12051 main ()
12052 {
12053
12054 // Check bool.
12055 _Bool success = false;
12056
12057 // Check restrict.
12058 if (test_restrict ("String literal") == 0)
12059 success = true;
12060 char *restrict newvar = "Another string";
12061
12062 // Check varargs.
12063 test_varargs ("s, d' f .", "string", 65, 34.234);
12064 test_varargs_macros ();
12065
12066 // Check flexible array members.
12067 struct incomplete_array *ia =
12068 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12069 ia->datasize = 10;
12070 for (int i = 0; i < ia->datasize; ++i)
12071 ia->data[i] = i * 1.234;
12072
12073 // Check named initializers.
12074 struct named_init ni = {
12075 .number = 34,
12076 .name = L"Test wide string",
12077 .average = 543.34343,
12078 };
12079
12080 ni.number = 58;
12081
12082 int dynamic_array[ni.number];
12083 dynamic_array[ni.number - 1] = 543;
12084
12085 // work around unused variable warnings
12086 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12087 || dynamic_array[ni.number - 1] != 543);
12088
12089 ;
12090 return 0;
12091 }
12092 _ACEOF
12093 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12094 do
12095 CC="$ac_save_CC $ac_arg"
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 ac_cv_prog_cc_c99=$ac_arg
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext
12100 test "x$ac_cv_prog_cc_c99" != "xno" && break
12101 done
12102 rm -f conftest.$ac_ext
12103 CC=$ac_save_CC
12104
12105 fi
12106 # AC_CACHE_VAL
12107 case "x$ac_cv_prog_cc_c99" in
12108 x)
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12110 $as_echo "none needed" >&6; } ;;
12111 xno)
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12113 $as_echo "unsupported" >&6; } ;;
12114 *)
12115 CC="$CC $ac_cv_prog_cc_c99"
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12117 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12118 esac
12119 if test "x$ac_cv_prog_cc_c99" != xno; then :
12120
12121 fi
12122
12123
12124
12125
12126
12127
12128 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12129 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12130 CLANGCC="yes"
12131 else
12132 CLANGCC="no"
12133 fi
12134
12135 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12136 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12137 INTELCC="yes"
12138 else
12139 INTELCC="no"
12140 fi
12141
12142 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12143 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12144 SUNCC="yes"
12145 else
12146 SUNCC="no"
12147 fi
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12158 if test -n "$ac_tool_prefix"; then
12159 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12160 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 case $PKG_CONFIG in
12167 [\\/]* | ?:[\\/]*)
12168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12169 ;;
12170 *)
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12181 fi
12182 done
12183 done
12184 IFS=$as_save_IFS
12185
12186 ;;
12187 esac
12188 fi
12189 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12190 if test -n "$PKG_CONFIG"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12192 $as_echo "$PKG_CONFIG" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197
12198
12199 fi
12200 if test -z "$ac_cv_path_PKG_CONFIG"; then
12201 ac_pt_PKG_CONFIG=$PKG_CONFIG
12202 # Extract the first word of "pkg-config", so it can be a program name with args.
12203 set dummy pkg-config; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 case $ac_pt_PKG_CONFIG in
12210 [\\/]* | ?:[\\/]*)
12211 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12212 ;;
12213 *)
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12216 do
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12221 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12224 fi
12225 done
12226 done
12227 IFS=$as_save_IFS
12228
12229 ;;
12230 esac
12231 fi
12232 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12233 if test -n "$ac_pt_PKG_CONFIG"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12235 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239 fi
12240
12241 if test "x$ac_pt_PKG_CONFIG" = x; then
12242 PKG_CONFIG=""
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250 PKG_CONFIG=$ac_pt_PKG_CONFIG
12251 fi
12252 else
12253 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12254 fi
12255
12256 fi
12257 if test -n "$PKG_CONFIG"; then
12258 _pkg_min_version=0.9.0
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12260 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12261 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 PKG_CONFIG=""
12268 fi
12269 fi
12270
12271
12272
12273
12274
12275 # Check whether --enable-selective-werror was given.
12276 if test "${enable_selective_werror+set}" = set; then :
12277 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12278 else
12279 SELECTIVE_WERROR=yes
12280 fi
12281
12282
12283
12284
12285
12286 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12287 if test "x$SUNCC" = "xyes"; then
12288 BASE_CFLAGS="-v"
12289 else
12290 BASE_CFLAGS=""
12291 fi
12292
12293 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307 xorg_testset_save_CFLAGS="$CFLAGS"
12308
12309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 int i;
12319 _ACEOF
12320 if ac_fn_c_try_compile "$LINENO"; then :
12321 xorg_cv_cc_flag_unknown_warning_option=yes
12322 else
12323 xorg_cv_cc_flag_unknown_warning_option=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12330 CFLAGS="$xorg_testset_save_CFLAGS"
12331 fi
12332
12333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12336 fi
12337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 int i;
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348 xorg_cv_cc_flag_unused_command_line_argument=yes
12349 else
12350 xorg_cv_cc_flag_unused_command_line_argument=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12357 CFLAGS="$xorg_testset_save_CFLAGS"
12358 fi
12359
12360 found="no"
12361
12362 if test $found = "no" ; then
12363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12365 fi
12366
12367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12369 fi
12370
12371 CFLAGS="$CFLAGS -Wall"
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12374 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12375 cacheid=xorg_cv_cc_flag__Wall
12376 if eval \${$cacheid+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381 int i;
12382 int
12383 main ()
12384 {
12385
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 eval $cacheid=yes
12392 else
12393 eval $cacheid=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 fi
12398
12399
12400 CFLAGS="$xorg_testset_save_CFLAGS"
12401
12402 eval supported=\$$cacheid
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12404 $as_echo "$supported" >&6; }
12405 if test "$supported" = "yes" ; then
12406 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12407 found="yes"
12408 fi
12409 fi
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425 xorg_testset_save_CFLAGS="$CFLAGS"
12426
12427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 int i;
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 xorg_cv_cc_flag_unknown_warning_option=yes
12440 else
12441 xorg_cv_cc_flag_unknown_warning_option=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12448 CFLAGS="$xorg_testset_save_CFLAGS"
12449 fi
12450
12451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454 fi
12455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 int i;
12464 _ACEOF
12465 if ac_fn_c_try_compile "$LINENO"; then :
12466 xorg_cv_cc_flag_unused_command_line_argument=yes
12467 else
12468 xorg_cv_cc_flag_unused_command_line_argument=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12475 CFLAGS="$xorg_testset_save_CFLAGS"
12476 fi
12477
12478 found="no"
12479
12480 if test $found = "no" ; then
12481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12483 fi
12484
12485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12487 fi
12488
12489 CFLAGS="$CFLAGS -Wpointer-arith"
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12492 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12493 cacheid=xorg_cv_cc_flag__Wpointer_arith
12494 if eval \${$cacheid+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 int i;
12500 int
12501 main ()
12502 {
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_link "$LINENO"; then :
12509 eval $cacheid=yes
12510 else
12511 eval $cacheid=no
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
12515 fi
12516
12517
12518 CFLAGS="$xorg_testset_save_CFLAGS"
12519
12520 eval supported=\$$cacheid
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12522 $as_echo "$supported" >&6; }
12523 if test "$supported" = "yes" ; then
12524 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12525 found="yes"
12526 fi
12527 fi
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543 xorg_testset_save_CFLAGS="$CFLAGS"
12544
12545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 int i;
12555 _ACEOF
12556 if ac_fn_c_try_compile "$LINENO"; then :
12557 xorg_cv_cc_flag_unknown_warning_option=yes
12558 else
12559 xorg_cv_cc_flag_unknown_warning_option=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12566 CFLAGS="$xorg_testset_save_CFLAGS"
12567 fi
12568
12569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12572 fi
12573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 int i;
12582 _ACEOF
12583 if ac_fn_c_try_compile "$LINENO"; then :
12584 xorg_cv_cc_flag_unused_command_line_argument=yes
12585 else
12586 xorg_cv_cc_flag_unused_command_line_argument=no
12587 fi
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12593 CFLAGS="$xorg_testset_save_CFLAGS"
12594 fi
12595
12596 found="no"
12597
12598 if test $found = "no" ; then
12599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12601 fi
12602
12603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12605 fi
12606
12607 CFLAGS="$CFLAGS -Wmissing-declarations"
12608
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12610 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12611 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12612 if eval \${$cacheid+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 int i;
12618 int
12619 main ()
12620 {
12621
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 eval $cacheid=yes
12628 else
12629 eval $cacheid=no
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 fi
12634
12635
12636 CFLAGS="$xorg_testset_save_CFLAGS"
12637
12638 eval supported=\$$cacheid
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12640 $as_echo "$supported" >&6; }
12641 if test "$supported" = "yes" ; then
12642 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12643 found="yes"
12644 fi
12645 fi
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661 xorg_testset_save_CFLAGS="$CFLAGS"
12662
12663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 int i;
12673 _ACEOF
12674 if ac_fn_c_try_compile "$LINENO"; then :
12675 xorg_cv_cc_flag_unknown_warning_option=yes
12676 else
12677 xorg_cv_cc_flag_unknown_warning_option=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12684 CFLAGS="$xorg_testset_save_CFLAGS"
12685 fi
12686
12687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12690 fi
12691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 int i;
12700 _ACEOF
12701 if ac_fn_c_try_compile "$LINENO"; then :
12702 xorg_cv_cc_flag_unused_command_line_argument=yes
12703 else
12704 xorg_cv_cc_flag_unused_command_line_argument=no
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12711 CFLAGS="$xorg_testset_save_CFLAGS"
12712 fi
12713
12714 found="no"
12715
12716 if test $found = "no" ; then
12717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12719 fi
12720
12721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12723 fi
12724
12725 CFLAGS="$CFLAGS -Wformat=2"
12726
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12728 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12729 cacheid=xorg_cv_cc_flag__Wformat_2
12730 if eval \${$cacheid+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 int i;
12736 int
12737 main ()
12738 {
12739
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"; then :
12745 eval $cacheid=yes
12746 else
12747 eval $cacheid=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 fi
12752
12753
12754 CFLAGS="$xorg_testset_save_CFLAGS"
12755
12756 eval supported=\$$cacheid
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12758 $as_echo "$supported" >&6; }
12759 if test "$supported" = "yes" ; then
12760 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12761 found="yes"
12762 fi
12763 fi
12764
12765 if test $found = "no" ; then
12766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12768 fi
12769
12770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12772 fi
12773
12774 CFLAGS="$CFLAGS -Wformat"
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12777 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12778 cacheid=xorg_cv_cc_flag__Wformat
12779 if eval \${$cacheid+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 int i;
12785 int
12786 main ()
12787 {
12788
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_link "$LINENO"; then :
12794 eval $cacheid=yes
12795 else
12796 eval $cacheid=no
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 fi
12801
12802
12803 CFLAGS="$xorg_testset_save_CFLAGS"
12804
12805 eval supported=\$$cacheid
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12807 $as_echo "$supported" >&6; }
12808 if test "$supported" = "yes" ; then
12809 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12810 found="yes"
12811 fi
12812 fi
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830 xorg_testset_save_CFLAGS="$CFLAGS"
12831
12832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12835 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12836 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 int i;
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 xorg_cv_cc_flag_unknown_warning_option=yes
12845 else
12846 xorg_cv_cc_flag_unknown_warning_option=no
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12851 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12853 CFLAGS="$xorg_testset_save_CFLAGS"
12854 fi
12855
12856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12859 fi
12860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12862 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12863 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 int i;
12869 _ACEOF
12870 if ac_fn_c_try_compile "$LINENO"; then :
12871 xorg_cv_cc_flag_unused_command_line_argument=yes
12872 else
12873 xorg_cv_cc_flag_unused_command_line_argument=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12878 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12880 CFLAGS="$xorg_testset_save_CFLAGS"
12881 fi
12882
12883 found="no"
12884
12885 if test $found = "no" ; then
12886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12888 fi
12889
12890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12892 fi
12893
12894 CFLAGS="$CFLAGS -Wstrict-prototypes"
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12897 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12898 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12899 if eval \${$cacheid+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904 int i;
12905 int
12906 main ()
12907 {
12908
12909 ;
12910 return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 eval $cacheid=yes
12915 else
12916 eval $cacheid=no
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920 fi
12921
12922
12923 CFLAGS="$xorg_testset_save_CFLAGS"
12924
12925 eval supported=\$$cacheid
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12927 $as_echo "$supported" >&6; }
12928 if test "$supported" = "yes" ; then
12929 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12930 found="yes"
12931 fi
12932 fi
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948 xorg_testset_save_CFLAGS="$CFLAGS"
12949
12950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12953 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12954 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 int i;
12960 _ACEOF
12961 if ac_fn_c_try_compile "$LINENO"; then :
12962 xorg_cv_cc_flag_unknown_warning_option=yes
12963 else
12964 xorg_cv_cc_flag_unknown_warning_option=no
12965 fi
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12969 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12971 CFLAGS="$xorg_testset_save_CFLAGS"
12972 fi
12973
12974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12977 fi
12978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12980 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12981 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986 int i;
12987 _ACEOF
12988 if ac_fn_c_try_compile "$LINENO"; then :
12989 xorg_cv_cc_flag_unused_command_line_argument=yes
12990 else
12991 xorg_cv_cc_flag_unused_command_line_argument=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 fi
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12996 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12998 CFLAGS="$xorg_testset_save_CFLAGS"
12999 fi
13000
13001 found="no"
13002
13003 if test $found = "no" ; then
13004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13006 fi
13007
13008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13010 fi
13011
13012 CFLAGS="$CFLAGS -Wmissing-prototypes"
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13015 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13016 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13017 if eval \${$cacheid+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 int i;
13023 int
13024 main ()
13025 {
13026
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 eval $cacheid=yes
13033 else
13034 eval $cacheid=no
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038 fi
13039
13040
13041 CFLAGS="$xorg_testset_save_CFLAGS"
13042
13043 eval supported=\$$cacheid
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13045 $as_echo "$supported" >&6; }
13046 if test "$supported" = "yes" ; then
13047 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13048 found="yes"
13049 fi
13050 fi
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066 xorg_testset_save_CFLAGS="$CFLAGS"
13067
13068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13071 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13072 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077 int i;
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080 xorg_cv_cc_flag_unknown_warning_option=yes
13081 else
13082 xorg_cv_cc_flag_unknown_warning_option=no
13083 fi
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13087 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13089 CFLAGS="$xorg_testset_save_CFLAGS"
13090 fi
13091
13092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13095 fi
13096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13098 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13099 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 int i;
13105 _ACEOF
13106 if ac_fn_c_try_compile "$LINENO"; then :
13107 xorg_cv_cc_flag_unused_command_line_argument=yes
13108 else
13109 xorg_cv_cc_flag_unused_command_line_argument=no
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13114 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13116 CFLAGS="$xorg_testset_save_CFLAGS"
13117 fi
13118
13119 found="no"
13120
13121 if test $found = "no" ; then
13122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13124 fi
13125
13126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13128 fi
13129
13130 CFLAGS="$CFLAGS -Wnested-externs"
13131
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13133 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13134 cacheid=xorg_cv_cc_flag__Wnested_externs
13135 if eval \${$cacheid+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 int i;
13141 int
13142 main ()
13143 {
13144
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 eval $cacheid=yes
13151 else
13152 eval $cacheid=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 fi
13157
13158
13159 CFLAGS="$xorg_testset_save_CFLAGS"
13160
13161 eval supported=\$$cacheid
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13163 $as_echo "$supported" >&6; }
13164 if test "$supported" = "yes" ; then
13165 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13166 found="yes"
13167 fi
13168 fi
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184 xorg_testset_save_CFLAGS="$CFLAGS"
13185
13186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13189 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13190 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195 int i;
13196 _ACEOF
13197 if ac_fn_c_try_compile "$LINENO"; then :
13198 xorg_cv_cc_flag_unknown_warning_option=yes
13199 else
13200 xorg_cv_cc_flag_unknown_warning_option=no
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13205 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13207 CFLAGS="$xorg_testset_save_CFLAGS"
13208 fi
13209
13210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213 fi
13214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13216 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13217 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
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"; then :
13225 xorg_cv_cc_flag_unused_command_line_argument=yes
13226 else
13227 xorg_cv_cc_flag_unused_command_line_argument=no
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230 fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13232 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13234 CFLAGS="$xorg_testset_save_CFLAGS"
13235 fi
13236
13237 found="no"
13238
13239 if test $found = "no" ; then
13240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13242 fi
13243
13244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13246 fi
13247
13248 CFLAGS="$CFLAGS -Wbad-function-cast"
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13251 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13252 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13253 if eval \${$cacheid+:} false; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 int i;
13259 int
13260 main ()
13261 {
13262
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 eval $cacheid=yes
13269 else
13270 eval $cacheid=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 fi
13275
13276
13277 CFLAGS="$xorg_testset_save_CFLAGS"
13278
13279 eval supported=\$$cacheid
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13281 $as_echo "$supported" >&6; }
13282 if test "$supported" = "yes" ; then
13283 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13284 found="yes"
13285 fi
13286 fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302 xorg_testset_save_CFLAGS="$CFLAGS"
13303
13304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 int i;
13314 _ACEOF
13315 if ac_fn_c_try_compile "$LINENO"; then :
13316 xorg_cv_cc_flag_unknown_warning_option=yes
13317 else
13318 xorg_cv_cc_flag_unknown_warning_option=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13325 CFLAGS="$xorg_testset_save_CFLAGS"
13326 fi
13327
13328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331 fi
13332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340 int i;
13341 _ACEOF
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343 xorg_cv_cc_flag_unused_command_line_argument=yes
13344 else
13345 xorg_cv_cc_flag_unused_command_line_argument=no
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13352 CFLAGS="$xorg_testset_save_CFLAGS"
13353 fi
13354
13355 found="no"
13356
13357 if test $found = "no" ; then
13358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13360 fi
13361
13362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13364 fi
13365
13366 CFLAGS="$CFLAGS -Wold-style-definition"
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13369 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13370 cacheid=xorg_cv_cc_flag__Wold_style_definition
13371 if eval \${$cacheid+:} false; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 int i;
13377 int
13378 main ()
13379 {
13380
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_link "$LINENO"; then :
13386 eval $cacheid=yes
13387 else
13388 eval $cacheid=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13392 fi
13393
13394
13395 CFLAGS="$xorg_testset_save_CFLAGS"
13396
13397 eval supported=\$$cacheid
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13399 $as_echo "$supported" >&6; }
13400 if test "$supported" = "yes" ; then
13401 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13402 found="yes"
13403 fi
13404 fi
13405
13406 if test $found = "no" ; then
13407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13409 fi
13410
13411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13413 fi
13414
13415 CFLAGS="$CFLAGS -fd"
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13418 $as_echo_n "checking if $CC supports -fd... " >&6; }
13419 cacheid=xorg_cv_cc_flag__fd
13420 if eval \${$cacheid+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 int i;
13426 int
13427 main ()
13428 {
13429
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 eval $cacheid=yes
13436 else
13437 eval $cacheid=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 fi
13442
13443
13444 CFLAGS="$xorg_testset_save_CFLAGS"
13445
13446 eval supported=\$$cacheid
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13448 $as_echo "$supported" >&6; }
13449 if test "$supported" = "yes" ; then
13450 BASE_CFLAGS="$BASE_CFLAGS -fd"
13451 found="yes"
13452 fi
13453 fi
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469 xorg_testset_save_CFLAGS="$CFLAGS"
13470
13471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 int i;
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483 xorg_cv_cc_flag_unknown_warning_option=yes
13484 else
13485 xorg_cv_cc_flag_unknown_warning_option=no
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13492 CFLAGS="$xorg_testset_save_CFLAGS"
13493 fi
13494
13495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498 fi
13499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 int i;
13508 _ACEOF
13509 if ac_fn_c_try_compile "$LINENO"; then :
13510 xorg_cv_cc_flag_unused_command_line_argument=yes
13511 else
13512 xorg_cv_cc_flag_unused_command_line_argument=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13519 CFLAGS="$xorg_testset_save_CFLAGS"
13520 fi
13521
13522 found="no"
13523
13524 if test $found = "no" ; then
13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527 fi
13528
13529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13531 fi
13532
13533 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13534
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13536 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13537 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13538 if eval \${$cacheid+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 int i;
13544 int
13545 main ()
13546 {
13547
13548 ;
13549 return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_link "$LINENO"; then :
13553 eval $cacheid=yes
13554 else
13555 eval $cacheid=no
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559 fi
13560
13561
13562 CFLAGS="$xorg_testset_save_CFLAGS"
13563
13564 eval supported=\$$cacheid
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13566 $as_echo "$supported" >&6; }
13567 if test "$supported" = "yes" ; then
13568 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13569 found="yes"
13570 fi
13571 fi
13572
13573
13574
13575
13576
13577 # This chunk adds additional warnings that could catch undesired effects.
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591 xorg_testset_save_CFLAGS="$CFLAGS"
13592
13593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13597 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 int i;
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"; then :
13605 xorg_cv_cc_flag_unknown_warning_option=yes
13606 else
13607 xorg_cv_cc_flag_unknown_warning_option=no
13608 fi
13609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13614 CFLAGS="$xorg_testset_save_CFLAGS"
13615 fi
13616
13617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13620 fi
13621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 int i;
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632 xorg_cv_cc_flag_unused_command_line_argument=yes
13633 else
13634 xorg_cv_cc_flag_unused_command_line_argument=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13641 CFLAGS="$xorg_testset_save_CFLAGS"
13642 fi
13643
13644 found="no"
13645
13646 if test $found = "no" ; then
13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 fi
13650
13651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13653 fi
13654
13655 CFLAGS="$CFLAGS -Wunused"
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13658 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13659 cacheid=xorg_cv_cc_flag__Wunused
13660 if eval \${$cacheid+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665 int i;
13666 int
13667 main ()
13668 {
13669
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 eval $cacheid=yes
13676 else
13677 eval $cacheid=no
13678 fi
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 fi
13682
13683
13684 CFLAGS="$xorg_testset_save_CFLAGS"
13685
13686 eval supported=\$$cacheid
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13688 $as_echo "$supported" >&6; }
13689 if test "$supported" = "yes" ; then
13690 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13691 found="yes"
13692 fi
13693 fi
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709 xorg_testset_save_CFLAGS="$CFLAGS"
13710
13711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720 int i;
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723 xorg_cv_cc_flag_unknown_warning_option=yes
13724 else
13725 xorg_cv_cc_flag_unknown_warning_option=no
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13732 CFLAGS="$xorg_testset_save_CFLAGS"
13733 fi
13734
13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738 fi
13739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 int i;
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750 xorg_cv_cc_flag_unused_command_line_argument=yes
13751 else
13752 xorg_cv_cc_flag_unused_command_line_argument=no
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13759 CFLAGS="$xorg_testset_save_CFLAGS"
13760 fi
13761
13762 found="no"
13763
13764 if test $found = "no" ; then
13765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13767 fi
13768
13769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13771 fi
13772
13773 CFLAGS="$CFLAGS -Wuninitialized"
13774
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13776 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13777 cacheid=xorg_cv_cc_flag__Wuninitialized
13778 if eval \${$cacheid+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 int i;
13784 int
13785 main ()
13786 {
13787
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 eval $cacheid=yes
13794 else
13795 eval $cacheid=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 fi
13800
13801
13802 CFLAGS="$xorg_testset_save_CFLAGS"
13803
13804 eval supported=\$$cacheid
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13806 $as_echo "$supported" >&6; }
13807 if test "$supported" = "yes" ; then
13808 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13809 found="yes"
13810 fi
13811 fi
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 xorg_testset_save_CFLAGS="$CFLAGS"
13828
13829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 int i;
13839 _ACEOF
13840 if ac_fn_c_try_compile "$LINENO"; then :
13841 xorg_cv_cc_flag_unknown_warning_option=yes
13842 else
13843 xorg_cv_cc_flag_unknown_warning_option=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13850 CFLAGS="$xorg_testset_save_CFLAGS"
13851 fi
13852
13853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856 fi
13857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 int i;
13866 _ACEOF
13867 if ac_fn_c_try_compile "$LINENO"; then :
13868 xorg_cv_cc_flag_unused_command_line_argument=yes
13869 else
13870 xorg_cv_cc_flag_unused_command_line_argument=no
13871 fi
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13877 CFLAGS="$xorg_testset_save_CFLAGS"
13878 fi
13879
13880 found="no"
13881
13882 if test $found = "no" ; then
13883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13885 fi
13886
13887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13889 fi
13890
13891 CFLAGS="$CFLAGS -Wshadow"
13892
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13894 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13895 cacheid=xorg_cv_cc_flag__Wshadow
13896 if eval \${$cacheid+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 int i;
13902 int
13903 main ()
13904 {
13905
13906 ;
13907 return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 eval $cacheid=yes
13912 else
13913 eval $cacheid=no
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917 fi
13918
13919
13920 CFLAGS="$xorg_testset_save_CFLAGS"
13921
13922 eval supported=\$$cacheid
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13924 $as_echo "$supported" >&6; }
13925 if test "$supported" = "yes" ; then
13926 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13927 found="yes"
13928 fi
13929 fi
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945 xorg_testset_save_CFLAGS="$CFLAGS"
13946
13947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 int i;
13957 _ACEOF
13958 if ac_fn_c_try_compile "$LINENO"; then :
13959 xorg_cv_cc_flag_unknown_warning_option=yes
13960 else
13961 xorg_cv_cc_flag_unknown_warning_option=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13968 CFLAGS="$xorg_testset_save_CFLAGS"
13969 fi
13970
13971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13974 fi
13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983 int i;
13984 _ACEOF
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986 xorg_cv_cc_flag_unused_command_line_argument=yes
13987 else
13988 xorg_cv_cc_flag_unused_command_line_argument=no
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13995 CFLAGS="$xorg_testset_save_CFLAGS"
13996 fi
13997
13998 found="no"
13999
14000 if test $found = "no" ; then
14001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14003 fi
14004
14005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14007 fi
14008
14009 CFLAGS="$CFLAGS -Wmissing-noreturn"
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14012 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14013 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14014 if eval \${$cacheid+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 int i;
14020 int
14021 main ()
14022 {
14023
14024 ;
14025 return 0;
14026 }
14027 _ACEOF
14028 if ac_fn_c_try_link "$LINENO"; then :
14029 eval $cacheid=yes
14030 else
14031 eval $cacheid=no
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
14035 fi
14036
14037
14038 CFLAGS="$xorg_testset_save_CFLAGS"
14039
14040 eval supported=\$$cacheid
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14042 $as_echo "$supported" >&6; }
14043 if test "$supported" = "yes" ; then
14044 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14045 found="yes"
14046 fi
14047 fi
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063 xorg_testset_save_CFLAGS="$CFLAGS"
14064
14065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 int i;
14075 _ACEOF
14076 if ac_fn_c_try_compile "$LINENO"; then :
14077 xorg_cv_cc_flag_unknown_warning_option=yes
14078 else
14079 xorg_cv_cc_flag_unknown_warning_option=no
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 fi
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14086 CFLAGS="$xorg_testset_save_CFLAGS"
14087 fi
14088
14089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092 fi
14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 int i;
14102 _ACEOF
14103 if ac_fn_c_try_compile "$LINENO"; then :
14104 xorg_cv_cc_flag_unused_command_line_argument=yes
14105 else
14106 xorg_cv_cc_flag_unused_command_line_argument=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14113 CFLAGS="$xorg_testset_save_CFLAGS"
14114 fi
14115
14116 found="no"
14117
14118 if test $found = "no" ; then
14119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14121 fi
14122
14123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14125 fi
14126
14127 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14130 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14131 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14132 if eval \${$cacheid+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 int i;
14138 int
14139 main ()
14140 {
14141
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 eval $cacheid=yes
14148 else
14149 eval $cacheid=no
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 fi
14154
14155
14156 CFLAGS="$xorg_testset_save_CFLAGS"
14157
14158 eval supported=\$$cacheid
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14160 $as_echo "$supported" >&6; }
14161 if test "$supported" = "yes" ; then
14162 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14163 found="yes"
14164 fi
14165 fi
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181 xorg_testset_save_CFLAGS="$CFLAGS"
14182
14183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 int i;
14193 _ACEOF
14194 if ac_fn_c_try_compile "$LINENO"; then :
14195 xorg_cv_cc_flag_unknown_warning_option=yes
14196 else
14197 xorg_cv_cc_flag_unknown_warning_option=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14204 CFLAGS="$xorg_testset_save_CFLAGS"
14205 fi
14206
14207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210 fi
14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219 int i;
14220 _ACEOF
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222 xorg_cv_cc_flag_unused_command_line_argument=yes
14223 else
14224 xorg_cv_cc_flag_unused_command_line_argument=no
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14231 CFLAGS="$xorg_testset_save_CFLAGS"
14232 fi
14233
14234 found="no"
14235
14236 if test $found = "no" ; then
14237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14239 fi
14240
14241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14243 fi
14244
14245 CFLAGS="$CFLAGS -Wredundant-decls"
14246
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14248 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14249 cacheid=xorg_cv_cc_flag__Wredundant_decls
14250 if eval \${$cacheid+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 int i;
14256 int
14257 main ()
14258 {
14259
14260 ;
14261 return 0;
14262 }
14263 _ACEOF
14264 if ac_fn_c_try_link "$LINENO"; then :
14265 eval $cacheid=yes
14266 else
14267 eval $cacheid=no
14268 fi
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 fi
14272
14273
14274 CFLAGS="$xorg_testset_save_CFLAGS"
14275
14276 eval supported=\$$cacheid
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14278 $as_echo "$supported" >&6; }
14279 if test "$supported" = "yes" ; then
14280 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14281 found="yes"
14282 fi
14283 fi
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 xorg_testset_save_CFLAGS="$CFLAGS"
14300
14301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 int i;
14311 _ACEOF
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313 xorg_cv_cc_flag_unknown_warning_option=yes
14314 else
14315 xorg_cv_cc_flag_unknown_warning_option=no
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14322 CFLAGS="$xorg_testset_save_CFLAGS"
14323 fi
14324
14325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328 fi
14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 int i;
14338 _ACEOF
14339 if ac_fn_c_try_compile "$LINENO"; then :
14340 xorg_cv_cc_flag_unused_command_line_argument=yes
14341 else
14342 xorg_cv_cc_flag_unused_command_line_argument=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14349 CFLAGS="$xorg_testset_save_CFLAGS"
14350 fi
14351
14352 found="no"
14353
14354 if test $found = "no" ; then
14355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14357 fi
14358
14359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14361 fi
14362
14363 CFLAGS="$CFLAGS -Wlogical-op"
14364
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14366 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14367 cacheid=xorg_cv_cc_flag__Wlogical_op
14368 if eval \${$cacheid+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 int i;
14374 int
14375 main ()
14376 {
14377
14378 ;
14379 return 0;
14380 }
14381 _ACEOF
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 eval $cacheid=yes
14384 else
14385 eval $cacheid=no
14386 fi
14387 rm -f core conftest.err conftest.$ac_objext \
14388 conftest$ac_exeext conftest.$ac_ext
14389 fi
14390
14391
14392 CFLAGS="$xorg_testset_save_CFLAGS"
14393
14394 eval supported=\$$cacheid
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14396 $as_echo "$supported" >&6; }
14397 if test "$supported" = "yes" ; then
14398 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14399 found="yes"
14400 fi
14401 fi
14402
14403
14404
14405 # These are currently disabled because they are noisy. They will be enabled
14406 # in the future once the codebase is sufficiently modernized to silence
14407 # them. For now, I don't want them to drown out the other warnings.
14408 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14409 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14410 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14411
14412 # Turn some warnings into errors, so we don't accidently get successful builds
14413 # when there are problems that should be fixed.
14414
14415 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429 xorg_testset_save_CFLAGS="$CFLAGS"
14430
14431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14434 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14435 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 int i;
14441 _ACEOF
14442 if ac_fn_c_try_compile "$LINENO"; then :
14443 xorg_cv_cc_flag_unknown_warning_option=yes
14444 else
14445 xorg_cv_cc_flag_unknown_warning_option=no
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14450 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14452 CFLAGS="$xorg_testset_save_CFLAGS"
14453 fi
14454
14455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458 fi
14459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14461 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14462 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 int i;
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470 xorg_cv_cc_flag_unused_command_line_argument=yes
14471 else
14472 xorg_cv_cc_flag_unused_command_line_argument=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14477 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14479 CFLAGS="$xorg_testset_save_CFLAGS"
14480 fi
14481
14482 found="no"
14483
14484 if test $found = "no" ; then
14485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14487 fi
14488
14489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14491 fi
14492
14493 CFLAGS="$CFLAGS -Werror=implicit"
14494
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14496 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14497 cacheid=xorg_cv_cc_flag__Werror_implicit
14498 if eval \${$cacheid+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 int i;
14504 int
14505 main ()
14506 {
14507
14508 ;
14509 return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_link "$LINENO"; then :
14513 eval $cacheid=yes
14514 else
14515 eval $cacheid=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14519 fi
14520
14521
14522 CFLAGS="$xorg_testset_save_CFLAGS"
14523
14524 eval supported=\$$cacheid
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14526 $as_echo "$supported" >&6; }
14527 if test "$supported" = "yes" ; then
14528 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14529 found="yes"
14530 fi
14531 fi
14532
14533 if test $found = "no" ; then
14534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14536 fi
14537
14538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14540 fi
14541
14542 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14545 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14546 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14547 if eval \${$cacheid+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 int i;
14553 int
14554 main ()
14555 {
14556
14557 ;
14558 return 0;
14559 }
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"; then :
14562 eval $cacheid=yes
14563 else
14564 eval $cacheid=no
14565 fi
14566 rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14568 fi
14569
14570
14571 CFLAGS="$xorg_testset_save_CFLAGS"
14572
14573 eval supported=\$$cacheid
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14575 $as_echo "$supported" >&6; }
14576 if test "$supported" = "yes" ; then
14577 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14578 found="yes"
14579 fi
14580 fi
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596 xorg_testset_save_CFLAGS="$CFLAGS"
14597
14598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14601 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14602 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 int i;
14608 _ACEOF
14609 if ac_fn_c_try_compile "$LINENO"; then :
14610 xorg_cv_cc_flag_unknown_warning_option=yes
14611 else
14612 xorg_cv_cc_flag_unknown_warning_option=no
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14617 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14619 CFLAGS="$xorg_testset_save_CFLAGS"
14620 fi
14621
14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625 fi
14626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14628 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14629 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14630 $as_echo_n "(cached) " >&6
14631 else
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 int i;
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"; then :
14637 xorg_cv_cc_flag_unused_command_line_argument=yes
14638 else
14639 xorg_cv_cc_flag_unused_command_line_argument=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14644 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14646 CFLAGS="$xorg_testset_save_CFLAGS"
14647 fi
14648
14649 found="no"
14650
14651 if test $found = "no" ; then
14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14654 fi
14655
14656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14658 fi
14659
14660 CFLAGS="$CFLAGS -Werror=nonnull"
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14663 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14664 cacheid=xorg_cv_cc_flag__Werror_nonnull
14665 if eval \${$cacheid+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670 int i;
14671 int
14672 main ()
14673 {
14674
14675 ;
14676 return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_c_try_link "$LINENO"; then :
14680 eval $cacheid=yes
14681 else
14682 eval $cacheid=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 fi
14687
14688
14689 CFLAGS="$xorg_testset_save_CFLAGS"
14690
14691 eval supported=\$$cacheid
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14693 $as_echo "$supported" >&6; }
14694 if test "$supported" = "yes" ; then
14695 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14696 found="yes"
14697 fi
14698 fi
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714 xorg_testset_save_CFLAGS="$CFLAGS"
14715
14716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14719 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14720 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 int i;
14726 _ACEOF
14727 if ac_fn_c_try_compile "$LINENO"; then :
14728 xorg_cv_cc_flag_unknown_warning_option=yes
14729 else
14730 xorg_cv_cc_flag_unknown_warning_option=no
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14735 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14737 CFLAGS="$xorg_testset_save_CFLAGS"
14738 fi
14739
14740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743 fi
14744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14746 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14747 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 int i;
14753 _ACEOF
14754 if ac_fn_c_try_compile "$LINENO"; then :
14755 xorg_cv_cc_flag_unused_command_line_argument=yes
14756 else
14757 xorg_cv_cc_flag_unused_command_line_argument=no
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14762 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14764 CFLAGS="$xorg_testset_save_CFLAGS"
14765 fi
14766
14767 found="no"
14768
14769 if test $found = "no" ; then
14770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14772 fi
14773
14774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14776 fi
14777
14778 CFLAGS="$CFLAGS -Werror=init-self"
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14781 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14782 cacheid=xorg_cv_cc_flag__Werror_init_self
14783 if eval \${$cacheid+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 int i;
14789 int
14790 main ()
14791 {
14792
14793 ;
14794 return 0;
14795 }
14796 _ACEOF
14797 if ac_fn_c_try_link "$LINENO"; then :
14798 eval $cacheid=yes
14799 else
14800 eval $cacheid=no
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext \
14803 conftest$ac_exeext conftest.$ac_ext
14804 fi
14805
14806
14807 CFLAGS="$xorg_testset_save_CFLAGS"
14808
14809 eval supported=\$$cacheid
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14811 $as_echo "$supported" >&6; }
14812 if test "$supported" = "yes" ; then
14813 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14814 found="yes"
14815 fi
14816 fi
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832 xorg_testset_save_CFLAGS="$CFLAGS"
14833
14834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14843 int i;
14844 _ACEOF
14845 if ac_fn_c_try_compile "$LINENO"; then :
14846 xorg_cv_cc_flag_unknown_warning_option=yes
14847 else
14848 xorg_cv_cc_flag_unknown_warning_option=no
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14855 CFLAGS="$xorg_testset_save_CFLAGS"
14856 fi
14857
14858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14861 fi
14862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 int i;
14871 _ACEOF
14872 if ac_fn_c_try_compile "$LINENO"; then :
14873 xorg_cv_cc_flag_unused_command_line_argument=yes
14874 else
14875 xorg_cv_cc_flag_unused_command_line_argument=no
14876 fi
14877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 fi
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14882 CFLAGS="$xorg_testset_save_CFLAGS"
14883 fi
14884
14885 found="no"
14886
14887 if test $found = "no" ; then
14888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14890 fi
14891
14892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14894 fi
14895
14896 CFLAGS="$CFLAGS -Werror=main"
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14899 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14900 cacheid=xorg_cv_cc_flag__Werror_main
14901 if eval \${$cacheid+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903 else
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 int i;
14907 int
14908 main ()
14909 {
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 eval $cacheid=yes
14917 else
14918 eval $cacheid=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 fi
14923
14924
14925 CFLAGS="$xorg_testset_save_CFLAGS"
14926
14927 eval supported=\$$cacheid
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14929 $as_echo "$supported" >&6; }
14930 if test "$supported" = "yes" ; then
14931 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14932 found="yes"
14933 fi
14934 fi
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950 xorg_testset_save_CFLAGS="$CFLAGS"
14951
14952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14957 $as_echo_n "(cached) " >&6
14958 else
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 int i;
14962 _ACEOF
14963 if ac_fn_c_try_compile "$LINENO"; then :
14964 xorg_cv_cc_flag_unknown_warning_option=yes
14965 else
14966 xorg_cv_cc_flag_unknown_warning_option=no
14967 fi
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 fi
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14973 CFLAGS="$xorg_testset_save_CFLAGS"
14974 fi
14975
14976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979 fi
14980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14988 int i;
14989 _ACEOF
14990 if ac_fn_c_try_compile "$LINENO"; then :
14991 xorg_cv_cc_flag_unused_command_line_argument=yes
14992 else
14993 xorg_cv_cc_flag_unused_command_line_argument=no
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14996 fi
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15000 CFLAGS="$xorg_testset_save_CFLAGS"
15001 fi
15002
15003 found="no"
15004
15005 if test $found = "no" ; then
15006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15008 fi
15009
15010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15012 fi
15013
15014 CFLAGS="$CFLAGS -Werror=missing-braces"
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15017 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15018 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15019 if eval \${$cacheid+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 int i;
15025 int
15026 main ()
15027 {
15028
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 eval $cacheid=yes
15035 else
15036 eval $cacheid=no
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15040 fi
15041
15042
15043 CFLAGS="$xorg_testset_save_CFLAGS"
15044
15045 eval supported=\$$cacheid
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15047 $as_echo "$supported" >&6; }
15048 if test "$supported" = "yes" ; then
15049 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15050 found="yes"
15051 fi
15052 fi
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068 xorg_testset_save_CFLAGS="$CFLAGS"
15069
15070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 int i;
15080 _ACEOF
15081 if ac_fn_c_try_compile "$LINENO"; then :
15082 xorg_cv_cc_flag_unknown_warning_option=yes
15083 else
15084 xorg_cv_cc_flag_unknown_warning_option=no
15085 fi
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 fi
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15091 CFLAGS="$xorg_testset_save_CFLAGS"
15092 fi
15093
15094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097 fi
15098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 int i;
15107 _ACEOF
15108 if ac_fn_c_try_compile "$LINENO"; then :
15109 xorg_cv_cc_flag_unused_command_line_argument=yes
15110 else
15111 xorg_cv_cc_flag_unused_command_line_argument=no
15112 fi
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15118 CFLAGS="$xorg_testset_save_CFLAGS"
15119 fi
15120
15121 found="no"
15122
15123 if test $found = "no" ; then
15124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15126 fi
15127
15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15130 fi
15131
15132 CFLAGS="$CFLAGS -Werror=sequence-point"
15133
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15135 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15136 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15137 if eval \${$cacheid+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 int i;
15143 int
15144 main ()
15145 {
15146
15147 ;
15148 return 0;
15149 }
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 eval $cacheid=yes
15153 else
15154 eval $cacheid=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 fi
15159
15160
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15162
15163 eval supported=\$$cacheid
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15165 $as_echo "$supported" >&6; }
15166 if test "$supported" = "yes" ; then
15167 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15168 found="yes"
15169 fi
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 xorg_testset_save_CFLAGS="$CFLAGS"
15187
15188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 int i;
15198 _ACEOF
15199 if ac_fn_c_try_compile "$LINENO"; then :
15200 xorg_cv_cc_flag_unknown_warning_option=yes
15201 else
15202 xorg_cv_cc_flag_unknown_warning_option=no
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15209 CFLAGS="$xorg_testset_save_CFLAGS"
15210 fi
15211
15212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15215 fi
15216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 int i;
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227 xorg_cv_cc_flag_unused_command_line_argument=yes
15228 else
15229 xorg_cv_cc_flag_unused_command_line_argument=no
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 fi
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15236 CFLAGS="$xorg_testset_save_CFLAGS"
15237 fi
15238
15239 found="no"
15240
15241 if test $found = "no" ; then
15242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15244 fi
15245
15246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15248 fi
15249
15250 CFLAGS="$CFLAGS -Werror=return-type"
15251
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15253 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15254 cacheid=xorg_cv_cc_flag__Werror_return_type
15255 if eval \${$cacheid+:} false; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 int i;
15261 int
15262 main ()
15263 {
15264
15265 ;
15266 return 0;
15267 }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 eval $cacheid=yes
15271 else
15272 eval $cacheid=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 fi
15277
15278
15279 CFLAGS="$xorg_testset_save_CFLAGS"
15280
15281 eval supported=\$$cacheid
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15283 $as_echo "$supported" >&6; }
15284 if test "$supported" = "yes" ; then
15285 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15286 found="yes"
15287 fi
15288 fi
15289
15290 if test $found = "no" ; then
15291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15293 fi
15294
15295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15297 fi
15298
15299 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15300
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15302 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15303 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15304 if eval \${$cacheid+:} false; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 int i;
15310 int
15311 main ()
15312 {
15313
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 eval $cacheid=yes
15320 else
15321 eval $cacheid=no
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325 fi
15326
15327
15328 CFLAGS="$xorg_testset_save_CFLAGS"
15329
15330 eval supported=\$$cacheid
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15332 $as_echo "$supported" >&6; }
15333 if test "$supported" = "yes" ; then
15334 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15335 found="yes"
15336 fi
15337 fi
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353 xorg_testset_save_CFLAGS="$CFLAGS"
15354
15355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15358 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15359 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 int i;
15365 _ACEOF
15366 if ac_fn_c_try_compile "$LINENO"; then :
15367 xorg_cv_cc_flag_unknown_warning_option=yes
15368 else
15369 xorg_cv_cc_flag_unknown_warning_option=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 fi
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15374 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15376 CFLAGS="$xorg_testset_save_CFLAGS"
15377 fi
15378
15379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15382 fi
15383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15385 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15386 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15387 $as_echo_n "(cached) " >&6
15388 else
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 int i;
15392 _ACEOF
15393 if ac_fn_c_try_compile "$LINENO"; then :
15394 xorg_cv_cc_flag_unused_command_line_argument=yes
15395 else
15396 xorg_cv_cc_flag_unused_command_line_argument=no
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 fi
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15401 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15403 CFLAGS="$xorg_testset_save_CFLAGS"
15404 fi
15405
15406 found="no"
15407
15408 if test $found = "no" ; then
15409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15411 fi
15412
15413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15415 fi
15416
15417 CFLAGS="$CFLAGS -Werror=trigraphs"
15418
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15420 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15421 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15422 if eval \${$cacheid+:} false; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15427 int i;
15428 int
15429 main ()
15430 {
15431
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_link "$LINENO"; then :
15437 eval $cacheid=yes
15438 else
15439 eval $cacheid=no
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 fi
15444
15445
15446 CFLAGS="$xorg_testset_save_CFLAGS"
15447
15448 eval supported=\$$cacheid
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15450 $as_echo "$supported" >&6; }
15451 if test "$supported" = "yes" ; then
15452 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15453 found="yes"
15454 fi
15455 fi
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471 xorg_testset_save_CFLAGS="$CFLAGS"
15472
15473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 int i;
15483 _ACEOF
15484 if ac_fn_c_try_compile "$LINENO"; then :
15485 xorg_cv_cc_flag_unknown_warning_option=yes
15486 else
15487 xorg_cv_cc_flag_unknown_warning_option=no
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 fi
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15494 CFLAGS="$xorg_testset_save_CFLAGS"
15495 fi
15496
15497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15500 fi
15501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 int i;
15510 _ACEOF
15511 if ac_fn_c_try_compile "$LINENO"; then :
15512 xorg_cv_cc_flag_unused_command_line_argument=yes
15513 else
15514 xorg_cv_cc_flag_unused_command_line_argument=no
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 fi
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15521 CFLAGS="$xorg_testset_save_CFLAGS"
15522 fi
15523
15524 found="no"
15525
15526 if test $found = "no" ; then
15527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15529 fi
15530
15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15533 fi
15534
15535 CFLAGS="$CFLAGS -Werror=array-bounds"
15536
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15538 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15539 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15540 if eval \${$cacheid+:} false; then :
15541 $as_echo_n "(cached) " >&6
15542 else
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h. */
15545 int i;
15546 int
15547 main ()
15548 {
15549
15550 ;
15551 return 0;
15552 }
15553 _ACEOF
15554 if ac_fn_c_try_link "$LINENO"; then :
15555 eval $cacheid=yes
15556 else
15557 eval $cacheid=no
15558 fi
15559 rm -f core conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
15561 fi
15562
15563
15564 CFLAGS="$xorg_testset_save_CFLAGS"
15565
15566 eval supported=\$$cacheid
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15568 $as_echo "$supported" >&6; }
15569 if test "$supported" = "yes" ; then
15570 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15571 found="yes"
15572 fi
15573 fi
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589 xorg_testset_save_CFLAGS="$CFLAGS"
15590
15591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 int i;
15601 _ACEOF
15602 if ac_fn_c_try_compile "$LINENO"; then :
15603 xorg_cv_cc_flag_unknown_warning_option=yes
15604 else
15605 xorg_cv_cc_flag_unknown_warning_option=no
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 fi
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15612 CFLAGS="$xorg_testset_save_CFLAGS"
15613 fi
15614
15615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15618 fi
15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15623 $as_echo_n "(cached) " >&6
15624 else
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 int i;
15628 _ACEOF
15629 if ac_fn_c_try_compile "$LINENO"; then :
15630 xorg_cv_cc_flag_unused_command_line_argument=yes
15631 else
15632 xorg_cv_cc_flag_unused_command_line_argument=no
15633 fi
15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15635 fi
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15639 CFLAGS="$xorg_testset_save_CFLAGS"
15640 fi
15641
15642 found="no"
15643
15644 if test $found = "no" ; then
15645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647 fi
15648
15649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15651 fi
15652
15653 CFLAGS="$CFLAGS -Werror=write-strings"
15654
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15656 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15657 cacheid=xorg_cv_cc_flag__Werror_write_strings
15658 if eval \${$cacheid+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15663 int i;
15664 int
15665 main ()
15666 {
15667
15668 ;
15669 return 0;
15670 }
15671 _ACEOF
15672 if ac_fn_c_try_link "$LINENO"; then :
15673 eval $cacheid=yes
15674 else
15675 eval $cacheid=no
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15679 fi
15680
15681
15682 CFLAGS="$xorg_testset_save_CFLAGS"
15683
15684 eval supported=\$$cacheid
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15686 $as_echo "$supported" >&6; }
15687 if test "$supported" = "yes" ; then
15688 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15689 found="yes"
15690 fi
15691 fi
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 xorg_testset_save_CFLAGS="$CFLAGS"
15708
15709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15712 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15713 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 int i;
15719 _ACEOF
15720 if ac_fn_c_try_compile "$LINENO"; then :
15721 xorg_cv_cc_flag_unknown_warning_option=yes
15722 else
15723 xorg_cv_cc_flag_unknown_warning_option=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15728 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15731 fi
15732
15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736 fi
15737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15739 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15740 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 int i;
15746 _ACEOF
15747 if ac_fn_c_try_compile "$LINENO"; then :
15748 xorg_cv_cc_flag_unused_command_line_argument=yes
15749 else
15750 xorg_cv_cc_flag_unused_command_line_argument=no
15751 fi
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15755 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15757 CFLAGS="$xorg_testset_save_CFLAGS"
15758 fi
15759
15760 found="no"
15761
15762 if test $found = "no" ; then
15763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15765 fi
15766
15767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15769 fi
15770
15771 CFLAGS="$CFLAGS -Werror=address"
15772
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15774 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15775 cacheid=xorg_cv_cc_flag__Werror_address
15776 if eval \${$cacheid+:} false; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 int i;
15782 int
15783 main ()
15784 {
15785
15786 ;
15787 return 0;
15788 }
15789 _ACEOF
15790 if ac_fn_c_try_link "$LINENO"; then :
15791 eval $cacheid=yes
15792 else
15793 eval $cacheid=no
15794 fi
15795 rm -f core conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15797 fi
15798
15799
15800 CFLAGS="$xorg_testset_save_CFLAGS"
15801
15802 eval supported=\$$cacheid
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15804 $as_echo "$supported" >&6; }
15805 if test "$supported" = "yes" ; then
15806 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15807 found="yes"
15808 fi
15809 fi
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825 xorg_testset_save_CFLAGS="$CFLAGS"
15826
15827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15830 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15831 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 int i;
15837 _ACEOF
15838 if ac_fn_c_try_compile "$LINENO"; then :
15839 xorg_cv_cc_flag_unknown_warning_option=yes
15840 else
15841 xorg_cv_cc_flag_unknown_warning_option=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15846 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15848 CFLAGS="$xorg_testset_save_CFLAGS"
15849 fi
15850
15851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854 fi
15855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15857 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15858 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 int i;
15864 _ACEOF
15865 if ac_fn_c_try_compile "$LINENO"; then :
15866 xorg_cv_cc_flag_unused_command_line_argument=yes
15867 else
15868 xorg_cv_cc_flag_unused_command_line_argument=no
15869 fi
15870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15871 fi
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15873 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15875 CFLAGS="$xorg_testset_save_CFLAGS"
15876 fi
15877
15878 found="no"
15879
15880 if test $found = "no" ; then
15881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15883 fi
15884
15885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15887 fi
15888
15889 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15890
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15892 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15893 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15894 if eval \${$cacheid+:} false; then :
15895 $as_echo_n "(cached) " >&6
15896 else
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 int i;
15900 int
15901 main ()
15902 {
15903
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_link "$LINENO"; then :
15909 eval $cacheid=yes
15910 else
15911 eval $cacheid=no
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15915 fi
15916
15917
15918 CFLAGS="$xorg_testset_save_CFLAGS"
15919
15920 eval supported=\$$cacheid
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15922 $as_echo "$supported" >&6; }
15923 if test "$supported" = "yes" ; then
15924 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15925 found="yes"
15926 fi
15927 fi
15928
15929 if test $found = "no" ; then
15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932 fi
15933
15934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936 fi
15937
15938 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15939
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15941 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15942 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15943 if eval \${$cacheid+:} false; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 int i;
15949 int
15950 main ()
15951 {
15952
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 if ac_fn_c_try_link "$LINENO"; then :
15958 eval $cacheid=yes
15959 else
15960 eval $cacheid=no
15961 fi
15962 rm -f core conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15964 fi
15965
15966
15967 CFLAGS="$xorg_testset_save_CFLAGS"
15968
15969 eval supported=\$$cacheid
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15971 $as_echo "$supported" >&6; }
15972 if test "$supported" = "yes" ; then
15973 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15974 found="yes"
15975 fi
15976 fi
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992 xorg_testset_save_CFLAGS="$CFLAGS"
15993
15994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 int i;
16004 _ACEOF
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006 xorg_cv_cc_flag_unknown_warning_option=yes
16007 else
16008 xorg_cv_cc_flag_unknown_warning_option=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16015 CFLAGS="$xorg_testset_save_CFLAGS"
16016 fi
16017
16018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021 fi
16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 int i;
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033 xorg_cv_cc_flag_unused_command_line_argument=yes
16034 else
16035 xorg_cv_cc_flag_unused_command_line_argument=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16042 CFLAGS="$xorg_testset_save_CFLAGS"
16043 fi
16044
16045 found="no"
16046
16047 if test $found = "no" ; then
16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16050 fi
16051
16052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16054 fi
16055
16056 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16057
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16059 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16060 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16061 if eval \${$cacheid+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16066 int i;
16067 int
16068 main ()
16069 {
16070
16071 ;
16072 return 0;
16073 }
16074 _ACEOF
16075 if ac_fn_c_try_link "$LINENO"; then :
16076 eval $cacheid=yes
16077 else
16078 eval $cacheid=no
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext \
16081 conftest$ac_exeext conftest.$ac_ext
16082 fi
16083
16084
16085 CFLAGS="$xorg_testset_save_CFLAGS"
16086
16087 eval supported=\$$cacheid
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16089 $as_echo "$supported" >&6; }
16090 if test "$supported" = "yes" ; then
16091 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16092 found="yes"
16093 fi
16094 fi
16095
16096 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16097 else
16098 { $as_echo "$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
16099 $as_echo "$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;}
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113 xorg_testset_save_CFLAGS="$CFLAGS"
16114
16115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 int i;
16125 _ACEOF
16126 if ac_fn_c_try_compile "$LINENO"; then :
16127 xorg_cv_cc_flag_unknown_warning_option=yes
16128 else
16129 xorg_cv_cc_flag_unknown_warning_option=no
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 fi
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16136 CFLAGS="$xorg_testset_save_CFLAGS"
16137 fi
16138
16139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142 fi
16143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 int i;
16152 _ACEOF
16153 if ac_fn_c_try_compile "$LINENO"; then :
16154 xorg_cv_cc_flag_unused_command_line_argument=yes
16155 else
16156 xorg_cv_cc_flag_unused_command_line_argument=no
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 fi
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16163 CFLAGS="$xorg_testset_save_CFLAGS"
16164 fi
16165
16166 found="no"
16167
16168 if test $found = "no" ; then
16169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16171 fi
16172
16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16175 fi
16176
16177 CFLAGS="$CFLAGS -Wimplicit"
16178
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16180 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16181 cacheid=xorg_cv_cc_flag__Wimplicit
16182 if eval \${$cacheid+:} false; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 int i;
16188 int
16189 main ()
16190 {
16191
16192 ;
16193 return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 eval $cacheid=yes
16198 else
16199 eval $cacheid=no
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 fi
16204
16205
16206 CFLAGS="$xorg_testset_save_CFLAGS"
16207
16208 eval supported=\$$cacheid
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16210 $as_echo "$supported" >&6; }
16211 if test "$supported" = "yes" ; then
16212 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16213 found="yes"
16214 fi
16215 fi
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231 xorg_testset_save_CFLAGS="$CFLAGS"
16232
16233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16236 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16237 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 int i;
16243 _ACEOF
16244 if ac_fn_c_try_compile "$LINENO"; then :
16245 xorg_cv_cc_flag_unknown_warning_option=yes
16246 else
16247 xorg_cv_cc_flag_unknown_warning_option=no
16248 fi
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16252 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16254 CFLAGS="$xorg_testset_save_CFLAGS"
16255 fi
16256
16257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260 fi
16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16263 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16264 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 int i;
16270 _ACEOF
16271 if ac_fn_c_try_compile "$LINENO"; then :
16272 xorg_cv_cc_flag_unused_command_line_argument=yes
16273 else
16274 xorg_cv_cc_flag_unused_command_line_argument=no
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16279 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16281 CFLAGS="$xorg_testset_save_CFLAGS"
16282 fi
16283
16284 found="no"
16285
16286 if test $found = "no" ; then
16287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 fi
16290
16291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293 fi
16294
16295 CFLAGS="$CFLAGS -Wnonnull"
16296
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16298 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16299 cacheid=xorg_cv_cc_flag__Wnonnull
16300 if eval \${$cacheid+:} false; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 int i;
16306 int
16307 main ()
16308 {
16309
16310 ;
16311 return 0;
16312 }
16313 _ACEOF
16314 if ac_fn_c_try_link "$LINENO"; then :
16315 eval $cacheid=yes
16316 else
16317 eval $cacheid=no
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 fi
16322
16323
16324 CFLAGS="$xorg_testset_save_CFLAGS"
16325
16326 eval supported=\$$cacheid
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16328 $as_echo "$supported" >&6; }
16329 if test "$supported" = "yes" ; then
16330 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16331 found="yes"
16332 fi
16333 fi
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349 xorg_testset_save_CFLAGS="$CFLAGS"
16350
16351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16354 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16355 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360 int i;
16361 _ACEOF
16362 if ac_fn_c_try_compile "$LINENO"; then :
16363 xorg_cv_cc_flag_unknown_warning_option=yes
16364 else
16365 xorg_cv_cc_flag_unknown_warning_option=no
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 fi
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16370 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16372 CFLAGS="$xorg_testset_save_CFLAGS"
16373 fi
16374
16375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16378 fi
16379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16382 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16383 $as_echo_n "(cached) " >&6
16384 else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 int i;
16388 _ACEOF
16389 if ac_fn_c_try_compile "$LINENO"; then :
16390 xorg_cv_cc_flag_unused_command_line_argument=yes
16391 else
16392 xorg_cv_cc_flag_unused_command_line_argument=no
16393 fi
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16397 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16399 CFLAGS="$xorg_testset_save_CFLAGS"
16400 fi
16401
16402 found="no"
16403
16404 if test $found = "no" ; then
16405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16407 fi
16408
16409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16411 fi
16412
16413 CFLAGS="$CFLAGS -Winit-self"
16414
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16416 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16417 cacheid=xorg_cv_cc_flag__Winit_self
16418 if eval \${$cacheid+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 int i;
16424 int
16425 main ()
16426 {
16427
16428 ;
16429 return 0;
16430 }
16431 _ACEOF
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 eval $cacheid=yes
16434 else
16435 eval $cacheid=no
16436 fi
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 fi
16440
16441
16442 CFLAGS="$xorg_testset_save_CFLAGS"
16443
16444 eval supported=\$$cacheid
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16446 $as_echo "$supported" >&6; }
16447 if test "$supported" = "yes" ; then
16448 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16449 found="yes"
16450 fi
16451 fi
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467 xorg_testset_save_CFLAGS="$CFLAGS"
16468
16469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16472 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16473 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 int i;
16479 _ACEOF
16480 if ac_fn_c_try_compile "$LINENO"; then :
16481 xorg_cv_cc_flag_unknown_warning_option=yes
16482 else
16483 xorg_cv_cc_flag_unknown_warning_option=no
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 fi
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16488 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16490 CFLAGS="$xorg_testset_save_CFLAGS"
16491 fi
16492
16493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496 fi
16497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16499 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16500 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 int i;
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"; then :
16508 xorg_cv_cc_flag_unused_command_line_argument=yes
16509 else
16510 xorg_cv_cc_flag_unused_command_line_argument=no
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16515 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16517 CFLAGS="$xorg_testset_save_CFLAGS"
16518 fi
16519
16520 found="no"
16521
16522 if test $found = "no" ; then
16523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16525 fi
16526
16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16529 fi
16530
16531 CFLAGS="$CFLAGS -Wmain"
16532
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16534 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16535 cacheid=xorg_cv_cc_flag__Wmain
16536 if eval \${$cacheid+:} false; then :
16537 $as_echo_n "(cached) " >&6
16538 else
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 int i;
16542 int
16543 main ()
16544 {
16545
16546 ;
16547 return 0;
16548 }
16549 _ACEOF
16550 if ac_fn_c_try_link "$LINENO"; then :
16551 eval $cacheid=yes
16552 else
16553 eval $cacheid=no
16554 fi
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16557 fi
16558
16559
16560 CFLAGS="$xorg_testset_save_CFLAGS"
16561
16562 eval supported=\$$cacheid
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16564 $as_echo "$supported" >&6; }
16565 if test "$supported" = "yes" ; then
16566 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16567 found="yes"
16568 fi
16569 fi
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585 xorg_testset_save_CFLAGS="$CFLAGS"
16586
16587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16590 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16591 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 int i;
16597 _ACEOF
16598 if ac_fn_c_try_compile "$LINENO"; then :
16599 xorg_cv_cc_flag_unknown_warning_option=yes
16600 else
16601 xorg_cv_cc_flag_unknown_warning_option=no
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 fi
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16606 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16608 CFLAGS="$xorg_testset_save_CFLAGS"
16609 fi
16610
16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614 fi
16615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16617 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16618 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16619 $as_echo_n "(cached) " >&6
16620 else
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 int i;
16624 _ACEOF
16625 if ac_fn_c_try_compile "$LINENO"; then :
16626 xorg_cv_cc_flag_unused_command_line_argument=yes
16627 else
16628 xorg_cv_cc_flag_unused_command_line_argument=no
16629 fi
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16633 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16635 CFLAGS="$xorg_testset_save_CFLAGS"
16636 fi
16637
16638 found="no"
16639
16640 if test $found = "no" ; then
16641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16643 fi
16644
16645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16647 fi
16648
16649 CFLAGS="$CFLAGS -Wmissing-braces"
16650
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16652 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16653 cacheid=xorg_cv_cc_flag__Wmissing_braces
16654 if eval \${$cacheid+:} false; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658 /* end confdefs.h. */
16659 int i;
16660 int
16661 main ()
16662 {
16663
16664 ;
16665 return 0;
16666 }
16667 _ACEOF
16668 if ac_fn_c_try_link "$LINENO"; then :
16669 eval $cacheid=yes
16670 else
16671 eval $cacheid=no
16672 fi
16673 rm -f core conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 fi
16676
16677
16678 CFLAGS="$xorg_testset_save_CFLAGS"
16679
16680 eval supported=\$$cacheid
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16682 $as_echo "$supported" >&6; }
16683 if test "$supported" = "yes" ; then
16684 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16685 found="yes"
16686 fi
16687 fi
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703 xorg_testset_save_CFLAGS="$CFLAGS"
16704
16705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16709 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16710 $as_echo_n "(cached) " >&6
16711 else
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 int i;
16715 _ACEOF
16716 if ac_fn_c_try_compile "$LINENO"; then :
16717 xorg_cv_cc_flag_unknown_warning_option=yes
16718 else
16719 xorg_cv_cc_flag_unknown_warning_option=no
16720 fi
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16724 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16726 CFLAGS="$xorg_testset_save_CFLAGS"
16727 fi
16728
16729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 fi
16733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16735 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16736 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16741 int i;
16742 _ACEOF
16743 if ac_fn_c_try_compile "$LINENO"; then :
16744 xorg_cv_cc_flag_unused_command_line_argument=yes
16745 else
16746 xorg_cv_cc_flag_unused_command_line_argument=no
16747 fi
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 fi
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16751 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16753 CFLAGS="$xorg_testset_save_CFLAGS"
16754 fi
16755
16756 found="no"
16757
16758 if test $found = "no" ; then
16759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16761 fi
16762
16763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16765 fi
16766
16767 CFLAGS="$CFLAGS -Wsequence-point"
16768
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16770 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16771 cacheid=xorg_cv_cc_flag__Wsequence_point
16772 if eval \${$cacheid+:} false; then :
16773 $as_echo_n "(cached) " >&6
16774 else
16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 int i;
16778 int
16779 main ()
16780 {
16781
16782 ;
16783 return 0;
16784 }
16785 _ACEOF
16786 if ac_fn_c_try_link "$LINENO"; then :
16787 eval $cacheid=yes
16788 else
16789 eval $cacheid=no
16790 fi
16791 rm -f core conftest.err conftest.$ac_objext \
16792 conftest$ac_exeext conftest.$ac_ext
16793 fi
16794
16795
16796 CFLAGS="$xorg_testset_save_CFLAGS"
16797
16798 eval supported=\$$cacheid
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16800 $as_echo "$supported" >&6; }
16801 if test "$supported" = "yes" ; then
16802 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16803 found="yes"
16804 fi
16805 fi
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821 xorg_testset_save_CFLAGS="$CFLAGS"
16822
16823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 int i;
16833 _ACEOF
16834 if ac_fn_c_try_compile "$LINENO"; then :
16835 xorg_cv_cc_flag_unknown_warning_option=yes
16836 else
16837 xorg_cv_cc_flag_unknown_warning_option=no
16838 fi
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 fi
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16844 CFLAGS="$xorg_testset_save_CFLAGS"
16845 fi
16846
16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850 fi
16851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 int i;
16860 _ACEOF
16861 if ac_fn_c_try_compile "$LINENO"; then :
16862 xorg_cv_cc_flag_unused_command_line_argument=yes
16863 else
16864 xorg_cv_cc_flag_unused_command_line_argument=no
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16867 fi
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16871 CFLAGS="$xorg_testset_save_CFLAGS"
16872 fi
16873
16874 found="no"
16875
16876 if test $found = "no" ; then
16877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16879 fi
16880
16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16883 fi
16884
16885 CFLAGS="$CFLAGS -Wreturn-type"
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16888 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16889 cacheid=xorg_cv_cc_flag__Wreturn_type
16890 if eval \${$cacheid+:} false; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 int i;
16896 int
16897 main ()
16898 {
16899
16900 ;
16901 return 0;
16902 }
16903 _ACEOF
16904 if ac_fn_c_try_link "$LINENO"; then :
16905 eval $cacheid=yes
16906 else
16907 eval $cacheid=no
16908 fi
16909 rm -f core conftest.err conftest.$ac_objext \
16910 conftest$ac_exeext conftest.$ac_ext
16911 fi
16912
16913
16914 CFLAGS="$xorg_testset_save_CFLAGS"
16915
16916 eval supported=\$$cacheid
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16918 $as_echo "$supported" >&6; }
16919 if test "$supported" = "yes" ; then
16920 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16921 found="yes"
16922 fi
16923 fi
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939 xorg_testset_save_CFLAGS="$CFLAGS"
16940
16941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16946 $as_echo_n "(cached) " >&6
16947 else
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950 int i;
16951 _ACEOF
16952 if ac_fn_c_try_compile "$LINENO"; then :
16953 xorg_cv_cc_flag_unknown_warning_option=yes
16954 else
16955 xorg_cv_cc_flag_unknown_warning_option=no
16956 fi
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 fi
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16962 CFLAGS="$xorg_testset_save_CFLAGS"
16963 fi
16964
16965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968 fi
16969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 int i;
16978 _ACEOF
16979 if ac_fn_c_try_compile "$LINENO"; then :
16980 xorg_cv_cc_flag_unused_command_line_argument=yes
16981 else
16982 xorg_cv_cc_flag_unused_command_line_argument=no
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16985 fi
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16989 CFLAGS="$xorg_testset_save_CFLAGS"
16990 fi
16991
16992 found="no"
16993
16994 if test $found = "no" ; then
16995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16997 fi
16998
16999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17001 fi
17002
17003 CFLAGS="$CFLAGS -Wtrigraphs"
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17006 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17007 cacheid=xorg_cv_cc_flag__Wtrigraphs
17008 if eval \${$cacheid+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010 else
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17013 int i;
17014 int
17015 main ()
17016 {
17017
17018 ;
17019 return 0;
17020 }
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 eval $cacheid=yes
17024 else
17025 eval $cacheid=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 fi
17030
17031
17032 CFLAGS="$xorg_testset_save_CFLAGS"
17033
17034 eval supported=\$$cacheid
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17036 $as_echo "$supported" >&6; }
17037 if test "$supported" = "yes" ; then
17038 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17039 found="yes"
17040 fi
17041 fi
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057 xorg_testset_save_CFLAGS="$CFLAGS"
17058
17059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 int i;
17069 _ACEOF
17070 if ac_fn_c_try_compile "$LINENO"; then :
17071 xorg_cv_cc_flag_unknown_warning_option=yes
17072 else
17073 xorg_cv_cc_flag_unknown_warning_option=no
17074 fi
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17080 CFLAGS="$xorg_testset_save_CFLAGS"
17081 fi
17082
17083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086 fi
17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 int i;
17096 _ACEOF
17097 if ac_fn_c_try_compile "$LINENO"; then :
17098 xorg_cv_cc_flag_unused_command_line_argument=yes
17099 else
17100 xorg_cv_cc_flag_unused_command_line_argument=no
17101 fi
17102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17107 CFLAGS="$xorg_testset_save_CFLAGS"
17108 fi
17109
17110 found="no"
17111
17112 if test $found = "no" ; then
17113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17115 fi
17116
17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17119 fi
17120
17121 CFLAGS="$CFLAGS -Warray-bounds"
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17124 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17125 cacheid=xorg_cv_cc_flag__Warray_bounds
17126 if eval \${$cacheid+:} false; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131 int i;
17132 int
17133 main ()
17134 {
17135
17136 ;
17137 return 0;
17138 }
17139 _ACEOF
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 eval $cacheid=yes
17142 else
17143 eval $cacheid=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17147 fi
17148
17149
17150 CFLAGS="$xorg_testset_save_CFLAGS"
17151
17152 eval supported=\$$cacheid
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17154 $as_echo "$supported" >&6; }
17155 if test "$supported" = "yes" ; then
17156 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17157 found="yes"
17158 fi
17159 fi
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175 xorg_testset_save_CFLAGS="$CFLAGS"
17176
17177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17182 $as_echo_n "(cached) " >&6
17183 else
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17186 int i;
17187 _ACEOF
17188 if ac_fn_c_try_compile "$LINENO"; then :
17189 xorg_cv_cc_flag_unknown_warning_option=yes
17190 else
17191 xorg_cv_cc_flag_unknown_warning_option=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 fi
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17198 CFLAGS="$xorg_testset_save_CFLAGS"
17199 fi
17200
17201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 fi
17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17209 $as_echo_n "(cached) " >&6
17210 else
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213 int i;
17214 _ACEOF
17215 if ac_fn_c_try_compile "$LINENO"; then :
17216 xorg_cv_cc_flag_unused_command_line_argument=yes
17217 else
17218 xorg_cv_cc_flag_unused_command_line_argument=no
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17225 CFLAGS="$xorg_testset_save_CFLAGS"
17226 fi
17227
17228 found="no"
17229
17230 if test $found = "no" ; then
17231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17233 fi
17234
17235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17237 fi
17238
17239 CFLAGS="$CFLAGS -Wwrite-strings"
17240
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17242 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17243 cacheid=xorg_cv_cc_flag__Wwrite_strings
17244 if eval \${$cacheid+:} false; then :
17245 $as_echo_n "(cached) " >&6
17246 else
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17249 int i;
17250 int
17251 main ()
17252 {
17253
17254 ;
17255 return 0;
17256 }
17257 _ACEOF
17258 if ac_fn_c_try_link "$LINENO"; then :
17259 eval $cacheid=yes
17260 else
17261 eval $cacheid=no
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 fi
17266
17267
17268 CFLAGS="$xorg_testset_save_CFLAGS"
17269
17270 eval supported=\$$cacheid
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17272 $as_echo "$supported" >&6; }
17273 if test "$supported" = "yes" ; then
17274 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17275 found="yes"
17276 fi
17277 fi
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293 xorg_testset_save_CFLAGS="$CFLAGS"
17294
17295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17300 $as_echo_n "(cached) " >&6
17301 else
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17304 int i;
17305 _ACEOF
17306 if ac_fn_c_try_compile "$LINENO"; then :
17307 xorg_cv_cc_flag_unknown_warning_option=yes
17308 else
17309 xorg_cv_cc_flag_unknown_warning_option=no
17310 fi
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 fi
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17316 CFLAGS="$xorg_testset_save_CFLAGS"
17317 fi
17318
17319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322 fi
17323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17327 $as_echo_n "(cached) " >&6
17328 else
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331 int i;
17332 _ACEOF
17333 if ac_fn_c_try_compile "$LINENO"; then :
17334 xorg_cv_cc_flag_unused_command_line_argument=yes
17335 else
17336 xorg_cv_cc_flag_unused_command_line_argument=no
17337 fi
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 fi
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17343 CFLAGS="$xorg_testset_save_CFLAGS"
17344 fi
17345
17346 found="no"
17347
17348 if test $found = "no" ; then
17349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17351 fi
17352
17353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17355 fi
17356
17357 CFLAGS="$CFLAGS -Waddress"
17358
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17360 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17361 cacheid=xorg_cv_cc_flag__Waddress
17362 if eval \${$cacheid+:} false; then :
17363 $as_echo_n "(cached) " >&6
17364 else
17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h. */
17367 int i;
17368 int
17369 main ()
17370 {
17371
17372 ;
17373 return 0;
17374 }
17375 _ACEOF
17376 if ac_fn_c_try_link "$LINENO"; then :
17377 eval $cacheid=yes
17378 else
17379 eval $cacheid=no
17380 fi
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 fi
17384
17385
17386 CFLAGS="$xorg_testset_save_CFLAGS"
17387
17388 eval supported=\$$cacheid
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17390 $as_echo "$supported" >&6; }
17391 if test "$supported" = "yes" ; then
17392 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17393 found="yes"
17394 fi
17395 fi
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411 xorg_testset_save_CFLAGS="$CFLAGS"
17412
17413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17418 $as_echo_n "(cached) " >&6
17419 else
17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17422 int i;
17423 _ACEOF
17424 if ac_fn_c_try_compile "$LINENO"; then :
17425 xorg_cv_cc_flag_unknown_warning_option=yes
17426 else
17427 xorg_cv_cc_flag_unknown_warning_option=no
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 fi
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17434 CFLAGS="$xorg_testset_save_CFLAGS"
17435 fi
17436
17437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17440 fi
17441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 int i;
17450 _ACEOF
17451 if ac_fn_c_try_compile "$LINENO"; then :
17452 xorg_cv_cc_flag_unused_command_line_argument=yes
17453 else
17454 xorg_cv_cc_flag_unused_command_line_argument=no
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17461 CFLAGS="$xorg_testset_save_CFLAGS"
17462 fi
17463
17464 found="no"
17465
17466 if test $found = "no" ; then
17467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17469 fi
17470
17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17473 fi
17474
17475 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17476
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17478 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17479 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17480 if eval \${$cacheid+:} false; then :
17481 $as_echo_n "(cached) " >&6
17482 else
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17485 int i;
17486 int
17487 main ()
17488 {
17489
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 if ac_fn_c_try_link "$LINENO"; then :
17495 eval $cacheid=yes
17496 else
17497 eval $cacheid=no
17498 fi
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501 fi
17502
17503
17504 CFLAGS="$xorg_testset_save_CFLAGS"
17505
17506 eval supported=\$$cacheid
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17508 $as_echo "$supported" >&6; }
17509 if test "$supported" = "yes" ; then
17510 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17511 found="yes"
17512 fi
17513 fi
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529 xorg_testset_save_CFLAGS="$CFLAGS"
17530
17531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 int i;
17541 _ACEOF
17542 if ac_fn_c_try_compile "$LINENO"; then :
17543 xorg_cv_cc_flag_unknown_warning_option=yes
17544 else
17545 xorg_cv_cc_flag_unknown_warning_option=no
17546 fi
17547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548 fi
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17552 CFLAGS="$xorg_testset_save_CFLAGS"
17553 fi
17554
17555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17558 fi
17559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 int i;
17568 _ACEOF
17569 if ac_fn_c_try_compile "$LINENO"; then :
17570 xorg_cv_cc_flag_unused_command_line_argument=yes
17571 else
17572 xorg_cv_cc_flag_unused_command_line_argument=no
17573 fi
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 fi
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17579 CFLAGS="$xorg_testset_save_CFLAGS"
17580 fi
17581
17582 found="no"
17583
17584 if test $found = "no" ; then
17585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17587 fi
17588
17589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17591 fi
17592
17593 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17596 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17597 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17598 if eval \${$cacheid+:} false; then :
17599 $as_echo_n "(cached) " >&6
17600 else
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603 int i;
17604 int
17605 main ()
17606 {
17607
17608 ;
17609 return 0;
17610 }
17611 _ACEOF
17612 if ac_fn_c_try_link "$LINENO"; then :
17613 eval $cacheid=yes
17614 else
17615 eval $cacheid=no
17616 fi
17617 rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619 fi
17620
17621
17622 CFLAGS="$xorg_testset_save_CFLAGS"
17623
17624 eval supported=\$$cacheid
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17626 $as_echo "$supported" >&6; }
17627 if test "$supported" = "yes" ; then
17628 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17629 found="yes"
17630 fi
17631 fi
17632
17633
17634 fi
17635
17636
17637
17638
17639
17640
17641
17642 CWARNFLAGS="$BASE_CFLAGS"
17643 if test "x$GCC" = xyes ; then
17644 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17645 fi
17646
17647
17648
17649
17650
17651
17652
17653
17654 # Check whether --enable-strict-compilation was given.
17655 if test "${enable_strict_compilation+set}" = set; then :
17656 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17657 else
17658 STRICT_COMPILE=no
17659 fi
17660
17661
17662
17663
17664
17665
17666 STRICT_CFLAGS=""
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680 xorg_testset_save_CFLAGS="$CFLAGS"
17681
17682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17687 $as_echo_n "(cached) " >&6
17688 else
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 int i;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694 xorg_cv_cc_flag_unknown_warning_option=yes
17695 else
17696 xorg_cv_cc_flag_unknown_warning_option=no
17697 fi
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17703 CFLAGS="$xorg_testset_save_CFLAGS"
17704 fi
17705
17706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17709 fi
17710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17718 int i;
17719 _ACEOF
17720 if ac_fn_c_try_compile "$LINENO"; then :
17721 xorg_cv_cc_flag_unused_command_line_argument=yes
17722 else
17723 xorg_cv_cc_flag_unused_command_line_argument=no
17724 fi
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726 fi
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17730 CFLAGS="$xorg_testset_save_CFLAGS"
17731 fi
17732
17733 found="no"
17734
17735 if test $found = "no" ; then
17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17738 fi
17739
17740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17742 fi
17743
17744 CFLAGS="$CFLAGS -pedantic"
17745
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17747 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17748 cacheid=xorg_cv_cc_flag__pedantic
17749 if eval \${$cacheid+:} false; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754 int i;
17755 int
17756 main ()
17757 {
17758
17759 ;
17760 return 0;
17761 }
17762 _ACEOF
17763 if ac_fn_c_try_link "$LINENO"; then :
17764 eval $cacheid=yes
17765 else
17766 eval $cacheid=no
17767 fi
17768 rm -f core conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17770 fi
17771
17772
17773 CFLAGS="$xorg_testset_save_CFLAGS"
17774
17775 eval supported=\$$cacheid
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17777 $as_echo "$supported" >&6; }
17778 if test "$supported" = "yes" ; then
17779 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17780 found="yes"
17781 fi
17782 fi
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798 xorg_testset_save_CFLAGS="$CFLAGS"
17799
17800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17809 int i;
17810 _ACEOF
17811 if ac_fn_c_try_compile "$LINENO"; then :
17812 xorg_cv_cc_flag_unknown_warning_option=yes
17813 else
17814 xorg_cv_cc_flag_unknown_warning_option=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 fi
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17821 CFLAGS="$xorg_testset_save_CFLAGS"
17822 fi
17823
17824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17827 fi
17828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 int i;
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"; then :
17839 xorg_cv_cc_flag_unused_command_line_argument=yes
17840 else
17841 xorg_cv_cc_flag_unused_command_line_argument=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 fi
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17848 CFLAGS="$xorg_testset_save_CFLAGS"
17849 fi
17850
17851 found="no"
17852
17853 if test $found = "no" ; then
17854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17856 fi
17857
17858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17860 fi
17861
17862 CFLAGS="$CFLAGS -Werror"
17863
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17865 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17866 cacheid=xorg_cv_cc_flag__Werror
17867 if eval \${$cacheid+:} false; then :
17868 $as_echo_n "(cached) " >&6
17869 else
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17872 int i;
17873 int
17874 main ()
17875 {
17876
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 if ac_fn_c_try_link "$LINENO"; then :
17882 eval $cacheid=yes
17883 else
17884 eval $cacheid=no
17885 fi
17886 rm -f core conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17888 fi
17889
17890
17891 CFLAGS="$xorg_testset_save_CFLAGS"
17892
17893 eval supported=\$$cacheid
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17895 $as_echo "$supported" >&6; }
17896 if test "$supported" = "yes" ; then
17897 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17898 found="yes"
17899 fi
17900 fi
17901
17902 if test $found = "no" ; then
17903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17905 fi
17906
17907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17909 fi
17910
17911 CFLAGS="$CFLAGS -errwarn"
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17914 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17915 cacheid=xorg_cv_cc_flag__errwarn
17916 if eval \${$cacheid+:} false; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 int i;
17922 int
17923 main ()
17924 {
17925
17926 ;
17927 return 0;
17928 }
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931 eval $cacheid=yes
17932 else
17933 eval $cacheid=no
17934 fi
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937 fi
17938
17939
17940 CFLAGS="$xorg_testset_save_CFLAGS"
17941
17942 eval supported=\$$cacheid
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17944 $as_echo "$supported" >&6; }
17945 if test "$supported" = "yes" ; then
17946 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17947 found="yes"
17948 fi
17949 fi
17950
17951
17952
17953 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17954 # activate it with -Werror, so we add it here explicitly.
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968 xorg_testset_save_CFLAGS="$CFLAGS"
17969
17970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17975 $as_echo_n "(cached) " >&6
17976 else
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17979 int i;
17980 _ACEOF
17981 if ac_fn_c_try_compile "$LINENO"; then :
17982 xorg_cv_cc_flag_unknown_warning_option=yes
17983 else
17984 xorg_cv_cc_flag_unknown_warning_option=no
17985 fi
17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 fi
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17991 CFLAGS="$xorg_testset_save_CFLAGS"
17992 fi
17993
17994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17997 fi
17998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18002 $as_echo_n "(cached) " >&6
18003 else
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 int i;
18007 _ACEOF
18008 if ac_fn_c_try_compile "$LINENO"; then :
18009 xorg_cv_cc_flag_unused_command_line_argument=yes
18010 else
18011 xorg_cv_cc_flag_unused_command_line_argument=no
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018 CFLAGS="$xorg_testset_save_CFLAGS"
18019 fi
18020
18021 found="no"
18022
18023 if test $found = "no" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027
18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030 fi
18031
18032 CFLAGS="$CFLAGS -Werror=attributes"
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18035 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18036 cacheid=xorg_cv_cc_flag__Werror_attributes
18037 if eval \${$cacheid+:} false; then :
18038 $as_echo_n "(cached) " >&6
18039 else
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042 int i;
18043 int
18044 main ()
18045 {
18046
18047 ;
18048 return 0;
18049 }
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052 eval $cacheid=yes
18053 else
18054 eval $cacheid=no
18055 fi
18056 rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 fi
18059
18060
18061 CFLAGS="$xorg_testset_save_CFLAGS"
18062
18063 eval supported=\$$cacheid
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18065 $as_echo "$supported" >&6; }
18066 if test "$supported" = "yes" ; then
18067 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18068 found="yes"
18069 fi
18070 fi
18071
18072
18073
18074 if test "x$STRICT_COMPILE" = "xyes"; then
18075 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18076 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18077 fi
18078
18079
18080
18081
18082
18083
18084 cat >>confdefs.h <<_ACEOF
18085 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18086 _ACEOF
18087
18088 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18089 if test "x$PVM" = "x"; then
18090 PVM="0"
18091 fi
18092
18093 cat >>confdefs.h <<_ACEOF
18094 #define PACKAGE_VERSION_MINOR $PVM
18095 _ACEOF
18096
18097 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18098 if test "x$PVP" = "x"; then
18099 PVP="0"
18100 fi
18101
18102 cat >>confdefs.h <<_ACEOF
18103 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18104 _ACEOF
18105
18106
18107
18108 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18109 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18110 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18111 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18112
18113
18114
18115
18116 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18117 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18118 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18119 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18120 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18121
18122
18123
18124
18125
18126
18127 if test x$APP_MAN_SUFFIX = x ; then
18128 APP_MAN_SUFFIX=1
18129 fi
18130 if test x$APP_MAN_DIR = x ; then
18131 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18132 fi
18133
18134 if test x$LIB_MAN_SUFFIX = x ; then
18135 LIB_MAN_SUFFIX=3
18136 fi
18137 if test x$LIB_MAN_DIR = x ; then
18138 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18139 fi
18140
18141 if test x$FILE_MAN_SUFFIX = x ; then
18142 case $host_os in
18143 # Solaris 2.0 - 11 use SysV man page sections
18144 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18145 *) FILE_MAN_SUFFIX=5 ;;
18146 esac
18147 fi
18148 if test x$FILE_MAN_DIR = x ; then
18149 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18150 fi
18151
18152 if test x$MISC_MAN_SUFFIX = x ; then
18153 case $host_os in
18154 # Solaris 2.0 - 11 use SysV man page sections
18155 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18156 *) MISC_MAN_SUFFIX=7 ;;
18157 esac
18158 fi
18159 if test x$MISC_MAN_DIR = x ; then
18160 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18161 fi
18162
18163 if test x$DRIVER_MAN_SUFFIX = x ; then
18164 case $host_os in
18165 # Solaris 2.0 - 11 use SysV man page sections
18166 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18167 *) DRIVER_MAN_SUFFIX=4 ;;
18168 esac
18169 fi
18170 if test x$DRIVER_MAN_DIR = x ; then
18171 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18172 fi
18173
18174 if test x$ADMIN_MAN_SUFFIX = x ; then
18175 case $host_os in
18176 # Solaris 2.0 - 11 use SysV man page sections
18177 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18178 *) ADMIN_MAN_SUFFIX=8 ;;
18179 esac
18180 fi
18181 if test x$ADMIN_MAN_DIR = x ; then
18182 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18183 fi
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199 XORG_MAN_PAGE="X Version 11"
18200
18201 MAN_SUBSTS="\
18202 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18203 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18204 -e 's|__xservername__|Xorg|g' \
18205 -e 's|__xconfigfile__|xorg.conf|g' \
18206 -e 's|__projectroot__|\$(prefix)|g' \
18207 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18208 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18209 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18210 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18211 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18212 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18213 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18214
18215
18216
18217 # Check whether --enable-silent-rules was given.
18218 if test "${enable_silent_rules+set}" = set; then :
18219 enableval=$enable_silent_rules;
18220 fi
18221
18222 case $enable_silent_rules in # (((
18223 yes) AM_DEFAULT_VERBOSITY=0;;
18224 no) AM_DEFAULT_VERBOSITY=1;;
18225 *) AM_DEFAULT_VERBOSITY=0;;
18226 esac
18227 am_make=${MAKE-make}
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18229 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18230 if ${am_cv_make_support_nested_variables+:} false; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 if $as_echo 'TRUE=$(BAR$(V))
18234 BAR0=false
18235 BAR1=true
18236 V=1
18237 am__doit:
18238 @$(TRUE)
18239 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18240 am_cv_make_support_nested_variables=yes
18241 else
18242 am_cv_make_support_nested_variables=no
18243 fi
18244 fi
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18246 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18247 if test $am_cv_make_support_nested_variables = yes; then
18248 AM_V='$(V)'
18249 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18250 else
18251 AM_V=$AM_DEFAULT_VERBOSITY
18252 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18253 fi
18254 AM_BACKSLASH='\'
18255
18256
18257
18258 # Checks for library functions.
18259 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18260 if test "x$ac_cv_func_strcasecmp" = xyes; then :
18261
18262 else
18263
18264 $as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
18265
18266 fi
18267
18268 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
18269 if test "x$ac_cv_func_getc_unlocked" = xyes; then :
18270
18271 $as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h
18272
18273 fi
18274
18275
18276 # Obtain compiler/linker options for depedencies
18277
18278 pkg_failed=no
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5
18280 $as_echo_n "checking for XKBFILE... " >&6; }
18281
18282 if test -n "$XKBFILE_CFLAGS"; then
18283 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
18284 elif test -n "$PKG_CONFIG"; then
18285 if test -n "$PKG_CONFIG" && \
18286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
18287 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
18288 ac_status=$?
18289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18290 test $ac_status = 0; }; then
18291 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
18292 test "x$?" != "x0" && pkg_failed=yes
18293 else
18294 pkg_failed=yes
18295 fi
18296 else
18297 pkg_failed=untried
18298 fi
18299 if test -n "$XKBFILE_LIBS"; then
18300 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
18301 elif test -n "$PKG_CONFIG"; then
18302 if test -n "$PKG_CONFIG" && \
18303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
18304 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18307 test $ac_status = 0; }; then
18308 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
18309 test "x$?" != "x0" && pkg_failed=yes
18310 else
18311 pkg_failed=yes
18312 fi
18313 else
18314 pkg_failed=untried
18315 fi
18316
18317
18318
18319 if test $pkg_failed = yes; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321 $as_echo "no" >&6; }
18322
18323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18324 _pkg_short_errors_supported=yes
18325 else
18326 _pkg_short_errors_supported=no
18327 fi
18328 if test $_pkg_short_errors_supported = yes; then
18329 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1`
18330 else
18331 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1`
18332 fi
18333 # Put the nasty error message in config.log where it belongs
18334 echo "$XKBFILE_PKG_ERRORS" >&5
18335
18336 as_fn_error $? "Package requirements (x11 kbproto) were not met:
18337
18338 $XKBFILE_PKG_ERRORS
18339
18340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18341 installed software in a non-standard prefix.
18342
18343 Alternatively, you may set the environment variables XKBFILE_CFLAGS
18344 and XKBFILE_LIBS to avoid the need to call pkg-config.
18345 See the pkg-config man page for more details." "$LINENO" 5
18346 elif test $pkg_failed = untried; then
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18351 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18352 is in your PATH or set the PKG_CONFIG environment variable to the full
18353 path to pkg-config.
18354
18355 Alternatively, you may set the environment variables XKBFILE_CFLAGS
18356 and XKBFILE_LIBS to avoid the need to call pkg-config.
18357 See the pkg-config man page for more details.
18358
18359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18360 See \`config.log' for more details" "$LINENO" 5; }
18361 else
18362 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
18363 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18365 $as_echo "yes" >&6; }
18366
18367 fi
18368
18369 ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
18370
18371 cat >confcache <<\_ACEOF
18372 # This file is a shell script that caches the results of configure
18373 # tests run on this system so they can be shared between configure
18374 # scripts and configure runs, see configure's option --config-cache.
18375 # It is not useful on other systems. If it contains results you don't
18376 # want to keep, you may remove or edit it.
18377 #
18378 # config.status only pays attention to the cache file if you give it
18379 # the --recheck option to rerun configure.
18380 #
18381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18383 # following values.
18384
18385 _ACEOF
18386
18387 # The following way of writing the cache mishandles newlines in values,
18388 # but we know of no workaround that is simple, portable, and efficient.
18389 # So, we kill variables containing newlines.
18390 # Ultrix sh set writes to stderr and can't be redirected directly,
18391 # and sets the high bit in the cache file unless we assign to the vars.
18392 (
18393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18394 eval ac_val=\$$ac_var
18395 case $ac_val in #(
18396 *${as_nl}*)
18397 case $ac_var in #(
18398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18400 esac
18401 case $ac_var in #(
18402 _ | IFS | as_nl) ;; #(
18403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18404 *) { eval $ac_var=; unset $ac_var;} ;;
18405 esac ;;
18406 esac
18407 done
18408
18409 (set) 2>&1 |
18410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18411 *${as_nl}ac_space=\ *)
18412 # `set' does not quote correctly, so add quotes: double-quote
18413 # substitution turns \\\\ into \\, and sed turns \\ into \.
18414 sed -n \
18415 "s/'/'\\\\''/g;
18416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18417 ;; #(
18418 *)
18419 # `set' quotes correctly as required by POSIX, so do not add quotes.
18420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18421 ;;
18422 esac |
18423 sort
18424 ) |
18425 sed '
18426 /^ac_cv_env_/b end
18427 t clear
18428 :clear
18429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18430 t end
18431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18432 :end' >>confcache
18433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18434 if test -w "$cache_file"; then
18435 if test "x$cache_file" != "x/dev/null"; then
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18437 $as_echo "$as_me: updating cache $cache_file" >&6;}
18438 if test ! -f "$cache_file" || test -h "$cache_file"; then
18439 cat confcache >"$cache_file"
18440 else
18441 case $cache_file in #(
18442 */* | ?:*)
18443 mv -f confcache "$cache_file"$$ &&
18444 mv -f "$cache_file"$$ "$cache_file" ;; #(
18445 *)
18446 mv -f confcache "$cache_file" ;;
18447 esac
18448 fi
18449 fi
18450 else
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18452 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18453 fi
18454 fi
18455 rm -f confcache
18456
18457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18458 # Let make expand exec_prefix.
18459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18460
18461 DEFS=-DHAVE_CONFIG_H
18462
18463 ac_libobjs=
18464 ac_ltlibobjs=
18465 U=
18466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18467 # 1. Remove the extension, and $U if already installed.
18468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18471 # will be set to the directory where LIBOBJS objects are built.
18472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18474 done
18475 LIBOBJS=$ac_libobjs
18476
18477 LTLIBOBJS=$ac_ltlibobjs
18478
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18481 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18482 if test -n "$am_sleep_pid"; then
18483 # Hide warnings about reused PIDs.
18484 wait $am_sleep_pid 2>/dev/null
18485 fi
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18487 $as_echo "done" >&6; }
18488 if test -n "$EXEEXT"; then
18489 am__EXEEXT_TRUE=
18490 am__EXEEXT_FALSE='#'
18491 else
18492 am__EXEEXT_TRUE='#'
18493 am__EXEEXT_FALSE=
18494 fi
18495
18496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18497 as_fn_error $? "conditional \"AMDEP\" was never defined.
18498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18499 fi
18500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18503 fi
18504
18505 : "${CONFIG_STATUS=./config.status}"
18506 ac_write_fail=0
18507 ac_clean_files_save=$ac_clean_files
18508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18511 as_write_fail=0
18512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18513 #! $SHELL
18514 # Generated by $as_me.
18515 # Run this file to recreate the current configuration.
18516 # Compiler output produced by configure, useful for debugging
18517 # configure, is in config.log if it exists.
18518
18519 debug=false
18520 ac_cs_recheck=false
18521 ac_cs_silent=false
18522
18523 SHELL=\${CONFIG_SHELL-$SHELL}
18524 export SHELL
18525 _ASEOF
18526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18527 ## -------------------- ##
18528 ## M4sh Initialization. ##
18529 ## -------------------- ##
18530
18531 # Be more Bourne compatible
18532 DUALCASE=1; export DUALCASE # for MKS sh
18533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18534 emulate sh
18535 NULLCMD=:
18536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18537 # is contrary to our usage. Disable this feature.
18538 alias -g '${1+"$@"}'='"$@"'
18539 setopt NO_GLOB_SUBST
18540 else
18541 case `(set -o) 2>/dev/null` in #(
18542 *posix*) :
18543 set -o posix ;; #(
18544 *) :
18545 ;;
18546 esac
18547 fi
18548
18549
18550 as_nl='
18551 '
18552 export as_nl
18553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18554 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18557 # Prefer a ksh shell builtin over an external printf program on Solaris,
18558 # but without wasting forks for bash or zsh.
18559 if test -z "$BASH_VERSION$ZSH_VERSION" \
18560 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18561 as_echo='print -r --'
18562 as_echo_n='print -rn --'
18563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18564 as_echo='printf %s\n'
18565 as_echo_n='printf %s'
18566 else
18567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18568 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18569 as_echo_n='/usr/ucb/echo -n'
18570 else
18571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18572 as_echo_n_body='eval
18573 arg=$1;
18574 case $arg in #(
18575 *"$as_nl"*)
18576 expr "X$arg" : "X\\(.*\\)$as_nl";
18577 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18578 esac;
18579 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18580 '
18581 export as_echo_n_body
18582 as_echo_n='sh -c $as_echo_n_body as_echo'
18583 fi
18584 export as_echo_body
18585 as_echo='sh -c $as_echo_body as_echo'
18586 fi
18587
18588 # The user is always right.
18589 if test "${PATH_SEPARATOR+set}" != set; then
18590 PATH_SEPARATOR=:
18591 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18592 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18593 PATH_SEPARATOR=';'
18594 }
18595 fi
18596
18597
18598 # IFS
18599 # We need space, tab and new line, in precisely that order. Quoting is
18600 # there to prevent editors from complaining about space-tab.
18601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18602 # splitting by setting IFS to empty value.)
18603 IFS=" "" $as_nl"
18604
18605 # Find who we are. Look in the path if we contain no directory separator.
18606 as_myself=
18607 case $0 in #((
18608 *[\\/]* ) as_myself=$0 ;;
18609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612 IFS=$as_save_IFS
18613 test -z "$as_dir" && as_dir=.
18614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18615 done
18616 IFS=$as_save_IFS
18617
18618 ;;
18619 esac
18620 # We did not find ourselves, most probably we were run as `sh COMMAND'
18621 # in which case we are not to be found in the path.
18622 if test "x$as_myself" = x; then
18623 as_myself=$0
18624 fi
18625 if test ! -f "$as_myself"; then
18626 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18627 exit 1
18628 fi
18629
18630 # Unset variables that we do not need and which cause bugs (e.g. in
18631 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18632 # suppresses any "Segmentation fault" message there. '((' could
18633 # trigger a bug in pdksh 5.2.14.
18634 for as_var in BASH_ENV ENV MAIL MAILPATH
18635 do eval test x\${$as_var+set} = xset \
18636 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18637 done
18638 PS1='$ '
18639 PS2='> '
18640 PS4='+ '
18641
18642 # NLS nuisances.
18643 LC_ALL=C
18644 export LC_ALL
18645 LANGUAGE=C
18646 export LANGUAGE
18647
18648 # CDPATH.
18649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18650
18651
18652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18653 # ----------------------------------------
18654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18656 # script with STATUS, using 1 if that was 0.
18657 as_fn_error ()
18658 {
18659 as_status=$1; test $as_status -eq 0 && as_status=1
18660 if test "$4"; then
18661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18663 fi
18664 $as_echo "$as_me: error: $2" >&2
18665 as_fn_exit $as_status
18666 } # as_fn_error
18667
18668
18669 # as_fn_set_status STATUS
18670 # -----------------------
18671 # Set $? to STATUS, without forking.
18672 as_fn_set_status ()
18673 {
18674 return $1
18675 } # as_fn_set_status
18676
18677 # as_fn_exit STATUS
18678 # -----------------
18679 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18680 as_fn_exit ()
18681 {
18682 set +e
18683 as_fn_set_status $1
18684 exit $1
18685 } # as_fn_exit
18686
18687 # as_fn_unset VAR
18688 # ---------------
18689 # Portably unset VAR.
18690 as_fn_unset ()
18691 {
18692 { eval $1=; unset $1;}
18693 }
18694 as_unset=as_fn_unset
18695 # as_fn_append VAR VALUE
18696 # ----------------------
18697 # Append the text in VALUE to the end of the definition contained in VAR. Take
18698 # advantage of any shell optimizations that allow amortized linear growth over
18699 # repeated appends, instead of the typical quadratic growth present in naive
18700 # implementations.
18701 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18702 eval 'as_fn_append ()
18703 {
18704 eval $1+=\$2
18705 }'
18706 else
18707 as_fn_append ()
18708 {
18709 eval $1=\$$1\$2
18710 }
18711 fi # as_fn_append
18712
18713 # as_fn_arith ARG...
18714 # ------------------
18715 # Perform arithmetic evaluation on the ARGs, and store the result in the
18716 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18717 # must be portable across $(()) and expr.
18718 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18719 eval 'as_fn_arith ()
18720 {
18721 as_val=$(( $* ))
18722 }'
18723 else
18724 as_fn_arith ()
18725 {
18726 as_val=`expr "$@" || test $? -eq 1`
18727 }
18728 fi # as_fn_arith
18729
18730
18731 if expr a : '\(a\)' >/dev/null 2>&1 &&
18732 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18733 as_expr=expr
18734 else
18735 as_expr=false
18736 fi
18737
18738 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18739 as_basename=basename
18740 else
18741 as_basename=false
18742 fi
18743
18744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18745 as_dirname=dirname
18746 else
18747 as_dirname=false
18748 fi
18749
18750 as_me=`$as_basename -- "$0" ||
18751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18752 X"$0" : 'X\(//\)$' \| \
18753 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18754 $as_echo X/"$0" |
18755 sed '/^.*\/\([^/][^/]*\)\/*$/{
18756 s//\1/
18757 q
18758 }
18759 /^X\/\(\/\/\)$/{
18760 s//\1/
18761 q
18762 }
18763 /^X\/\(\/\).*/{
18764 s//\1/
18765 q
18766 }
18767 s/.*/./; q'`
18768
18769 # Avoid depending upon Character Ranges.
18770 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18771 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18772 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18773 as_cr_digits='0123456789'
18774 as_cr_alnum=$as_cr_Letters$as_cr_digits
18775
18776 ECHO_C= ECHO_N= ECHO_T=
18777 case `echo -n x` in #(((((
18778 -n*)
18779 case `echo 'xy\c'` in
18780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18781 xy) ECHO_C='\c';;
18782 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18783 ECHO_T=' ';;
18784 esac;;
18785 *)
18786 ECHO_N='-n';;
18787 esac
18788
18789 rm -f conf$$ conf$$.exe conf$$.file
18790 if test -d conf$$.dir; then
18791 rm -f conf$$.dir/conf$$.file
18792 else
18793 rm -f conf$$.dir
18794 mkdir conf$$.dir 2>/dev/null
18795 fi
18796 if (echo >conf$$.file) 2>/dev/null; then
18797 if ln -s conf$$.file conf$$ 2>/dev/null; then
18798 as_ln_s='ln -s'
18799 # ... but there are two gotchas:
18800 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18801 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18802 # In both cases, we have to default to `cp -pR'.
18803 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18804 as_ln_s='cp -pR'
18805 elif ln conf$$.file conf$$ 2>/dev/null; then
18806 as_ln_s=ln
18807 else
18808 as_ln_s='cp -pR'
18809 fi
18810 else
18811 as_ln_s='cp -pR'
18812 fi
18813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18814 rmdir conf$$.dir 2>/dev/null
18815
18816
18817 # as_fn_mkdir_p
18818 # -------------
18819 # Create "$as_dir" as a directory, including parents if necessary.
18820 as_fn_mkdir_p ()
18821 {
18822
18823 case $as_dir in #(
18824 -*) as_dir=./$as_dir;;
18825 esac
18826 test -d "$as_dir" || eval $as_mkdir_p || {
18827 as_dirs=
18828 while :; do
18829 case $as_dir in #(
18830 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18831 *) as_qdir=$as_dir;;
18832 esac
18833 as_dirs="'$as_qdir' $as_dirs"
18834 as_dir=`$as_dirname -- "$as_dir" ||
18835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$as_dir" : 'X\(//\)[^/]' \| \
18837 X"$as_dir" : 'X\(//\)$' \| \
18838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18839 $as_echo X"$as_dir" |
18840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18841 s//\1/
18842 q
18843 }
18844 /^X\(\/\/\)[^/].*/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\/\)$/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\).*/{
18853 s//\1/
18854 q
18855 }
18856 s/.*/./; q'`
18857 test -d "$as_dir" && break
18858 done
18859 test -z "$as_dirs" || eval "mkdir $as_dirs"
18860 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18861
18862
18863 } # as_fn_mkdir_p
18864 if mkdir -p . 2>/dev/null; then
18865 as_mkdir_p='mkdir -p "$as_dir"'
18866 else
18867 test -d ./-p && rmdir ./-p
18868 as_mkdir_p=false
18869 fi
18870
18871
18872 # as_fn_executable_p FILE
18873 # -----------------------
18874 # Test if FILE is an executable regular file.
18875 as_fn_executable_p ()
18876 {
18877 test -f "$1" && test -x "$1"
18878 } # as_fn_executable_p
18879 as_test_x='test -x'
18880 as_executable_p=as_fn_executable_p
18881
18882 # Sed expression to map a string onto a valid CPP name.
18883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18884
18885 # Sed expression to map a string onto a valid variable name.
18886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18887
18888
18889 exec 6>&1
18890 ## ----------------------------------- ##
18891 ## Main body of $CONFIG_STATUS script. ##
18892 ## ----------------------------------- ##
18893 _ASEOF
18894 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18895
18896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18897 # Save the log message, to keep $0 and so on meaningful, and to
18898 # report actual input values of CONFIG_FILES etc. instead of their
18899 # values after options handling.
18900 ac_log="
18901 This file was extended by libxkbfile $as_me 1.1.0, which was
18902 generated by GNU Autoconf 2.69. Invocation command line was
18903
18904 CONFIG_FILES = $CONFIG_FILES
18905 CONFIG_HEADERS = $CONFIG_HEADERS
18906 CONFIG_LINKS = $CONFIG_LINKS
18907 CONFIG_COMMANDS = $CONFIG_COMMANDS
18908 $ $0 $@
18909
18910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18911 "
18912
18913 _ACEOF
18914
18915 case $ac_config_files in *"
18916 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18917 esac
18918
18919 case $ac_config_headers in *"
18920 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18921 esac
18922
18923
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 # Files that config.status was made for.
18926 config_files="$ac_config_files"
18927 config_headers="$ac_config_headers"
18928 config_commands="$ac_config_commands"
18929
18930 _ACEOF
18931
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18933 ac_cs_usage="\
18934 \`$as_me' instantiates files and other configuration actions
18935 from templates according to the current configuration. Unless the files
18936 and actions are specified as TAGs, all are instantiated by default.
18937
18938 Usage: $0 [OPTION]... [TAG]...
18939
18940 -h, --help print this help, then exit
18941 -V, --version print version number and configuration settings, then exit
18942 --config print configuration, then exit
18943 -q, --quiet, --silent
18944 do not print progress messages
18945 -d, --debug don't remove temporary files
18946 --recheck update $as_me by reconfiguring in the same conditions
18947 --file=FILE[:TEMPLATE]
18948 instantiate the configuration file FILE
18949 --header=FILE[:TEMPLATE]
18950 instantiate the configuration header FILE
18951
18952 Configuration files:
18953 $config_files
18954
18955 Configuration headers:
18956 $config_headers
18957
18958 Configuration commands:
18959 $config_commands
18960
18961 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>."
18962
18963 _ACEOF
18964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18965 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18966 ac_cs_version="\\
18967 libxkbfile config.status 1.1.0
18968 configured by $0, generated by GNU Autoconf 2.69,
18969 with options \\"\$ac_cs_config\\"
18970
18971 Copyright (C) 2012 Free Software Foundation, Inc.
18972 This config.status script is free software; the Free Software Foundation
18973 gives unlimited permission to copy, distribute and modify it."
18974
18975 ac_pwd='$ac_pwd'
18976 srcdir='$srcdir'
18977 INSTALL='$INSTALL'
18978 MKDIR_P='$MKDIR_P'
18979 AWK='$AWK'
18980 test -n "\$AWK" || AWK=awk
18981 _ACEOF
18982
18983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18984 # The default lists apply if the user does not specify any file.
18985 ac_need_defaults=:
18986 while test $# != 0
18987 do
18988 case $1 in
18989 --*=?*)
18990 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18991 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18992 ac_shift=:
18993 ;;
18994 --*=)
18995 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18996 ac_optarg=
18997 ac_shift=:
18998 ;;
18999 *)
19000 ac_option=$1
19001 ac_optarg=$2
19002 ac_shift=shift
19003 ;;
19004 esac
19005
19006 case $ac_option in
19007 # Handling of the options.
19008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19009 ac_cs_recheck=: ;;
19010 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19011 $as_echo "$ac_cs_version"; exit ;;
19012 --config | --confi | --conf | --con | --co | --c )
19013 $as_echo "$ac_cs_config"; exit ;;
19014 --debug | --debu | --deb | --de | --d | -d )
19015 debug=: ;;
19016 --file | --fil | --fi | --f )
19017 $ac_shift
19018 case $ac_optarg in
19019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19020 '') as_fn_error $? "missing file argument" ;;
19021 esac
19022 as_fn_append CONFIG_FILES " '$ac_optarg'"
19023 ac_need_defaults=false;;
19024 --header | --heade | --head | --hea )
19025 $ac_shift
19026 case $ac_optarg in
19027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19028 esac
19029 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19030 ac_need_defaults=false;;
19031 --he | --h)
19032 # Conflict between --help and --header
19033 as_fn_error $? "ambiguous option: \`$1'
19034 Try \`$0 --help' for more information.";;
19035 --help | --hel | -h )
19036 $as_echo "$ac_cs_usage"; exit ;;
19037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19038 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19039 ac_cs_silent=: ;;
19040
19041 # This is an error.
19042 -*) as_fn_error $? "unrecognized option: \`$1'
19043 Try \`$0 --help' for more information." ;;
19044
19045 *) as_fn_append ac_config_targets " $1"
19046 ac_need_defaults=false ;;
19047
19048 esac
19049 shift
19050 done
19051
19052 ac_configure_extra_args=
19053
19054 if $ac_cs_silent; then
19055 exec 6>/dev/null
19056 ac_configure_extra_args="$ac_configure_extra_args --silent"
19057 fi
19058
19059 _ACEOF
19060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19061 if \$ac_cs_recheck; then
19062 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19063 shift
19064 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19065 CONFIG_SHELL='$SHELL'
19066 export CONFIG_SHELL
19067 exec "\$@"
19068 fi
19069
19070 _ACEOF
19071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19072 exec 5>>config.log
19073 {
19074 echo
19075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19076 ## Running $as_me. ##
19077 _ASBOX
19078 $as_echo "$ac_log"
19079 } >&5
19080
19081 _ACEOF
19082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19083 #
19084 # INIT-COMMANDS
19085 #
19086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19087
19088
19089 # The HP-UX ksh and POSIX shell print the target directory to stdout
19090 # if CDPATH is set.
19091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19092
19093 sed_quote_subst='$sed_quote_subst'
19094 double_quote_subst='$double_quote_subst'
19095 delay_variable_subst='$delay_variable_subst'
19096 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19097 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19098 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19099 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19100 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19101 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19102 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19103 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19104 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19105 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19106 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19107 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19108 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19109 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19110 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19111 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19112 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19113 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19114 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19115 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19116 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19117 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19118 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19119 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19120 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19121 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19122 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19123 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19124 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19125 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19126 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19127 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19128 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19129 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19130 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19131 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19132 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19133 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19134 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19135 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19136 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19137 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19138 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19139 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19140 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19141 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19142 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19143 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19144 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19145 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19146 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19147 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19148 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19149 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19150 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19151 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19152 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19153 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19154 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"`'
19155 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19156 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19157 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19158 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19159 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19160 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19161 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19162 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19163 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19164 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19165 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19166 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19167 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19168 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19169 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19170 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19171 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19172 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19173 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19174 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19175 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19176 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19177 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19178 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19179 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19180 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19181 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19182 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19183 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19184 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19185 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19186 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19187 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19188 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19189 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19190 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19191 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19192 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19193 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19194 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19195 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19196 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19197 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19198 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19199 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19200 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19201 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19202 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19203 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19204 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19205 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19206 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19207 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19208 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19209 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19210 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19211 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19212 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19213 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19214 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19215 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19216 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19217 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19218 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19219 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19220 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19221 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19222 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19223 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19224 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19225 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19226 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19227 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19228 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19229 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19230 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19231
19232 LTCC='$LTCC'
19233 LTCFLAGS='$LTCFLAGS'
19234 compiler='$compiler_DEFAULT'
19235
19236 # A function that is used when there is no print builtin or printf.
19237 func_fallback_echo ()
19238 {
19239 eval 'cat <<_LTECHO_EOF
19240 \$1
19241 _LTECHO_EOF'
19242 }
19243
19244 # Quote evaled strings.
19245 for var in SHELL \
19246 ECHO \
19247 PATH_SEPARATOR \
19248 SED \
19249 GREP \
19250 EGREP \
19251 FGREP \
19252 LD \
19253 NM \
19254 LN_S \
19255 lt_SP2NL \
19256 lt_NL2SP \
19257 reload_flag \
19258 OBJDUMP \
19259 deplibs_check_method \
19260 file_magic_cmd \
19261 file_magic_glob \
19262 want_nocaseglob \
19263 DLLTOOL \
19264 sharedlib_from_linklib_cmd \
19265 AR \
19266 AR_FLAGS \
19267 archiver_list_spec \
19268 STRIP \
19269 RANLIB \
19270 CC \
19271 CFLAGS \
19272 compiler \
19273 lt_cv_sys_global_symbol_pipe \
19274 lt_cv_sys_global_symbol_to_cdecl \
19275 lt_cv_sys_global_symbol_to_import \
19276 lt_cv_sys_global_symbol_to_c_name_address \
19277 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19278 lt_cv_nm_interface \
19279 nm_file_list_spec \
19280 lt_cv_truncate_bin \
19281 lt_prog_compiler_no_builtin_flag \
19282 lt_prog_compiler_pic \
19283 lt_prog_compiler_wl \
19284 lt_prog_compiler_static \
19285 lt_cv_prog_compiler_c_o \
19286 need_locks \
19287 MANIFEST_TOOL \
19288 DSYMUTIL \
19289 NMEDIT \
19290 LIPO \
19291 OTOOL \
19292 OTOOL64 \
19293 shrext_cmds \
19294 export_dynamic_flag_spec \
19295 whole_archive_flag_spec \
19296 compiler_needs_object \
19297 with_gnu_ld \
19298 allow_undefined_flag \
19299 no_undefined_flag \
19300 hardcode_libdir_flag_spec \
19301 hardcode_libdir_separator \
19302 exclude_expsyms \
19303 include_expsyms \
19304 file_list_spec \
19305 variables_saved_for_relink \
19306 libname_spec \
19307 library_names_spec \
19308 soname_spec \
19309 install_override_mode \
19310 finish_eval \
19311 old_striplib \
19312 striplib; do
19313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19314 *[\\\\\\\`\\"\\\$]*)
19315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19316 ;;
19317 *)
19318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19319 ;;
19320 esac
19321 done
19322
19323 # Double-quote double-evaled strings.
19324 for var in reload_cmds \
19325 old_postinstall_cmds \
19326 old_postuninstall_cmds \
19327 old_archive_cmds \
19328 extract_expsyms_cmds \
19329 old_archive_from_new_cmds \
19330 old_archive_from_expsyms_cmds \
19331 archive_cmds \
19332 archive_expsym_cmds \
19333 module_cmds \
19334 module_expsym_cmds \
19335 export_symbols_cmds \
19336 prelink_cmds \
19337 postlink_cmds \
19338 postinstall_cmds \
19339 postuninstall_cmds \
19340 finish_cmds \
19341 sys_lib_search_path_spec \
19342 configure_time_dlsearch_path \
19343 configure_time_lt_sys_library_path; do
19344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19345 *[\\\\\\\`\\"\\\$]*)
19346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19347 ;;
19348 *)
19349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19350 ;;
19351 esac
19352 done
19353
19354 ac_aux_dir='$ac_aux_dir'
19355
19356 # See if we are running on zsh, and set the options that allow our
19357 # commands through without removal of \ escapes INIT.
19358 if test -n "\${ZSH_VERSION+set}"; then
19359 setopt NO_GLOB_SUBST
19360 fi
19361
19362
19363 PACKAGE='$PACKAGE'
19364 VERSION='$VERSION'
19365 RM='$RM'
19366 ofile='$ofile'
19367
19368
19369
19370
19371 _ACEOF
19372
19373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19374
19375 # Handling of arguments.
19376 for ac_config_target in $ac_config_targets
19377 do
19378 case $ac_config_target in
19379 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19380 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19381 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19383 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19384 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
19385
19386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19387 esac
19388 done
19389
19390
19391 # If the user did not use the arguments to specify the items to instantiate,
19392 # then the envvar interface is used. Set only those that are not.
19393 # We use the long form for the default assignment because of an extremely
19394 # bizarre bug on SunOS 4.1.3.
19395 if $ac_need_defaults; then
19396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19399 fi
19400
19401 # Have a temporary directory for convenience. Make it in the build tree
19402 # simply because there is no reason against having it here, and in addition,
19403 # creating and moving files from /tmp can sometimes cause problems.
19404 # Hook for its removal unless debugging.
19405 # Note that there is a small window in which the directory will not be cleaned:
19406 # after its creation but before its name has been assigned to `$tmp'.
19407 $debug ||
19408 {
19409 tmp= ac_tmp=
19410 trap 'exit_status=$?
19411 : "${ac_tmp:=$tmp}"
19412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19413 ' 0
19414 trap 'as_fn_exit 1' 1 2 13 15
19415 }
19416 # Create a (secure) tmp directory for tmp files.
19417
19418 {
19419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19420 test -d "$tmp"
19421 } ||
19422 {
19423 tmp=./conf$$-$RANDOM
19424 (umask 077 && mkdir "$tmp")
19425 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19426 ac_tmp=$tmp
19427
19428 # Set up the scripts for CONFIG_FILES section.
19429 # No need to generate them if there are no CONFIG_FILES.
19430 # This happens for instance with `./config.status config.h'.
19431 if test -n "$CONFIG_FILES"; then
19432
19433
19434 ac_cr=`echo X | tr X '\015'`
19435 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19436 # But we know of no other shell where ac_cr would be empty at this
19437 # point, so we can use a bashism as a fallback.
19438 if test "x$ac_cr" = x; then
19439 eval ac_cr=\$\'\\r\'
19440 fi
19441 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19442 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19443 ac_cs_awk_cr='\\r'
19444 else
19445 ac_cs_awk_cr=$ac_cr
19446 fi
19447
19448 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19449 _ACEOF
19450
19451
19452 {
19453 echo "cat >conf$$subs.awk <<_ACEOF" &&
19454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19455 echo "_ACEOF"
19456 } >conf$$subs.sh ||
19457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19459 ac_delim='%!_!# '
19460 for ac_last_try in false false false false false :; do
19461 . ./conf$$subs.sh ||
19462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19463
19464 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19465 if test $ac_delim_n = $ac_delim_num; then
19466 break
19467 elif $ac_last_try; then
19468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19469 else
19470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19471 fi
19472 done
19473 rm -f conf$$subs.sh
19474
19475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19476 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19477 _ACEOF
19478 sed -n '
19479 h
19480 s/^/S["/; s/!.*/"]=/
19481 p
19482 g
19483 s/^[^!]*!//
19484 :repl
19485 t repl
19486 s/'"$ac_delim"'$//
19487 t delim
19488 :nl
19489 h
19490 s/\(.\{148\}\)..*/\1/
19491 t more1
19492 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19493 p
19494 n
19495 b repl
19496 :more1
19497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19498 p
19499 g
19500 s/.\{148\}//
19501 t nl
19502 :delim
19503 h
19504 s/\(.\{148\}\)..*/\1/
19505 t more2
19506 s/["\\]/\\&/g; s/^/"/; s/$/"/
19507 p
19508 b
19509 :more2
19510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19511 p
19512 g
19513 s/.\{148\}//
19514 t delim
19515 ' <conf$$subs.awk | sed '
19516 /^[^""]/{
19517 N
19518 s/\n//
19519 }
19520 ' >>$CONFIG_STATUS || ac_write_fail=1
19521 rm -f conf$$subs.awk
19522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19523 _ACAWK
19524 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19525 for (key in S) S_is_set[key] = 1
19526 FS = ""
19527
19528 }
19529 {
19530 line = $ 0
19531 nfields = split(line, field, "@")
19532 substed = 0
19533 len = length(field[1])
19534 for (i = 2; i < nfields; i++) {
19535 key = field[i]
19536 keylen = length(key)
19537 if (S_is_set[key]) {
19538 value = S[key]
19539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19540 len += length(value) + length(field[++i])
19541 substed = 1
19542 } else
19543 len += 1 + keylen
19544 }
19545
19546 print line
19547 }
19548
19549 _ACAWK
19550 _ACEOF
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19554 else
19555 cat
19556 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19557 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19558 _ACEOF
19559
19560 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19561 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19562 # trailing colons and then remove the whole line if VPATH becomes empty
19563 # (actually we leave an empty line to preserve line numbers).
19564 if test "x$srcdir" = x.; then
19565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19566 h
19567 s///
19568 s/^/:/
19569 s/[ ]*$/:/
19570 s/:\$(srcdir):/:/g
19571 s/:\${srcdir}:/:/g
19572 s/:@srcdir@:/:/g
19573 s/^:*//
19574 s/:*$//
19575 x
19576 s/\(=[ ]*\).*/\1/
19577 G
19578 s/\n//
19579 s/^[^=]*=[ ]*$//
19580 }'
19581 fi
19582
19583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584 fi # test -n "$CONFIG_FILES"
19585
19586 # Set up the scripts for CONFIG_HEADERS section.
19587 # No need to generate them if there are no CONFIG_HEADERS.
19588 # This happens for instance with `./config.status Makefile'.
19589 if test -n "$CONFIG_HEADERS"; then
19590 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19591 BEGIN {
19592 _ACEOF
19593
19594 # Transform confdefs.h into an awk script `defines.awk', embedded as
19595 # here-document in config.status, that substitutes the proper values into
19596 # config.h.in to produce config.h.
19597
19598 # Create a delimiter string that does not exist in confdefs.h, to ease
19599 # handling of long lines.
19600 ac_delim='%!_!# '
19601 for ac_last_try in false false :; do
19602 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19603 if test -z "$ac_tt"; then
19604 break
19605 elif $ac_last_try; then
19606 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19607 else
19608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19609 fi
19610 done
19611
19612 # For the awk script, D is an array of macro values keyed by name,
19613 # likewise P contains macro parameters if any. Preserve backslash
19614 # newline sequences.
19615
19616 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19617 sed -n '
19618 s/.\{148\}/&'"$ac_delim"'/g
19619 t rset
19620 :rset
19621 s/^[ ]*#[ ]*define[ ][ ]*/ /
19622 t def
19623 d
19624 :def
19625 s/\\$//
19626 t bsnl
19627 s/["\\]/\\&/g
19628 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19629 D["\1"]=" \3"/p
19630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19631 d
19632 :bsnl
19633 s/["\\]/\\&/g
19634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19635 D["\1"]=" \3\\\\\\n"\\/p
19636 t cont
19637 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19638 t cont
19639 d
19640 :cont
19641 n
19642 s/.\{148\}/&'"$ac_delim"'/g
19643 t clear
19644 :clear
19645 s/\\$//
19646 t bsnlc
19647 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19648 d
19649 :bsnlc
19650 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19651 b cont
19652 ' <confdefs.h | sed '
19653 s/'"$ac_delim"'/"\\\
19654 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19655
19656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19657 for (key in D) D_is_set[key] = 1
19658 FS = ""
19659 }
19660 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19661 line = \$ 0
19662 split(line, arg, " ")
19663 if (arg[1] == "#") {
19664 defundef = arg[2]
19665 mac1 = arg[3]
19666 } else {
19667 defundef = substr(arg[1], 2)
19668 mac1 = arg[2]
19669 }
19670 split(mac1, mac2, "(") #)
19671 macro = mac2[1]
19672 prefix = substr(line, 1, index(line, defundef) - 1)
19673 if (D_is_set[macro]) {
19674 # Preserve the white space surrounding the "#".
19675 print prefix "define", macro P[macro] D[macro]
19676 next
19677 } else {
19678 # Replace #undef with comments. This is necessary, for example,
19679 # in the case of _POSIX_SOURCE, which is predefined and required
19680 # on some systems where configure will not decide to define it.
19681 if (defundef == "undef") {
19682 print "/*", prefix defundef, macro, "*/"
19683 next
19684 }
19685 }
19686 }
19687 { print }
19688 _ACAWK
19689 _ACEOF
19690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19691 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19692 fi # test -n "$CONFIG_HEADERS"
19693
19694
19695 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19696 shift
19697 for ac_tag
19698 do
19699 case $ac_tag in
19700 :[FHLC]) ac_mode=$ac_tag; continue;;
19701 esac
19702 case $ac_mode$ac_tag in
19703 :[FHL]*:*);;
19704 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19705 :[FH]-) ac_tag=-:-;;
19706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19707 esac
19708 ac_save_IFS=$IFS
19709 IFS=:
19710 set x $ac_tag
19711 IFS=$ac_save_IFS
19712 shift
19713 ac_file=$1
19714 shift
19715
19716 case $ac_mode in
19717 :L) ac_source=$1;;
19718 :[FH])
19719 ac_file_inputs=
19720 for ac_f
19721 do
19722 case $ac_f in
19723 -) ac_f="$ac_tmp/stdin";;
19724 *) # Look for the file first in the build tree, then in the source tree
19725 # (if the path is not absolute). The absolute path cannot be DOS-style,
19726 # because $ac_f cannot contain `:'.
19727 test -f "$ac_f" ||
19728 case $ac_f in
19729 [\\/$]*) false;;
19730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19731 esac ||
19732 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19733 esac
19734 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19735 as_fn_append ac_file_inputs " '$ac_f'"
19736 done
19737
19738 # Let's still pretend it is `configure' which instantiates (i.e., don't
19739 # use $as_me), people would be surprised to read:
19740 # /* config.h. Generated by config.status. */
19741 configure_input='Generated from '`
19742 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19743 `' by configure.'
19744 if test x"$ac_file" != x-; then
19745 configure_input="$ac_file. $configure_input"
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19747 $as_echo "$as_me: creating $ac_file" >&6;}
19748 fi
19749 # Neutralize special characters interpreted by sed in replacement strings.
19750 case $configure_input in #(
19751 *\&* | *\|* | *\\* )
19752 ac_sed_conf_input=`$as_echo "$configure_input" |
19753 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19754 *) ac_sed_conf_input=$configure_input;;
19755 esac
19756
19757 case $ac_tag in
19758 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19760 esac
19761 ;;
19762 esac
19763
19764 ac_dir=`$as_dirname -- "$ac_file" ||
19765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19766 X"$ac_file" : 'X\(//\)[^/]' \| \
19767 X"$ac_file" : 'X\(//\)$' \| \
19768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19769 $as_echo X"$ac_file" |
19770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19771 s//\1/
19772 q
19773 }
19774 /^X\(\/\/\)[^/].*/{
19775 s//\1/
19776 q
19777 }
19778 /^X\(\/\/\)$/{
19779 s//\1/
19780 q
19781 }
19782 /^X\(\/\).*/{
19783 s//\1/
19784 q
19785 }
19786 s/.*/./; q'`
19787 as_dir="$ac_dir"; as_fn_mkdir_p
19788 ac_builddir=.
19789
19790 case "$ac_dir" in
19791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19792 *)
19793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19794 # A ".." for each directory in $ac_dir_suffix.
19795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19796 case $ac_top_builddir_sub in
19797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19799 esac ;;
19800 esac
19801 ac_abs_top_builddir=$ac_pwd
19802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19803 # for backward compatibility:
19804 ac_top_builddir=$ac_top_build_prefix
19805
19806 case $srcdir in
19807 .) # We are building in place.
19808 ac_srcdir=.
19809 ac_top_srcdir=$ac_top_builddir_sub
19810 ac_abs_top_srcdir=$ac_pwd ;;
19811 [\\/]* | ?:[\\/]* ) # Absolute name.
19812 ac_srcdir=$srcdir$ac_dir_suffix;
19813 ac_top_srcdir=$srcdir
19814 ac_abs_top_srcdir=$srcdir ;;
19815 *) # Relative name.
19816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19817 ac_top_srcdir=$ac_top_build_prefix$srcdir
19818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19819 esac
19820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19821
19822
19823 case $ac_mode in
19824 :F)
19825 #
19826 # CONFIG_FILE
19827 #
19828
19829 case $INSTALL in
19830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19831 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19832 esac
19833 ac_MKDIR_P=$MKDIR_P
19834 case $MKDIR_P in
19835 [\\/$]* | ?:[\\/]* ) ;;
19836 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19837 esac
19838 _ACEOF
19839
19840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19841 # If the template does not know about datarootdir, expand it.
19842 # FIXME: This hack should be removed a few years after 2.60.
19843 ac_datarootdir_hack=; ac_datarootdir_seen=
19844 ac_sed_dataroot='
19845 /datarootdir/ {
19846 p
19847 q
19848 }
19849 /@datadir@/p
19850 /@docdir@/p
19851 /@infodir@/p
19852 /@localedir@/p
19853 /@mandir@/p'
19854 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19855 *datarootdir*) ac_datarootdir_seen=yes;;
19856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19858 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19859 _ACEOF
19860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19861 ac_datarootdir_hack='
19862 s&@datadir@&$datadir&g
19863 s&@docdir@&$docdir&g
19864 s&@infodir@&$infodir&g
19865 s&@localedir@&$localedir&g
19866 s&@mandir@&$mandir&g
19867 s&\\\${datarootdir}&$datarootdir&g' ;;
19868 esac
19869 _ACEOF
19870
19871 # Neutralize VPATH when `$srcdir' = `.'.
19872 # Shell code in configure.ac might set extrasub.
19873 # FIXME: do we really want to maintain this feature?
19874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19875 ac_sed_extra="$ac_vpsub
19876 $extrasub
19877 _ACEOF
19878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19879 :t
19880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19881 s|@configure_input@|$ac_sed_conf_input|;t t
19882 s&@top_builddir@&$ac_top_builddir_sub&;t t
19883 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19884 s&@srcdir@&$ac_srcdir&;t t
19885 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19886 s&@top_srcdir@&$ac_top_srcdir&;t t
19887 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19888 s&@builddir@&$ac_builddir&;t t
19889 s&@abs_builddir@&$ac_abs_builddir&;t t
19890 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19891 s&@INSTALL@&$ac_INSTALL&;t t
19892 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19893 $ac_datarootdir_hack
19894 "
19895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19897
19898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19901 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19903 which seems to be undefined. Please make sure it is defined" >&5
19904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19905 which seems to be undefined. Please make sure it is defined" >&2;}
19906
19907 rm -f "$ac_tmp/stdin"
19908 case $ac_file in
19909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19911 esac \
19912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19913 ;;
19914 :H)
19915 #
19916 # CONFIG_HEADER
19917 #
19918 if test x"$ac_file" != x-; then
19919 {
19920 $as_echo "/* $configure_input */" \
19921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19922 } >"$ac_tmp/config.h" \
19923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19926 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19927 else
19928 rm -f "$ac_file"
19929 mv "$ac_tmp/config.h" "$ac_file" \
19930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19931 fi
19932 else
19933 $as_echo "/* $configure_input */" \
19934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19935 || as_fn_error $? "could not create -" "$LINENO" 5
19936 fi
19937 # Compute "$ac_file"'s index in $config_headers.
19938 _am_arg="$ac_file"
19939 _am_stamp_count=1
19940 for _am_header in $config_headers :; do
19941 case $_am_header in
19942 $_am_arg | $_am_arg:* )
19943 break ;;
19944 * )
19945 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19946 esac
19947 done
19948 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19949 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19950 X"$_am_arg" : 'X\(//\)[^/]' \| \
19951 X"$_am_arg" : 'X\(//\)$' \| \
19952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19953 $as_echo X"$_am_arg" |
19954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19955 s//\1/
19956 q
19957 }
19958 /^X\(\/\/\)[^/].*/{
19959 s//\1/
19960 q
19961 }
19962 /^X\(\/\/\)$/{
19963 s//\1/
19964 q
19965 }
19966 /^X\(\/\).*/{
19967 s//\1/
19968 q
19969 }
19970 s/.*/./; q'`/stamp-h$_am_stamp_count
19971 ;;
19972
19973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19974 $as_echo "$as_me: executing $ac_file commands" >&6;}
19975 ;;
19976 esac
19977
19978
19979 case $ac_file$ac_mode in
19980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19981 # Older Autoconf quotes --file arguments for eval, but not when files
19982 # are listed without --file. Let's play safe and only enable the eval
19983 # if we detect the quoting.
19984 case $CONFIG_FILES in
19985 *\'*) eval set x "$CONFIG_FILES" ;;
19986 *) set x $CONFIG_FILES ;;
19987 esac
19988 shift
19989 for mf
19990 do
19991 # Strip MF so we end up with the name of the file.
19992 mf=`echo "$mf" | sed -e 's/:.*$//'`
19993 # Check whether this is an Automake generated Makefile or not.
19994 # We used to match only the files named 'Makefile.in', but
19995 # some people rename them; so instead we look at the file content.
19996 # Grep'ing the first line is not enough: some people post-process
19997 # each Makefile.in and add a new line on top of each file to say so.
19998 # Grep'ing the whole file is not good either: AIX grep has a line
19999 # limit of 2048, but all sed's we know have understand at least 4000.
20000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20001 dirpart=`$as_dirname -- "$mf" ||
20002 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20003 X"$mf" : 'X\(//\)[^/]' \| \
20004 X"$mf" : 'X\(//\)$' \| \
20005 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20006 $as_echo X"$mf" |
20007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20008 s//\1/
20009 q
20010 }
20011 /^X\(\/\/\)[^/].*/{
20012 s//\1/
20013 q
20014 }
20015 /^X\(\/\/\)$/{
20016 s//\1/
20017 q
20018 }
20019 /^X\(\/\).*/{
20020 s//\1/
20021 q
20022 }
20023 s/.*/./; q'`
20024 else
20025 continue
20026 fi
20027 # Extract the definition of DEPDIR, am__include, and am__quote
20028 # from the Makefile without running 'make'.
20029 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20030 test -z "$DEPDIR" && continue
20031 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20032 test -z "$am__include" && continue
20033 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20034 # Find all dependency output files, they are included files with
20035 # $(DEPDIR) in their names. We invoke sed twice because it is the
20036 # simplest approach to changing $(DEPDIR) to its actual value in the
20037 # expansion.
20038 for file in `sed -n "
20039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20041 # Make sure the directory exists.
20042 test -f "$dirpart/$file" && continue
20043 fdir=`$as_dirname -- "$file" ||
20044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20045 X"$file" : 'X\(//\)[^/]' \| \
20046 X"$file" : 'X\(//\)$' \| \
20047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20048 $as_echo X"$file" |
20049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20050 s//\1/
20051 q
20052 }
20053 /^X\(\/\/\)[^/].*/{
20054 s//\1/
20055 q
20056 }
20057 /^X\(\/\/\)$/{
20058 s//\1/
20059 q
20060 }
20061 /^X\(\/\).*/{
20062 s//\1/
20063 q
20064 }
20065 s/.*/./; q'`
20066 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20067 # echo "creating $dirpart/$file"
20068 echo '# dummy' > "$dirpart/$file"
20069 done
20070 done
20071 }
20072 ;;
20073 "libtool":C)
20074
20075 # See if we are running on zsh, and set the options that allow our
20076 # commands through without removal of \ escapes.
20077 if test -n "${ZSH_VERSION+set}"; then
20078 setopt NO_GLOB_SUBST
20079 fi
20080
20081 cfgfile=${ofile}T
20082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20083 $RM "$cfgfile"
20084
20085 cat <<_LT_EOF >> "$cfgfile"
20086 #! $SHELL
20087 # Generated automatically by $as_me ($PACKAGE) $VERSION
20088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20089 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20090
20091 # Provide generalized library-building support services.
20092 # Written by Gordon Matzigkeit, 1996
20093
20094 # Copyright (C) 2014 Free Software Foundation, Inc.
20095 # This is free software; see the source for copying conditions. There is NO
20096 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20097
20098 # GNU Libtool is free software; you can redistribute it and/or modify
20099 # it under the terms of the GNU General Public License as published by
20100 # the Free Software Foundation; either version 2 of of the License, or
20101 # (at your option) any later version.
20102 #
20103 # As a special exception to the GNU General Public License, if you
20104 # distribute this file as part of a program or library that is built
20105 # using GNU Libtool, you may include this file under the same
20106 # distribution terms that you use for the rest of that program.
20107 #
20108 # GNU Libtool is distributed in the hope that it will be useful, but
20109 # WITHOUT ANY WARRANTY; without even the implied warranty of
20110 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20111 # GNU General Public License for more details.
20112 #
20113 # You should have received a copy of the GNU General Public License
20114 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20115
20116
20117 # The names of the tagged configurations supported by this script.
20118 available_tags=''
20119
20120 # Configured defaults for sys_lib_dlsearch_path munging.
20121 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20122
20123 # ### BEGIN LIBTOOL CONFIG
20124
20125 # Which release of libtool.m4 was used?
20126 macro_version=$macro_version
20127 macro_revision=$macro_revision
20128
20129 # Whether or not to build shared libraries.
20130 build_libtool_libs=$enable_shared
20131
20132 # Whether or not to build static libraries.
20133 build_old_libs=$enable_static
20134
20135 # What type of objects to build.
20136 pic_mode=$pic_mode
20137
20138 # Whether or not to optimize for fast installation.
20139 fast_install=$enable_fast_install
20140
20141 # Shared archive member basename,for filename based shared library versioning on AIX.
20142 shared_archive_member_spec=$shared_archive_member_spec
20143
20144 # Shell to use when invoking shell scripts.
20145 SHELL=$lt_SHELL
20146
20147 # An echo program that protects backslashes.
20148 ECHO=$lt_ECHO
20149
20150 # The PATH separator for the build system.
20151 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20152
20153 # The host system.
20154 host_alias=$host_alias
20155 host=$host
20156 host_os=$host_os
20157
20158 # The build system.
20159 build_alias=$build_alias
20160 build=$build
20161 build_os=$build_os
20162
20163 # A sed program that does not truncate output.
20164 SED=$lt_SED
20165
20166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20167 Xsed="\$SED -e 1s/^X//"
20168
20169 # A grep program that handles long lines.
20170 GREP=$lt_GREP
20171
20172 # An ERE matcher.
20173 EGREP=$lt_EGREP
20174
20175 # A literal string matcher.
20176 FGREP=$lt_FGREP
20177
20178 # A BSD- or MS-compatible name lister.
20179 NM=$lt_NM
20180
20181 # Whether we need soft or hard links.
20182 LN_S=$lt_LN_S
20183
20184 # What is the maximum length of a command?
20185 max_cmd_len=$max_cmd_len
20186
20187 # Object file suffix (normally "o").
20188 objext=$ac_objext
20189
20190 # Executable file suffix (normally "").
20191 exeext=$exeext
20192
20193 # whether the shell understands "unset".
20194 lt_unset=$lt_unset
20195
20196 # turn spaces into newlines.
20197 SP2NL=$lt_lt_SP2NL
20198
20199 # turn newlines into spaces.
20200 NL2SP=$lt_lt_NL2SP
20201
20202 # convert \$build file names to \$host format.
20203 to_host_file_cmd=$lt_cv_to_host_file_cmd
20204
20205 # convert \$build files to toolchain format.
20206 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20207
20208 # An object symbol dumper.
20209 OBJDUMP=$lt_OBJDUMP
20210
20211 # Method to check whether dependent libraries are shared objects.
20212 deplibs_check_method=$lt_deplibs_check_method
20213
20214 # Command to use when deplibs_check_method = "file_magic".
20215 file_magic_cmd=$lt_file_magic_cmd
20216
20217 # How to find potential files when deplibs_check_method = "file_magic".
20218 file_magic_glob=$lt_file_magic_glob
20219
20220 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20221 want_nocaseglob=$lt_want_nocaseglob
20222
20223 # DLL creation program.
20224 DLLTOOL=$lt_DLLTOOL
20225
20226 # Command to associate shared and link libraries.
20227 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20228
20229 # The archiver.
20230 AR=$lt_AR
20231
20232 # Flags to create an archive.
20233 AR_FLAGS=$lt_AR_FLAGS
20234
20235 # How to feed a file listing to the archiver.
20236 archiver_list_spec=$lt_archiver_list_spec
20237
20238 # A symbol stripping program.
20239 STRIP=$lt_STRIP
20240
20241 # Commands used to install an old-style archive.
20242 RANLIB=$lt_RANLIB
20243 old_postinstall_cmds=$lt_old_postinstall_cmds
20244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20245
20246 # Whether to use a lock for old archive extraction.
20247 lock_old_archive_extraction=$lock_old_archive_extraction
20248
20249 # A C compiler.
20250 LTCC=$lt_CC
20251
20252 # LTCC compiler flags.
20253 LTCFLAGS=$lt_CFLAGS
20254
20255 # Take the output of nm and produce a listing of raw symbols and C names.
20256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20257
20258 # Transform the output of nm in a proper C declaration.
20259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20260
20261 # Transform the output of nm into a list of symbols to manually relocate.
20262 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20263
20264 # Transform the output of nm in a C name address pair.
20265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20266
20267 # Transform the output of nm in a C name address pair when lib prefix is needed.
20268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20269
20270 # The name lister interface.
20271 nm_interface=$lt_lt_cv_nm_interface
20272
20273 # Specify filename containing input files for \$NM.
20274 nm_file_list_spec=$lt_nm_file_list_spec
20275
20276 # The root where to search for dependent libraries,and where our libraries should be installed.
20277 lt_sysroot=$lt_sysroot
20278
20279 # Command to truncate a binary pipe.
20280 lt_truncate_bin=$lt_lt_cv_truncate_bin
20281
20282 # The name of the directory that contains temporary libtool files.
20283 objdir=$objdir
20284
20285 # Used to examine libraries when file_magic_cmd begins with "file".
20286 MAGIC_CMD=$MAGIC_CMD
20287
20288 # Must we lock files when doing compilation?
20289 need_locks=$lt_need_locks
20290
20291 # Manifest tool.
20292 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20293
20294 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20295 DSYMUTIL=$lt_DSYMUTIL
20296
20297 # Tool to change global to local symbols on Mac OS X.
20298 NMEDIT=$lt_NMEDIT
20299
20300 # Tool to manipulate fat objects and archives on Mac OS X.
20301 LIPO=$lt_LIPO
20302
20303 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20304 OTOOL=$lt_OTOOL
20305
20306 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20307 OTOOL64=$lt_OTOOL64
20308
20309 # Old archive suffix (normally "a").
20310 libext=$libext
20311
20312 # Shared library suffix (normally ".so").
20313 shrext_cmds=$lt_shrext_cmds
20314
20315 # The commands to extract the exported symbol list from a shared archive.
20316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20317
20318 # Variables whose values should be saved in libtool wrapper scripts and
20319 # restored at link time.
20320 variables_saved_for_relink=$lt_variables_saved_for_relink
20321
20322 # Do we need the "lib" prefix for modules?
20323 need_lib_prefix=$need_lib_prefix
20324
20325 # Do we need a version for libraries?
20326 need_version=$need_version
20327
20328 # Library versioning type.
20329 version_type=$version_type
20330
20331 # Shared library runtime path variable.
20332 runpath_var=$runpath_var
20333
20334 # Shared library path variable.
20335 shlibpath_var=$shlibpath_var
20336
20337 # Is shlibpath searched before the hard-coded library search path?
20338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20339
20340 # Format of library name prefix.
20341 libname_spec=$lt_libname_spec
20342
20343 # List of archive names. First name is the real one, the rest are links.
20344 # The last name is the one that the linker finds with -lNAME
20345 library_names_spec=$lt_library_names_spec
20346
20347 # The coded name of the library, if different from the real name.
20348 soname_spec=$lt_soname_spec
20349
20350 # Permission mode override for installation of shared libraries.
20351 install_override_mode=$lt_install_override_mode
20352
20353 # Command to use after installation of a shared archive.
20354 postinstall_cmds=$lt_postinstall_cmds
20355
20356 # Command to use after uninstallation of a shared archive.
20357 postuninstall_cmds=$lt_postuninstall_cmds
20358
20359 # Commands used to finish a libtool library installation in a directory.
20360 finish_cmds=$lt_finish_cmds
20361
20362 # As "finish_cmds", except a single script fragment to be evaled but
20363 # not shown.
20364 finish_eval=$lt_finish_eval
20365
20366 # Whether we should hardcode library paths into libraries.
20367 hardcode_into_libs=$hardcode_into_libs
20368
20369 # Compile-time system search path for libraries.
20370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20371
20372 # Detected run-time system search path for libraries.
20373 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20374
20375 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20376 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20377
20378 # Whether dlopen is supported.
20379 dlopen_support=$enable_dlopen
20380
20381 # Whether dlopen of programs is supported.
20382 dlopen_self=$enable_dlopen_self
20383
20384 # Whether dlopen of statically linked programs is supported.
20385 dlopen_self_static=$enable_dlopen_self_static
20386
20387 # Commands to strip libraries.
20388 old_striplib=$lt_old_striplib
20389 striplib=$lt_striplib
20390
20391
20392 # The linker used to build libraries.
20393 LD=$lt_LD
20394
20395 # How to create reloadable object files.
20396 reload_flag=$lt_reload_flag
20397 reload_cmds=$lt_reload_cmds
20398
20399 # Commands used to build an old-style archive.
20400 old_archive_cmds=$lt_old_archive_cmds
20401
20402 # A language specific compiler.
20403 CC=$lt_compiler
20404
20405 # Is the compiler the GNU compiler?
20406 with_gcc=$GCC
20407
20408 # Compiler flag to turn off builtin functions.
20409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20410
20411 # Additional compiler flags for building library objects.
20412 pic_flag=$lt_lt_prog_compiler_pic
20413
20414 # How to pass a linker flag through the compiler.
20415 wl=$lt_lt_prog_compiler_wl
20416
20417 # Compiler flag to prevent dynamic linking.
20418 link_static_flag=$lt_lt_prog_compiler_static
20419
20420 # Does compiler simultaneously support -c and -o options?
20421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20422
20423 # Whether or not to add -lc for building shared libraries.
20424 build_libtool_need_lc=$archive_cmds_need_lc
20425
20426 # Whether or not to disallow shared libs when runtime libs are static.
20427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20428
20429 # Compiler flag to allow reflexive dlopens.
20430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20431
20432 # Compiler flag to generate shared objects directly from archives.
20433 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20434
20435 # Whether the compiler copes with passing no objects directly.
20436 compiler_needs_object=$lt_compiler_needs_object
20437
20438 # Create an old-style archive from a shared archive.
20439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20440
20441 # Create a temporary old-style archive to link instead of a shared archive.
20442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20443
20444 # Commands used to build a shared archive.
20445 archive_cmds=$lt_archive_cmds
20446 archive_expsym_cmds=$lt_archive_expsym_cmds
20447
20448 # Commands used to build a loadable module if different from building
20449 # a shared archive.
20450 module_cmds=$lt_module_cmds
20451 module_expsym_cmds=$lt_module_expsym_cmds
20452
20453 # Whether we are building with GNU ld or not.
20454 with_gnu_ld=$lt_with_gnu_ld
20455
20456 # Flag that allows shared libraries with undefined symbols to be built.
20457 allow_undefined_flag=$lt_allow_undefined_flag
20458
20459 # Flag that enforces no undefined symbols.
20460 no_undefined_flag=$lt_no_undefined_flag
20461
20462 # Flag to hardcode \$libdir into a binary during linking.
20463 # This must work even if \$libdir does not exist
20464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20465
20466 # Whether we need a single "-rpath" flag with a separated argument.
20467 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20468
20469 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20470 # DIR into the resulting binary.
20471 hardcode_direct=$hardcode_direct
20472
20473 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20474 # DIR into the resulting binary and the resulting library dependency is
20475 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20476 # library is relocated.
20477 hardcode_direct_absolute=$hardcode_direct_absolute
20478
20479 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20480 # into the resulting binary.
20481 hardcode_minus_L=$hardcode_minus_L
20482
20483 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20484 # into the resulting binary.
20485 hardcode_shlibpath_var=$hardcode_shlibpath_var
20486
20487 # Set to "yes" if building a shared library automatically hardcodes DIR
20488 # into the library and all subsequent libraries and executables linked
20489 # against it.
20490 hardcode_automatic=$hardcode_automatic
20491
20492 # Set to yes if linker adds runtime paths of dependent libraries
20493 # to runtime path list.
20494 inherit_rpath=$inherit_rpath
20495
20496 # Whether libtool must link a program against all its dependency libraries.
20497 link_all_deplibs=$link_all_deplibs
20498
20499 # Set to "yes" if exported symbols are required.
20500 always_export_symbols=$always_export_symbols
20501
20502 # The commands to list exported symbols.
20503 export_symbols_cmds=$lt_export_symbols_cmds
20504
20505 # Symbols that should not be listed in the preloaded symbols.
20506 exclude_expsyms=$lt_exclude_expsyms
20507
20508 # Symbols that must always be exported.
20509 include_expsyms=$lt_include_expsyms
20510
20511 # Commands necessary for linking programs (against libraries) with templates.
20512 prelink_cmds=$lt_prelink_cmds
20513
20514 # Commands necessary for finishing linking programs.
20515 postlink_cmds=$lt_postlink_cmds
20516
20517 # Specify filename containing input files.
20518 file_list_spec=$lt_file_list_spec
20519
20520 # How to hardcode a shared library path into an executable.
20521 hardcode_action=$hardcode_action
20522
20523 # ### END LIBTOOL CONFIG
20524
20525 _LT_EOF
20526
20527 cat <<'_LT_EOF' >> "$cfgfile"
20528
20529 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20530
20531 # func_munge_path_list VARIABLE PATH
20532 # -----------------------------------
20533 # VARIABLE is name of variable containing _space_ separated list of
20534 # directories to be munged by the contents of PATH, which is string
20535 # having a format:
20536 # "DIR[:DIR]:"
20537 # string "DIR[ DIR]" will be prepended to VARIABLE
20538 # ":DIR[:DIR]"
20539 # string "DIR[ DIR]" will be appended to VARIABLE
20540 # "DIRP[:DIRP]::[DIRA:]DIRA"
20541 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20542 # "DIRA[ DIRA]" will be appended to VARIABLE
20543 # "DIR[:DIR]"
20544 # VARIABLE will be replaced by "DIR[ DIR]"
20545 func_munge_path_list ()
20546 {
20547 case x$2 in
20548 x)
20549 ;;
20550 *:)
20551 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20552 ;;
20553 x:*)
20554 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20555 ;;
20556 *::*)
20557 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20558 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20559 ;;
20560 *)
20561 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20562 ;;
20563 esac
20564 }
20565
20566
20567 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20568 func_cc_basename ()
20569 {
20570 for cc_temp in $*""; do
20571 case $cc_temp in
20572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20574 \-*) ;;
20575 *) break;;
20576 esac
20577 done
20578 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20579 }
20580
20581
20582 # ### END FUNCTIONS SHARED WITH CONFIGURE
20583
20584 _LT_EOF
20585
20586 case $host_os in
20587 aix3*)
20588 cat <<\_LT_EOF >> "$cfgfile"
20589 # AIX sometimes has problems with the GCC collect2 program. For some
20590 # reason, if we set the COLLECT_NAMES environment variable, the problems
20591 # vanish in a puff of smoke.
20592 if test set != "${COLLECT_NAMES+set}"; then
20593 COLLECT_NAMES=
20594 export COLLECT_NAMES
20595 fi
20596 _LT_EOF
20597 ;;
20598 esac
20599
20600
20601 ltmain=$ac_aux_dir/ltmain.sh
20602
20603
20604 # We use sed instead of cat because bash on DJGPP gets confused if
20605 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20606 # text mode, it properly converts lines to CR/LF. This bash problem
20607 # is reportedly fixed, but why not run on old versions too?
20608 sed '$q' "$ltmain" >> "$cfgfile" \
20609 || (rm -f "$cfgfile"; exit 1)
20610
20611 mv -f "$cfgfile" "$ofile" ||
20612 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20613 chmod +x "$ofile"
20614
20615 ;;
20616
20617 esac
20618 done # for ac_tag
20619
20620
20621 as_fn_exit 0
20622 _ACEOF
20623 ac_clean_files=$ac_clean_files_save
20624
20625 test $ac_write_fail = 0 ||
20626 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20627
20628
20629 # configure is writing to config.log, and then calls config.status.
20630 # config.status does its own redirection, appending to config.log.
20631 # Unfortunately, on DOS this fails, as config.log is still kept open
20632 # by configure, so config.status won't be able to write to it; its
20633 # output is simply discarded. So we exec the FD to /dev/null,
20634 # effectively closing config.log, so it can be properly (re)opened and
20635 # appended to by config.status. When coming back to configure, we
20636 # need to make the FD available again.
20637 if test "$no_create" != yes; then
20638 ac_cs_success=:
20639 ac_config_status_args=
20640 test "$silent" = yes &&
20641 ac_config_status_args="$ac_config_status_args --quiet"
20642 exec 5>/dev/null
20643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20644 exec 5>>config.log
20645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20646 # would make configure fail if this is the last instruction.
20647 $ac_cs_success || as_fn_exit 1
20648 fi
20649 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20651 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20652 fi
20653
20654