configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXres 1.2.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/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/libXRes/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='libXres'
593 PACKAGE_TARNAME='libXres'
594 PACKAGE_VERSION='1.2.1'
595 PACKAGE_STRING='libXres 1.2.1'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXRes/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 XRES_LIBS
641 XRES_CFLAGS
642 XTMALLOC_ZERO_CFLAGS
643 XMALLOC_ZERO_CFLAGS
644 MALLOC_ZERO_CFLAGS
645 MAN_SUBSTS
646 XORG_MAN_PAGE
647 ADMIN_MAN_DIR
648 DRIVER_MAN_DIR
649 MISC_MAN_DIR
650 FILE_MAN_DIR
651 LIB_MAN_DIR
652 APP_MAN_DIR
653 ADMIN_MAN_SUFFIX
654 DRIVER_MAN_SUFFIX
655 MISC_MAN_SUFFIX
656 FILE_MAN_SUFFIX
657 LIB_MAN_SUFFIX
658 APP_MAN_SUFFIX
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 CPP
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL
780 am__quote'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_aix_soname
790 enable_dependency_tracking
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 enable_selective_werror
795 enable_strict_compilation
796 enable_malloc0returnsnull
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 LT_SYS_LIBRARY_PATH
807 CPP
808 PKG_CONFIG
809 PKG_CONFIG_PATH
810 PKG_CONFIG_LIBDIR
811 XRES_CFLAGS
812 XRES_LIBS'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 runstatedir='${localstatedir}/run'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -runstatedir | --runstatedir | --runstatedi | --runstated \
1105 | --runstate | --runstat | --runsta | --runst | --runs \
1106 | --run | --ru | --r)
1107 ac_prev=runstatedir ;;
1108 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1109 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1110 | --run=* | --ru=* | --r=*)
1111 runstatedir=$ac_optarg ;;
1112
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1118
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1129
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1134
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1139
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1146
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1151
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1154
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1157
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=\$ac_optarg ;;
1173
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1207
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1210 ;;
1211
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1221
1222 *)
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 ;;
1229
1230 esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir runstatedir
1251 do
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 elif test "x$build_alias" != "x$host_alias"; then
1279 cross_compiling=yes
1280 fi
1281 fi
1282
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286 test "$silent" = yes && exec 6>/dev/null
1287
1288
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)[^/].*/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\).*/{
1320 s//\1/
1321 q
1322 }
1323 s/.*/./; q'`
1324 srcdir=$ac_confdir
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 srcdir=..
1327 fi
1328 else
1329 ac_srcdir_defaulted=no
1330 fi
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1355
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures libXres 1.2.1 to adapt to many kinds of systems.
1364
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1369
1370 Defaults for the options are specified in brackets.
1371
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1388
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1393
1394 For better control, use the options below.
1395
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1418
1419 cat <<\_ACEOF
1420
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of libXres 1.2.1:";;
1435 esac
1436 cat <<\_ACEOF
1437
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --enable-dependency-tracking
1449 do not reject slow dependency extractors
1450 --disable-dependency-tracking
1451 speeds up one-time build
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --disable-selective-werror
1454 Turn off selective compiler errors. (default:
1455 enabled)
1456 --enable-strict-compilation
1457 Enable all warnings from compiler and make them
1458 errors (default: disabled)
1459 --enable-malloc0returnsnull
1460 malloc(0) returns NULL (default: auto)
1461
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --with-aix-soname=aix|svr4|both
1468 shared library versioning (aka "SONAME") variant to
1469 provide on AIX, [default=aix].
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1472 compiler's sysroot if not specified).
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 LT_SYS_LIBRARY_PATH
1483 User-defined run-time library search path.
1484 CPP C preprocessor
1485 PKG_CONFIG path to pkg-config utility
1486 PKG_CONFIG_PATH
1487 directories to add to pkg-config's search path
1488 PKG_CONFIG_LIBDIR
1489 path overriding pkg-config's built-in search path
1490 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1491 XRES_LIBS linker flags for XRES, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/issues>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 libXres configure 1.2.1
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 test -x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760 fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1783
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1788
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1794
1795 #undef $2
1796
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1810
1811 int
1812 main ()
1813 {
1814 return $2 ();
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_func
1833
1834 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1835 # ---------------------------------------------
1836 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1837 # accordingly.
1838 ac_fn_c_check_decl ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 as_decl_name=`echo $2|sed 's/ *(.*//'`
1842 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1844 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 int
1852 main ()
1853 {
1854 #ifndef $as_decl_name
1855 #ifdef __cplusplus
1856 (void) $as_decl_use;
1857 #else
1858 (void) $as_decl_name;
1859 #endif
1860 #endif
1861
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_decl
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by libXres $as_me 1.2.1, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232 ac_config_headers="$ac_config_headers config.h"
2233
2234
2235 # Initialize Automake
2236 am__api_version='1.16'
2237
2238 ac_aux_dir=
2239 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2240 if test -f "$ac_dir/install-sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install-sh -c"
2243 break
2244 elif test -f "$ac_dir/install.sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install.sh -c"
2247 break
2248 elif test -f "$ac_dir/shtool"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/shtool install -c"
2251 break
2252 fi
2253 done
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 MISSING="\${SHELL} '$am_aux_dir/missing'"
2442 fi
2443 # Use eval to expand $SHELL
2444 if eval "$MISSING --is-lightweight"; then
2445 am_missing_run="$MISSING "
2446 else
2447 am_missing_run=
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2449 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2450 fi
2451
2452 if test x"${install_sh+set}" != xset; then
2453 case $am_aux_dir in
2454 *\ * | *\ *)
2455 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2456 *)
2457 install_sh="\${SHELL} $am_aux_dir/install-sh"
2458 esac
2459 fi
2460
2461 # Installed binaries are usually stripped using 'strip' when the user
2462 # run "make install-strip". However 'strip' might not be the right
2463 # tool to use in cross-compilation environments, therefore Automake
2464 # will honor the 'STRIP' environment variable to overrule this program.
2465 if test "$cross_compiling" != no; then
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}strip; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_STRIP+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$STRIP"; then
2475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 STRIP=$ac_cv_prog_STRIP
2495 if test -n "$STRIP"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2497 $as_echo "$STRIP" >&6; }
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503
2504 fi
2505 if test -z "$ac_cv_prog_STRIP"; then
2506 ac_ct_STRIP=$STRIP
2507 # Extract the first word of "strip", so it can be a program name with args.
2508 set dummy strip; ac_word=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test -n "$ac_ct_STRIP"; then
2515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_ac_ct_STRIP="strip"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2535 if test -n "$ac_ct_STRIP"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2537 $as_echo "$ac_ct_STRIP" >&6; }
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543 if test "x$ac_ct_STRIP" = x; then
2544 STRIP=":"
2545 else
2546 case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552 STRIP=$ac_ct_STRIP
2553 fi
2554 else
2555 STRIP="$ac_cv_prog_STRIP"
2556 fi
2557
2558 fi
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2562 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2563 if test -z "$MKDIR_P"; then
2564 if ${ac_cv_path_mkdir+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_prog in mkdir gmkdir; do
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2575 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2576 'mkdir (GNU coreutils) '* | \
2577 'mkdir (coreutils) '* | \
2578 'mkdir (fileutils) '4.1*)
2579 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2580 break 3;;
2581 esac
2582 done
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588
2589 test -d ./--version && rmdir ./--version
2590 if test "${ac_cv_path_mkdir+set}" = set; then
2591 MKDIR_P="$ac_cv_path_mkdir -p"
2592 else
2593 # As a last resort, use the slow shell script. Don't cache a
2594 # value for MKDIR_P within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the value is a relative name.
2597 MKDIR_P="$ac_install_sh -d"
2598 fi
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2601 $as_echo "$MKDIR_P" >&6; }
2602
2603 for ac_prog in gawk mawk nawk awk
2604 do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_AWK+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$AWK"; then
2613 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_AWK="$ac_prog"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 AWK=$ac_cv_prog_AWK
2633 if test -n "$AWK"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2635 $as_echo "$AWK" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 test -n "$AWK" && break
2643 done
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2647 set x ${MAKE-make}
2648 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2649 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat >conftest.make <<\_ACEOF
2653 SHELL = /bin/sh
2654 all:
2655 @echo '@@@%%%=$(MAKE)=@@@%%%'
2656 _ACEOF
2657 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2659 *@@@%%%=?*=@@@%%%*)
2660 eval ac_cv_prog_make_${ac_make}_set=yes;;
2661 *)
2662 eval ac_cv_prog_make_${ac_make}_set=no;;
2663 esac
2664 rm -f conftest.make
2665 fi
2666 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 SET_MAKE=
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 SET_MAKE="MAKE=${MAKE-make}"
2674 fi
2675
2676 rm -rf .tst 2>/dev/null
2677 mkdir .tst 2>/dev/null
2678 if test -d .tst; then
2679 am__leading_dot=.
2680 else
2681 am__leading_dot=_
2682 fi
2683 rmdir .tst 2>/dev/null
2684
2685 # Check whether --enable-silent-rules was given.
2686 if test "${enable_silent_rules+set}" = set; then :
2687 enableval=$enable_silent_rules;
2688 fi
2689
2690 case $enable_silent_rules in # (((
2691 yes) AM_DEFAULT_VERBOSITY=0;;
2692 no) AM_DEFAULT_VERBOSITY=1;;
2693 *) AM_DEFAULT_VERBOSITY=1;;
2694 esac
2695 am_make=${MAKE-make}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2697 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2698 if ${am_cv_make_support_nested_variables+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if $as_echo 'TRUE=$(BAR$(V))
2702 BAR0=false
2703 BAR1=true
2704 V=1
2705 am__doit:
2706 @$(TRUE)
2707 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2708 am_cv_make_support_nested_variables=yes
2709 else
2710 am_cv_make_support_nested_variables=no
2711 fi
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2714 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2715 if test $am_cv_make_support_nested_variables = yes; then
2716 AM_V='$(V)'
2717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2718 else
2719 AM_V=$AM_DEFAULT_VERBOSITY
2720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2721 fi
2722 AM_BACKSLASH='\'
2723
2724 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2725 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2726 # is not polluted with repeated "-I."
2727 am__isrc=' -I$(srcdir)'
2728 # test to see if srcdir already configured
2729 if test -f $srcdir/config.status; then
2730 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2731 fi
2732 fi
2733
2734 # test whether we have cygpath
2735 if test -z "$CYGPATH_W"; then
2736 if (cygpath --version) >/dev/null 2>/dev/null; then
2737 CYGPATH_W='cygpath -w'
2738 else
2739 CYGPATH_W=echo
2740 fi
2741 fi
2742
2743
2744 # Define the identity of the package.
2745 PACKAGE='libXres'
2746 VERSION='1.2.1'
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE "$PACKAGE"
2751 _ACEOF
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define VERSION "$VERSION"
2756 _ACEOF
2757
2758 # Some tools Automake needs.
2759
2760 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2761
2762
2763 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2764
2765
2766 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2767
2768
2769 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2770
2771
2772 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2773
2774 # For better backward compatibility. To be removed once Automake 1.9.x
2775 # dies out for good. For more background, see:
2776 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2777 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2778 mkdir_p='$(MKDIR_P)'
2779
2780 # We need awk for the "check" target (and possibly the TAP driver). The
2781 # system "awk" is bad on some platforms.
2782 # Always define AMTAR for backward compatibility. Yes, it's still used
2783 # in the wild :-( We should find a proper way to deprecate it ...
2784 AMTAR='$${TAR-tar}'
2785
2786
2787 # We'll loop over all known methods to create a tar archive until one works.
2788 _am_tools='gnutar pax cpio none'
2789
2790 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2791
2792
2793
2794
2795
2796
2797 # POSIX will say in a future version that running "rm -f" with no argument
2798 # is OK; and we want to be able to make that assumption in our Makefile
2799 # recipes. So use an aggressive probe to check that the usage we want is
2800 # actually supported "in the wild" to an acceptable degree.
2801 # See automake bug#10828.
2802 # To make any issue more visible, cause the running configure to be aborted
2803 # by default if the 'rm' program in use doesn't match our expectations; the
2804 # user can still override this though.
2805 if rm -f && rm -fr && rm -rf; then : OK; else
2806 cat >&2 <<'END'
2807 Oops!
2808
2809 Your 'rm' program seems unable to run without file operands specified
2810 on the command line, even when the '-f' option is present. This is contrary
2811 to the behaviour of most rm programs out there, and not conforming with
2812 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2813
2814 Please tell bug-automake@gnu.org about your system, including the value
2815 of your $PATH and any error possibly output before this message. This
2816 can help us improve future automake versions.
2817
2818 END
2819 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2820 echo 'Configuration will proceed anyway, since you have set the' >&2
2821 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2822 echo >&2
2823 else
2824 cat >&2 <<'END'
2825 Aborting the configuration process, to ensure you take notice of the issue.
2826
2827 You can download and install GNU coreutils to get an 'rm' implementation
2828 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2829
2830 If you want to complete the configuration process using your problematic
2831 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2832 to "yes", and re-run configure.
2833
2834 END
2835 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2836 fi
2837 fi
2838
2839
2840 # Initialize libtool
2841 case `pwd` in
2842 *\ * | *\ *)
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2845 esac
2846
2847
2848
2849 macro_version='2.4.6'
2850 macro_revision='2.4.6'
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864 ltmain=$ac_aux_dir/ltmain.sh
2865
2866 # Make sure we can run config.sub.
2867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2868 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2871 $as_echo_n "checking build system type... " >&6; }
2872 if ${ac_cv_build+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 ac_build_alias=$build_alias
2876 test "x$ac_build_alias" = x &&
2877 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2878 test "x$ac_build_alias" = x &&
2879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2881 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2882
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2885 $as_echo "$ac_cv_build" >&6; }
2886 case $ac_cv_build in
2887 *-*-*) ;;
2888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2889 esac
2890 build=$ac_cv_build
2891 ac_save_IFS=$IFS; IFS='-'
2892 set x $ac_cv_build
2893 shift
2894 build_cpu=$1
2895 build_vendor=$2
2896 shift; shift
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 build_os=$*
2900 IFS=$ac_save_IFS
2901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2902
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2905 $as_echo_n "checking host system type... " >&6; }
2906 if ${ac_cv_host+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test "x$host_alias" = x; then
2910 ac_cv_host=$ac_cv_build
2911 else
2912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2914 fi
2915
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2918 $as_echo "$ac_cv_host" >&6; }
2919 case $ac_cv_host in
2920 *-*-*) ;;
2921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2922 esac
2923 host=$ac_cv_host
2924 ac_save_IFS=$IFS; IFS='-'
2925 set x $ac_cv_host
2926 shift
2927 host_cpu=$1
2928 host_vendor=$2
2929 shift; shift
2930 # Remember, the first character of IFS is used to create $*,
2931 # except with old shells:
2932 host_os=$*
2933 IFS=$ac_save_IFS
2934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935
2936
2937 # Backslashify metacharacters that are still active within
2938 # double-quoted strings.
2939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2940
2941 # Same as above, but do not quote variable references.
2942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2943
2944 # Sed substitution to delay expansion of an escaped shell variable in a
2945 # double_quote_subst'ed string.
2946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2947
2948 # Sed substitution to delay expansion of an escaped single quote.
2949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2950
2951 # Sed substitution to avoid accidental globbing in evaled expressions
2952 no_glob_subst='s/\*/\\\*/g'
2953
2954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2959 $as_echo_n "checking how to print strings... " >&6; }
2960 # Test print first, because it will be a builtin if present.
2961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2962 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2963 ECHO='print -r --'
2964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2965 ECHO='printf %s\n'
2966 else
2967 # Use this function as a fallback that always works.
2968 func_fallback_echo ()
2969 {
2970 eval 'cat <<_LTECHO_EOF
2971 $1
2972 _LTECHO_EOF'
2973 }
2974 ECHO='func_fallback_echo'
2975 fi
2976
2977 # func_echo_all arg...
2978 # Invoke $ECHO with all args, space-separated.
2979 func_echo_all ()
2980 {
2981 $ECHO ""
2982 }
2983
2984 case $ECHO in
2985 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2986 $as_echo "printf" >&6; } ;;
2987 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2988 $as_echo "print -r" >&6; } ;;
2989 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2990 $as_echo "cat" >&6; } ;;
2991 esac
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006 DEPDIR="${am__leading_dot}deps"
3007
3008 ac_config_commands="$ac_config_commands depfiles"
3009
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3011 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3012 cat > confinc.mk << 'END'
3013 am__doit:
3014 @echo this is the am__doit target >confinc.out
3015 .PHONY: am__doit
3016 END
3017 am__include="#"
3018 am__quote=
3019 # BSD make does it like this.
3020 echo '.include "confinc.mk" # ignored' > confmf.BSD
3021 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3022 echo 'include confinc.mk # ignored' > confmf.GNU
3023 _am_result=no
3024 for s in GNU BSD; do
3025 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3026 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030 case $?:`cat confinc.out 2>/dev/null` in #(
3031 '0:this is the am__doit target') :
3032 case $s in #(
3033 BSD) :
3034 am__include='.include' am__quote='"' ;; #(
3035 *) :
3036 am__include='include' am__quote='' ;;
3037 esac ;; #(
3038 *) :
3039 ;;
3040 esac
3041 if test "$am__include" != "#"; then
3042 _am_result="yes ($s style)"
3043 break
3044 fi
3045 done
3046 rm -f confinc.* confmf.*
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3048 $as_echo "${_am_result}" >&6; }
3049
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052 enableval=$enable_dependency_tracking;
3053 fi
3054
3055 if test "x$enable_dependency_tracking" != xno; then
3056 am_depcomp="$ac_aux_dir/depcomp"
3057 AMDEPBACKSLASH='\'
3058 am__nodep='_no'
3059 fi
3060 if test "x$enable_dependency_tracking" != xno; then
3061 AMDEP_TRUE=
3062 AMDEP_FALSE='#'
3063 else
3064 AMDEP_TRUE='#'
3065 AMDEP_FALSE=
3066 fi
3067
3068
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$ac_cv_prog_CC"; then
3114 ac_ct_CC=$CC
3115 # Extract the first word of "gcc", so it can be a program name with args.
3116 set dummy gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$ac_ct_CC"; then
3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_CC="gcc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3161 fi
3162 else
3163 CC="$ac_cv_prog_CC"
3164 fi
3165
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_CC="${ac_tool_prefix}cc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 fi
3207 if test -z "$CC"; then
3208 # Extract the first word of "cc", so it can be a program name with args.
3209 set dummy cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 ac_prog_rejected=no
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3227 ac_prog_rejected=yes
3228 continue
3229 fi
3230 ac_cv_prog_CC="cc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 if test $ac_prog_rejected = yes; then
3239 # We found a bogon in the path, so make sure we never use it.
3240 set dummy $ac_cv_prog_CC
3241 shift
3242 if test $# != 0; then
3243 # We chose a different compiler from the bogus one.
3244 # However, it has the same basename, so the bogon will be chosen
3245 # first if we set CC to just the basename; use the full file name.
3246 shift
3247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3248 fi
3249 fi
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 fi
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 for ac_prog in cl.exe
3266 do
3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$CC"; then
3275 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304 test -n "$CC" && break
3305 done
3306 fi
3307 if test -z "$CC"; then
3308 ac_ct_CC=$CC
3309 for ac_prog in cl.exe
3310 do
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 test -n "$ac_ct_CC" && break
3349 done
3350
3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 CC=$ac_ct_CC
3361 fi
3362 fi
3363
3364 fi
3365
3366
3367 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "no acceptable C compiler found in \$PATH
3370 See \`config.log' for more details" "$LINENO" 5; }
3371
3372 # Provide some information about the compiler.
3373 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3374 set X $ac_compile
3375 ac_compiler=$2
3376 for ac_option in --version -v -V -qversion; do
3377 { { ac_try="$ac_compiler $ac_option >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 ac_status=$?
3386 if test -s conftest.err; then
3387 sed '10a\
3388 ... rest of stderr output deleted ...
3389 10q' conftest.err >conftest.er1
3390 cat conftest.er1 >&5
3391 fi
3392 rm -f conftest.er1 conftest.err
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 done
3396
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files_save=$ac_clean_files
3409 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3410 # Try to create an executable without -o first, disregard a.out.
3411 # It will help us diagnose broken compilers, and finding out an intuition
3412 # of exeext.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3414 $as_echo_n "checking whether the C compiler works... " >&6; }
3415 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416
3417 # The possible output files:
3418 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419
3420 ac_rmfiles=
3421 for ac_file in $ac_files
3422 do
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 esac
3427 done
3428 rm -f $ac_rmfiles
3429
3430 if { { ac_try="$ac_link_default"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link_default") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3442 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3443 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3444 # so that the user can short-circuit this test for compilers unknown to
3445 # Autoconf.
3446 for ac_file in $ac_files ''
3447 do
3448 test -f "$ac_file" || continue
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451 ;;
3452 [ab].out )
3453 # We found the default executable, but exeext='' is most
3454 # certainly right.
3455 break;;
3456 *.* )
3457 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 then :; else
3459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 fi
3461 # We set ac_cv_exeext here because the later test for it is not
3462 # safe: cross compilers may not add the suffix if given an `-o'
3463 # argument, so we may need to know it at that point already.
3464 # Even if this section looks crufty: it has the advantage of
3465 # actually working.
3466 break;;
3467 * )
3468 break;;
3469 esac
3470 done
3471 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472
3473 else
3474 ac_file=''
3475 fi
3476 if test -z "$ac_file"; then :
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error 77 "C compiler cannot create executables
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3495
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 # `rm'.
3515 for ac_file in conftest.exe conftest conftest.*; do
3516 test -f "$ac_file" || continue
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520 break;;
3521 * ) break;;
3522 esac
3523 done
3524 else
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3533
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3536 ac_exeext=$EXEEXT
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <stdio.h>
3540 int
3541 main ()
3542 {
3543 FILE *f = fopen ("conftest.out", "w");
3544 return ferror (f) || fclose (f) != 0;
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run. If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556 { { ac_try="$ac_link"
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_link") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 if { ac_try='./conftest$ac_cv_exeext'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3578 cross_compiling=no
3579 else
3580 if test "$cross_compiling" = maybe; then
3581 cross_compiling=yes
3582 else
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details" "$LINENO" 5; }
3588 fi
3589 fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3593
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if ${ac_cv_objext+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 break;;
3630 esac
3631 done
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if ${ac_cv_c_compiler_gnu+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654
3655 int
3656 main ()
3657 {
3658 #ifndef __GNUC__
3659 choke me
3660 #endif
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_compiler_gnu=yes
3668 else
3669 ac_compiler_gnu=no
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3681 fi
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if ${ac_cv_prog_cc_g+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706 else
3707 CFLAGS=""
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720
3721 else
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3754 fi
3755 else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3760 fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if ${ac_cv_prog_cc_c89+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 struct stat;
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3780 {
3781 return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824 CC="$ac_save_CC $ac_arg"
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_c89=$ac_arg
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3833
3834 fi
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c89" in
3837 x)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3840 xno)
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3843 *)
3844 CC="$CC $ac_cv_prog_cc_c89"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3864 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3865 if ${am_cv_prog_cc_c_o+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 # Make sure it works both with $CC and with simple cc.
3880 # Following AC_PROG_CC_C_O, we do the test twice because some
3881 # compilers refuse to overwrite an existing .o file with -o,
3882 # though they will create one.
3883 am_cv_prog_cc_c_o=yes
3884 for am_i in 1 2; do
3885 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3886 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } \
3890 && test -f conftest2.$ac_objext; then
3891 : OK
3892 else
3893 am_cv_prog_cc_c_o=no
3894 break
3895 fi
3896 done
3897 rm -f core conftest*
3898 unset am_i
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3901 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3902 if test "$am_cv_prog_cc_c_o" != yes; then
3903 # Losing compiler, so override with the script.
3904 # FIXME: It is wrong to rewrite CC.
3905 # But if we don't then we get into trouble of one sort or another.
3906 # A longer-term fix would be to have automake use am__CC in this case,
3907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3908 CC="$am_aux_dir/compile $CC"
3909 fi
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916
3917 depcc="$CC" am_compiler_list=
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3920 $as_echo_n "checking dependency style of $depcc... " >&6; }
3921 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925 # We make a subdir and do the tests there. Otherwise we can end up
3926 # making bogus files that we don't know about and never remove. For
3927 # instance it was reported that on HP-UX the gcc test will end up
3928 # making a dummy file named 'D' -- because '-MD' means "put the output
3929 # in D".
3930 rm -rf conftest.dir
3931 mkdir conftest.dir
3932 # Copy depcomp to subdir because otherwise we won't find it if we're
3933 # using a relative directory.
3934 cp "$am_depcomp" conftest.dir
3935 cd conftest.dir
3936 # We will build objects and dependencies in a subdirectory because
3937 # it helps to detect inapplicable dependency modes. For instance
3938 # both Tru64's cc and ICC support -MD to output dependencies as a
3939 # side effect of compilation, but ICC will put the dependencies in
3940 # the current directory while Tru64 will put them in the object
3941 # directory.
3942 mkdir sub
3943
3944 am_cv_CC_dependencies_compiler_type=none
3945 if test "$am_compiler_list" = ""; then
3946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3947 fi
3948 am__universal=false
3949 case " $depcc " in #(
3950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3951 esac
3952
3953 for depmode in $am_compiler_list; do
3954 # Setup a source with many dependencies, because some compilers
3955 # like to wrap large dependency lists on column 80 (with \), and
3956 # we should not choose a depcomp mode which is confused by this.
3957 #
3958 # We need to recreate these files for each test, as the compiler may
3959 # overwrite some of them when testing with obscure command lines.
3960 # This happens at least with the AIX C compiler.
3961 : > sub/conftest.c
3962 for i in 1 2 3 4 5 6; do
3963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3965 # Solaris 10 /bin/sh.
3966 echo '/* dummy */' > sub/conftst$i.h
3967 done
3968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3969
3970 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3971 # mode. It turns out that the SunPro C++ compiler does not properly
3972 # handle '-M -o', and we need to detect this. Also, some Intel
3973 # versions had trouble with output in subdirs.
3974 am__obj=sub/conftest.${OBJEXT-o}
3975 am__minus_obj="-o $am__obj"
3976 case $depmode in
3977 gcc)
3978 # This depmode causes a compiler race in universal mode.
3979 test "$am__universal" = false || continue
3980 ;;
3981 nosideeffect)
3982 # After this tag, mechanisms are not by side-effect, so they'll
3983 # only be used when explicitly requested.
3984 if test "x$enable_dependency_tracking" = xyes; then
3985 continue
3986 else
3987 break
3988 fi
3989 ;;
3990 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3991 # This compiler won't grok '-c -o', but also, the minuso test has
3992 # not run yet. These depmodes are late enough in the game, and
3993 # so weak that their functioning should not be impacted.
3994 am__obj=conftest.${OBJEXT-o}
3995 am__minus_obj=
3996 ;;
3997 none) break ;;
3998 esac
3999 if depmode=$depmode \
4000 source=sub/conftest.c object=$am__obj \
4001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4003 >/dev/null 2>conftest.err &&
4004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4008 # icc doesn't choke on unknown options, it will just issue warnings
4009 # or remarks (even with -Werror). So we grep stderr for any message
4010 # that says an option was ignored or not supported.
4011 # When given -MP, icc 7.0 and 7.1 complain thusly:
4012 # icc: Command line warning: ignoring option '-M'; no argument required
4013 # The diagnosis changed in icc 8.0:
4014 # icc: Command line remark: option '-MP' not supported
4015 if (grep 'ignoring option' conftest.err ||
4016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4017 am_cv_CC_dependencies_compiler_type=$depmode
4018 break
4019 fi
4020 fi
4021 done
4022
4023 cd ..
4024 rm -rf conftest.dir
4025 else
4026 am_cv_CC_dependencies_compiler_type=none
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4033
4034 if
4035 test "x$enable_dependency_tracking" != xno \
4036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4037 am__fastdepCC_TRUE=
4038 am__fastdepCC_FALSE='#'
4039 else
4040 am__fastdepCC_TRUE='#'
4041 am__fastdepCC_FALSE=
4042 fi
4043
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 if ${ac_cv_path_SED+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051 for ac_i in 1 2 3 4 5 6 7; do
4052 ac_script="$ac_script$as_nl$ac_script"
4053 done
4054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055 { ac_script=; unset ac_script;}
4056 if test -z "$SED"; then
4057 ac_path_SED_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in sed gsed; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067 as_fn_executable_p "$ac_path_SED" || continue
4068 # Check for GNU ac_path_SED and select it if it is found.
4069 # Check for GNU $ac_path_SED
4070 case `"$ac_path_SED" --version 2>&1` in
4071 *GNU*)
4072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4073 *)
4074 ac_count=0
4075 $as_echo_n 0123456789 >"conftest.in"
4076 while :
4077 do
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 $as_echo '' >> "conftest.nl"
4082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 as_fn_arith $ac_count + 1 && ac_count=$as_val
4085 if test $ac_count -gt ${ac_path_SED_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_SED="$ac_path_SED"
4088 ac_path_SED_max=$ac_count
4089 fi
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4092 done
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4095
4096 $ac_path_SED_found && break 3
4097 done
4098 done
4099 done
4100 IFS=$as_save_IFS
4101 if test -z "$ac_cv_path_SED"; then
4102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4103 fi
4104 else
4105 ac_cv_path_SED=$SED
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4110 $as_echo "$ac_cv_path_SED" >&6; }
4111 SED="$ac_cv_path_SED"
4112 rm -f conftest.sed
4113
4114 test -z "$SED" && SED=sed
4115 Xsed="$SED -e 1s/^X//"
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129 if ${ac_cv_path_GREP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -z "$GREP"; then
4133 ac_path_GREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in grep ggrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143 as_fn_executable_p "$ac_path_GREP" || continue
4144 # Check for GNU ac_path_GREP and select it if it is found.
4145 # Check for GNU $ac_path_GREP
4146 case `"$ac_path_GREP" --version 2>&1` in
4147 *GNU*)
4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 *)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'GREP' >> "conftest.nl"
4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 as_fn_arith $ac_count + 1 && ac_count=$as_val
4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_GREP="$ac_path_GREP"
4164 ac_path_GREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172 $ac_path_GREP_found && break 3
4173 done
4174 done
4175 done
4176 IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_GREP"; then
4178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179 fi
4180 else
4181 ac_cv_path_GREP=$GREP
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4186 $as_echo "$ac_cv_path_GREP" >&6; }
4187 GREP="$ac_cv_path_GREP"
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4191 $as_echo_n "checking for egrep... " >&6; }
4192 if ${ac_cv_path_EGREP+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196 then ac_cv_path_EGREP="$GREP -E"
4197 else
4198 if test -z "$EGREP"; then
4199 ac_path_EGREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in egrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4209 as_fn_executable_p "$ac_path_EGREP" || continue
4210 # Check for GNU ac_path_EGREP and select it if it is found.
4211 # Check for GNU $ac_path_EGREP
4212 case `"$ac_path_EGREP" --version 2>&1` in
4213 *GNU*)
4214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215 *)
4216 ac_count=0
4217 $as_echo_n 0123456789 >"conftest.in"
4218 while :
4219 do
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'EGREP' >> "conftest.nl"
4224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_EGREP="$ac_path_EGREP"
4230 ac_path_EGREP_max=$ac_count
4231 fi
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238 $ac_path_EGREP_found && break 3
4239 done
4240 done
4241 done
4242 IFS=$as_save_IFS
4243 if test -z "$ac_cv_path_EGREP"; then
4244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245 fi
4246 else
4247 ac_cv_path_EGREP=$EGREP
4248 fi
4249
4250 fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4253 $as_echo "$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4258 $as_echo_n "checking for fgrep... " >&6; }
4259 if ${ac_cv_path_FGREP+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4263 then ac_cv_path_FGREP="$GREP -F"
4264 else
4265 if test -z "$FGREP"; then
4266 ac_path_FGREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in fgrep; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4276 as_fn_executable_p "$ac_path_FGREP" || continue
4277 # Check for GNU ac_path_FGREP and select it if it is found.
4278 # Check for GNU $ac_path_FGREP
4279 case `"$ac_path_FGREP" --version 2>&1` in
4280 *GNU*)
4281 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4282 *)
4283 ac_count=0
4284 $as_echo_n 0123456789 >"conftest.in"
4285 while :
4286 do
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 $as_echo 'FGREP' >> "conftest.nl"
4291 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 as_fn_arith $ac_count + 1 && ac_count=$as_val
4294 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_FGREP="$ac_path_FGREP"
4297 ac_path_FGREP_max=$ac_count
4298 fi
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4301 done
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305 $ac_path_FGREP_found && break 3
4306 done
4307 done
4308 done
4309 IFS=$as_save_IFS
4310 if test -z "$ac_cv_path_FGREP"; then
4311 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312 fi
4313 else
4314 ac_cv_path_FGREP=$FGREP
4315 fi
4316
4317 fi
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4320 $as_echo "$ac_cv_path_FGREP" >&6; }
4321 FGREP="$ac_cv_path_FGREP"
4322
4323
4324 test -z "$GREP" && GREP=grep
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 # Check whether --with-gnu-ld was given.
4345 if test "${with_gnu_ld+set}" = set; then :
4346 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4347 else
4348 with_gnu_ld=no
4349 fi
4350
4351 ac_prog=ld
4352 if test yes = "$GCC"; then
4353 # Check if gcc -print-prog-name=ld gives a path.
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4355 $as_echo_n "checking for ld used by $CC... " >&6; }
4356 case $host in
4357 *-*-mingw*)
4358 # gcc leaves a trailing carriage return, which upsets mingw
4359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4360 *)
4361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4362 esac
4363 case $ac_prog in
4364 # Accept absolute paths.
4365 [\\/]* | ?:[\\/]*)
4366 re_direlt='/[^/][^/]*/\.\./'
4367 # Canonicalize the pathname of ld
4368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4371 done
4372 test -z "$LD" && LD=$ac_prog
4373 ;;
4374 "")
4375 # If it fails, then pretend we aren't using GCC.
4376 ac_prog=ld
4377 ;;
4378 *)
4379 # If it is relative, then search for the first ld in PATH.
4380 with_gnu_ld=unknown
4381 ;;
4382 esac
4383 elif test yes = "$with_gnu_ld"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4385 $as_echo_n "checking for GNU ld... " >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4388 $as_echo_n "checking for non-GNU ld... " >&6; }
4389 fi
4390 if ${lt_cv_path_LD+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -z "$LD"; then
4394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4395 for ac_dir in $PATH; do
4396 IFS=$lt_save_ifs
4397 test -z "$ac_dir" && ac_dir=.
4398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4399 lt_cv_path_LD=$ac_dir/$ac_prog
4400 # Check to see if the program is GNU ld. I'd rather use --version,
4401 # but apparently some variants of GNU ld only accept -v.
4402 # Break only if it was the GNU/non-GNU ld that we prefer.
4403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4404 *GNU* | *'with BFD'*)
4405 test no != "$with_gnu_ld" && break
4406 ;;
4407 *)
4408 test yes != "$with_gnu_ld" && break
4409 ;;
4410 esac
4411 fi
4412 done
4413 IFS=$lt_save_ifs
4414 else
4415 lt_cv_path_LD=$LD # Let the user override the test with a path.
4416 fi
4417 fi
4418
4419 LD=$lt_cv_path_LD
4420 if test -n "$LD"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4422 $as_echo "$LD" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4430 if ${lt_cv_prog_gnu_ld+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4434 case `$LD -v 2>&1 </dev/null` in
4435 *GNU* | *'with BFD'*)
4436 lt_cv_prog_gnu_ld=yes
4437 ;;
4438 *)
4439 lt_cv_prog_gnu_ld=no
4440 ;;
4441 esac
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4444 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4445 with_gnu_ld=$lt_cv_prog_gnu_ld
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4456 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4457 if ${lt_cv_path_NM+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -n "$NM"; then
4461 # Let the user override the test.
4462 lt_cv_path_NM=$NM
4463 else
4464 lt_nm_to_check=${ac_tool_prefix}nm
4465 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4466 lt_nm_to_check="$lt_nm_to_check nm"
4467 fi
4468 for lt_tmp_nm in $lt_nm_to_check; do
4469 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4470 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4471 IFS=$lt_save_ifs
4472 test -z "$ac_dir" && ac_dir=.
4473 tmp_nm=$ac_dir/$lt_tmp_nm
4474 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4475 # Check to see if the nm accepts a BSD-compat flag.
4476 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4477 # nm: unknown option "B" ignored
4478 # Tru64's nm complains that /dev/null is an invalid object file
4479 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4480 case $build_os in
4481 mingw*) lt_bad_file=conftest.nm/nofile ;;
4482 *) lt_bad_file=/dev/null ;;
4483 esac
4484 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4485 *$lt_bad_file* | *'Invalid file or object type'*)
4486 lt_cv_path_NM="$tmp_nm -B"
4487 break 2
4488 ;;
4489 *)
4490 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4491 */dev/null*)
4492 lt_cv_path_NM="$tmp_nm -p"
4493 break 2
4494 ;;
4495 *)
4496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4497 continue # so that we can try to find one that supports BSD flags
4498 ;;
4499 esac
4500 ;;
4501 esac
4502 fi
4503 done
4504 IFS=$lt_save_ifs
4505 done
4506 : ${lt_cv_path_NM=no}
4507 fi
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4510 $as_echo "$lt_cv_path_NM" >&6; }
4511 if test no != "$lt_cv_path_NM"; then
4512 NM=$lt_cv_path_NM
4513 else
4514 # Didn't find any BSD compatible name lister, look for dumpbin.
4515 if test -n "$DUMPBIN"; then :
4516 # Let the user override the test.
4517 else
4518 if test -n "$ac_tool_prefix"; then
4519 for ac_prog in dumpbin "link -dump"
4520 do
4521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_DUMPBIN+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$DUMPBIN"; then
4529 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 fi
4547 fi
4548 DUMPBIN=$ac_cv_prog_DUMPBIN
4549 if test -n "$DUMPBIN"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4551 $as_echo "$DUMPBIN" >&6; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4556
4557
4558 test -n "$DUMPBIN" && break
4559 done
4560 fi
4561 if test -z "$DUMPBIN"; then
4562 ac_ct_DUMPBIN=$DUMPBIN
4563 for ac_prog in dumpbin "link -dump"
4564 do
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$ac_ct_DUMPBIN"; then
4573 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4593 if test -n "$ac_ct_DUMPBIN"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4595 $as_echo "$ac_ct_DUMPBIN" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 fi
4600
4601
4602 test -n "$ac_ct_DUMPBIN" && break
4603 done
4604
4605 if test "x$ac_ct_DUMPBIN" = x; then
4606 DUMPBIN=":"
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609 yes:)
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612 ac_tool_warned=yes ;;
4613 esac
4614 DUMPBIN=$ac_ct_DUMPBIN
4615 fi
4616 fi
4617
4618 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4619 *COFF*)
4620 DUMPBIN="$DUMPBIN -symbols -headers"
4621 ;;
4622 *)
4623 DUMPBIN=:
4624 ;;
4625 esac
4626 fi
4627
4628 if test : != "$DUMPBIN"; then
4629 NM=$DUMPBIN
4630 fi
4631 fi
4632 test -z "$NM" && NM=nm
4633
4634
4635
4636
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4640 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4641 if ${lt_cv_nm_interface+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 lt_cv_nm_interface="BSD nm"
4645 echo "int some_variable = 0;" > conftest.$ac_ext
4646 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4647 (eval "$ac_compile" 2>conftest.err)
4648 cat conftest.err >&5
4649 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4650 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4651 cat conftest.err >&5
4652 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4653 cat conftest.out >&5
4654 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4655 lt_cv_nm_interface="MS dumpbin"
4656 fi
4657 rm -f conftest*
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4660 $as_echo "$lt_cv_nm_interface" >&6; }
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4663 $as_echo_n "checking whether ln -s works... " >&6; }
4664 LN_S=$as_ln_s
4665 if test "$LN_S" = "ln -s"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4667 $as_echo "yes" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4670 $as_echo "no, using $LN_S" >&6; }
4671 fi
4672
4673 # find the maximum length of command line arguments
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4675 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4676 if ${lt_cv_sys_max_cmd_len+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 i=0
4680 teststring=ABCD
4681
4682 case $build_os in
4683 msdosdjgpp*)
4684 # On DJGPP, this test can blow up pretty badly due to problems in libc
4685 # (any single argument exceeding 2000 bytes causes a buffer overrun
4686 # during glob expansion). Even if it were fixed, the result of this
4687 # check would be larger than it should be.
4688 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4689 ;;
4690
4691 gnu*)
4692 # Under GNU Hurd, this test is not required because there is
4693 # no limit to the length of command line arguments.
4694 # Libtool will interpret -1 as no limit whatsoever
4695 lt_cv_sys_max_cmd_len=-1;
4696 ;;
4697
4698 cygwin* | mingw* | cegcc*)
4699 # On Win9x/ME, this test blows up -- it succeeds, but takes
4700 # about 5 minutes as the teststring grows exponentially.
4701 # Worse, since 9x/ME are not pre-emptively multitasking,
4702 # you end up with a "frozen" computer, even though with patience
4703 # the test eventually succeeds (with a max line length of 256k).
4704 # Instead, let's just punt: use the minimum linelength reported by
4705 # all of the supported platforms: 8192 (on NT/2K/XP).
4706 lt_cv_sys_max_cmd_len=8192;
4707 ;;
4708
4709 mint*)
4710 # On MiNT this can take a long time and run out of memory.
4711 lt_cv_sys_max_cmd_len=8192;
4712 ;;
4713
4714 amigaos*)
4715 # On AmigaOS with pdksh, this test takes hours, literally.
4716 # So we just punt and use a minimum line length of 8192.
4717 lt_cv_sys_max_cmd_len=8192;
4718 ;;
4719
4720 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4721 # This has been around since 386BSD, at least. Likely further.
4722 if test -x /sbin/sysctl; then
4723 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4724 elif test -x /usr/sbin/sysctl; then
4725 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4726 else
4727 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4728 fi
4729 # And add a safety zone
4730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4732 ;;
4733
4734 interix*)
4735 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4736 lt_cv_sys_max_cmd_len=196608
4737 ;;
4738
4739 os2*)
4740 # The test takes a long time on OS/2.
4741 lt_cv_sys_max_cmd_len=8192
4742 ;;
4743
4744 osf*)
4745 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4746 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4747 # nice to cause kernel panics so lets avoid the loop below.
4748 # First set a reasonable default.
4749 lt_cv_sys_max_cmd_len=16384
4750 #
4751 if test -x /sbin/sysconfig; then
4752 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4753 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4754 esac
4755 fi
4756 ;;
4757 sco3.2v5*)
4758 lt_cv_sys_max_cmd_len=102400
4759 ;;
4760 sysv5* | sco5v6* | sysv4.2uw2*)
4761 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4762 if test -n "$kargmax"; then
4763 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4764 else
4765 lt_cv_sys_max_cmd_len=32768
4766 fi
4767 ;;
4768 *)
4769 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4770 if test -n "$lt_cv_sys_max_cmd_len" && \
4771 test undefined != "$lt_cv_sys_max_cmd_len"; then
4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4774 else
4775 # Make teststring a little bigger before we do anything with it.
4776 # a 1K string should be a reasonable start.
4777 for i in 1 2 3 4 5 6 7 8; do
4778 teststring=$teststring$teststring
4779 done
4780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4781 # If test is not a shell built-in, we'll probably end up computing a
4782 # maximum length that is only half of the actual maximum length, but
4783 # we can't tell.
4784 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4785 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4786 test 17 != "$i" # 1/2 MB should be enough
4787 do
4788 i=`expr $i + 1`
4789 teststring=$teststring$teststring
4790 done
4791 # Only check the string length outside the loop.
4792 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4793 teststring=
4794 # Add a significant safety factor because C++ compilers can tack on
4795 # massive amounts of additional arguments before passing them to the
4796 # linker. It appears as though 1/2 is a usable value.
4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4798 fi
4799 ;;
4800 esac
4801
4802 fi
4803
4804 if test -n "$lt_cv_sys_max_cmd_len"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4806 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4809 $as_echo "none" >&6; }
4810 fi
4811 max_cmd_len=$lt_cv_sys_max_cmd_len
4812
4813
4814
4815
4816
4817
4818 : ${CP="cp -f"}
4819 : ${MV="mv -f"}
4820 : ${RM="rm -f"}
4821
4822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4823 lt_unset=unset
4824 else
4825 lt_unset=false
4826 fi
4827
4828
4829
4830
4831
4832 # test EBCDIC or ASCII
4833 case `echo X|tr X '\101'` in
4834 A) # ASCII based system
4835 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4836 lt_SP2NL='tr \040 \012'
4837 lt_NL2SP='tr \015\012 \040\040'
4838 ;;
4839 *) # EBCDIC based system
4840 lt_SP2NL='tr \100 \n'
4841 lt_NL2SP='tr \r\n \100\100'
4842 ;;
4843 esac
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4854 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4855 if ${lt_cv_to_host_file_cmd+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 case $host in
4859 *-*-mingw* )
4860 case $build in
4861 *-*-mingw* ) # actually msys
4862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4863 ;;
4864 *-*-cygwin* )
4865 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4866 ;;
4867 * ) # otherwise, assume *nix
4868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4869 ;;
4870 esac
4871 ;;
4872 *-*-cygwin* )
4873 case $build in
4874 *-*-mingw* ) # actually msys
4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4876 ;;
4877 *-*-cygwin* )
4878 lt_cv_to_host_file_cmd=func_convert_file_noop
4879 ;;
4880 * ) # otherwise, assume *nix
4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4882 ;;
4883 esac
4884 ;;
4885 * ) # unhandled hosts (and "normal" native builds)
4886 lt_cv_to_host_file_cmd=func_convert_file_noop
4887 ;;
4888 esac
4889
4890 fi
4891
4892 to_host_file_cmd=$lt_cv_to_host_file_cmd
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4894 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4895
4896
4897
4898
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4901 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4902 if ${lt_cv_to_tool_file_cmd+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 #assume ordinary cross tools, or native build.
4906 lt_cv_to_tool_file_cmd=func_convert_file_noop
4907 case $host in
4908 *-*-mingw* )
4909 case $build in
4910 *-*-mingw* ) # actually msys
4911 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4912 ;;
4913 esac
4914 ;;
4915 esac
4916
4917 fi
4918
4919 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4921 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4928 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4929 if ${lt_cv_ld_reload_flag+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 lt_cv_ld_reload_flag='-r'
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4935 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4936 reload_flag=$lt_cv_ld_reload_flag
4937 case $reload_flag in
4938 "" | " "*) ;;
4939 *) reload_flag=" $reload_flag" ;;
4940 esac
4941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4942 case $host_os in
4943 cygwin* | mingw* | pw32* | cegcc*)
4944 if test yes != "$GCC"; then
4945 reload_cmds=false
4946 fi
4947 ;;
4948 darwin*)
4949 if test yes = "$GCC"; then
4950 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4951 else
4952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4953 fi
4954 ;;
4955 esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_OBJDUMP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$OBJDUMP"; then
4974 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 OBJDUMP=$ac_cv_prog_OBJDUMP
4994 if test -n "$OBJDUMP"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4996 $as_echo "$OBJDUMP" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 fi
5004 if test -z "$ac_cv_prog_OBJDUMP"; then
5005 ac_ct_OBJDUMP=$OBJDUMP
5006 # Extract the first word of "objdump", so it can be a program name with args.
5007 set dummy objdump; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$ac_ct_OBJDUMP"; then
5014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5034 if test -n "$ac_ct_OBJDUMP"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5036 $as_echo "$ac_ct_OBJDUMP" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042 if test "x$ac_ct_OBJDUMP" = x; then
5043 OBJDUMP="false"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 OBJDUMP=$ac_ct_OBJDUMP
5052 fi
5053 else
5054 OBJDUMP="$ac_cv_prog_OBJDUMP"
5055 fi
5056
5057 test -z "$OBJDUMP" && OBJDUMP=objdump
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5068 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5069 if ${lt_cv_deplibs_check_method+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 lt_cv_file_magic_cmd='$MAGIC_CMD'
5073 lt_cv_file_magic_test_file=
5074 lt_cv_deplibs_check_method='unknown'
5075 # Need to set the preceding variable on all platforms that support
5076 # interlibrary dependencies.
5077 # 'none' -- dependencies not supported.
5078 # 'unknown' -- same as none, but documents that we really don't know.
5079 # 'pass_all' -- all dependencies passed with no checks.
5080 # 'test_compile' -- check by making test program.
5081 # 'file_magic [[regex]]' -- check by looking for files in library path
5082 # that responds to the $file_magic_cmd with a given extended regex.
5083 # If you have 'file' or equivalent on your system and you're not sure
5084 # whether 'pass_all' will *always* work, you probably want this one.
5085
5086 case $host_os in
5087 aix[4-9]*)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091 beos*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095 bsdi[45]*)
5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5097 lt_cv_file_magic_cmd='/usr/bin/file -L'
5098 lt_cv_file_magic_test_file=/shlib/libc.so
5099 ;;
5100
5101 cygwin*)
5102 # func_win32_libid is a shell function defined in ltmain.sh
5103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5104 lt_cv_file_magic_cmd='func_win32_libid'
5105 ;;
5106
5107 mingw* | pw32*)
5108 # Base MSYS/MinGW do not provide the 'file' command needed by
5109 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5110 # unless we find 'file', for example because we are cross-compiling.
5111 if ( file / ) >/dev/null 2>&1; then
5112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5113 lt_cv_file_magic_cmd='func_win32_libid'
5114 else
5115 # Keep this pattern in sync with the one in func_win32_libid.
5116 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5117 lt_cv_file_magic_cmd='$OBJDUMP -f'
5118 fi
5119 ;;
5120
5121 cegcc*)
5122 # use the weaker test based on 'objdump'. See mingw*.
5123 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5124 lt_cv_file_magic_cmd='$OBJDUMP -f'
5125 ;;
5126
5127 darwin* | rhapsody*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131 freebsd* | dragonfly*)
5132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5133 case $host_cpu in
5134 i*86 )
5135 # Not sure whether the presence of OpenBSD here was a mistake.
5136 # Let's accept both of them until this is cleared up.
5137 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5138 lt_cv_file_magic_cmd=/usr/bin/file
5139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5140 ;;
5141 esac
5142 else
5143 lt_cv_deplibs_check_method=pass_all
5144 fi
5145 ;;
5146
5147 haiku*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151 hpux10.20* | hpux11*)
5152 lt_cv_file_magic_cmd=/usr/bin/file
5153 case $host_cpu in
5154 ia64*)
5155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5156 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5157 ;;
5158 hppa*64*)
5159 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]'
5160 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5161 ;;
5162 *)
5163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5164 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5165 ;;
5166 esac
5167 ;;
5168
5169 interix[3-9]*)
5170 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5172 ;;
5173
5174 irix5* | irix6* | nonstopux*)
5175 case $LD in
5176 *-32|*"-32 ") libmagic=32-bit;;
5177 *-n32|*"-n32 ") libmagic=N32;;
5178 *-64|*"-64 ") libmagic=64-bit;;
5179 *) libmagic=never-match;;
5180 esac
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184 # This must be glibc/ELF.
5185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 netbsd* | netbsdelf*-gnu)
5190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5192 else
5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5194 fi
5195 ;;
5196
5197 newos6*)
5198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5199 lt_cv_file_magic_cmd=/usr/bin/file
5200 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5201 ;;
5202
5203 *nto* | *qnx*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207 openbsd* | bitrig*)
5208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5210 else
5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5212 fi
5213 ;;
5214
5215 osf3* | osf4* | osf5*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 rdos*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 solaris*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 sysv4 | sysv4.3*)
5232 case $host_vendor in
5233 motorola)
5234 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]'
5235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5236 ;;
5237 ncr)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240 sequent)
5241 lt_cv_file_magic_cmd='/bin/file'
5242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5243 ;;
5244 sni)
5245 lt_cv_file_magic_cmd='/bin/file'
5246 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5247 lt_cv_file_magic_test_file=/lib/libc.so
5248 ;;
5249 siemens)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252 pc)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255 esac
5256 ;;
5257
5258 tpf*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261 os2*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264 esac
5265
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5268 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5269
5270 file_magic_glob=
5271 want_nocaseglob=no
5272 if test "$build" = "$host"; then
5273 case $host_os in
5274 mingw* | pw32*)
5275 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5276 want_nocaseglob=yes
5277 else
5278 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5279 fi
5280 ;;
5281 esac
5282 fi
5283
5284 file_magic_cmd=$lt_cv_file_magic_cmd
5285 deplibs_check_method=$lt_cv_deplibs_check_method
5286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_DLLTOOL+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$DLLTOOL"; then
5318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 DLLTOOL=$ac_cv_prog_DLLTOOL
5338 if test -n "$DLLTOOL"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5340 $as_echo "$DLLTOOL" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347 fi
5348 if test -z "$ac_cv_prog_DLLTOOL"; then
5349 ac_ct_DLLTOOL=$DLLTOOL
5350 # Extract the first word of "dlltool", so it can be a program name with args.
5351 set dummy dlltool; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$ac_ct_DLLTOOL"; then
5358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5378 if test -n "$ac_ct_DLLTOOL"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5380 $as_echo "$ac_ct_DLLTOOL" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386 if test "x$ac_ct_DLLTOOL" = x; then
5387 DLLTOOL="false"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5394 esac
5395 DLLTOOL=$ac_ct_DLLTOOL
5396 fi
5397 else
5398 DLLTOOL="$ac_cv_prog_DLLTOOL"
5399 fi
5400
5401 test -z "$DLLTOOL" && DLLTOOL=dlltool
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5413 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5414 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 lt_cv_sharedlib_from_linklib_cmd='unknown'
5418
5419 case $host_os in
5420 cygwin* | mingw* | pw32* | cegcc*)
5421 # two different shell functions defined in ltmain.sh;
5422 # decide which one to use based on capabilities of $DLLTOOL
5423 case `$DLLTOOL --help 2>&1` in
5424 *--identify-strict*)
5425 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5426 ;;
5427 *)
5428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5429 ;;
5430 esac
5431 ;;
5432 *)
5433 # fallback: assume linklib IS sharedlib
5434 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5435 ;;
5436 esac
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5440 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5441 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5442 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5443
5444
5445
5446
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in ar
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_AR+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$AR"; then
5462 ac_cv_prog_AR="$AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 AR=$ac_cv_prog_AR
5482 if test -n "$AR"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5484 $as_echo "$AR" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 test -n "$AR" && break
5492 done
5493 fi
5494 if test -z "$AR"; then
5495 ac_ct_AR=$AR
5496 for ac_prog in ar
5497 do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$ac_ct_AR"; then
5506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_AR="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526 if test -n "$ac_ct_AR"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5528 $as_echo "$ac_ct_AR" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 test -n "$ac_ct_AR" && break
5536 done
5537
5538 if test "x$ac_ct_AR" = x; then
5539 AR="false"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 AR=$ac_ct_AR
5548 fi
5549 fi
5550
5551 : ${AR=ar}
5552 : ${AR_FLAGS=cr}
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5565 $as_echo_n "checking for archiver @FILE support... " >&6; }
5566 if ${lt_cv_ar_at_file+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 lt_cv_ar_at_file=no
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572
5573 int
5574 main ()
5575 {
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 echo conftest.$ac_objext > conftest.lst
5583 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5585 (eval $lt_ar_try) 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589 if test 0 -eq "$ac_status"; then
5590 # Ensure the archiver fails upon bogus file names.
5591 rm -f conftest.$ac_objext libconftest.a
5592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5593 (eval $lt_ar_try) 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 test $ac_status = 0; }
5597 if test 0 -ne "$ac_status"; then
5598 lt_cv_ar_at_file=@
5599 fi
5600 fi
5601 rm -f conftest.* libconftest.a
5602
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5608 $as_echo "$lt_cv_ar_at_file" >&6; }
5609
5610 if test no = "$lt_cv_ar_at_file"; then
5611 archiver_list_spec=
5612 else
5613 archiver_list_spec=$lt_cv_ar_at_file
5614 fi
5615
5616
5617
5618
5619
5620
5621
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}strip; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_STRIP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$STRIP"; then
5631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 STRIP=$ac_cv_prog_STRIP
5651 if test -n "$STRIP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5653 $as_echo "$STRIP" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660 fi
5661 if test -z "$ac_cv_prog_STRIP"; then
5662 ac_ct_STRIP=$STRIP
5663 # Extract the first word of "strip", so it can be a program name with args.
5664 set dummy strip; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_STRIP"; then
5671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_STRIP="strip"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691 if test -n "$ac_ct_STRIP"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5693 $as_echo "$ac_ct_STRIP" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699 if test "x$ac_ct_STRIP" = x; then
5700 STRIP=":"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 STRIP=$ac_ct_STRIP
5709 fi
5710 else
5711 STRIP="$ac_cv_prog_STRIP"
5712 fi
5713
5714 test -z "$STRIP" && STRIP=:
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_RANLIB+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$RANLIB"; then
5730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743 done
5744 done
5745 IFS=$as_save_IFS
5746
5747 fi
5748 fi
5749 RANLIB=$ac_cv_prog_RANLIB
5750 if test -n "$RANLIB"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5752 $as_echo "$RANLIB" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759 fi
5760 if test -z "$ac_cv_prog_RANLIB"; then
5761 ac_ct_RANLIB=$RANLIB
5762 # Extract the first word of "ranlib", so it can be a program name with args.
5763 set dummy ranlib; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$ac_ct_RANLIB"; then
5770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_RANLIB="ranlib"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5790 if test -n "$ac_ct_RANLIB"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5792 $as_echo "$ac_ct_RANLIB" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798 if test "x$ac_ct_RANLIB" = x; then
5799 RANLIB=":"
5800 else
5801 case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5806 esac
5807 RANLIB=$ac_ct_RANLIB
5808 fi
5809 else
5810 RANLIB="$ac_cv_prog_RANLIB"
5811 fi
5812
5813 test -z "$RANLIB" && RANLIB=:
5814
5815
5816
5817
5818
5819
5820 # Determine commands to create old-style static archives.
5821 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5822 old_postinstall_cmds='chmod 644 $oldlib'
5823 old_postuninstall_cmds=
5824
5825 if test -n "$RANLIB"; then
5826 case $host_os in
5827 bitrig* | openbsd*)
5828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5829 ;;
5830 *)
5831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5832 ;;
5833 esac
5834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5835 fi
5836
5837 case $host_os in
5838 darwin*)
5839 lock_old_archive_extraction=yes ;;
5840 *)
5841 lock_old_archive_extraction=no ;;
5842 esac
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
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 # If no C compiler was specified, use CC.
5883 LTCC=${LTCC-"$CC"}
5884
5885 # If no C compiler flags were specified, use CFLAGS.
5886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5887
5888 # Allow CC to be a program name with arguments.
5889 compiler=$CC
5890
5891
5892 # Check for command to grab the raw symbol name followed by C symbol from nm.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5894 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5895 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898
5899 # These are sane defaults that work on at least a few old systems.
5900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5901
5902 # Character class describing NM global symbol codes.
5903 symcode='[BCDEGRST]'
5904
5905 # Regexp to match symbols that can be accessed directly from C.
5906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5907
5908 # Define system-specific variables.
5909 case $host_os in
5910 aix*)
5911 symcode='[BCDT]'
5912 ;;
5913 cygwin* | mingw* | pw32* | cegcc*)
5914 symcode='[ABCDGISTW]'
5915 ;;
5916 hpux*)
5917 if test ia64 = "$host_cpu"; then
5918 symcode='[ABCDEGRST]'
5919 fi
5920 ;;
5921 irix* | nonstopux*)
5922 symcode='[BCDEGRST]'
5923 ;;
5924 osf*)
5925 symcode='[BCDEGQRST]'
5926 ;;
5927 solaris*)
5928 symcode='[BDRT]'
5929 ;;
5930 sco3.2v5*)
5931 symcode='[DT]'
5932 ;;
5933 sysv4.2uw2*)
5934 symcode='[DT]'
5935 ;;
5936 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5937 symcode='[ABDT]'
5938 ;;
5939 sysv4)
5940 symcode='[DFNSTU]'
5941 ;;
5942 esac
5943
5944 # If we're using GNU nm, then use its standard symbol codes.
5945 case `$NM -V 2>&1` in
5946 *GNU* | *'with BFD'*)
5947 symcode='[ABCDGIRSTW]' ;;
5948 esac
5949
5950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5951 # Gets list of data symbols to import.
5952 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5953 # Adjust the below global symbol transforms to fixup imported variables.
5954 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5955 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5956 lt_c_name_lib_hook="\
5957 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5958 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5959 else
5960 # Disable hooks by default.
5961 lt_cv_sys_global_symbol_to_import=
5962 lt_cdecl_hook=
5963 lt_c_name_hook=
5964 lt_c_name_lib_hook=
5965 fi
5966
5967 # Transform an extracted symbol line into a proper C declaration.
5968 # Some systems (esp. on ia64) link data and code symbols differently,
5969 # so use this general approach.
5970 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5971 $lt_cdecl_hook\
5972 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5973 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5974
5975 # Transform an extracted symbol line into symbol name and symbol address
5976 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5977 $lt_c_name_hook\
5978 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5979 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5980
5981 # Transform an extracted symbol line into symbol name with lib prefix and
5982 # symbol address.
5983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5984 $lt_c_name_lib_hook\
5985 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5986 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5987 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5988
5989 # Handle CRLF in mingw tool chain
5990 opt_cr=
5991 case $build_os in
5992 mingw*)
5993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5994 ;;
5995 esac
5996
5997 # Try without a prefix underscore, then with it.
5998 for ac_symprfx in "" "_"; do
5999
6000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6001 symxfrm="\\1 $ac_symprfx\\2 \\2"
6002
6003 # Write the raw and C identifiers.
6004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6005 # Fake it for dumpbin and say T for any non-static function,
6006 # D for any global variable and I for any imported variable.
6007 # Also find C++ and __fastcall symbols from MSVC++,
6008 # which start with @ or ?.
6009 lt_cv_sys_global_symbol_pipe="$AWK '"\
6010 " {last_section=section; section=\$ 3};"\
6011 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6012 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6013 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6014 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6015 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6016 " \$ 0!~/External *\|/{next};"\
6017 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6018 " {if(hide[section]) next};"\
6019 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6020 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6021 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6022 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6023 " ' prfx=^$ac_symprfx"
6024 else
6025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6026 fi
6027 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6028
6029 # Check to see that the pipe works correctly.
6030 pipe_works=no
6031
6032 rm -f conftest*
6033 cat > conftest.$ac_ext <<_LT_EOF
6034 #ifdef __cplusplus
6035 extern "C" {
6036 #endif
6037 char nm_test_var;
6038 void nm_test_func(void);
6039 void nm_test_func(void){}
6040 #ifdef __cplusplus
6041 }
6042 #endif
6043 int main(){nm_test_var='a';nm_test_func();return(0);}
6044 _LT_EOF
6045
6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6047 (eval $ac_compile) 2>&5
6048 ac_status=$?
6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050 test $ac_status = 0; }; then
6051 # Now try to grab the symbols.
6052 nlist=conftest.nm
6053 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6054 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6055 # Try sorting and uniquifying the output.
6056 if sort "$nlist" | uniq > "$nlist"T; then
6057 mv -f "$nlist"T "$nlist"
6058 else
6059 rm -f "$nlist"T
6060 fi
6061
6062 # Make sure that we snagged all the symbols we need.
6063 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6064 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6065 cat <<_LT_EOF > conftest.$ac_ext
6066 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6067 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6068 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6069 relocations are performed -- see ld's documentation on pseudo-relocs. */
6070 # define LT_DLSYM_CONST
6071 #elif defined __osf__
6072 /* This system does not cope well with relocations in const data. */
6073 # define LT_DLSYM_CONST
6074 #else
6075 # define LT_DLSYM_CONST const
6076 #endif
6077
6078 #ifdef __cplusplus
6079 extern "C" {
6080 #endif
6081
6082 _LT_EOF
6083 # Now generate the symbol file.
6084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6085
6086 cat <<_LT_EOF >> conftest.$ac_ext
6087
6088 /* The mapping between symbol names and symbols. */
6089 LT_DLSYM_CONST struct {
6090 const char *name;
6091 void *address;
6092 }
6093 lt__PROGRAM__LTX_preloaded_symbols[] =
6094 {
6095 { "@PROGRAM@", (void *) 0 },
6096 _LT_EOF
6097 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6098 cat <<\_LT_EOF >> conftest.$ac_ext
6099 {0, (void *) 0}
6100 };
6101
6102 /* This works around a problem in FreeBSD linker */
6103 #ifdef FREEBSD_WORKAROUND
6104 static const void *lt_preloaded_setup() {
6105 return lt__PROGRAM__LTX_preloaded_symbols;
6106 }
6107 #endif
6108
6109 #ifdef __cplusplus
6110 }
6111 #endif
6112 _LT_EOF
6113 # Now try linking the two files.
6114 mv conftest.$ac_objext conftstm.$ac_objext
6115 lt_globsym_save_LIBS=$LIBS
6116 lt_globsym_save_CFLAGS=$CFLAGS
6117 LIBS=conftstm.$ac_objext
6118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6120 (eval $ac_link) 2>&5
6121 ac_status=$?
6122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6124 pipe_works=yes
6125 fi
6126 LIBS=$lt_globsym_save_LIBS
6127 CFLAGS=$lt_globsym_save_CFLAGS
6128 else
6129 echo "cannot find nm_test_func in $nlist" >&5
6130 fi
6131 else
6132 echo "cannot find nm_test_var in $nlist" >&5
6133 fi
6134 else
6135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6136 fi
6137 else
6138 echo "$progname: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 fi
6141 rm -rf conftest* conftst*
6142
6143 # Do not use the global_symbol_pipe unless it works.
6144 if test yes = "$pipe_works"; then
6145 break
6146 else
6147 lt_cv_sys_global_symbol_pipe=
6148 fi
6149 done
6150
6151 fi
6152
6153 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6154 lt_cv_sys_global_symbol_to_cdecl=
6155 fi
6156 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6158 $as_echo "failed" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6161 $as_echo "ok" >&6; }
6162 fi
6163
6164 # Response file support.
6165 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6166 nm_file_list_spec='@'
6167 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6168 nm_file_list_spec='@'
6169 fi
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
6200
6201
6202
6203
6204
6205
6206
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6208 $as_echo_n "checking for sysroot... " >&6; }
6209
6210 # Check whether --with-sysroot was given.
6211 if test "${with_sysroot+set}" = set; then :
6212 withval=$with_sysroot;
6213 else
6214 with_sysroot=no
6215 fi
6216
6217
6218 lt_sysroot=
6219 case $with_sysroot in #(
6220 yes)
6221 if test yes = "$GCC"; then
6222 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6223 fi
6224 ;; #(
6225 /*)
6226 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6227 ;; #(
6228 no|'')
6229 ;; #(
6230 *)
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6232 $as_echo "$with_sysroot" >&6; }
6233 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6234 ;;
6235 esac
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6238 $as_echo "${lt_sysroot:-no}" >&6; }
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6245 $as_echo_n "checking for a working dd... " >&6; }
6246 if ${ac_cv_path_lt_DD+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 printf 0123456789abcdef0123456789abcdef >conftest.i
6250 cat conftest.i conftest.i >conftest2.i
6251 : ${lt_DD:=$DD}
6252 if test -z "$lt_DD"; then
6253 ac_path_lt_DD_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_prog in dd; do
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6263 as_fn_executable_p "$ac_path_lt_DD" || continue
6264 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6265 cmp -s conftest.i conftest.out \
6266 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6267 fi
6268 $ac_path_lt_DD_found && break 3
6269 done
6270 done
6271 done
6272 IFS=$as_save_IFS
6273 if test -z "$ac_cv_path_lt_DD"; then
6274 :
6275 fi
6276 else
6277 ac_cv_path_lt_DD=$lt_DD
6278 fi
6279
6280 rm -f conftest.i conftest2.i conftest.out
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6283 $as_echo "$ac_cv_path_lt_DD" >&6; }
6284
6285
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6287 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6288 if ${lt_cv_truncate_bin+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 printf 0123456789abcdef0123456789abcdef >conftest.i
6292 cat conftest.i conftest.i >conftest2.i
6293 lt_cv_truncate_bin=
6294 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6295 cmp -s conftest.i conftest.out \
6296 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6297 fi
6298 rm -f conftest.i conftest2.i conftest.out
6299 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6300 fi
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6302 $as_echo "$lt_cv_truncate_bin" >&6; }
6303
6304
6305
6306
6307
6308
6309
6310 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6311 func_cc_basename ()
6312 {
6313 for cc_temp in $*""; do
6314 case $cc_temp in
6315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6317 \-*) ;;
6318 *) break;;
6319 esac
6320 done
6321 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6322 }
6323
6324 # Check whether --enable-libtool-lock was given.
6325 if test "${enable_libtool_lock+set}" = set; then :
6326 enableval=$enable_libtool_lock;
6327 fi
6328
6329 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6330
6331 # Some flags need to be propagated to the compiler or linker for good
6332 # libtool support.
6333 case $host in
6334 ia64-*-hpux*)
6335 # Find out what ABI is being produced by ac_compile, and set mode
6336 # options accordingly.
6337 echo 'int i;' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *ELF-32*)
6345 HPUX_IA64_MODE=32
6346 ;;
6347 *ELF-64*)
6348 HPUX_IA64_MODE=64
6349 ;;
6350 esac
6351 fi
6352 rm -rf conftest*
6353 ;;
6354 *-*-irix6*)
6355 # Find out what ABI is being produced by ac_compile, and set linker
6356 # options accordingly.
6357 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6359 (eval $ac_compile) 2>&5
6360 ac_status=$?
6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362 test $ac_status = 0; }; then
6363 if test yes = "$lt_cv_prog_gnu_ld"; then
6364 case `/usr/bin/file conftest.$ac_objext` in
6365 *32-bit*)
6366 LD="${LD-ld} -melf32bsmip"
6367 ;;
6368 *N32*)
6369 LD="${LD-ld} -melf32bmipn32"
6370 ;;
6371 *64-bit*)
6372 LD="${LD-ld} -melf64bmip"
6373 ;;
6374 esac
6375 else
6376 case `/usr/bin/file conftest.$ac_objext` in
6377 *32-bit*)
6378 LD="${LD-ld} -32"
6379 ;;
6380 *N32*)
6381 LD="${LD-ld} -n32"
6382 ;;
6383 *64-bit*)
6384 LD="${LD-ld} -64"
6385 ;;
6386 esac
6387 fi
6388 fi
6389 rm -rf conftest*
6390 ;;
6391
6392 mips64*-*linux*)
6393 # Find out what ABI is being produced by ac_compile, and set linker
6394 # options accordingly.
6395 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 emul=elf
6402 case `/usr/bin/file conftest.$ac_objext` in
6403 *32-bit*)
6404 emul="${emul}32"
6405 ;;
6406 *64-bit*)
6407 emul="${emul}64"
6408 ;;
6409 esac
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *MSB*)
6412 emul="${emul}btsmip"
6413 ;;
6414 *LSB*)
6415 emul="${emul}ltsmip"
6416 ;;
6417 esac
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *N32*)
6420 emul="${emul}n32"
6421 ;;
6422 esac
6423 LD="${LD-ld} -m $emul"
6424 fi
6425 rm -rf conftest*
6426 ;;
6427
6428 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6429 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6430 # Find out what ABI is being produced by ac_compile, and set linker
6431 # options accordingly. Note that the listed cases only cover the
6432 # situations where additional linker options are needed (such as when
6433 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6434 # vice versa); the common cases where no linker options are needed do
6435 # not appear in the list.
6436 echo 'int i;' > conftest.$ac_ext
6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 case `/usr/bin/file conftest.o` in
6443 *32-bit*)
6444 case $host in
6445 x86_64-*kfreebsd*-gnu)
6446 LD="${LD-ld} -m elf_i386_fbsd"
6447 ;;
6448 x86_64-*linux*)
6449 case `/usr/bin/file conftest.o` in
6450 *x86-64*)
6451 LD="${LD-ld} -m elf32_x86_64"
6452 ;;
6453 *)
6454 LD="${LD-ld} -m elf_i386"
6455 ;;
6456 esac
6457 ;;
6458 powerpc64le-*linux*)
6459 LD="${LD-ld} -m elf32lppclinux"
6460 ;;
6461 powerpc64-*linux*)
6462 LD="${LD-ld} -m elf32ppclinux"
6463 ;;
6464 s390x-*linux*)
6465 LD="${LD-ld} -m elf_s390"
6466 ;;
6467 sparc64-*linux*)
6468 LD="${LD-ld} -m elf32_sparc"
6469 ;;
6470 esac
6471 ;;
6472 *64-bit*)
6473 case $host in
6474 x86_64-*kfreebsd*-gnu)
6475 LD="${LD-ld} -m elf_x86_64_fbsd"
6476 ;;
6477 x86_64-*linux*)
6478 LD="${LD-ld} -m elf_x86_64"
6479 ;;
6480 powerpcle-*linux*)
6481 LD="${LD-ld} -m elf64lppc"
6482 ;;
6483 powerpc-*linux*)
6484 LD="${LD-ld} -m elf64ppc"
6485 ;;
6486 s390*-*linux*|s390*-*tpf*)
6487 LD="${LD-ld} -m elf64_s390"
6488 ;;
6489 sparc*-*linux*)
6490 LD="${LD-ld} -m elf64_sparc"
6491 ;;
6492 esac
6493 ;;
6494 esac
6495 fi
6496 rm -rf conftest*
6497 ;;
6498
6499 *-*-sco3.2v5*)
6500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6501 SAVE_CFLAGS=$CFLAGS
6502 CFLAGS="$CFLAGS -belf"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6504 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6505 if ${lt_cv_cc_needs_belf+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 ac_ext=c
6509 ac_cpp='$CPP $CPPFLAGS'
6510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6513
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_link "$LINENO"; then :
6526 lt_cv_cc_needs_belf=yes
6527 else
6528 lt_cv_cc_needs_belf=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6532 ac_ext=c
6533 ac_cpp='$CPP $CPPFLAGS'
6534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6540 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6541 if test yes != "$lt_cv_cc_needs_belf"; then
6542 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6543 CFLAGS=$SAVE_CFLAGS
6544 fi
6545 ;;
6546 *-*solaris*)
6547 # Find out what ABI is being produced by ac_compile, and set linker
6548 # options accordingly.
6549 echo 'int i;' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 case `/usr/bin/file conftest.o` in
6556 *64-bit*)
6557 case $lt_cv_prog_gnu_ld in
6558 yes*)
6559 case $host in
6560 i?86-*-solaris*|x86_64-*-solaris*)
6561 LD="${LD-ld} -m elf_x86_64"
6562 ;;
6563 sparc*-*-solaris*)
6564 LD="${LD-ld} -m elf64_sparc"
6565 ;;
6566 esac
6567 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6568 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6569 LD=${LD-ld}_sol2
6570 fi
6571 ;;
6572 *)
6573 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6574 LD="${LD-ld} -64"
6575 fi
6576 ;;
6577 esac
6578 ;;
6579 esac
6580 fi
6581 rm -rf conftest*
6582 ;;
6583 esac
6584
6585 need_locks=$enable_libtool_lock
6586
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}mt; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$MANIFEST_TOOL"; then
6596 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6616 if test -n "$MANIFEST_TOOL"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6618 $as_echo "$MANIFEST_TOOL" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624
6625 fi
6626 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6627 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6628 # Extract the first word of "mt", so it can be a program name with args.
6629 set dummy mt; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$ac_ct_MANIFEST_TOOL"; then
6636 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6656 if test -n "$ac_ct_MANIFEST_TOOL"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6658 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6665 MANIFEST_TOOL=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6674 fi
6675 else
6676 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6677 fi
6678
6679 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6681 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6682 if ${lt_cv_path_mainfest_tool+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 lt_cv_path_mainfest_tool=no
6686 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6687 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6688 cat conftest.err >&5
6689 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6690 lt_cv_path_mainfest_tool=yes
6691 fi
6692 rm -f conftest*
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6695 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6696 if test yes != "$lt_cv_path_mainfest_tool"; then
6697 MANIFEST_TOOL=:
6698 fi
6699
6700
6701
6702
6703
6704
6705 case $host_os in
6706 rhapsody* | darwin*)
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$DSYMUTIL"; then
6716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736 if test -n "$DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738 $as_echo "$DSYMUTIL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_DSYMUTIL"; then
6747 ac_ct_DSYMUTIL=$DSYMUTIL
6748 # Extract the first word of "dsymutil", so it can be a program name with args.
6749 set dummy dsymutil; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_DSYMUTIL" = x; then
6785 DSYMUTIL=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 DSYMUTIL=$ac_ct_DSYMUTIL
6794 fi
6795 else
6796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6797 fi
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_NMEDIT+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$NMEDIT"; then
6808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 NMEDIT=$ac_cv_prog_NMEDIT
6828 if test -n "$NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830 $as_echo "$NMEDIT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_NMEDIT"; then
6839 ac_ct_NMEDIT=$NMEDIT
6840 # Extract the first word of "nmedit", so it can be a program name with args.
6841 set dummy nmedit; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_NMEDIT"; then
6848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868 if test -n "$ac_ct_NMEDIT"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870 $as_echo "$ac_ct_NMEDIT" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_NMEDIT" = x; then
6877 NMEDIT=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 NMEDIT=$ac_ct_NMEDIT
6886 fi
6887 else
6888 NMEDIT="$ac_cv_prog_NMEDIT"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_LIPO+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 LIPO=$ac_cv_prog_LIPO
6920 if test -n "$LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922 $as_echo "$LIPO" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_LIPO"; then
6931 ac_ct_LIPO=$LIPO
6932 # Extract the first word of "lipo", so it can be a program name with args.
6933 set dummy lipo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_LIPO"; then
6940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_LIPO="lipo"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960 if test -n "$ac_ct_LIPO"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962 $as_echo "$ac_ct_LIPO" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_LIPO" = x; then
6969 LIPO=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 LIPO=$ac_ct_LIPO
6978 fi
6979 else
6980 LIPO="$ac_cv_prog_LIPO"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_OTOOL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$OTOOL"; then
6992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 OTOOL=$ac_cv_prog_OTOOL
7012 if test -n "$OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014 $as_echo "$OTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_OTOOL"; then
7023 ac_ct_OTOOL=$OTOOL
7024 # Extract the first word of "otool", so it can be a program name with args.
7025 set dummy otool; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_OTOOL"; then
7032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_OTOOL="otool"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052 if test -n "$ac_ct_OTOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054 $as_echo "$ac_ct_OTOOL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_OTOOL" = x; then
7061 OTOOL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 OTOOL=$ac_ct_OTOOL
7070 fi
7071 else
7072 OTOOL="$ac_cv_prog_OTOOL"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_OTOOL64+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$OTOOL64"; then
7084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 OTOOL64=$ac_cv_prog_OTOOL64
7104 if test -n "$OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106 $as_echo "$OTOOL64" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_OTOOL64"; then
7115 ac_ct_OTOOL64=$OTOOL64
7116 # Extract the first word of "otool64", so it can be a program name with args.
7117 set dummy otool64; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_OTOOL64"; then
7124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_OTOOL64="otool64"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144 if test -n "$ac_ct_OTOOL64"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146 $as_echo "$ac_ct_OTOOL64" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_OTOOL64" = x; then
7153 OTOOL64=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 OTOOL64=$ac_ct_OTOOL64
7162 fi
7163 else
7164 OTOOL64="$ac_cv_prog_OTOOL64"
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194 $as_echo_n "checking for -single_module linker flag... " >&6; }
7195 if ${lt_cv_apple_cc_single_mod+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_apple_cc_single_mod=no
7199 if test -z "$LT_MULTI_MODULE"; then
7200 # By default we will add the -single_module flag. You can override
7201 # by either setting the environment variable LT_MULTI_MODULE
7202 # non-empty at configure time, or by adding -multi_module to the
7203 # link flags.
7204 rm -rf libconftest.dylib*
7205 echo "int foo(void){return 1;}" > conftest.c
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib -Wl,-single_module conftest.c" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210 _lt_result=$?
7211 # If there is a non-empty error log, and "single_module"
7212 # appears in it, assume the flag caused a linker warning
7213 if test -s conftest.err && $GREP single_module conftest.err; then
7214 cat conftest.err >&5
7215 # Otherwise, if the output was created with a 0 exit code from
7216 # the compiler, it worked.
7217 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7218 lt_cv_apple_cc_single_mod=yes
7219 else
7220 cat conftest.err >&5
7221 fi
7222 rm -rf libconftest.dylib*
7223 rm -f conftest.*
7224 fi
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7227 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7230 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7231 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_ld_exported_symbols_list=no
7235 save_LDFLAGS=$LDFLAGS
7236 echo "_main" > conftest.sym
7237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 lt_cv_ld_exported_symbols_list=yes
7251 else
7252 lt_cv_ld_exported_symbols_list=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LDFLAGS=$save_LDFLAGS
7257
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7263 $as_echo_n "checking for -force_load linker flag... " >&6; }
7264 if ${lt_cv_ld_force_load+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 lt_cv_ld_force_load=no
7268 cat > conftest.c << _LT_EOF
7269 int forced_loaded() { return 2;}
7270 _LT_EOF
7271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7273 echo "$AR cr libconftest.a conftest.o" >&5
7274 $AR cr libconftest.a conftest.o 2>&5
7275 echo "$RANLIB libconftest.a" >&5
7276 $RANLIB libconftest.a 2>&5
7277 cat > conftest.c << _LT_EOF
7278 int main() { return 0;}
7279 _LT_EOF
7280 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7281 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7282 _lt_result=$?
7283 if test -s conftest.err && $GREP force_load conftest.err; then
7284 cat conftest.err >&5
7285 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7286 lt_cv_ld_force_load=yes
7287 else
7288 cat conftest.err >&5
7289 fi
7290 rm -f conftest.err libconftest.a conftest conftest.c
7291 rm -rf conftest.dSYM
7292
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7295 $as_echo "$lt_cv_ld_force_load" >&6; }
7296 case $host_os in
7297 rhapsody* | darwin1.[012])
7298 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7299 darwin1.*)
7300 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7301 darwin*) # darwin 5.x on
7302 # if running on 10.5 or later, the deployment target defaults
7303 # to the OS version, if on x86, and 10.4, the deployment
7304 # target defaults to 10.4. Don't you love it?
7305 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7306 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7307 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7308 10.[012][,.]*)
7309 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7310 10.*|11.*)
7311 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7312 esac
7313 ;;
7314 esac
7315 if test yes = "$lt_cv_apple_cc_single_mod"; then
7316 _lt_dar_single_mod='$single_module'
7317 fi
7318 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7319 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7320 else
7321 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7322 fi
7323 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7324 _lt_dsymutil='~$DSYMUTIL $lib || :'
7325 else
7326 _lt_dsymutil=
7327 fi
7328 ;;
7329 esac
7330
7331 # func_munge_path_list VARIABLE PATH
7332 # -----------------------------------
7333 # VARIABLE is name of variable containing _space_ separated list of
7334 # directories to be munged by the contents of PATH, which is string
7335 # having a format:
7336 # "DIR[:DIR]:"
7337 # string "DIR[ DIR]" will be prepended to VARIABLE
7338 # ":DIR[:DIR]"
7339 # string "DIR[ DIR]" will be appended to VARIABLE
7340 # "DIRP[:DIRP]::[DIRA:]DIRA"
7341 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7342 # "DIRA[ DIRA]" will be appended to VARIABLE
7343 # "DIR[:DIR]"
7344 # VARIABLE will be replaced by "DIR[ DIR]"
7345 func_munge_path_list ()
7346 {
7347 case x$2 in
7348 x)
7349 ;;
7350 *:)
7351 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7352 ;;
7353 x:*)
7354 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7355 ;;
7356 *::*)
7357 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7358 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7359 ;;
7360 *)
7361 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7362 ;;
7363 esac
7364 }
7365
7366 ac_ext=c
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7372 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7373 # On Suns, sometimes $CPP names a directory.
7374 if test -n "$CPP" && test -d "$CPP"; then
7375 CPP=
7376 fi
7377 if test -z "$CPP"; then
7378 if ${ac_cv_prog_CPP+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 # Double quotes because CPP needs to be expanded
7382 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7383 do
7384 ac_preproc_ok=false
7385 for ac_c_preproc_warn_flag in '' yes
7386 do
7387 # Use a header file that comes with gcc, so configuring glibc
7388 # with a fresh cross-compiler works.
7389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 # <limits.h> exists even on freestanding compilers.
7391 # On the NeXT, cc -E runs the code through the compiler's parser,
7392 # not just through cpp. "Syntax error" is here to catch this case.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #ifdef __STDC__
7396 # include <limits.h>
7397 #else
7398 # include <assert.h>
7399 #endif
7400 Syntax error
7401 _ACEOF
7402 if ac_fn_c_try_cpp "$LINENO"; then :
7403
7404 else
7405 # Broken: fails on valid input.
7406 continue
7407 fi
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410 # OK, works on sane cases. Now check whether nonexistent headers
7411 # can be detected and how.
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 #include <ac_nonexistent.h>
7415 _ACEOF
7416 if ac_fn_c_try_cpp "$LINENO"; then :
7417 # Broken: success on invalid input.
7418 continue
7419 else
7420 # Passes both tests.
7421 ac_preproc_ok=:
7422 break
7423 fi
7424 rm -f conftest.err conftest.i conftest.$ac_ext
7425
7426 done
7427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7428 rm -f conftest.i conftest.err conftest.$ac_ext
7429 if $ac_preproc_ok; then :
7430 break
7431 fi
7432
7433 done
7434 ac_cv_prog_CPP=$CPP
7435
7436 fi
7437 CPP=$ac_cv_prog_CPP
7438 else
7439 ac_cv_prog_CPP=$CPP
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7442 $as_echo "$CPP" >&6; }
7443 ac_preproc_ok=false
7444 for ac_c_preproc_warn_flag in '' yes
7445 do
7446 # Use a header file that comes with gcc, so configuring glibc
7447 # with a fresh cross-compiler works.
7448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7449 # <limits.h> exists even on freestanding compilers.
7450 # On the NeXT, cc -E runs the code through the compiler's parser,
7451 # not just through cpp. "Syntax error" is here to catch this case.
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 #ifdef __STDC__
7455 # include <limits.h>
7456 #else
7457 # include <assert.h>
7458 #endif
7459 Syntax error
7460 _ACEOF
7461 if ac_fn_c_try_cpp "$LINENO"; then :
7462
7463 else
7464 # Broken: fails on valid input.
7465 continue
7466 fi
7467 rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469 # OK, works on sane cases. Now check whether nonexistent headers
7470 # can be detected and how.
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #include <ac_nonexistent.h>
7474 _ACEOF
7475 if ac_fn_c_try_cpp "$LINENO"; then :
7476 # Broken: success on invalid input.
7477 continue
7478 else
7479 # Passes both tests.
7480 ac_preproc_ok=:
7481 break
7482 fi
7483 rm -f conftest.err conftest.i conftest.$ac_ext
7484
7485 done
7486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7487 rm -f conftest.i conftest.err conftest.$ac_ext
7488 if $ac_preproc_ok; then :
7489
7490 else
7491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7493 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7494 See \`config.log' for more details" "$LINENO" 5; }
7495 fi
7496
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7505 $as_echo_n "checking for ANSI C header files... " >&6; }
7506 if ${ac_cv_header_stdc+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 #include <stdlib.h>
7512 #include <stdarg.h>
7513 #include <string.h>
7514 #include <float.h>
7515
7516 int
7517 main ()
7518 {
7519
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 ac_cv_header_stdc=yes
7526 else
7527 ac_cv_header_stdc=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530
7531 if test $ac_cv_header_stdc = yes; then
7532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 #include <string.h>
7536
7537 _ACEOF
7538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7539 $EGREP "memchr" >/dev/null 2>&1; then :
7540
7541 else
7542 ac_cv_header_stdc=no
7543 fi
7544 rm -f conftest*
7545
7546 fi
7547
7548 if test $ac_cv_header_stdc = yes; then
7549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 #include <stdlib.h>
7553
7554 _ACEOF
7555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7556 $EGREP "free" >/dev/null 2>&1; then :
7557
7558 else
7559 ac_cv_header_stdc=no
7560 fi
7561 rm -f conftest*
7562
7563 fi
7564
7565 if test $ac_cv_header_stdc = yes; then
7566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7567 if test "$cross_compiling" = yes; then :
7568 :
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #include <ctype.h>
7573 #include <stdlib.h>
7574 #if ((' ' & 0x0FF) == 0x020)
7575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7577 #else
7578 # define ISLOWER(c) \
7579 (('a' <= (c) && (c) <= 'i') \
7580 || ('j' <= (c) && (c) <= 'r') \
7581 || ('s' <= (c) && (c) <= 'z'))
7582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7583 #endif
7584
7585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7586 int
7587 main ()
7588 {
7589 int i;
7590 for (i = 0; i < 256; i++)
7591 if (XOR (islower (i), ISLOWER (i))
7592 || toupper (i) != TOUPPER (i))
7593 return 2;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_run "$LINENO"; then :
7598
7599 else
7600 ac_cv_header_stdc=no
7601 fi
7602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7603 conftest.$ac_objext conftest.beam conftest.$ac_ext
7604 fi
7605
7606 fi
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7609 $as_echo "$ac_cv_header_stdc" >&6; }
7610 if test $ac_cv_header_stdc = yes; then
7611
7612 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7613
7614 fi
7615
7616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7617 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7618 inttypes.h stdint.h unistd.h
7619 do :
7620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7621 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7622 "
7623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7624 cat >>confdefs.h <<_ACEOF
7625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 _ACEOF
7627
7628 fi
7629
7630 done
7631
7632
7633 for ac_header in dlfcn.h
7634 do :
7635 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7636 "
7637 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7638 cat >>confdefs.h <<_ACEOF
7639 #define HAVE_DLFCN_H 1
7640 _ACEOF
7641
7642 fi
7643
7644 done
7645
7646
7647
7648
7649
7650 # Set options
7651
7652
7653
7654 enable_dlopen=no
7655
7656
7657 enable_win32_dll=no
7658
7659
7660 # Check whether --enable-shared was given.
7661 if test "${enable_shared+set}" = set; then :
7662 enableval=$enable_shared; p=${PACKAGE-default}
7663 case $enableval in
7664 yes) enable_shared=yes ;;
7665 no) enable_shared=no ;;
7666 *)
7667 enable_shared=no
7668 # Look at the argument we got. We use all the common list separators.
7669 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7670 for pkg in $enableval; do
7671 IFS=$lt_save_ifs
7672 if test "X$pkg" = "X$p"; then
7673 enable_shared=yes
7674 fi
7675 done
7676 IFS=$lt_save_ifs
7677 ;;
7678 esac
7679 else
7680 enable_shared=yes
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 # Check whether --enable-static was given.
7692 if test "${enable_static+set}" = set; then :
7693 enableval=$enable_static; p=${PACKAGE-default}
7694 case $enableval in
7695 yes) enable_static=yes ;;
7696 no) enable_static=no ;;
7697 *)
7698 enable_static=no
7699 # Look at the argument we got. We use all the common list separators.
7700 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7701 for pkg in $enableval; do
7702 IFS=$lt_save_ifs
7703 if test "X$pkg" = "X$p"; then
7704 enable_static=yes
7705 fi
7706 done
7707 IFS=$lt_save_ifs
7708 ;;
7709 esac
7710 else
7711 enable_static=yes
7712 fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723 # Check whether --with-pic was given.
7724 if test "${with_pic+set}" = set; then :
7725 withval=$with_pic; lt_p=${PACKAGE-default}
7726 case $withval in
7727 yes|no) pic_mode=$withval ;;
7728 *)
7729 pic_mode=default
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7732 for lt_pkg in $withval; do
7733 IFS=$lt_save_ifs
7734 if test "X$lt_pkg" = "X$lt_p"; then
7735 pic_mode=yes
7736 fi
7737 done
7738 IFS=$lt_save_ifs
7739 ;;
7740 esac
7741 else
7742 pic_mode=default
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752 # Check whether --enable-fast-install was given.
7753 if test "${enable_fast_install+set}" = set; then :
7754 enableval=$enable_fast_install; p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7758 *)
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7762 for pkg in $enableval; do
7763 IFS=$lt_save_ifs
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7766 fi
7767 done
7768 IFS=$lt_save_ifs
7769 ;;
7770 esac
7771 else
7772 enable_fast_install=yes
7773 fi
7774
7775
7776
7777
7778
7779
7780
7781
7782 shared_archive_member_spec=
7783 case $host,$enable_shared in
7784 power*-*-aix[5-9]*,yes)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7786 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7787
7788 # Check whether --with-aix-soname was given.
7789 if test "${with_aix_soname+set}" = set; then :
7790 withval=$with_aix_soname; case $withval in
7791 aix|svr4|both)
7792 ;;
7793 *)
7794 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7795 ;;
7796 esac
7797 lt_cv_with_aix_soname=$with_aix_soname
7798 else
7799 if ${lt_cv_with_aix_soname+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 lt_cv_with_aix_soname=aix
7803 fi
7804
7805 with_aix_soname=$lt_cv_with_aix_soname
7806 fi
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7809 $as_echo "$with_aix_soname" >&6; }
7810 if test aix != "$with_aix_soname"; then
7811 # For the AIX way of multilib, we name the shared archive member
7812 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7813 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7814 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7815 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7816 if test 64 = "${OBJECT_MODE-32}"; then
7817 shared_archive_member_spec=shr_64
7818 else
7819 shared_archive_member_spec=shr
7820 fi
7821 fi
7822 ;;
7823 *)
7824 with_aix_soname=aix
7825 ;;
7826 esac
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 # This can be used to rebuild libtool when needed
7838 LIBTOOL_DEPS=$ltmain
7839
7840 # Always use our own libtool.
7841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872 test -z "$LN_S" && LN_S="ln -s"
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 if test -n "${ZSH_VERSION+set}"; then
7888 setopt NO_GLOB_SUBST
7889 fi
7890
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7892 $as_echo_n "checking for objdir... " >&6; }
7893 if ${lt_cv_objdir+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 rm -f .libs 2>/dev/null
7897 mkdir .libs 2>/dev/null
7898 if test -d .libs; then
7899 lt_cv_objdir=.libs
7900 else
7901 # MS-DOS does not allow filenames that begin with a dot.
7902 lt_cv_objdir=_libs
7903 fi
7904 rmdir .libs 2>/dev/null
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7907 $as_echo "$lt_cv_objdir" >&6; }
7908 objdir=$lt_cv_objdir
7909
7910
7911
7912
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define LT_OBJDIR "$lt_cv_objdir/"
7916 _ACEOF
7917
7918
7919
7920
7921 case $host_os in
7922 aix3*)
7923 # AIX sometimes has problems with the GCC collect2 program. For some
7924 # reason, if we set the COLLECT_NAMES environment variable, the problems
7925 # vanish in a puff of smoke.
7926 if test set != "${COLLECT_NAMES+set}"; then
7927 COLLECT_NAMES=
7928 export COLLECT_NAMES
7929 fi
7930 ;;
7931 esac
7932
7933 # Global variables:
7934 ofile=libtool
7935 can_build_shared=yes
7936
7937 # All known linkers require a '.a' archive for static linking (except MSVC,
7938 # which needs '.lib').
7939 libext=a
7940
7941 with_gnu_ld=$lt_cv_prog_gnu_ld
7942
7943 old_CC=$CC
7944 old_CFLAGS=$CFLAGS
7945
7946 # Set sane defaults for various variables
7947 test -z "$CC" && CC=cc
7948 test -z "$LTCC" && LTCC=$CC
7949 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7950 test -z "$LD" && LD=ld
7951 test -z "$ac_objext" && ac_objext=o
7952
7953 func_cc_basename $compiler
7954 cc_basename=$func_cc_basename_result
7955
7956
7957 # Only perform the check for file, if the check method requires it
7958 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7959 case $deplibs_check_method in
7960 file_magic*)
7961 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7963 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7964 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $MAGIC_CMD in
7968 [\\/*] | ?:[\\/]*)
7969 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7970 ;;
7971 *)
7972 lt_save_MAGIC_CMD=$MAGIC_CMD
7973 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7975 for ac_dir in $ac_dummy; do
7976 IFS=$lt_save_ifs
7977 test -z "$ac_dir" && ac_dir=.
7978 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7979 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7980 if test -n "$file_magic_test_file"; then
7981 case $deplibs_check_method in
7982 "file_magic "*)
7983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7984 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7986 $EGREP "$file_magic_regex" > /dev/null; then
7987 :
7988 else
7989 cat <<_LT_EOF 1>&2
7990
7991 *** Warning: the command libtool uses to detect shared libraries,
7992 *** $file_magic_cmd, produces output that libtool cannot recognize.
7993 *** The result is that libtool may fail to recognize shared libraries
7994 *** as such. This will affect the creation of libtool libraries that
7995 *** depend on shared libraries, but programs linked with such libtool
7996 *** libraries will work regardless of this problem. Nevertheless, you
7997 *** may want to report the problem to your system manager and/or to
7998 *** bug-libtool (at] gnu.org
7999
8000 _LT_EOF
8001 fi ;;
8002 esac
8003 fi
8004 break
8005 fi
8006 done
8007 IFS=$lt_save_ifs
8008 MAGIC_CMD=$lt_save_MAGIC_CMD
8009 ;;
8010 esac
8011 fi
8012
8013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8014 if test -n "$MAGIC_CMD"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8016 $as_echo "$MAGIC_CMD" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021
8022
8023
8024
8025
8026 if test -z "$lt_cv_path_MAGIC_CMD"; then
8027 if test -n "$ac_tool_prefix"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8029 $as_echo_n "checking for file... " >&6; }
8030 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 case $MAGIC_CMD in
8034 [\\/*] | ?:[\\/]*)
8035 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8036 ;;
8037 *)
8038 lt_save_MAGIC_CMD=$MAGIC_CMD
8039 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8041 for ac_dir in $ac_dummy; do
8042 IFS=$lt_save_ifs
8043 test -z "$ac_dir" && ac_dir=.
8044 if test -f "$ac_dir/file"; then
8045 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8046 if test -n "$file_magic_test_file"; then
8047 case $deplibs_check_method in
8048 "file_magic "*)
8049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8050 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8052 $EGREP "$file_magic_regex" > /dev/null; then
8053 :
8054 else
8055 cat <<_LT_EOF 1>&2
8056
8057 *** Warning: the command libtool uses to detect shared libraries,
8058 *** $file_magic_cmd, produces output that libtool cannot recognize.
8059 *** The result is that libtool may fail to recognize shared libraries
8060 *** as such. This will affect the creation of libtool libraries that
8061 *** depend on shared libraries, but programs linked with such libtool
8062 *** libraries will work regardless of this problem. Nevertheless, you
8063 *** may want to report the problem to your system manager and/or to
8064 *** bug-libtool (at] gnu.org
8065
8066 _LT_EOF
8067 fi ;;
8068 esac
8069 fi
8070 break
8071 fi
8072 done
8073 IFS=$lt_save_ifs
8074 MAGIC_CMD=$lt_save_MAGIC_CMD
8075 ;;
8076 esac
8077 fi
8078
8079 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8080 if test -n "$MAGIC_CMD"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8082 $as_echo "$MAGIC_CMD" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 else
8090 MAGIC_CMD=:
8091 fi
8092 fi
8093
8094 fi
8095 ;;
8096 esac
8097
8098 # Use C for the default configuration in the libtool script
8099
8100 lt_save_CC=$CC
8101 ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107
8108 # Source file extension for C test sources.
8109 ac_ext=c
8110
8111 # Object file extension for compiled C test sources.
8112 objext=o
8113 objext=$objext
8114
8115 # Code to be used in simple compile tests
8116 lt_simple_compile_test_code="int some_variable = 0;"
8117
8118 # Code to be used in simple link tests
8119 lt_simple_link_test_code='int main(){return(0);}'
8120
8121
8122
8123
8124
8125
8126
8127 # If no C compiler was specified, use CC.
8128 LTCC=${LTCC-"$CC"}
8129
8130 # If no C compiler flags were specified, use CFLAGS.
8131 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8132
8133 # Allow CC to be a program name with arguments.
8134 compiler=$CC
8135
8136 # Save the default compiler, since it gets overwritten when the other
8137 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8138 compiler_DEFAULT=$CC
8139
8140 # save warnings/boilerplate of simple test code
8141 ac_outfile=conftest.$ac_objext
8142 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8144 _lt_compiler_boilerplate=`cat conftest.err`
8145 $RM conftest*
8146
8147 ac_outfile=conftest.$ac_objext
8148 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8150 _lt_linker_boilerplate=`cat conftest.err`
8151 $RM -r conftest*
8152
8153
8154 if test -n "$compiler"; then
8155
8156 lt_prog_compiler_no_builtin_flag=
8157
8158 if test yes = "$GCC"; then
8159 case $cc_basename in
8160 nvcc*)
8161 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8162 *)
8163 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8164 esac
8165
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8167 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8168 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_prog_compiler_rtti_exceptions=no
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 # The option is referenced via a variable to avoid confusing sed.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
8184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8185 (eval "$lt_compile" 2>conftest.err)
8186 ac_status=$?
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 if (exit $ac_status) && test -s "$ac_outfile"; then
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings other than the usual output.
8192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_rtti_exceptions=yes
8196 fi
8197 fi
8198 $RM conftest*
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8202 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8203
8204 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8205 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8206 else
8207 :
8208 fi
8209
8210 fi
8211
8212
8213
8214
8215
8216
8217 lt_prog_compiler_wl=
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_static=
8220
8221
8222 if test yes = "$GCC"; then
8223 lt_prog_compiler_wl='-Wl,'
8224 lt_prog_compiler_static='-static'
8225
8226 case $host_os in
8227 aix*)
8228 # All AIX code is PIC.
8229 if test ia64 = "$host_cpu"; then
8230 # AIX 5 now supports IA64 processor
8231 lt_prog_compiler_static='-Bstatic'
8232 fi
8233 lt_prog_compiler_pic='-fPIC'
8234 ;;
8235
8236 amigaos*)
8237 case $host_cpu in
8238 powerpc)
8239 # see comment about AmigaOS4 .so support
8240 lt_prog_compiler_pic='-fPIC'
8241 ;;
8242 m68k)
8243 # FIXME: we need at least 68020 code to build shared libraries, but
8244 # adding the '-m68020' flag to GCC prevents building anything better,
8245 # like '-m68040'.
8246 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8247 ;;
8248 esac
8249 ;;
8250
8251 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8252 # PIC is the default for these OSes.
8253 ;;
8254
8255 mingw* | cygwin* | pw32* | os2* | cegcc*)
8256 # This hack is so that the source file can tell whether it is being
8257 # built for inclusion in a dll (and should export symbols for example).
8258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8259 # (--disable-auto-import) libraries
8260 lt_prog_compiler_pic='-DDLL_EXPORT'
8261 case $host_os in
8262 os2*)
8263 lt_prog_compiler_static='$wl-static'
8264 ;;
8265 esac
8266 ;;
8267
8268 darwin* | rhapsody*)
8269 # PIC is the default on this platform
8270 # Common symbols not allowed in MH_DYLIB files
8271 lt_prog_compiler_pic='-fno-common'
8272 ;;
8273
8274 haiku*)
8275 # PIC is the default for Haiku.
8276 # The "-static" flag exists, but is broken.
8277 lt_prog_compiler_static=
8278 ;;
8279
8280 hpux*)
8281 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8282 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8283 # sets the default TLS model and affects inlining.
8284 case $host_cpu in
8285 hppa*64*)
8286 # +Z the default
8287 ;;
8288 *)
8289 lt_prog_compiler_pic='-fPIC'
8290 ;;
8291 esac
8292 ;;
8293
8294 interix[3-9]*)
8295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8296 # Instead, we relocate shared libraries at runtime.
8297 ;;
8298
8299 msdosdjgpp*)
8300 # Just because we use GCC doesn't mean we suddenly get shared libraries
8301 # on systems that don't support them.
8302 lt_prog_compiler_can_build_shared=no
8303 enable_shared=no
8304 ;;
8305
8306 *nto* | *qnx*)
8307 # QNX uses GNU C++, but need to define -shared option too, otherwise
8308 # it will coredump.
8309 lt_prog_compiler_pic='-fPIC -shared'
8310 ;;
8311
8312 sysv4*MP*)
8313 if test -d /usr/nec; then
8314 lt_prog_compiler_pic=-Kconform_pic
8315 fi
8316 ;;
8317
8318 *)
8319 lt_prog_compiler_pic='-fPIC'
8320 ;;
8321 esac
8322
8323 case $cc_basename in
8324 nvcc*) # Cuda Compiler Driver 2.2
8325 lt_prog_compiler_wl='-Xlinker '
8326 if test -n "$lt_prog_compiler_pic"; then
8327 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8328 fi
8329 ;;
8330 esac
8331 else
8332 # PORTME Check for flag to pass linker flags through the system compiler.
8333 case $host_os in
8334 aix*)
8335 lt_prog_compiler_wl='-Wl,'
8336 if test ia64 = "$host_cpu"; then
8337 # AIX 5 now supports IA64 processor
8338 lt_prog_compiler_static='-Bstatic'
8339 else
8340 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8341 fi
8342 ;;
8343
8344 darwin* | rhapsody*)
8345 # PIC is the default on this platform
8346 # Common symbols not allowed in MH_DYLIB files
8347 lt_prog_compiler_pic='-fno-common'
8348 case $cc_basename in
8349 nagfor*)
8350 # NAG Fortran compiler
8351 lt_prog_compiler_wl='-Wl,-Wl,,'
8352 lt_prog_compiler_pic='-PIC'
8353 lt_prog_compiler_static='-Bstatic'
8354 ;;
8355 esac
8356 ;;
8357
8358 mingw* | cygwin* | pw32* | os2* | cegcc*)
8359 # This hack is so that the source file can tell whether it is being
8360 # built for inclusion in a dll (and should export symbols for example).
8361 lt_prog_compiler_pic='-DDLL_EXPORT'
8362 case $host_os in
8363 os2*)
8364 lt_prog_compiler_static='$wl-static'
8365 ;;
8366 esac
8367 ;;
8368
8369 hpux9* | hpux10* | hpux11*)
8370 lt_prog_compiler_wl='-Wl,'
8371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372 # not for PA HP-UX.
8373 case $host_cpu in
8374 hppa*64*|ia64*)
8375 # +Z the default
8376 ;;
8377 *)
8378 lt_prog_compiler_pic='+Z'
8379 ;;
8380 esac
8381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382 lt_prog_compiler_static='$wl-a ${wl}archive'
8383 ;;
8384
8385 irix5* | irix6* | nonstopux*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # PIC (with -KPIC) is the default.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8392 case $cc_basename in
8393 # old Intel for x86_64, which still supported -KPIC.
8394 ecc*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-static'
8398 ;;
8399 # flang / f18. f95 an alias for gfortran or flang on Debian
8400 flang* | f18* | f95*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_pic='-fPIC'
8403 lt_prog_compiler_static='-static'
8404 ;;
8405 # icc used to be incompatible with GCC.
8406 # ICC 10 doesn't accept -KPIC any more.
8407 icc* | ifort*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-fPIC'
8410 lt_prog_compiler_static='-static'
8411 ;;
8412 # Lahey Fortran 8.1.
8413 lf95*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='--shared'
8416 lt_prog_compiler_static='--static'
8417 ;;
8418 nagfor*)
8419 # NAG Fortran compiler
8420 lt_prog_compiler_wl='-Wl,-Wl,,'
8421 lt_prog_compiler_pic='-PIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424 tcc*)
8425 # Fabrice Bellard et al's Tiny C Compiler
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-fPIC'
8428 lt_prog_compiler_static='-static'
8429 ;;
8430 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8431 # Portland Group compilers (*not* the Pentium gcc compiler,
8432 # which looks to be a dead project)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-fpic'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437 ccc*)
8438 lt_prog_compiler_wl='-Wl,'
8439 # All Alpha code is PIC.
8440 lt_prog_compiler_static='-non_shared'
8441 ;;
8442 xl* | bgxl* | bgf* | mpixl*)
8443 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-qpic'
8446 lt_prog_compiler_static='-qstaticlink'
8447 ;;
8448 *)
8449 case `$CC -V 2>&1 | sed 5q` in
8450 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8451 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 lt_prog_compiler_wl=''
8455 ;;
8456 *Sun\ F* | *Sun*Fortran*)
8457 lt_prog_compiler_pic='-KPIC'
8458 lt_prog_compiler_static='-Bstatic'
8459 lt_prog_compiler_wl='-Qoption ld '
8460 ;;
8461 *Sun\ C*)
8462 # Sun C 5.9
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 lt_prog_compiler_wl='-Wl,'
8466 ;;
8467 *Intel*\ [CF]*Compiler*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-fPIC'
8470 lt_prog_compiler_static='-static'
8471 ;;
8472 *Portland\ Group*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-fpic'
8475 lt_prog_compiler_static='-Bstatic'
8476 ;;
8477 esac
8478 ;;
8479 esac
8480 ;;
8481
8482 newsos6)
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486
8487 *nto* | *qnx*)
8488 # QNX uses GNU C++, but need to define -shared option too, otherwise
8489 # it will coredump.
8490 lt_prog_compiler_pic='-fPIC -shared'
8491 ;;
8492
8493 osf3* | osf4* | osf5*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # All OSF/1 code is PIC.
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498
8499 rdos*)
8500 lt_prog_compiler_static='-non_shared'
8501 ;;
8502
8503 solaris*)
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8506 case $cc_basename in
8507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8508 lt_prog_compiler_wl='-Qoption ld ';;
8509 *)
8510 lt_prog_compiler_wl='-Wl,';;
8511 esac
8512 ;;
8513
8514 sunos4*)
8515 lt_prog_compiler_wl='-Qoption ld '
8516 lt_prog_compiler_pic='-PIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 ;;
8519
8520 sysv4 | sysv4.2uw2* | sysv4.3*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='-KPIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 ;;
8525
8526 sysv4*MP*)
8527 if test -d /usr/nec; then
8528 lt_prog_compiler_pic='-Kconform_pic'
8529 lt_prog_compiler_static='-Bstatic'
8530 fi
8531 ;;
8532
8533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-KPIC'
8536 lt_prog_compiler_static='-Bstatic'
8537 ;;
8538
8539 unicos*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_can_build_shared=no
8542 ;;
8543
8544 uts4*)
8545 lt_prog_compiler_pic='-pic'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548
8549 *)
8550 lt_prog_compiler_can_build_shared=no
8551 ;;
8552 esac
8553 fi
8554
8555 case $host_os in
8556 # For platforms that do not support PIC, -DPIC is meaningless:
8557 *djgpp*)
8558 lt_prog_compiler_pic=
8559 ;;
8560 *)
8561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8562 ;;
8563 esac
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8566 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8567 if ${lt_cv_prog_compiler_pic+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8573 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8574 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8575
8576 #
8577 # Check to make sure the PIC flag actually works.
8578 #
8579 if test -n "$lt_prog_compiler_pic"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8581 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8582 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 lt_cv_prog_compiler_pic_works=no
8586 ac_outfile=conftest.$ac_objext
8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8589 # Insert the option either (1) after the last *FLAGS variable, or
8590 # (2) before a word containing "conftest.", or (3) at the end.
8591 # Note that $ac_compile itself does not contain backslashes and begins
8592 # with a dollar sign (not a hyphen), so the echo should work correctly.
8593 # The option is referenced via a variable to avoid confusing sed.
8594 lt_compile=`echo "$ac_compile" | $SED \
8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597 -e 's:$: $lt_compiler_flag:'`
8598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599 (eval "$lt_compile" 2>conftest.err)
8600 ac_status=$?
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 if (exit $ac_status) && test -s "$ac_outfile"; then
8604 # The compiler can only warn and ignore the option if not recognized
8605 # So say no if there are warnings other than the usual output.
8606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_cv_prog_compiler_pic_works=yes
8610 fi
8611 fi
8612 $RM conftest*
8613
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8616 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8617
8618 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8619 case $lt_prog_compiler_pic in
8620 "" | " "*) ;;
8621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8622 esac
8623 else
8624 lt_prog_compiler_pic=
8625 lt_prog_compiler_can_build_shared=no
8626 fi
8627
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 #
8641 # Check to make sure the static flag actually works.
8642 #
8643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8645 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8646 if ${lt_cv_prog_compiler_static_works+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 lt_cv_prog_compiler_static_works=no
8650 save_LDFLAGS=$LDFLAGS
8651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8654 # The linker can only warn and ignore the option if not recognized
8655 # So say no if there are warnings
8656 if test -s conftest.err; then
8657 # Append any errors to the config.log.
8658 cat conftest.err 1>&5
8659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8661 if diff conftest.exp conftest.er2 >/dev/null; then
8662 lt_cv_prog_compiler_static_works=yes
8663 fi
8664 else
8665 lt_cv_prog_compiler_static_works=yes
8666 fi
8667 fi
8668 $RM -r conftest*
8669 LDFLAGS=$save_LDFLAGS
8670
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8673 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8674
8675 if test yes = "$lt_cv_prog_compiler_static_works"; then
8676 :
8677 else
8678 lt_prog_compiler_static=
8679 fi
8680
8681
8682
8683
8684
8685
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8689 if ${lt_cv_prog_compiler_c_o+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 lt_cv_prog_compiler_c_o=no
8693 $RM -r conftest 2>/dev/null
8694 mkdir conftest
8695 cd conftest
8696 mkdir out
8697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8698
8699 lt_compiler_flag="-o out/conftest2.$ac_objext"
8700 # Insert the option either (1) after the last *FLAGS variable, or
8701 # (2) before a word containing "conftest.", or (3) at the end.
8702 # Note that $ac_compile itself does not contain backslashes and begins
8703 # with a dollar sign (not a hyphen), so the echo should work correctly.
8704 lt_compile=`echo "$ac_compile" | $SED \
8705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8707 -e 's:$: $lt_compiler_flag:'`
8708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8709 (eval "$lt_compile" 2>out/conftest.err)
8710 ac_status=$?
8711 cat out/conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8714 then
8715 # The compiler can only warn and ignore the option if not recognized
8716 # So say no if there are warnings
8717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8720 lt_cv_prog_compiler_c_o=yes
8721 fi
8722 fi
8723 chmod u+w . 2>&5
8724 $RM conftest*
8725 # SGI C++ compiler will create directory out/ii_files/ for
8726 # template instantiation
8727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8728 $RM out/* && rmdir out
8729 cd ..
8730 $RM -r conftest
8731 $RM conftest*
8732
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8735 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8736
8737
8738
8739
8740
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8744 if ${lt_cv_prog_compiler_c_o+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 lt_cv_prog_compiler_c_o=no
8748 $RM -r conftest 2>/dev/null
8749 mkdir conftest
8750 cd conftest
8751 mkdir out
8752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8753
8754 lt_compiler_flag="-o out/conftest2.$ac_objext"
8755 # Insert the option either (1) after the last *FLAGS variable, or
8756 # (2) before a word containing "conftest.", or (3) at the end.
8757 # Note that $ac_compile itself does not contain backslashes and begins
8758 # with a dollar sign (not a hyphen), so the echo should work correctly.
8759 lt_compile=`echo "$ac_compile" | $SED \
8760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8762 -e 's:$: $lt_compiler_flag:'`
8763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8764 (eval "$lt_compile" 2>out/conftest.err)
8765 ac_status=$?
8766 cat out/conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8769 then
8770 # The compiler can only warn and ignore the option if not recognized
8771 # So say no if there are warnings
8772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8775 lt_cv_prog_compiler_c_o=yes
8776 fi
8777 fi
8778 chmod u+w . 2>&5
8779 $RM conftest*
8780 # SGI C++ compiler will create directory out/ii_files/ for
8781 # template instantiation
8782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8783 $RM out/* && rmdir out
8784 cd ..
8785 $RM -r conftest
8786 $RM conftest*
8787
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8791
8792
8793
8794
8795 hard_links=nottested
8796 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8797 # do not overwrite the value of need_locks provided by the user
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8799 $as_echo_n "checking if we can lock with hard links... " >&6; }
8800 hard_links=yes
8801 $RM conftest*
8802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8803 touch conftest.a
8804 ln conftest.a conftest.b 2>&5 || hard_links=no
8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8807 $as_echo "$hard_links" >&6; }
8808 if test no = "$hard_links"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8810 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8811 need_locks=warn
8812 fi
8813 else
8814 need_locks=no
8815 fi
8816
8817
8818
8819
8820
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8824
8825 runpath_var=
8826 allow_undefined_flag=
8827 always_export_symbols=no
8828 archive_cmds=
8829 archive_expsym_cmds=
8830 compiler_needs_object=no
8831 enable_shared_with_static_runtimes=no
8832 export_dynamic_flag_spec=
8833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8834 hardcode_automatic=no
8835 hardcode_direct=no
8836 hardcode_direct_absolute=no
8837 hardcode_libdir_flag_spec=
8838 hardcode_libdir_separator=
8839 hardcode_minus_L=no
8840 hardcode_shlibpath_var=unsupported
8841 inherit_rpath=no
8842 link_all_deplibs=unknown
8843 module_cmds=
8844 module_expsym_cmds=
8845 old_archive_from_new_cmds=
8846 old_archive_from_expsyms_cmds=
8847 thread_safe_flag_spec=
8848 whole_archive_flag_spec=
8849 # include_expsyms should be a list of space-separated symbols to be *always*
8850 # included in the symbol list
8851 include_expsyms=
8852 # exclude_expsyms can be an extended regexp of symbols to exclude
8853 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8854 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8855 # as well as any symbol that contains 'd'.
8856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8858 # platforms (ab)use it in PIC code, but their linkers get confused if
8859 # the symbol is explicitly referenced. Since portable code cannot
8860 # rely on this symbol name, it's probably fine to never include it in
8861 # preloaded symbol tables.
8862 # Exclude shared library initialization/finalization symbols.
8863 extract_expsyms_cmds=
8864
8865 case $host_os in
8866 cygwin* | mingw* | pw32* | cegcc*)
8867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8868 # When not using gcc, we currently assume that we are using
8869 # Microsoft Visual C++.
8870 if test yes != "$GCC"; then
8871 with_gnu_ld=no
8872 fi
8873 ;;
8874 interix*)
8875 # we just hope/assume this is gcc and not c89 (= MSVC++)
8876 with_gnu_ld=yes
8877 ;;
8878 openbsd* | bitrig*)
8879 with_gnu_ld=no
8880 ;;
8881 linux* | k*bsd*-gnu | gnu*)
8882 link_all_deplibs=no
8883 ;;
8884 esac
8885
8886 ld_shlibs=yes
8887
8888 # On some targets, GNU ld is compatible enough with the native linker
8889 # that we're better off using the native interface for both.
8890 lt_use_gnu_ld_interface=no
8891 if test yes = "$with_gnu_ld"; then
8892 case $host_os in
8893 aix*)
8894 # The AIX port of GNU ld has always aspired to compatibility
8895 # with the native linker. However, as the warning in the GNU ld
8896 # block says, versions before 2.19.5* couldn't really create working
8897 # shared libraries, regardless of the interface used.
8898 case `$LD -v 2>&1` in
8899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8901 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8902 *)
8903 lt_use_gnu_ld_interface=yes
8904 ;;
8905 esac
8906 ;;
8907 *)
8908 lt_use_gnu_ld_interface=yes
8909 ;;
8910 esac
8911 fi
8912
8913 if test yes = "$lt_use_gnu_ld_interface"; then
8914 # If archive_cmds runs LD, not CC, wlarc should be empty
8915 wlarc='$wl'
8916
8917 # Set some defaults for GNU ld with shared library support. These
8918 # are reset later if shared libraries are not supported. Putting them
8919 # here allows them to be overridden if necessary.
8920 runpath_var=LD_RUN_PATH
8921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8922 export_dynamic_flag_spec='$wl--export-dynamic'
8923 # ancient GNU ld didn't support --whole-archive et. al.
8924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8926 else
8927 whole_archive_flag_spec=
8928 fi
8929 supports_anon_versioning=no
8930 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8931 *GNU\ gold*) supports_anon_versioning=yes ;;
8932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8935 *\ 2.11.*) ;; # other 2.11 versions
8936 *) supports_anon_versioning=yes ;;
8937 esac
8938
8939 # See if GNU ld supports shared libraries.
8940 case $host_os in
8941 aix[3-9]*)
8942 # On AIX/PPC, the GNU linker is very broken
8943 if test ia64 != "$host_cpu"; then
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: the GNU linker, at least up to release 2.19, is reported
8948 *** to be unable to reliably create shared libraries on AIX.
8949 *** Therefore, libtool is disabling shared libraries support. If you
8950 *** really care for shared libraries, you may want to install binutils
8951 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8952 *** You will then need to restart the configuration process.
8953
8954 _LT_EOF
8955 fi
8956 ;;
8957
8958 amigaos*)
8959 case $host_cpu in
8960 powerpc)
8961 # see comment about AmigaOS4 .so support
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8963 archive_expsym_cmds=''
8964 ;;
8965 m68k)
8966 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)'
8967 hardcode_libdir_flag_spec='-L$libdir'
8968 hardcode_minus_L=yes
8969 ;;
8970 esac
8971 ;;
8972
8973 beos*)
8974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975 allow_undefined_flag=unsupported
8976 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8977 # support --undefined. This deserves some investigation. FIXME
8978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8979 else
8980 ld_shlibs=no
8981 fi
8982 ;;
8983
8984 cygwin* | mingw* | pw32* | cegcc*)
8985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986 # as there is no search path for DLLs.
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 export_dynamic_flag_spec='$wl--export-all-symbols'
8989 allow_undefined_flag=unsupported
8990 always_export_symbols=no
8991 enable_shared_with_static_runtimes=yes
8992 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'
8993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8994
8995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8997 # If the export-symbols file already is a .def file, use it as
8998 # is; otherwise, prepend EXPORTS...
8999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9000 cp $export_symbols $output_objdir/$soname.def;
9001 else
9002 echo EXPORTS > $output_objdir/$soname.def;
9003 cat $export_symbols >> $output_objdir/$soname.def;
9004 fi~
9005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9006 else
9007 ld_shlibs=no
9008 fi
9009 ;;
9010
9011 haiku*)
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9013 link_all_deplibs=yes
9014 ;;
9015
9016 os2*)
9017 hardcode_libdir_flag_spec='-L$libdir'
9018 hardcode_minus_L=yes
9019 allow_undefined_flag=unsupported
9020 shrext_cmds=.dll
9021 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9024 $ECHO EXPORTS >> $output_objdir/$libname.def~
9025 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9027 emximp -o $lib $output_objdir/$libname.def'
9028 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9031 $ECHO EXPORTS >> $output_objdir/$libname.def~
9032 prefix_cmds="$SED"~
9033 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9034 prefix_cmds="$prefix_cmds -e 1d";
9035 fi~
9036 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9037 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9038 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9039 emximp -o $lib $output_objdir/$libname.def'
9040 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9041 enable_shared_with_static_runtimes=yes
9042 ;;
9043
9044 interix[3-9]*)
9045 hardcode_direct=no
9046 hardcode_shlibpath_var=no
9047 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9048 export_dynamic_flag_spec='$wl-E'
9049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9050 # Instead, shared libraries are loaded at an image base (0x10000000 by
9051 # default) and relocated if they conflict, which is a slow very memory
9052 # consuming and fragmenting process. To avoid this, we pick a random,
9053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9056 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'
9057 ;;
9058
9059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9060 tmp_diet=no
9061 if test linux-dietlibc = "$host_os"; then
9062 case $cc_basename in
9063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9064 esac
9065 fi
9066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9067 && test no = "$tmp_diet"
9068 then
9069 tmp_addflag=' $pic_flag'
9070 tmp_sharedflag='-shared'
9071 case $cc_basename,$host_cpu in
9072 pgcc*) # Portland Group C compiler
9073 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'
9074 tmp_addflag=' $pic_flag'
9075 ;;
9076 pgf77* | pgf90* | pgf95* | pgfortran*)
9077 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
9080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9081 tmp_addflag=' -i_dynamic' ;;
9082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9083 tmp_addflag=' -i_dynamic -nofor_main' ;;
9084 ifc* | ifort*) # Intel Fortran compiler
9085 tmp_addflag=' -nofor_main' ;;
9086 lf95*) # Lahey Fortran 8.1
9087 whole_archive_flag_spec=
9088 tmp_sharedflag='--shared' ;;
9089 nagfor*) # NAGFOR 5.3
9090 tmp_sharedflag='-Wl,-shared' ;;
9091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9092 tmp_sharedflag='-qmkshrobj'
9093 tmp_addflag= ;;
9094 nvcc*) # Cuda Compiler Driver 2.2
9095 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'
9096 compiler_needs_object=yes
9097 ;;
9098 esac
9099 case `$CC -V 2>&1 | sed 5q` in
9100 *Sun\ C*) # Sun C 5.9
9101 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'
9102 compiler_needs_object=yes
9103 tmp_sharedflag='-G' ;;
9104 *Sun\ F*) # Sun Fortran 8.3
9105 tmp_sharedflag='-G' ;;
9106 esac
9107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9108
9109 if test yes = "$supports_anon_versioning"; then
9110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9112 echo "local: *; };" >> $output_objdir/$libname.ver~
9113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9114 fi
9115
9116 case $cc_basename in
9117 tcc*)
9118 export_dynamic_flag_spec='-rdynamic'
9119 ;;
9120 xlf* | bgf* | bgxlf* | mpixlf*)
9121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9124 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9125 if test yes = "$supports_anon_versioning"; then
9126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9128 echo "local: *; };" >> $output_objdir/$libname.ver~
9129 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9130 fi
9131 ;;
9132 esac
9133 else
9134 ld_shlibs=no
9135 fi
9136 ;;
9137
9138 netbsd* | netbsdelf*-gnu)
9139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9141 wlarc=
9142 else
9143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9145 fi
9146 ;;
9147
9148 solaris*)
9149 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9150 ld_shlibs=no
9151 cat <<_LT_EOF 1>&2
9152
9153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9154 *** create shared libraries on Solaris systems. Therefore, libtool
9155 *** is disabling shared libraries support. We urge you to upgrade GNU
9156 *** binutils to release 2.9.1 or newer. Another option is to modify
9157 *** your PATH or compiler configuration so that the native linker is
9158 *** used, and then restart.
9159
9160 _LT_EOF
9161 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9164 else
9165 ld_shlibs=no
9166 fi
9167 ;;
9168
9169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9170 case `$LD -v 2>&1` in
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
9175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9176 *** reliably create shared libraries on SCO systems. Therefore, libtool
9177 *** is disabling shared libraries support. We urge you to upgrade GNU
9178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9179 *** your PATH or compiler configuration so that the native linker is
9180 *** used, and then restart.
9181
9182 _LT_EOF
9183 ;;
9184 *)
9185 # For security reasons, it is highly recommended that you always
9186 # use absolute paths for naming shared libraries, and exclude the
9187 # DT_RUNPATH tag from executables and libraries. But doing so
9188 # requires that you compile everything twice, which is a pain.
9189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197 esac
9198 ;;
9199
9200 sunos4*)
9201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202 wlarc=
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
9206
9207 *)
9208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9211 else
9212 ld_shlibs=no
9213 fi
9214 ;;
9215 esac
9216
9217 if test no = "$ld_shlibs"; then
9218 runpath_var=
9219 hardcode_libdir_flag_spec=
9220 export_dynamic_flag_spec=
9221 whole_archive_flag_spec=
9222 fi
9223 else
9224 # PORTME fill in a description of your system's linker (not GNU ld)
9225 case $host_os in
9226 aix3*)
9227 allow_undefined_flag=unsupported
9228 always_export_symbols=yes
9229 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'
9230 # Note: this linker hardcodes the directories in LIBPATH if there
9231 # are no directories specified by -L.
9232 hardcode_minus_L=yes
9233 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9234 # Neither direct hardcoding nor static linking is supported with a
9235 # broken collect2.
9236 hardcode_direct=unsupported
9237 fi
9238 ;;
9239
9240 aix[4-9]*)
9241 if test ia64 = "$host_cpu"; then
9242 # On IA64, the linker does run time linking by default, so we don't
9243 # have to do anything special.
9244 aix_use_runtimelinking=no
9245 exp_sym_flag='-Bexport'
9246 no_entry_flag=
9247 else
9248 # If we're using GNU nm, then we don't want the "-C" option.
9249 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9250 # Without the "-l" option, or with the "-B" option, AIX nm treats
9251 # weak defined symbols like other global defined symbols, whereas
9252 # GNU nm marks them as "W".
9253 # While the 'weak' keyword is ignored in the Export File, we need
9254 # it in the Import File for the 'aix-soname' feature, so we have
9255 # to replace the "-B" option with "-P" for AIX nm.
9256 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9257 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'
9258 else
9259 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'
9260 fi
9261 aix_use_runtimelinking=no
9262
9263 # Test if we are trying to use run time linking or normal
9264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265 # have runtime linking enabled, and use it for executables.
9266 # For shared libraries, we enable/disable runtime linking
9267 # depending on the kind of the shared library created -
9268 # when "with_aix_soname,aix_use_runtimelinking" is:
9269 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9270 # "aix,yes" lib.so shared, rtl:yes, for executables
9271 # lib.a static archive
9272 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9273 # lib.a(lib.so.V) shared, rtl:no, for executables
9274 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9275 # lib.a(lib.so.V) shared, rtl:no
9276 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9277 # lib.a static archive
9278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9279 for ld_flag in $LDFLAGS; do
9280 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9281 aix_use_runtimelinking=yes
9282 break
9283 fi
9284 done
9285 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9286 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9287 # so we don't have lib.a shared libs to link our executables.
9288 # We have to force runtime linking in this case.
9289 aix_use_runtimelinking=yes
9290 LDFLAGS="$LDFLAGS -Wl,-brtl"
9291 fi
9292 ;;
9293 esac
9294
9295 exp_sym_flag='-bexport'
9296 no_entry_flag='-bnoentry'
9297 fi
9298
9299 # When large executables or shared objects are built, AIX ld can
9300 # have problems creating the table of contents. If linking a library
9301 # or program results in "error TOC overflow" add -mminimal-toc to
9302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304
9305 archive_cmds=''
9306 hardcode_direct=yes
9307 hardcode_direct_absolute=yes
9308 hardcode_libdir_separator=':'
9309 link_all_deplibs=yes
9310 file_list_spec='$wl-f,'
9311 case $with_aix_soname,$aix_use_runtimelinking in
9312 aix,*) ;; # traditional, no import file
9313 svr4,* | *,yes) # use import file
9314 # The Import File defines what to hardcode.
9315 hardcode_direct=no
9316 hardcode_direct_absolute=no
9317 ;;
9318 esac
9319
9320 if test yes = "$GCC"; then
9321 case $host_os in aix4.[012]|aix4.[012].*)
9322 # We only want to do this on AIX 4.2 and lower, the check
9323 # below for broken collect2 doesn't work under 4.3+
9324 collect2name=`$CC -print-prog-name=collect2`
9325 if test -f "$collect2name" &&
9326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9327 then
9328 # We have reworked collect2
9329 :
9330 else
9331 # We have old collect2
9332 hardcode_direct=unsupported
9333 # It fails to find uninstalled libraries when the uninstalled
9334 # path is not listed in the libpath. Setting hardcode_minus_L
9335 # to unsupported forces relinking
9336 hardcode_minus_L=yes
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_libdir_separator=
9339 fi
9340 ;;
9341 esac
9342 shared_flag='-shared'
9343 if test yes = "$aix_use_runtimelinking"; then
9344 shared_flag="$shared_flag "'$wl-G'
9345 fi
9346 # Need to ensure runtime linking is disabled for the traditional
9347 # shared library, or the linker may eventually find shared libraries
9348 # /with/ Import File - we do not want to mix them.
9349 shared_flag_aix='-shared'
9350 shared_flag_svr4='-shared $wl-G'
9351 else
9352 # not using gcc
9353 if test ia64 = "$host_cpu"; then
9354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9355 # chokes on -Wl,-G. The following line is correct:
9356 shared_flag='-G'
9357 else
9358 if test yes = "$aix_use_runtimelinking"; then
9359 shared_flag='$wl-G'
9360 else
9361 shared_flag='$wl-bM:SRE'
9362 fi
9363 shared_flag_aix='$wl-bM:SRE'
9364 shared_flag_svr4='$wl-G'
9365 fi
9366 fi
9367
9368 export_dynamic_flag_spec='$wl-bexpall'
9369 # It seems that -bexpall does not export symbols beginning with
9370 # underscore (_), so it is better to generate a list of symbols to export.
9371 always_export_symbols=yes
9372 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9373 # Warning - without using the other runtime loading flags (-brtl),
9374 # -berok will link without error, but may produce a broken library.
9375 allow_undefined_flag='-berok'
9376 # Determine the default libpath from the value encoded in an
9377 # empty executable.
9378 if test set = "${lt_cv_aix_libpath+set}"; then
9379 aix_libpath=$lt_cv_aix_libpath
9380 else
9381 if ${lt_cv_aix_libpath_+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386
9387 int
9388 main ()
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396
9397 lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9399 /^0/ {
9400 s/^0 *\([^ ]*\) *$/\1/
9401 p
9402 }
9403 }'
9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 # Check for a 64-bit object if we didn't find anything.
9406 if test -z "$lt_cv_aix_libpath_"; then
9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408 fi
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 if test -z "$lt_cv_aix_libpath_"; then
9413 lt_cv_aix_libpath_=/usr/lib:/lib
9414 fi
9415
9416 fi
9417
9418 aix_libpath=$lt_cv_aix_libpath_
9419 fi
9420
9421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9422 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
9423 else
9424 if test ia64 = "$host_cpu"; then
9425 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9426 allow_undefined_flag="-z nodefs"
9427 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"
9428 else
9429 # Determine the default libpath from the value encoded in an
9430 # empty executable.
9431 if test set = "${lt_cv_aix_libpath+set}"; then
9432 aix_libpath=$lt_cv_aix_libpath
9433 else
9434 if ${lt_cv_aix_libpath_+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439
9440 int
9441 main ()
9442 {
9443
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"; then :
9449
9450 lt_aix_libpath_sed='
9451 /Import File Strings/,/^$/ {
9452 /^0/ {
9453 s/^0 *\([^ ]*\) *$/\1/
9454 p
9455 }
9456 }'
9457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458 # Check for a 64-bit object if we didn't find anything.
9459 if test -z "$lt_cv_aix_libpath_"; then
9460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 fi
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 if test -z "$lt_cv_aix_libpath_"; then
9466 lt_cv_aix_libpath_=/usr/lib:/lib
9467 fi
9468
9469 fi
9470
9471 aix_libpath=$lt_cv_aix_libpath_
9472 fi
9473
9474 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9475 # Warning - without using the other run time loading flags,
9476 # -berok will link without error, but may produce a broken library.
9477 no_undefined_flag=' $wl-bernotok'
9478 allow_undefined_flag=' $wl-berok'
9479 if test yes = "$with_gnu_ld"; then
9480 # We only use this code for GNU lds that support --whole-archive.
9481 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9482 else
9483 # Exported symbols can be pulled into shared objects from archives
9484 whole_archive_flag_spec='$convenience'
9485 fi
9486 archive_cmds_need_lc=yes
9487 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9488 # -brtl affects multiple linker settings, -berok does not and is overridden later
9489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9490 if test svr4 != "$with_aix_soname"; then
9491 # This is similar to how AIX traditionally builds its shared libraries.
9492 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'
9493 fi
9494 if test aix != "$with_aix_soname"; then
9495 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'
9496 else
9497 # used by -dlpreopen to get the symbols
9498 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9499 fi
9500 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9501 fi
9502 fi
9503 ;;
9504
9505 amigaos*)
9506 case $host_cpu in
9507 powerpc)
9508 # see comment about AmigaOS4 .so support
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9510 archive_expsym_cmds=''
9511 ;;
9512 m68k)
9513 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)'
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_minus_L=yes
9516 ;;
9517 esac
9518 ;;
9519
9520 bsdi[45]*)
9521 export_dynamic_flag_spec=-rdynamic
9522 ;;
9523
9524 cygwin* | mingw* | pw32* | cegcc*)
9525 # When not using gcc, we currently assume that we are using
9526 # Microsoft Visual C++.
9527 # hardcode_libdir_flag_spec is actually meaningless, as there is
9528 # no search path for DLLs.
9529 case $cc_basename in
9530 cl*)
9531 # Native MSVC
9532 hardcode_libdir_flag_spec=' '
9533 allow_undefined_flag=unsupported
9534 always_export_symbols=yes
9535 file_list_spec='@'
9536 # Tell ltmain to make .lib files, not .a files.
9537 libext=lib
9538 # Tell ltmain to make .dll files, not .so files.
9539 shrext_cmds=.dll
9540 # FIXME: Setting linknames here is a bad hack.
9541 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9542 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9543 cp "$export_symbols" "$output_objdir/$soname.def";
9544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9545 else
9546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9547 fi~
9548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9549 linknames='
9550 # The linker will not automatically build a static lib if we build a DLL.
9551 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9552 enable_shared_with_static_runtimes=yes
9553 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9555 # Don't use ranlib
9556 old_postinstall_cmds='chmod 644 $oldlib'
9557 postlink_cmds='lt_outputfile="@OUTPUT@"~
9558 lt_tool_outputfile="@TOOL_OUTPUT@"~
9559 case $lt_outputfile in
9560 *.exe|*.EXE) ;;
9561 *)
9562 lt_outputfile=$lt_outputfile.exe
9563 lt_tool_outputfile=$lt_tool_outputfile.exe
9564 ;;
9565 esac~
9566 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9567 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9568 $RM "$lt_outputfile.manifest";
9569 fi'
9570 ;;
9571 *)
9572 # Assume MSVC wrapper
9573 hardcode_libdir_flag_spec=' '
9574 allow_undefined_flag=unsupported
9575 # Tell ltmain to make .lib files, not .a files.
9576 libext=lib
9577 # Tell ltmain to make .dll files, not .so files.
9578 shrext_cmds=.dll
9579 # FIXME: Setting linknames here is a bad hack.
9580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581 # The linker will automatically build a .lib file if we build a DLL.
9582 old_archive_from_new_cmds='true'
9583 # FIXME: Should let the user specify the lib program.
9584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585 enable_shared_with_static_runtimes=yes
9586 ;;
9587 esac
9588 ;;
9589
9590 darwin* | rhapsody*)
9591
9592
9593 archive_cmds_need_lc=no
9594 hardcode_direct=no
9595 hardcode_automatic=yes
9596 hardcode_shlibpath_var=unsupported
9597 if test yes = "$lt_cv_ld_force_load"; then
9598 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\"`'
9599
9600 else
9601 whole_archive_flag_spec=''
9602 fi
9603 link_all_deplibs=yes
9604 allow_undefined_flag=$_lt_dar_allow_undefined
9605 case $cc_basename in
9606 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9607 *) _lt_dar_can_shared=$GCC ;;
9608 esac
9609 if test yes = "$_lt_dar_can_shared"; then
9610 output_verbose_link_cmd=func_echo_all
9611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9613 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"
9614 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"
9615
9616 else
9617 ld_shlibs=no
9618 fi
9619
9620 ;;
9621
9622 dgux*)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9629 # support. Future versions do this automatically, but an explicit c++rt0.o
9630 # does not break anything, and helps significantly (at the cost of a little
9631 # extra space).
9632 freebsd2.2*)
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9640 freebsd2.*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=yes
9643 hardcode_minus_L=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9648 freebsd* | dragonfly*)
9649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 hpux9*)
9656 if test yes = "$GCC"; then
9657 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'
9658 else
9659 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'
9660 fi
9661 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_direct=yes
9664
9665 # hardcode_minus_L: Not really in the search PATH,
9666 # but as the default location of the library.
9667 hardcode_minus_L=yes
9668 export_dynamic_flag_spec='$wl-E'
9669 ;;
9670
9671 hpux10*)
9672 if test yes,no = "$GCC,$with_gnu_ld"; then
9673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9676 fi
9677 if test no = "$with_gnu_ld"; then
9678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9679 hardcode_libdir_separator=:
9680 hardcode_direct=yes
9681 hardcode_direct_absolute=yes
9682 export_dynamic_flag_spec='$wl-E'
9683 # hardcode_minus_L: Not really in the search PATH,
9684 # but as the default location of the library.
9685 hardcode_minus_L=yes
9686 fi
9687 ;;
9688
9689 hpux11*)
9690 if test yes,no = "$GCC,$with_gnu_ld"; then
9691 case $host_cpu in
9692 hppa*64*)
9693 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 ia64*)
9696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 *)
9699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 esac
9702 else
9703 case $host_cpu in
9704 hppa*64*)
9705 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 ia64*)
9708 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 *)
9711
9712 # Older versions of the 11.00 compiler do not understand -b yet
9713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715 $as_echo_n "checking if $CC understands -b... " >&6; }
9716 if ${lt_cv_prog_compiler__b+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 lt_cv_prog_compiler__b=no
9720 save_LDFLAGS=$LDFLAGS
9721 LDFLAGS="$LDFLAGS -b"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 else
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 fi
9738 $RM -r conftest*
9739 LDFLAGS=$save_LDFLAGS
9740
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745 if test yes = "$lt_cv_prog_compiler__b"; then
9746 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 fi
9750
9751 ;;
9752 esac
9753 fi
9754 if test no = "$with_gnu_ld"; then
9755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9756 hardcode_libdir_separator=:
9757
9758 case $host_cpu in
9759 hppa*64*|ia64*)
9760 hardcode_direct=no
9761 hardcode_shlibpath_var=no
9762 ;;
9763 *)
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='$wl-E'
9767
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 ;;
9772 esac
9773 fi
9774 ;;
9775
9776 irix5* | irix6* | nonstopux*)
9777 if test yes = "$GCC"; then
9778 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'
9779 # Try to use the -exported_symbol ld option, if it does not
9780 # work, assume that -exports_file does not work either and
9781 # implicitly export all symbols.
9782 # This should be the same for all languages, so no per-tag cache variable.
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9784 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9785 if ${lt_cv_irix_exported_symbol+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 save_LDFLAGS=$LDFLAGS
9789 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int foo (void) { return 0; }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"; then :
9795 lt_cv_irix_exported_symbol=yes
9796 else
9797 lt_cv_irix_exported_symbol=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 LDFLAGS=$save_LDFLAGS
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9804 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9805 if test yes = "$lt_cv_irix_exported_symbol"; then
9806 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'
9807 fi
9808 link_all_deplibs=no
9809 else
9810 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'
9811 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'
9812 fi
9813 archive_cmds_need_lc='no'
9814 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9815 hardcode_libdir_separator=:
9816 inherit_rpath=yes
9817 link_all_deplibs=yes
9818 ;;
9819
9820 linux*)
9821 case $cc_basename in
9822 tcc*)
9823 # Fabrice Bellard et al's Tiny C Compiler
9824 ld_shlibs=yes
9825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9826 ;;
9827 esac
9828 ;;
9829
9830 netbsd* | netbsdelf*-gnu)
9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9833 else
9834 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9835 fi
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 newsos6)
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_direct=yes
9844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9845 hardcode_libdir_separator=:
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 *nto* | *qnx*)
9850 ;;
9851
9852 openbsd* | bitrig*)
9853 if test -f /usr/libexec/ld.so; then
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 hardcode_direct_absolute=yes
9857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9860 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9861 export_dynamic_flag_spec='$wl-E'
9862 else
9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9865 fi
9866 else
9867 ld_shlibs=no
9868 fi
9869 ;;
9870
9871 os2*)
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_minus_L=yes
9874 allow_undefined_flag=unsupported
9875 shrext_cmds=.dll
9876 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9877 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9878 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9879 $ECHO EXPORTS >> $output_objdir/$libname.def~
9880 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9882 emximp -o $lib $output_objdir/$libname.def'
9883 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9884 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9885 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9886 $ECHO EXPORTS >> $output_objdir/$libname.def~
9887 prefix_cmds="$SED"~
9888 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9889 prefix_cmds="$prefix_cmds -e 1d";
9890 fi~
9891 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9892 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9893 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9894 emximp -o $lib $output_objdir/$libname.def'
9895 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9896 enable_shared_with_static_runtimes=yes
9897 ;;
9898
9899 osf3*)
9900 if test yes = "$GCC"; then
9901 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9902 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'
9903 else
9904 allow_undefined_flag=' -expect_unresolved \*'
9905 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'
9906 fi
9907 archive_cmds_need_lc='no'
9908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9909 hardcode_libdir_separator=:
9910 ;;
9911
9912 osf4* | osf5*) # as osf3* with the addition of -msym flag
9913 if test yes = "$GCC"; then
9914 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9915 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'
9916 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9917 else
9918 allow_undefined_flag=' -expect_unresolved \*'
9919 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'
9920 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~
9921 $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'
9922
9923 # Both c and cxx compiler support -rpath directly
9924 hardcode_libdir_flag_spec='-rpath $libdir'
9925 fi
9926 archive_cmds_need_lc='no'
9927 hardcode_libdir_separator=:
9928 ;;
9929
9930 solaris*)
9931 no_undefined_flag=' -z defs'
9932 if test yes = "$GCC"; then
9933 wlarc='$wl'
9934 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $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'
9937 else
9938 case `$CC -V 2>&1` in
9939 *"Compilers 5.0"*)
9940 wlarc=''
9941 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9943 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9944 ;;
9945 *)
9946 wlarc='$wl'
9947 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9949 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950 ;;
9951 esac
9952 fi
9953 hardcode_libdir_flag_spec='-R$libdir'
9954 hardcode_shlibpath_var=no
9955 case $host_os in
9956 solaris2.[0-5] | solaris2.[0-5].*) ;;
9957 *)
9958 # The compiler driver will combine and reorder linker options,
9959 # but understands '-z linker_flag'. GCC discards it without '$wl',
9960 # but is careful enough not to reorder.
9961 # Supported since Solaris 2.6 (maybe 2.5.1?)
9962 if test yes = "$GCC"; then
9963 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9964 else
9965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9966 fi
9967 ;;
9968 esac
9969 link_all_deplibs=yes
9970 ;;
9971
9972 sunos4*)
9973 if test sequent = "$host_vendor"; then
9974 # Use $CC to link under sequent, because it throws in some extra .o
9975 # files that make .init and .fini sections work.
9976 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9977 else
9978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9979 fi
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_direct=yes
9982 hardcode_minus_L=yes
9983 hardcode_shlibpath_var=no
9984 ;;
9985
9986 sysv4)
9987 case $host_vendor in
9988 sni)
9989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_direct=yes # is this really true???
9991 ;;
9992 siemens)
9993 ## LD is ld it makes a PLAMLIB
9994 ## CC just makes a GrossModule.
9995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9996 reload_cmds='$CC -r -o $output$reload_objs'
9997 hardcode_direct=no
9998 ;;
9999 motorola)
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10002 ;;
10003 esac
10004 runpath_var='LD_RUN_PATH'
10005 hardcode_shlibpath_var=no
10006 ;;
10007
10008 sysv4.3*)
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_shlibpath_var=no
10011 export_dynamic_flag_spec='-Bexport'
10012 ;;
10013
10014 sysv4*MP*)
10015 if test -d /usr/nec; then
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_shlibpath_var=no
10018 runpath_var=LD_RUN_PATH
10019 hardcode_runpath_var=yes
10020 ld_shlibs=yes
10021 fi
10022 ;;
10023
10024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10025 no_undefined_flag='$wl-z,text'
10026 archive_cmds_need_lc=no
10027 hardcode_shlibpath_var=no
10028 runpath_var='LD_RUN_PATH'
10029
10030 if test yes = "$GCC"; then
10031 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 else
10034 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 fi
10037 ;;
10038
10039 sysv5* | sco3.2v5* | sco5v6*)
10040 # Note: We CANNOT use -z defs as we might desire, because we do not
10041 # link with -lc, and that would cause any symbols used from libc to
10042 # always be unresolved, which means just about no library would
10043 # ever link correctly. If we're not using GNU ld we use -z text
10044 # though, which does catch some bad symbols but isn't as heavy-handed
10045 # as -z defs.
10046 no_undefined_flag='$wl-z,text'
10047 allow_undefined_flag='$wl-z,nodefs'
10048 archive_cmds_need_lc=no
10049 hardcode_shlibpath_var=no
10050 hardcode_libdir_flag_spec='$wl-R,$libdir'
10051 hardcode_libdir_separator=':'
10052 link_all_deplibs=yes
10053 export_dynamic_flag_spec='$wl-Bexport'
10054 runpath_var='LD_RUN_PATH'
10055
10056 if test yes = "$GCC"; then
10057 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 fi
10063 ;;
10064
10065 uts4*)
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_shlibpath_var=no
10069 ;;
10070
10071 *)
10072 ld_shlibs=no
10073 ;;
10074 esac
10075
10076 if test sni = "$host_vendor"; then
10077 case $host in
10078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10079 export_dynamic_flag_spec='$wl-Blargedynsym'
10080 ;;
10081 esac
10082 fi
10083 fi
10084
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10086 $as_echo "$ld_shlibs" >&6; }
10087 test no = "$ld_shlibs" && can_build_shared=no
10088
10089 with_gnu_ld=$with_gnu_ld
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105 #
10106 # Do we need to explicitly link libc?
10107 #
10108 case "x$archive_cmds_need_lc" in
10109 x|xyes)
10110 # Assume -lc should be added
10111 archive_cmds_need_lc=yes
10112
10113 if test yes,yes = "$GCC,$enable_shared"; then
10114 case $archive_cmds in
10115 *'~'*)
10116 # FIXME: we may have to deal with multi-command sequences.
10117 ;;
10118 '$CC '*)
10119 # Test whether the compiler implicitly links with -lc since on some
10120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10121 # to ld, don't add -lc before -lgcc.
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10123 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10124 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 $RM conftest*
10128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129
10130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10131 (eval $ac_compile) 2>&5
10132 ac_status=$?
10133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10134 test $ac_status = 0; } 2>conftest.err; then
10135 soname=conftest
10136 lib=conftest
10137 libobjs=conftest.$ac_objext
10138 deplibs=
10139 wl=$lt_prog_compiler_wl
10140 pic_flag=$lt_prog_compiler_pic
10141 compiler_flags=-v
10142 linker_flags=-v
10143 verstring=
10144 output_objdir=.
10145 libname=conftest
10146 lt_save_allow_undefined_flag=$allow_undefined_flag
10147 allow_undefined_flag=
10148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10149 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10150 ac_status=$?
10151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10152 test $ac_status = 0; }
10153 then
10154 lt_cv_archive_cmds_need_lc=no
10155 else
10156 lt_cv_archive_cmds_need_lc=yes
10157 fi
10158 allow_undefined_flag=$lt_save_allow_undefined_flag
10159 else
10160 cat conftest.err 1>&5
10161 fi
10162 $RM conftest*
10163
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10166 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10167 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10168 ;;
10169 esac
10170 fi
10171 ;;
10172 esac
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
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10326 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10327
10328 if test yes = "$GCC"; then
10329 case $host_os in
10330 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10331 *) lt_awk_arg='/^libraries:/' ;;
10332 esac
10333 case $host_os in
10334 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10335 *) lt_sed_strip_eq='s|=/|/|g' ;;
10336 esac
10337 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10338 case $lt_search_path_spec in
10339 *\;*)
10340 # if the path contains ";" then we assume it to be the separator
10341 # otherwise default to the standard path separator (i.e. ":") - it is
10342 # assumed that no part of a normal pathname contains ";" but that should
10343 # okay in the real world where ";" in dirpaths is itself problematic.
10344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10345 ;;
10346 *)
10347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10348 ;;
10349 esac
10350 # Ok, now we have the path, separated by spaces, we can step through it
10351 # and add multilib dir if necessary...
10352 lt_tmp_lt_search_path_spec=
10353 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10354 # ...but if some path component already ends with the multilib dir we assume
10355 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10356 case "$lt_multi_os_dir; $lt_search_path_spec " in
10357 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10358 lt_multi_os_dir=
10359 ;;
10360 esac
10361 for lt_sys_path in $lt_search_path_spec; do
10362 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10364 elif test -n "$lt_multi_os_dir"; then
10365 test -d "$lt_sys_path" && \
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10367 fi
10368 done
10369 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10370 BEGIN {RS = " "; FS = "/|\n";} {
10371 lt_foo = "";
10372 lt_count = 0;
10373 for (lt_i = NF; lt_i > 0; lt_i--) {
10374 if ($lt_i != "" && $lt_i != ".") {
10375 if ($lt_i == "..") {
10376 lt_count++;
10377 } else {
10378 if (lt_count == 0) {
10379 lt_foo = "/" $lt_i lt_foo;
10380 } else {
10381 lt_count--;
10382 }
10383 }
10384 }
10385 }
10386 if (lt_foo != "") { lt_freq[lt_foo]++; }
10387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10388 }'`
10389 # AWK program above erroneously prepends '/' to C:/dos/paths
10390 # for these hosts.
10391 case $host_os in
10392 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10393 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10394 esac
10395 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10396 else
10397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10398 fi
10399 library_names_spec=
10400 libname_spec='lib$name'
10401 soname_spec=
10402 shrext_cmds=.so
10403 postinstall_cmds=
10404 postuninstall_cmds=
10405 finish_cmds=
10406 finish_eval=
10407 shlibpath_var=
10408 shlibpath_overrides_runpath=unknown
10409 version_type=none
10410 dynamic_linker="$host_os ld.so"
10411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10412 need_lib_prefix=unknown
10413 hardcode_into_libs=no
10414
10415 # when you set need_version to no, make sure it does not cause -set_version
10416 # flags to be left without arguments
10417 need_version=unknown
10418
10419
10420
10421 case $host_os in
10422 aix3*)
10423 version_type=linux # correct to gnu/linux during the next big refactor
10424 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10425 shlibpath_var=LIBPATH
10426
10427 # AIX 3 has no versioning support, so we append a major version to the name.
10428 soname_spec='$libname$release$shared_ext$major'
10429 ;;
10430
10431 aix[4-9]*)
10432 version_type=linux # correct to gnu/linux during the next big refactor
10433 need_lib_prefix=no
10434 need_version=no
10435 hardcode_into_libs=yes
10436 if test ia64 = "$host_cpu"; then
10437 # AIX 5 supports IA64
10438 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 else
10441 # With GCC up to 2.95.x, collect2 would create an import file
10442 # for dependence libraries. The import file would start with
10443 # the line '#! .'. This would cause the generated library to
10444 # depend on '.', always an invalid library. This was fixed in
10445 # development snapshots of GCC prior to 3.0.
10446 case $host_os in
10447 aix4 | aix4.[01] | aix4.[01].*)
10448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10449 echo ' yes '
10450 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10451 :
10452 else
10453 can_build_shared=no
10454 fi
10455 ;;
10456 esac
10457 # Using Import Files as archive members, it is possible to support
10458 # filename-based versioning of shared library archives on AIX. While
10459 # this would work for both with and without runtime linking, it will
10460 # prevent static linking of such archives. So we do filename-based
10461 # shared library versioning with .so extension only, which is used
10462 # when both runtime linking and shared linking is enabled.
10463 # Unfortunately, runtime linking may impact performance, so we do
10464 # not want this to be the default eventually. Also, we use the
10465 # versioned .so libs for executables only if there is the -brtl
10466 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10467 # To allow for filename-based versioning support, we need to create
10468 # libNAME.so.V as an archive file, containing:
10469 # *) an Import File, referring to the versioned filename of the
10470 # archive as well as the shared archive member, telling the
10471 # bitwidth (32 or 64) of that shared object, and providing the
10472 # list of exported symbols of that shared object, eventually
10473 # decorated with the 'weak' keyword
10474 # *) the shared object with the F_LOADONLY flag set, to really avoid
10475 # it being seen by the linker.
10476 # At run time we better use the real file rather than another symlink,
10477 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10478
10479 case $with_aix_soname,$aix_use_runtimelinking in
10480 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10481 # soname into executable. Probably we can add versioning support to
10482 # collect2, so additional links can be useful in future.
10483 aix,yes) # traditional libtool
10484 dynamic_linker='AIX unversionable lib.so'
10485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10486 # instead of lib<name>.a to let people know that these are not
10487 # typical AIX shared libraries.
10488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10489 ;;
10490 aix,no) # traditional AIX only
10491 dynamic_linker='AIX lib.a(lib.so.V)'
10492 # We preserve .a as extension for shared libraries through AIX4.2
10493 # and later when we are not doing run time linking.
10494 library_names_spec='$libname$release.a $libname.a'
10495 soname_spec='$libname$release$shared_ext$major'
10496 ;;
10497 svr4,*) # full svr4 only
10498 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10499 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10500 # We do not specify a path in Import Files, so LIBPATH fires.
10501 shlibpath_overrides_runpath=yes
10502 ;;
10503 *,yes) # both, prefer svr4
10504 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10505 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10506 # unpreferred sharedlib libNAME.a needs extra handling
10507 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"'
10508 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"'
10509 # We do not specify a path in Import Files, so LIBPATH fires.
10510 shlibpath_overrides_runpath=yes
10511 ;;
10512 *,no) # both, prefer aix
10513 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10514 library_names_spec='$libname$release.a $libname.a'
10515 soname_spec='$libname$release$shared_ext$major'
10516 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10517 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)'
10518 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"'
10519 ;;
10520 esac
10521 shlibpath_var=LIBPATH
10522 fi
10523 ;;
10524
10525 amigaos*)
10526 case $host_cpu in
10527 powerpc)
10528 # Since July 2007 AmigaOS4 officially supports .so libraries.
10529 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10531 ;;
10532 m68k)
10533 library_names_spec='$libname.ixlibrary $libname.a'
10534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10535 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'
10536 ;;
10537 esac
10538 ;;
10539
10540 beos*)
10541 library_names_spec='$libname$shared_ext'
10542 dynamic_linker="$host_os ld.so"
10543 shlibpath_var=LIBRARY_PATH
10544 ;;
10545
10546 bsdi[45]*)
10547 version_type=linux # correct to gnu/linux during the next big refactor
10548 need_version=no
10549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10550 soname_spec='$libname$release$shared_ext$major'
10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10555 # the default ld.so.conf also contains /usr/contrib/lib and
10556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10557 # libtool to hard-code these into programs
10558 ;;
10559
10560 cygwin* | mingw* | pw32* | cegcc*)
10561 version_type=windows
10562 shrext_cmds=.dll
10563 need_version=no
10564 need_lib_prefix=no
10565
10566 case $GCC,$cc_basename in
10567 yes,*)
10568 # gcc
10569 library_names_spec='$libname.dll.a'
10570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10571 postinstall_cmds='base_file=`basename \$file`~
10572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10573 dldir=$destdir/`dirname \$dlpath`~
10574 test -d \$dldir || mkdir -p \$dldir~
10575 $install_prog $dir/$dlname \$dldir/$dlname~
10576 chmod a+x \$dldir/$dlname~
10577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10579 fi'
10580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10582 $RM \$dlpath'
10583 shlibpath_overrides_runpath=yes
10584
10585 case $host_os in
10586 cygwin*)
10587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10588 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10589
10590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10591 ;;
10592 mingw* | cegcc*)
10593 # MinGW DLLs use traditional 'lib' prefix
10594 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10595 ;;
10596 pw32*)
10597 # pw32 DLLs use 'pw' prefix rather than 'lib'
10598 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10599 ;;
10600 esac
10601 dynamic_linker='Win32 ld.exe'
10602 ;;
10603
10604 *,cl*)
10605 # Native MSVC
10606 libname_spec='$name'
10607 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10608 library_names_spec='$libname.dll.lib'
10609
10610 case $build_os in
10611 mingw*)
10612 sys_lib_search_path_spec=
10613 lt_save_ifs=$IFS
10614 IFS=';'
10615 for lt_path in $LIB
10616 do
10617 IFS=$lt_save_ifs
10618 # Let DOS variable expansion print the short 8.3 style file name.
10619 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10620 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10621 done
10622 IFS=$lt_save_ifs
10623 # Convert to MSYS style.
10624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10625 ;;
10626 cygwin*)
10627 # Convert to unix form, then to dos form, then back to unix form
10628 # but this time dos style (no spaces!) so that the unix form looks
10629 # like /cygdrive/c/PROGRA~1:/cygdr...
10630 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10631 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10632 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10633 ;;
10634 *)
10635 sys_lib_search_path_spec=$LIB
10636 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10637 # It is most probably a Windows format PATH.
10638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10639 else
10640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10641 fi
10642 # FIXME: find the short name or the path components, as spaces are
10643 # common. (e.g. "Program Files" -> "PROGRA~1")
10644 ;;
10645 esac
10646
10647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10648 postinstall_cmds='base_file=`basename \$file`~
10649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10650 dldir=$destdir/`dirname \$dlpath`~
10651 test -d \$dldir || mkdir -p \$dldir~
10652 $install_prog $dir/$dlname \$dldir/$dlname'
10653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654 dlpath=$dir/\$dldll~
10655 $RM \$dlpath'
10656 shlibpath_overrides_runpath=yes
10657 dynamic_linker='Win32 link.exe'
10658 ;;
10659
10660 *)
10661 # Assume MSVC wrapper
10662 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10663 dynamic_linker='Win32 ld.exe'
10664 ;;
10665 esac
10666 # FIXME: first we should search . and the directory the executable is in
10667 shlibpath_var=PATH
10668 ;;
10669
10670 darwin* | rhapsody*)
10671 dynamic_linker="$host_os dyld"
10672 version_type=darwin
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10676 soname_spec='$libname$release$major$shared_ext'
10677 shlibpath_overrides_runpath=yes
10678 shlibpath_var=DYLD_LIBRARY_PATH
10679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10680
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10683 ;;
10684
10685 dgux*)
10686 version_type=linux # correct to gnu/linux during the next big refactor
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10690 soname_spec='$libname$release$shared_ext$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 ;;
10693
10694 freebsd* | dragonfly*)
10695 # DragonFly does not have aout. When/if they implement a new
10696 # versioning mechanism, adjust this.
10697 if test -x /usr/bin/objformat; then
10698 objformat=`/usr/bin/objformat`
10699 else
10700 case $host_os in
10701 freebsd[23].*) objformat=aout ;;
10702 *) objformat=elf ;;
10703 esac
10704 fi
10705 version_type=freebsd-$objformat
10706 case $version_type in
10707 freebsd-elf*)
10708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10709 soname_spec='$libname$release$shared_ext$major'
10710 need_version=no
10711 need_lib_prefix=no
10712 ;;
10713 freebsd-*)
10714 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10715 need_version=yes
10716 ;;
10717 esac
10718 shlibpath_var=LD_LIBRARY_PATH
10719 case $host_os in
10720 freebsd2.*)
10721 shlibpath_overrides_runpath=yes
10722 ;;
10723 freebsd3.[01]* | freebsdelf3.[01]*)
10724 shlibpath_overrides_runpath=yes
10725 hardcode_into_libs=yes
10726 ;;
10727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10729 shlibpath_overrides_runpath=no
10730 hardcode_into_libs=yes
10731 ;;
10732 *) # from 4.6 on, and DragonFly
10733 shlibpath_overrides_runpath=yes
10734 hardcode_into_libs=yes
10735 ;;
10736 esac
10737 ;;
10738
10739 haiku*)
10740 version_type=linux # correct to gnu/linux during the next big refactor
10741 need_lib_prefix=no
10742 need_version=no
10743 dynamic_linker="$host_os runtime_loader"
10744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10745 soname_spec='$libname$release$shared_ext$major'
10746 shlibpath_var=LIBRARY_PATH
10747 shlibpath_overrides_runpath=no
10748 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10749 hardcode_into_libs=yes
10750 ;;
10751
10752 hpux9* | hpux10* | hpux11*)
10753 # Give a soname corresponding to the major version so that dld.sl refuses to
10754 # link against other versions.
10755 version_type=sunos
10756 need_lib_prefix=no
10757 need_version=no
10758 case $host_cpu in
10759 ia64*)
10760 shrext_cmds='.so'
10761 hardcode_into_libs=yes
10762 dynamic_linker="$host_os dld.so"
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10766 soname_spec='$libname$release$shared_ext$major'
10767 if test 32 = "$HPUX_IA64_MODE"; then
10768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10769 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10770 else
10771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10772 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10773 fi
10774 ;;
10775 hppa*64*)
10776 shrext_cmds='.sl'
10777 hardcode_into_libs=yes
10778 dynamic_linker="$host_os dld.sl"
10779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10782 soname_spec='$libname$release$shared_ext$major'
10783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 ;;
10786 *)
10787 shrext_cmds='.sl'
10788 dynamic_linker="$host_os dld.sl"
10789 shlibpath_var=SHLIB_PATH
10790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10792 soname_spec='$libname$release$shared_ext$major'
10793 ;;
10794 esac
10795 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10796 postinstall_cmds='chmod 555 $lib'
10797 # or fails outright, so override atomically:
10798 install_override_mode=555
10799 ;;
10800
10801 interix[3-9]*)
10802 version_type=linux # correct to gnu/linux during the next big refactor
10803 need_lib_prefix=no
10804 need_version=no
10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806 soname_spec='$libname$release$shared_ext$major'
10807 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 ;;
10812
10813 irix5* | irix6* | nonstopux*)
10814 case $host_os in
10815 nonstopux*) version_type=nonstopux ;;
10816 *)
10817 if test yes = "$lt_cv_prog_gnu_ld"; then
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 else
10820 version_type=irix
10821 fi ;;
10822 esac
10823 need_lib_prefix=no
10824 need_version=no
10825 soname_spec='$libname$release$shared_ext$major'
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10827 case $host_os in
10828 irix5* | nonstopux*)
10829 libsuff= shlibsuff=
10830 ;;
10831 *)
10832 case $LD in # libtool.m4 will add one of these switches to LD
10833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10834 libsuff= shlibsuff= libmagic=32-bit;;
10835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10836 libsuff=32 shlibsuff=N32 libmagic=N32;;
10837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10839 *) libsuff= shlibsuff= libmagic=never-match;;
10840 esac
10841 ;;
10842 esac
10843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10844 shlibpath_overrides_runpath=no
10845 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10846 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 # No shared lib support for Linux oldld, aout, or coff.
10851 linux*oldld* | linux*aout* | linux*coff*)
10852 dynamic_linker=no
10853 ;;
10854
10855 linux*android*)
10856 version_type=none # Android doesn't support versioned libraries.
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='$libname$release$shared_ext'
10860 soname_spec='$libname$release$shared_ext'
10861 finish_cmds=
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes
10864
10865 # This implies no fast_install, which is unacceptable.
10866 # Some rework will be needed to allow for fast_install
10867 # before this can be enabled.
10868 hardcode_into_libs=yes
10869
10870 dynamic_linker='Android linker'
10871 # Don't embed -rpath directories since the linker doesn't support them.
10872 hardcode_libdir_flag_spec='-L$libdir'
10873 ;;
10874
10875 # This must be glibc/ELF.
10876 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10877 version_type=linux # correct to gnu/linux during the next big refactor
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881 soname_spec='$libname$release$shared_ext$major'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=no
10885
10886 # Some binutils ld are patched to set DT_RUNPATH
10887 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 lt_cv_shlibpath_overrides_runpath=no
10891 save_LDFLAGS=$LDFLAGS
10892 save_libdir=$libdir
10893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 int
10899 main ()
10900 {
10901
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10908 lt_cv_shlibpath_overrides_runpath=yes
10909 fi
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LDFLAGS=$save_LDFLAGS
10914 libdir=$save_libdir
10915
10916 fi
10917
10918 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10919
10920 # This implies no fast_install, which is unacceptable.
10921 # Some rework will be needed to allow for fast_install
10922 # before this can be enabled.
10923 hardcode_into_libs=yes
10924
10925 # Ideally, we could use ldconfig to report *all* directores which are
10926 # searched for libraries, however this is still not possible. Aside from not
10927 # being certain /sbin/ldconfig is available, command
10928 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10929 # even though it is searched at run-time. Try to do the best guess by
10930 # appending ld.so.conf contents (and includes) to the search path.
10931 if test -f /etc/ld.so.conf; then
10932 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' ' '`
10933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10934 fi
10935
10936 # We used to test for /lib/ld.so.1 and disable shared libraries on
10937 # powerpc, because MkLinux only supported shared libraries with the
10938 # GNU dynamic linker. Since this was broken with cross compilers,
10939 # most powerpc-linux boxes support dynamic linking these days and
10940 # people can always --disable-shared, the test was removed, and we
10941 # assume the GNU/Linux dynamic linker is in use.
10942 dynamic_linker='GNU/Linux ld.so'
10943 ;;
10944
10945 netbsdelf*-gnu)
10946 version_type=linux
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10954 dynamic_linker='NetBSD ld.elf_so'
10955 ;;
10956
10957 netbsd*)
10958 version_type=sunos
10959 need_lib_prefix=no
10960 need_version=no
10961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10964 dynamic_linker='NetBSD (a.out) ld.so'
10965 else
10966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10967 soname_spec='$libname$release$shared_ext$major'
10968 dynamic_linker='NetBSD ld.elf_so'
10969 fi
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 ;;
10974
10975 newsos6)
10976 version_type=linux # correct to gnu/linux during the next big refactor
10977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 ;;
10981
10982 *nto* | *qnx*)
10983 version_type=qnx
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10987 soname_spec='$libname$release$shared_ext$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=no
10990 hardcode_into_libs=yes
10991 dynamic_linker='ldqnx.so'
10992 ;;
10993
10994 openbsd* | bitrig*)
10995 version_type=sunos
10996 sys_lib_dlsearch_path_spec=/usr/lib
10997 need_lib_prefix=no
10998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10999 need_version=no
11000 else
11001 need_version=yes
11002 fi
11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes
11007 ;;
11008
11009 os2*)
11010 libname_spec='$name'
11011 version_type=windows
11012 shrext_cmds=.dll
11013 need_version=no
11014 need_lib_prefix=no
11015 # OS/2 can only load a DLL with a base name of 8 characters or less.
11016 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11017 v=$($ECHO $release$versuffix | tr -d .-);
11018 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11019 $ECHO $n$v`$shared_ext'
11020 library_names_spec='${libname}_dll.$libext'
11021 dynamic_linker='OS/2 ld.exe'
11022 shlibpath_var=BEGINLIBPATH
11023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11025 postinstall_cmds='base_file=`basename \$file`~
11026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11027 dldir=$destdir/`dirname \$dlpath`~
11028 test -d \$dldir || mkdir -p \$dldir~
11029 $install_prog $dir/$dlname \$dldir/$dlname~
11030 chmod a+x \$dldir/$dlname~
11031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11033 fi'
11034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11035 dlpath=$dir/\$dldll~
11036 $RM \$dlpath'
11037 ;;
11038
11039 osf3* | osf4* | osf5*)
11040 version_type=osf
11041 need_lib_prefix=no
11042 need_version=no
11043 soname_spec='$libname$release$shared_ext$major'
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11048 ;;
11049
11050 rdos*)
11051 dynamic_linker=no
11052 ;;
11053
11054 solaris*)
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 need_lib_prefix=no
11057 need_version=no
11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059 soname_spec='$libname$release$shared_ext$major'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 # ldd complains unless libraries are executable
11064 postinstall_cmds='chmod +x $lib'
11065 ;;
11066
11067 sunos4*)
11068 version_type=sunos
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11073 if test yes = "$with_gnu_ld"; then
11074 need_lib_prefix=no
11075 fi
11076 need_version=yes
11077 ;;
11078
11079 sysv4 | sysv4.3*)
11080 version_type=linux # correct to gnu/linux during the next big refactor
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 case $host_vendor in
11085 sni)
11086 shlibpath_overrides_runpath=no
11087 need_lib_prefix=no
11088 runpath_var=LD_RUN_PATH
11089 ;;
11090 siemens)
11091 need_lib_prefix=no
11092 ;;
11093 motorola)
11094 need_lib_prefix=no
11095 need_version=no
11096 shlibpath_overrides_runpath=no
11097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11098 ;;
11099 esac
11100 ;;
11101
11102 sysv4*MP*)
11103 if test -d /usr/nec; then
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11106 soname_spec='$libname$shared_ext.$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 fi
11109 ;;
11110
11111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11112 version_type=sco
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11116 soname_spec='$libname$release$shared_ext$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 hardcode_into_libs=yes
11120 if test yes = "$with_gnu_ld"; then
11121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11122 else
11123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11124 case $host_os in
11125 sco3.2v5*)
11126 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11127 ;;
11128 esac
11129 fi
11130 sys_lib_dlsearch_path_spec='/usr/lib'
11131 ;;
11132
11133 tpf*)
11134 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 uts4*)
11145 version_type=linux # correct to gnu/linux during the next big refactor
11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147 soname_spec='$libname$release$shared_ext$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 ;;
11150
11151 *)
11152 dynamic_linker=no
11153 ;;
11154 esac
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11156 $as_echo "$dynamic_linker" >&6; }
11157 test no = "$dynamic_linker" && can_build_shared=no
11158
11159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11160 if test yes = "$GCC"; then
11161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11162 fi
11163
11164 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11165 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11166 fi
11167
11168 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11169 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11170 fi
11171
11172 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11173 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11174
11175 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11176 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11177
11178 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11179 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11278 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11279 hardcode_action=
11280 if test -n "$hardcode_libdir_flag_spec" ||
11281 test -n "$runpath_var" ||
11282 test yes = "$hardcode_automatic"; then
11283
11284 # We can hardcode non-existent directories.
11285 if test no != "$hardcode_direct" &&
11286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11287 # have to relink, otherwise we might link with an installed library
11288 # when we should be linking with a yet-to-be-installed one
11289 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11290 test no != "$hardcode_minus_L"; then
11291 # Linking always hardcodes the temporary library directory.
11292 hardcode_action=relink
11293 else
11294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11295 hardcode_action=immediate
11296 fi
11297 else
11298 # We cannot hardcode anything, or else we can only hardcode existing
11299 # directories.
11300 hardcode_action=unsupported
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11303 $as_echo "$hardcode_action" >&6; }
11304
11305 if test relink = "$hardcode_action" ||
11306 test yes = "$inherit_rpath"; then
11307 # Fast installation is not supported
11308 enable_fast_install=no
11309 elif test yes = "$shlibpath_overrides_runpath" ||
11310 test no = "$enable_shared"; then
11311 # Fast installation is not necessary
11312 enable_fast_install=needless
11313 fi
11314
11315
11316
11317
11318
11319
11320 if test yes != "$enable_dlopen"; then
11321 enable_dlopen=unknown
11322 enable_dlopen_self=unknown
11323 enable_dlopen_self_static=unknown
11324 else
11325 lt_cv_dlopen=no
11326 lt_cv_dlopen_libs=
11327
11328 case $host_os in
11329 beos*)
11330 lt_cv_dlopen=load_add_on
11331 lt_cv_dlopen_libs=
11332 lt_cv_dlopen_self=yes
11333 ;;
11334
11335 mingw* | pw32* | cegcc*)
11336 lt_cv_dlopen=LoadLibrary
11337 lt_cv_dlopen_libs=
11338 ;;
11339
11340 cygwin*)
11341 lt_cv_dlopen=dlopen
11342 lt_cv_dlopen_libs=
11343 ;;
11344
11345 darwin*)
11346 # if libdl is installed we need to link against it
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11348 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11349 if ${ac_cv_lib_dl_dlopen+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-ldl $LIBS"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char dlopen ();
11364 int
11365 main ()
11366 {
11367 return dlopen ();
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dl_dlopen=yes
11374 else
11375 ac_cv_lib_dl_dlopen=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11382 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11383 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11384 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11385 else
11386
11387 lt_cv_dlopen=dyld
11388 lt_cv_dlopen_libs=
11389 lt_cv_dlopen_self=yes
11390
11391 fi
11392
11393 ;;
11394
11395 tpf*)
11396 # Don't try to run any link tests for TPF. We know it's impossible
11397 # because TPF is a cross-compiler, and we know how we open DSOs.
11398 lt_cv_dlopen=dlopen
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=no
11401 ;;
11402
11403 *)
11404 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11405 if test "x$ac_cv_func_shl_load" = xyes; then :
11406 lt_cv_dlopen=shl_load
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11409 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11410 if ${ac_cv_lib_dld_shl_load+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-ldld $LIBS"
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char shl_load ();
11425 int
11426 main ()
11427 {
11428 return shl_load ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_link "$LINENO"; then :
11434 ac_cv_lib_dld_shl_load=yes
11435 else
11436 ac_cv_lib_dld_shl_load=no
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11443 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11444 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11445 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11446 else
11447 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11448 if test "x$ac_cv_func_dlopen" = xyes; then :
11449 lt_cv_dlopen=dlopen
11450 else
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11453 if ${ac_cv_lib_dl_dlopen+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldl $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char dlopen ();
11468 int
11469 main ()
11470 {
11471 return dlopen ();
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dl_dlopen=yes
11478 else
11479 ac_cv_lib_dl_dlopen=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11487 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11489 else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11491 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11492 if ${ac_cv_lib_svld_dlopen+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 ac_check_lib_save_LIBS=$LIBS
11496 LIBS="-lsvld $LIBS"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499
11500 /* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11503 #ifdef __cplusplus
11504 extern "C"
11505 #endif
11506 char dlopen ();
11507 int
11508 main ()
11509 {
11510 return dlopen ();
11511 ;
11512 return 0;
11513 }
11514 _ACEOF
11515 if ac_fn_c_try_link "$LINENO"; then :
11516 ac_cv_lib_svld_dlopen=yes
11517 else
11518 ac_cv_lib_svld_dlopen=no
11519 fi
11520 rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11525 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11526 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11530 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11531 if ${ac_cv_lib_dld_dld_link+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-ldld $LIBS"
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538
11539 /* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11542 #ifdef __cplusplus
11543 extern "C"
11544 #endif
11545 char dld_link ();
11546 int
11547 main ()
11548 {
11549 return dld_link ();
11550 ;
11551 return 0;
11552 }
11553 _ACEOF
11554 if ac_fn_c_try_link "$LINENO"; then :
11555 ac_cv_lib_dld_dld_link=yes
11556 else
11557 ac_cv_lib_dld_dld_link=no
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11564 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11565 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11566 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11567 fi
11568
11569
11570 fi
11571
11572
11573 fi
11574
11575
11576 fi
11577
11578
11579 fi
11580
11581
11582 fi
11583
11584 ;;
11585 esac
11586
11587 if test no = "$lt_cv_dlopen"; then
11588 enable_dlopen=no
11589 else
11590 enable_dlopen=yes
11591 fi
11592
11593 case $lt_cv_dlopen in
11594 dlopen)
11595 save_CPPFLAGS=$CPPFLAGS
11596 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11597
11598 save_LDFLAGS=$LDFLAGS
11599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11600
11601 save_LIBS=$LIBS
11602 LIBS="$lt_cv_dlopen_libs $LIBS"
11603
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11605 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11606 if ${lt_cv_dlopen_self+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 if test yes = "$cross_compiling"; then :
11610 lt_cv_dlopen_self=cross
11611 else
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<_LT_EOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11617
11618 #if HAVE_DLFCN_H
11619 #include <dlfcn.h>
11620 #endif
11621
11622 #include <stdio.h>
11623
11624 #ifdef RTLD_GLOBAL
11625 # define LT_DLGLOBAL RTLD_GLOBAL
11626 #else
11627 # ifdef DL_GLOBAL
11628 # define LT_DLGLOBAL DL_GLOBAL
11629 # else
11630 # define LT_DLGLOBAL 0
11631 # endif
11632 #endif
11633
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11637 # ifdef RTLD_LAZY
11638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11639 # else
11640 # ifdef DL_LAZY
11641 # define LT_DLLAZY_OR_NOW DL_LAZY
11642 # else
11643 # ifdef RTLD_NOW
11644 # define LT_DLLAZY_OR_NOW RTLD_NOW
11645 # else
11646 # ifdef DL_NOW
11647 # define LT_DLLAZY_OR_NOW DL_NOW
11648 # else
11649 # define LT_DLLAZY_OR_NOW 0
11650 # endif
11651 # endif
11652 # endif
11653 # endif
11654 #endif
11655
11656 /* When -fvisibility=hidden is used, assume the code has been annotated
11657 correspondingly for the symbols needed. */
11658 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11659 int fnord () __attribute__((visibility("default")));
11660 #endif
11661
11662 int fnord () { return 42; }
11663 int main ()
11664 {
11665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666 int status = $lt_dlunknown;
11667
11668 if (self)
11669 {
11670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11671 else
11672 {
11673 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11674 else puts (dlerror ());
11675 }
11676 /* dlclose (self); */
11677 }
11678 else
11679 puts (dlerror ());
11680
11681 return status;
11682 }
11683 _LT_EOF
11684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11685 (eval $ac_link) 2>&5
11686 ac_status=$?
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11689 (./conftest; exit; ) >&5 2>/dev/null
11690 lt_status=$?
11691 case x$lt_status in
11692 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11693 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11694 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11695 esac
11696 else :
11697 # compilation failed
11698 lt_cv_dlopen_self=no
11699 fi
11700 fi
11701 rm -fr conftest*
11702
11703
11704 fi
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11706 $as_echo "$lt_cv_dlopen_self" >&6; }
11707
11708 if test yes = "$lt_cv_dlopen_self"; then
11709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11711 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11712 if ${lt_cv_dlopen_self_static+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 if test yes = "$cross_compiling"; then :
11716 lt_cv_dlopen_self_static=cross
11717 else
11718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11719 lt_status=$lt_dlunknown
11720 cat > conftest.$ac_ext <<_LT_EOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11723
11724 #if HAVE_DLFCN_H
11725 #include <dlfcn.h>
11726 #endif
11727
11728 #include <stdio.h>
11729
11730 #ifdef RTLD_GLOBAL
11731 # define LT_DLGLOBAL RTLD_GLOBAL
11732 #else
11733 # ifdef DL_GLOBAL
11734 # define LT_DLGLOBAL DL_GLOBAL
11735 # else
11736 # define LT_DLGLOBAL 0
11737 # endif
11738 #endif
11739
11740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11741 find out it does not work in some platform. */
11742 #ifndef LT_DLLAZY_OR_NOW
11743 # ifdef RTLD_LAZY
11744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11745 # else
11746 # ifdef DL_LAZY
11747 # define LT_DLLAZY_OR_NOW DL_LAZY
11748 # else
11749 # ifdef RTLD_NOW
11750 # define LT_DLLAZY_OR_NOW RTLD_NOW
11751 # else
11752 # ifdef DL_NOW
11753 # define LT_DLLAZY_OR_NOW DL_NOW
11754 # else
11755 # define LT_DLLAZY_OR_NOW 0
11756 # endif
11757 # endif
11758 # endif
11759 # endif
11760 #endif
11761
11762 /* When -fvisibility=hidden is used, assume the code has been annotated
11763 correspondingly for the symbols needed. */
11764 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11765 int fnord () __attribute__((visibility("default")));
11766 #endif
11767
11768 int fnord () { return 42; }
11769 int main ()
11770 {
11771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11772 int status = $lt_dlunknown;
11773
11774 if (self)
11775 {
11776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 else
11778 {
11779 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11780 else puts (dlerror ());
11781 }
11782 /* dlclose (self); */
11783 }
11784 else
11785 puts (dlerror ());
11786
11787 return status;
11788 }
11789 _LT_EOF
11790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11791 (eval $ac_link) 2>&5
11792 ac_status=$?
11793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11795 (./conftest; exit; ) >&5 2>/dev/null
11796 lt_status=$?
11797 case x$lt_status in
11798 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11799 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11800 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11801 esac
11802 else :
11803 # compilation failed
11804 lt_cv_dlopen_self_static=no
11805 fi
11806 fi
11807 rm -fr conftest*
11808
11809
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11812 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11813 fi
11814
11815 CPPFLAGS=$save_CPPFLAGS
11816 LDFLAGS=$save_LDFLAGS
11817 LIBS=$save_LIBS
11818 ;;
11819 esac
11820
11821 case $lt_cv_dlopen_self in
11822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11823 *) enable_dlopen_self=unknown ;;
11824 esac
11825
11826 case $lt_cv_dlopen_self_static in
11827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11828 *) enable_dlopen_self_static=unknown ;;
11829 esac
11830 fi
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 striplib=
11849 old_striplib=
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11851 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856 $as_echo "yes" >&6; }
11857 else
11858 # FIXME - insert some real tests, host_os isn't really good enough
11859 case $host_os in
11860 darwin*)
11861 if test -n "$STRIP"; then
11862 striplib="$STRIP -x"
11863 old_striplib="$STRIP -S"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870 ;;
11871 *)
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11874 ;;
11875 esac
11876 fi
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889 # Report what library types will actually be built
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11891 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11893 $as_echo "$can_build_shared" >&6; }
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11896 $as_echo_n "checking whether to build shared libraries... " >&6; }
11897 test no = "$can_build_shared" && enable_shared=no
11898
11899 # On AIX, shared libraries and static libraries use the same namespace, and
11900 # are all built from PIC.
11901 case $host_os in
11902 aix3*)
11903 test yes = "$enable_shared" && enable_static=no
11904 if test -n "$RANLIB"; then
11905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11906 postinstall_cmds='$RANLIB $lib'
11907 fi
11908 ;;
11909
11910 aix[4-9]*)
11911 if test ia64 != "$host_cpu"; then
11912 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11913 yes,aix,yes) ;; # shared object as lib.so file only
11914 yes,svr4,*) ;; # shared object as lib.so archive member only
11915 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11916 esac
11917 fi
11918 ;;
11919 esac
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11921 $as_echo "$enable_shared" >&6; }
11922
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11924 $as_echo_n "checking whether to build static libraries... " >&6; }
11925 # Make sure either enable_shared or enable_static is yes.
11926 test yes = "$enable_shared" || enable_static=yes
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11928 $as_echo "$enable_static" >&6; }
11929
11930
11931
11932
11933 fi
11934 ac_ext=c
11935 ac_cpp='$CPP $CPPFLAGS'
11936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939
11940 CC=$lt_save_CC
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 ac_config_commands="$ac_config_commands libtool"
11957
11958
11959
11960
11961 # Only expand once:
11962
11963
11964
11965 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11979 if ${ac_cv_prog_cc_c99+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_cv_prog_cc_c99=no
11983 ac_save_CC=$CC
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 #include <stdarg.h>
11987 #include <stdbool.h>
11988 #include <stdlib.h>
11989 #include <wchar.h>
11990 #include <stdio.h>
11991
11992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11993 #define debug(...) fprintf (stderr, __VA_ARGS__)
11994 #define showlist(...) puts (#__VA_ARGS__)
11995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11996 static void
11997 test_varargs_macros (void)
11998 {
11999 int x = 1234;
12000 int y = 5678;
12001 debug ("Flag");
12002 debug ("X = %d\n", x);
12003 showlist (The first, second, and third items.);
12004 report (x>y, "x is %d but y is %d", x, y);
12005 }
12006
12007 // Check long long types.
12008 #define BIG64 18446744073709551615ull
12009 #define BIG32 4294967295ul
12010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12011 #if !BIG_OK
12012 your preprocessor is broken;
12013 #endif
12014 #if BIG_OK
12015 #else
12016 your preprocessor is broken;
12017 #endif
12018 static long long int bignum = -9223372036854775807LL;
12019 static unsigned long long int ubignum = BIG64;
12020
12021 struct incomplete_array
12022 {
12023 int datasize;
12024 double data[];
12025 };
12026
12027 struct named_init {
12028 int number;
12029 const wchar_t *name;
12030 double average;
12031 };
12032
12033 typedef const char *ccp;
12034
12035 static inline int
12036 test_restrict (ccp restrict text)
12037 {
12038 // See if C++-style comments work.
12039 // Iterate through items via the restricted pointer.
12040 // Also check for declarations in for loops.
12041 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12042 continue;
12043 return 0;
12044 }
12045
12046 // Check varargs and va_copy.
12047 static void
12048 test_varargs (const char *format, ...)
12049 {
12050 va_list args;
12051 va_start (args, format);
12052 va_list args_copy;
12053 va_copy (args_copy, args);
12054
12055 const char *str;
12056 int number;
12057 float fnumber;
12058
12059 while (*format)
12060 {
12061 switch (*format++)
12062 {
12063 case 's': // string
12064 str = va_arg (args_copy, const char *);
12065 break;
12066 case 'd': // int
12067 number = va_arg (args_copy, int);
12068 break;
12069 case 'f': // float
12070 fnumber = va_arg (args_copy, double);
12071 break;
12072 default:
12073 break;
12074 }
12075 }
12076 va_end (args_copy);
12077 va_end (args);
12078 }
12079
12080 int
12081 main ()
12082 {
12083
12084 // Check bool.
12085 _Bool success = false;
12086
12087 // Check restrict.
12088 if (test_restrict ("String literal") == 0)
12089 success = true;
12090 char *restrict newvar = "Another string";
12091
12092 // Check varargs.
12093 test_varargs ("s, d' f .", "string", 65, 34.234);
12094 test_varargs_macros ();
12095
12096 // Check flexible array members.
12097 struct incomplete_array *ia =
12098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12099 ia->datasize = 10;
12100 for (int i = 0; i < ia->datasize; ++i)
12101 ia->data[i] = i * 1.234;
12102
12103 // Check named initializers.
12104 struct named_init ni = {
12105 .number = 34,
12106 .name = L"Test wide string",
12107 .average = 543.34343,
12108 };
12109
12110 ni.number = 58;
12111
12112 int dynamic_array[ni.number];
12113 dynamic_array[ni.number - 1] = 543;
12114
12115 // work around unused variable warnings
12116 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12117 || dynamic_array[ni.number - 1] != 543);
12118
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12124 do
12125 CC="$ac_save_CC $ac_arg"
12126 if ac_fn_c_try_compile "$LINENO"; then :
12127 ac_cv_prog_cc_c99=$ac_arg
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext
12130 test "x$ac_cv_prog_cc_c99" != "xno" && break
12131 done
12132 rm -f conftest.$ac_ext
12133 CC=$ac_save_CC
12134
12135 fi
12136 # AC_CACHE_VAL
12137 case "x$ac_cv_prog_cc_c99" in
12138 x)
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12140 $as_echo "none needed" >&6; } ;;
12141 xno)
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12143 $as_echo "unsupported" >&6; } ;;
12144 *)
12145 CC="$CC $ac_cv_prog_cc_c99"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12148 esac
12149 if test "x$ac_cv_prog_cc_c99" != xno; then :
12150
12151 fi
12152
12153
12154
12155
12156
12157
12158 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12159 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12160 CLANGCC="yes"
12161 else
12162 CLANGCC="no"
12163 fi
12164
12165 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12166 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12167 INTELCC="yes"
12168 else
12169 INTELCC="no"
12170 fi
12171
12172 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12173 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12174 SUNCC="yes"
12175 else
12176 SUNCC="no"
12177 fi
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12188 if test -n "$ac_tool_prefix"; then
12189 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12190 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 case $PKG_CONFIG in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12199 ;;
12200 *)
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 ;;
12217 esac
12218 fi
12219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12220 if test -n "$PKG_CONFIG"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12222 $as_echo "$PKG_CONFIG" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227
12228
12229 fi
12230 if test -z "$ac_cv_path_PKG_CONFIG"; then
12231 ac_pt_PKG_CONFIG=$PKG_CONFIG
12232 # Extract the first word of "pkg-config", so it can be a program name with args.
12233 set dummy pkg-config; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 case $ac_pt_PKG_CONFIG in
12240 [\\/]* | ?:[\\/]*)
12241 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12242 ;;
12243 *)
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255 done
12256 done
12257 IFS=$as_save_IFS
12258
12259 ;;
12260 esac
12261 fi
12262 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12263 if test -n "$ac_pt_PKG_CONFIG"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12265 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271 if test "x$ac_pt_PKG_CONFIG" = x; then
12272 PKG_CONFIG=""
12273 else
12274 case $cross_compiling:$ac_tool_warned in
12275 yes:)
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12278 ac_tool_warned=yes ;;
12279 esac
12280 PKG_CONFIG=$ac_pt_PKG_CONFIG
12281 fi
12282 else
12283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12284 fi
12285
12286 fi
12287 if test -n "$PKG_CONFIG"; then
12288 _pkg_min_version=0.9.0
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12290 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12291 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 PKG_CONFIG=""
12298 fi
12299 fi
12300
12301
12302
12303
12304
12305 # Check whether --enable-selective-werror was given.
12306 if test "${enable_selective_werror+set}" = set; then :
12307 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12308 else
12309 SELECTIVE_WERROR=yes
12310 fi
12311
12312
12313
12314
12315
12316 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12317 if test "x$SUNCC" = "xyes"; then
12318 BASE_CFLAGS="-v"
12319 else
12320 BASE_CFLAGS=""
12321 fi
12322
12323 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337 xorg_testset_save_CFLAGS="$CFLAGS"
12338
12339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 int i;
12349 _ACEOF
12350 if ac_fn_c_try_compile "$LINENO"; then :
12351 xorg_cv_cc_flag_unknown_warning_option=yes
12352 else
12353 xorg_cv_cc_flag_unknown_warning_option=no
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 fi
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12360 CFLAGS="$xorg_testset_save_CFLAGS"
12361 fi
12362
12363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12366 fi
12367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 int i;
12376 _ACEOF
12377 if ac_fn_c_try_compile "$LINENO"; then :
12378 xorg_cv_cc_flag_unused_command_line_argument=yes
12379 else
12380 xorg_cv_cc_flag_unused_command_line_argument=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12387 CFLAGS="$xorg_testset_save_CFLAGS"
12388 fi
12389
12390 found="no"
12391
12392 if test $found = "no" ; then
12393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12395 fi
12396
12397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12399 fi
12400
12401 CFLAGS="$CFLAGS -Wall"
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12404 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12405 cacheid=xorg_cv_cc_flag__Wall
12406 if eval \${$cacheid+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411 int i;
12412 int
12413 main ()
12414 {
12415
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 eval $cacheid=yes
12422 else
12423 eval $cacheid=no
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 fi
12428
12429
12430 CFLAGS="$xorg_testset_save_CFLAGS"
12431
12432 eval supported=\$$cacheid
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12434 $as_echo "$supported" >&6; }
12435 if test "$supported" = "yes" ; then
12436 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12437 found="yes"
12438 fi
12439 fi
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455 xorg_testset_save_CFLAGS="$CFLAGS"
12456
12457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 int i;
12467 _ACEOF
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469 xorg_cv_cc_flag_unknown_warning_option=yes
12470 else
12471 xorg_cv_cc_flag_unknown_warning_option=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12478 CFLAGS="$xorg_testset_save_CFLAGS"
12479 fi
12480
12481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12484 fi
12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493 int i;
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496 xorg_cv_cc_flag_unused_command_line_argument=yes
12497 else
12498 xorg_cv_cc_flag_unused_command_line_argument=no
12499 fi
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12505 CFLAGS="$xorg_testset_save_CFLAGS"
12506 fi
12507
12508 found="no"
12509
12510 if test $found = "no" ; then
12511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513 fi
12514
12515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12517 fi
12518
12519 CFLAGS="$CFLAGS -Wpointer-arith"
12520
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12522 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12523 cacheid=xorg_cv_cc_flag__Wpointer_arith
12524 if eval \${$cacheid+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12529 int i;
12530 int
12531 main ()
12532 {
12533
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 eval $cacheid=yes
12540 else
12541 eval $cacheid=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 fi
12546
12547
12548 CFLAGS="$xorg_testset_save_CFLAGS"
12549
12550 eval supported=\$$cacheid
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12552 $as_echo "$supported" >&6; }
12553 if test "$supported" = "yes" ; then
12554 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12555 found="yes"
12556 fi
12557 fi
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573 xorg_testset_save_CFLAGS="$CFLAGS"
12574
12575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 int i;
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 xorg_cv_cc_flag_unknown_warning_option=yes
12588 else
12589 xorg_cv_cc_flag_unknown_warning_option=no
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12596 CFLAGS="$xorg_testset_save_CFLAGS"
12597 fi
12598
12599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12602 fi
12603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 int i;
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614 xorg_cv_cc_flag_unused_command_line_argument=yes
12615 else
12616 xorg_cv_cc_flag_unused_command_line_argument=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12623 CFLAGS="$xorg_testset_save_CFLAGS"
12624 fi
12625
12626 found="no"
12627
12628 if test $found = "no" ; then
12629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631 fi
12632
12633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12635 fi
12636
12637 CFLAGS="$CFLAGS -Wmissing-declarations"
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12640 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12641 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12642 if eval \${$cacheid+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 int i;
12648 int
12649 main ()
12650 {
12651
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 eval $cacheid=yes
12658 else
12659 eval $cacheid=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12663 fi
12664
12665
12666 CFLAGS="$xorg_testset_save_CFLAGS"
12667
12668 eval supported=\$$cacheid
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12670 $as_echo "$supported" >&6; }
12671 if test "$supported" = "yes" ; then
12672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12673 found="yes"
12674 fi
12675 fi
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691 xorg_testset_save_CFLAGS="$CFLAGS"
12692
12693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 int i;
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 xorg_cv_cc_flag_unknown_warning_option=yes
12706 else
12707 xorg_cv_cc_flag_unknown_warning_option=no
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12714 CFLAGS="$xorg_testset_save_CFLAGS"
12715 fi
12716
12717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12720 fi
12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 int i;
12730 _ACEOF
12731 if ac_fn_c_try_compile "$LINENO"; then :
12732 xorg_cv_cc_flag_unused_command_line_argument=yes
12733 else
12734 xorg_cv_cc_flag_unused_command_line_argument=no
12735 fi
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12741 CFLAGS="$xorg_testset_save_CFLAGS"
12742 fi
12743
12744 found="no"
12745
12746 if test $found = "no" ; then
12747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749 fi
12750
12751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12753 fi
12754
12755 CFLAGS="$CFLAGS -Wformat=2"
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12758 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12759 cacheid=xorg_cv_cc_flag__Wformat_2
12760 if eval \${$cacheid+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765 int i;
12766 int
12767 main ()
12768 {
12769
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 eval $cacheid=yes
12776 else
12777 eval $cacheid=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 fi
12782
12783
12784 CFLAGS="$xorg_testset_save_CFLAGS"
12785
12786 eval supported=\$$cacheid
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12788 $as_echo "$supported" >&6; }
12789 if test "$supported" = "yes" ; then
12790 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12791 found="yes"
12792 fi
12793 fi
12794
12795 if test $found = "no" ; then
12796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12798 fi
12799
12800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12802 fi
12803
12804 CFLAGS="$CFLAGS -Wformat"
12805
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12807 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12808 cacheid=xorg_cv_cc_flag__Wformat
12809 if eval \${$cacheid+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 int i;
12815 int
12816 main ()
12817 {
12818
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_link "$LINENO"; then :
12824 eval $cacheid=yes
12825 else
12826 eval $cacheid=no
12827 fi
12828 rm -f core conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12830 fi
12831
12832
12833 CFLAGS="$xorg_testset_save_CFLAGS"
12834
12835 eval supported=\$$cacheid
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12837 $as_echo "$supported" >&6; }
12838 if test "$supported" = "yes" ; then
12839 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12840 found="yes"
12841 fi
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860 xorg_testset_save_CFLAGS="$CFLAGS"
12861
12862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 int i;
12872 _ACEOF
12873 if ac_fn_c_try_compile "$LINENO"; then :
12874 xorg_cv_cc_flag_unknown_warning_option=yes
12875 else
12876 xorg_cv_cc_flag_unknown_warning_option=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12883 CFLAGS="$xorg_testset_save_CFLAGS"
12884 fi
12885
12886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12889 fi
12890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 int i;
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 xorg_cv_cc_flag_unused_command_line_argument=yes
12902 else
12903 xorg_cv_cc_flag_unused_command_line_argument=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12910 CFLAGS="$xorg_testset_save_CFLAGS"
12911 fi
12912
12913 found="no"
12914
12915 if test $found = "no" ; then
12916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12918 fi
12919
12920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12922 fi
12923
12924 CFLAGS="$CFLAGS -Wstrict-prototypes"
12925
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12927 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12928 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12929 if eval \${$cacheid+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12934 int i;
12935 int
12936 main ()
12937 {
12938
12939 ;
12940 return 0;
12941 }
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 eval $cacheid=yes
12945 else
12946 eval $cacheid=no
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 fi
12951
12952
12953 CFLAGS="$xorg_testset_save_CFLAGS"
12954
12955 eval supported=\$$cacheid
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12957 $as_echo "$supported" >&6; }
12958 if test "$supported" = "yes" ; then
12959 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12960 found="yes"
12961 fi
12962 fi
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 xorg_testset_save_CFLAGS="$CFLAGS"
12979
12980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 int i;
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 xorg_cv_cc_flag_unknown_warning_option=yes
12993 else
12994 xorg_cv_cc_flag_unknown_warning_option=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13001 CFLAGS="$xorg_testset_save_CFLAGS"
13002 fi
13003
13004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13007 fi
13008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 int i;
13017 _ACEOF
13018 if ac_fn_c_try_compile "$LINENO"; then :
13019 xorg_cv_cc_flag_unused_command_line_argument=yes
13020 else
13021 xorg_cv_cc_flag_unused_command_line_argument=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13029 fi
13030
13031 found="no"
13032
13033 if test $found = "no" ; then
13034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036 fi
13037
13038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13040 fi
13041
13042 CFLAGS="$CFLAGS -Wmissing-prototypes"
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13045 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13046 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13047 if eval \${$cacheid+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 int i;
13053 int
13054 main ()
13055 {
13056
13057 ;
13058 return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_link "$LINENO"; then :
13062 eval $cacheid=yes
13063 else
13064 eval $cacheid=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 fi
13069
13070
13071 CFLAGS="$xorg_testset_save_CFLAGS"
13072
13073 eval supported=\$$cacheid
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13075 $as_echo "$supported" >&6; }
13076 if test "$supported" = "yes" ; then
13077 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13078 found="yes"
13079 fi
13080 fi
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096 xorg_testset_save_CFLAGS="$CFLAGS"
13097
13098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107 int i;
13108 _ACEOF
13109 if ac_fn_c_try_compile "$LINENO"; then :
13110 xorg_cv_cc_flag_unknown_warning_option=yes
13111 else
13112 xorg_cv_cc_flag_unknown_warning_option=no
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13119 CFLAGS="$xorg_testset_save_CFLAGS"
13120 fi
13121
13122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13125 fi
13126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 int i;
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137 xorg_cv_cc_flag_unused_command_line_argument=yes
13138 else
13139 xorg_cv_cc_flag_unused_command_line_argument=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13146 CFLAGS="$xorg_testset_save_CFLAGS"
13147 fi
13148
13149 found="no"
13150
13151 if test $found = "no" ; then
13152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154 fi
13155
13156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13158 fi
13159
13160 CFLAGS="$CFLAGS -Wnested-externs"
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13163 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13164 cacheid=xorg_cv_cc_flag__Wnested_externs
13165 if eval \${$cacheid+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 int i;
13171 int
13172 main ()
13173 {
13174
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 eval $cacheid=yes
13181 else
13182 eval $cacheid=no
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 fi
13187
13188
13189 CFLAGS="$xorg_testset_save_CFLAGS"
13190
13191 eval supported=\$$cacheid
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13193 $as_echo "$supported" >&6; }
13194 if test "$supported" = "yes" ; then
13195 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13196 found="yes"
13197 fi
13198 fi
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214 xorg_testset_save_CFLAGS="$CFLAGS"
13215
13216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225 int i;
13226 _ACEOF
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228 xorg_cv_cc_flag_unknown_warning_option=yes
13229 else
13230 xorg_cv_cc_flag_unknown_warning_option=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13237 CFLAGS="$xorg_testset_save_CFLAGS"
13238 fi
13239
13240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243 fi
13244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 int i;
13253 _ACEOF
13254 if ac_fn_c_try_compile "$LINENO"; then :
13255 xorg_cv_cc_flag_unused_command_line_argument=yes
13256 else
13257 xorg_cv_cc_flag_unused_command_line_argument=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13264 CFLAGS="$xorg_testset_save_CFLAGS"
13265 fi
13266
13267 found="no"
13268
13269 if test $found = "no" ; then
13270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272 fi
13273
13274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13276 fi
13277
13278 CFLAGS="$CFLAGS -Wbad-function-cast"
13279
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13281 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13282 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13283 if eval \${$cacheid+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 int i;
13289 int
13290 main ()
13291 {
13292
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 eval $cacheid=yes
13299 else
13300 eval $cacheid=no
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 fi
13305
13306
13307 CFLAGS="$xorg_testset_save_CFLAGS"
13308
13309 eval supported=\$$cacheid
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13311 $as_echo "$supported" >&6; }
13312 if test "$supported" = "yes" ; then
13313 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13314 found="yes"
13315 fi
13316 fi
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332 xorg_testset_save_CFLAGS="$CFLAGS"
13333
13334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 int i;
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346 xorg_cv_cc_flag_unknown_warning_option=yes
13347 else
13348 xorg_cv_cc_flag_unknown_warning_option=no
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13355 CFLAGS="$xorg_testset_save_CFLAGS"
13356 fi
13357
13358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13361 fi
13362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 int i;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 xorg_cv_cc_flag_unused_command_line_argument=yes
13374 else
13375 xorg_cv_cc_flag_unused_command_line_argument=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13382 CFLAGS="$xorg_testset_save_CFLAGS"
13383 fi
13384
13385 found="no"
13386
13387 if test $found = "no" ; then
13388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390 fi
13391
13392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13394 fi
13395
13396 CFLAGS="$CFLAGS -Wold-style-definition"
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13399 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13400 cacheid=xorg_cv_cc_flag__Wold_style_definition
13401 if eval \${$cacheid+:} false; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 int i;
13407 int
13408 main ()
13409 {
13410
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 eval $cacheid=yes
13417 else
13418 eval $cacheid=no
13419 fi
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 fi
13423
13424
13425 CFLAGS="$xorg_testset_save_CFLAGS"
13426
13427 eval supported=\$$cacheid
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13429 $as_echo "$supported" >&6; }
13430 if test "$supported" = "yes" ; then
13431 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13432 found="yes"
13433 fi
13434 fi
13435
13436 if test $found = "no" ; then
13437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439 fi
13440
13441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13443 fi
13444
13445 CFLAGS="$CFLAGS -fd"
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13448 $as_echo_n "checking if $CC supports -fd... " >&6; }
13449 cacheid=xorg_cv_cc_flag__fd
13450 if eval \${$cacheid+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 int i;
13456 int
13457 main ()
13458 {
13459
13460 ;
13461 return 0;
13462 }
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 eval $cacheid=yes
13466 else
13467 eval $cacheid=no
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 fi
13472
13473
13474 CFLAGS="$xorg_testset_save_CFLAGS"
13475
13476 eval supported=\$$cacheid
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13478 $as_echo "$supported" >&6; }
13479 if test "$supported" = "yes" ; then
13480 BASE_CFLAGS="$BASE_CFLAGS -fd"
13481 found="yes"
13482 fi
13483 fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499 xorg_testset_save_CFLAGS="$CFLAGS"
13500
13501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 int i;
13511 _ACEOF
13512 if ac_fn_c_try_compile "$LINENO"; then :
13513 xorg_cv_cc_flag_unknown_warning_option=yes
13514 else
13515 xorg_cv_cc_flag_unknown_warning_option=no
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13522 CFLAGS="$xorg_testset_save_CFLAGS"
13523 fi
13524
13525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13528 fi
13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 int i;
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540 xorg_cv_cc_flag_unused_command_line_argument=yes
13541 else
13542 xorg_cv_cc_flag_unused_command_line_argument=no
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13549 CFLAGS="$xorg_testset_save_CFLAGS"
13550 fi
13551
13552 found="no"
13553
13554 if test $found = "no" ; then
13555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 fi
13558
13559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13561 fi
13562
13563 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13566 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13567 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13568 if eval \${$cacheid+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 int i;
13574 int
13575 main ()
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"; then :
13583 eval $cacheid=yes
13584 else
13585 eval $cacheid=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13589 fi
13590
13591
13592 CFLAGS="$xorg_testset_save_CFLAGS"
13593
13594 eval supported=\$$cacheid
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13596 $as_echo "$supported" >&6; }
13597 if test "$supported" = "yes" ; then
13598 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13599 found="yes"
13600 fi
13601 fi
13602
13603
13604
13605
13606
13607 # This chunk adds additional warnings that could catch undesired effects.
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621 xorg_testset_save_CFLAGS="$CFLAGS"
13622
13623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632 int i;
13633 _ACEOF
13634 if ac_fn_c_try_compile "$LINENO"; then :
13635 xorg_cv_cc_flag_unknown_warning_option=yes
13636 else
13637 xorg_cv_cc_flag_unknown_warning_option=no
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13644 CFLAGS="$xorg_testset_save_CFLAGS"
13645 fi
13646
13647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650 fi
13651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int i;
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"; then :
13662 xorg_cv_cc_flag_unused_command_line_argument=yes
13663 else
13664 xorg_cv_cc_flag_unused_command_line_argument=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13671 CFLAGS="$xorg_testset_save_CFLAGS"
13672 fi
13673
13674 found="no"
13675
13676 if test $found = "no" ; then
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679 fi
13680
13681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13683 fi
13684
13685 CFLAGS="$CFLAGS -Wunused"
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13688 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13689 cacheid=xorg_cv_cc_flag__Wunused
13690 if eval \${$cacheid+:} false; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 int i;
13696 int
13697 main ()
13698 {
13699
13700 ;
13701 return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_link "$LINENO"; then :
13705 eval $cacheid=yes
13706 else
13707 eval $cacheid=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 fi
13712
13713
13714 CFLAGS="$xorg_testset_save_CFLAGS"
13715
13716 eval supported=\$$cacheid
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13718 $as_echo "$supported" >&6; }
13719 if test "$supported" = "yes" ; then
13720 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13721 found="yes"
13722 fi
13723 fi
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739 xorg_testset_save_CFLAGS="$CFLAGS"
13740
13741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 int i;
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"; then :
13753 xorg_cv_cc_flag_unknown_warning_option=yes
13754 else
13755 xorg_cv_cc_flag_unknown_warning_option=no
13756 fi
13757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13762 CFLAGS="$xorg_testset_save_CFLAGS"
13763 fi
13764
13765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13768 fi
13769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 int i;
13778 _ACEOF
13779 if ac_fn_c_try_compile "$LINENO"; then :
13780 xorg_cv_cc_flag_unused_command_line_argument=yes
13781 else
13782 xorg_cv_cc_flag_unused_command_line_argument=no
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13789 CFLAGS="$xorg_testset_save_CFLAGS"
13790 fi
13791
13792 found="no"
13793
13794 if test $found = "no" ; then
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797 fi
13798
13799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13801 fi
13802
13803 CFLAGS="$CFLAGS -Wuninitialized"
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13806 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13807 cacheid=xorg_cv_cc_flag__Wuninitialized
13808 if eval \${$cacheid+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 int i;
13814 int
13815 main ()
13816 {
13817
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 eval $cacheid=yes
13824 else
13825 eval $cacheid=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 fi
13830
13831
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13833
13834 eval supported=\$$cacheid
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13836 $as_echo "$supported" >&6; }
13837 if test "$supported" = "yes" ; then
13838 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13839 found="yes"
13840 fi
13841 fi
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 xorg_testset_save_CFLAGS="$CFLAGS"
13858
13859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 int i;
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 xorg_cv_cc_flag_unknown_warning_option=yes
13872 else
13873 xorg_cv_cc_flag_unknown_warning_option=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13880 CFLAGS="$xorg_testset_save_CFLAGS"
13881 fi
13882
13883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886 fi
13887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 int i;
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 xorg_cv_cc_flag_unused_command_line_argument=yes
13899 else
13900 xorg_cv_cc_flag_unused_command_line_argument=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13907 CFLAGS="$xorg_testset_save_CFLAGS"
13908 fi
13909
13910 found="no"
13911
13912 if test $found = "no" ; then
13913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915 fi
13916
13917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13919 fi
13920
13921 CFLAGS="$CFLAGS -Wshadow"
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13924 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13925 cacheid=xorg_cv_cc_flag__Wshadow
13926 if eval \${$cacheid+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 int
13933 main ()
13934 {
13935
13936 ;
13937 return 0;
13938 }
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 eval $cacheid=yes
13942 else
13943 eval $cacheid=no
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 fi
13948
13949
13950 CFLAGS="$xorg_testset_save_CFLAGS"
13951
13952 eval supported=\$$cacheid
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13954 $as_echo "$supported" >&6; }
13955 if test "$supported" = "yes" ; then
13956 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13957 found="yes"
13958 fi
13959 fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975 xorg_testset_save_CFLAGS="$CFLAGS"
13976
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 int i;
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989 xorg_cv_cc_flag_unknown_warning_option=yes
13990 else
13991 xorg_cv_cc_flag_unknown_warning_option=no
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13998 CFLAGS="$xorg_testset_save_CFLAGS"
13999 fi
14000
14001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14004 fi
14005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013 int i;
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016 xorg_cv_cc_flag_unused_command_line_argument=yes
14017 else
14018 xorg_cv_cc_flag_unused_command_line_argument=no
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14025 CFLAGS="$xorg_testset_save_CFLAGS"
14026 fi
14027
14028 found="no"
14029
14030 if test $found = "no" ; then
14031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033 fi
14034
14035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14037 fi
14038
14039 CFLAGS="$CFLAGS -Wmissing-noreturn"
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14042 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14043 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14044 if eval \${$cacheid+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049 int i;
14050 int
14051 main ()
14052 {
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_link "$LINENO"; then :
14059 eval $cacheid=yes
14060 else
14061 eval $cacheid=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 fi
14066
14067
14068 CFLAGS="$xorg_testset_save_CFLAGS"
14069
14070 eval supported=\$$cacheid
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14072 $as_echo "$supported" >&6; }
14073 if test "$supported" = "yes" ; then
14074 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14075 found="yes"
14076 fi
14077 fi
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 xorg_testset_save_CFLAGS="$CFLAGS"
14094
14095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 int i;
14105 _ACEOF
14106 if ac_fn_c_try_compile "$LINENO"; then :
14107 xorg_cv_cc_flag_unknown_warning_option=yes
14108 else
14109 xorg_cv_cc_flag_unknown_warning_option=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14116 CFLAGS="$xorg_testset_save_CFLAGS"
14117 fi
14118
14119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14122 fi
14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14131 int i;
14132 _ACEOF
14133 if ac_fn_c_try_compile "$LINENO"; then :
14134 xorg_cv_cc_flag_unused_command_line_argument=yes
14135 else
14136 xorg_cv_cc_flag_unused_command_line_argument=no
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14139 fi
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14143 CFLAGS="$xorg_testset_save_CFLAGS"
14144 fi
14145
14146 found="no"
14147
14148 if test $found = "no" ; then
14149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151 fi
14152
14153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14155 fi
14156
14157 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14158
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14160 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14161 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14162 if eval \${$cacheid+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 int i;
14168 int
14169 main ()
14170 {
14171
14172 ;
14173 return 0;
14174 }
14175 _ACEOF
14176 if ac_fn_c_try_link "$LINENO"; then :
14177 eval $cacheid=yes
14178 else
14179 eval $cacheid=no
14180 fi
14181 rm -f core conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14183 fi
14184
14185
14186 CFLAGS="$xorg_testset_save_CFLAGS"
14187
14188 eval supported=\$$cacheid
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14190 $as_echo "$supported" >&6; }
14191 if test "$supported" = "yes" ; then
14192 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14193 found="yes"
14194 fi
14195 fi
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211 xorg_testset_save_CFLAGS="$CFLAGS"
14212
14213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222 int i;
14223 _ACEOF
14224 if ac_fn_c_try_compile "$LINENO"; then :
14225 xorg_cv_cc_flag_unknown_warning_option=yes
14226 else
14227 xorg_cv_cc_flag_unknown_warning_option=no
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14234 CFLAGS="$xorg_testset_save_CFLAGS"
14235 fi
14236
14237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240 fi
14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14249 int i;
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 xorg_cv_cc_flag_unused_command_line_argument=yes
14253 else
14254 xorg_cv_cc_flag_unused_command_line_argument=no
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14261 CFLAGS="$xorg_testset_save_CFLAGS"
14262 fi
14263
14264 found="no"
14265
14266 if test $found = "no" ; then
14267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269 fi
14270
14271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14273 fi
14274
14275 CFLAGS="$CFLAGS -Wredundant-decls"
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14278 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14279 cacheid=xorg_cv_cc_flag__Wredundant_decls
14280 if eval \${$cacheid+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 int i;
14286 int
14287 main ()
14288 {
14289
14290 ;
14291 return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 eval $cacheid=yes
14296 else
14297 eval $cacheid=no
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 fi
14302
14303
14304 CFLAGS="$xorg_testset_save_CFLAGS"
14305
14306 eval supported=\$$cacheid
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14308 $as_echo "$supported" >&6; }
14309 if test "$supported" = "yes" ; then
14310 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14311 found="yes"
14312 fi
14313 fi
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329 xorg_testset_save_CFLAGS="$CFLAGS"
14330
14331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 int i;
14341 _ACEOF
14342 if ac_fn_c_try_compile "$LINENO"; then :
14343 xorg_cv_cc_flag_unknown_warning_option=yes
14344 else
14345 xorg_cv_cc_flag_unknown_warning_option=no
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14352 CFLAGS="$xorg_testset_save_CFLAGS"
14353 fi
14354
14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14358 fi
14359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 int i;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 xorg_cv_cc_flag_unused_command_line_argument=yes
14371 else
14372 xorg_cv_cc_flag_unused_command_line_argument=no
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14379 CFLAGS="$xorg_testset_save_CFLAGS"
14380 fi
14381
14382 found="no"
14383
14384 if test $found = "no" ; then
14385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387 fi
14388
14389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14391 fi
14392
14393 CFLAGS="$CFLAGS -Wlogical-op"
14394
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14396 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14397 cacheid=xorg_cv_cc_flag__Wlogical_op
14398 if eval \${$cacheid+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 int i;
14404 int
14405 main ()
14406 {
14407
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_c_try_link "$LINENO"; then :
14413 eval $cacheid=yes
14414 else
14415 eval $cacheid=no
14416 fi
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 fi
14420
14421
14422 CFLAGS="$xorg_testset_save_CFLAGS"
14423
14424 eval supported=\$$cacheid
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14426 $as_echo "$supported" >&6; }
14427 if test "$supported" = "yes" ; then
14428 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14429 found="yes"
14430 fi
14431 fi
14432
14433
14434
14435 # These are currently disabled because they are noisy. They will be enabled
14436 # in the future once the codebase is sufficiently modernized to silence
14437 # them. For now, I don't want them to drown out the other warnings.
14438 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14439 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14440 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14441
14442 # Turn some warnings into errors, so we don't accidently get successful builds
14443 # when there are problems that should be fixed.
14444
14445 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 xorg_testset_save_CFLAGS="$CFLAGS"
14460
14461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 int i;
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 xorg_cv_cc_flag_unknown_warning_option=yes
14474 else
14475 xorg_cv_cc_flag_unknown_warning_option=no
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14482 CFLAGS="$xorg_testset_save_CFLAGS"
14483 fi
14484
14485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14488 fi
14489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 int i;
14498 _ACEOF
14499 if ac_fn_c_try_compile "$LINENO"; then :
14500 xorg_cv_cc_flag_unused_command_line_argument=yes
14501 else
14502 xorg_cv_cc_flag_unused_command_line_argument=no
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14509 CFLAGS="$xorg_testset_save_CFLAGS"
14510 fi
14511
14512 found="no"
14513
14514 if test $found = "no" ; then
14515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14517 fi
14518
14519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14521 fi
14522
14523 CFLAGS="$CFLAGS -Werror=implicit"
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14526 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14527 cacheid=xorg_cv_cc_flag__Werror_implicit
14528 if eval \${$cacheid+:} false; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 int i;
14534 int
14535 main ()
14536 {
14537
14538 ;
14539 return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"; then :
14543 eval $cacheid=yes
14544 else
14545 eval $cacheid=no
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14549 fi
14550
14551
14552 CFLAGS="$xorg_testset_save_CFLAGS"
14553
14554 eval supported=\$$cacheid
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14556 $as_echo "$supported" >&6; }
14557 if test "$supported" = "yes" ; then
14558 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14559 found="yes"
14560 fi
14561 fi
14562
14563 if test $found = "no" ; then
14564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14566 fi
14567
14568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14570 fi
14571
14572 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14575 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14576 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14577 if eval \${$cacheid+:} false; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 int i;
14583 int
14584 main ()
14585 {
14586
14587 ;
14588 return 0;
14589 }
14590 _ACEOF
14591 if ac_fn_c_try_link "$LINENO"; then :
14592 eval $cacheid=yes
14593 else
14594 eval $cacheid=no
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 fi
14599
14600
14601 CFLAGS="$xorg_testset_save_CFLAGS"
14602
14603 eval supported=\$$cacheid
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14605 $as_echo "$supported" >&6; }
14606 if test "$supported" = "yes" ; then
14607 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14608 found="yes"
14609 fi
14610 fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626 xorg_testset_save_CFLAGS="$CFLAGS"
14627
14628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 int i;
14638 _ACEOF
14639 if ac_fn_c_try_compile "$LINENO"; then :
14640 xorg_cv_cc_flag_unknown_warning_option=yes
14641 else
14642 xorg_cv_cc_flag_unknown_warning_option=no
14643 fi
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 fi
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14649 CFLAGS="$xorg_testset_save_CFLAGS"
14650 fi
14651
14652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14655 fi
14656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 int i;
14665 _ACEOF
14666 if ac_fn_c_try_compile "$LINENO"; then :
14667 xorg_cv_cc_flag_unused_command_line_argument=yes
14668 else
14669 xorg_cv_cc_flag_unused_command_line_argument=no
14670 fi
14671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14676 CFLAGS="$xorg_testset_save_CFLAGS"
14677 fi
14678
14679 found="no"
14680
14681 if test $found = "no" ; then
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684 fi
14685
14686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14688 fi
14689
14690 CFLAGS="$CFLAGS -Werror=nonnull"
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14693 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14694 cacheid=xorg_cv_cc_flag__Werror_nonnull
14695 if eval \${$cacheid+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700 int i;
14701 int
14702 main ()
14703 {
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"; then :
14710 eval $cacheid=yes
14711 else
14712 eval $cacheid=no
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14716 fi
14717
14718
14719 CFLAGS="$xorg_testset_save_CFLAGS"
14720
14721 eval supported=\$$cacheid
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14723 $as_echo "$supported" >&6; }
14724 if test "$supported" = "yes" ; then
14725 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14726 found="yes"
14727 fi
14728 fi
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744 xorg_testset_save_CFLAGS="$CFLAGS"
14745
14746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 int i;
14756 _ACEOF
14757 if ac_fn_c_try_compile "$LINENO"; then :
14758 xorg_cv_cc_flag_unknown_warning_option=yes
14759 else
14760 xorg_cv_cc_flag_unknown_warning_option=no
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14767 CFLAGS="$xorg_testset_save_CFLAGS"
14768 fi
14769
14770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14773 fi
14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 int i;
14783 _ACEOF
14784 if ac_fn_c_try_compile "$LINENO"; then :
14785 xorg_cv_cc_flag_unused_command_line_argument=yes
14786 else
14787 xorg_cv_cc_flag_unused_command_line_argument=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790 fi
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14794 CFLAGS="$xorg_testset_save_CFLAGS"
14795 fi
14796
14797 found="no"
14798
14799 if test $found = "no" ; then
14800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802 fi
14803
14804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14806 fi
14807
14808 CFLAGS="$CFLAGS -Werror=init-self"
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14811 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14812 cacheid=xorg_cv_cc_flag__Werror_init_self
14813 if eval \${$cacheid+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 int i;
14819 int
14820 main ()
14821 {
14822
14823 ;
14824 return 0;
14825 }
14826 _ACEOF
14827 if ac_fn_c_try_link "$LINENO"; then :
14828 eval $cacheid=yes
14829 else
14830 eval $cacheid=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14834 fi
14835
14836
14837 CFLAGS="$xorg_testset_save_CFLAGS"
14838
14839 eval supported=\$$cacheid
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14841 $as_echo "$supported" >&6; }
14842 if test "$supported" = "yes" ; then
14843 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14844 found="yes"
14845 fi
14846 fi
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 xorg_testset_save_CFLAGS="$CFLAGS"
14863
14864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 int i;
14874 _ACEOF
14875 if ac_fn_c_try_compile "$LINENO"; then :
14876 xorg_cv_cc_flag_unknown_warning_option=yes
14877 else
14878 xorg_cv_cc_flag_unknown_warning_option=no
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14883 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14885 CFLAGS="$xorg_testset_save_CFLAGS"
14886 fi
14887
14888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14891 fi
14892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14894 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 int i;
14901 _ACEOF
14902 if ac_fn_c_try_compile "$LINENO"; then :
14903 xorg_cv_cc_flag_unused_command_line_argument=yes
14904 else
14905 xorg_cv_cc_flag_unused_command_line_argument=no
14906 fi
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14910 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14912 CFLAGS="$xorg_testset_save_CFLAGS"
14913 fi
14914
14915 found="no"
14916
14917 if test $found = "no" ; then
14918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920 fi
14921
14922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14924 fi
14925
14926 CFLAGS="$CFLAGS -Werror=main"
14927
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14929 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14930 cacheid=xorg_cv_cc_flag__Werror_main
14931 if eval \${$cacheid+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 int i;
14937 int
14938 main ()
14939 {
14940
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 eval $cacheid=yes
14947 else
14948 eval $cacheid=no
14949 fi
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 fi
14953
14954
14955 CFLAGS="$xorg_testset_save_CFLAGS"
14956
14957 eval supported=\$$cacheid
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14959 $as_echo "$supported" >&6; }
14960 if test "$supported" = "yes" ; then
14961 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14962 found="yes"
14963 fi
14964 fi
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 xorg_testset_save_CFLAGS="$CFLAGS"
14981
14982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14987 $as_echo_n "(cached) " >&6
14988 else
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14991 int i;
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994 xorg_cv_cc_flag_unknown_warning_option=yes
14995 else
14996 xorg_cv_cc_flag_unknown_warning_option=no
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15003 CFLAGS="$xorg_testset_save_CFLAGS"
15004 fi
15005
15006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15009 fi
15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018 int i;
15019 _ACEOF
15020 if ac_fn_c_try_compile "$LINENO"; then :
15021 xorg_cv_cc_flag_unused_command_line_argument=yes
15022 else
15023 xorg_cv_cc_flag_unused_command_line_argument=no
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15030 CFLAGS="$xorg_testset_save_CFLAGS"
15031 fi
15032
15033 found="no"
15034
15035 if test $found = "no" ; then
15036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038 fi
15039
15040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15042 fi
15043
15044 CFLAGS="$CFLAGS -Werror=missing-braces"
15045
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15047 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15048 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15049 if eval \${$cacheid+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 int i;
15055 int
15056 main ()
15057 {
15058
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 eval $cacheid=yes
15065 else
15066 eval $cacheid=no
15067 fi
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 fi
15071
15072
15073 CFLAGS="$xorg_testset_save_CFLAGS"
15074
15075 eval supported=\$$cacheid
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15077 $as_echo "$supported" >&6; }
15078 if test "$supported" = "yes" ; then
15079 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15080 found="yes"
15081 fi
15082 fi
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098 xorg_testset_save_CFLAGS="$CFLAGS"
15099
15100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 int i;
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"; then :
15112 xorg_cv_cc_flag_unknown_warning_option=yes
15113 else
15114 xorg_cv_cc_flag_unknown_warning_option=no
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 fi
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15121 CFLAGS="$xorg_testset_save_CFLAGS"
15122 fi
15123
15124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15127 fi
15128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 int i;
15137 _ACEOF
15138 if ac_fn_c_try_compile "$LINENO"; then :
15139 xorg_cv_cc_flag_unused_command_line_argument=yes
15140 else
15141 xorg_cv_cc_flag_unused_command_line_argument=no
15142 fi
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15148 CFLAGS="$xorg_testset_save_CFLAGS"
15149 fi
15150
15151 found="no"
15152
15153 if test $found = "no" ; then
15154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156 fi
15157
15158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15160 fi
15161
15162 CFLAGS="$CFLAGS -Werror=sequence-point"
15163
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15165 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15166 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15167 if eval \${$cacheid+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15172 int i;
15173 int
15174 main ()
15175 {
15176
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 eval $cacheid=yes
15183 else
15184 eval $cacheid=no
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 fi
15189
15190
15191 CFLAGS="$xorg_testset_save_CFLAGS"
15192
15193 eval supported=\$$cacheid
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15195 $as_echo "$supported" >&6; }
15196 if test "$supported" = "yes" ; then
15197 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15198 found="yes"
15199 fi
15200 fi
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216 xorg_testset_save_CFLAGS="$CFLAGS"
15217
15218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 int i;
15228 _ACEOF
15229 if ac_fn_c_try_compile "$LINENO"; then :
15230 xorg_cv_cc_flag_unknown_warning_option=yes
15231 else
15232 xorg_cv_cc_flag_unknown_warning_option=no
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15239 CFLAGS="$xorg_testset_save_CFLAGS"
15240 fi
15241
15242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15245 fi
15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 int i;
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 xorg_cv_cc_flag_unused_command_line_argument=yes
15258 else
15259 xorg_cv_cc_flag_unused_command_line_argument=no
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15266 CFLAGS="$xorg_testset_save_CFLAGS"
15267 fi
15268
15269 found="no"
15270
15271 if test $found = "no" ; then
15272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274 fi
15275
15276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15278 fi
15279
15280 CFLAGS="$CFLAGS -Werror=return-type"
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15283 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15284 cacheid=xorg_cv_cc_flag__Werror_return_type
15285 if eval \${$cacheid+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 int i;
15291 int
15292 main ()
15293 {
15294
15295 ;
15296 return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_link "$LINENO"; then :
15300 eval $cacheid=yes
15301 else
15302 eval $cacheid=no
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 fi
15307
15308
15309 CFLAGS="$xorg_testset_save_CFLAGS"
15310
15311 eval supported=\$$cacheid
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15313 $as_echo "$supported" >&6; }
15314 if test "$supported" = "yes" ; then
15315 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15316 found="yes"
15317 fi
15318 fi
15319
15320 if test $found = "no" ; then
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323 fi
15324
15325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15327 fi
15328
15329 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15332 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15333 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15334 if eval \${$cacheid+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 int i;
15340 int
15341 main ()
15342 {
15343
15344 ;
15345 return 0;
15346 }
15347 _ACEOF
15348 if ac_fn_c_try_link "$LINENO"; then :
15349 eval $cacheid=yes
15350 else
15351 eval $cacheid=no
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 fi
15356
15357
15358 CFLAGS="$xorg_testset_save_CFLAGS"
15359
15360 eval supported=\$$cacheid
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15362 $as_echo "$supported" >&6; }
15363 if test "$supported" = "yes" ; then
15364 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15365 found="yes"
15366 fi
15367 fi
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383 xorg_testset_save_CFLAGS="$CFLAGS"
15384
15385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394 int i;
15395 _ACEOF
15396 if ac_fn_c_try_compile "$LINENO"; then :
15397 xorg_cv_cc_flag_unknown_warning_option=yes
15398 else
15399 xorg_cv_cc_flag_unknown_warning_option=no
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15406 CFLAGS="$xorg_testset_save_CFLAGS"
15407 fi
15408
15409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15412 fi
15413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 int i;
15422 _ACEOF
15423 if ac_fn_c_try_compile "$LINENO"; then :
15424 xorg_cv_cc_flag_unused_command_line_argument=yes
15425 else
15426 xorg_cv_cc_flag_unused_command_line_argument=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15433 CFLAGS="$xorg_testset_save_CFLAGS"
15434 fi
15435
15436 found="no"
15437
15438 if test $found = "no" ; then
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 fi
15442
15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 fi
15446
15447 CFLAGS="$CFLAGS -Werror=trigraphs"
15448
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15450 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15451 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15452 if eval \${$cacheid+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 int i;
15458 int
15459 main ()
15460 {
15461
15462 ;
15463 return 0;
15464 }
15465 _ACEOF
15466 if ac_fn_c_try_link "$LINENO"; then :
15467 eval $cacheid=yes
15468 else
15469 eval $cacheid=no
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473 fi
15474
15475
15476 CFLAGS="$xorg_testset_save_CFLAGS"
15477
15478 eval supported=\$$cacheid
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15480 $as_echo "$supported" >&6; }
15481 if test "$supported" = "yes" ; then
15482 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15483 found="yes"
15484 fi
15485 fi
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501 xorg_testset_save_CFLAGS="$CFLAGS"
15502
15503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512 int i;
15513 _ACEOF
15514 if ac_fn_c_try_compile "$LINENO"; then :
15515 xorg_cv_cc_flag_unknown_warning_option=yes
15516 else
15517 xorg_cv_cc_flag_unknown_warning_option=no
15518 fi
15519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 fi
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15524 CFLAGS="$xorg_testset_save_CFLAGS"
15525 fi
15526
15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15530 fi
15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539 int i;
15540 _ACEOF
15541 if ac_fn_c_try_compile "$LINENO"; then :
15542 xorg_cv_cc_flag_unused_command_line_argument=yes
15543 else
15544 xorg_cv_cc_flag_unused_command_line_argument=no
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 fi
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15551 CFLAGS="$xorg_testset_save_CFLAGS"
15552 fi
15553
15554 found="no"
15555
15556 if test $found = "no" ; then
15557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559 fi
15560
15561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15563 fi
15564
15565 CFLAGS="$CFLAGS -Werror=array-bounds"
15566
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15568 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15569 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15570 if eval \${$cacheid+:} false; then :
15571 $as_echo_n "(cached) " >&6
15572 else
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15575 int i;
15576 int
15577 main ()
15578 {
15579
15580 ;
15581 return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 eval $cacheid=yes
15586 else
15587 eval $cacheid=no
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 fi
15592
15593
15594 CFLAGS="$xorg_testset_save_CFLAGS"
15595
15596 eval supported=\$$cacheid
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15598 $as_echo "$supported" >&6; }
15599 if test "$supported" = "yes" ; then
15600 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15601 found="yes"
15602 fi
15603 fi
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619 xorg_testset_save_CFLAGS="$CFLAGS"
15620
15621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15626 $as_echo_n "(cached) " >&6
15627 else
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15630 int i;
15631 _ACEOF
15632 if ac_fn_c_try_compile "$LINENO"; then :
15633 xorg_cv_cc_flag_unknown_warning_option=yes
15634 else
15635 xorg_cv_cc_flag_unknown_warning_option=no
15636 fi
15637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15638 fi
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15642 CFLAGS="$xorg_testset_save_CFLAGS"
15643 fi
15644
15645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15648 fi
15649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 int i;
15658 _ACEOF
15659 if ac_fn_c_try_compile "$LINENO"; then :
15660 xorg_cv_cc_flag_unused_command_line_argument=yes
15661 else
15662 xorg_cv_cc_flag_unused_command_line_argument=no
15663 fi
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 fi
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15669 CFLAGS="$xorg_testset_save_CFLAGS"
15670 fi
15671
15672 found="no"
15673
15674 if test $found = "no" ; then
15675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677 fi
15678
15679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681 fi
15682
15683 CFLAGS="$CFLAGS -Werror=write-strings"
15684
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15686 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15687 cacheid=xorg_cv_cc_flag__Werror_write_strings
15688 if eval \${$cacheid+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 int i;
15694 int
15695 main ()
15696 {
15697
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_link "$LINENO"; then :
15703 eval $cacheid=yes
15704 else
15705 eval $cacheid=no
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext \
15708 conftest$ac_exeext conftest.$ac_ext
15709 fi
15710
15711
15712 CFLAGS="$xorg_testset_save_CFLAGS"
15713
15714 eval supported=\$$cacheid
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15716 $as_echo "$supported" >&6; }
15717 if test "$supported" = "yes" ; then
15718 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15719 found="yes"
15720 fi
15721 fi
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737 xorg_testset_save_CFLAGS="$CFLAGS"
15738
15739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15744 $as_echo_n "(cached) " >&6
15745 else
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15748 int i;
15749 _ACEOF
15750 if ac_fn_c_try_compile "$LINENO"; then :
15751 xorg_cv_cc_flag_unknown_warning_option=yes
15752 else
15753 xorg_cv_cc_flag_unknown_warning_option=no
15754 fi
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15760 CFLAGS="$xorg_testset_save_CFLAGS"
15761 fi
15762
15763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15766 fi
15767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775 int i;
15776 _ACEOF
15777 if ac_fn_c_try_compile "$LINENO"; then :
15778 xorg_cv_cc_flag_unused_command_line_argument=yes
15779 else
15780 xorg_cv_cc_flag_unused_command_line_argument=no
15781 fi
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15787 CFLAGS="$xorg_testset_save_CFLAGS"
15788 fi
15789
15790 found="no"
15791
15792 if test $found = "no" ; then
15793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795 fi
15796
15797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15799 fi
15800
15801 CFLAGS="$CFLAGS -Werror=address"
15802
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15804 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15805 cacheid=xorg_cv_cc_flag__Werror_address
15806 if eval \${$cacheid+:} false; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15811 int i;
15812 int
15813 main ()
15814 {
15815
15816 ;
15817 return 0;
15818 }
15819 _ACEOF
15820 if ac_fn_c_try_link "$LINENO"; then :
15821 eval $cacheid=yes
15822 else
15823 eval $cacheid=no
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 fi
15828
15829
15830 CFLAGS="$xorg_testset_save_CFLAGS"
15831
15832 eval supported=\$$cacheid
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15834 $as_echo "$supported" >&6; }
15835 if test "$supported" = "yes" ; then
15836 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15837 found="yes"
15838 fi
15839 fi
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855 xorg_testset_save_CFLAGS="$CFLAGS"
15856
15857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 int i;
15867 _ACEOF
15868 if ac_fn_c_try_compile "$LINENO"; then :
15869 xorg_cv_cc_flag_unknown_warning_option=yes
15870 else
15871 xorg_cv_cc_flag_unknown_warning_option=no
15872 fi
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 fi
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15878 CFLAGS="$xorg_testset_save_CFLAGS"
15879 fi
15880
15881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15884 fi
15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 int i;
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 xorg_cv_cc_flag_unused_command_line_argument=yes
15897 else
15898 xorg_cv_cc_flag_unused_command_line_argument=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15905 CFLAGS="$xorg_testset_save_CFLAGS"
15906 fi
15907
15908 found="no"
15909
15910 if test $found = "no" ; then
15911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913 fi
15914
15915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15917 fi
15918
15919 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15922 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15923 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15924 if eval \${$cacheid+:} false; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929 int i;
15930 int
15931 main ()
15932 {
15933
15934 ;
15935 return 0;
15936 }
15937 _ACEOF
15938 if ac_fn_c_try_link "$LINENO"; then :
15939 eval $cacheid=yes
15940 else
15941 eval $cacheid=no
15942 fi
15943 rm -f core conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 fi
15946
15947
15948 CFLAGS="$xorg_testset_save_CFLAGS"
15949
15950 eval supported=\$$cacheid
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15952 $as_echo "$supported" >&6; }
15953 if test "$supported" = "yes" ; then
15954 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15955 found="yes"
15956 fi
15957 fi
15958
15959 if test $found = "no" ; then
15960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15962 fi
15963
15964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966 fi
15967
15968 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15971 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15972 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15973 if eval \${$cacheid+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 int i;
15979 int
15980 main ()
15981 {
15982
15983 ;
15984 return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988 eval $cacheid=yes
15989 else
15990 eval $cacheid=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 fi
15995
15996
15997 CFLAGS="$xorg_testset_save_CFLAGS"
15998
15999 eval supported=\$$cacheid
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16001 $as_echo "$supported" >&6; }
16002 if test "$supported" = "yes" ; then
16003 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16004 found="yes"
16005 fi
16006 fi
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022 xorg_testset_save_CFLAGS="$CFLAGS"
16023
16024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"; then :
16036 xorg_cv_cc_flag_unknown_warning_option=yes
16037 else
16038 xorg_cv_cc_flag_unknown_warning_option=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16045 CFLAGS="$xorg_testset_save_CFLAGS"
16046 fi
16047
16048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16051 fi
16052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 int i;
16061 _ACEOF
16062 if ac_fn_c_try_compile "$LINENO"; then :
16063 xorg_cv_cc_flag_unused_command_line_argument=yes
16064 else
16065 xorg_cv_cc_flag_unused_command_line_argument=no
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068 fi
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16072 CFLAGS="$xorg_testset_save_CFLAGS"
16073 fi
16074
16075 found="no"
16076
16077 if test $found = "no" ; then
16078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16080 fi
16081
16082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16084 fi
16085
16086 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16087
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16089 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16090 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16091 if eval \${$cacheid+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093 else
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 int i;
16097 int
16098 main ()
16099 {
16100
16101 ;
16102 return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_link "$LINENO"; then :
16106 eval $cacheid=yes
16107 else
16108 eval $cacheid=no
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext \
16111 conftest$ac_exeext conftest.$ac_ext
16112 fi
16113
16114
16115 CFLAGS="$xorg_testset_save_CFLAGS"
16116
16117 eval supported=\$$cacheid
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16119 $as_echo "$supported" >&6; }
16120 if test "$supported" = "yes" ; then
16121 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16122 found="yes"
16123 fi
16124 fi
16125
16126 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16127 else
16128 { $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
16129 $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;}
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143 xorg_testset_save_CFLAGS="$CFLAGS"
16144
16145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 int i;
16155 _ACEOF
16156 if ac_fn_c_try_compile "$LINENO"; then :
16157 xorg_cv_cc_flag_unknown_warning_option=yes
16158 else
16159 xorg_cv_cc_flag_unknown_warning_option=no
16160 fi
16161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 fi
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16166 CFLAGS="$xorg_testset_save_CFLAGS"
16167 fi
16168
16169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16172 fi
16173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16177 $as_echo_n "(cached) " >&6
16178 else
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 int i;
16182 _ACEOF
16183 if ac_fn_c_try_compile "$LINENO"; then :
16184 xorg_cv_cc_flag_unused_command_line_argument=yes
16185 else
16186 xorg_cv_cc_flag_unused_command_line_argument=no
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16193 CFLAGS="$xorg_testset_save_CFLAGS"
16194 fi
16195
16196 found="no"
16197
16198 if test $found = "no" ; then
16199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16201 fi
16202
16203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16205 fi
16206
16207 CFLAGS="$CFLAGS -Wimplicit"
16208
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16210 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16211 cacheid=xorg_cv_cc_flag__Wimplicit
16212 if eval \${$cacheid+:} false; then :
16213 $as_echo_n "(cached) " >&6
16214 else
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 int i;
16218 int
16219 main ()
16220 {
16221
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_link "$LINENO"; then :
16227 eval $cacheid=yes
16228 else
16229 eval $cacheid=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 fi
16234
16235
16236 CFLAGS="$xorg_testset_save_CFLAGS"
16237
16238 eval supported=\$$cacheid
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16240 $as_echo "$supported" >&6; }
16241 if test "$supported" = "yes" ; then
16242 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16243 found="yes"
16244 fi
16245 fi
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261 xorg_testset_save_CFLAGS="$CFLAGS"
16262
16263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16272 int i;
16273 _ACEOF
16274 if ac_fn_c_try_compile "$LINENO"; then :
16275 xorg_cv_cc_flag_unknown_warning_option=yes
16276 else
16277 xorg_cv_cc_flag_unknown_warning_option=no
16278 fi
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280 fi
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16284 CFLAGS="$xorg_testset_save_CFLAGS"
16285 fi
16286
16287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290 fi
16291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 int i;
16300 _ACEOF
16301 if ac_fn_c_try_compile "$LINENO"; then :
16302 xorg_cv_cc_flag_unused_command_line_argument=yes
16303 else
16304 xorg_cv_cc_flag_unused_command_line_argument=no
16305 fi
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16311 CFLAGS="$xorg_testset_save_CFLAGS"
16312 fi
16313
16314 found="no"
16315
16316 if test $found = "no" ; then
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319 fi
16320
16321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16323 fi
16324
16325 CFLAGS="$CFLAGS -Wnonnull"
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16328 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16329 cacheid=xorg_cv_cc_flag__Wnonnull
16330 if eval \${$cacheid+:} false; then :
16331 $as_echo_n "(cached) " >&6
16332 else
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 int i;
16336 int
16337 main ()
16338 {
16339
16340 ;
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"; then :
16345 eval $cacheid=yes
16346 else
16347 eval $cacheid=no
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext \
16350 conftest$ac_exeext conftest.$ac_ext
16351 fi
16352
16353
16354 CFLAGS="$xorg_testset_save_CFLAGS"
16355
16356 eval supported=\$$cacheid
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16358 $as_echo "$supported" >&6; }
16359 if test "$supported" = "yes" ; then
16360 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16361 found="yes"
16362 fi
16363 fi
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379 xorg_testset_save_CFLAGS="$CFLAGS"
16380
16381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 int i;
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 xorg_cv_cc_flag_unknown_warning_option=yes
16394 else
16395 xorg_cv_cc_flag_unknown_warning_option=no
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 fi
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16402 CFLAGS="$xorg_testset_save_CFLAGS"
16403 fi
16404
16405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16408 fi
16409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 int i;
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 xorg_cv_cc_flag_unused_command_line_argument=yes
16421 else
16422 xorg_cv_cc_flag_unused_command_line_argument=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16429 CFLAGS="$xorg_testset_save_CFLAGS"
16430 fi
16431
16432 found="no"
16433
16434 if test $found = "no" ; then
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437 fi
16438
16439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16441 fi
16442
16443 CFLAGS="$CFLAGS -Winit-self"
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16446 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16447 cacheid=xorg_cv_cc_flag__Winit_self
16448 if eval \${$cacheid+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 int i;
16454 int
16455 main ()
16456 {
16457
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 if ac_fn_c_try_link "$LINENO"; then :
16463 eval $cacheid=yes
16464 else
16465 eval $cacheid=no
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 fi
16470
16471
16472 CFLAGS="$xorg_testset_save_CFLAGS"
16473
16474 eval supported=\$$cacheid
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16476 $as_echo "$supported" >&6; }
16477 if test "$supported" = "yes" ; then
16478 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16479 found="yes"
16480 fi
16481 fi
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497 xorg_testset_save_CFLAGS="$CFLAGS"
16498
16499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508 int i;
16509 _ACEOF
16510 if ac_fn_c_try_compile "$LINENO"; then :
16511 xorg_cv_cc_flag_unknown_warning_option=yes
16512 else
16513 xorg_cv_cc_flag_unknown_warning_option=no
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16520 CFLAGS="$xorg_testset_save_CFLAGS"
16521 fi
16522
16523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526 fi
16527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 int i;
16536 _ACEOF
16537 if ac_fn_c_try_compile "$LINENO"; then :
16538 xorg_cv_cc_flag_unused_command_line_argument=yes
16539 else
16540 xorg_cv_cc_flag_unused_command_line_argument=no
16541 fi
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16547 CFLAGS="$xorg_testset_save_CFLAGS"
16548 fi
16549
16550 found="no"
16551
16552 if test $found = "no" ; then
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555 fi
16556
16557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16559 fi
16560
16561 CFLAGS="$CFLAGS -Wmain"
16562
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16564 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16565 cacheid=xorg_cv_cc_flag__Wmain
16566 if eval \${$cacheid+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 int i;
16572 int
16573 main ()
16574 {
16575
16576 ;
16577 return 0;
16578 }
16579 _ACEOF
16580 if ac_fn_c_try_link "$LINENO"; then :
16581 eval $cacheid=yes
16582 else
16583 eval $cacheid=no
16584 fi
16585 rm -f core conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
16587 fi
16588
16589
16590 CFLAGS="$xorg_testset_save_CFLAGS"
16591
16592 eval supported=\$$cacheid
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16594 $as_echo "$supported" >&6; }
16595 if test "$supported" = "yes" ; then
16596 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16597 found="yes"
16598 fi
16599 fi
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615 xorg_testset_save_CFLAGS="$CFLAGS"
16616
16617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16622 $as_echo_n "(cached) " >&6
16623 else
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 int i;
16627 _ACEOF
16628 if ac_fn_c_try_compile "$LINENO"; then :
16629 xorg_cv_cc_flag_unknown_warning_option=yes
16630 else
16631 xorg_cv_cc_flag_unknown_warning_option=no
16632 fi
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 fi
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16638 CFLAGS="$xorg_testset_save_CFLAGS"
16639 fi
16640
16641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16644 fi
16645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 int i;
16654 _ACEOF
16655 if ac_fn_c_try_compile "$LINENO"; then :
16656 xorg_cv_cc_flag_unused_command_line_argument=yes
16657 else
16658 xorg_cv_cc_flag_unused_command_line_argument=no
16659 fi
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16665 CFLAGS="$xorg_testset_save_CFLAGS"
16666 fi
16667
16668 found="no"
16669
16670 if test $found = "no" ; then
16671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673 fi
16674
16675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16677 fi
16678
16679 CFLAGS="$CFLAGS -Wmissing-braces"
16680
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16682 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16683 cacheid=xorg_cv_cc_flag__Wmissing_braces
16684 if eval \${$cacheid+:} false; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 int i;
16690 int
16691 main ()
16692 {
16693
16694 ;
16695 return 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_link "$LINENO"; then :
16699 eval $cacheid=yes
16700 else
16701 eval $cacheid=no
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705 fi
16706
16707
16708 CFLAGS="$xorg_testset_save_CFLAGS"
16709
16710 eval supported=\$$cacheid
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16712 $as_echo "$supported" >&6; }
16713 if test "$supported" = "yes" ; then
16714 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16715 found="yes"
16716 fi
16717 fi
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733 xorg_testset_save_CFLAGS="$CFLAGS"
16734
16735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16744 int i;
16745 _ACEOF
16746 if ac_fn_c_try_compile "$LINENO"; then :
16747 xorg_cv_cc_flag_unknown_warning_option=yes
16748 else
16749 xorg_cv_cc_flag_unknown_warning_option=no
16750 fi
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 fi
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16756 CFLAGS="$xorg_testset_save_CFLAGS"
16757 fi
16758
16759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762 fi
16763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16767 $as_echo_n "(cached) " >&6
16768 else
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 int i;
16772 _ACEOF
16773 if ac_fn_c_try_compile "$LINENO"; then :
16774 xorg_cv_cc_flag_unused_command_line_argument=yes
16775 else
16776 xorg_cv_cc_flag_unused_command_line_argument=no
16777 fi
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 fi
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16783 CFLAGS="$xorg_testset_save_CFLAGS"
16784 fi
16785
16786 found="no"
16787
16788 if test $found = "no" ; then
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 fi
16792
16793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16795 fi
16796
16797 CFLAGS="$CFLAGS -Wsequence-point"
16798
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16800 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16801 cacheid=xorg_cv_cc_flag__Wsequence_point
16802 if eval \${$cacheid+:} false; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 int i;
16808 int
16809 main ()
16810 {
16811
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 if ac_fn_c_try_link "$LINENO"; then :
16817 eval $cacheid=yes
16818 else
16819 eval $cacheid=no
16820 fi
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16823 fi
16824
16825
16826 CFLAGS="$xorg_testset_save_CFLAGS"
16827
16828 eval supported=\$$cacheid
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16830 $as_echo "$supported" >&6; }
16831 if test "$supported" = "yes" ; then
16832 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16833 found="yes"
16834 fi
16835 fi
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851 xorg_testset_save_CFLAGS="$CFLAGS"
16852
16853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862 int i;
16863 _ACEOF
16864 if ac_fn_c_try_compile "$LINENO"; then :
16865 xorg_cv_cc_flag_unknown_warning_option=yes
16866 else
16867 xorg_cv_cc_flag_unknown_warning_option=no
16868 fi
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16874 CFLAGS="$xorg_testset_save_CFLAGS"
16875 fi
16876
16877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880 fi
16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16885 $as_echo_n "(cached) " >&6
16886 else
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16889 int i;
16890 _ACEOF
16891 if ac_fn_c_try_compile "$LINENO"; then :
16892 xorg_cv_cc_flag_unused_command_line_argument=yes
16893 else
16894 xorg_cv_cc_flag_unused_command_line_argument=no
16895 fi
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 fi
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16901 CFLAGS="$xorg_testset_save_CFLAGS"
16902 fi
16903
16904 found="no"
16905
16906 if test $found = "no" ; then
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 fi
16910
16911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16913 fi
16914
16915 CFLAGS="$CFLAGS -Wreturn-type"
16916
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16918 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16919 cacheid=xorg_cv_cc_flag__Wreturn_type
16920 if eval \${$cacheid+:} false; then :
16921 $as_echo_n "(cached) " >&6
16922 else
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16925 int i;
16926 int
16927 main ()
16928 {
16929
16930 ;
16931 return 0;
16932 }
16933 _ACEOF
16934 if ac_fn_c_try_link "$LINENO"; then :
16935 eval $cacheid=yes
16936 else
16937 eval $cacheid=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 fi
16942
16943
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945
16946 eval supported=\$$cacheid
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16948 $as_echo "$supported" >&6; }
16949 if test "$supported" = "yes" ; then
16950 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16951 found="yes"
16952 fi
16953 fi
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969 xorg_testset_save_CFLAGS="$CFLAGS"
16970
16971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16976 $as_echo_n "(cached) " >&6
16977 else
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h. */
16980 int i;
16981 _ACEOF
16982 if ac_fn_c_try_compile "$LINENO"; then :
16983 xorg_cv_cc_flag_unknown_warning_option=yes
16984 else
16985 xorg_cv_cc_flag_unknown_warning_option=no
16986 fi
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16992 CFLAGS="$xorg_testset_save_CFLAGS"
16993 fi
16994
16995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16998 fi
16999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17003 $as_echo_n "(cached) " >&6
17004 else
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 int i;
17008 _ACEOF
17009 if ac_fn_c_try_compile "$LINENO"; then :
17010 xorg_cv_cc_flag_unused_command_line_argument=yes
17011 else
17012 xorg_cv_cc_flag_unused_command_line_argument=no
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17015 fi
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17019 CFLAGS="$xorg_testset_save_CFLAGS"
17020 fi
17021
17022 found="no"
17023
17024 if test $found = "no" ; then
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027 fi
17028
17029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17031 fi
17032
17033 CFLAGS="$CFLAGS -Wtrigraphs"
17034
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17036 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17037 cacheid=xorg_cv_cc_flag__Wtrigraphs
17038 if eval \${$cacheid+:} false; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 int i;
17044 int
17045 main ()
17046 {
17047
17048 ;
17049 return 0;
17050 }
17051 _ACEOF
17052 if ac_fn_c_try_link "$LINENO"; then :
17053 eval $cacheid=yes
17054 else
17055 eval $cacheid=no
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 fi
17060
17061
17062 CFLAGS="$xorg_testset_save_CFLAGS"
17063
17064 eval supported=\$$cacheid
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17066 $as_echo "$supported" >&6; }
17067 if test "$supported" = "yes" ; then
17068 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17069 found="yes"
17070 fi
17071 fi
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087 xorg_testset_save_CFLAGS="$CFLAGS"
17088
17089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098 int i;
17099 _ACEOF
17100 if ac_fn_c_try_compile "$LINENO"; then :
17101 xorg_cv_cc_flag_unknown_warning_option=yes
17102 else
17103 xorg_cv_cc_flag_unknown_warning_option=no
17104 fi
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106 fi
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17110 CFLAGS="$xorg_testset_save_CFLAGS"
17111 fi
17112
17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17116 fi
17117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 int i;
17126 _ACEOF
17127 if ac_fn_c_try_compile "$LINENO"; then :
17128 xorg_cv_cc_flag_unused_command_line_argument=yes
17129 else
17130 xorg_cv_cc_flag_unused_command_line_argument=no
17131 fi
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17137 CFLAGS="$xorg_testset_save_CFLAGS"
17138 fi
17139
17140 found="no"
17141
17142 if test $found = "no" ; then
17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145 fi
17146
17147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17149 fi
17150
17151 CFLAGS="$CFLAGS -Warray-bounds"
17152
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17154 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17155 cacheid=xorg_cv_cc_flag__Warray_bounds
17156 if eval \${$cacheid+:} false; then :
17157 $as_echo_n "(cached) " >&6
17158 else
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17161 int i;
17162 int
17163 main ()
17164 {
17165
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 eval $cacheid=yes
17172 else
17173 eval $cacheid=no
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 fi
17178
17179
17180 CFLAGS="$xorg_testset_save_CFLAGS"
17181
17182 eval supported=\$$cacheid
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17184 $as_echo "$supported" >&6; }
17185 if test "$supported" = "yes" ; then
17186 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17187 found="yes"
17188 fi
17189 fi
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205 xorg_testset_save_CFLAGS="$CFLAGS"
17206
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216 int i;
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219 xorg_cv_cc_flag_unknown_warning_option=yes
17220 else
17221 xorg_cv_cc_flag_unknown_warning_option=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17228 CFLAGS="$xorg_testset_save_CFLAGS"
17229 fi
17230
17231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17234 fi
17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 int i;
17244 _ACEOF
17245 if ac_fn_c_try_compile "$LINENO"; then :
17246 xorg_cv_cc_flag_unused_command_line_argument=yes
17247 else
17248 xorg_cv_cc_flag_unused_command_line_argument=no
17249 fi
17250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 fi
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17255 CFLAGS="$xorg_testset_save_CFLAGS"
17256 fi
17257
17258 found="no"
17259
17260 if test $found = "no" ; then
17261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263 fi
17264
17265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17267 fi
17268
17269 CFLAGS="$CFLAGS -Wwrite-strings"
17270
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17272 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17273 cacheid=xorg_cv_cc_flag__Wwrite_strings
17274 if eval \${$cacheid+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279 int i;
17280 int
17281 main ()
17282 {
17283
17284 ;
17285 return 0;
17286 }
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 eval $cacheid=yes
17290 else
17291 eval $cacheid=no
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 fi
17296
17297
17298 CFLAGS="$xorg_testset_save_CFLAGS"
17299
17300 eval supported=\$$cacheid
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17302 $as_echo "$supported" >&6; }
17303 if test "$supported" = "yes" ; then
17304 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17305 found="yes"
17306 fi
17307 fi
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323 xorg_testset_save_CFLAGS="$CFLAGS"
17324
17325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 int i;
17335 _ACEOF
17336 if ac_fn_c_try_compile "$LINENO"; then :
17337 xorg_cv_cc_flag_unknown_warning_option=yes
17338 else
17339 xorg_cv_cc_flag_unknown_warning_option=no
17340 fi
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342 fi
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17346 CFLAGS="$xorg_testset_save_CFLAGS"
17347 fi
17348
17349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352 fi
17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17357 $as_echo_n "(cached) " >&6
17358 else
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17361 int i;
17362 _ACEOF
17363 if ac_fn_c_try_compile "$LINENO"; then :
17364 xorg_cv_cc_flag_unused_command_line_argument=yes
17365 else
17366 xorg_cv_cc_flag_unused_command_line_argument=no
17367 fi
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17373 CFLAGS="$xorg_testset_save_CFLAGS"
17374 fi
17375
17376 found="no"
17377
17378 if test $found = "no" ; then
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381 fi
17382
17383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17385 fi
17386
17387 CFLAGS="$CFLAGS -Waddress"
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17390 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17391 cacheid=xorg_cv_cc_flag__Waddress
17392 if eval \${$cacheid+:} false; then :
17393 $as_echo_n "(cached) " >&6
17394 else
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397 int i;
17398 int
17399 main ()
17400 {
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 eval $cacheid=yes
17408 else
17409 eval $cacheid=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 fi
17414
17415
17416 CFLAGS="$xorg_testset_save_CFLAGS"
17417
17418 eval supported=\$$cacheid
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17420 $as_echo "$supported" >&6; }
17421 if test "$supported" = "yes" ; then
17422 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17423 found="yes"
17424 fi
17425 fi
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441 xorg_testset_save_CFLAGS="$CFLAGS"
17442
17443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17448 $as_echo_n "(cached) " >&6
17449 else
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 int i;
17453 _ACEOF
17454 if ac_fn_c_try_compile "$LINENO"; then :
17455 xorg_cv_cc_flag_unknown_warning_option=yes
17456 else
17457 xorg_cv_cc_flag_unknown_warning_option=no
17458 fi
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17464 CFLAGS="$xorg_testset_save_CFLAGS"
17465 fi
17466
17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470 fi
17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479 int i;
17480 _ACEOF
17481 if ac_fn_c_try_compile "$LINENO"; then :
17482 xorg_cv_cc_flag_unused_command_line_argument=yes
17483 else
17484 xorg_cv_cc_flag_unused_command_line_argument=no
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 fi
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17491 CFLAGS="$xorg_testset_save_CFLAGS"
17492 fi
17493
17494 found="no"
17495
17496 if test $found = "no" ; then
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499 fi
17500
17501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17503 fi
17504
17505 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17506
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17508 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17509 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17510 if eval \${$cacheid+:} false; then :
17511 $as_echo_n "(cached) " >&6
17512 else
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515 int i;
17516 int
17517 main ()
17518 {
17519
17520 ;
17521 return 0;
17522 }
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 eval $cacheid=yes
17526 else
17527 eval $cacheid=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 fi
17532
17533
17534 CFLAGS="$xorg_testset_save_CFLAGS"
17535
17536 eval supported=\$$cacheid
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17538 $as_echo "$supported" >&6; }
17539 if test "$supported" = "yes" ; then
17540 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17541 found="yes"
17542 fi
17543 fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559 xorg_testset_save_CFLAGS="$CFLAGS"
17560
17561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17566 $as_echo_n "(cached) " >&6
17567 else
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17570 int i;
17571 _ACEOF
17572 if ac_fn_c_try_compile "$LINENO"; then :
17573 xorg_cv_cc_flag_unknown_warning_option=yes
17574 else
17575 xorg_cv_cc_flag_unknown_warning_option=no
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 fi
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17582 CFLAGS="$xorg_testset_save_CFLAGS"
17583 fi
17584
17585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17588 fi
17589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17593 $as_echo_n "(cached) " >&6
17594 else
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 int i;
17598 _ACEOF
17599 if ac_fn_c_try_compile "$LINENO"; then :
17600 xorg_cv_cc_flag_unused_command_line_argument=yes
17601 else
17602 xorg_cv_cc_flag_unused_command_line_argument=no
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 fi
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17609 CFLAGS="$xorg_testset_save_CFLAGS"
17610 fi
17611
17612 found="no"
17613
17614 if test $found = "no" ; then
17615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617 fi
17618
17619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17621 fi
17622
17623 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17626 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17627 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17628 if eval \${$cacheid+:} false; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633 int i;
17634 int
17635 main ()
17636 {
17637
17638 ;
17639 return 0;
17640 }
17641 _ACEOF
17642 if ac_fn_c_try_link "$LINENO"; then :
17643 eval $cacheid=yes
17644 else
17645 eval $cacheid=no
17646 fi
17647 rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17649 fi
17650
17651
17652 CFLAGS="$xorg_testset_save_CFLAGS"
17653
17654 eval supported=\$$cacheid
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17656 $as_echo "$supported" >&6; }
17657 if test "$supported" = "yes" ; then
17658 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17659 found="yes"
17660 fi
17661 fi
17662
17663
17664 fi
17665
17666
17667
17668
17669
17670
17671
17672 CWARNFLAGS="$BASE_CFLAGS"
17673 if test "x$GCC" = xyes ; then
17674 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17675 fi
17676
17677
17678
17679
17680
17681
17682
17683
17684 # Check whether --enable-strict-compilation was given.
17685 if test "${enable_strict_compilation+set}" = set; then :
17686 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17687 else
17688 STRICT_COMPILE=no
17689 fi
17690
17691
17692
17693
17694
17695
17696 STRICT_CFLAGS=""
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710 xorg_testset_save_CFLAGS="$CFLAGS"
17711
17712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17715 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17716 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721 int i;
17722 _ACEOF
17723 if ac_fn_c_try_compile "$LINENO"; then :
17724 xorg_cv_cc_flag_unknown_warning_option=yes
17725 else
17726 xorg_cv_cc_flag_unknown_warning_option=no
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17731 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17733 CFLAGS="$xorg_testset_save_CFLAGS"
17734 fi
17735
17736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17739 fi
17740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17743 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17744 $as_echo_n "(cached) " >&6
17745 else
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 int i;
17749 _ACEOF
17750 if ac_fn_c_try_compile "$LINENO"; then :
17751 xorg_cv_cc_flag_unused_command_line_argument=yes
17752 else
17753 xorg_cv_cc_flag_unused_command_line_argument=no
17754 fi
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 fi
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17758 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17760 CFLAGS="$xorg_testset_save_CFLAGS"
17761 fi
17762
17763 found="no"
17764
17765 if test $found = "no" ; then
17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768 fi
17769
17770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17772 fi
17773
17774 CFLAGS="$CFLAGS -pedantic"
17775
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17777 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17778 cacheid=xorg_cv_cc_flag__pedantic
17779 if eval \${$cacheid+:} false; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784 int i;
17785 int
17786 main ()
17787 {
17788
17789 ;
17790 return 0;
17791 }
17792 _ACEOF
17793 if ac_fn_c_try_link "$LINENO"; then :
17794 eval $cacheid=yes
17795 else
17796 eval $cacheid=no
17797 fi
17798 rm -f core conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17800 fi
17801
17802
17803 CFLAGS="$xorg_testset_save_CFLAGS"
17804
17805 eval supported=\$$cacheid
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17807 $as_echo "$supported" >&6; }
17808 if test "$supported" = "yes" ; then
17809 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17810 found="yes"
17811 fi
17812 fi
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828 xorg_testset_save_CFLAGS="$CFLAGS"
17829
17830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17833 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17834 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17835 $as_echo_n "(cached) " >&6
17836 else
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839 int i;
17840 _ACEOF
17841 if ac_fn_c_try_compile "$LINENO"; then :
17842 xorg_cv_cc_flag_unknown_warning_option=yes
17843 else
17844 xorg_cv_cc_flag_unknown_warning_option=no
17845 fi
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847 fi
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17849 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17851 CFLAGS="$xorg_testset_save_CFLAGS"
17852 fi
17853
17854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 fi
17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17860 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17861 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17866 int i;
17867 _ACEOF
17868 if ac_fn_c_try_compile "$LINENO"; then :
17869 xorg_cv_cc_flag_unused_command_line_argument=yes
17870 else
17871 xorg_cv_cc_flag_unused_command_line_argument=no
17872 fi
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17876 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17878 CFLAGS="$xorg_testset_save_CFLAGS"
17879 fi
17880
17881 found="no"
17882
17883 if test $found = "no" ; then
17884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886 fi
17887
17888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17890 fi
17891
17892 CFLAGS="$CFLAGS -Werror"
17893
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17895 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17896 cacheid=xorg_cv_cc_flag__Werror
17897 if eval \${$cacheid+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 int i;
17903 int
17904 main ()
17905 {
17906
17907 ;
17908 return 0;
17909 }
17910 _ACEOF
17911 if ac_fn_c_try_link "$LINENO"; then :
17912 eval $cacheid=yes
17913 else
17914 eval $cacheid=no
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 fi
17919
17920
17921 CFLAGS="$xorg_testset_save_CFLAGS"
17922
17923 eval supported=\$$cacheid
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17925 $as_echo "$supported" >&6; }
17926 if test "$supported" = "yes" ; then
17927 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17928 found="yes"
17929 fi
17930 fi
17931
17932 if test $found = "no" ; then
17933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17935 fi
17936
17937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17939 fi
17940
17941 CFLAGS="$CFLAGS -errwarn"
17942
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17944 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17945 cacheid=xorg_cv_cc_flag__errwarn
17946 if eval \${$cacheid+:} false; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 int i;
17952 int
17953 main ()
17954 {
17955
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 eval $cacheid=yes
17962 else
17963 eval $cacheid=no
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 fi
17968
17969
17970 CFLAGS="$xorg_testset_save_CFLAGS"
17971
17972 eval supported=\$$cacheid
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17974 $as_echo "$supported" >&6; }
17975 if test "$supported" = "yes" ; then
17976 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17977 found="yes"
17978 fi
17979 fi
17980
17981
17982
17983 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17984 # activate it with -Werror, so we add it here explicitly.
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998 xorg_testset_save_CFLAGS="$CFLAGS"
17999
18000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18005 $as_echo_n "(cached) " >&6
18006 else
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18009 int i;
18010 _ACEOF
18011 if ac_fn_c_try_compile "$LINENO"; then :
18012 xorg_cv_cc_flag_unknown_warning_option=yes
18013 else
18014 xorg_cv_cc_flag_unknown_warning_option=no
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18021 CFLAGS="$xorg_testset_save_CFLAGS"
18022 fi
18023
18024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18027 fi
18028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18032 $as_echo_n "(cached) " >&6
18033 else
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18036 int i;
18037 _ACEOF
18038 if ac_fn_c_try_compile "$LINENO"; then :
18039 xorg_cv_cc_flag_unused_command_line_argument=yes
18040 else
18041 xorg_cv_cc_flag_unused_command_line_argument=no
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18048 CFLAGS="$xorg_testset_save_CFLAGS"
18049 fi
18050
18051 found="no"
18052
18053 if test $found = "no" ; then
18054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18056 fi
18057
18058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18060 fi
18061
18062 CFLAGS="$CFLAGS -Werror=attributes"
18063
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18065 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18066 cacheid=xorg_cv_cc_flag__Werror_attributes
18067 if eval \${$cacheid+:} false; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18072 int i;
18073 int
18074 main ()
18075 {
18076
18077 ;
18078 return 0;
18079 }
18080 _ACEOF
18081 if ac_fn_c_try_link "$LINENO"; then :
18082 eval $cacheid=yes
18083 else
18084 eval $cacheid=no
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18088 fi
18089
18090
18091 CFLAGS="$xorg_testset_save_CFLAGS"
18092
18093 eval supported=\$$cacheid
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18095 $as_echo "$supported" >&6; }
18096 if test "$supported" = "yes" ; then
18097 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18098 found="yes"
18099 fi
18100 fi
18101
18102
18103
18104 if test "x$STRICT_COMPILE" = "xyes"; then
18105 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18106 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18107 fi
18108
18109
18110
18111
18112
18113
18114 cat >>confdefs.h <<_ACEOF
18115 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18116 _ACEOF
18117
18118 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18119 if test "x$PVM" = "x"; then
18120 PVM="0"
18121 fi
18122
18123 cat >>confdefs.h <<_ACEOF
18124 #define PACKAGE_VERSION_MINOR $PVM
18125 _ACEOF
18126
18127 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18128 if test "x$PVP" = "x"; then
18129 PVP="0"
18130 fi
18131
18132 cat >>confdefs.h <<_ACEOF
18133 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18134 _ACEOF
18135
18136
18137
18138 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18139 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18140 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18141 touch \$(top_srcdir)/ChangeLog; \
18142 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18143
18144
18145
18146
18147 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18148 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18149 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18150 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18151 touch \$(top_srcdir)/INSTALL; \
18152 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18153
18154
18155
18156
18157
18158
18159 case $host_os in
18160 solaris*)
18161 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18162 # check for a man page file found in later versions that use
18163 # traditional section numbers instead
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18165 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18166 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18167 $as_echo_n "(cached) " >&6
18168 else
18169 test "$cross_compiling" = yes &&
18170 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18171 if test -r "/usr/share/man/man7/attributes.7"; then
18172 ac_cv_file__usr_share_man_man7_attributes_7=yes
18173 else
18174 ac_cv_file__usr_share_man_man7_attributes_7=no
18175 fi
18176 fi
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18178 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18179 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18180 SYSV_MAN_SECTIONS=false
18181 else
18182 SYSV_MAN_SECTIONS=true
18183 fi
18184
18185 ;;
18186 *) SYSV_MAN_SECTIONS=false ;;
18187 esac
18188
18189 if test x$APP_MAN_SUFFIX = x ; then
18190 APP_MAN_SUFFIX=1
18191 fi
18192 if test x$APP_MAN_DIR = x ; then
18193 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18194 fi
18195
18196 if test x$LIB_MAN_SUFFIX = x ; then
18197 LIB_MAN_SUFFIX=3
18198 fi
18199 if test x$LIB_MAN_DIR = x ; then
18200 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18201 fi
18202
18203 if test x$FILE_MAN_SUFFIX = x ; then
18204 case $SYSV_MAN_SECTIONS in
18205 true) FILE_MAN_SUFFIX=4 ;;
18206 *) FILE_MAN_SUFFIX=5 ;;
18207 esac
18208 fi
18209 if test x$FILE_MAN_DIR = x ; then
18210 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18211 fi
18212
18213 if test x$MISC_MAN_SUFFIX = x ; then
18214 case $SYSV_MAN_SECTIONS in
18215 true) MISC_MAN_SUFFIX=5 ;;
18216 *) MISC_MAN_SUFFIX=7 ;;
18217 esac
18218 fi
18219 if test x$MISC_MAN_DIR = x ; then
18220 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18221 fi
18222
18223 if test x$DRIVER_MAN_SUFFIX = x ; then
18224 case $SYSV_MAN_SECTIONS in
18225 true) DRIVER_MAN_SUFFIX=7 ;;
18226 *) DRIVER_MAN_SUFFIX=4 ;;
18227 esac
18228 fi
18229 if test x$DRIVER_MAN_DIR = x ; then
18230 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18231 fi
18232
18233 if test x$ADMIN_MAN_SUFFIX = x ; then
18234 case $SYSV_MAN_SECTIONS in
18235 true) ADMIN_MAN_SUFFIX=1m ;;
18236 *) ADMIN_MAN_SUFFIX=8 ;;
18237 esac
18238 fi
18239 if test x$ADMIN_MAN_DIR = x ; then
18240 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18241 fi
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257 XORG_MAN_PAGE="X Version 11"
18258
18259 MAN_SUBSTS="\
18260 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18261 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18262 -e 's|__xservername__|Xorg|g' \
18263 -e 's|__xconfigfile__|xorg.conf|g' \
18264 -e 's|__projectroot__|\$(prefix)|g' \
18265 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18266 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18267 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18268 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18269 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18270 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18271 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18272
18273
18274
18275 # Check whether --enable-silent-rules was given.
18276 if test "${enable_silent_rules+set}" = set; then :
18277 enableval=$enable_silent_rules;
18278 fi
18279
18280 case $enable_silent_rules in # (((
18281 yes) AM_DEFAULT_VERBOSITY=0;;
18282 no) AM_DEFAULT_VERBOSITY=1;;
18283 *) AM_DEFAULT_VERBOSITY=0;;
18284 esac
18285 am_make=${MAKE-make}
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18287 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18288 if ${am_cv_make_support_nested_variables+:} false; then :
18289 $as_echo_n "(cached) " >&6
18290 else
18291 if $as_echo 'TRUE=$(BAR$(V))
18292 BAR0=false
18293 BAR1=true
18294 V=1
18295 am__doit:
18296 @$(TRUE)
18297 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18298 am_cv_make_support_nested_variables=yes
18299 else
18300 am_cv_make_support_nested_variables=no
18301 fi
18302 fi
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18304 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18305 if test $am_cv_make_support_nested_variables = yes; then
18306 AM_V='$(V)'
18307 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18308 else
18309 AM_V=$AM_DEFAULT_VERBOSITY
18310 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18311 fi
18312 AM_BACKSLASH='\'
18313
18314
18315
18316 # Check whether --enable-malloc0returnsnull was given.
18317 if test "${enable_malloc0returnsnull+set}" = set; then :
18318 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18319 else
18320 MALLOC_ZERO_RETURNS_NULL=auto
18321 fi
18322
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18325 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18326 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18327 if ${xorg_cv_malloc0_returns_null+:} false; then :
18328 $as_echo_n "(cached) " >&6
18329 else
18330 if test "$cross_compiling" = yes; then :
18331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18333 as_fn_error $? "cannot run test program while cross compiling
18334 See \`config.log' for more details" "$LINENO" 5; }
18335 else
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18338
18339 #include <stdlib.h>
18340
18341 int
18342 main ()
18343 {
18344
18345 char *m0, *r0, *c0, *p;
18346 m0 = malloc(0);
18347 p = malloc(10);
18348 r0 = realloc(p,0);
18349 c0 = calloc(0,10);
18350 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18351
18352 ;
18353 return 0;
18354 }
18355 _ACEOF
18356 if ac_fn_c_try_run "$LINENO"; then :
18357 xorg_cv_malloc0_returns_null=yes
18358 else
18359 xorg_cv_malloc0_returns_null=no
18360 fi
18361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18362 conftest.$ac_objext conftest.beam conftest.$ac_ext
18363 fi
18364
18365 fi
18366
18367 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18370 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18371
18372 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18373 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18374 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18375 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18376 else
18377 MALLOC_ZERO_CFLAGS=""
18378 XMALLOC_ZERO_CFLAGS=""
18379 XTMALLOC_ZERO_CFLAGS=""
18380 fi
18381
18382
18383
18384
18385
18386
18387 # Obtain compiler/linker options for depedencies
18388
18389 pkg_failed=no
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
18391 $as_echo_n "checking for XRES... " >&6; }
18392
18393 if test -n "$XRES_CFLAGS"; then
18394 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
18395 elif test -n "$PKG_CONFIG"; then
18396 if test -n "$PKG_CONFIG" && \
18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
18398 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18401 test $ac_status = 0; }; then
18402 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
18403 test "x$?" != "x0" && pkg_failed=yes
18404 else
18405 pkg_failed=yes
18406 fi
18407 else
18408 pkg_failed=untried
18409 fi
18410 if test -n "$XRES_LIBS"; then
18411 pkg_cv_XRES_LIBS="$XRES_LIBS"
18412 elif test -n "$PKG_CONFIG"; then
18413 if test -n "$PKG_CONFIG" && \
18414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
18415 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
18416 ac_status=$?
18417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18418 test $ac_status = 0; }; then
18419 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
18420 test "x$?" != "x0" && pkg_failed=yes
18421 else
18422 pkg_failed=yes
18423 fi
18424 else
18425 pkg_failed=untried
18426 fi
18427
18428
18429
18430 if test $pkg_failed = yes; then
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18432 $as_echo "no" >&6; }
18433
18434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18435 _pkg_short_errors_supported=yes
18436 else
18437 _pkg_short_errors_supported=no
18438 fi
18439 if test $_pkg_short_errors_supported = yes; then
18440 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
18441 else
18442 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
18443 fi
18444 # Put the nasty error message in config.log where it belongs
18445 echo "$XRES_PKG_ERRORS" >&5
18446
18447 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto resourceproto >= 1.2.0) were not met:
18448
18449 $XRES_PKG_ERRORS
18450
18451 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18452 installed software in a non-standard prefix.
18453
18454 Alternatively, you may set the environment variables XRES_CFLAGS
18455 and XRES_LIBS to avoid the need to call pkg-config.
18456 See the pkg-config man page for more details." "$LINENO" 5
18457 elif test $pkg_failed = untried; then
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18462 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18463 is in your PATH or set the PKG_CONFIG environment variable to the full
18464 path to pkg-config.
18465
18466 Alternatively, you may set the environment variables XRES_CFLAGS
18467 and XRES_LIBS to avoid the need to call pkg-config.
18468 See the pkg-config man page for more details.
18469
18470 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18471 See \`config.log' for more details" "$LINENO" 5; }
18472 else
18473 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
18474 XRES_LIBS=$pkg_cv_XRES_LIBS
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18476 $as_echo "yes" >&6; }
18477
18478 fi
18479
18480 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
18481
18482 cat >confcache <<\_ACEOF
18483 # This file is a shell script that caches the results of configure
18484 # tests run on this system so they can be shared between configure
18485 # scripts and configure runs, see configure's option --config-cache.
18486 # It is not useful on other systems. If it contains results you don't
18487 # want to keep, you may remove or edit it.
18488 #
18489 # config.status only pays attention to the cache file if you give it
18490 # the --recheck option to rerun configure.
18491 #
18492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18494 # following values.
18495
18496 _ACEOF
18497
18498 # The following way of writing the cache mishandles newlines in values,
18499 # but we know of no workaround that is simple, portable, and efficient.
18500 # So, we kill variables containing newlines.
18501 # Ultrix sh set writes to stderr and can't be redirected directly,
18502 # and sets the high bit in the cache file unless we assign to the vars.
18503 (
18504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18505 eval ac_val=\$$ac_var
18506 case $ac_val in #(
18507 *${as_nl}*)
18508 case $ac_var in #(
18509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18511 esac
18512 case $ac_var in #(
18513 _ | IFS | as_nl) ;; #(
18514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18515 *) { eval $ac_var=; unset $ac_var;} ;;
18516 esac ;;
18517 esac
18518 done
18519
18520 (set) 2>&1 |
18521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18522 *${as_nl}ac_space=\ *)
18523 # `set' does not quote correctly, so add quotes: double-quote
18524 # substitution turns \\\\ into \\, and sed turns \\ into \.
18525 sed -n \
18526 "s/'/'\\\\''/g;
18527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18528 ;; #(
18529 *)
18530 # `set' quotes correctly as required by POSIX, so do not add quotes.
18531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18532 ;;
18533 esac |
18534 sort
18535 ) |
18536 sed '
18537 /^ac_cv_env_/b end
18538 t clear
18539 :clear
18540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18541 t end
18542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18543 :end' >>confcache
18544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18545 if test -w "$cache_file"; then
18546 if test "x$cache_file" != "x/dev/null"; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18548 $as_echo "$as_me: updating cache $cache_file" >&6;}
18549 if test ! -f "$cache_file" || test -h "$cache_file"; then
18550 cat confcache >"$cache_file"
18551 else
18552 case $cache_file in #(
18553 */* | ?:*)
18554 mv -f confcache "$cache_file"$$ &&
18555 mv -f "$cache_file"$$ "$cache_file" ;; #(
18556 *)
18557 mv -f confcache "$cache_file" ;;
18558 esac
18559 fi
18560 fi
18561 else
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18564 fi
18565 fi
18566 rm -f confcache
18567
18568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18569 # Let make expand exec_prefix.
18570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18571
18572 DEFS=-DHAVE_CONFIG_H
18573
18574 ac_libobjs=
18575 ac_ltlibobjs=
18576 U=
18577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18578 # 1. Remove the extension, and $U if already installed.
18579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18580 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18582 # will be set to the directory where LIBOBJS objects are built.
18583 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18584 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18585 done
18586 LIBOBJS=$ac_libobjs
18587
18588 LTLIBOBJS=$ac_ltlibobjs
18589
18590
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18592 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18593 if test -n "$am_sleep_pid"; then
18594 # Hide warnings about reused PIDs.
18595 wait $am_sleep_pid 2>/dev/null
18596 fi
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18598 $as_echo "done" >&6; }
18599 if test -n "$EXEEXT"; then
18600 am__EXEEXT_TRUE=
18601 am__EXEEXT_FALSE='#'
18602 else
18603 am__EXEEXT_TRUE='#'
18604 am__EXEEXT_FALSE=
18605 fi
18606
18607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18608 as_fn_error $? "conditional \"AMDEP\" was never defined.
18609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18610 fi
18611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18612 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18614 fi
18615
18616 : "${CONFIG_STATUS=./config.status}"
18617 ac_write_fail=0
18618 ac_clean_files_save=$ac_clean_files
18619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18622 as_write_fail=0
18623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18624 #! $SHELL
18625 # Generated by $as_me.
18626 # Run this file to recreate the current configuration.
18627 # Compiler output produced by configure, useful for debugging
18628 # configure, is in config.log if it exists.
18629
18630 debug=false
18631 ac_cs_recheck=false
18632 ac_cs_silent=false
18633
18634 SHELL=\${CONFIG_SHELL-$SHELL}
18635 export SHELL
18636 _ASEOF
18637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18638 ## -------------------- ##
18639 ## M4sh Initialization. ##
18640 ## -------------------- ##
18641
18642 # Be more Bourne compatible
18643 DUALCASE=1; export DUALCASE # for MKS sh
18644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18645 emulate sh
18646 NULLCMD=:
18647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18648 # is contrary to our usage. Disable this feature.
18649 alias -g '${1+"$@"}'='"$@"'
18650 setopt NO_GLOB_SUBST
18651 else
18652 case `(set -o) 2>/dev/null` in #(
18653 *posix*) :
18654 set -o posix ;; #(
18655 *) :
18656 ;;
18657 esac
18658 fi
18659
18660
18661 as_nl='
18662 '
18663 export as_nl
18664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18668 # Prefer a ksh shell builtin over an external printf program on Solaris,
18669 # but without wasting forks for bash or zsh.
18670 if test -z "$BASH_VERSION$ZSH_VERSION" \
18671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18672 as_echo='print -r --'
18673 as_echo_n='print -rn --'
18674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18675 as_echo='printf %s\n'
18676 as_echo_n='printf %s'
18677 else
18678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18680 as_echo_n='/usr/ucb/echo -n'
18681 else
18682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18683 as_echo_n_body='eval
18684 arg=$1;
18685 case $arg in #(
18686 *"$as_nl"*)
18687 expr "X$arg" : "X\\(.*\\)$as_nl";
18688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18689 esac;
18690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18691 '
18692 export as_echo_n_body
18693 as_echo_n='sh -c $as_echo_n_body as_echo'
18694 fi
18695 export as_echo_body
18696 as_echo='sh -c $as_echo_body as_echo'
18697 fi
18698
18699 # The user is always right.
18700 if test "${PATH_SEPARATOR+set}" != set; then
18701 PATH_SEPARATOR=:
18702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18704 PATH_SEPARATOR=';'
18705 }
18706 fi
18707
18708
18709 # IFS
18710 # We need space, tab and new line, in precisely that order. Quoting is
18711 # there to prevent editors from complaining about space-tab.
18712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18713 # splitting by setting IFS to empty value.)
18714 IFS=" "" $as_nl"
18715
18716 # Find who we are. Look in the path if we contain no directory separator.
18717 as_myself=
18718 case $0 in #((
18719 *[\\/]* ) as_myself=$0 ;;
18720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18722 do
18723 IFS=$as_save_IFS
18724 test -z "$as_dir" && as_dir=.
18725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18726 done
18727 IFS=$as_save_IFS
18728
18729 ;;
18730 esac
18731 # We did not find ourselves, most probably we were run as `sh COMMAND'
18732 # in which case we are not to be found in the path.
18733 if test "x$as_myself" = x; then
18734 as_myself=$0
18735 fi
18736 if test ! -f "$as_myself"; then
18737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18738 exit 1
18739 fi
18740
18741 # Unset variables that we do not need and which cause bugs (e.g. in
18742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18743 # suppresses any "Segmentation fault" message there. '((' could
18744 # trigger a bug in pdksh 5.2.14.
18745 for as_var in BASH_ENV ENV MAIL MAILPATH
18746 do eval test x\${$as_var+set} = xset \
18747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18748 done
18749 PS1='$ '
18750 PS2='> '
18751 PS4='+ '
18752
18753 # NLS nuisances.
18754 LC_ALL=C
18755 export LC_ALL
18756 LANGUAGE=C
18757 export LANGUAGE
18758
18759 # CDPATH.
18760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18761
18762
18763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18764 # ----------------------------------------
18765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18767 # script with STATUS, using 1 if that was 0.
18768 as_fn_error ()
18769 {
18770 as_status=$1; test $as_status -eq 0 && as_status=1
18771 if test "$4"; then
18772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18774 fi
18775 $as_echo "$as_me: error: $2" >&2
18776 as_fn_exit $as_status
18777 } # as_fn_error
18778
18779
18780 # as_fn_set_status STATUS
18781 # -----------------------
18782 # Set $? to STATUS, without forking.
18783 as_fn_set_status ()
18784 {
18785 return $1
18786 } # as_fn_set_status
18787
18788 # as_fn_exit STATUS
18789 # -----------------
18790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18791 as_fn_exit ()
18792 {
18793 set +e
18794 as_fn_set_status $1
18795 exit $1
18796 } # as_fn_exit
18797
18798 # as_fn_unset VAR
18799 # ---------------
18800 # Portably unset VAR.
18801 as_fn_unset ()
18802 {
18803 { eval $1=; unset $1;}
18804 }
18805 as_unset=as_fn_unset
18806 # as_fn_append VAR VALUE
18807 # ----------------------
18808 # Append the text in VALUE to the end of the definition contained in VAR. Take
18809 # advantage of any shell optimizations that allow amortized linear growth over
18810 # repeated appends, instead of the typical quadratic growth present in naive
18811 # implementations.
18812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18813 eval 'as_fn_append ()
18814 {
18815 eval $1+=\$2
18816 }'
18817 else
18818 as_fn_append ()
18819 {
18820 eval $1=\$$1\$2
18821 }
18822 fi # as_fn_append
18823
18824 # as_fn_arith ARG...
18825 # ------------------
18826 # Perform arithmetic evaluation on the ARGs, and store the result in the
18827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18828 # must be portable across $(()) and expr.
18829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18830 eval 'as_fn_arith ()
18831 {
18832 as_val=$(( $* ))
18833 }'
18834 else
18835 as_fn_arith ()
18836 {
18837 as_val=`expr "$@" || test $? -eq 1`
18838 }
18839 fi # as_fn_arith
18840
18841
18842 if expr a : '\(a\)' >/dev/null 2>&1 &&
18843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18844 as_expr=expr
18845 else
18846 as_expr=false
18847 fi
18848
18849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18850 as_basename=basename
18851 else
18852 as_basename=false
18853 fi
18854
18855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18856 as_dirname=dirname
18857 else
18858 as_dirname=false
18859 fi
18860
18861 as_me=`$as_basename -- "$0" ||
18862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18863 X"$0" : 'X\(//\)$' \| \
18864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18865 $as_echo X/"$0" |
18866 sed '/^.*\/\([^/][^/]*\)\/*$/{
18867 s//\1/
18868 q
18869 }
18870 /^X\/\(\/\/\)$/{
18871 s//\1/
18872 q
18873 }
18874 /^X\/\(\/\).*/{
18875 s//\1/
18876 q
18877 }
18878 s/.*/./; q'`
18879
18880 # Avoid depending upon Character Ranges.
18881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18884 as_cr_digits='0123456789'
18885 as_cr_alnum=$as_cr_Letters$as_cr_digits
18886
18887 ECHO_C= ECHO_N= ECHO_T=
18888 case `echo -n x` in #(((((
18889 -n*)
18890 case `echo 'xy\c'` in
18891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18892 xy) ECHO_C='\c';;
18893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18894 ECHO_T=' ';;
18895 esac;;
18896 *)
18897 ECHO_N='-n';;
18898 esac
18899
18900 rm -f conf$$ conf$$.exe conf$$.file
18901 if test -d conf$$.dir; then
18902 rm -f conf$$.dir/conf$$.file
18903 else
18904 rm -f conf$$.dir
18905 mkdir conf$$.dir 2>/dev/null
18906 fi
18907 if (echo >conf$$.file) 2>/dev/null; then
18908 if ln -s conf$$.file conf$$ 2>/dev/null; then
18909 as_ln_s='ln -s'
18910 # ... but there are two gotchas:
18911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18913 # In both cases, we have to default to `cp -pR'.
18914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18915 as_ln_s='cp -pR'
18916 elif ln conf$$.file conf$$ 2>/dev/null; then
18917 as_ln_s=ln
18918 else
18919 as_ln_s='cp -pR'
18920 fi
18921 else
18922 as_ln_s='cp -pR'
18923 fi
18924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18925 rmdir conf$$.dir 2>/dev/null
18926
18927
18928 # as_fn_mkdir_p
18929 # -------------
18930 # Create "$as_dir" as a directory, including parents if necessary.
18931 as_fn_mkdir_p ()
18932 {
18933
18934 case $as_dir in #(
18935 -*) as_dir=./$as_dir;;
18936 esac
18937 test -d "$as_dir" || eval $as_mkdir_p || {
18938 as_dirs=
18939 while :; do
18940 case $as_dir in #(
18941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18942 *) as_qdir=$as_dir;;
18943 esac
18944 as_dirs="'$as_qdir' $as_dirs"
18945 as_dir=`$as_dirname -- "$as_dir" ||
18946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18947 X"$as_dir" : 'X\(//\)[^/]' \| \
18948 X"$as_dir" : 'X\(//\)$' \| \
18949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18950 $as_echo X"$as_dir" |
18951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18952 s//\1/
18953 q
18954 }
18955 /^X\(\/\/\)[^/].*/{
18956 s//\1/
18957 q
18958 }
18959 /^X\(\/\/\)$/{
18960 s//\1/
18961 q
18962 }
18963 /^X\(\/\).*/{
18964 s//\1/
18965 q
18966 }
18967 s/.*/./; q'`
18968 test -d "$as_dir" && break
18969 done
18970 test -z "$as_dirs" || eval "mkdir $as_dirs"
18971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18972
18973
18974 } # as_fn_mkdir_p
18975 if mkdir -p . 2>/dev/null; then
18976 as_mkdir_p='mkdir -p "$as_dir"'
18977 else
18978 test -d ./-p && rmdir ./-p
18979 as_mkdir_p=false
18980 fi
18981
18982
18983 # as_fn_executable_p FILE
18984 # -----------------------
18985 # Test if FILE is an executable regular file.
18986 as_fn_executable_p ()
18987 {
18988 test -f "$1" && test -x "$1"
18989 } # as_fn_executable_p
18990 as_test_x='test -x'
18991 as_executable_p=as_fn_executable_p
18992
18993 # Sed expression to map a string onto a valid CPP name.
18994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18995
18996 # Sed expression to map a string onto a valid variable name.
18997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18998
18999
19000 exec 6>&1
19001 ## ----------------------------------- ##
19002 ## Main body of $CONFIG_STATUS script. ##
19003 ## ----------------------------------- ##
19004 _ASEOF
19005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19006
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008 # Save the log message, to keep $0 and so on meaningful, and to
19009 # report actual input values of CONFIG_FILES etc. instead of their
19010 # values after options handling.
19011 ac_log="
19012 This file was extended by libXres $as_me 1.2.1, which was
19013 generated by GNU Autoconf 2.69. Invocation command line was
19014
19015 CONFIG_FILES = $CONFIG_FILES
19016 CONFIG_HEADERS = $CONFIG_HEADERS
19017 CONFIG_LINKS = $CONFIG_LINKS
19018 CONFIG_COMMANDS = $CONFIG_COMMANDS
19019 $ $0 $@
19020
19021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19022 "
19023
19024 _ACEOF
19025
19026 case $ac_config_files in *"
19027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19028 esac
19029
19030 case $ac_config_headers in *"
19031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19032 esac
19033
19034
19035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19036 # Files that config.status was made for.
19037 config_files="$ac_config_files"
19038 config_headers="$ac_config_headers"
19039 config_commands="$ac_config_commands"
19040
19041 _ACEOF
19042
19043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044 ac_cs_usage="\
19045 \`$as_me' instantiates files and other configuration actions
19046 from templates according to the current configuration. Unless the files
19047 and actions are specified as TAGs, all are instantiated by default.
19048
19049 Usage: $0 [OPTION]... [TAG]...
19050
19051 -h, --help print this help, then exit
19052 -V, --version print version number and configuration settings, then exit
19053 --config print configuration, then exit
19054 -q, --quiet, --silent
19055 do not print progress messages
19056 -d, --debug don't remove temporary files
19057 --recheck update $as_me by reconfiguring in the same conditions
19058 --file=FILE[:TEMPLATE]
19059 instantiate the configuration file FILE
19060 --header=FILE[:TEMPLATE]
19061 instantiate the configuration header FILE
19062
19063 Configuration files:
19064 $config_files
19065
19066 Configuration headers:
19067 $config_headers
19068
19069 Configuration commands:
19070 $config_commands
19071
19072 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/issues>."
19073
19074 _ACEOF
19075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19077 ac_cs_version="\\
19078 libXres config.status 1.2.1
19079 configured by $0, generated by GNU Autoconf 2.69,
19080 with options \\"\$ac_cs_config\\"
19081
19082 Copyright (C) 2012 Free Software Foundation, Inc.
19083 This config.status script is free software; the Free Software Foundation
19084 gives unlimited permission to copy, distribute and modify it."
19085
19086 ac_pwd='$ac_pwd'
19087 srcdir='$srcdir'
19088 INSTALL='$INSTALL'
19089 MKDIR_P='$MKDIR_P'
19090 AWK='$AWK'
19091 test -n "\$AWK" || AWK=awk
19092 _ACEOF
19093
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 # The default lists apply if the user does not specify any file.
19096 ac_need_defaults=:
19097 while test $# != 0
19098 do
19099 case $1 in
19100 --*=?*)
19101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19103 ac_shift=:
19104 ;;
19105 --*=)
19106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19107 ac_optarg=
19108 ac_shift=:
19109 ;;
19110 *)
19111 ac_option=$1
19112 ac_optarg=$2
19113 ac_shift=shift
19114 ;;
19115 esac
19116
19117 case $ac_option in
19118 # Handling of the options.
19119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19120 ac_cs_recheck=: ;;
19121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19122 $as_echo "$ac_cs_version"; exit ;;
19123 --config | --confi | --conf | --con | --co | --c )
19124 $as_echo "$ac_cs_config"; exit ;;
19125 --debug | --debu | --deb | --de | --d | -d )
19126 debug=: ;;
19127 --file | --fil | --fi | --f )
19128 $ac_shift
19129 case $ac_optarg in
19130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19131 '') as_fn_error $? "missing file argument" ;;
19132 esac
19133 as_fn_append CONFIG_FILES " '$ac_optarg'"
19134 ac_need_defaults=false;;
19135 --header | --heade | --head | --hea )
19136 $ac_shift
19137 case $ac_optarg in
19138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19139 esac
19140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19141 ac_need_defaults=false;;
19142 --he | --h)
19143 # Conflict between --help and --header
19144 as_fn_error $? "ambiguous option: \`$1'
19145 Try \`$0 --help' for more information.";;
19146 --help | --hel | -h )
19147 $as_echo "$ac_cs_usage"; exit ;;
19148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19150 ac_cs_silent=: ;;
19151
19152 # This is an error.
19153 -*) as_fn_error $? "unrecognized option: \`$1'
19154 Try \`$0 --help' for more information." ;;
19155
19156 *) as_fn_append ac_config_targets " $1"
19157 ac_need_defaults=false ;;
19158
19159 esac
19160 shift
19161 done
19162
19163 ac_configure_extra_args=
19164
19165 if $ac_cs_silent; then
19166 exec 6>/dev/null
19167 ac_configure_extra_args="$ac_configure_extra_args --silent"
19168 fi
19169
19170 _ACEOF
19171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19172 if \$ac_cs_recheck; then
19173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19174 shift
19175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19176 CONFIG_SHELL='$SHELL'
19177 export CONFIG_SHELL
19178 exec "\$@"
19179 fi
19180
19181 _ACEOF
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183 exec 5>>config.log
19184 {
19185 echo
19186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19187 ## Running $as_me. ##
19188 _ASBOX
19189 $as_echo "$ac_log"
19190 } >&5
19191
19192 _ACEOF
19193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19194 #
19195 # INIT-COMMANDS
19196 #
19197 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19198
19199
19200 # The HP-UX ksh and POSIX shell print the target directory to stdout
19201 # if CDPATH is set.
19202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19203
19204 sed_quote_subst='$sed_quote_subst'
19205 double_quote_subst='$double_quote_subst'
19206 delay_variable_subst='$delay_variable_subst'
19207 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19208 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19209 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19210 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19211 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19212 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19213 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19214 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19215 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19216 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19217 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19218 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19219 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19220 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19221 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19222 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19223 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19224 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19225 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19226 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19227 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19228 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19229 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19230 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19231 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19232 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19233 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19234 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19235 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19236 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19237 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19238 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19239 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19240 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19241 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19242 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19243 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19244 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19245 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19246 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19247 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19250 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19251 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19252 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19253 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19254 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19255 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19256 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19257 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19258 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19259 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19260 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19261 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19263 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19264 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19265 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"`'
19266 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19267 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19268 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19269 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19270 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19271 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19272 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19274 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19275 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19276 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19277 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19278 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19279 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19280 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19281 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19282 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19283 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19284 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19285 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19286 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19287 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19288 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19289 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19290 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19291 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19292 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19293 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19294 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19295 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19296 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19297 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19298 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19299 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19300 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19301 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19302 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19303 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19304 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19305 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19306 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19307 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19308 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19309 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19315 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19316 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19317 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19318 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19319 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19320 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19321 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19322 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19323 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19324 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19325 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19326 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19327 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19328 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19329 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19330 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19331 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19332 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19333 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19334 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19335 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19336 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19337 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19338 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19339 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19340 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19341 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19342
19343 LTCC='$LTCC'
19344 LTCFLAGS='$LTCFLAGS'
19345 compiler='$compiler_DEFAULT'
19346
19347 # A function that is used when there is no print builtin or printf.
19348 func_fallback_echo ()
19349 {
19350 eval 'cat <<_LTECHO_EOF
19351 \$1
19352 _LTECHO_EOF'
19353 }
19354
19355 # Quote evaled strings.
19356 for var in SHELL \
19357 ECHO \
19358 PATH_SEPARATOR \
19359 SED \
19360 GREP \
19361 EGREP \
19362 FGREP \
19363 LD \
19364 NM \
19365 LN_S \
19366 lt_SP2NL \
19367 lt_NL2SP \
19368 reload_flag \
19369 OBJDUMP \
19370 deplibs_check_method \
19371 file_magic_cmd \
19372 file_magic_glob \
19373 want_nocaseglob \
19374 DLLTOOL \
19375 sharedlib_from_linklib_cmd \
19376 AR \
19377 AR_FLAGS \
19378 archiver_list_spec \
19379 STRIP \
19380 RANLIB \
19381 CC \
19382 CFLAGS \
19383 compiler \
19384 lt_cv_sys_global_symbol_pipe \
19385 lt_cv_sys_global_symbol_to_cdecl \
19386 lt_cv_sys_global_symbol_to_import \
19387 lt_cv_sys_global_symbol_to_c_name_address \
19388 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19389 lt_cv_nm_interface \
19390 nm_file_list_spec \
19391 lt_cv_truncate_bin \
19392 lt_prog_compiler_no_builtin_flag \
19393 lt_prog_compiler_pic \
19394 lt_prog_compiler_wl \
19395 lt_prog_compiler_static \
19396 lt_cv_prog_compiler_c_o \
19397 need_locks \
19398 MANIFEST_TOOL \
19399 DSYMUTIL \
19400 NMEDIT \
19401 LIPO \
19402 OTOOL \
19403 OTOOL64 \
19404 shrext_cmds \
19405 export_dynamic_flag_spec \
19406 whole_archive_flag_spec \
19407 compiler_needs_object \
19408 with_gnu_ld \
19409 allow_undefined_flag \
19410 no_undefined_flag \
19411 hardcode_libdir_flag_spec \
19412 hardcode_libdir_separator \
19413 exclude_expsyms \
19414 include_expsyms \
19415 file_list_spec \
19416 variables_saved_for_relink \
19417 libname_spec \
19418 library_names_spec \
19419 soname_spec \
19420 install_override_mode \
19421 finish_eval \
19422 old_striplib \
19423 striplib; do
19424 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19425 *[\\\\\\\`\\"\\\$]*)
19426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19427 ;;
19428 *)
19429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19430 ;;
19431 esac
19432 done
19433
19434 # Double-quote double-evaled strings.
19435 for var in reload_cmds \
19436 old_postinstall_cmds \
19437 old_postuninstall_cmds \
19438 old_archive_cmds \
19439 extract_expsyms_cmds \
19440 old_archive_from_new_cmds \
19441 old_archive_from_expsyms_cmds \
19442 archive_cmds \
19443 archive_expsym_cmds \
19444 module_cmds \
19445 module_expsym_cmds \
19446 export_symbols_cmds \
19447 prelink_cmds \
19448 postlink_cmds \
19449 postinstall_cmds \
19450 postuninstall_cmds \
19451 finish_cmds \
19452 sys_lib_search_path_spec \
19453 configure_time_dlsearch_path \
19454 configure_time_lt_sys_library_path; do
19455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19456 *[\\\\\\\`\\"\\\$]*)
19457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19458 ;;
19459 *)
19460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19461 ;;
19462 esac
19463 done
19464
19465 ac_aux_dir='$ac_aux_dir'
19466
19467 # See if we are running on zsh, and set the options that allow our
19468 # commands through without removal of \ escapes INIT.
19469 if test -n "\${ZSH_VERSION+set}"; then
19470 setopt NO_GLOB_SUBST
19471 fi
19472
19473
19474 PACKAGE='$PACKAGE'
19475 VERSION='$VERSION'
19476 RM='$RM'
19477 ofile='$ofile'
19478
19479
19480
19481
19482 _ACEOF
19483
19484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485
19486 # Handling of arguments.
19487 for ac_config_target in $ac_config_targets
19488 do
19489 case $ac_config_target in
19490 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19491 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19492 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19493 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19494 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19495 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19496 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
19497
19498 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19499 esac
19500 done
19501
19502
19503 # If the user did not use the arguments to specify the items to instantiate,
19504 # then the envvar interface is used. Set only those that are not.
19505 # We use the long form for the default assignment because of an extremely
19506 # bizarre bug on SunOS 4.1.3.
19507 if $ac_need_defaults; then
19508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19511 fi
19512
19513 # Have a temporary directory for convenience. Make it in the build tree
19514 # simply because there is no reason against having it here, and in addition,
19515 # creating and moving files from /tmp can sometimes cause problems.
19516 # Hook for its removal unless debugging.
19517 # Note that there is a small window in which the directory will not be cleaned:
19518 # after its creation but before its name has been assigned to `$tmp'.
19519 $debug ||
19520 {
19521 tmp= ac_tmp=
19522 trap 'exit_status=$?
19523 : "${ac_tmp:=$tmp}"
19524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19525 ' 0
19526 trap 'as_fn_exit 1' 1 2 13 15
19527 }
19528 # Create a (secure) tmp directory for tmp files.
19529
19530 {
19531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19532 test -d "$tmp"
19533 } ||
19534 {
19535 tmp=./conf$$-$RANDOM
19536 (umask 077 && mkdir "$tmp")
19537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19538 ac_tmp=$tmp
19539
19540 # Set up the scripts for CONFIG_FILES section.
19541 # No need to generate them if there are no CONFIG_FILES.
19542 # This happens for instance with `./config.status config.h'.
19543 if test -n "$CONFIG_FILES"; then
19544
19545
19546 ac_cr=`echo X | tr X '\015'`
19547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19548 # But we know of no other shell where ac_cr would be empty at this
19549 # point, so we can use a bashism as a fallback.
19550 if test "x$ac_cr" = x; then
19551 eval ac_cr=\$\'\\r\'
19552 fi
19553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19555 ac_cs_awk_cr='\\r'
19556 else
19557 ac_cs_awk_cr=$ac_cr
19558 fi
19559
19560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19561 _ACEOF
19562
19563
19564 {
19565 echo "cat >conf$$subs.awk <<_ACEOF" &&
19566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19567 echo "_ACEOF"
19568 } >conf$$subs.sh ||
19569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19571 ac_delim='%!_!# '
19572 for ac_last_try in false false false false false :; do
19573 . ./conf$$subs.sh ||
19574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19575
19576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19577 if test $ac_delim_n = $ac_delim_num; then
19578 break
19579 elif $ac_last_try; then
19580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19581 else
19582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19583 fi
19584 done
19585 rm -f conf$$subs.sh
19586
19587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19589 _ACEOF
19590 sed -n '
19591 h
19592 s/^/S["/; s/!.*/"]=/
19593 p
19594 g
19595 s/^[^!]*!//
19596 :repl
19597 t repl
19598 s/'"$ac_delim"'$//
19599 t delim
19600 :nl
19601 h
19602 s/\(.\{148\}\)..*/\1/
19603 t more1
19604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19605 p
19606 n
19607 b repl
19608 :more1
19609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19610 p
19611 g
19612 s/.\{148\}//
19613 t nl
19614 :delim
19615 h
19616 s/\(.\{148\}\)..*/\1/
19617 t more2
19618 s/["\\]/\\&/g; s/^/"/; s/$/"/
19619 p
19620 b
19621 :more2
19622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19623 p
19624 g
19625 s/.\{148\}//
19626 t delim
19627 ' <conf$$subs.awk | sed '
19628 /^[^""]/{
19629 N
19630 s/\n//
19631 }
19632 ' >>$CONFIG_STATUS || ac_write_fail=1
19633 rm -f conf$$subs.awk
19634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19635 _ACAWK
19636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19637 for (key in S) S_is_set[key] = 1
19638 FS = ""
19639
19640 }
19641 {
19642 line = $ 0
19643 nfields = split(line, field, "@")
19644 substed = 0
19645 len = length(field[1])
19646 for (i = 2; i < nfields; i++) {
19647 key = field[i]
19648 keylen = length(key)
19649 if (S_is_set[key]) {
19650 value = S[key]
19651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19652 len += length(value) + length(field[++i])
19653 substed = 1
19654 } else
19655 len += 1 + keylen
19656 }
19657
19658 print line
19659 }
19660
19661 _ACAWK
19662 _ACEOF
19663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19666 else
19667 cat
19668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19670 _ACEOF
19671
19672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19674 # trailing colons and then remove the whole line if VPATH becomes empty
19675 # (actually we leave an empty line to preserve line numbers).
19676 if test "x$srcdir" = x.; then
19677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19678 h
19679 s///
19680 s/^/:/
19681 s/[ ]*$/:/
19682 s/:\$(srcdir):/:/g
19683 s/:\${srcdir}:/:/g
19684 s/:@srcdir@:/:/g
19685 s/^:*//
19686 s/:*$//
19687 x
19688 s/\(=[ ]*\).*/\1/
19689 G
19690 s/\n//
19691 s/^[^=]*=[ ]*$//
19692 }'
19693 fi
19694
19695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19696 fi # test -n "$CONFIG_FILES"
19697
19698 # Set up the scripts for CONFIG_HEADERS section.
19699 # No need to generate them if there are no CONFIG_HEADERS.
19700 # This happens for instance with `./config.status Makefile'.
19701 if test -n "$CONFIG_HEADERS"; then
19702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19703 BEGIN {
19704 _ACEOF
19705
19706 # Transform confdefs.h into an awk script `defines.awk', embedded as
19707 # here-document in config.status, that substitutes the proper values into
19708 # config.h.in to produce config.h.
19709
19710 # Create a delimiter string that does not exist in confdefs.h, to ease
19711 # handling of long lines.
19712 ac_delim='%!_!# '
19713 for ac_last_try in false false :; do
19714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19715 if test -z "$ac_tt"; then
19716 break
19717 elif $ac_last_try; then
19718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19719 else
19720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19721 fi
19722 done
19723
19724 # For the awk script, D is an array of macro values keyed by name,
19725 # likewise P contains macro parameters if any. Preserve backslash
19726 # newline sequences.
19727
19728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19729 sed -n '
19730 s/.\{148\}/&'"$ac_delim"'/g
19731 t rset
19732 :rset
19733 s/^[ ]*#[ ]*define[ ][ ]*/ /
19734 t def
19735 d
19736 :def
19737 s/\\$//
19738 t bsnl
19739 s/["\\]/\\&/g
19740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19741 D["\1"]=" \3"/p
19742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19743 d
19744 :bsnl
19745 s/["\\]/\\&/g
19746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19747 D["\1"]=" \3\\\\\\n"\\/p
19748 t cont
19749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19750 t cont
19751 d
19752 :cont
19753 n
19754 s/.\{148\}/&'"$ac_delim"'/g
19755 t clear
19756 :clear
19757 s/\\$//
19758 t bsnlc
19759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19760 d
19761 :bsnlc
19762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19763 b cont
19764 ' <confdefs.h | sed '
19765 s/'"$ac_delim"'/"\\\
19766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19767
19768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19769 for (key in D) D_is_set[key] = 1
19770 FS = ""
19771 }
19772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19773 line = \$ 0
19774 split(line, arg, " ")
19775 if (arg[1] == "#") {
19776 defundef = arg[2]
19777 mac1 = arg[3]
19778 } else {
19779 defundef = substr(arg[1], 2)
19780 mac1 = arg[2]
19781 }
19782 split(mac1, mac2, "(") #)
19783 macro = mac2[1]
19784 prefix = substr(line, 1, index(line, defundef) - 1)
19785 if (D_is_set[macro]) {
19786 # Preserve the white space surrounding the "#".
19787 print prefix "define", macro P[macro] D[macro]
19788 next
19789 } else {
19790 # Replace #undef with comments. This is necessary, for example,
19791 # in the case of _POSIX_SOURCE, which is predefined and required
19792 # on some systems where configure will not decide to define it.
19793 if (defundef == "undef") {
19794 print "/*", prefix defundef, macro, "*/"
19795 next
19796 }
19797 }
19798 }
19799 { print }
19800 _ACAWK
19801 _ACEOF
19802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19804 fi # test -n "$CONFIG_HEADERS"
19805
19806
19807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19808 shift
19809 for ac_tag
19810 do
19811 case $ac_tag in
19812 :[FHLC]) ac_mode=$ac_tag; continue;;
19813 esac
19814 case $ac_mode$ac_tag in
19815 :[FHL]*:*);;
19816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19817 :[FH]-) ac_tag=-:-;;
19818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19819 esac
19820 ac_save_IFS=$IFS
19821 IFS=:
19822 set x $ac_tag
19823 IFS=$ac_save_IFS
19824 shift
19825 ac_file=$1
19826 shift
19827
19828 case $ac_mode in
19829 :L) ac_source=$1;;
19830 :[FH])
19831 ac_file_inputs=
19832 for ac_f
19833 do
19834 case $ac_f in
19835 -) ac_f="$ac_tmp/stdin";;
19836 *) # Look for the file first in the build tree, then in the source tree
19837 # (if the path is not absolute). The absolute path cannot be DOS-style,
19838 # because $ac_f cannot contain `:'.
19839 test -f "$ac_f" ||
19840 case $ac_f in
19841 [\\/$]*) false;;
19842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19843 esac ||
19844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19845 esac
19846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19847 as_fn_append ac_file_inputs " '$ac_f'"
19848 done
19849
19850 # Let's still pretend it is `configure' which instantiates (i.e., don't
19851 # use $as_me), people would be surprised to read:
19852 # /* config.h. Generated by config.status. */
19853 configure_input='Generated from '`
19854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19855 `' by configure.'
19856 if test x"$ac_file" != x-; then
19857 configure_input="$ac_file. $configure_input"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19859 $as_echo "$as_me: creating $ac_file" >&6;}
19860 fi
19861 # Neutralize special characters interpreted by sed in replacement strings.
19862 case $configure_input in #(
19863 *\&* | *\|* | *\\* )
19864 ac_sed_conf_input=`$as_echo "$configure_input" |
19865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19866 *) ac_sed_conf_input=$configure_input;;
19867 esac
19868
19869 case $ac_tag in
19870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19872 esac
19873 ;;
19874 esac
19875
19876 ac_dir=`$as_dirname -- "$ac_file" ||
19877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19878 X"$ac_file" : 'X\(//\)[^/]' \| \
19879 X"$ac_file" : 'X\(//\)$' \| \
19880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19881 $as_echo X"$ac_file" |
19882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19883 s//\1/
19884 q
19885 }
19886 /^X\(\/\/\)[^/].*/{
19887 s//\1/
19888 q
19889 }
19890 /^X\(\/\/\)$/{
19891 s//\1/
19892 q
19893 }
19894 /^X\(\/\).*/{
19895 s//\1/
19896 q
19897 }
19898 s/.*/./; q'`
19899 as_dir="$ac_dir"; as_fn_mkdir_p
19900 ac_builddir=.
19901
19902 case "$ac_dir" in
19903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19904 *)
19905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19906 # A ".." for each directory in $ac_dir_suffix.
19907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19908 case $ac_top_builddir_sub in
19909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19911 esac ;;
19912 esac
19913 ac_abs_top_builddir=$ac_pwd
19914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19915 # for backward compatibility:
19916 ac_top_builddir=$ac_top_build_prefix
19917
19918 case $srcdir in
19919 .) # We are building in place.
19920 ac_srcdir=.
19921 ac_top_srcdir=$ac_top_builddir_sub
19922 ac_abs_top_srcdir=$ac_pwd ;;
19923 [\\/]* | ?:[\\/]* ) # Absolute name.
19924 ac_srcdir=$srcdir$ac_dir_suffix;
19925 ac_top_srcdir=$srcdir
19926 ac_abs_top_srcdir=$srcdir ;;
19927 *) # Relative name.
19928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19929 ac_top_srcdir=$ac_top_build_prefix$srcdir
19930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19931 esac
19932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19933
19934
19935 case $ac_mode in
19936 :F)
19937 #
19938 # CONFIG_FILE
19939 #
19940
19941 case $INSTALL in
19942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19944 esac
19945 ac_MKDIR_P=$MKDIR_P
19946 case $MKDIR_P in
19947 [\\/$]* | ?:[\\/]* ) ;;
19948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19949 esac
19950 _ACEOF
19951
19952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 # If the template does not know about datarootdir, expand it.
19954 # FIXME: This hack should be removed a few years after 2.60.
19955 ac_datarootdir_hack=; ac_datarootdir_seen=
19956 ac_sed_dataroot='
19957 /datarootdir/ {
19958 p
19959 q
19960 }
19961 /@datadir@/p
19962 /@docdir@/p
19963 /@infodir@/p
19964 /@localedir@/p
19965 /@mandir@/p'
19966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19967 *datarootdir*) ac_datarootdir_seen=yes;;
19968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19971 _ACEOF
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973 ac_datarootdir_hack='
19974 s&@datadir@&$datadir&g
19975 s&@docdir@&$docdir&g
19976 s&@infodir@&$infodir&g
19977 s&@localedir@&$localedir&g
19978 s&@mandir@&$mandir&g
19979 s&\\\${datarootdir}&$datarootdir&g' ;;
19980 esac
19981 _ACEOF
19982
19983 # Neutralize VPATH when `$srcdir' = `.'.
19984 # Shell code in configure.ac might set extrasub.
19985 # FIXME: do we really want to maintain this feature?
19986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987 ac_sed_extra="$ac_vpsub
19988 $extrasub
19989 _ACEOF
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 :t
19992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19993 s|@configure_input@|$ac_sed_conf_input|;t t
19994 s&@top_builddir@&$ac_top_builddir_sub&;t t
19995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19996 s&@srcdir@&$ac_srcdir&;t t
19997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19998 s&@top_srcdir@&$ac_top_srcdir&;t t
19999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20000 s&@builddir@&$ac_builddir&;t t
20001 s&@abs_builddir@&$ac_abs_builddir&;t t
20002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20003 s&@INSTALL@&$ac_INSTALL&;t t
20004 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20005 $ac_datarootdir_hack
20006 "
20007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20009
20010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20013 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20015 which seems to be undefined. Please make sure it is defined" >&5
20016 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20017 which seems to be undefined. Please make sure it is defined" >&2;}
20018
20019 rm -f "$ac_tmp/stdin"
20020 case $ac_file in
20021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20023 esac \
20024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20025 ;;
20026 :H)
20027 #
20028 # CONFIG_HEADER
20029 #
20030 if test x"$ac_file" != x-; then
20031 {
20032 $as_echo "/* $configure_input */" \
20033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20034 } >"$ac_tmp/config.h" \
20035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20039 else
20040 rm -f "$ac_file"
20041 mv "$ac_tmp/config.h" "$ac_file" \
20042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20043 fi
20044 else
20045 $as_echo "/* $configure_input */" \
20046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20047 || as_fn_error $? "could not create -" "$LINENO" 5
20048 fi
20049 # Compute "$ac_file"'s index in $config_headers.
20050 _am_arg="$ac_file"
20051 _am_stamp_count=1
20052 for _am_header in $config_headers :; do
20053 case $_am_header in
20054 $_am_arg | $_am_arg:* )
20055 break ;;
20056 * )
20057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20058 esac
20059 done
20060 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20061 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062 X"$_am_arg" : 'X\(//\)[^/]' \| \
20063 X"$_am_arg" : 'X\(//\)$' \| \
20064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20065 $as_echo X"$_am_arg" |
20066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20067 s//\1/
20068 q
20069 }
20070 /^X\(\/\/\)[^/].*/{
20071 s//\1/
20072 q
20073 }
20074 /^X\(\/\/\)$/{
20075 s//\1/
20076 q
20077 }
20078 /^X\(\/\).*/{
20079 s//\1/
20080 q
20081 }
20082 s/.*/./; q'`/stamp-h$_am_stamp_count
20083 ;;
20084
20085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20086 $as_echo "$as_me: executing $ac_file commands" >&6;}
20087 ;;
20088 esac
20089
20090
20091 case $ac_file$ac_mode in
20092 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20093 # Older Autoconf quotes --file arguments for eval, but not when files
20094 # are listed without --file. Let's play safe and only enable the eval
20095 # if we detect the quoting.
20096 # TODO: see whether this extra hack can be removed once we start
20097 # requiring Autoconf 2.70 or later.
20098 case $CONFIG_FILES in #(
20099 *\'*) :
20100 eval set x "$CONFIG_FILES" ;; #(
20101 *) :
20102 set x $CONFIG_FILES ;; #(
20103 *) :
20104 ;;
20105 esac
20106 shift
20107 # Used to flag and report bootstrapping failures.
20108 am_rc=0
20109 for am_mf
20110 do
20111 # Strip MF so we end up with the name of the file.
20112 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20113 # Check whether this is an Automake generated Makefile which includes
20114 # dependency-tracking related rules and includes.
20115 # Grep'ing the whole file directly is not great: AIX grep has a line
20116 # limit of 2048, but all sed's we know have understand at least 4000.
20117 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20118 || continue
20119 am_dirpart=`$as_dirname -- "$am_mf" ||
20120 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20121 X"$am_mf" : 'X\(//\)[^/]' \| \
20122 X"$am_mf" : 'X\(//\)$' \| \
20123 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20124 $as_echo X"$am_mf" |
20125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20126 s//\1/
20127 q
20128 }
20129 /^X\(\/\/\)[^/].*/{
20130 s//\1/
20131 q
20132 }
20133 /^X\(\/\/\)$/{
20134 s//\1/
20135 q
20136 }
20137 /^X\(\/\).*/{
20138 s//\1/
20139 q
20140 }
20141 s/.*/./; q'`
20142 am_filepart=`$as_basename -- "$am_mf" ||
20143 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20144 X"$am_mf" : 'X\(//\)$' \| \
20145 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20146 $as_echo X/"$am_mf" |
20147 sed '/^.*\/\([^/][^/]*\)\/*$/{
20148 s//\1/
20149 q
20150 }
20151 /^X\/\(\/\/\)$/{
20152 s//\1/
20153 q
20154 }
20155 /^X\/\(\/\).*/{
20156 s//\1/
20157 q
20158 }
20159 s/.*/./; q'`
20160 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20161 && sed -e '/# am--include-marker/d' "$am_filepart" \
20162 | $MAKE -f - am--depfiles" >&5
20163 (cd "$am_dirpart" \
20164 && sed -e '/# am--include-marker/d' "$am_filepart" \
20165 | $MAKE -f - am--depfiles) >&5 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } || am_rc=$?
20169 done
20170 if test $am_rc -ne 0; then
20171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20173 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20174 for automatic dependency tracking. If GNU make was not used, consider
20175 re-running the configure script with MAKE=\"gmake\" (or whatever is
20176 necessary). You can also try re-running configure with the
20177 '--disable-dependency-tracking' option to at least be able to build
20178 the package (albeit without support for automatic dependency tracking).
20179 See \`config.log' for more details" "$LINENO" 5; }
20180 fi
20181 { am_dirpart=; unset am_dirpart;}
20182 { am_filepart=; unset am_filepart;}
20183 { am_mf=; unset am_mf;}
20184 { am_rc=; unset am_rc;}
20185 rm -f conftest-deps.mk
20186 }
20187 ;;
20188 "libtool":C)
20189
20190 # See if we are running on zsh, and set the options that allow our
20191 # commands through without removal of \ escapes.
20192 if test -n "${ZSH_VERSION+set}"; then
20193 setopt NO_GLOB_SUBST
20194 fi
20195
20196 cfgfile=${ofile}T
20197 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20198 $RM "$cfgfile"
20199
20200 cat <<_LT_EOF >> "$cfgfile"
20201 #! $SHELL
20202 # Generated automatically by $as_me ($PACKAGE) $VERSION
20203 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20204
20205 # Provide generalized library-building support services.
20206 # Written by Gordon Matzigkeit, 1996
20207
20208 # Copyright (C) 2014 Free Software Foundation, Inc.
20209 # This is free software; see the source for copying conditions. There is NO
20210 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20211
20212 # GNU Libtool is free software; you can redistribute it and/or modify
20213 # it under the terms of the GNU General Public License as published by
20214 # the Free Software Foundation; either version 2 of of the License, or
20215 # (at your option) any later version.
20216 #
20217 # As a special exception to the GNU General Public License, if you
20218 # distribute this file as part of a program or library that is built
20219 # using GNU Libtool, you may include this file under the same
20220 # distribution terms that you use for the rest of that program.
20221 #
20222 # GNU Libtool is distributed in the hope that it will be useful, but
20223 # WITHOUT ANY WARRANTY; without even the implied warranty of
20224 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20225 # GNU General Public License for more details.
20226 #
20227 # You should have received a copy of the GNU General Public License
20228 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20229
20230
20231 # The names of the tagged configurations supported by this script.
20232 available_tags=''
20233
20234 # Configured defaults for sys_lib_dlsearch_path munging.
20235 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20236
20237 # ### BEGIN LIBTOOL CONFIG
20238
20239 # Which release of libtool.m4 was used?
20240 macro_version=$macro_version
20241 macro_revision=$macro_revision
20242
20243 # Whether or not to build shared libraries.
20244 build_libtool_libs=$enable_shared
20245
20246 # Whether or not to build static libraries.
20247 build_old_libs=$enable_static
20248
20249 # What type of objects to build.
20250 pic_mode=$pic_mode
20251
20252 # Whether or not to optimize for fast installation.
20253 fast_install=$enable_fast_install
20254
20255 # Shared archive member basename,for filename based shared library versioning on AIX.
20256 shared_archive_member_spec=$shared_archive_member_spec
20257
20258 # Shell to use when invoking shell scripts.
20259 SHELL=$lt_SHELL
20260
20261 # An echo program that protects backslashes.
20262 ECHO=$lt_ECHO
20263
20264 # The PATH separator for the build system.
20265 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20266
20267 # The host system.
20268 host_alias=$host_alias
20269 host=$host
20270 host_os=$host_os
20271
20272 # The build system.
20273 build_alias=$build_alias
20274 build=$build
20275 build_os=$build_os
20276
20277 # A sed program that does not truncate output.
20278 SED=$lt_SED
20279
20280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20281 Xsed="\$SED -e 1s/^X//"
20282
20283 # A grep program that handles long lines.
20284 GREP=$lt_GREP
20285
20286 # An ERE matcher.
20287 EGREP=$lt_EGREP
20288
20289 # A literal string matcher.
20290 FGREP=$lt_FGREP
20291
20292 # A BSD- or MS-compatible name lister.
20293 NM=$lt_NM
20294
20295 # Whether we need soft or hard links.
20296 LN_S=$lt_LN_S
20297
20298 # What is the maximum length of a command?
20299 max_cmd_len=$max_cmd_len
20300
20301 # Object file suffix (normally "o").
20302 objext=$ac_objext
20303
20304 # Executable file suffix (normally "").
20305 exeext=$exeext
20306
20307 # whether the shell understands "unset".
20308 lt_unset=$lt_unset
20309
20310 # turn spaces into newlines.
20311 SP2NL=$lt_lt_SP2NL
20312
20313 # turn newlines into spaces.
20314 NL2SP=$lt_lt_NL2SP
20315
20316 # convert \$build file names to \$host format.
20317 to_host_file_cmd=$lt_cv_to_host_file_cmd
20318
20319 # convert \$build files to toolchain format.
20320 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20321
20322 # An object symbol dumper.
20323 OBJDUMP=$lt_OBJDUMP
20324
20325 # Method to check whether dependent libraries are shared objects.
20326 deplibs_check_method=$lt_deplibs_check_method
20327
20328 # Command to use when deplibs_check_method = "file_magic".
20329 file_magic_cmd=$lt_file_magic_cmd
20330
20331 # How to find potential files when deplibs_check_method = "file_magic".
20332 file_magic_glob=$lt_file_magic_glob
20333
20334 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20335 want_nocaseglob=$lt_want_nocaseglob
20336
20337 # DLL creation program.
20338 DLLTOOL=$lt_DLLTOOL
20339
20340 # Command to associate shared and link libraries.
20341 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20342
20343 # The archiver.
20344 AR=$lt_AR
20345
20346 # Flags to create an archive.
20347 AR_FLAGS=$lt_AR_FLAGS
20348
20349 # How to feed a file listing to the archiver.
20350 archiver_list_spec=$lt_archiver_list_spec
20351
20352 # A symbol stripping program.
20353 STRIP=$lt_STRIP
20354
20355 # Commands used to install an old-style archive.
20356 RANLIB=$lt_RANLIB
20357 old_postinstall_cmds=$lt_old_postinstall_cmds
20358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20359
20360 # Whether to use a lock for old archive extraction.
20361 lock_old_archive_extraction=$lock_old_archive_extraction
20362
20363 # A C compiler.
20364 LTCC=$lt_CC
20365
20366 # LTCC compiler flags.
20367 LTCFLAGS=$lt_CFLAGS
20368
20369 # Take the output of nm and produce a listing of raw symbols and C names.
20370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20371
20372 # Transform the output of nm in a proper C declaration.
20373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20374
20375 # Transform the output of nm into a list of symbols to manually relocate.
20376 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20377
20378 # Transform the output of nm in a C name address pair.
20379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20380
20381 # Transform the output of nm in a C name address pair when lib prefix is needed.
20382 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20383
20384 # The name lister interface.
20385 nm_interface=$lt_lt_cv_nm_interface
20386
20387 # Specify filename containing input files for \$NM.
20388 nm_file_list_spec=$lt_nm_file_list_spec
20389
20390 # The root where to search for dependent libraries,and where our libraries should be installed.
20391 lt_sysroot=$lt_sysroot
20392
20393 # Command to truncate a binary pipe.
20394 lt_truncate_bin=$lt_lt_cv_truncate_bin
20395
20396 # The name of the directory that contains temporary libtool files.
20397 objdir=$objdir
20398
20399 # Used to examine libraries when file_magic_cmd begins with "file".
20400 MAGIC_CMD=$MAGIC_CMD
20401
20402 # Must we lock files when doing compilation?
20403 need_locks=$lt_need_locks
20404
20405 # Manifest tool.
20406 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20407
20408 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20409 DSYMUTIL=$lt_DSYMUTIL
20410
20411 # Tool to change global to local symbols on Mac OS X.
20412 NMEDIT=$lt_NMEDIT
20413
20414 # Tool to manipulate fat objects and archives on Mac OS X.
20415 LIPO=$lt_LIPO
20416
20417 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20418 OTOOL=$lt_OTOOL
20419
20420 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20421 OTOOL64=$lt_OTOOL64
20422
20423 # Old archive suffix (normally "a").
20424 libext=$libext
20425
20426 # Shared library suffix (normally ".so").
20427 shrext_cmds=$lt_shrext_cmds
20428
20429 # The commands to extract the exported symbol list from a shared archive.
20430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20431
20432 # Variables whose values should be saved in libtool wrapper scripts and
20433 # restored at link time.
20434 variables_saved_for_relink=$lt_variables_saved_for_relink
20435
20436 # Do we need the "lib" prefix for modules?
20437 need_lib_prefix=$need_lib_prefix
20438
20439 # Do we need a version for libraries?
20440 need_version=$need_version
20441
20442 # Library versioning type.
20443 version_type=$version_type
20444
20445 # Shared library runtime path variable.
20446 runpath_var=$runpath_var
20447
20448 # Shared library path variable.
20449 shlibpath_var=$shlibpath_var
20450
20451 # Is shlibpath searched before the hard-coded library search path?
20452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20453
20454 # Format of library name prefix.
20455 libname_spec=$lt_libname_spec
20456
20457 # List of archive names. First name is the real one, the rest are links.
20458 # The last name is the one that the linker finds with -lNAME
20459 library_names_spec=$lt_library_names_spec
20460
20461 # The coded name of the library, if different from the real name.
20462 soname_spec=$lt_soname_spec
20463
20464 # Permission mode override for installation of shared libraries.
20465 install_override_mode=$lt_install_override_mode
20466
20467 # Command to use after installation of a shared archive.
20468 postinstall_cmds=$lt_postinstall_cmds
20469
20470 # Command to use after uninstallation of a shared archive.
20471 postuninstall_cmds=$lt_postuninstall_cmds
20472
20473 # Commands used to finish a libtool library installation in a directory.
20474 finish_cmds=$lt_finish_cmds
20475
20476 # As "finish_cmds", except a single script fragment to be evaled but
20477 # not shown.
20478 finish_eval=$lt_finish_eval
20479
20480 # Whether we should hardcode library paths into libraries.
20481 hardcode_into_libs=$hardcode_into_libs
20482
20483 # Compile-time system search path for libraries.
20484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20485
20486 # Detected run-time system search path for libraries.
20487 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20488
20489 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20490 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20491
20492 # Whether dlopen is supported.
20493 dlopen_support=$enable_dlopen
20494
20495 # Whether dlopen of programs is supported.
20496 dlopen_self=$enable_dlopen_self
20497
20498 # Whether dlopen of statically linked programs is supported.
20499 dlopen_self_static=$enable_dlopen_self_static
20500
20501 # Commands to strip libraries.
20502 old_striplib=$lt_old_striplib
20503 striplib=$lt_striplib
20504
20505
20506 # The linker used to build libraries.
20507 LD=$lt_LD
20508
20509 # How to create reloadable object files.
20510 reload_flag=$lt_reload_flag
20511 reload_cmds=$lt_reload_cmds
20512
20513 # Commands used to build an old-style archive.
20514 old_archive_cmds=$lt_old_archive_cmds
20515
20516 # A language specific compiler.
20517 CC=$lt_compiler
20518
20519 # Is the compiler the GNU compiler?
20520 with_gcc=$GCC
20521
20522 # Compiler flag to turn off builtin functions.
20523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20524
20525 # Additional compiler flags for building library objects.
20526 pic_flag=$lt_lt_prog_compiler_pic
20527
20528 # How to pass a linker flag through the compiler.
20529 wl=$lt_lt_prog_compiler_wl
20530
20531 # Compiler flag to prevent dynamic linking.
20532 link_static_flag=$lt_lt_prog_compiler_static
20533
20534 # Does compiler simultaneously support -c and -o options?
20535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20536
20537 # Whether or not to add -lc for building shared libraries.
20538 build_libtool_need_lc=$archive_cmds_need_lc
20539
20540 # Whether or not to disallow shared libs when runtime libs are static.
20541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20542
20543 # Compiler flag to allow reflexive dlopens.
20544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20545
20546 # Compiler flag to generate shared objects directly from archives.
20547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20548
20549 # Whether the compiler copes with passing no objects directly.
20550 compiler_needs_object=$lt_compiler_needs_object
20551
20552 # Create an old-style archive from a shared archive.
20553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20554
20555 # Create a temporary old-style archive to link instead of a shared archive.
20556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20557
20558 # Commands used to build a shared archive.
20559 archive_cmds=$lt_archive_cmds
20560 archive_expsym_cmds=$lt_archive_expsym_cmds
20561
20562 # Commands used to build a loadable module if different from building
20563 # a shared archive.
20564 module_cmds=$lt_module_cmds
20565 module_expsym_cmds=$lt_module_expsym_cmds
20566
20567 # Whether we are building with GNU ld or not.
20568 with_gnu_ld=$lt_with_gnu_ld
20569
20570 # Flag that allows shared libraries with undefined symbols to be built.
20571 allow_undefined_flag=$lt_allow_undefined_flag
20572
20573 # Flag that enforces no undefined symbols.
20574 no_undefined_flag=$lt_no_undefined_flag
20575
20576 # Flag to hardcode \$libdir into a binary during linking.
20577 # This must work even if \$libdir does not exist
20578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20579
20580 # Whether we need a single "-rpath" flag with a separated argument.
20581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20582
20583 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20584 # DIR into the resulting binary.
20585 hardcode_direct=$hardcode_direct
20586
20587 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20588 # DIR into the resulting binary and the resulting library dependency is
20589 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20590 # library is relocated.
20591 hardcode_direct_absolute=$hardcode_direct_absolute
20592
20593 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20594 # into the resulting binary.
20595 hardcode_minus_L=$hardcode_minus_L
20596
20597 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20598 # into the resulting binary.
20599 hardcode_shlibpath_var=$hardcode_shlibpath_var
20600
20601 # Set to "yes" if building a shared library automatically hardcodes DIR
20602 # into the library and all subsequent libraries and executables linked
20603 # against it.
20604 hardcode_automatic=$hardcode_automatic
20605
20606 # Set to yes if linker adds runtime paths of dependent libraries
20607 # to runtime path list.
20608 inherit_rpath=$inherit_rpath
20609
20610 # Whether libtool must link a program against all its dependency libraries.
20611 link_all_deplibs=$link_all_deplibs
20612
20613 # Set to "yes" if exported symbols are required.
20614 always_export_symbols=$always_export_symbols
20615
20616 # The commands to list exported symbols.
20617 export_symbols_cmds=$lt_export_symbols_cmds
20618
20619 # Symbols that should not be listed in the preloaded symbols.
20620 exclude_expsyms=$lt_exclude_expsyms
20621
20622 # Symbols that must always be exported.
20623 include_expsyms=$lt_include_expsyms
20624
20625 # Commands necessary for linking programs (against libraries) with templates.
20626 prelink_cmds=$lt_prelink_cmds
20627
20628 # Commands necessary for finishing linking programs.
20629 postlink_cmds=$lt_postlink_cmds
20630
20631 # Specify filename containing input files.
20632 file_list_spec=$lt_file_list_spec
20633
20634 # How to hardcode a shared library path into an executable.
20635 hardcode_action=$hardcode_action
20636
20637 # ### END LIBTOOL CONFIG
20638
20639 _LT_EOF
20640
20641 cat <<'_LT_EOF' >> "$cfgfile"
20642
20643 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20644
20645 # func_munge_path_list VARIABLE PATH
20646 # -----------------------------------
20647 # VARIABLE is name of variable containing _space_ separated list of
20648 # directories to be munged by the contents of PATH, which is string
20649 # having a format:
20650 # "DIR[:DIR]:"
20651 # string "DIR[ DIR]" will be prepended to VARIABLE
20652 # ":DIR[:DIR]"
20653 # string "DIR[ DIR]" will be appended to VARIABLE
20654 # "DIRP[:DIRP]::[DIRA:]DIRA"
20655 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20656 # "DIRA[ DIRA]" will be appended to VARIABLE
20657 # "DIR[:DIR]"
20658 # VARIABLE will be replaced by "DIR[ DIR]"
20659 func_munge_path_list ()
20660 {
20661 case x$2 in
20662 x)
20663 ;;
20664 *:)
20665 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20666 ;;
20667 x:*)
20668 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20669 ;;
20670 *::*)
20671 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20672 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20673 ;;
20674 *)
20675 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20676 ;;
20677 esac
20678 }
20679
20680
20681 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20682 func_cc_basename ()
20683 {
20684 for cc_temp in $*""; do
20685 case $cc_temp in
20686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20688 \-*) ;;
20689 *) break;;
20690 esac
20691 done
20692 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20693 }
20694
20695
20696 # ### END FUNCTIONS SHARED WITH CONFIGURE
20697
20698 _LT_EOF
20699
20700 case $host_os in
20701 aix3*)
20702 cat <<\_LT_EOF >> "$cfgfile"
20703 # AIX sometimes has problems with the GCC collect2 program. For some
20704 # reason, if we set the COLLECT_NAMES environment variable, the problems
20705 # vanish in a puff of smoke.
20706 if test set != "${COLLECT_NAMES+set}"; then
20707 COLLECT_NAMES=
20708 export COLLECT_NAMES
20709 fi
20710 _LT_EOF
20711 ;;
20712 esac
20713
20714
20715 ltmain=$ac_aux_dir/ltmain.sh
20716
20717
20718 # We use sed instead of cat because bash on DJGPP gets confused if
20719 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20720 # text mode, it properly converts lines to CR/LF. This bash problem
20721 # is reportedly fixed, but why not run on old versions too?
20722 sed '$q' "$ltmain" >> "$cfgfile" \
20723 || (rm -f "$cfgfile"; exit 1)
20724
20725 mv -f "$cfgfile" "$ofile" ||
20726 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20727 chmod +x "$ofile"
20728
20729 ;;
20730
20731 esac
20732 done # for ac_tag
20733
20734
20735 as_fn_exit 0
20736 _ACEOF
20737 ac_clean_files=$ac_clean_files_save
20738
20739 test $ac_write_fail = 0 ||
20740 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20741
20742
20743 # configure is writing to config.log, and then calls config.status.
20744 # config.status does its own redirection, appending to config.log.
20745 # Unfortunately, on DOS this fails, as config.log is still kept open
20746 # by configure, so config.status won't be able to write to it; its
20747 # output is simply discarded. So we exec the FD to /dev/null,
20748 # effectively closing config.log, so it can be properly (re)opened and
20749 # appended to by config.status. When coming back to configure, we
20750 # need to make the FD available again.
20751 if test "$no_create" != yes; then
20752 ac_cs_success=:
20753 ac_config_status_args=
20754 test "$silent" = yes &&
20755 ac_config_status_args="$ac_config_status_args --quiet"
20756 exec 5>/dev/null
20757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20758 exec 5>>config.log
20759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20760 # would make configure fail if this is the last instruction.
20761 $ac_cs_success || as_fn_exit 1
20762 fi
20763 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20765 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20766 fi
20767
20768