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 libXinerama 1.1.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='libXinerama'
593 PACKAGE_TARNAME='libXinerama'
594 PACKAGE_VERSION='1.1.4'
595 PACKAGE_STRING='libXinerama 1.1.4'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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 LINT_FALSE
641 LINT_TRUE
642 LINT_FLAGS
643 LINT
644 XINERAMA_LIBS
645 XINERAMA_CFLAGS
646 XTMALLOC_ZERO_CFLAGS
647 XMALLOC_ZERO_CFLAGS
648 MALLOC_ZERO_CFLAGS
649 MAN_SUBSTS
650 XORG_MAN_PAGE
651 ADMIN_MAN_DIR
652 DRIVER_MAN_DIR
653 MISC_MAN_DIR
654 FILE_MAN_DIR
655 LIB_MAN_DIR
656 APP_MAN_DIR
657 ADMIN_MAN_SUFFIX
658 DRIVER_MAN_SUFFIX
659 MISC_MAN_SUFFIX
660 FILE_MAN_SUFFIX
661 LIB_MAN_SUFFIX
662 APP_MAN_SUFFIX
663 INSTALL_CMD
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 CHANGELOG_CMD
668 STRICT_CFLAGS
669 CWARNFLAGS
670 BASE_CFLAGS
671 CPP
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__quote
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 LIBTOOL
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 enable_dependency_tracking
794 with_gnu_ld
795 with_sysroot
796 enable_libtool_lock
797 enable_selective_werror
798 enable_strict_compilation
799 enable_malloc0returnsnull
800 with_lint
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 LT_SYS_LIBRARY_PATH
811 CPP
812 PKG_CONFIG
813 PKG_CONFIG_PATH
814 PKG_CONFIG_LIBDIR
815 XINERAMA_CFLAGS
816 XINERAMA_LIBS
817 LINT
818 LINT_FLAGS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures libXinerama 1.1.4 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libXinerama 1.1.4:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --disable-selective-werror
1449 Turn off selective compiler errors. (default:
1450 enabled)
1451 --enable-strict-compilation
1452 Enable all warnings from compiler and make them
1453 errors (default: disabled)
1454 --enable-malloc0returnsnull
1455 malloc(0) returns NULL (default: auto)
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-aix-soname=aix|svr4|both
1463 shared library versioning (aka "SONAME") variant to
1464 provide on AIX, [default=aix].
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467 compiler's sysroot if not specified).
1468 --with-lint Use a lint-style source code checker (default:
1469 disabled)
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 LT_SYS_LIBRARY_PATH
1480 User-defined run-time library search path.
1481 CPP C preprocessor
1482 PKG_CONFIG path to pkg-config utility
1483 PKG_CONFIG_PATH
1484 directories to add to pkg-config's search path
1485 PKG_CONFIG_LIBDIR
1486 path overriding pkg-config's built-in search path
1487 XINERAMA_CFLAGS
1488 C compiler flags for XINERAMA, overriding pkg-config
1489 XINERAMA_LIBS
1490 linker flags for XINERAMA, overriding pkg-config
1491 LINT Path to a lint-style command
1492 LINT_FLAGS Flags for the lint-style command
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 libXinerama configure 1.1.4
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 test -x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_link
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_cpp
1725
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761 fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_run
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1795
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main ()
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_func
1834
1835 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1836 # ---------------------------------------------
1837 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_decl ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 as_decl_name=`echo $2|sed 's/ *(.*//'`
1843 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main ()
1854 {
1855 #ifndef $as_decl_name
1856 #ifdef __cplusplus
1857 (void) $as_decl_use;
1858 #else
1859 (void) $as_decl_name;
1860 #endif
1861 #endif
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_decl
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1883
1884 It was created by libXinerama $as_me 1.1.4, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1886
1887 $ $0 $@
1888
1889 _ACEOF
1890 exec 5>>config.log
1891 {
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1896
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913
1914 _ASUNAME
1915
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948 for ac_arg
1949 do
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 2)
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1973 ;;
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1976 fi
1977 as_fn_append ac_configure_args " '$ac_arg'"
1978 ;;
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1992 {
1993 echo
1994
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065 echo
2066 cat confdefs.h
2067 echo
2068 fi
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 $as_echo "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2124 esac
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file" \
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213 done
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233 ac_config_headers="$ac_config_headers config.h"
2234
2235
2236 # Initialize Automake
2237 am__api_version='1.15'
2238
2239 ac_aux_dir=
2240 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241 if test -f "$ac_dir/install-sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 break
2245 elif test -f "$ac_dir/install.sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 break
2249 elif test -f "$ac_dir/shtool"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2252 break
2253 fi
2254 done
2255 if test -z "$ac_aux_dir"; then
2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 fi
2258
2259 # These three variables are undocumented and unsupported,
2260 # and are intended to be withdrawn in a future Autoconf release.
2261 # They can cause serious problems if a builder's source tree is in a directory
2262 # whose full name contains unusual characters.
2263 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2264 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2265 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266
2267
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2299 *)
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2309 :
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2313 :
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2326 fi
2327 fi
2328 fi
2329 done
2330 done
2331 ;;
2332 esac
2333
2334 done
2335 IFS=$as_save_IFS
2336
2337 rm -rf conftest.one conftest.two conftest.dir
2338
2339 fi
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2348 fi
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2352
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Reject unsafe characters in $srcdir or the absolute working directory
2364 # name. Accept space and tab only in the latter.
2365 am_lf='
2366 '
2367 case `pwd` in
2368 *[\\\"\#\$\&\'\`$am_lf]*)
2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370 esac
2371 case $srcdir in
2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374 esac
2375
2376 # Do 'set' in a subshell so we don't clobber the current shell's
2377 # arguments. Must try -L first in case configure is actually a
2378 # symlink; some systems play weird games with the mod time of symlinks
2379 # (eg FreeBSD returns the mod time of the symlink's containing
2380 # directory).
2381 if (
2382 am_has_slept=no
2383 for am_try in 1 2; do
2384 echo "timestamp, slept: $am_has_slept" > conftest.file
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2389 fi
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2399 fi
2400 if test "$2" = conftest.file || test $am_try -eq 2; then
2401 break
2402 fi
2403 # Just in case.
2404 sleep 1
2405 am_has_slept=yes
2406 done
2407 test "$2" = conftest.file
2408 )
2409 then
2410 # Ok.
2411 :
2412 else
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 # If we didn't sleep, we still need to ensure time stamps of config.status and
2419 # generated files are strictly newer.
2420 am_sleep_pid=
2421 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422 ( sleep 1 ) &
2423 am_sleep_pid=$!
2424 fi
2425
2426 rm -f conftest.file
2427
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438 # Expand $ac_aux_dir to an absolute path.
2439 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2440
2441 if test x"${MISSING+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445 *)
2446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 esac
2448 fi
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --is-lightweight"; then
2451 am_missing_run="$MISSING "
2452 else
2453 am_missing_run=
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2456 fi
2457
2458 if test x"${install_sh+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462 *)
2463 install_sh="\${SHELL} $am_aux_dir/install-sh"
2464 esac
2465 fi
2466
2467 # Installed binaries are usually stripped using 'strip' when the user
2468 # run "make install-strip". However 'strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the 'STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2559 fi
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570 if ${ac_cv_path_mkdir+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_prog in mkdir gmkdir; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582 'mkdir (GNU coreutils) '* | \
2583 'mkdir (coreutils) '* | \
2584 'mkdir (fileutils) '4.1*)
2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 break 3;;
2587 esac
2588 done
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594
2595 test -d ./--version && rmdir ./--version
2596 if test "${ac_cv_path_mkdir+set}" = set; then
2597 MKDIR_P="$ac_cv_path_mkdir -p"
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for MKDIR_P within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 MKDIR_P="$ac_install_sh -d"
2604 fi
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 test -n "$AWK" && break
2649 done
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 *)
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2671 fi
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2680 fi
2681
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2688 fi
2689 rmdir .tst 2>/dev/null
2690
2691 # Check whether --enable-silent-rules was given.
2692 if test "${enable_silent_rules+set}" = set; then :
2693 enableval=$enable_silent_rules;
2694 fi
2695
2696 case $enable_silent_rules in # (((
2697 yes) AM_DEFAULT_VERBOSITY=0;;
2698 no) AM_DEFAULT_VERBOSITY=1;;
2699 *) AM_DEFAULT_VERBOSITY=1;;
2700 esac
2701 am_make=${MAKE-make}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704 if ${am_cv_make_support_nested_variables+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if $as_echo 'TRUE=$(BAR$(V))
2708 BAR0=false
2709 BAR1=true
2710 V=1
2711 am__doit:
2712 @$(TRUE)
2713 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714 am_cv_make_support_nested_variables=yes
2715 else
2716 am_cv_make_support_nested_variables=no
2717 fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2721 if test $am_cv_make_support_nested_variables = yes; then
2722 AM_V='$(V)'
2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724 else
2725 AM_V=$AM_DEFAULT_VERBOSITY
2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2727 fi
2728 AM_BACKSLASH='\'
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737 fi
2738 fi
2739
2740 # test whether we have cygpath
2741 if test -z "$CYGPATH_W"; then
2742 if (cygpath --version) >/dev/null 2>/dev/null; then
2743 CYGPATH_W='cygpath -w'
2744 else
2745 CYGPATH_W=echo
2746 fi
2747 fi
2748
2749
2750 # Define the identity of the package.
2751 PACKAGE='libXinerama'
2752 VERSION='1.1.4'
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE "$PACKAGE"
2757 _ACEOF
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define VERSION "$VERSION"
2762 _ACEOF
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # For better backward compatibility. To be removed once Automake 1.9.x
2781 # dies out for good. For more background, see:
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784 mkdir_p='$(MKDIR_P)'
2785
2786 # We need awk for the "check" target (and possibly the TAP driver). The
2787 # system "awk" is bad on some platforms.
2788 # Always define AMTAR for backward compatibility. Yes, it's still used
2789 # in the wild :-( We should find a proper way to deprecate it ...
2790 AMTAR='$${TAR-tar}'
2791
2792
2793 # We'll loop over all known methods to create a tar archive until one works.
2794 _am_tools='gnutar pax cpio none'
2795
2796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803 # POSIX will say in a future version that running "rm -f" with no argument
2804 # is OK; and we want to be able to make that assumption in our Makefile
2805 # recipes. So use an aggressive probe to check that the usage we want is
2806 # actually supported "in the wild" to an acceptable degree.
2807 # See automake bug#10828.
2808 # To make any issue more visible, cause the running configure to be aborted
2809 # by default if the 'rm' program in use doesn't match our expectations; the
2810 # user can still override this though.
2811 if rm -f && rm -fr && rm -rf; then : OK; else
2812 cat >&2 <<'END'
2813 Oops!
2814
2815 Your 'rm' program seems unable to run without file operands specified
2816 on the command line, even when the '-f' option is present. This is contrary
2817 to the behaviour of most rm programs out there, and not conforming with
2818 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820 Please tell bug-automake@gnu.org about your system, including the value
2821 of your $PATH and any error possibly output before this message. This
2822 can help us improve future automake versions.
2823
2824 END
2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826 echo 'Configuration will proceed anyway, since you have set the' >&2
2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828 echo >&2
2829 else
2830 cat >&2 <<'END'
2831 Aborting the configuration process, to ensure you take notice of the issue.
2832
2833 You can download and install GNU coreutils to get an 'rm' implementation
2834 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836 If you want to complete the configuration process using your problematic
2837 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838 to "yes", and re-run configure.
2839
2840 END
2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842 fi
2843 fi
2844
2845
2846 # Initialize libtool
2847 case `pwd` in
2848 *\ * | *\ *)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2851 esac
2852
2853
2854
2855 macro_version='2.4.6'
2856 macro_revision='2.4.6'
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870 ltmain=$ac_aux_dir/ltmain.sh
2871
2872 # Make sure we can run config.sub.
2873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2875
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2877 $as_echo_n "checking build system type... " >&6; }
2878 if ${ac_cv_build+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 ac_build_alias=$build_alias
2882 test "x$ac_build_alias" = x &&
2883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2884 test "x$ac_build_alias" = x &&
2885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2888
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2891 $as_echo "$ac_cv_build" >&6; }
2892 case $ac_cv_build in
2893 *-*-*) ;;
2894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2895 esac
2896 build=$ac_cv_build
2897 ac_save_IFS=$IFS; IFS='-'
2898 set x $ac_cv_build
2899 shift
2900 build_cpu=$1
2901 build_vendor=$2
2902 shift; shift
2903 # Remember, the first character of IFS is used to create $*,
2904 # except with old shells:
2905 build_os=$*
2906 IFS=$ac_save_IFS
2907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2908
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911 $as_echo_n "checking host system type... " >&6; }
2912 if ${ac_cv_host+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test "x$host_alias" = x; then
2916 ac_cv_host=$ac_cv_build
2917 else
2918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2920 fi
2921
2922 fi
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924 $as_echo "$ac_cv_host" >&6; }
2925 case $ac_cv_host in
2926 *-*-*) ;;
2927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2928 esac
2929 host=$ac_cv_host
2930 ac_save_IFS=$IFS; IFS='-'
2931 set x $ac_cv_host
2932 shift
2933 host_cpu=$1
2934 host_vendor=$2
2935 shift; shift
2936 # Remember, the first character of IFS is used to create $*,
2937 # except with old shells:
2938 host_os=$*
2939 IFS=$ac_save_IFS
2940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2941
2942
2943 # Backslashify metacharacters that are still active within
2944 # double-quoted strings.
2945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2946
2947 # Same as above, but do not quote variable references.
2948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2949
2950 # Sed substitution to delay expansion of an escaped shell variable in a
2951 # double_quote_subst'ed string.
2952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2953
2954 # Sed substitution to delay expansion of an escaped single quote.
2955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2956
2957 # Sed substitution to avoid accidental globbing in evaled expressions
2958 no_glob_subst='s/\*/\\\*/g'
2959
2960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2965 $as_echo_n "checking how to print strings... " >&6; }
2966 # Test print first, because it will be a builtin if present.
2967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2969 ECHO='print -r --'
2970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2971 ECHO='printf %s\n'
2972 else
2973 # Use this function as a fallback that always works.
2974 func_fallback_echo ()
2975 {
2976 eval 'cat <<_LTECHO_EOF
2977 $1
2978 _LTECHO_EOF'
2979 }
2980 ECHO='func_fallback_echo'
2981 fi
2982
2983 # func_echo_all arg...
2984 # Invoke $ECHO with all args, space-separated.
2985 func_echo_all ()
2986 {
2987 $ECHO ""
2988 }
2989
2990 case $ECHO in
2991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2992 $as_echo "printf" >&6; } ;;
2993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2994 $as_echo "print -r" >&6; } ;;
2995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2996 $as_echo "cat" >&6; } ;;
2997 esac
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012 DEPDIR="${am__leading_dot}deps"
3013
3014 ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3022 END
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from 'make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037 ;;
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3047 ;;
3048 esac
3049 fi
3050
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3055
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3059 fi
3060
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3065 fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3072 fi
3073
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 else
3169 CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 fi
3212 fi
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312 fi
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355 done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3367 fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details" "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 fi
3398 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480 ac_file=''
3481 fi
3482 if test -z "$ac_file"; then :
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error 77 "C compiler cannot create executables
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499 $as_echo "$ac_file" >&6; }
3500 ac_exeext=$ac_cv_exeext
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529 done
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 fi
3536 rm -f conftest conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdio.h>
3546 int
3547 main ()
3548 {
3549 FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 ac_clean_files="$ac_clean_files conftest.out"
3557 # Check that the compiler produces executables we can run. If not, either
3558 # the compiler is broken, or we cross compile.
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560 $as_echo_n "checking whether we are cross compiling... " >&6; }
3561 if test "$cross_compiling" != yes; then
3562 { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 if { ac_try='./conftest$ac_cv_exeext'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3599
3600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603 $as_echo_n "checking for suffix of object files... " >&6; }
3604 if ${ac_cv_objext+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.o conftest.obj
3619 if { { ac_try="$ac_compile"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compile") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 for ac_file in conftest.o conftest.obj conftest.*; do
3631 test -f "$ac_file" || continue;
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 break;;
3636 esac
3637 done
3638 else
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of object files: cannot compile
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 fi
3647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650 $as_echo "$ac_cv_objext" >&6; }
3651 OBJEXT=$ac_cv_objext
3652 ac_objext=$OBJEXT
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664 #ifndef __GNUC__
3665 choke me
3666 #endif
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_compiler_gnu=yes
3674 else
3675 ac_compiler_gnu=no
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685 else
3686 GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+set}
3689 ac_save_CFLAGS=$CFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3692 if ${ac_cv_prog_cc_g+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 ac_save_c_werror_flag=$ac_c_werror_flag
3696 ac_c_werror_flag=yes
3697 ac_cv_prog_cc_g=no
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712 else
3713 CFLAGS=""
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726
3727 else
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752 $as_echo "$ac_cv_prog_cc_g" >&6; }
3753 if test "$ac_test_CFLAGS" = set; then
3754 CFLAGS=$ac_save_CFLAGS
3755 elif test $ac_cv_prog_cc_g = yes; then
3756 if test "$GCC" = yes; then
3757 CFLAGS="-g -O2"
3758 else
3759 CFLAGS="-g"
3760 fi
3761 else
3762 if test "$GCC" = yes; then
3763 CFLAGS="-O2"
3764 else
3765 CFLAGS=
3766 fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770 if ${ac_cv_prog_cc_c89+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_cv_prog_cc_c89=no
3774 ac_save_CC=$CC
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <stdarg.h>
3778 #include <stdio.h>
3779 struct stat;
3780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3781 struct buf { int x; };
3782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783 static char *e (p, i)
3784 char **p;
3785 int i;
3786 {
3787 return p[i];
3788 }
3789 static char *f (char * (*g) (char **, int), char **p, ...)
3790 {
3791 char *s;
3792 va_list v;
3793 va_start (v,p);
3794 s = g (p, va_arg (v,int));
3795 va_end (v);
3796 return s;
3797 }
3798
3799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3800 function prototypes and stuff, but not '\xHH' hex character constants.
3801 These don't provoke an error unfortunately, instead are silently treated
3802 as 'x'. The following induces an error, until -std is added to get
3803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3804 array size at least. It's necessary to write '\x00'==0 to get something
3805 that's true only with -std. */
3806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809 inside strings and character constants. */
3810 #define FOO(x) 'x'
3811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813 int test (int i, double x);
3814 struct s1 {int (*f) (int a);};
3815 struct s2 {int (*f) (double a);};
3816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 int argc;
3818 char **argv;
3819 int
3820 main ()
3821 {
3822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 do
3830 CC="$ac_save_CC $ac_arg"
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_c89=$ac_arg
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843 x)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846 xno)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849 *)
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856 fi
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
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3870 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3871 if ${am_cv_prog_cc_c_o+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 # Make sure it works both with $CC and with simple cc.
3886 # Following AC_PROG_CC_C_O, we do the test twice because some
3887 # compilers refuse to overwrite an existing .o file with -o,
3888 # though they will create one.
3889 am_cv_prog_cc_c_o=yes
3890 for am_i in 1 2; do
3891 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3892 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } \
3896 && test -f conftest2.$ac_objext; then
3897 : OK
3898 else
3899 am_cv_prog_cc_c_o=no
3900 break
3901 fi
3902 done
3903 rm -f core conftest*
3904 unset am_i
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3907 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3908 if test "$am_cv_prog_cc_c_o" != yes; then
3909 # Losing compiler, so override with the script.
3910 # FIXME: It is wrong to rewrite CC.
3911 # But if we don't then we get into trouble of one sort or another.
3912 # A longer-term fix would be to have automake use am__CC in this case,
3913 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3914 CC="$am_aux_dir/compile $CC"
3915 fi
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923 depcc="$CC" am_compiler_list=
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3926 $as_echo_n "checking dependency style of $depcc... " >&6; }
3927 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3931 # We make a subdir and do the tests there. Otherwise we can end up
3932 # making bogus files that we don't know about and never remove. For
3933 # instance it was reported that on HP-UX the gcc test will end up
3934 # making a dummy file named 'D' -- because '-MD' means "put the output
3935 # in D".
3936 rm -rf conftest.dir
3937 mkdir conftest.dir
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3941 cd conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3947 # directory.
3948 mkdir sub
3949
3950 am_cv_CC_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 fi
3954 am__universal=false
3955 case " $depcc " in #(
3956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 esac
3958
3959 for depmode in $am_compiler_list; do
3960 # Setup a source with many dependencies, because some compilers
3961 # like to wrap large dependency lists on column 80 (with \), and
3962 # we should not choose a depcomp mode which is confused by this.
3963 #
3964 # We need to recreate these files for each test, as the compiler may
3965 # overwrite some of them when testing with obscure command lines.
3966 # This happens at least with the AIX C compiler.
3967 : > sub/conftest.c
3968 for i in 1 2 3 4 5 6; do
3969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3971 # Solaris 10 /bin/sh.
3972 echo '/* dummy */' > sub/conftst$i.h
3973 done
3974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3977 # mode. It turns out that the SunPro C++ compiler does not properly
3978 # handle '-M -o', and we need to detect this. Also, some Intel
3979 # versions had trouble with output in subdirs.
3980 am__obj=sub/conftest.${OBJEXT-o}
3981 am__minus_obj="-o $am__obj"
3982 case $depmode in
3983 gcc)
3984 # This depmode causes a compiler race in universal mode.
3985 test "$am__universal" = false || continue
3986 ;;
3987 nosideeffect)
3988 # After this tag, mechanisms are not by side-effect, so they'll
3989 # only be used when explicitly requested.
3990 if test "x$enable_dependency_tracking" = xyes; then
3991 continue
3992 else
3993 break
3994 fi
3995 ;;
3996 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3997 # This compiler won't grok '-c -o', but also, the minuso test has
3998 # not run yet. These depmodes are late enough in the game, and
3999 # so weak that their functioning should not be impacted.
4000 am__obj=conftest.${OBJEXT-o}
4001 am__minus_obj=
4002 ;;
4003 none) break ;;
4004 esac
4005 if depmode=$depmode \
4006 source=sub/conftest.c object=$am__obj \
4007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4009 >/dev/null 2>conftest.err &&
4010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014 # icc doesn't choke on unknown options, it will just issue warnings
4015 # or remarks (even with -Werror). So we grep stderr for any message
4016 # that says an option was ignored or not supported.
4017 # When given -MP, icc 7.0 and 7.1 complain thusly:
4018 # icc: Command line warning: ignoring option '-M'; no argument required
4019 # The diagnosis changed in icc 8.0:
4020 # icc: Command line remark: option '-MP' not supported
4021 if (grep 'ignoring option' conftest.err ||
4022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023 am_cv_CC_dependencies_compiler_type=$depmode
4024 break
4025 fi
4026 fi
4027 done
4028
4029 cd ..
4030 rm -rf conftest.dir
4031 else
4032 am_cv_CC_dependencies_compiler_type=none
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4037 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040 if
4041 test "x$enable_dependency_tracking" != xno \
4042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043 am__fastdepCC_TRUE=
4044 am__fastdepCC_FALSE='#'
4045 else
4046 am__fastdepCC_TRUE='#'
4047 am__fastdepCC_FALSE=
4048 fi
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4052 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4053 if ${ac_cv_path_SED+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4057 for ac_i in 1 2 3 4 5 6 7; do
4058 ac_script="$ac_script$as_nl$ac_script"
4059 done
4060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4061 { ac_script=; unset ac_script;}
4062 if test -z "$SED"; then
4063 ac_path_SED_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in sed gsed; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4073 as_fn_executable_p "$ac_path_SED" || continue
4074 # Check for GNU ac_path_SED and select it if it is found.
4075 # Check for GNU $ac_path_SED
4076 case `"$ac_path_SED" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4079 *)
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo '' >> "conftest.nl"
4088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
4091 if test $ac_count -gt ${ac_path_SED_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_SED="$ac_path_SED"
4094 ac_path_SED_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102 $ac_path_SED_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_SED"; then
4108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4109 fi
4110 else
4111 ac_cv_path_SED=$SED
4112 fi
4113
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4116 $as_echo "$ac_cv_path_SED" >&6; }
4117 SED="$ac_cv_path_SED"
4118 rm -f conftest.sed
4119
4120 test -z "$SED" && SED=sed
4121 Xsed="$SED -e 1s/^X//"
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4135 if ${ac_cv_path_GREP+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -z "$GREP"; then
4139 ac_path_GREP_found=false
4140 # Loop through the user's path and test for each of PROGNAME-LIST
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_prog in grep ggrep; do
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4149 as_fn_executable_p "$ac_path_GREP" || continue
4150 # Check for GNU ac_path_GREP and select it if it is found.
4151 # Check for GNU $ac_path_GREP
4152 case `"$ac_path_GREP" --version 2>&1` in
4153 *GNU*)
4154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4155 *)
4156 ac_count=0
4157 $as_echo_n 0123456789 >"conftest.in"
4158 while :
4159 do
4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
4161 mv "conftest.tmp" "conftest.in"
4162 cp "conftest.in" "conftest.nl"
4163 $as_echo 'GREP' >> "conftest.nl"
4164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
4167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4168 # Best one so far, save it but keep looking for a better one
4169 ac_cv_path_GREP="$ac_path_GREP"
4170 ac_path_GREP_max=$ac_count
4171 fi
4172 # 10*(2^10) chars as input seems more than enough
4173 test $ac_count -gt 10 && break
4174 done
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 esac
4177
4178 $ac_path_GREP_found && break 3
4179 done
4180 done
4181 done
4182 IFS=$as_save_IFS
4183 if test -z "$ac_cv_path_GREP"; then
4184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185 fi
4186 else
4187 ac_cv_path_GREP=$GREP
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4192 $as_echo "$ac_cv_path_GREP" >&6; }
4193 GREP="$ac_cv_path_GREP"
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4197 $as_echo_n "checking for egrep... " >&6; }
4198 if ${ac_cv_path_EGREP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4202 then ac_cv_path_EGREP="$GREP -E"
4203 else
4204 if test -z "$EGREP"; then
4205 ac_path_EGREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in egrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4215 as_fn_executable_p "$ac_path_EGREP" || continue
4216 # Check for GNU ac_path_EGREP and select it if it is found.
4217 # Check for GNU $ac_path_EGREP
4218 case `"$ac_path_EGREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'EGREP' >> "conftest.nl"
4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_EGREP="$ac_path_EGREP"
4236 ac_path_EGREP_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_EGREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_EGREP"; then
4250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_EGREP=$EGREP
4254 fi
4255
4256 fi
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4259 $as_echo "$ac_cv_path_EGREP" >&6; }
4260 EGREP="$ac_cv_path_EGREP"
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4264 $as_echo_n "checking for fgrep... " >&6; }
4265 if ${ac_cv_path_FGREP+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4269 then ac_cv_path_FGREP="$GREP -F"
4270 else
4271 if test -z "$FGREP"; then
4272 ac_path_FGREP_found=false
4273 # Loop through the user's path and test for each of PROGNAME-LIST
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_prog in fgrep; do
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4282 as_fn_executable_p "$ac_path_FGREP" || continue
4283 # Check for GNU ac_path_FGREP and select it if it is found.
4284 # Check for GNU $ac_path_FGREP
4285 case `"$ac_path_FGREP" --version 2>&1` in
4286 *GNU*)
4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4288 *)
4289 ac_count=0
4290 $as_echo_n 0123456789 >"conftest.in"
4291 while :
4292 do
4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
4294 mv "conftest.tmp" "conftest.in"
4295 cp "conftest.in" "conftest.nl"
4296 $as_echo 'FGREP' >> "conftest.nl"
4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299 as_fn_arith $ac_count + 1 && ac_count=$as_val
4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4301 # Best one so far, save it but keep looking for a better one
4302 ac_cv_path_FGREP="$ac_path_FGREP"
4303 ac_path_FGREP_max=$ac_count
4304 fi
4305 # 10*(2^10) chars as input seems more than enough
4306 test $ac_count -gt 10 && break
4307 done
4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309 esac
4310
4311 $ac_path_FGREP_found && break 3
4312 done
4313 done
4314 done
4315 IFS=$as_save_IFS
4316 if test -z "$ac_cv_path_FGREP"; then
4317 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4318 fi
4319 else
4320 ac_cv_path_FGREP=$FGREP
4321 fi
4322
4323 fi
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4326 $as_echo "$ac_cv_path_FGREP" >&6; }
4327 FGREP="$ac_cv_path_FGREP"
4328
4329
4330 test -z "$GREP" && GREP=grep
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 # Check whether --with-gnu-ld was given.
4351 if test "${with_gnu_ld+set}" = set; then :
4352 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4353 else
4354 with_gnu_ld=no
4355 fi
4356
4357 ac_prog=ld
4358 if test yes = "$GCC"; then
4359 # Check if gcc -print-prog-name=ld gives a path.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4361 $as_echo_n "checking for ld used by $CC... " >&6; }
4362 case $host in
4363 *-*-mingw*)
4364 # gcc leaves a trailing carriage return, which upsets mingw
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4366 *)
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4368 esac
4369 case $ac_prog in
4370 # Accept absolute paths.
4371 [\\/]* | ?:[\\/]*)
4372 re_direlt='/[^/][^/]*/\.\./'
4373 # Canonicalize the pathname of ld
4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4377 done
4378 test -z "$LD" && LD=$ac_prog
4379 ;;
4380 "")
4381 # If it fails, then pretend we aren't using GCC.
4382 ac_prog=ld
4383 ;;
4384 *)
4385 # If it is relative, then search for the first ld in PATH.
4386 with_gnu_ld=unknown
4387 ;;
4388 esac
4389 elif test yes = "$with_gnu_ld"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4391 $as_echo_n "checking for GNU ld... " >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4394 $as_echo_n "checking for non-GNU ld... " >&6; }
4395 fi
4396 if ${lt_cv_path_LD+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -z "$LD"; then
4400 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4401 for ac_dir in $PATH; do
4402 IFS=$lt_save_ifs
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4405 lt_cv_path_LD=$ac_dir/$ac_prog
4406 # Check to see if the program is GNU ld. I'd rather use --version,
4407 # but apparently some variants of GNU ld only accept -v.
4408 # Break only if it was the GNU/non-GNU ld that we prefer.
4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 test no != "$with_gnu_ld" && break
4412 ;;
4413 *)
4414 test yes != "$with_gnu_ld" && break
4415 ;;
4416 esac
4417 fi
4418 done
4419 IFS=$lt_save_ifs
4420 else
4421 lt_cv_path_LD=$LD # Let the user override the test with a path.
4422 fi
4423 fi
4424
4425 LD=$lt_cv_path_LD
4426 if test -n "$LD"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4428 $as_echo "$LD" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4436 if ${lt_cv_prog_gnu_ld+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440 case `$LD -v 2>&1 </dev/null` in
4441 *GNU* | *'with BFD'*)
4442 lt_cv_prog_gnu_ld=yes
4443 ;;
4444 *)
4445 lt_cv_prog_gnu_ld=no
4446 ;;
4447 esac
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4450 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4451 with_gnu_ld=$lt_cv_prog_gnu_ld
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4462 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4463 if ${lt_cv_path_NM+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$NM"; then
4467 # Let the user override the test.
4468 lt_cv_path_NM=$NM
4469 else
4470 lt_nm_to_check=${ac_tool_prefix}nm
4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4472 lt_nm_to_check="$lt_nm_to_check nm"
4473 fi
4474 for lt_tmp_nm in $lt_nm_to_check; do
4475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4477 IFS=$lt_save_ifs
4478 test -z "$ac_dir" && ac_dir=.
4479 tmp_nm=$ac_dir/$lt_tmp_nm
4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4481 # Check to see if the nm accepts a BSD-compat flag.
4482 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4483 # nm: unknown option "B" ignored
4484 # Tru64's nm complains that /dev/null is an invalid object file
4485 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4486 case $build_os in
4487 mingw*) lt_bad_file=conftest.nm/nofile ;;
4488 *) lt_bad_file=/dev/null ;;
4489 esac
4490 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4491 *$lt_bad_file* | *'Invalid file or object type'*)
4492 lt_cv_path_NM="$tmp_nm -B"
4493 break 2
4494 ;;
4495 *)
4496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4497 */dev/null*)
4498 lt_cv_path_NM="$tmp_nm -p"
4499 break 2
4500 ;;
4501 *)
4502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4503 continue # so that we can try to find one that supports BSD flags
4504 ;;
4505 esac
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS=$lt_save_ifs
4511 done
4512 : ${lt_cv_path_NM=no}
4513 fi
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4516 $as_echo "$lt_cv_path_NM" >&6; }
4517 if test no != "$lt_cv_path_NM"; then
4518 NM=$lt_cv_path_NM
4519 else
4520 # Didn't find any BSD compatible name lister, look for dumpbin.
4521 if test -n "$DUMPBIN"; then :
4522 # Let the user override the test.
4523 else
4524 if test -n "$ac_tool_prefix"; then
4525 for ac_prog in dumpbin "link -dump"
4526 do
4527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_DUMPBIN+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$DUMPBIN"; then
4535 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 DUMPBIN=$ac_cv_prog_DUMPBIN
4555 if test -n "$DUMPBIN"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4557 $as_echo "$DUMPBIN" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 test -n "$DUMPBIN" && break
4565 done
4566 fi
4567 if test -z "$DUMPBIN"; then
4568 ac_ct_DUMPBIN=$DUMPBIN
4569 for ac_prog in dumpbin "link -dump"
4570 do
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$ac_ct_DUMPBIN"; then
4579 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4599 if test -n "$ac_ct_DUMPBIN"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4601 $as_echo "$ac_ct_DUMPBIN" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606
4607
4608 test -n "$ac_ct_DUMPBIN" && break
4609 done
4610
4611 if test "x$ac_ct_DUMPBIN" = x; then
4612 DUMPBIN=":"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 DUMPBIN=$ac_ct_DUMPBIN
4621 fi
4622 fi
4623
4624 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4625 *COFF*)
4626 DUMPBIN="$DUMPBIN -symbols -headers"
4627 ;;
4628 *)
4629 DUMPBIN=:
4630 ;;
4631 esac
4632 fi
4633
4634 if test : != "$DUMPBIN"; then
4635 NM=$DUMPBIN
4636 fi
4637 fi
4638 test -z "$NM" && NM=nm
4639
4640
4641
4642
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4646 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4647 if ${lt_cv_nm_interface+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 lt_cv_nm_interface="BSD nm"
4651 echo "int some_variable = 0;" > conftest.$ac_ext
4652 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4653 (eval "$ac_compile" 2>conftest.err)
4654 cat conftest.err >&5
4655 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4656 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4657 cat conftest.err >&5
4658 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4659 cat conftest.out >&5
4660 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4661 lt_cv_nm_interface="MS dumpbin"
4662 fi
4663 rm -f conftest*
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4666 $as_echo "$lt_cv_nm_interface" >&6; }
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4669 $as_echo_n "checking whether ln -s works... " >&6; }
4670 LN_S=$as_ln_s
4671 if test "$LN_S" = "ln -s"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4676 $as_echo "no, using $LN_S" >&6; }
4677 fi
4678
4679 # find the maximum length of command line arguments
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4681 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4682 if ${lt_cv_sys_max_cmd_len+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 i=0
4686 teststring=ABCD
4687
4688 case $build_os in
4689 msdosdjgpp*)
4690 # On DJGPP, this test can blow up pretty badly due to problems in libc
4691 # (any single argument exceeding 2000 bytes causes a buffer overrun
4692 # during glob expansion). Even if it were fixed, the result of this
4693 # check would be larger than it should be.
4694 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4695 ;;
4696
4697 gnu*)
4698 # Under GNU Hurd, this test is not required because there is
4699 # no limit to the length of command line arguments.
4700 # Libtool will interpret -1 as no limit whatsoever
4701 lt_cv_sys_max_cmd_len=-1;
4702 ;;
4703
4704 cygwin* | mingw* | cegcc*)
4705 # On Win9x/ME, this test blows up -- it succeeds, but takes
4706 # about 5 minutes as the teststring grows exponentially.
4707 # Worse, since 9x/ME are not pre-emptively multitasking,
4708 # you end up with a "frozen" computer, even though with patience
4709 # the test eventually succeeds (with a max line length of 256k).
4710 # Instead, let's just punt: use the minimum linelength reported by
4711 # all of the supported platforms: 8192 (on NT/2K/XP).
4712 lt_cv_sys_max_cmd_len=8192;
4713 ;;
4714
4715 mint*)
4716 # On MiNT this can take a long time and run out of memory.
4717 lt_cv_sys_max_cmd_len=8192;
4718 ;;
4719
4720 amigaos*)
4721 # On AmigaOS with pdksh, this test takes hours, literally.
4722 # So we just punt and use a minimum line length of 8192.
4723 lt_cv_sys_max_cmd_len=8192;
4724 ;;
4725
4726 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4727 # This has been around since 386BSD, at least. Likely further.
4728 if test -x /sbin/sysctl; then
4729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4730 elif test -x /usr/sbin/sysctl; then
4731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4732 else
4733 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4734 fi
4735 # And add a safety zone
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4738 ;;
4739
4740 interix*)
4741 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4742 lt_cv_sys_max_cmd_len=196608
4743 ;;
4744
4745 os2*)
4746 # The test takes a long time on OS/2.
4747 lt_cv_sys_max_cmd_len=8192
4748 ;;
4749
4750 osf*)
4751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4753 # nice to cause kernel panics so lets avoid the loop below.
4754 # First set a reasonable default.
4755 lt_cv_sys_max_cmd_len=16384
4756 #
4757 if test -x /sbin/sysconfig; then
4758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4760 esac
4761 fi
4762 ;;
4763 sco3.2v5*)
4764 lt_cv_sys_max_cmd_len=102400
4765 ;;
4766 sysv5* | sco5v6* | sysv4.2uw2*)
4767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4768 if test -n "$kargmax"; then
4769 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4770 else
4771 lt_cv_sys_max_cmd_len=32768
4772 fi
4773 ;;
4774 *)
4775 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4776 if test -n "$lt_cv_sys_max_cmd_len" && \
4777 test undefined != "$lt_cv_sys_max_cmd_len"; then
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4780 else
4781 # Make teststring a little bigger before we do anything with it.
4782 # a 1K string should be a reasonable start.
4783 for i in 1 2 3 4 5 6 7 8; do
4784 teststring=$teststring$teststring
4785 done
4786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4787 # If test is not a shell built-in, we'll probably end up computing a
4788 # maximum length that is only half of the actual maximum length, but
4789 # we can't tell.
4790 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4791 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4792 test 17 != "$i" # 1/2 MB should be enough
4793 do
4794 i=`expr $i + 1`
4795 teststring=$teststring$teststring
4796 done
4797 # Only check the string length outside the loop.
4798 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4799 teststring=
4800 # Add a significant safety factor because C++ compilers can tack on
4801 # massive amounts of additional arguments before passing them to the
4802 # linker. It appears as though 1/2 is a usable value.
4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4804 fi
4805 ;;
4806 esac
4807
4808 fi
4809
4810 if test -n "$lt_cv_sys_max_cmd_len"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4812 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4815 $as_echo "none" >&6; }
4816 fi
4817 max_cmd_len=$lt_cv_sys_max_cmd_len
4818
4819
4820
4821
4822
4823
4824 : ${CP="cp -f"}
4825 : ${MV="mv -f"}
4826 : ${RM="rm -f"}
4827
4828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829 lt_unset=unset
4830 else
4831 lt_unset=false
4832 fi
4833
4834
4835
4836
4837
4838 # test EBCDIC or ASCII
4839 case `echo X|tr X '\101'` in
4840 A) # ASCII based system
4841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842 lt_SP2NL='tr \040 \012'
4843 lt_NL2SP='tr \015\012 \040\040'
4844 ;;
4845 *) # EBCDIC based system
4846 lt_SP2NL='tr \100 \n'
4847 lt_NL2SP='tr \r\n \100\100'
4848 ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4860 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4861 if ${lt_cv_to_host_file_cmd+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 case $host in
4865 *-*-mingw* )
4866 case $build in
4867 *-*-mingw* ) # actually msys
4868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4869 ;;
4870 *-*-cygwin* )
4871 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4872 ;;
4873 * ) # otherwise, assume *nix
4874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4875 ;;
4876 esac
4877 ;;
4878 *-*-cygwin* )
4879 case $build in
4880 *-*-mingw* ) # actually msys
4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4882 ;;
4883 *-*-cygwin* )
4884 lt_cv_to_host_file_cmd=func_convert_file_noop
4885 ;;
4886 * ) # otherwise, assume *nix
4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4888 ;;
4889 esac
4890 ;;
4891 * ) # unhandled hosts (and "normal" native builds)
4892 lt_cv_to_host_file_cmd=func_convert_file_noop
4893 ;;
4894 esac
4895
4896 fi
4897
4898 to_host_file_cmd=$lt_cv_to_host_file_cmd
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4900 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4901
4902
4903
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4907 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4908 if ${lt_cv_to_tool_file_cmd+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 #assume ordinary cross tools, or native build.
4912 lt_cv_to_tool_file_cmd=func_convert_file_noop
4913 case $host in
4914 *-*-mingw* )
4915 case $build in
4916 *-*-mingw* ) # actually msys
4917 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4918 ;;
4919 esac
4920 ;;
4921 esac
4922
4923 fi
4924
4925 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4927 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4928
4929
4930
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4934 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4935 if ${lt_cv_ld_reload_flag+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 lt_cv_ld_reload_flag='-r'
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4941 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4942 reload_flag=$lt_cv_ld_reload_flag
4943 case $reload_flag in
4944 "" | " "*) ;;
4945 *) reload_flag=" $reload_flag" ;;
4946 esac
4947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948 case $host_os in
4949 cygwin* | mingw* | pw32* | cegcc*)
4950 if test yes != "$GCC"; then
4951 reload_cmds=false
4952 fi
4953 ;;
4954 darwin*)
4955 if test yes = "$GCC"; then
4956 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4957 else
4958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4959 fi
4960 ;;
4961 esac
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_OBJDUMP+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$OBJDUMP"; then
4980 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 OBJDUMP=$ac_cv_prog_OBJDUMP
5000 if test -n "$OBJDUMP"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5002 $as_echo "$OBJDUMP" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$ac_cv_prog_OBJDUMP"; then
5011 ac_ct_OBJDUMP=$OBJDUMP
5012 # Extract the first word of "objdump", so it can be a program name with args.
5013 set dummy objdump; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$ac_ct_OBJDUMP"; then
5020 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5040 if test -n "$ac_ct_OBJDUMP"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5042 $as_echo "$ac_ct_OBJDUMP" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048 if test "x$ac_ct_OBJDUMP" = x; then
5049 OBJDUMP="false"
5050 else
5051 case $cross_compiling:$ac_tool_warned in
5052 yes:)
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057 OBJDUMP=$ac_ct_OBJDUMP
5058 fi
5059 else
5060 OBJDUMP="$ac_cv_prog_OBJDUMP"
5061 fi
5062
5063 test -z "$OBJDUMP" && OBJDUMP=objdump
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5074 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5075 if ${lt_cv_deplibs_check_method+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 lt_cv_file_magic_cmd='$MAGIC_CMD'
5079 lt_cv_file_magic_test_file=
5080 lt_cv_deplibs_check_method='unknown'
5081 # Need to set the preceding variable on all platforms that support
5082 # interlibrary dependencies.
5083 # 'none' -- dependencies not supported.
5084 # 'unknown' -- same as none, but documents that we really don't know.
5085 # 'pass_all' -- all dependencies passed with no checks.
5086 # 'test_compile' -- check by making test program.
5087 # 'file_magic [[regex]]' -- check by looking for files in library path
5088 # that responds to the $file_magic_cmd with a given extended regex.
5089 # If you have 'file' or equivalent on your system and you're not sure
5090 # whether 'pass_all' will *always* work, you probably want this one.
5091
5092 case $host_os in
5093 aix[4-9]*)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 beos*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100
5101 bsdi[45]*)
5102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5103 lt_cv_file_magic_cmd='/usr/bin/file -L'
5104 lt_cv_file_magic_test_file=/shlib/libc.so
5105 ;;
5106
5107 cygwin*)
5108 # func_win32_libid is a shell function defined in ltmain.sh
5109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5110 lt_cv_file_magic_cmd='func_win32_libid'
5111 ;;
5112
5113 mingw* | pw32*)
5114 # Base MSYS/MinGW do not provide the 'file' command needed by
5115 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5116 # unless we find 'file', for example because we are cross-compiling.
5117 if ( file / ) >/dev/null 2>&1; then
5118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119 lt_cv_file_magic_cmd='func_win32_libid'
5120 else
5121 # Keep this pattern in sync with the one in func_win32_libid.
5122 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5123 lt_cv_file_magic_cmd='$OBJDUMP -f'
5124 fi
5125 ;;
5126
5127 cegcc*)
5128 # use the weaker test based on 'objdump'. See mingw*.
5129 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130 lt_cv_file_magic_cmd='$OBJDUMP -f'
5131 ;;
5132
5133 darwin* | rhapsody*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 freebsd* | dragonfly*)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 case $host_cpu in
5140 i*86 )
5141 # Not sure whether the presence of OpenBSD here was a mistake.
5142 # Let's accept both of them until this is cleared up.
5143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146 ;;
5147 esac
5148 else
5149 lt_cv_deplibs_check_method=pass_all
5150 fi
5151 ;;
5152
5153 haiku*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
5156
5157 hpux10.20* | hpux11*)
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 case $host_cpu in
5160 ia64*)
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163 ;;
5164 hppa*64*)
5165 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]'
5166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167 ;;
5168 *)
5169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171 ;;
5172 esac
5173 ;;
5174
5175 interix[3-9]*)
5176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178 ;;
5179
5180 irix5* | irix6* | nonstopux*)
5181 case $LD in
5182 *-32|*"-32 ") libmagic=32-bit;;
5183 *-n32|*"-n32 ") libmagic=N32;;
5184 *-64|*"-64 ") libmagic=64-bit;;
5185 *) libmagic=never-match;;
5186 esac
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190 # This must be glibc/ELF.
5191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194
5195 netbsd*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200 fi
5201 ;;
5202
5203 newos6*)
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207 ;;
5208
5209 *nto* | *qnx*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 openbsd* | bitrig*)
5214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218 fi
5219 ;;
5220
5221 osf3* | osf4* | osf5*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 rdos*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228
5229 solaris*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 sysv4 | sysv4.3*)
5238 case $host_vendor in
5239 motorola)
5240 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]'
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242 ;;
5243 ncr)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 sequent)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249 ;;
5250 sni)
5251 lt_cv_file_magic_cmd='/bin/file'
5252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253 lt_cv_file_magic_test_file=/lib/libc.so
5254 ;;
5255 siemens)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 pc)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261 esac
5262 ;;
5263
5264 tpf*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267 os2*)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270 esac
5271
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5274 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5275
5276 file_magic_glob=
5277 want_nocaseglob=no
5278 if test "$build" = "$host"; then
5279 case $host_os in
5280 mingw* | pw32*)
5281 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5282 want_nocaseglob=yes
5283 else
5284 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5285 fi
5286 ;;
5287 esac
5288 fi
5289
5290 file_magic_cmd=$lt_cv_file_magic_cmd
5291 deplibs_check_method=$lt_cv_deplibs_check_method
5292 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_DLLTOOL+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$DLLTOOL"; then
5324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 DLLTOOL=$ac_cv_prog_DLLTOOL
5344 if test -n "$DLLTOOL"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5346 $as_echo "$DLLTOOL" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 fi
5354 if test -z "$ac_cv_prog_DLLTOOL"; then
5355 ac_ct_DLLTOOL=$DLLTOOL
5356 # Extract the first word of "dlltool", so it can be a program name with args.
5357 set dummy dlltool; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_DLLTOOL"; then
5364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5384 if test -n "$ac_ct_DLLTOOL"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5386 $as_echo "$ac_ct_DLLTOOL" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392 if test "x$ac_ct_DLLTOOL" = x; then
5393 DLLTOOL="false"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 DLLTOOL=$ac_ct_DLLTOOL
5402 fi
5403 else
5404 DLLTOOL="$ac_cv_prog_DLLTOOL"
5405 fi
5406
5407 test -z "$DLLTOOL" && DLLTOOL=dlltool
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5419 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5420 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 lt_cv_sharedlib_from_linklib_cmd='unknown'
5424
5425 case $host_os in
5426 cygwin* | mingw* | pw32* | cegcc*)
5427 # two different shell functions defined in ltmain.sh;
5428 # decide which one to use based on capabilities of $DLLTOOL
5429 case `$DLLTOOL --help 2>&1` in
5430 *--identify-strict*)
5431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5432 ;;
5433 *)
5434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5435 ;;
5436 esac
5437 ;;
5438 *)
5439 # fallback: assume linklib IS sharedlib
5440 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5441 ;;
5442 esac
5443
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5446 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5447 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5448 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5449
5450
5451
5452
5453
5454
5455
5456
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog in ar
5459 do
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_AR+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$AR"; then
5468 ac_cv_prog_AR="$AR" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 AR=$ac_cv_prog_AR
5488 if test -n "$AR"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5490 $as_echo "$AR" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 test -n "$AR" && break
5498 done
5499 fi
5500 if test -z "$AR"; then
5501 ac_ct_AR=$AR
5502 for ac_prog in ar
5503 do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$ac_ct_AR"; then
5512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_ac_ct_AR="$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5532 if test -n "$ac_ct_AR"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5534 $as_echo "$ac_ct_AR" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 test -n "$ac_ct_AR" && break
5542 done
5543
5544 if test "x$ac_ct_AR" = x; then
5545 AR="false"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 AR=$ac_ct_AR
5554 fi
5555 fi
5556
5557 : ${AR=ar}
5558 : ${AR_FLAGS=cru}
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5571 $as_echo_n "checking for archiver @FILE support... " >&6; }
5572 if ${lt_cv_ar_at_file+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 lt_cv_ar_at_file=no
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 echo conftest.$ac_objext > conftest.lst
5589 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5591 (eval $lt_ar_try) 2>&5
5592 ac_status=$?
5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594 test $ac_status = 0; }
5595 if test 0 -eq "$ac_status"; then
5596 # Ensure the archiver fails upon bogus file names.
5597 rm -f conftest.$ac_objext libconftest.a
5598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5599 (eval $lt_ar_try) 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; }
5603 if test 0 -ne "$ac_status"; then
5604 lt_cv_ar_at_file=@
5605 fi
5606 fi
5607 rm -f conftest.* libconftest.a
5608
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5614 $as_echo "$lt_cv_ar_at_file" >&6; }
5615
5616 if test no = "$lt_cv_ar_at_file"; then
5617 archiver_list_spec=
5618 else
5619 archiver_list_spec=$lt_cv_ar_at_file
5620 fi
5621
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}strip; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_STRIP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$STRIP"; then
5637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 STRIP=$ac_cv_prog_STRIP
5657 if test -n "$STRIP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5659 $as_echo "$STRIP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_STRIP"; then
5668 ac_ct_STRIP=$STRIP
5669 # Extract the first word of "strip", so it can be a program name with args.
5670 set dummy strip; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_STRIP"; then
5677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_STRIP="strip"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5697 if test -n "$ac_ct_STRIP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5699 $as_echo "$ac_ct_STRIP" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_STRIP" = x; then
5706 STRIP=":"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 STRIP=$ac_ct_STRIP
5715 fi
5716 else
5717 STRIP="$ac_cv_prog_STRIP"
5718 fi
5719
5720 test -z "$STRIP" && STRIP=:
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_RANLIB+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$RANLIB"; then
5736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 RANLIB=$ac_cv_prog_RANLIB
5756 if test -n "$RANLIB"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5758 $as_echo "$RANLIB" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_RANLIB"; then
5767 ac_ct_RANLIB=$RANLIB
5768 # Extract the first word of "ranlib", so it can be a program name with args.
5769 set dummy ranlib; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$ac_ct_RANLIB"; then
5776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_RANLIB="ranlib"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5796 if test -n "$ac_ct_RANLIB"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5798 $as_echo "$ac_ct_RANLIB" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804 if test "x$ac_ct_RANLIB" = x; then
5805 RANLIB=":"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 RANLIB=$ac_ct_RANLIB
5814 fi
5815 else
5816 RANLIB="$ac_cv_prog_RANLIB"
5817 fi
5818
5819 test -z "$RANLIB" && RANLIB=:
5820
5821
5822
5823
5824
5825
5826 # Determine commands to create old-style static archives.
5827 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5828 old_postinstall_cmds='chmod 644 $oldlib'
5829 old_postuninstall_cmds=
5830
5831 if test -n "$RANLIB"; then
5832 case $host_os in
5833 bitrig* | openbsd*)
5834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5835 ;;
5836 *)
5837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5838 ;;
5839 esac
5840 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5841 fi
5842
5843 case $host_os in
5844 darwin*)
5845 lock_old_archive_extraction=yes ;;
5846 *)
5847 lock_old_archive_extraction=no ;;
5848 esac
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
5883
5884
5885
5886
5887
5888 # If no C compiler was specified, use CC.
5889 LTCC=${LTCC-"$CC"}
5890
5891 # If no C compiler flags were specified, use CFLAGS.
5892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5893
5894 # Allow CC to be a program name with arguments.
5895 compiler=$CC
5896
5897
5898 # Check for command to grab the raw symbol name followed by C symbol from nm.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5900 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5901 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904
5905 # These are sane defaults that work on at least a few old systems.
5906 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5907
5908 # Character class describing NM global symbol codes.
5909 symcode='[BCDEGRST]'
5910
5911 # Regexp to match symbols that can be accessed directly from C.
5912 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913
5914 # Define system-specific variables.
5915 case $host_os in
5916 aix*)
5917 symcode='[BCDT]'
5918 ;;
5919 cygwin* | mingw* | pw32* | cegcc*)
5920 symcode='[ABCDGISTW]'
5921 ;;
5922 hpux*)
5923 if test ia64 = "$host_cpu"; then
5924 symcode='[ABCDEGRST]'
5925 fi
5926 ;;
5927 irix* | nonstopux*)
5928 symcode='[BCDEGRST]'
5929 ;;
5930 osf*)
5931 symcode='[BCDEGQRST]'
5932 ;;
5933 solaris*)
5934 symcode='[BDRT]'
5935 ;;
5936 sco3.2v5*)
5937 symcode='[DT]'
5938 ;;
5939 sysv4.2uw2*)
5940 symcode='[DT]'
5941 ;;
5942 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5943 symcode='[ABDT]'
5944 ;;
5945 sysv4)
5946 symcode='[DFNSTU]'
5947 ;;
5948 esac
5949
5950 # If we're using GNU nm, then use its standard symbol codes.
5951 case `$NM -V 2>&1` in
5952 *GNU* | *'with BFD'*)
5953 symcode='[ABCDGIRSTW]' ;;
5954 esac
5955
5956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5957 # Gets list of data symbols to import.
5958 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5959 # Adjust the below global symbol transforms to fixup imported variables.
5960 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5961 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5962 lt_c_name_lib_hook="\
5963 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5964 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5965 else
5966 # Disable hooks by default.
5967 lt_cv_sys_global_symbol_to_import=
5968 lt_cdecl_hook=
5969 lt_c_name_hook=
5970 lt_c_name_lib_hook=
5971 fi
5972
5973 # Transform an extracted symbol line into a proper C declaration.
5974 # Some systems (esp. on ia64) link data and code symbols differently,
5975 # so use this general approach.
5976 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5977 $lt_cdecl_hook\
5978 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5979 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5980
5981 # Transform an extracted symbol line into symbol name and symbol address
5982 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5983 $lt_c_name_hook\
5984 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5985 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5986
5987 # Transform an extracted symbol line into symbol name with lib prefix and
5988 # symbol address.
5989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5990 $lt_c_name_lib_hook\
5991 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5992 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5993 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5994
5995 # Handle CRLF in mingw tool chain
5996 opt_cr=
5997 case $build_os in
5998 mingw*)
5999 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6000 ;;
6001 esac
6002
6003 # Try without a prefix underscore, then with it.
6004 for ac_symprfx in "" "_"; do
6005
6006 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6007 symxfrm="\\1 $ac_symprfx\\2 \\2"
6008
6009 # Write the raw and C identifiers.
6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011 # Fake it for dumpbin and say T for any non-static function,
6012 # D for any global variable and I for any imported variable.
6013 # Also find C++ and __fastcall symbols from MSVC++,
6014 # which start with @ or ?.
6015 lt_cv_sys_global_symbol_pipe="$AWK '"\
6016 " {last_section=section; section=\$ 3};"\
6017 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6018 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6019 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6020 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6021 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6022 " \$ 0!~/External *\|/{next};"\
6023 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6024 " {if(hide[section]) next};"\
6025 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6026 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6027 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6028 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6029 " ' prfx=^$ac_symprfx"
6030 else
6031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6032 fi
6033 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6034
6035 # Check to see that the pipe works correctly.
6036 pipe_works=no
6037
6038 rm -f conftest*
6039 cat > conftest.$ac_ext <<_LT_EOF
6040 #ifdef __cplusplus
6041 extern "C" {
6042 #endif
6043 char nm_test_var;
6044 void nm_test_func(void);
6045 void nm_test_func(void){}
6046 #ifdef __cplusplus
6047 }
6048 #endif
6049 int main(){nm_test_var='a';nm_test_func();return(0);}
6050 _LT_EOF
6051
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 # Now try to grab the symbols.
6058 nlist=conftest.nm
6059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6060 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6061 ac_status=$?
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; } && test -s "$nlist"; then
6064 # Try sorting and uniquifying the output.
6065 if sort "$nlist" | uniq > "$nlist"T; then
6066 mv -f "$nlist"T "$nlist"
6067 else
6068 rm -f "$nlist"T
6069 fi
6070
6071 # Make sure that we snagged all the symbols we need.
6072 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6073 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6074 cat <<_LT_EOF > conftest.$ac_ext
6075 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6076 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6077 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6078 relocations are performed -- see ld's documentation on pseudo-relocs. */
6079 # define LT_DLSYM_CONST
6080 #elif defined __osf__
6081 /* This system does not cope well with relocations in const data. */
6082 # define LT_DLSYM_CONST
6083 #else
6084 # define LT_DLSYM_CONST const
6085 #endif
6086
6087 #ifdef __cplusplus
6088 extern "C" {
6089 #endif
6090
6091 _LT_EOF
6092 # Now generate the symbol file.
6093 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6094
6095 cat <<_LT_EOF >> conftest.$ac_ext
6096
6097 /* The mapping between symbol names and symbols. */
6098 LT_DLSYM_CONST struct {
6099 const char *name;
6100 void *address;
6101 }
6102 lt__PROGRAM__LTX_preloaded_symbols[] =
6103 {
6104 { "@PROGRAM@", (void *) 0 },
6105 _LT_EOF
6106 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6107 cat <<\_LT_EOF >> conftest.$ac_ext
6108 {0, (void *) 0}
6109 };
6110
6111 /* This works around a problem in FreeBSD linker */
6112 #ifdef FREEBSD_WORKAROUND
6113 static const void *lt_preloaded_setup() {
6114 return lt__PROGRAM__LTX_preloaded_symbols;
6115 }
6116 #endif
6117
6118 #ifdef __cplusplus
6119 }
6120 #endif
6121 _LT_EOF
6122 # Now try linking the two files.
6123 mv conftest.$ac_objext conftstm.$ac_objext
6124 lt_globsym_save_LIBS=$LIBS
6125 lt_globsym_save_CFLAGS=$CFLAGS
6126 LIBS=conftstm.$ac_objext
6127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6129 (eval $ac_link) 2>&5
6130 ac_status=$?
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6133 pipe_works=yes
6134 fi
6135 LIBS=$lt_globsym_save_LIBS
6136 CFLAGS=$lt_globsym_save_CFLAGS
6137 else
6138 echo "cannot find nm_test_func in $nlist" >&5
6139 fi
6140 else
6141 echo "cannot find nm_test_var in $nlist" >&5
6142 fi
6143 else
6144 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6145 fi
6146 else
6147 echo "$progname: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 fi
6150 rm -rf conftest* conftst*
6151
6152 # Do not use the global_symbol_pipe unless it works.
6153 if test yes = "$pipe_works"; then
6154 break
6155 else
6156 lt_cv_sys_global_symbol_pipe=
6157 fi
6158 done
6159
6160 fi
6161
6162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6163 lt_cv_sys_global_symbol_to_cdecl=
6164 fi
6165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6167 $as_echo "failed" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6170 $as_echo "ok" >&6; }
6171 fi
6172
6173 # Response file support.
6174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6175 nm_file_list_spec='@'
6176 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6177 nm_file_list_spec='@'
6178 fi
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
6208
6209
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6217 $as_echo_n "checking for sysroot... " >&6; }
6218
6219 # Check whether --with-sysroot was given.
6220 if test "${with_sysroot+set}" = set; then :
6221 withval=$with_sysroot;
6222 else
6223 with_sysroot=no
6224 fi
6225
6226
6227 lt_sysroot=
6228 case $with_sysroot in #(
6229 yes)
6230 if test yes = "$GCC"; then
6231 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6232 fi
6233 ;; #(
6234 /*)
6235 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6236 ;; #(
6237 no|'')
6238 ;; #(
6239 *)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6241 $as_echo "$with_sysroot" >&6; }
6242 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6243 ;;
6244 esac
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6247 $as_echo "${lt_sysroot:-no}" >&6; }
6248
6249
6250
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6254 $as_echo_n "checking for a working dd... " >&6; }
6255 if ${ac_cv_path_lt_DD+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 printf 0123456789abcdef0123456789abcdef >conftest.i
6259 cat conftest.i conftest.i >conftest2.i
6260 : ${lt_DD:=$DD}
6261 if test -z "$lt_DD"; then
6262 ac_path_lt_DD_found=false
6263 # Loop through the user's path and test for each of PROGNAME-LIST
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_prog in dd; do
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6272 as_fn_executable_p "$ac_path_lt_DD" || continue
6273 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6274 cmp -s conftest.i conftest.out \
6275 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6276 fi
6277 $ac_path_lt_DD_found && break 3
6278 done
6279 done
6280 done
6281 IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_lt_DD"; then
6283 :
6284 fi
6285 else
6286 ac_cv_path_lt_DD=$lt_DD
6287 fi
6288
6289 rm -f conftest.i conftest2.i conftest.out
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6292 $as_echo "$ac_cv_path_lt_DD" >&6; }
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6296 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6297 if ${lt_cv_truncate_bin+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 printf 0123456789abcdef0123456789abcdef >conftest.i
6301 cat conftest.i conftest.i >conftest2.i
6302 lt_cv_truncate_bin=
6303 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6304 cmp -s conftest.i conftest.out \
6305 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6306 fi
6307 rm -f conftest.i conftest2.i conftest.out
6308 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6311 $as_echo "$lt_cv_truncate_bin" >&6; }
6312
6313
6314
6315
6316
6317
6318
6319 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6320 func_cc_basename ()
6321 {
6322 for cc_temp in $*""; do
6323 case $cc_temp in
6324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6326 \-*) ;;
6327 *) break;;
6328 esac
6329 done
6330 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6331 }
6332
6333 # Check whether --enable-libtool-lock was given.
6334 if test "${enable_libtool_lock+set}" = set; then :
6335 enableval=$enable_libtool_lock;
6336 fi
6337
6338 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6339
6340 # Some flags need to be propagated to the compiler or linker for good
6341 # libtool support.
6342 case $host in
6343 ia64-*-hpux*)
6344 # Find out what ABI is being produced by ac_compile, and set mode
6345 # options accordingly.
6346 echo 'int i;' > conftest.$ac_ext
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 case `/usr/bin/file conftest.$ac_objext` in
6353 *ELF-32*)
6354 HPUX_IA64_MODE=32
6355 ;;
6356 *ELF-64*)
6357 HPUX_IA64_MODE=64
6358 ;;
6359 esac
6360 fi
6361 rm -rf conftest*
6362 ;;
6363 *-*-irix6*)
6364 # Find out what ABI is being produced by ac_compile, and set linker
6365 # options accordingly.
6366 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368 (eval $ac_compile) 2>&5
6369 ac_status=$?
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; }; then
6372 if test yes = "$lt_cv_prog_gnu_ld"; then
6373 case `/usr/bin/file conftest.$ac_objext` in
6374 *32-bit*)
6375 LD="${LD-ld} -melf32bsmip"
6376 ;;
6377 *N32*)
6378 LD="${LD-ld} -melf32bmipn32"
6379 ;;
6380 *64-bit*)
6381 LD="${LD-ld} -melf64bmip"
6382 ;;
6383 esac
6384 else
6385 case `/usr/bin/file conftest.$ac_objext` in
6386 *32-bit*)
6387 LD="${LD-ld} -32"
6388 ;;
6389 *N32*)
6390 LD="${LD-ld} -n32"
6391 ;;
6392 *64-bit*)
6393 LD="${LD-ld} -64"
6394 ;;
6395 esac
6396 fi
6397 fi
6398 rm -rf conftest*
6399 ;;
6400
6401 mips64*-*linux*)
6402 # Find out what ABI is being produced by ac_compile, and set linker
6403 # options accordingly.
6404 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 emul=elf
6411 case `/usr/bin/file conftest.$ac_objext` in
6412 *32-bit*)
6413 emul="${emul}32"
6414 ;;
6415 *64-bit*)
6416 emul="${emul}64"
6417 ;;
6418 esac
6419 case `/usr/bin/file conftest.$ac_objext` in
6420 *MSB*)
6421 emul="${emul}btsmip"
6422 ;;
6423 *LSB*)
6424 emul="${emul}ltsmip"
6425 ;;
6426 esac
6427 case `/usr/bin/file conftest.$ac_objext` in
6428 *N32*)
6429 emul="${emul}n32"
6430 ;;
6431 esac
6432 LD="${LD-ld} -m $emul"
6433 fi
6434 rm -rf conftest*
6435 ;;
6436
6437 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6438 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6439 # Find out what ABI is being produced by ac_compile, and set linker
6440 # options accordingly. Note that the listed cases only cover the
6441 # situations where additional linker options are needed (such as when
6442 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6443 # vice versa); the common cases where no linker options are needed do
6444 # not appear in the list.
6445 echo 'int i;' > conftest.$ac_ext
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447 (eval $ac_compile) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; }; then
6451 case `/usr/bin/file conftest.o` in
6452 *32-bit*)
6453 case $host in
6454 x86_64-*kfreebsd*-gnu)
6455 LD="${LD-ld} -m elf_i386_fbsd"
6456 ;;
6457 x86_64-*linux*)
6458 case `/usr/bin/file conftest.o` in
6459 *x86-64*)
6460 LD="${LD-ld} -m elf32_x86_64"
6461 ;;
6462 *)
6463 LD="${LD-ld} -m elf_i386"
6464 ;;
6465 esac
6466 ;;
6467 powerpc64le-*linux*)
6468 LD="${LD-ld} -m elf32lppclinux"
6469 ;;
6470 powerpc64-*linux*)
6471 LD="${LD-ld} -m elf32ppclinux"
6472 ;;
6473 s390x-*linux*)
6474 LD="${LD-ld} -m elf_s390"
6475 ;;
6476 sparc64-*linux*)
6477 LD="${LD-ld} -m elf32_sparc"
6478 ;;
6479 esac
6480 ;;
6481 *64-bit*)
6482 case $host in
6483 x86_64-*kfreebsd*-gnu)
6484 LD="${LD-ld} -m elf_x86_64_fbsd"
6485 ;;
6486 x86_64-*linux*)
6487 LD="${LD-ld} -m elf_x86_64"
6488 ;;
6489 powerpcle-*linux*)
6490 LD="${LD-ld} -m elf64lppc"
6491 ;;
6492 powerpc-*linux*)
6493 LD="${LD-ld} -m elf64ppc"
6494 ;;
6495 s390*-*linux*|s390*-*tpf*)
6496 LD="${LD-ld} -m elf64_s390"
6497 ;;
6498 sparc*-*linux*)
6499 LD="${LD-ld} -m elf64_sparc"
6500 ;;
6501 esac
6502 ;;
6503 esac
6504 fi
6505 rm -rf conftest*
6506 ;;
6507
6508 *-*-sco3.2v5*)
6509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6510 SAVE_CFLAGS=$CFLAGS
6511 CFLAGS="$CFLAGS -belf"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6513 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6514 if ${lt_cv_cc_needs_belf+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 ac_ext=c
6518 ac_cpp='$CPP $CPPFLAGS'
6519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525
6526 int
6527 main ()
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_link "$LINENO"; then :
6535 lt_cv_cc_needs_belf=yes
6536 else
6537 lt_cv_cc_needs_belf=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
6541 ac_ext=c
6542 ac_cpp='$CPP $CPPFLAGS'
6543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6549 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6550 if test yes != "$lt_cv_cc_needs_belf"; then
6551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6552 CFLAGS=$SAVE_CFLAGS
6553 fi
6554 ;;
6555 *-*solaris*)
6556 # Find out what ABI is being produced by ac_compile, and set linker
6557 # options accordingly.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.o` in
6565 *64-bit*)
6566 case $lt_cv_prog_gnu_ld in
6567 yes*)
6568 case $host in
6569 i?86-*-solaris*|x86_64-*-solaris*)
6570 LD="${LD-ld} -m elf_x86_64"
6571 ;;
6572 sparc*-*-solaris*)
6573 LD="${LD-ld} -m elf64_sparc"
6574 ;;
6575 esac
6576 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6577 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6578 LD=${LD-ld}_sol2
6579 fi
6580 ;;
6581 *)
6582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6583 LD="${LD-ld} -64"
6584 fi
6585 ;;
6586 esac
6587 ;;
6588 esac
6589 fi
6590 rm -rf conftest*
6591 ;;
6592 esac
6593
6594 need_locks=$enable_libtool_lock
6595
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}mt; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$MANIFEST_TOOL"; then
6605 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6625 if test -n "$MANIFEST_TOOL"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6627 $as_echo "$MANIFEST_TOOL" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6636 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6637 # Extract the first word of "mt", so it can be a program name with args.
6638 set dummy mt; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$ac_ct_MANIFEST_TOOL"; then
6645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6665 if test -n "$ac_ct_MANIFEST_TOOL"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6667 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6674 MANIFEST_TOOL=":"
6675 else
6676 case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6683 fi
6684 else
6685 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6686 fi
6687
6688 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6690 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6691 if ${lt_cv_path_mainfest_tool+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 lt_cv_path_mainfest_tool=no
6695 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6696 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6697 cat conftest.err >&5
6698 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6699 lt_cv_path_mainfest_tool=yes
6700 fi
6701 rm -f conftest*
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6704 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6705 if test yes != "$lt_cv_path_mainfest_tool"; then
6706 MANIFEST_TOOL=:
6707 fi
6708
6709
6710
6711
6712
6713
6714 case $host_os in
6715 rhapsody* | darwin*)
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$DSYMUTIL"; then
6725 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6745 if test -n "$DSYMUTIL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6747 $as_echo "$DSYMUTIL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_DSYMUTIL"; then
6756 ac_ct_DSYMUTIL=$DSYMUTIL
6757 # Extract the first word of "dsymutil", so it can be a program name with args.
6758 set dummy dsymutil; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_DSYMUTIL"; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6785 if test -n "$ac_ct_DSYMUTIL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6787 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_DSYMUTIL" = x; then
6794 DSYMUTIL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 DSYMUTIL=$ac_ct_DSYMUTIL
6803 fi
6804 else
6805 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6806 fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_NMEDIT+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$NMEDIT"; then
6817 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 NMEDIT=$ac_cv_prog_NMEDIT
6837 if test -n "$NMEDIT"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6839 $as_echo "$NMEDIT" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_NMEDIT"; then
6848 ac_ct_NMEDIT=$NMEDIT
6849 # Extract the first word of "nmedit", so it can be a program name with args.
6850 set dummy nmedit; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_NMEDIT"; then
6857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6877 if test -n "$ac_ct_NMEDIT"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6879 $as_echo "$ac_ct_NMEDIT" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885 if test "x$ac_ct_NMEDIT" = x; then
6886 NMEDIT=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 NMEDIT=$ac_ct_NMEDIT
6895 fi
6896 else
6897 NMEDIT="$ac_cv_prog_NMEDIT"
6898 fi
6899
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_LIPO+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$LIPO"; then
6909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 LIPO=$ac_cv_prog_LIPO
6929 if test -n "$LIPO"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6931 $as_echo "$LIPO" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_LIPO"; then
6940 ac_ct_LIPO=$LIPO
6941 # Extract the first word of "lipo", so it can be a program name with args.
6942 set dummy lipo; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_LIPO"; then
6949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_ac_ct_LIPO="lipo"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6969 if test -n "$ac_ct_LIPO"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6971 $as_echo "$ac_ct_LIPO" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977 if test "x$ac_ct_LIPO" = x; then
6978 LIPO=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 LIPO=$ac_ct_LIPO
6987 fi
6988 else
6989 LIPO="$ac_cv_prog_LIPO"
6990 fi
6991
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}otool; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_OTOOL+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$OTOOL"; then
7001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 OTOOL=$ac_cv_prog_OTOOL
7021 if test -n "$OTOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7023 $as_echo "$OTOOL" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_OTOOL"; then
7032 ac_ct_OTOOL=$OTOOL
7033 # Extract the first word of "otool", so it can be a program name with args.
7034 set dummy otool; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$ac_ct_OTOOL"; then
7041 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_OTOOL="otool"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7061 if test -n "$ac_ct_OTOOL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7063 $as_echo "$ac_ct_OTOOL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_OTOOL" = x; then
7070 OTOOL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 OTOOL=$ac_ct_OTOOL
7079 fi
7080 else
7081 OTOOL="$ac_cv_prog_OTOOL"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_OTOOL64+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$OTOOL64"; then
7093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 OTOOL64=$ac_cv_prog_OTOOL64
7113 if test -n "$OTOOL64"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7115 $as_echo "$OTOOL64" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_OTOOL64"; then
7124 ac_ct_OTOOL64=$OTOOL64
7125 # Extract the first word of "otool64", so it can be a program name with args.
7126 set dummy otool64; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$ac_ct_OTOOL64"; then
7133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_OTOOL64="otool64"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7153 if test -n "$ac_ct_OTOOL64"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7155 $as_echo "$ac_ct_OTOOL64" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161 if test "x$ac_ct_OTOOL64" = x; then
7162 OTOOL64=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170 OTOOL64=$ac_ct_OTOOL64
7171 fi
7172 else
7173 OTOOL64="$ac_cv_prog_OTOOL64"
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7203 $as_echo_n "checking for -single_module linker flag... " >&6; }
7204 if ${lt_cv_apple_cc_single_mod+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 lt_cv_apple_cc_single_mod=no
7208 if test -z "$LT_MULTI_MODULE"; then
7209 # By default we will add the -single_module flag. You can override
7210 # by either setting the environment variable LT_MULTI_MODULE
7211 # non-empty at configure time, or by adding -multi_module to the
7212 # link flags.
7213 rm -rf libconftest.dylib*
7214 echo "int foo(void){return 1;}" > conftest.c
7215 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216 -dynamiclib -Wl,-single_module conftest.c" >&5
7217 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7219 _lt_result=$?
7220 # If there is a non-empty error log, and "single_module"
7221 # appears in it, assume the flag caused a linker warning
7222 if test -s conftest.err && $GREP single_module conftest.err; then
7223 cat conftest.err >&5
7224 # Otherwise, if the output was created with a 0 exit code from
7225 # the compiler, it worked.
7226 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7227 lt_cv_apple_cc_single_mod=yes
7228 else
7229 cat conftest.err >&5
7230 fi
7231 rm -rf libconftest.dylib*
7232 rm -f conftest.*
7233 fi
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7236 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7239 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7240 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_ld_exported_symbols_list=no
7244 save_LDFLAGS=$LDFLAGS
7245 echo "_main" > conftest.sym
7246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 lt_cv_ld_exported_symbols_list=yes
7260 else
7261 lt_cv_ld_exported_symbols_list=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 LDFLAGS=$save_LDFLAGS
7266
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7272 $as_echo_n "checking for -force_load linker flag... " >&6; }
7273 if ${lt_cv_ld_force_load+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 lt_cv_ld_force_load=no
7277 cat > conftest.c << _LT_EOF
7278 int forced_loaded() { return 2;}
7279 _LT_EOF
7280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7282 echo "$AR cru libconftest.a conftest.o" >&5
7283 $AR cru libconftest.a conftest.o 2>&5
7284 echo "$RANLIB libconftest.a" >&5
7285 $RANLIB libconftest.a 2>&5
7286 cat > conftest.c << _LT_EOF
7287 int main() { return 0;}
7288 _LT_EOF
7289 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7291 _lt_result=$?
7292 if test -s conftest.err && $GREP force_load conftest.err; then
7293 cat conftest.err >&5
7294 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7295 lt_cv_ld_force_load=yes
7296 else
7297 cat conftest.err >&5
7298 fi
7299 rm -f conftest.err libconftest.a conftest conftest.c
7300 rm -rf conftest.dSYM
7301
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7304 $as_echo "$lt_cv_ld_force_load" >&6; }
7305 case $host_os in
7306 rhapsody* | darwin1.[012])
7307 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7308 darwin1.*)
7309 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7310 darwin*) # darwin 5.x on
7311 # if running on 10.5 or later, the deployment target defaults
7312 # to the OS version, if on x86, and 10.4, the deployment
7313 # target defaults to 10.4. Don't you love it?
7314 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7315 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7317 10.[012][,.]*)
7318 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7319 10.*)
7320 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7321 esac
7322 ;;
7323 esac
7324 if test yes = "$lt_cv_apple_cc_single_mod"; then
7325 _lt_dar_single_mod='$single_module'
7326 fi
7327 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7328 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7329 else
7330 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7331 fi
7332 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7333 _lt_dsymutil='~$DSYMUTIL $lib || :'
7334 else
7335 _lt_dsymutil=
7336 fi
7337 ;;
7338 esac
7339
7340 # func_munge_path_list VARIABLE PATH
7341 # -----------------------------------
7342 # VARIABLE is name of variable containing _space_ separated list of
7343 # directories to be munged by the contents of PATH, which is string
7344 # having a format:
7345 # "DIR[:DIR]:"
7346 # string "DIR[ DIR]" will be prepended to VARIABLE
7347 # ":DIR[:DIR]"
7348 # string "DIR[ DIR]" will be appended to VARIABLE
7349 # "DIRP[:DIRP]::[DIRA:]DIRA"
7350 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7351 # "DIRA[ DIRA]" will be appended to VARIABLE
7352 # "DIR[:DIR]"
7353 # VARIABLE will be replaced by "DIR[ DIR]"
7354 func_munge_path_list ()
7355 {
7356 case x$2 in
7357 x)
7358 ;;
7359 *:)
7360 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7361 ;;
7362 x:*)
7363 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7364 ;;
7365 *::*)
7366 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7367 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7368 ;;
7369 *)
7370 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7371 ;;
7372 esac
7373 }
7374
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7381 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7382 # On Suns, sometimes $CPP names a directory.
7383 if test -n "$CPP" && test -d "$CPP"; then
7384 CPP=
7385 fi
7386 if test -z "$CPP"; then
7387 if ${ac_cv_prog_CPP+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 # Double quotes because CPP needs to be expanded
7391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7392 do
7393 ac_preproc_ok=false
7394 for ac_c_preproc_warn_flag in '' yes
7395 do
7396 # Use a header file that comes with gcc, so configuring glibc
7397 # with a fresh cross-compiler works.
7398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 # <limits.h> exists even on freestanding compilers.
7400 # On the NeXT, cc -E runs the code through the compiler's parser,
7401 # not just through cpp. "Syntax error" is here to catch this case.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #ifdef __STDC__
7405 # include <limits.h>
7406 #else
7407 # include <assert.h>
7408 #endif
7409 Syntax error
7410 _ACEOF
7411 if ac_fn_c_try_cpp "$LINENO"; then :
7412
7413 else
7414 # Broken: fails on valid input.
7415 continue
7416 fi
7417 rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419 # OK, works on sane cases. Now check whether nonexistent headers
7420 # can be detected and how.
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <ac_nonexistent.h>
7424 _ACEOF
7425 if ac_fn_c_try_cpp "$LINENO"; then :
7426 # Broken: success on invalid input.
7427 continue
7428 else
7429 # Passes both tests.
7430 ac_preproc_ok=:
7431 break
7432 fi
7433 rm -f conftest.err conftest.i conftest.$ac_ext
7434
7435 done
7436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437 rm -f conftest.i conftest.err conftest.$ac_ext
7438 if $ac_preproc_ok; then :
7439 break
7440 fi
7441
7442 done
7443 ac_cv_prog_CPP=$CPP
7444
7445 fi
7446 CPP=$ac_cv_prog_CPP
7447 else
7448 ac_cv_prog_CPP=$CPP
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7451 $as_echo "$CPP" >&6; }
7452 ac_preproc_ok=false
7453 for ac_c_preproc_warn_flag in '' yes
7454 do
7455 # Use a header file that comes with gcc, so configuring glibc
7456 # with a fresh cross-compiler works.
7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 # <limits.h> exists even on freestanding compilers.
7459 # On the NeXT, cc -E runs the code through the compiler's parser,
7460 # not just through cpp. "Syntax error" is here to catch this case.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7468 Syntax error
7469 _ACEOF
7470 if ac_fn_c_try_cpp "$LINENO"; then :
7471
7472 else
7473 # Broken: fails on valid input.
7474 continue
7475 fi
7476 rm -f conftest.err conftest.i conftest.$ac_ext
7477
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <ac_nonexistent.h>
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7485 # Broken: success on invalid input.
7486 continue
7487 else
7488 # Passes both tests.
7489 ac_preproc_ok=:
7490 break
7491 fi
7492 rm -f conftest.err conftest.i conftest.$ac_ext
7493
7494 done
7495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496 rm -f conftest.i conftest.err conftest.$ac_ext
7497 if $ac_preproc_ok; then :
7498
7499 else
7500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7502 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7503 See \`config.log' for more details" "$LINENO" 5; }
7504 fi
7505
7506 ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7514 $as_echo_n "checking for ANSI C header files... " >&6; }
7515 if ${ac_cv_header_stdc+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <stdlib.h>
7521 #include <stdarg.h>
7522 #include <string.h>
7523 #include <float.h>
7524
7525 int
7526 main ()
7527 {
7528
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_cv_header_stdc=yes
7535 else
7536 ac_cv_header_stdc=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539
7540 if test $ac_cv_header_stdc = yes; then
7541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #include <string.h>
7545
7546 _ACEOF
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548 $EGREP "memchr" >/dev/null 2>&1; then :
7549
7550 else
7551 ac_cv_header_stdc=no
7552 fi
7553 rm -f conftest*
7554
7555 fi
7556
7557 if test $ac_cv_header_stdc = yes; then
7558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <stdlib.h>
7562
7563 _ACEOF
7564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7565 $EGREP "free" >/dev/null 2>&1; then :
7566
7567 else
7568 ac_cv_header_stdc=no
7569 fi
7570 rm -f conftest*
7571
7572 fi
7573
7574 if test $ac_cv_header_stdc = yes; then
7575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7576 if test "$cross_compiling" = yes; then :
7577 :
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <ctype.h>
7582 #include <stdlib.h>
7583 #if ((' ' & 0x0FF) == 0x020)
7584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7586 #else
7587 # define ISLOWER(c) \
7588 (('a' <= (c) && (c) <= 'i') \
7589 || ('j' <= (c) && (c) <= 'r') \
7590 || ('s' <= (c) && (c) <= 'z'))
7591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7592 #endif
7593
7594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7595 int
7596 main ()
7597 {
7598 int i;
7599 for (i = 0; i < 256; i++)
7600 if (XOR (islower (i), ISLOWER (i))
7601 || toupper (i) != TOUPPER (i))
7602 return 2;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_run "$LINENO"; then :
7607
7608 else
7609 ac_cv_header_stdc=no
7610 fi
7611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7612 conftest.$ac_objext conftest.beam conftest.$ac_ext
7613 fi
7614
7615 fi
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7618 $as_echo "$ac_cv_header_stdc" >&6; }
7619 if test $ac_cv_header_stdc = yes; then
7620
7621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7622
7623 fi
7624
7625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7627 inttypes.h stdint.h unistd.h
7628 do :
7629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7631 "
7632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7633 cat >>confdefs.h <<_ACEOF
7634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635 _ACEOF
7636
7637 fi
7638
7639 done
7640
7641
7642 for ac_header in dlfcn.h
7643 do :
7644 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7645 "
7646 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7647 cat >>confdefs.h <<_ACEOF
7648 #define HAVE_DLFCN_H 1
7649 _ACEOF
7650
7651 fi
7652
7653 done
7654
7655
7656
7657
7658
7659 # Set options
7660
7661
7662
7663 enable_dlopen=no
7664
7665
7666 enable_win32_dll=no
7667
7668
7669 # Check whether --enable-shared was given.
7670 if test "${enable_shared+set}" = set; then :
7671 enableval=$enable_shared; p=${PACKAGE-default}
7672 case $enableval in
7673 yes) enable_shared=yes ;;
7674 no) enable_shared=no ;;
7675 *)
7676 enable_shared=no
7677 # Look at the argument we got. We use all the common list separators.
7678 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7679 for pkg in $enableval; do
7680 IFS=$lt_save_ifs
7681 if test "X$pkg" = "X$p"; then
7682 enable_shared=yes
7683 fi
7684 done
7685 IFS=$lt_save_ifs
7686 ;;
7687 esac
7688 else
7689 enable_shared=yes
7690 fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702 enableval=$enable_static; p=${PACKAGE-default}
7703 case $enableval in
7704 yes) enable_static=yes ;;
7705 no) enable_static=no ;;
7706 *)
7707 enable_static=no
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7710 for pkg in $enableval; do
7711 IFS=$lt_save_ifs
7712 if test "X$pkg" = "X$p"; then
7713 enable_static=yes
7714 fi
7715 done
7716 IFS=$lt_save_ifs
7717 ;;
7718 esac
7719 else
7720 enable_static=yes
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 # Check whether --with-pic was given.
7733 if test "${with_pic+set}" = set; then :
7734 withval=$with_pic; lt_p=${PACKAGE-default}
7735 case $withval in
7736 yes|no) pic_mode=$withval ;;
7737 *)
7738 pic_mode=default
7739 # Look at the argument we got. We use all the common list separators.
7740 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7741 for lt_pkg in $withval; do
7742 IFS=$lt_save_ifs
7743 if test "X$lt_pkg" = "X$lt_p"; then
7744 pic_mode=yes
7745 fi
7746 done
7747 IFS=$lt_save_ifs
7748 ;;
7749 esac
7750 else
7751 pic_mode=default
7752 fi
7753
7754
7755
7756
7757
7758
7759
7760
7761 # Check whether --enable-fast-install was given.
7762 if test "${enable_fast_install+set}" = set; then :
7763 enableval=$enable_fast_install; p=${PACKAGE-default}
7764 case $enableval in
7765 yes) enable_fast_install=yes ;;
7766 no) enable_fast_install=no ;;
7767 *)
7768 enable_fast_install=no
7769 # Look at the argument we got. We use all the common list separators.
7770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7771 for pkg in $enableval; do
7772 IFS=$lt_save_ifs
7773 if test "X$pkg" = "X$p"; then
7774 enable_fast_install=yes
7775 fi
7776 done
7777 IFS=$lt_save_ifs
7778 ;;
7779 esac
7780 else
7781 enable_fast_install=yes
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791 shared_archive_member_spec=
7792 case $host,$enable_shared in
7793 power*-*-aix[5-9]*,yes)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7795 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7796
7797 # Check whether --with-aix-soname was given.
7798 if test "${with_aix_soname+set}" = set; then :
7799 withval=$with_aix_soname; case $withval in
7800 aix|svr4|both)
7801 ;;
7802 *)
7803 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7804 ;;
7805 esac
7806 lt_cv_with_aix_soname=$with_aix_soname
7807 else
7808 if ${lt_cv_with_aix_soname+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_with_aix_soname=aix
7812 fi
7813
7814 with_aix_soname=$lt_cv_with_aix_soname
7815 fi
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7818 $as_echo "$with_aix_soname" >&6; }
7819 if test aix != "$with_aix_soname"; then
7820 # For the AIX way of multilib, we name the shared archive member
7821 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7822 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7823 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7824 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7825 if test 64 = "${OBJECT_MODE-32}"; then
7826 shared_archive_member_spec=shr_64
7827 else
7828 shared_archive_member_spec=shr
7829 fi
7830 fi
7831 ;;
7832 *)
7833 with_aix_soname=aix
7834 ;;
7835 esac
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 # This can be used to rebuild libtool when needed
7847 LIBTOOL_DEPS=$ltmain
7848
7849 # Always use our own libtool.
7850 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 test -z "$LN_S" && LN_S="ln -s"
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 if test -n "${ZSH_VERSION+set}"; then
7897 setopt NO_GLOB_SUBST
7898 fi
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7901 $as_echo_n "checking for objdir... " >&6; }
7902 if ${lt_cv_objdir+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 rm -f .libs 2>/dev/null
7906 mkdir .libs 2>/dev/null
7907 if test -d .libs; then
7908 lt_cv_objdir=.libs
7909 else
7910 # MS-DOS does not allow filenames that begin with a dot.
7911 lt_cv_objdir=_libs
7912 fi
7913 rmdir .libs 2>/dev/null
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7916 $as_echo "$lt_cv_objdir" >&6; }
7917 objdir=$lt_cv_objdir
7918
7919
7920
7921
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define LT_OBJDIR "$lt_cv_objdir/"
7925 _ACEOF
7926
7927
7928
7929
7930 case $host_os in
7931 aix3*)
7932 # AIX sometimes has problems with the GCC collect2 program. For some
7933 # reason, if we set the COLLECT_NAMES environment variable, the problems
7934 # vanish in a puff of smoke.
7935 if test set != "${COLLECT_NAMES+set}"; then
7936 COLLECT_NAMES=
7937 export COLLECT_NAMES
7938 fi
7939 ;;
7940 esac
7941
7942 # Global variables:
7943 ofile=libtool
7944 can_build_shared=yes
7945
7946 # All known linkers require a '.a' archive for static linking (except MSVC,
7947 # which needs '.lib').
7948 libext=a
7949
7950 with_gnu_ld=$lt_cv_prog_gnu_ld
7951
7952 old_CC=$CC
7953 old_CFLAGS=$CFLAGS
7954
7955 # Set sane defaults for various variables
7956 test -z "$CC" && CC=cc
7957 test -z "$LTCC" && LTCC=$CC
7958 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7959 test -z "$LD" && LD=ld
7960 test -z "$ac_objext" && ac_objext=o
7961
7962 func_cc_basename $compiler
7963 cc_basename=$func_cc_basename_result
7964
7965
7966 # Only perform the check for file, if the check method requires it
7967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7968 case $deplibs_check_method in
7969 file_magic*)
7970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7972 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7973 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 case $MAGIC_CMD in
7977 [\\/*] | ?:[\\/]*)
7978 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7979 ;;
7980 *)
7981 lt_save_MAGIC_CMD=$MAGIC_CMD
7982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984 for ac_dir in $ac_dummy; do
7985 IFS=$lt_save_ifs
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7988 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7989 if test -n "$file_magic_test_file"; then
7990 case $deplibs_check_method in
7991 "file_magic "*)
7992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995 $EGREP "$file_magic_regex" > /dev/null; then
7996 :
7997 else
7998 cat <<_LT_EOF 1>&2
7999
8000 *** Warning: the command libtool uses to detect shared libraries,
8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
8002 *** The result is that libtool may fail to recognize shared libraries
8003 *** as such. This will affect the creation of libtool libraries that
8004 *** depend on shared libraries, but programs linked with such libtool
8005 *** libraries will work regardless of this problem. Nevertheless, you
8006 *** may want to report the problem to your system manager and/or to
8007 *** bug-libtool (at] gnu.org
8008
8009 _LT_EOF
8010 fi ;;
8011 esac
8012 fi
8013 break
8014 fi
8015 done
8016 IFS=$lt_save_ifs
8017 MAGIC_CMD=$lt_save_MAGIC_CMD
8018 ;;
8019 esac
8020 fi
8021
8022 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8023 if test -n "$MAGIC_CMD"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8025 $as_echo "$MAGIC_CMD" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032
8033
8034
8035 if test -z "$lt_cv_path_MAGIC_CMD"; then
8036 if test -n "$ac_tool_prefix"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8038 $as_echo_n "checking for file... " >&6; }
8039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 case $MAGIC_CMD in
8043 [\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8045 ;;
8046 *)
8047 lt_save_MAGIC_CMD=$MAGIC_CMD
8048 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS=$lt_save_ifs
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f "$ac_dir/file"; then
8054 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
8064 cat <<_LT_EOF 1>&2
8065
8066 *** Warning: the command libtool uses to detect shared libraries,
8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
8068 *** The result is that libtool may fail to recognize shared libraries
8069 *** as such. This will affect the creation of libtool libraries that
8070 *** depend on shared libraries, but programs linked with such libtool
8071 *** libraries will work regardless of this problem. Nevertheless, you
8072 *** may want to report the problem to your system manager and/or to
8073 *** bug-libtool (at] gnu.org
8074
8075 _LT_EOF
8076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS=$lt_save_ifs
8083 MAGIC_CMD=$lt_save_MAGIC_CMD
8084 ;;
8085 esac
8086 fi
8087
8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089 if test -n "$MAGIC_CMD"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091 $as_echo "$MAGIC_CMD" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098 else
8099 MAGIC_CMD=:
8100 fi
8101 fi
8102
8103 fi
8104 ;;
8105 esac
8106
8107 # Use C for the default configuration in the libtool script
8108
8109 lt_save_CC=$CC
8110 ac_ext=c
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115
8116
8117 # Source file extension for C test sources.
8118 ac_ext=c
8119
8120 # Object file extension for compiled C test sources.
8121 objext=o
8122 objext=$objext
8123
8124 # Code to be used in simple compile tests
8125 lt_simple_compile_test_code="int some_variable = 0;"
8126
8127 # Code to be used in simple link tests
8128 lt_simple_link_test_code='int main(){return(0);}'
8129
8130
8131
8132
8133
8134
8135
8136 # If no C compiler was specified, use CC.
8137 LTCC=${LTCC-"$CC"}
8138
8139 # If no C compiler flags were specified, use CFLAGS.
8140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8141
8142 # Allow CC to be a program name with arguments.
8143 compiler=$CC
8144
8145 # Save the default compiler, since it gets overwritten when the other
8146 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8147 compiler_DEFAULT=$CC
8148
8149 # save warnings/boilerplate of simple test code
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153 _lt_compiler_boilerplate=`cat conftest.err`
8154 $RM conftest*
8155
8156 ac_outfile=conftest.$ac_objext
8157 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8159 _lt_linker_boilerplate=`cat conftest.err`
8160 $RM -r conftest*
8161
8162
8163 if test -n "$compiler"; then
8164
8165 lt_prog_compiler_no_builtin_flag=
8166
8167 if test yes = "$GCC"; then
8168 case $cc_basename in
8169 nvcc*)
8170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8171 *)
8172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8173 esac
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 lt_cv_prog_compiler_rtti_exceptions=no
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8184 # Insert the option either (1) after the last *FLAGS variable, or
8185 # (2) before a word containing "conftest.", or (3) at the end.
8186 # Note that $ac_compile itself does not contain backslashes and begins
8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
8188 # The option is referenced via a variable to avoid confusing sed.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>conftest.err)
8195 ac_status=$?
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s "$ac_outfile"; then
8199 # The compiler can only warn and ignore the option if not recognized
8200 # So say no if there are warnings other than the usual output.
8201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_rtti_exceptions=yes
8205 fi
8206 fi
8207 $RM conftest*
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8212
8213 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215 else
8216 :
8217 fi
8218
8219 fi
8220
8221
8222
8223
8224
8225
8226 lt_prog_compiler_wl=
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_static=
8229
8230
8231 if test yes = "$GCC"; then
8232 lt_prog_compiler_wl='-Wl,'
8233 lt_prog_compiler_static='-static'
8234
8235 case $host_os in
8236 aix*)
8237 # All AIX code is PIC.
8238 if test ia64 = "$host_cpu"; then
8239 # AIX 5 now supports IA64 processor
8240 lt_prog_compiler_static='-Bstatic'
8241 fi
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244
8245 amigaos*)
8246 case $host_cpu in
8247 powerpc)
8248 # see comment about AmigaOS4 .so support
8249 lt_prog_compiler_pic='-fPIC'
8250 ;;
8251 m68k)
8252 # FIXME: we need at least 68020 code to build shared libraries, but
8253 # adding the '-m68020' flag to GCC prevents building anything better,
8254 # like '-m68040'.
8255 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256 ;;
8257 esac
8258 ;;
8259
8260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8261 # PIC is the default for these OSes.
8262 ;;
8263
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8268 # (--disable-auto-import) libraries
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8270 case $host_os in
8271 os2*)
8272 lt_prog_compiler_static='$wl-static'
8273 ;;
8274 esac
8275 ;;
8276
8277 darwin* | rhapsody*)
8278 # PIC is the default on this platform
8279 # Common symbols not allowed in MH_DYLIB files
8280 lt_prog_compiler_pic='-fno-common'
8281 ;;
8282
8283 haiku*)
8284 # PIC is the default for Haiku.
8285 # The "-static" flag exists, but is broken.
8286 lt_prog_compiler_static=
8287 ;;
8288
8289 hpux*)
8290 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8291 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8292 # sets the default TLS model and affects inlining.
8293 case $host_cpu in
8294 hppa*64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='-fPIC'
8299 ;;
8300 esac
8301 ;;
8302
8303 interix[3-9]*)
8304 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8305 # Instead, we relocate shared libraries at runtime.
8306 ;;
8307
8308 msdosdjgpp*)
8309 # Just because we use GCC doesn't mean we suddenly get shared libraries
8310 # on systems that don't support them.
8311 lt_prog_compiler_can_build_shared=no
8312 enable_shared=no
8313 ;;
8314
8315 *nto* | *qnx*)
8316 # QNX uses GNU C++, but need to define -shared option too, otherwise
8317 # it will coredump.
8318 lt_prog_compiler_pic='-fPIC -shared'
8319 ;;
8320
8321 sysv4*MP*)
8322 if test -d /usr/nec; then
8323 lt_prog_compiler_pic=-Kconform_pic
8324 fi
8325 ;;
8326
8327 *)
8328 lt_prog_compiler_pic='-fPIC'
8329 ;;
8330 esac
8331
8332 case $cc_basename in
8333 nvcc*) # Cuda Compiler Driver 2.2
8334 lt_prog_compiler_wl='-Xlinker '
8335 if test -n "$lt_prog_compiler_pic"; then
8336 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8337 fi
8338 ;;
8339 esac
8340 else
8341 # PORTME Check for flag to pass linker flags through the system compiler.
8342 case $host_os in
8343 aix*)
8344 lt_prog_compiler_wl='-Wl,'
8345 if test ia64 = "$host_cpu"; then
8346 # AIX 5 now supports IA64 processor
8347 lt_prog_compiler_static='-Bstatic'
8348 else
8349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8350 fi
8351 ;;
8352
8353 darwin* | rhapsody*)
8354 # PIC is the default on this platform
8355 # Common symbols not allowed in MH_DYLIB files
8356 lt_prog_compiler_pic='-fno-common'
8357 case $cc_basename in
8358 nagfor*)
8359 # NAG Fortran compiler
8360 lt_prog_compiler_wl='-Wl,-Wl,,'
8361 lt_prog_compiler_pic='-PIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364 esac
8365 ;;
8366
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8371 case $host_os in
8372 os2*)
8373 lt_prog_compiler_static='$wl-static'
8374 ;;
8375 esac
8376 ;;
8377
8378 hpux9* | hpux10* | hpux11*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381 # not for PA HP-UX.
8382 case $host_cpu in
8383 hppa*64*|ia64*)
8384 # +Z the default
8385 ;;
8386 *)
8387 lt_prog_compiler_pic='+Z'
8388 ;;
8389 esac
8390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391 lt_prog_compiler_static='$wl-a ${wl}archive'
8392 ;;
8393
8394 irix5* | irix6* | nonstopux*)
8395 lt_prog_compiler_wl='-Wl,'
8396 # PIC (with -KPIC) is the default.
8397 lt_prog_compiler_static='-non_shared'
8398 ;;
8399
8400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8401 case $cc_basename in
8402 # old Intel for x86_64, which still supported -KPIC.
8403 ecc*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-static'
8407 ;;
8408 # icc used to be incompatible with GCC.
8409 # ICC 10 doesn't accept -KPIC any more.
8410 icc* | ifort*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-fPIC'
8413 lt_prog_compiler_static='-static'
8414 ;;
8415 # Lahey Fortran 8.1.
8416 lf95*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='--shared'
8419 lt_prog_compiler_static='--static'
8420 ;;
8421 nagfor*)
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 tcc*)
8428 # Fabrice Bellard et al's Tiny C Compiler
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-fPIC'
8431 lt_prog_compiler_static='-static'
8432 ;;
8433 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8434 # Portland Group compilers (*not* the Pentium gcc compiler,
8435 # which looks to be a dead project)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fpic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440 ccc*)
8441 lt_prog_compiler_wl='-Wl,'
8442 # All Alpha code is PIC.
8443 lt_prog_compiler_static='-non_shared'
8444 ;;
8445 xl* | bgxl* | bgf* | mpixl*)
8446 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-qpic'
8449 lt_prog_compiler_static='-qstaticlink'
8450 ;;
8451 *)
8452 case `$CC -V 2>&1 | sed 5q` in
8453 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8454 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl=''
8458 ;;
8459 *Sun\ F* | *Sun*Fortran*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Qoption ld '
8463 ;;
8464 *Sun\ C*)
8465 # Sun C 5.9
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_wl='-Wl,'
8469 ;;
8470 *Intel*\ [CF]*Compiler*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8474 ;;
8475 *Portland\ Group*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-fpic'
8478 lt_prog_compiler_static='-Bstatic'
8479 ;;
8480 esac
8481 ;;
8482 esac
8483 ;;
8484
8485 newsos6)
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 ;;
8489
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
8495
8496 osf3* | osf4* | osf5*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # All OSF/1 code is PIC.
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
8502 rdos*)
8503 lt_prog_compiler_static='-non_shared'
8504 ;;
8505
8506 solaris*)
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 case $cc_basename in
8510 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8511 lt_prog_compiler_wl='-Qoption ld ';;
8512 *)
8513 lt_prog_compiler_wl='-Wl,';;
8514 esac
8515 ;;
8516
8517 sunos4*)
8518 lt_prog_compiler_wl='-Qoption ld '
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 sysv4 | sysv4.2uw2* | sysv4.3*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528
8529 sysv4*MP*)
8530 if test -d /usr/nec; then
8531 lt_prog_compiler_pic='-Kconform_pic'
8532 lt_prog_compiler_static='-Bstatic'
8533 fi
8534 ;;
8535
8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541
8542 unicos*)
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_can_build_shared=no
8545 ;;
8546
8547 uts4*)
8548 lt_prog_compiler_pic='-pic'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551
8552 *)
8553 lt_prog_compiler_can_build_shared=no
8554 ;;
8555 esac
8556 fi
8557
8558 case $host_os in
8559 # For platforms that do not support PIC, -DPIC is meaningless:
8560 *djgpp*)
8561 lt_prog_compiler_pic=
8562 ;;
8563 *)
8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8565 ;;
8566 esac
8567
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8570 if ${lt_cv_prog_compiler_pic+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8576 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8577 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8578
8579 #
8580 # Check to make sure the PIC flag actually works.
8581 #
8582 if test -n "$lt_prog_compiler_pic"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8585 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_pic_works=no
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 # The option is referenced via a variable to avoid confusing sed.
8597 lt_compile=`echo "$ac_compile" | $SED \
8598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600 -e 's:$: $lt_compiler_flag:'`
8601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602 (eval "$lt_compile" 2>conftest.err)
8603 ac_status=$?
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 if (exit $ac_status) && test -s "$ac_outfile"; then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings other than the usual output.
8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_pic_works=yes
8613 fi
8614 fi
8615 $RM conftest*
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8619 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8620
8621 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8622 case $lt_prog_compiler_pic in
8623 "" | " "*) ;;
8624 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8625 esac
8626 else
8627 lt_prog_compiler_pic=
8628 lt_prog_compiler_can_build_shared=no
8629 fi
8630
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 #
8644 # Check to make sure the static flag actually works.
8645 #
8646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8649 if ${lt_cv_prog_compiler_static_works+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_prog_compiler_static_works=no
8653 save_LDFLAGS=$LDFLAGS
8654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657 # The linker can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 if test -s conftest.err; then
8660 # Append any errors to the config.log.
8661 cat conftest.err 1>&5
8662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if diff conftest.exp conftest.er2 >/dev/null; then
8665 lt_cv_prog_compiler_static_works=yes
8666 fi
8667 else
8668 lt_cv_prog_compiler_static_works=yes
8669 fi
8670 fi
8671 $RM -r conftest*
8672 LDFLAGS=$save_LDFLAGS
8673
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8676 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8677
8678 if test yes = "$lt_cv_prog_compiler_static_works"; then
8679 :
8680 else
8681 lt_prog_compiler_static=
8682 fi
8683
8684
8685
8686
8687
8688
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8692 if ${lt_cv_prog_compiler_c_o+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 lt_cv_prog_compiler_c_o=no
8696 $RM -r conftest 2>/dev/null
8697 mkdir conftest
8698 cd conftest
8699 mkdir out
8700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8701
8702 lt_compiler_flag="-o out/conftest2.$ac_objext"
8703 # Insert the option either (1) after the last *FLAGS variable, or
8704 # (2) before a word containing "conftest.", or (3) at the end.
8705 # Note that $ac_compile itself does not contain backslashes and begins
8706 # with a dollar sign (not a hyphen), so the echo should work correctly.
8707 lt_compile=`echo "$ac_compile" | $SED \
8708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8710 -e 's:$: $lt_compiler_flag:'`
8711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8712 (eval "$lt_compile" 2>out/conftest.err)
8713 ac_status=$?
8714 cat out/conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8717 then
8718 # The compiler can only warn and ignore the option if not recognized
8719 # So say no if there are warnings
8720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8723 lt_cv_prog_compiler_c_o=yes
8724 fi
8725 fi
8726 chmod u+w . 2>&5
8727 $RM conftest*
8728 # SGI C++ compiler will create directory out/ii_files/ for
8729 # template instantiation
8730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8731 $RM out/* && rmdir out
8732 cd ..
8733 $RM -r conftest
8734 $RM conftest*
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8739
8740
8741
8742
8743
8744
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8747 if ${lt_cv_prog_compiler_c_o+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 lt_cv_prog_compiler_c_o=no
8751 $RM -r conftest 2>/dev/null
8752 mkdir conftest
8753 cd conftest
8754 mkdir out
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756
8757 lt_compiler_flag="-o out/conftest2.$ac_objext"
8758 # Insert the option either (1) after the last *FLAGS variable, or
8759 # (2) before a word containing "conftest.", or (3) at the end.
8760 # Note that $ac_compile itself does not contain backslashes and begins
8761 # with a dollar sign (not a hyphen), so the echo should work correctly.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>out/conftest.err)
8768 ac_status=$?
8769 cat out/conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772 then
8773 # The compiler can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8778 lt_cv_prog_compiler_c_o=yes
8779 fi
8780 fi
8781 chmod u+w . 2>&5
8782 $RM conftest*
8783 # SGI C++ compiler will create directory out/ii_files/ for
8784 # template instantiation
8785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786 $RM out/* && rmdir out
8787 cd ..
8788 $RM -r conftest
8789 $RM conftest*
8790
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8794
8795
8796
8797
8798 hard_links=nottested
8799 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8800 # do not overwrite the value of need_locks provided by the user
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8802 $as_echo_n "checking if we can lock with hard links... " >&6; }
8803 hard_links=yes
8804 $RM conftest*
8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806 touch conftest.a
8807 ln conftest.a conftest.b 2>&5 || hard_links=no
8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8810 $as_echo "$hard_links" >&6; }
8811 if test no = "$hard_links"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8813 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8814 need_locks=warn
8815 fi
8816 else
8817 need_locks=no
8818 fi
8819
8820
8821
8822
8823
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8826 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8827
8828 runpath_var=
8829 allow_undefined_flag=
8830 always_export_symbols=no
8831 archive_cmds=
8832 archive_expsym_cmds=
8833 compiler_needs_object=no
8834 enable_shared_with_static_runtimes=no
8835 export_dynamic_flag_spec=
8836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837 hardcode_automatic=no
8838 hardcode_direct=no
8839 hardcode_direct_absolute=no
8840 hardcode_libdir_flag_spec=
8841 hardcode_libdir_separator=
8842 hardcode_minus_L=no
8843 hardcode_shlibpath_var=unsupported
8844 inherit_rpath=no
8845 link_all_deplibs=unknown
8846 module_cmds=
8847 module_expsym_cmds=
8848 old_archive_from_new_cmds=
8849 old_archive_from_expsyms_cmds=
8850 thread_safe_flag_spec=
8851 whole_archive_flag_spec=
8852 # include_expsyms should be a list of space-separated symbols to be *always*
8853 # included in the symbol list
8854 include_expsyms=
8855 # exclude_expsyms can be an extended regexp of symbols to exclude
8856 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8857 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8858 # as well as any symbol that contains 'd'.
8859 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8861 # platforms (ab)use it in PIC code, but their linkers get confused if
8862 # the symbol is explicitly referenced. Since portable code cannot
8863 # rely on this symbol name, it's probably fine to never include it in
8864 # preloaded symbol tables.
8865 # Exclude shared library initialization/finalization symbols.
8866 extract_expsyms_cmds=
8867
8868 case $host_os in
8869 cygwin* | mingw* | pw32* | cegcc*)
8870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8871 # When not using gcc, we currently assume that we are using
8872 # Microsoft Visual C++.
8873 if test yes != "$GCC"; then
8874 with_gnu_ld=no
8875 fi
8876 ;;
8877 interix*)
8878 # we just hope/assume this is gcc and not c89 (= MSVC++)
8879 with_gnu_ld=yes
8880 ;;
8881 openbsd* | bitrig*)
8882 with_gnu_ld=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*)
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 else
9809 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'
9810 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'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9814 hardcode_libdir_separator=:
9815 inherit_rpath=yes
9816 link_all_deplibs=yes
9817 ;;
9818
9819 linux*)
9820 case $cc_basename in
9821 tcc*)
9822 # Fabrice Bellard et al's Tiny C Compiler
9823 ld_shlibs=yes
9824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 esac
9827 ;;
9828
9829 netbsd*)
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9832 else
9833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9834 fi
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 hardcode_direct=yes
9837 hardcode_shlibpath_var=no
9838 ;;
9839
9840 newsos6)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=yes
9843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9844 hardcode_libdir_separator=:
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 *nto* | *qnx*)
9849 ;;
9850
9851 openbsd* | bitrig*)
9852 if test -f /usr/libexec/ld.so; then
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9855 hardcode_direct_absolute=yes
9856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9860 export_dynamic_flag_spec='$wl-E'
9861 else
9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9864 fi
9865 else
9866 ld_shlibs=no
9867 fi
9868 ;;
9869
9870 os2*)
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 hardcode_minus_L=yes
9873 allow_undefined_flag=unsupported
9874 shrext_cmds=.dll
9875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9878 $ECHO EXPORTS >> $output_objdir/$libname.def~
9879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9881 emximp -o $lib $output_objdir/$libname.def'
9882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9885 $ECHO EXPORTS >> $output_objdir/$libname.def~
9886 prefix_cmds="$SED"~
9887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9888 prefix_cmds="$prefix_cmds -e 1d";
9889 fi~
9890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9893 emximp -o $lib $output_objdir/$libname.def'
9894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9895 enable_shared_with_static_runtimes=yes
9896 ;;
9897
9898 osf3*)
9899 if test yes = "$GCC"; then
9900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9901 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'
9902 else
9903 allow_undefined_flag=' -expect_unresolved \*'
9904 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'
9905 fi
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9908 hardcode_libdir_separator=:
9909 ;;
9910
9911 osf4* | osf5*) # as osf3* with the addition of -msym flag
9912 if test yes = "$GCC"; then
9913 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9914 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'
9915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9916 else
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9919 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~
9920 $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'
9921
9922 # Both c and cxx compiler support -rpath directly
9923 hardcode_libdir_flag_spec='-rpath $libdir'
9924 fi
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_separator=:
9927 ;;
9928
9929 solaris*)
9930 no_undefined_flag=' -z defs'
9931 if test yes = "$GCC"; then
9932 wlarc='$wl'
9933 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $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'
9936 else
9937 case `$CC -V 2>&1` in
9938 *"Compilers 5.0"*)
9939 wlarc=''
9940 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9943 ;;
9944 *)
9945 wlarc='$wl'
9946 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9949 ;;
9950 esac
9951 fi
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_shlibpath_var=no
9954 case $host_os in
9955 solaris2.[0-5] | solaris2.[0-5].*) ;;
9956 *)
9957 # The compiler driver will combine and reorder linker options,
9958 # but understands '-z linker_flag'. GCC discards it without '$wl',
9959 # but is careful enough not to reorder.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 if test yes = "$GCC"; then
9962 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9963 else
9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9965 fi
9966 ;;
9967 esac
9968 link_all_deplibs=yes
9969 ;;
9970
9971 sunos4*)
9972 if test sequent = "$host_vendor"; then
9973 # Use $CC to link under sequent, because it throws in some extra .o
9974 # files that make .init and .fini sections work.
9975 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976 else
9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9978 fi
9979 hardcode_libdir_flag_spec='-L$libdir'
9980 hardcode_direct=yes
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 sysv4)
9986 case $host_vendor in
9987 sni)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes # is this really true???
9990 ;;
9991 siemens)
9992 ## LD is ld it makes a PLAMLIB
9993 ## CC just makes a GrossModule.
9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995 reload_cmds='$CC -r -o $output$reload_objs'
9996 hardcode_direct=no
9997 ;;
9998 motorola)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10001 ;;
10002 esac
10003 runpath_var='LD_RUN_PATH'
10004 hardcode_shlibpath_var=no
10005 ;;
10006
10007 sysv4.3*)
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 export_dynamic_flag_spec='-Bexport'
10011 ;;
10012
10013 sysv4*MP*)
10014 if test -d /usr/nec; then
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_shlibpath_var=no
10017 runpath_var=LD_RUN_PATH
10018 hardcode_runpath_var=yes
10019 ld_shlibs=yes
10020 fi
10021 ;;
10022
10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024 no_undefined_flag='$wl-z,text'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 runpath_var='LD_RUN_PATH'
10028
10029 if test yes = "$GCC"; then
10030 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 fi
10036 ;;
10037
10038 sysv5* | sco3.2v5* | sco5v6*)
10039 # Note: We CANNOT use -z defs as we might desire, because we do not
10040 # link with -lc, and that would cause any symbols used from libc to
10041 # always be unresolved, which means just about no library would
10042 # ever link correctly. If we're not using GNU ld we use -z text
10043 # though, which does catch some bad symbols but isn't as heavy-handed
10044 # as -z defs.
10045 no_undefined_flag='$wl-z,text'
10046 allow_undefined_flag='$wl-z,nodefs'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 hardcode_libdir_flag_spec='$wl-R,$libdir'
10050 hardcode_libdir_separator=':'
10051 link_all_deplibs=yes
10052 export_dynamic_flag_spec='$wl-Bexport'
10053 runpath_var='LD_RUN_PATH'
10054
10055 if test yes = "$GCC"; then
10056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 fi
10062 ;;
10063
10064 uts4*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 *)
10071 ld_shlibs=no
10072 ;;
10073 esac
10074
10075 if test sni = "$host_vendor"; then
10076 case $host in
10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078 export_dynamic_flag_spec='$wl-Blargedynsym'
10079 ;;
10080 esac
10081 fi
10082 fi
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test no = "$ld_shlibs" && can_build_shared=no
10087
10088 with_gnu_ld=$with_gnu_ld
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 #
10105 # Do we need to explicitly link libc?
10106 #
10107 case "x$archive_cmds_need_lc" in
10108 x|xyes)
10109 # Assume -lc should be added
10110 archive_cmds_need_lc=yes
10111
10112 if test yes,yes = "$GCC,$enable_shared"; then
10113 case $archive_cmds in
10114 *'~'*)
10115 # FIXME: we may have to deal with multi-command sequences.
10116 ;;
10117 '$CC '*)
10118 # Test whether the compiler implicitly links with -lc since on some
10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120 # to ld, don't add -lc before -lgcc.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 $RM conftest*
10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10128
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; } 2>conftest.err; then
10134 soname=conftest
10135 lib=conftest
10136 libobjs=conftest.$ac_objext
10137 deplibs=
10138 wl=$lt_prog_compiler_wl
10139 pic_flag=$lt_prog_compiler_pic
10140 compiler_flags=-v
10141 linker_flags=-v
10142 verstring=
10143 output_objdir=.
10144 libname=conftest
10145 lt_save_allow_undefined_flag=$allow_undefined_flag
10146 allow_undefined_flag=
10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149 ac_status=$?
10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151 test $ac_status = 0; }
10152 then
10153 lt_cv_archive_cmds_need_lc=no
10154 else
10155 lt_cv_archive_cmds_need_lc=yes
10156 fi
10157 allow_undefined_flag=$lt_save_allow_undefined_flag
10158 else
10159 cat conftest.err 1>&5
10160 fi
10161 $RM conftest*
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10167 ;;
10168 esac
10169 fi
10170 ;;
10171 esac
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10326
10327 if test yes = "$GCC"; then
10328 case $host_os in
10329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10330 *) lt_awk_arg='/^libraries:/' ;;
10331 esac
10332 case $host_os in
10333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10334 *) lt_sed_strip_eq='s|=/|/|g' ;;
10335 esac
10336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10337 case $lt_search_path_spec in
10338 *\;*)
10339 # if the path contains ";" then we assume it to be the separator
10340 # otherwise default to the standard path separator (i.e. ":") - it is
10341 # assumed that no part of a normal pathname contains ";" but that should
10342 # okay in the real world where ";" in dirpaths is itself problematic.
10343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10344 ;;
10345 *)
10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10347 ;;
10348 esac
10349 # Ok, now we have the path, separated by spaces, we can step through it
10350 # and add multilib dir if necessary...
10351 lt_tmp_lt_search_path_spec=
10352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10353 # ...but if some path component already ends with the multilib dir we assume
10354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10355 case "$lt_multi_os_dir; $lt_search_path_spec " in
10356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10357 lt_multi_os_dir=
10358 ;;
10359 esac
10360 for lt_sys_path in $lt_search_path_spec; do
10361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10363 elif test -n "$lt_multi_os_dir"; then
10364 test -d "$lt_sys_path" && \
10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10366 fi
10367 done
10368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10369 BEGIN {RS = " "; FS = "/|\n";} {
10370 lt_foo = "";
10371 lt_count = 0;
10372 for (lt_i = NF; lt_i > 0; lt_i--) {
10373 if ($lt_i != "" && $lt_i != ".") {
10374 if ($lt_i == "..") {
10375 lt_count++;
10376 } else {
10377 if (lt_count == 0) {
10378 lt_foo = "/" $lt_i lt_foo;
10379 } else {
10380 lt_count--;
10381 }
10382 }
10383 }
10384 }
10385 if (lt_foo != "") { lt_freq[lt_foo]++; }
10386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10387 }'`
10388 # AWK program above erroneously prepends '/' to C:/dos/paths
10389 # for these hosts.
10390 case $host_os in
10391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10393 esac
10394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10395 else
10396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10397 fi
10398 library_names_spec=
10399 libname_spec='lib$name'
10400 soname_spec=
10401 shrext_cmds=.so
10402 postinstall_cmds=
10403 postuninstall_cmds=
10404 finish_cmds=
10405 finish_eval=
10406 shlibpath_var=
10407 shlibpath_overrides_runpath=unknown
10408 version_type=none
10409 dynamic_linker="$host_os ld.so"
10410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10411 need_lib_prefix=unknown
10412 hardcode_into_libs=no
10413
10414 # when you set need_version to no, make sure it does not cause -set_version
10415 # flags to be left without arguments
10416 need_version=unknown
10417
10418
10419
10420 case $host_os in
10421 aix3*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10424 shlibpath_var=LIBPATH
10425
10426 # AIX 3 has no versioning support, so we append a major version to the name.
10427 soname_spec='$libname$release$shared_ext$major'
10428 ;;
10429
10430 aix[4-9]*)
10431 version_type=linux # correct to gnu/linux during the next big refactor
10432 need_lib_prefix=no
10433 need_version=no
10434 hardcode_into_libs=yes
10435 if test ia64 = "$host_cpu"; then
10436 # AIX 5 supports IA64
10437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 else
10440 # With GCC up to 2.95.x, collect2 would create an import file
10441 # for dependence libraries. The import file would start with
10442 # the line '#! .'. This would cause the generated library to
10443 # depend on '.', always an invalid library. This was fixed in
10444 # development snapshots of GCC prior to 3.0.
10445 case $host_os in
10446 aix4 | aix4.[01] | aix4.[01].*)
10447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10448 echo ' yes '
10449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10450 :
10451 else
10452 can_build_shared=no
10453 fi
10454 ;;
10455 esac
10456 # Using Import Files as archive members, it is possible to support
10457 # filename-based versioning of shared library archives on AIX. While
10458 # this would work for both with and without runtime linking, it will
10459 # prevent static linking of such archives. So we do filename-based
10460 # shared library versioning with .so extension only, which is used
10461 # when both runtime linking and shared linking is enabled.
10462 # Unfortunately, runtime linking may impact performance, so we do
10463 # not want this to be the default eventually. Also, we use the
10464 # versioned .so libs for executables only if there is the -brtl
10465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10466 # To allow for filename-based versioning support, we need to create
10467 # libNAME.so.V as an archive file, containing:
10468 # *) an Import File, referring to the versioned filename of the
10469 # archive as well as the shared archive member, telling the
10470 # bitwidth (32 or 64) of that shared object, and providing the
10471 # list of exported symbols of that shared object, eventually
10472 # decorated with the 'weak' keyword
10473 # *) the shared object with the F_LOADONLY flag set, to really avoid
10474 # it being seen by the linker.
10475 # At run time we better use the real file rather than another symlink,
10476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10477
10478 case $with_aix_soname,$aix_use_runtimelinking in
10479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10480 # soname into executable. Probably we can add versioning support to
10481 # collect2, so additional links can be useful in future.
10482 aix,yes) # traditional libtool
10483 dynamic_linker='AIX unversionable lib.so'
10484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10485 # instead of lib<name>.a to let people know that these are not
10486 # typical AIX shared libraries.
10487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10488 ;;
10489 aix,no) # traditional AIX only
10490 dynamic_linker='AIX lib.a(lib.so.V)'
10491 # We preserve .a as extension for shared libraries through AIX4.2
10492 # and later when we are not doing run time linking.
10493 library_names_spec='$libname$release.a $libname.a'
10494 soname_spec='$libname$release$shared_ext$major'
10495 ;;
10496 svr4,*) # full svr4 only
10497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10499 # We do not specify a path in Import Files, so LIBPATH fires.
10500 shlibpath_overrides_runpath=yes
10501 ;;
10502 *,yes) # both, prefer svr4
10503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10505 # unpreferred sharedlib libNAME.a needs extra handling
10506 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"'
10507 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"'
10508 # We do not specify a path in Import Files, so LIBPATH fires.
10509 shlibpath_overrides_runpath=yes
10510 ;;
10511 *,no) # both, prefer aix
10512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10513 library_names_spec='$libname$release.a $libname.a'
10514 soname_spec='$libname$release$shared_ext$major'
10515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10516 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)'
10517 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"'
10518 ;;
10519 esac
10520 shlibpath_var=LIBPATH
10521 fi
10522 ;;
10523
10524 amigaos*)
10525 case $host_cpu in
10526 powerpc)
10527 # Since July 2007 AmigaOS4 officially supports .so libraries.
10528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530 ;;
10531 m68k)
10532 library_names_spec='$libname.ixlibrary $libname.a'
10533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534 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'
10535 ;;
10536 esac
10537 ;;
10538
10539 beos*)
10540 library_names_spec='$libname$shared_ext'
10541 dynamic_linker="$host_os ld.so"
10542 shlibpath_var=LIBRARY_PATH
10543 ;;
10544
10545 bsdi[45]*)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 need_version=no
10548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10549 soname_spec='$libname$release$shared_ext$major'
10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554 # the default ld.so.conf also contains /usr/contrib/lib and
10555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556 # libtool to hard-code these into programs
10557 ;;
10558
10559 cygwin* | mingw* | pw32* | cegcc*)
10560 version_type=windows
10561 shrext_cmds=.dll
10562 need_version=no
10563 need_lib_prefix=no
10564
10565 case $GCC,$cc_basename in
10566 yes,*)
10567 # gcc
10568 library_names_spec='$libname.dll.a'
10569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10570 postinstall_cmds='base_file=`basename \$file`~
10571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10572 dldir=$destdir/`dirname \$dlpath`~
10573 test -d \$dldir || mkdir -p \$dldir~
10574 $install_prog $dir/$dlname \$dldir/$dlname~
10575 chmod a+x \$dldir/$dlname~
10576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10578 fi'
10579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10580 dlpath=$dir/\$dldll~
10581 $RM \$dlpath'
10582 shlibpath_overrides_runpath=yes
10583
10584 case $host_os in
10585 cygwin*)
10586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10588
10589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10590 ;;
10591 mingw* | cegcc*)
10592 # MinGW DLLs use traditional 'lib' prefix
10593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10594 ;;
10595 pw32*)
10596 # pw32 DLLs use 'pw' prefix rather than 'lib'
10597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10598 ;;
10599 esac
10600 dynamic_linker='Win32 ld.exe'
10601 ;;
10602
10603 *,cl*)
10604 # Native MSVC
10605 libname_spec='$name'
10606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10607 library_names_spec='$libname.dll.lib'
10608
10609 case $build_os in
10610 mingw*)
10611 sys_lib_search_path_spec=
10612 lt_save_ifs=$IFS
10613 IFS=';'
10614 for lt_path in $LIB
10615 do
10616 IFS=$lt_save_ifs
10617 # Let DOS variable expansion print the short 8.3 style file name.
10618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10620 done
10621 IFS=$lt_save_ifs
10622 # Convert to MSYS style.
10623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10624 ;;
10625 cygwin*)
10626 # Convert to unix form, then to dos form, then back to unix form
10627 # but this time dos style (no spaces!) so that the unix form looks
10628 # like /cygdrive/c/PROGRA~1:/cygdr...
10629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632 ;;
10633 *)
10634 sys_lib_search_path_spec=$LIB
10635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10636 # It is most probably a Windows format PATH.
10637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10638 else
10639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10640 fi
10641 # FIXME: find the short name or the path components, as spaces are
10642 # common. (e.g. "Program Files" -> "PROGRA~1")
10643 ;;
10644 esac
10645
10646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647 postinstall_cmds='base_file=`basename \$file`~
10648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10649 dldir=$destdir/`dirname \$dlpath`~
10650 test -d \$dldir || mkdir -p \$dldir~
10651 $install_prog $dir/$dlname \$dldir/$dlname'
10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653 dlpath=$dir/\$dldll~
10654 $RM \$dlpath'
10655 shlibpath_overrides_runpath=yes
10656 dynamic_linker='Win32 link.exe'
10657 ;;
10658
10659 *)
10660 # Assume MSVC wrapper
10661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10662 dynamic_linker='Win32 ld.exe'
10663 ;;
10664 esac
10665 # FIXME: first we should search . and the directory the executable is in
10666 shlibpath_var=PATH
10667 ;;
10668
10669 darwin* | rhapsody*)
10670 dynamic_linker="$host_os dyld"
10671 version_type=darwin
10672 need_lib_prefix=no
10673 need_version=no
10674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10675 soname_spec='$libname$release$major$shared_ext'
10676 shlibpath_overrides_runpath=yes
10677 shlibpath_var=DYLD_LIBRARY_PATH
10678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10679
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10682 ;;
10683
10684 dgux*)
10685 version_type=linux # correct to gnu/linux during the next big refactor
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10689 soname_spec='$libname$release$shared_ext$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 ;;
10692
10693 freebsd* | dragonfly*)
10694 # DragonFly does not have aout. When/if they implement a new
10695 # versioning mechanism, adjust this.
10696 if test -x /usr/bin/objformat; then
10697 objformat=`/usr/bin/objformat`
10698 else
10699 case $host_os in
10700 freebsd[23].*) objformat=aout ;;
10701 *) objformat=elf ;;
10702 esac
10703 fi
10704 version_type=freebsd-$objformat
10705 case $version_type in
10706 freebsd-elf*)
10707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10708 soname_spec='$libname$release$shared_ext$major'
10709 need_version=no
10710 need_lib_prefix=no
10711 ;;
10712 freebsd-*)
10713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10714 need_version=yes
10715 ;;
10716 esac
10717 shlibpath_var=LD_LIBRARY_PATH
10718 case $host_os in
10719 freebsd2.*)
10720 shlibpath_overrides_runpath=yes
10721 ;;
10722 freebsd3.[01]* | freebsdelf3.[01]*)
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10725 ;;
10726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728 shlibpath_overrides_runpath=no
10729 hardcode_into_libs=yes
10730 ;;
10731 *) # from 4.6 on, and DragonFly
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10734 ;;
10735 esac
10736 ;;
10737
10738 haiku*)
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 need_lib_prefix=no
10741 need_version=no
10742 dynamic_linker="$host_os runtime_loader"
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 shlibpath_var=LIBRARY_PATH
10746 shlibpath_overrides_runpath=no
10747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748 hardcode_into_libs=yes
10749 ;;
10750
10751 hpux9* | hpux10* | hpux11*)
10752 # Give a soname corresponding to the major version so that dld.sl refuses to
10753 # link against other versions.
10754 version_type=sunos
10755 need_lib_prefix=no
10756 need_version=no
10757 case $host_cpu in
10758 ia64*)
10759 shrext_cmds='.so'
10760 hardcode_into_libs=yes
10761 dynamic_linker="$host_os dld.so"
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10765 soname_spec='$libname$release$shared_ext$major'
10766 if test 32 = "$HPUX_IA64_MODE"; then
10767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10769 else
10770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10772 fi
10773 ;;
10774 hppa*64*)
10775 shrext_cmds='.sl'
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.sl"
10778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10781 soname_spec='$libname$release$shared_ext$major'
10782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784 ;;
10785 *)
10786 shrext_cmds='.sl'
10787 dynamic_linker="$host_os dld.sl"
10788 shlibpath_var=SHLIB_PATH
10789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10791 soname_spec='$libname$release$shared_ext$major'
10792 ;;
10793 esac
10794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10795 postinstall_cmds='chmod 555 $lib'
10796 # or fails outright, so override atomically:
10797 install_override_mode=555
10798 ;;
10799
10800 interix[3-9]*)
10801 version_type=linux # correct to gnu/linux during the next big refactor
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805 soname_spec='$libname$release$shared_ext$major'
10806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 ;;
10811
10812 irix5* | irix6* | nonstopux*)
10813 case $host_os in
10814 nonstopux*) version_type=nonstopux ;;
10815 *)
10816 if test yes = "$lt_cv_prog_gnu_ld"; then
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 else
10819 version_type=irix
10820 fi ;;
10821 esac
10822 need_lib_prefix=no
10823 need_version=no
10824 soname_spec='$libname$release$shared_ext$major'
10825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10826 case $host_os in
10827 irix5* | nonstopux*)
10828 libsuff= shlibsuff=
10829 ;;
10830 *)
10831 case $LD in # libtool.m4 will add one of these switches to LD
10832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10833 libsuff= shlibsuff= libmagic=32-bit;;
10834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10835 libsuff=32 shlibsuff=N32 libmagic=N32;;
10836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10838 *) libsuff= shlibsuff= libmagic=never-match;;
10839 esac
10840 ;;
10841 esac
10842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10843 shlibpath_overrides_runpath=no
10844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10846 hardcode_into_libs=yes
10847 ;;
10848
10849 # No shared lib support for Linux oldld, aout, or coff.
10850 linux*oldld* | linux*aout* | linux*coff*)
10851 dynamic_linker=no
10852 ;;
10853
10854 linux*android*)
10855 version_type=none # Android doesn't support versioned libraries.
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='$libname$release$shared_ext'
10859 soname_spec='$libname$release$shared_ext'
10860 finish_cmds=
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863
10864 # This implies no fast_install, which is unacceptable.
10865 # Some rework will be needed to allow for fast_install
10866 # before this can be enabled.
10867 hardcode_into_libs=yes
10868
10869 dynamic_linker='Android linker'
10870 # Don't embed -rpath directories since the linker doesn't support them.
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 ;;
10873
10874 # This must be glibc/ELF.
10875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880 soname_spec='$libname$release$shared_ext$major'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884
10885 # Some binutils ld are patched to set DT_RUNPATH
10886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 lt_cv_shlibpath_overrides_runpath=no
10890 save_LDFLAGS=$LDFLAGS
10891 save_libdir=$libdir
10892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 int
10898 main ()
10899 {
10900
10901 ;
10902 return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10907 lt_cv_shlibpath_overrides_runpath=yes
10908 fi
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LDFLAGS=$save_LDFLAGS
10913 libdir=$save_libdir
10914
10915 fi
10916
10917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10918
10919 # This implies no fast_install, which is unacceptable.
10920 # Some rework will be needed to allow for fast_install
10921 # before this can be enabled.
10922 hardcode_into_libs=yes
10923
10924 # Add ABI-specific directories to the system library path.
10925 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10926
10927 # Ideally, we could use ldconfig to report *all* directores which are
10928 # searched for libraries, however this is still not possible. Aside from not
10929 # being certain /sbin/ldconfig is available, command
10930 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10931 # even though it is searched at run-time. Try to do the best guess by
10932 # appending ld.so.conf contents (and includes) to the search path.
10933 if test -f /etc/ld.so.conf; then
10934 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' ' '`
10935 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10936 fi
10937
10938 # We used to test for /lib/ld.so.1 and disable shared libraries on
10939 # powerpc, because MkLinux only supported shared libraries with the
10940 # GNU dynamic linker. Since this was broken with cross compilers,
10941 # most powerpc-linux boxes support dynamic linking these days and
10942 # people can always --disable-shared, the test was removed, and we
10943 # assume the GNU/Linux dynamic linker is in use.
10944 dynamic_linker='GNU/Linux ld.so'
10945 ;;
10946
10947 netbsd*)
10948 version_type=sunos
10949 need_lib_prefix=no
10950 need_version=no
10951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10954 dynamic_linker='NetBSD (a.out) ld.so'
10955 else
10956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10957 soname_spec='$libname$release$shared_ext$major'
10958 dynamic_linker='NetBSD ld.elf_so'
10959 fi
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes
10962 hardcode_into_libs=yes
10963 ;;
10964
10965 newsos6)
10966 version_type=linux # correct to gnu/linux during the next big refactor
10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 ;;
10971
10972 *nto* | *qnx*)
10973 version_type=qnx
10974 need_lib_prefix=no
10975 need_version=no
10976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10977 soname_spec='$libname$release$shared_ext$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=no
10980 hardcode_into_libs=yes
10981 dynamic_linker='ldqnx.so'
10982 ;;
10983
10984 openbsd* | bitrig*)
10985 version_type=sunos
10986 sys_lib_dlsearch_path_spec=/usr/lib
10987 need_lib_prefix=no
10988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10989 need_version=no
10990 else
10991 need_version=yes
10992 fi
10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=yes
10997 ;;
10998
10999 os2*)
11000 libname_spec='$name'
11001 version_type=windows
11002 shrext_cmds=.dll
11003 need_version=no
11004 need_lib_prefix=no
11005 # OS/2 can only load a DLL with a base name of 8 characters or less.
11006 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11007 v=$($ECHO $release$versuffix | tr -d .-);
11008 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11009 $ECHO $n$v`$shared_ext'
11010 library_names_spec='${libname}_dll.$libext'
11011 dynamic_linker='OS/2 ld.exe'
11012 shlibpath_var=BEGINLIBPATH
11013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11015 postinstall_cmds='base_file=`basename \$file`~
11016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11017 dldir=$destdir/`dirname \$dlpath`~
11018 test -d \$dldir || mkdir -p \$dldir~
11019 $install_prog $dir/$dlname \$dldir/$dlname~
11020 chmod a+x \$dldir/$dlname~
11021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11023 fi'
11024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11025 dlpath=$dir/\$dldll~
11026 $RM \$dlpath'
11027 ;;
11028
11029 osf3* | osf4* | osf5*)
11030 version_type=osf
11031 need_lib_prefix=no
11032 need_version=no
11033 soname_spec='$libname$release$shared_ext$major'
11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11038 ;;
11039
11040 rdos*)
11041 dynamic_linker=no
11042 ;;
11043
11044 solaris*)
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11049 soname_spec='$libname$release$shared_ext$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
11052 hardcode_into_libs=yes
11053 # ldd complains unless libraries are executable
11054 postinstall_cmds='chmod +x $lib'
11055 ;;
11056
11057 sunos4*)
11058 version_type=sunos
11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 if test yes = "$with_gnu_ld"; then
11064 need_lib_prefix=no
11065 fi
11066 need_version=yes
11067 ;;
11068
11069 sysv4 | sysv4.3*)
11070 version_type=linux # correct to gnu/linux during the next big refactor
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072 soname_spec='$libname$release$shared_ext$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 case $host_vendor in
11075 sni)
11076 shlibpath_overrides_runpath=no
11077 need_lib_prefix=no
11078 runpath_var=LD_RUN_PATH
11079 ;;
11080 siemens)
11081 need_lib_prefix=no
11082 ;;
11083 motorola)
11084 need_lib_prefix=no
11085 need_version=no
11086 shlibpath_overrides_runpath=no
11087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11088 ;;
11089 esac
11090 ;;
11091
11092 sysv4*MP*)
11093 if test -d /usr/nec; then
11094 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11096 soname_spec='$libname$shared_ext.$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 fi
11099 ;;
11100
11101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11102 version_type=sco
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11106 soname_spec='$libname$release$shared_ext$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11110 if test yes = "$with_gnu_ld"; then
11111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11112 else
11113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11114 case $host_os in
11115 sco3.2v5*)
11116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11117 ;;
11118 esac
11119 fi
11120 sys_lib_dlsearch_path_spec='/usr/lib'
11121 ;;
11122
11123 tpf*)
11124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11125 version_type=linux # correct to gnu/linux during the next big refactor
11126 need_lib_prefix=no
11127 need_version=no
11128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 ;;
11133
11134 uts4*)
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 ;;
11140
11141 *)
11142 dynamic_linker=no
11143 ;;
11144 esac
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11146 $as_echo "$dynamic_linker" >&6; }
11147 test no = "$dynamic_linker" && can_build_shared=no
11148
11149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11150 if test yes = "$GCC"; then
11151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11152 fi
11153
11154 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11155 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11156 fi
11157
11158 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11159 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11160 fi
11161
11162 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11163 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11164
11165 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11166 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11167
11168 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11169 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11269 hardcode_action=
11270 if test -n "$hardcode_libdir_flag_spec" ||
11271 test -n "$runpath_var" ||
11272 test yes = "$hardcode_automatic"; then
11273
11274 # We can hardcode non-existent directories.
11275 if test no != "$hardcode_direct" &&
11276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11277 # have to relink, otherwise we might link with an installed library
11278 # when we should be linking with a yet-to-be-installed one
11279 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11280 test no != "$hardcode_minus_L"; then
11281 # Linking always hardcodes the temporary library directory.
11282 hardcode_action=relink
11283 else
11284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11285 hardcode_action=immediate
11286 fi
11287 else
11288 # We cannot hardcode anything, or else we can only hardcode existing
11289 # directories.
11290 hardcode_action=unsupported
11291 fi
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11293 $as_echo "$hardcode_action" >&6; }
11294
11295 if test relink = "$hardcode_action" ||
11296 test yes = "$inherit_rpath"; then
11297 # Fast installation is not supported
11298 enable_fast_install=no
11299 elif test yes = "$shlibpath_overrides_runpath" ||
11300 test no = "$enable_shared"; then
11301 # Fast installation is not necessary
11302 enable_fast_install=needless
11303 fi
11304
11305
11306
11307
11308
11309
11310 if test yes != "$enable_dlopen"; then
11311 enable_dlopen=unknown
11312 enable_dlopen_self=unknown
11313 enable_dlopen_self_static=unknown
11314 else
11315 lt_cv_dlopen=no
11316 lt_cv_dlopen_libs=
11317
11318 case $host_os in
11319 beos*)
11320 lt_cv_dlopen=load_add_on
11321 lt_cv_dlopen_libs=
11322 lt_cv_dlopen_self=yes
11323 ;;
11324
11325 mingw* | pw32* | cegcc*)
11326 lt_cv_dlopen=LoadLibrary
11327 lt_cv_dlopen_libs=
11328 ;;
11329
11330 cygwin*)
11331 lt_cv_dlopen=dlopen
11332 lt_cv_dlopen_libs=
11333 ;;
11334
11335 darwin*)
11336 # if libdl is installed we need to link against it
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11339 if ${ac_cv_lib_dl_dlopen+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldl $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char dlopen ();
11354 int
11355 main ()
11356 {
11357 return dlopen ();
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dl_dlopen=yes
11364 else
11365 ac_cv_lib_dl_dlopen=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11373 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11375 else
11376
11377 lt_cv_dlopen=dyld
11378 lt_cv_dlopen_libs=
11379 lt_cv_dlopen_self=yes
11380
11381 fi
11382
11383 ;;
11384
11385 tpf*)
11386 # Don't try to run any link tests for TPF. We know it's impossible
11387 # because TPF is a cross-compiler, and we know how we open DSOs.
11388 lt_cv_dlopen=dlopen
11389 lt_cv_dlopen_libs=
11390 lt_cv_dlopen_self=no
11391 ;;
11392
11393 *)
11394 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11395 if test "x$ac_cv_func_shl_load" = xyes; then :
11396 lt_cv_dlopen=shl_load
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11399 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11400 if ${ac_cv_lib_dld_shl_load+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldld $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char shl_load ();
11415 int
11416 main ()
11417 {
11418 return shl_load ();
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 ac_cv_lib_dld_shl_load=yes
11425 else
11426 ac_cv_lib_dld_shl_load=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11433 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11434 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11435 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11436 else
11437 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11438 if test "x$ac_cv_func_dlopen" = xyes; then :
11439 lt_cv_dlopen=dlopen
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11443 if ${ac_cv_lib_dl_dlopen+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldl $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dlopen ();
11458 int
11459 main ()
11460 {
11461 return dlopen ();
11462 ;
11463 return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_dl_dlopen=yes
11468 else
11469 ac_cv_lib_dl_dlopen=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11481 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11482 if ${ac_cv_lib_svld_dlopen+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-lsvld $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dlopen ();
11497 int
11498 main ()
11499 {
11500 return dlopen ();
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_svld_dlopen=yes
11507 else
11508 ac_cv_lib_svld_dlopen=no
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11515 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11516 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11517 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11520 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11521 if ${ac_cv_lib_dld_dld_link+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-ldld $LIBS"
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char dld_link ();
11536 int
11537 main ()
11538 {
11539 return dld_link ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_dld_dld_link=yes
11546 else
11547 ac_cv_lib_dld_dld_link=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11554 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11555 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11556 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11557 fi
11558
11559
11560 fi
11561
11562
11563 fi
11564
11565
11566 fi
11567
11568
11569 fi
11570
11571
11572 fi
11573
11574 ;;
11575 esac
11576
11577 if test no = "$lt_cv_dlopen"; then
11578 enable_dlopen=no
11579 else
11580 enable_dlopen=yes
11581 fi
11582
11583 case $lt_cv_dlopen in
11584 dlopen)
11585 save_CPPFLAGS=$CPPFLAGS
11586 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11587
11588 save_LDFLAGS=$LDFLAGS
11589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11590
11591 save_LIBS=$LIBS
11592 LIBS="$lt_cv_dlopen_libs $LIBS"
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11595 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11596 if ${lt_cv_dlopen_self+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 if test yes = "$cross_compiling"; then :
11600 lt_cv_dlopen_self=cross
11601 else
11602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11603 lt_status=$lt_dlunknown
11604 cat > conftest.$ac_ext <<_LT_EOF
11605 #line $LINENO "configure"
11606 #include "confdefs.h"
11607
11608 #if HAVE_DLFCN_H
11609 #include <dlfcn.h>
11610 #endif
11611
11612 #include <stdio.h>
11613
11614 #ifdef RTLD_GLOBAL
11615 # define LT_DLGLOBAL RTLD_GLOBAL
11616 #else
11617 # ifdef DL_GLOBAL
11618 # define LT_DLGLOBAL DL_GLOBAL
11619 # else
11620 # define LT_DLGLOBAL 0
11621 # endif
11622 #endif
11623
11624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11625 find out it does not work in some platform. */
11626 #ifndef LT_DLLAZY_OR_NOW
11627 # ifdef RTLD_LAZY
11628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11629 # else
11630 # ifdef DL_LAZY
11631 # define LT_DLLAZY_OR_NOW DL_LAZY
11632 # else
11633 # ifdef RTLD_NOW
11634 # define LT_DLLAZY_OR_NOW RTLD_NOW
11635 # else
11636 # ifdef DL_NOW
11637 # define LT_DLLAZY_OR_NOW DL_NOW
11638 # else
11639 # define LT_DLLAZY_OR_NOW 0
11640 # endif
11641 # endif
11642 # endif
11643 # endif
11644 #endif
11645
11646 /* When -fvisibility=hidden is used, assume the code has been annotated
11647 correspondingly for the symbols needed. */
11648 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11649 int fnord () __attribute__((visibility("default")));
11650 #endif
11651
11652 int fnord () { return 42; }
11653 int main ()
11654 {
11655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11656 int status = $lt_dlunknown;
11657
11658 if (self)
11659 {
11660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11661 else
11662 {
11663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11664 else puts (dlerror ());
11665 }
11666 /* dlclose (self); */
11667 }
11668 else
11669 puts (dlerror ());
11670
11671 return status;
11672 }
11673 _LT_EOF
11674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11675 (eval $ac_link) 2>&5
11676 ac_status=$?
11677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11679 (./conftest; exit; ) >&5 2>/dev/null
11680 lt_status=$?
11681 case x$lt_status in
11682 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11683 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11684 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11685 esac
11686 else :
11687 # compilation failed
11688 lt_cv_dlopen_self=no
11689 fi
11690 fi
11691 rm -fr conftest*
11692
11693
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11696 $as_echo "$lt_cv_dlopen_self" >&6; }
11697
11698 if test yes = "$lt_cv_dlopen_self"; then
11699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11701 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11702 if ${lt_cv_dlopen_self_static+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test yes = "$cross_compiling"; then :
11706 lt_cv_dlopen_self_static=cross
11707 else
11708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11709 lt_status=$lt_dlunknown
11710 cat > conftest.$ac_ext <<_LT_EOF
11711 #line $LINENO "configure"
11712 #include "confdefs.h"
11713
11714 #if HAVE_DLFCN_H
11715 #include <dlfcn.h>
11716 #endif
11717
11718 #include <stdio.h>
11719
11720 #ifdef RTLD_GLOBAL
11721 # define LT_DLGLOBAL RTLD_GLOBAL
11722 #else
11723 # ifdef DL_GLOBAL
11724 # define LT_DLGLOBAL DL_GLOBAL
11725 # else
11726 # define LT_DLGLOBAL 0
11727 # endif
11728 #endif
11729
11730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11731 find out it does not work in some platform. */
11732 #ifndef LT_DLLAZY_OR_NOW
11733 # ifdef RTLD_LAZY
11734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11735 # else
11736 # ifdef DL_LAZY
11737 # define LT_DLLAZY_OR_NOW DL_LAZY
11738 # else
11739 # ifdef RTLD_NOW
11740 # define LT_DLLAZY_OR_NOW RTLD_NOW
11741 # else
11742 # ifdef DL_NOW
11743 # define LT_DLLAZY_OR_NOW DL_NOW
11744 # else
11745 # define LT_DLLAZY_OR_NOW 0
11746 # endif
11747 # endif
11748 # endif
11749 # endif
11750 #endif
11751
11752 /* When -fvisibility=hidden is used, assume the code has been annotated
11753 correspondingly for the symbols needed. */
11754 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11755 int fnord () __attribute__((visibility("default")));
11756 #endif
11757
11758 int fnord () { return 42; }
11759 int main ()
11760 {
11761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11762 int status = $lt_dlunknown;
11763
11764 if (self)
11765 {
11766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11767 else
11768 {
11769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11770 else puts (dlerror ());
11771 }
11772 /* dlclose (self); */
11773 }
11774 else
11775 puts (dlerror ());
11776
11777 return status;
11778 }
11779 _LT_EOF
11780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11781 (eval $ac_link) 2>&5
11782 ac_status=$?
11783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11785 (./conftest; exit; ) >&5 2>/dev/null
11786 lt_status=$?
11787 case x$lt_status in
11788 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11789 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11790 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11791 esac
11792 else :
11793 # compilation failed
11794 lt_cv_dlopen_self_static=no
11795 fi
11796 fi
11797 rm -fr conftest*
11798
11799
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11802 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11803 fi
11804
11805 CPPFLAGS=$save_CPPFLAGS
11806 LDFLAGS=$save_LDFLAGS
11807 LIBS=$save_LIBS
11808 ;;
11809 esac
11810
11811 case $lt_cv_dlopen_self in
11812 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11813 *) enable_dlopen_self=unknown ;;
11814 esac
11815
11816 case $lt_cv_dlopen_self_static in
11817 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11818 *) enable_dlopen_self_static=unknown ;;
11819 esac
11820 fi
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838 striplib=
11839 old_striplib=
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11842 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847 else
11848 # FIXME - insert some real tests, host_os isn't really good enough
11849 case $host_os in
11850 darwin*)
11851 if test -n "$STRIP"; then
11852 striplib="$STRIP -x"
11853 old_striplib="$STRIP -S"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 $as_echo "yes" >&6; }
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860 ;;
11861 *)
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 ;;
11865 esac
11866 fi
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879 # Report what library types will actually be built
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11881 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11883 $as_echo "$can_build_shared" >&6; }
11884
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11886 $as_echo_n "checking whether to build shared libraries... " >&6; }
11887 test no = "$can_build_shared" && enable_shared=no
11888
11889 # On AIX, shared libraries and static libraries use the same namespace, and
11890 # are all built from PIC.
11891 case $host_os in
11892 aix3*)
11893 test yes = "$enable_shared" && enable_static=no
11894 if test -n "$RANLIB"; then
11895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11896 postinstall_cmds='$RANLIB $lib'
11897 fi
11898 ;;
11899
11900 aix[4-9]*)
11901 if test ia64 != "$host_cpu"; then
11902 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11903 yes,aix,yes) ;; # shared object as lib.so file only
11904 yes,svr4,*) ;; # shared object as lib.so archive member only
11905 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11906 esac
11907 fi
11908 ;;
11909 esac
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11911 $as_echo "$enable_shared" >&6; }
11912
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11914 $as_echo_n "checking whether to build static libraries... " >&6; }
11915 # Make sure either enable_shared or enable_static is yes.
11916 test yes = "$enable_shared" || enable_static=yes
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11918 $as_echo "$enable_static" >&6; }
11919
11920
11921
11922
11923 fi
11924 ac_ext=c
11925 ac_cpp='$CPP $CPPFLAGS'
11926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930 CC=$lt_save_CC
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946 ac_config_commands="$ac_config_commands libtool"
11947
11948
11949
11950
11951 # Only expand once:
11952
11953
11954
11955 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11968 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11969 if ${ac_cv_prog_cc_c99+:} false; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 ac_cv_prog_cc_c99=no
11973 ac_save_CC=$CC
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #include <stdarg.h>
11977 #include <stdbool.h>
11978 #include <stdlib.h>
11979 #include <wchar.h>
11980 #include <stdio.h>
11981
11982 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11983 #define debug(...) fprintf (stderr, __VA_ARGS__)
11984 #define showlist(...) puts (#__VA_ARGS__)
11985 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11986 static void
11987 test_varargs_macros (void)
11988 {
11989 int x = 1234;
11990 int y = 5678;
11991 debug ("Flag");
11992 debug ("X = %d\n", x);
11993 showlist (The first, second, and third items.);
11994 report (x>y, "x is %d but y is %d", x, y);
11995 }
11996
11997 // Check long long types.
11998 #define BIG64 18446744073709551615ull
11999 #define BIG32 4294967295ul
12000 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12001 #if !BIG_OK
12002 your preprocessor is broken;
12003 #endif
12004 #if BIG_OK
12005 #else
12006 your preprocessor is broken;
12007 #endif
12008 static long long int bignum = -9223372036854775807LL;
12009 static unsigned long long int ubignum = BIG64;
12010
12011 struct incomplete_array
12012 {
12013 int datasize;
12014 double data[];
12015 };
12016
12017 struct named_init {
12018 int number;
12019 const wchar_t *name;
12020 double average;
12021 };
12022
12023 typedef const char *ccp;
12024
12025 static inline int
12026 test_restrict (ccp restrict text)
12027 {
12028 // See if C++-style comments work.
12029 // Iterate through items via the restricted pointer.
12030 // Also check for declarations in for loops.
12031 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12032 continue;
12033 return 0;
12034 }
12035
12036 // Check varargs and va_copy.
12037 static void
12038 test_varargs (const char *format, ...)
12039 {
12040 va_list args;
12041 va_start (args, format);
12042 va_list args_copy;
12043 va_copy (args_copy, args);
12044
12045 const char *str;
12046 int number;
12047 float fnumber;
12048
12049 while (*format)
12050 {
12051 switch (*format++)
12052 {
12053 case 's': // string
12054 str = va_arg (args_copy, const char *);
12055 break;
12056 case 'd': // int
12057 number = va_arg (args_copy, int);
12058 break;
12059 case 'f': // float
12060 fnumber = va_arg (args_copy, double);
12061 break;
12062 default:
12063 break;
12064 }
12065 }
12066 va_end (args_copy);
12067 va_end (args);
12068 }
12069
12070 int
12071 main ()
12072 {
12073
12074 // Check bool.
12075 _Bool success = false;
12076
12077 // Check restrict.
12078 if (test_restrict ("String literal") == 0)
12079 success = true;
12080 char *restrict newvar = "Another string";
12081
12082 // Check varargs.
12083 test_varargs ("s, d' f .", "string", 65, 34.234);
12084 test_varargs_macros ();
12085
12086 // Check flexible array members.
12087 struct incomplete_array *ia =
12088 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12089 ia->datasize = 10;
12090 for (int i = 0; i < ia->datasize; ++i)
12091 ia->data[i] = i * 1.234;
12092
12093 // Check named initializers.
12094 struct named_init ni = {
12095 .number = 34,
12096 .name = L"Test wide string",
12097 .average = 543.34343,
12098 };
12099
12100 ni.number = 58;
12101
12102 int dynamic_array[ni.number];
12103 dynamic_array[ni.number - 1] = 543;
12104
12105 // work around unused variable warnings
12106 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12107 || dynamic_array[ni.number - 1] != 543);
12108
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12114 do
12115 CC="$ac_save_CC $ac_arg"
12116 if ac_fn_c_try_compile "$LINENO"; then :
12117 ac_cv_prog_cc_c99=$ac_arg
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext
12120 test "x$ac_cv_prog_cc_c99" != "xno" && break
12121 done
12122 rm -f conftest.$ac_ext
12123 CC=$ac_save_CC
12124
12125 fi
12126 # AC_CACHE_VAL
12127 case "x$ac_cv_prog_cc_c99" in
12128 x)
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12130 $as_echo "none needed" >&6; } ;;
12131 xno)
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12133 $as_echo "unsupported" >&6; } ;;
12134 *)
12135 CC="$CC $ac_cv_prog_cc_c99"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12137 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12138 esac
12139 if test "x$ac_cv_prog_cc_c99" != xno; then :
12140
12141 fi
12142
12143
12144
12145
12146
12147
12148 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12149 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12150 CLANGCC="yes"
12151 else
12152 CLANGCC="no"
12153 fi
12154
12155 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12156 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12157 INTELCC="yes"
12158 else
12159 INTELCC="no"
12160 fi
12161
12162 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12163 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12164 SUNCC="yes"
12165 else
12166 SUNCC="no"
12167 fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12178 if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12180 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 case $PKG_CONFIG in
12187 [\\/]* | ?:[\\/]*)
12188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12189 ;;
12190 *)
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12201 fi
12202 done
12203 done
12204 IFS=$as_save_IFS
12205
12206 ;;
12207 esac
12208 fi
12209 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12210 if test -n "$PKG_CONFIG"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12212 $as_echo "$PKG_CONFIG" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217
12218
12219 fi
12220 if test -z "$ac_cv_path_PKG_CONFIG"; then
12221 ac_pt_PKG_CONFIG=$PKG_CONFIG
12222 # Extract the first word of "pkg-config", so it can be a program name with args.
12223 set dummy pkg-config; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 case $ac_pt_PKG_CONFIG in
12230 [\\/]* | ?:[\\/]*)
12231 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12232 ;;
12233 *)
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245 done
12246 done
12247 IFS=$as_save_IFS
12248
12249 ;;
12250 esac
12251 fi
12252 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12253 if test -n "$ac_pt_PKG_CONFIG"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12255 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260
12261 if test "x$ac_pt_PKG_CONFIG" = x; then
12262 PKG_CONFIG=""
12263 else
12264 case $cross_compiling:$ac_tool_warned in
12265 yes:)
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12268 ac_tool_warned=yes ;;
12269 esac
12270 PKG_CONFIG=$ac_pt_PKG_CONFIG
12271 fi
12272 else
12273 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12274 fi
12275
12276 fi
12277 if test -n "$PKG_CONFIG"; then
12278 _pkg_min_version=0.9.0
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12280 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12281 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 PKG_CONFIG=""
12288 fi
12289 fi
12290
12291
12292
12293
12294
12295 # Check whether --enable-selective-werror was given.
12296 if test "${enable_selective_werror+set}" = set; then :
12297 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12298 else
12299 SELECTIVE_WERROR=yes
12300 fi
12301
12302
12303
12304
12305
12306 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12307 if test "x$SUNCC" = "xyes"; then
12308 BASE_CFLAGS="-v"
12309 else
12310 BASE_CFLAGS=""
12311 fi
12312
12313 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327 xorg_testset_save_CFLAGS="$CFLAGS"
12328
12329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 int i;
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 xorg_cv_cc_flag_unknown_warning_option=yes
12342 else
12343 xorg_cv_cc_flag_unknown_warning_option=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12350 CFLAGS="$xorg_testset_save_CFLAGS"
12351 fi
12352
12353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12356 fi
12357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 int i;
12366 _ACEOF
12367 if ac_fn_c_try_compile "$LINENO"; then :
12368 xorg_cv_cc_flag_unused_command_line_argument=yes
12369 else
12370 xorg_cv_cc_flag_unused_command_line_argument=no
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12377 CFLAGS="$xorg_testset_save_CFLAGS"
12378 fi
12379
12380 found="no"
12381
12382 if test $found = "no" ; then
12383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12385 fi
12386
12387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12389 fi
12390
12391 CFLAGS="$CFLAGS -Wall"
12392
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12394 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12395 cacheid=xorg_cv_cc_flag__Wall
12396 if eval \${$cacheid+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12401 int i;
12402 int
12403 main ()
12404 {
12405
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_link "$LINENO"; then :
12411 eval $cacheid=yes
12412 else
12413 eval $cacheid=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 fi
12418
12419
12420 CFLAGS="$xorg_testset_save_CFLAGS"
12421
12422 eval supported=\$$cacheid
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12424 $as_echo "$supported" >&6; }
12425 if test "$supported" = "yes" ; then
12426 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12427 found="yes"
12428 fi
12429 fi
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445 xorg_testset_save_CFLAGS="$CFLAGS"
12446
12447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 int i;
12457 _ACEOF
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459 xorg_cv_cc_flag_unknown_warning_option=yes
12460 else
12461 xorg_cv_cc_flag_unknown_warning_option=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12468 CFLAGS="$xorg_testset_save_CFLAGS"
12469 fi
12470
12471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12474 fi
12475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 int i;
12484 _ACEOF
12485 if ac_fn_c_try_compile "$LINENO"; then :
12486 xorg_cv_cc_flag_unused_command_line_argument=yes
12487 else
12488 xorg_cv_cc_flag_unused_command_line_argument=no
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12495 CFLAGS="$xorg_testset_save_CFLAGS"
12496 fi
12497
12498 found="no"
12499
12500 if test $found = "no" ; then
12501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12503 fi
12504
12505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12507 fi
12508
12509 CFLAGS="$CFLAGS -Wpointer-arith"
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12512 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12513 cacheid=xorg_cv_cc_flag__Wpointer_arith
12514 if eval \${$cacheid+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 int i;
12520 int
12521 main ()
12522 {
12523
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529 eval $cacheid=yes
12530 else
12531 eval $cacheid=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535 fi
12536
12537
12538 CFLAGS="$xorg_testset_save_CFLAGS"
12539
12540 eval supported=\$$cacheid
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12542 $as_echo "$supported" >&6; }
12543 if test "$supported" = "yes" ; then
12544 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12545 found="yes"
12546 fi
12547 fi
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 xorg_testset_save_CFLAGS="$CFLAGS"
12564
12565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 int i;
12575 _ACEOF
12576 if ac_fn_c_try_compile "$LINENO"; then :
12577 xorg_cv_cc_flag_unknown_warning_option=yes
12578 else
12579 xorg_cv_cc_flag_unknown_warning_option=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12586 CFLAGS="$xorg_testset_save_CFLAGS"
12587 fi
12588
12589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12592 fi
12593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601 int i;
12602 _ACEOF
12603 if ac_fn_c_try_compile "$LINENO"; then :
12604 xorg_cv_cc_flag_unused_command_line_argument=yes
12605 else
12606 xorg_cv_cc_flag_unused_command_line_argument=no
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12613 CFLAGS="$xorg_testset_save_CFLAGS"
12614 fi
12615
12616 found="no"
12617
12618 if test $found = "no" ; then
12619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12621 fi
12622
12623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12625 fi
12626
12627 CFLAGS="$CFLAGS -Wmissing-declarations"
12628
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12630 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12631 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12632 if eval \${$cacheid+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12637 int i;
12638 int
12639 main ()
12640 {
12641
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 eval $cacheid=yes
12648 else
12649 eval $cacheid=no
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 fi
12654
12655
12656 CFLAGS="$xorg_testset_save_CFLAGS"
12657
12658 eval supported=\$$cacheid
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12660 $as_echo "$supported" >&6; }
12661 if test "$supported" = "yes" ; then
12662 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12663 found="yes"
12664 fi
12665 fi
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681 xorg_testset_save_CFLAGS="$CFLAGS"
12682
12683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692 int i;
12693 _ACEOF
12694 if ac_fn_c_try_compile "$LINENO"; then :
12695 xorg_cv_cc_flag_unknown_warning_option=yes
12696 else
12697 xorg_cv_cc_flag_unknown_warning_option=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12704 CFLAGS="$xorg_testset_save_CFLAGS"
12705 fi
12706
12707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12710 fi
12711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12719 int i;
12720 _ACEOF
12721 if ac_fn_c_try_compile "$LINENO"; then :
12722 xorg_cv_cc_flag_unused_command_line_argument=yes
12723 else
12724 xorg_cv_cc_flag_unused_command_line_argument=no
12725 fi
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12731 CFLAGS="$xorg_testset_save_CFLAGS"
12732 fi
12733
12734 found="no"
12735
12736 if test $found = "no" ; then
12737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12739 fi
12740
12741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12743 fi
12744
12745 CFLAGS="$CFLAGS -Wformat=2"
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12748 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12749 cacheid=xorg_cv_cc_flag__Wformat_2
12750 if eval \${$cacheid+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 int i;
12756 int
12757 main ()
12758 {
12759
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_link "$LINENO"; then :
12765 eval $cacheid=yes
12766 else
12767 eval $cacheid=no
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771 fi
12772
12773
12774 CFLAGS="$xorg_testset_save_CFLAGS"
12775
12776 eval supported=\$$cacheid
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12778 $as_echo "$supported" >&6; }
12779 if test "$supported" = "yes" ; then
12780 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12781 found="yes"
12782 fi
12783 fi
12784
12785 if test $found = "no" ; then
12786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12788 fi
12789
12790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12792 fi
12793
12794 CFLAGS="$CFLAGS -Wformat"
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12797 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12798 cacheid=xorg_cv_cc_flag__Wformat
12799 if eval \${$cacheid+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804 int i;
12805 int
12806 main ()
12807 {
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_link "$LINENO"; then :
12814 eval $cacheid=yes
12815 else
12816 eval $cacheid=no
12817 fi
12818 rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12820 fi
12821
12822
12823 CFLAGS="$xorg_testset_save_CFLAGS"
12824
12825 eval supported=\$$cacheid
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12827 $as_echo "$supported" >&6; }
12828 if test "$supported" = "yes" ; then
12829 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12830 found="yes"
12831 fi
12832 fi
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850 xorg_testset_save_CFLAGS="$CFLAGS"
12851
12852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 int i;
12862 _ACEOF
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864 xorg_cv_cc_flag_unknown_warning_option=yes
12865 else
12866 xorg_cv_cc_flag_unknown_warning_option=no
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12873 CFLAGS="$xorg_testset_save_CFLAGS"
12874 fi
12875
12876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12879 fi
12880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888 int i;
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 xorg_cv_cc_flag_unused_command_line_argument=yes
12892 else
12893 xorg_cv_cc_flag_unused_command_line_argument=no
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12900 CFLAGS="$xorg_testset_save_CFLAGS"
12901 fi
12902
12903 found="no"
12904
12905 if test $found = "no" ; then
12906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12908 fi
12909
12910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12912 fi
12913
12914 CFLAGS="$CFLAGS -Wstrict-prototypes"
12915
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12917 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12918 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12919 if eval \${$cacheid+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 int i;
12925 int
12926 main ()
12927 {
12928
12929 ;
12930 return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_link "$LINENO"; then :
12934 eval $cacheid=yes
12935 else
12936 eval $cacheid=no
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940 fi
12941
12942
12943 CFLAGS="$xorg_testset_save_CFLAGS"
12944
12945 eval supported=\$$cacheid
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12947 $as_echo "$supported" >&6; }
12948 if test "$supported" = "yes" ; then
12949 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12950 found="yes"
12951 fi
12952 fi
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968 xorg_testset_save_CFLAGS="$CFLAGS"
12969
12970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 int i;
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 xorg_cv_cc_flag_unknown_warning_option=yes
12983 else
12984 xorg_cv_cc_flag_unknown_warning_option=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12991 CFLAGS="$xorg_testset_save_CFLAGS"
12992 fi
12993
12994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12997 fi
12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 int i;
13007 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then :
13009 xorg_cv_cc_flag_unused_command_line_argument=yes
13010 else
13011 xorg_cv_cc_flag_unused_command_line_argument=no
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13018 CFLAGS="$xorg_testset_save_CFLAGS"
13019 fi
13020
13021 found="no"
13022
13023 if test $found = "no" ; then
13024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13026 fi
13027
13028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13030 fi
13031
13032 CFLAGS="$CFLAGS -Wmissing-prototypes"
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13035 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13036 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13037 if eval \${$cacheid+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 int i;
13043 int
13044 main ()
13045 {
13046
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 eval $cacheid=yes
13053 else
13054 eval $cacheid=no
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 fi
13059
13060
13061 CFLAGS="$xorg_testset_save_CFLAGS"
13062
13063 eval supported=\$$cacheid
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13065 $as_echo "$supported" >&6; }
13066 if test "$supported" = "yes" ; then
13067 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13068 found="yes"
13069 fi
13070 fi
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086 xorg_testset_save_CFLAGS="$CFLAGS"
13087
13088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097 int i;
13098 _ACEOF
13099 if ac_fn_c_try_compile "$LINENO"; then :
13100 xorg_cv_cc_flag_unknown_warning_option=yes
13101 else
13102 xorg_cv_cc_flag_unknown_warning_option=no
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 fi
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13109 CFLAGS="$xorg_testset_save_CFLAGS"
13110 fi
13111
13112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13115 fi
13116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124 int i;
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127 xorg_cv_cc_flag_unused_command_line_argument=yes
13128 else
13129 xorg_cv_cc_flag_unused_command_line_argument=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13136 CFLAGS="$xorg_testset_save_CFLAGS"
13137 fi
13138
13139 found="no"
13140
13141 if test $found = "no" ; then
13142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13144 fi
13145
13146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13148 fi
13149
13150 CFLAGS="$CFLAGS -Wnested-externs"
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13153 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13154 cacheid=xorg_cv_cc_flag__Wnested_externs
13155 if eval \${$cacheid+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13160 int i;
13161 int
13162 main ()
13163 {
13164
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 eval $cacheid=yes
13171 else
13172 eval $cacheid=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 fi
13177
13178
13179 CFLAGS="$xorg_testset_save_CFLAGS"
13180
13181 eval supported=\$$cacheid
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13183 $as_echo "$supported" >&6; }
13184 if test "$supported" = "yes" ; then
13185 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13186 found="yes"
13187 fi
13188 fi
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204 xorg_testset_save_CFLAGS="$CFLAGS"
13205
13206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13215 int i;
13216 _ACEOF
13217 if ac_fn_c_try_compile "$LINENO"; then :
13218 xorg_cv_cc_flag_unknown_warning_option=yes
13219 else
13220 xorg_cv_cc_flag_unknown_warning_option=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13227 CFLAGS="$xorg_testset_save_CFLAGS"
13228 fi
13229
13230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13233 fi
13234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 int i;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 xorg_cv_cc_flag_unused_command_line_argument=yes
13246 else
13247 xorg_cv_cc_flag_unused_command_line_argument=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13254 CFLAGS="$xorg_testset_save_CFLAGS"
13255 fi
13256
13257 found="no"
13258
13259 if test $found = "no" ; then
13260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13262 fi
13263
13264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13266 fi
13267
13268 CFLAGS="$CFLAGS -Wbad-function-cast"
13269
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13271 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13272 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13273 if eval \${$cacheid+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 int i;
13279 int
13280 main ()
13281 {
13282
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"; then :
13288 eval $cacheid=yes
13289 else
13290 eval $cacheid=no
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 fi
13295
13296
13297 CFLAGS="$xorg_testset_save_CFLAGS"
13298
13299 eval supported=\$$cacheid
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13301 $as_echo "$supported" >&6; }
13302 if test "$supported" = "yes" ; then
13303 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13304 found="yes"
13305 fi
13306 fi
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322 xorg_testset_save_CFLAGS="$CFLAGS"
13323
13324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 int i;
13334 _ACEOF
13335 if ac_fn_c_try_compile "$LINENO"; then :
13336 xorg_cv_cc_flag_unknown_warning_option=yes
13337 else
13338 xorg_cv_cc_flag_unknown_warning_option=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13345 CFLAGS="$xorg_testset_save_CFLAGS"
13346 fi
13347
13348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13351 fi
13352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 xorg_cv_cc_flag_unused_command_line_argument=yes
13364 else
13365 xorg_cv_cc_flag_unused_command_line_argument=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13372 CFLAGS="$xorg_testset_save_CFLAGS"
13373 fi
13374
13375 found="no"
13376
13377 if test $found = "no" ; then
13378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13380 fi
13381
13382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13384 fi
13385
13386 CFLAGS="$CFLAGS -Wold-style-definition"
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13389 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13390 cacheid=xorg_cv_cc_flag__Wold_style_definition
13391 if eval \${$cacheid+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 int i;
13397 int
13398 main ()
13399 {
13400
13401 ;
13402 return 0;
13403 }
13404 _ACEOF
13405 if ac_fn_c_try_link "$LINENO"; then :
13406 eval $cacheid=yes
13407 else
13408 eval $cacheid=no
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 fi
13413
13414
13415 CFLAGS="$xorg_testset_save_CFLAGS"
13416
13417 eval supported=\$$cacheid
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13419 $as_echo "$supported" >&6; }
13420 if test "$supported" = "yes" ; then
13421 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13422 found="yes"
13423 fi
13424 fi
13425
13426 if test $found = "no" ; then
13427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13429 fi
13430
13431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13433 fi
13434
13435 CFLAGS="$CFLAGS -fd"
13436
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13438 $as_echo_n "checking if $CC supports -fd... " >&6; }
13439 cacheid=xorg_cv_cc_flag__fd
13440 if eval \${$cacheid+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 int i;
13446 int
13447 main ()
13448 {
13449
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 eval $cacheid=yes
13456 else
13457 eval $cacheid=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 fi
13462
13463
13464 CFLAGS="$xorg_testset_save_CFLAGS"
13465
13466 eval supported=\$$cacheid
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13468 $as_echo "$supported" >&6; }
13469 if test "$supported" = "yes" ; then
13470 BASE_CFLAGS="$BASE_CFLAGS -fd"
13471 found="yes"
13472 fi
13473 fi
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489 xorg_testset_save_CFLAGS="$CFLAGS"
13490
13491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 int i;
13501 _ACEOF
13502 if ac_fn_c_try_compile "$LINENO"; then :
13503 xorg_cv_cc_flag_unknown_warning_option=yes
13504 else
13505 xorg_cv_cc_flag_unknown_warning_option=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13512 CFLAGS="$xorg_testset_save_CFLAGS"
13513 fi
13514
13515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518 fi
13519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 int i;
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530 xorg_cv_cc_flag_unused_command_line_argument=yes
13531 else
13532 xorg_cv_cc_flag_unused_command_line_argument=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13539 CFLAGS="$xorg_testset_save_CFLAGS"
13540 fi
13541
13542 found="no"
13543
13544 if test $found = "no" ; then
13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 fi
13548
13549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13551 fi
13552
13553 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13554
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13556 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13557 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13558 if eval \${$cacheid+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 int i;
13564 int
13565 main ()
13566 {
13567
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 if ac_fn_c_try_link "$LINENO"; then :
13573 eval $cacheid=yes
13574 else
13575 eval $cacheid=no
13576 fi
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 fi
13580
13581
13582 CFLAGS="$xorg_testset_save_CFLAGS"
13583
13584 eval supported=\$$cacheid
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13586 $as_echo "$supported" >&6; }
13587 if test "$supported" = "yes" ; then
13588 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13589 found="yes"
13590 fi
13591 fi
13592
13593
13594
13595
13596
13597 # This chunk adds additional warnings that could catch undesired effects.
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611 xorg_testset_save_CFLAGS="$CFLAGS"
13612
13613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 int i;
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"; then :
13625 xorg_cv_cc_flag_unknown_warning_option=yes
13626 else
13627 xorg_cv_cc_flag_unknown_warning_option=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 fi
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13634 CFLAGS="$xorg_testset_save_CFLAGS"
13635 fi
13636
13637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13640 fi
13641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 int i;
13650 _ACEOF
13651 if ac_fn_c_try_compile "$LINENO"; then :
13652 xorg_cv_cc_flag_unused_command_line_argument=yes
13653 else
13654 xorg_cv_cc_flag_unused_command_line_argument=no
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13661 CFLAGS="$xorg_testset_save_CFLAGS"
13662 fi
13663
13664 found="no"
13665
13666 if test $found = "no" ; then
13667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13669 fi
13670
13671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13673 fi
13674
13675 CFLAGS="$CFLAGS -Wunused"
13676
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13678 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13679 cacheid=xorg_cv_cc_flag__Wunused
13680 if eval \${$cacheid+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 int i;
13686 int
13687 main ()
13688 {
13689
13690 ;
13691 return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 eval $cacheid=yes
13696 else
13697 eval $cacheid=no
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701 fi
13702
13703
13704 CFLAGS="$xorg_testset_save_CFLAGS"
13705
13706 eval supported=\$$cacheid
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13708 $as_echo "$supported" >&6; }
13709 if test "$supported" = "yes" ; then
13710 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13711 found="yes"
13712 fi
13713 fi
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729 xorg_testset_save_CFLAGS="$CFLAGS"
13730
13731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 int i;
13741 _ACEOF
13742 if ac_fn_c_try_compile "$LINENO"; then :
13743 xorg_cv_cc_flag_unknown_warning_option=yes
13744 else
13745 xorg_cv_cc_flag_unknown_warning_option=no
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13752 CFLAGS="$xorg_testset_save_CFLAGS"
13753 fi
13754
13755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758 fi
13759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 int i;
13768 _ACEOF
13769 if ac_fn_c_try_compile "$LINENO"; then :
13770 xorg_cv_cc_flag_unused_command_line_argument=yes
13771 else
13772 xorg_cv_cc_flag_unused_command_line_argument=no
13773 fi
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13779 CFLAGS="$xorg_testset_save_CFLAGS"
13780 fi
13781
13782 found="no"
13783
13784 if test $found = "no" ; then
13785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13787 fi
13788
13789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13791 fi
13792
13793 CFLAGS="$CFLAGS -Wuninitialized"
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13796 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13797 cacheid=xorg_cv_cc_flag__Wuninitialized
13798 if eval \${$cacheid+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 int i;
13804 int
13805 main ()
13806 {
13807
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 eval $cacheid=yes
13814 else
13815 eval $cacheid=no
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 fi
13820
13821
13822 CFLAGS="$xorg_testset_save_CFLAGS"
13823
13824 eval supported=\$$cacheid
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13826 $as_echo "$supported" >&6; }
13827 if test "$supported" = "yes" ; then
13828 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13829 found="yes"
13830 fi
13831 fi
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847 xorg_testset_save_CFLAGS="$CFLAGS"
13848
13849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 int i;
13859 _ACEOF
13860 if ac_fn_c_try_compile "$LINENO"; then :
13861 xorg_cv_cc_flag_unknown_warning_option=yes
13862 else
13863 xorg_cv_cc_flag_unknown_warning_option=no
13864 fi
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13870 CFLAGS="$xorg_testset_save_CFLAGS"
13871 fi
13872
13873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13876 fi
13877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885 int i;
13886 _ACEOF
13887 if ac_fn_c_try_compile "$LINENO"; then :
13888 xorg_cv_cc_flag_unused_command_line_argument=yes
13889 else
13890 xorg_cv_cc_flag_unused_command_line_argument=no
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13897 CFLAGS="$xorg_testset_save_CFLAGS"
13898 fi
13899
13900 found="no"
13901
13902 if test $found = "no" ; then
13903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13905 fi
13906
13907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13909 fi
13910
13911 CFLAGS="$CFLAGS -Wshadow"
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13914 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13915 cacheid=xorg_cv_cc_flag__Wshadow
13916 if eval \${$cacheid+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 int i;
13922 int
13923 main ()
13924 {
13925
13926 ;
13927 return 0;
13928 }
13929 _ACEOF
13930 if ac_fn_c_try_link "$LINENO"; then :
13931 eval $cacheid=yes
13932 else
13933 eval $cacheid=no
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 fi
13938
13939
13940 CFLAGS="$xorg_testset_save_CFLAGS"
13941
13942 eval supported=\$$cacheid
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13944 $as_echo "$supported" >&6; }
13945 if test "$supported" = "yes" ; then
13946 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13947 found="yes"
13948 fi
13949 fi
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965 xorg_testset_save_CFLAGS="$CFLAGS"
13966
13967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 int i;
13977 _ACEOF
13978 if ac_fn_c_try_compile "$LINENO"; then :
13979 xorg_cv_cc_flag_unknown_warning_option=yes
13980 else
13981 xorg_cv_cc_flag_unknown_warning_option=no
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13988 CFLAGS="$xorg_testset_save_CFLAGS"
13989 fi
13990
13991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13994 fi
13995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 int i;
14004 _ACEOF
14005 if ac_fn_c_try_compile "$LINENO"; then :
14006 xorg_cv_cc_flag_unused_command_line_argument=yes
14007 else
14008 xorg_cv_cc_flag_unused_command_line_argument=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14015 CFLAGS="$xorg_testset_save_CFLAGS"
14016 fi
14017
14018 found="no"
14019
14020 if test $found = "no" ; then
14021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023 fi
14024
14025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14027 fi
14028
14029 CFLAGS="$CFLAGS -Wmissing-noreturn"
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14032 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14033 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14034 if eval \${$cacheid+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039 int i;
14040 int
14041 main ()
14042 {
14043
14044 ;
14045 return 0;
14046 }
14047 _ACEOF
14048 if ac_fn_c_try_link "$LINENO"; then :
14049 eval $cacheid=yes
14050 else
14051 eval $cacheid=no
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 fi
14056
14057
14058 CFLAGS="$xorg_testset_save_CFLAGS"
14059
14060 eval supported=\$$cacheid
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14062 $as_echo "$supported" >&6; }
14063 if test "$supported" = "yes" ; then
14064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14065 found="yes"
14066 fi
14067 fi
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083 xorg_testset_save_CFLAGS="$CFLAGS"
14084
14085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 int i;
14095 _ACEOF
14096 if ac_fn_c_try_compile "$LINENO"; then :
14097 xorg_cv_cc_flag_unknown_warning_option=yes
14098 else
14099 xorg_cv_cc_flag_unknown_warning_option=no
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 fi
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14106 CFLAGS="$xorg_testset_save_CFLAGS"
14107 fi
14108
14109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14112 fi
14113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 int i;
14122 _ACEOF
14123 if ac_fn_c_try_compile "$LINENO"; then :
14124 xorg_cv_cc_flag_unused_command_line_argument=yes
14125 else
14126 xorg_cv_cc_flag_unused_command_line_argument=no
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14133 CFLAGS="$xorg_testset_save_CFLAGS"
14134 fi
14135
14136 found="no"
14137
14138 if test $found = "no" ; then
14139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141 fi
14142
14143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14145 fi
14146
14147 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14150 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14151 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14152 if eval \${$cacheid+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157 int i;
14158 int
14159 main ()
14160 {
14161
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"; then :
14167 eval $cacheid=yes
14168 else
14169 eval $cacheid=no
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 fi
14174
14175
14176 CFLAGS="$xorg_testset_save_CFLAGS"
14177
14178 eval supported=\$$cacheid
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14180 $as_echo "$supported" >&6; }
14181 if test "$supported" = "yes" ; then
14182 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14183 found="yes"
14184 fi
14185 fi
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201 xorg_testset_save_CFLAGS="$CFLAGS"
14202
14203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 int i;
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215 xorg_cv_cc_flag_unknown_warning_option=yes
14216 else
14217 xorg_cv_cc_flag_unknown_warning_option=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14224 CFLAGS="$xorg_testset_save_CFLAGS"
14225 fi
14226
14227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14230 fi
14231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239 int i;
14240 _ACEOF
14241 if ac_fn_c_try_compile "$LINENO"; then :
14242 xorg_cv_cc_flag_unused_command_line_argument=yes
14243 else
14244 xorg_cv_cc_flag_unused_command_line_argument=no
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14251 CFLAGS="$xorg_testset_save_CFLAGS"
14252 fi
14253
14254 found="no"
14255
14256 if test $found = "no" ; then
14257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14259 fi
14260
14261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14263 fi
14264
14265 CFLAGS="$CFLAGS -Wredundant-decls"
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14268 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14269 cacheid=xorg_cv_cc_flag__Wredundant_decls
14270 if eval \${$cacheid+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 int i;
14276 int
14277 main ()
14278 {
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"; then :
14285 eval $cacheid=yes
14286 else
14287 eval $cacheid=no
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14291 fi
14292
14293
14294 CFLAGS="$xorg_testset_save_CFLAGS"
14295
14296 eval supported=\$$cacheid
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14298 $as_echo "$supported" >&6; }
14299 if test "$supported" = "yes" ; then
14300 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14301 found="yes"
14302 fi
14303 fi
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319 xorg_testset_save_CFLAGS="$CFLAGS"
14320
14321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330 int i;
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333 xorg_cv_cc_flag_unknown_warning_option=yes
14334 else
14335 xorg_cv_cc_flag_unknown_warning_option=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 fi
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14342 CFLAGS="$xorg_testset_save_CFLAGS"
14343 fi
14344
14345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14348 fi
14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 int i;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360 xorg_cv_cc_flag_unused_command_line_argument=yes
14361 else
14362 xorg_cv_cc_flag_unused_command_line_argument=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365 fi
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14369 CFLAGS="$xorg_testset_save_CFLAGS"
14370 fi
14371
14372 found="no"
14373
14374 if test $found = "no" ; then
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 fi
14378
14379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14381 fi
14382
14383 CFLAGS="$CFLAGS -Wlogical-op"
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14386 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14387 cacheid=xorg_cv_cc_flag__Wlogical_op
14388 if eval \${$cacheid+:} false; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 int i;
14394 int
14395 main ()
14396 {
14397
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"; then :
14403 eval $cacheid=yes
14404 else
14405 eval $cacheid=no
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 fi
14410
14411
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14413
14414 eval supported=\$$cacheid
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14416 $as_echo "$supported" >&6; }
14417 if test "$supported" = "yes" ; then
14418 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14419 found="yes"
14420 fi
14421 fi
14422
14423
14424
14425 # These are currently disabled because they are noisy. They will be enabled
14426 # in the future once the codebase is sufficiently modernized to silence
14427 # them. For now, I don't want them to drown out the other warnings.
14428 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14429 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14430 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14431
14432 # Turn some warnings into errors, so we don't accidently get successful builds
14433 # when there are problems that should be fixed.
14434
14435 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449 xorg_testset_save_CFLAGS="$CFLAGS"
14450
14451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 int i;
14461 _ACEOF
14462 if ac_fn_c_try_compile "$LINENO"; then :
14463 xorg_cv_cc_flag_unknown_warning_option=yes
14464 else
14465 xorg_cv_cc_flag_unknown_warning_option=no
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14472 CFLAGS="$xorg_testset_save_CFLAGS"
14473 fi
14474
14475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14478 fi
14479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 int i;
14488 _ACEOF
14489 if ac_fn_c_try_compile "$LINENO"; then :
14490 xorg_cv_cc_flag_unused_command_line_argument=yes
14491 else
14492 xorg_cv_cc_flag_unused_command_line_argument=no
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14499 CFLAGS="$xorg_testset_save_CFLAGS"
14500 fi
14501
14502 found="no"
14503
14504 if test $found = "no" ; then
14505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507 fi
14508
14509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14511 fi
14512
14513 CFLAGS="$CFLAGS -Werror=implicit"
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14516 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14517 cacheid=xorg_cv_cc_flag__Werror_implicit
14518 if eval \${$cacheid+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 int i;
14524 int
14525 main ()
14526 {
14527
14528 ;
14529 return 0;
14530 }
14531 _ACEOF
14532 if ac_fn_c_try_link "$LINENO"; then :
14533 eval $cacheid=yes
14534 else
14535 eval $cacheid=no
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 fi
14540
14541
14542 CFLAGS="$xorg_testset_save_CFLAGS"
14543
14544 eval supported=\$$cacheid
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14546 $as_echo "$supported" >&6; }
14547 if test "$supported" = "yes" ; then
14548 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14549 found="yes"
14550 fi
14551 fi
14552
14553 if test $found = "no" ; then
14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14556 fi
14557
14558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14560 fi
14561
14562 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14565 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14566 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14567 if eval \${$cacheid+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14572 int i;
14573 int
14574 main ()
14575 {
14576
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 eval $cacheid=yes
14583 else
14584 eval $cacheid=no
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 fi
14589
14590
14591 CFLAGS="$xorg_testset_save_CFLAGS"
14592
14593 eval supported=\$$cacheid
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14595 $as_echo "$supported" >&6; }
14596 if test "$supported" = "yes" ; then
14597 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14598 found="yes"
14599 fi
14600 fi
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616 xorg_testset_save_CFLAGS="$CFLAGS"
14617
14618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 int i;
14628 _ACEOF
14629 if ac_fn_c_try_compile "$LINENO"; then :
14630 xorg_cv_cc_flag_unknown_warning_option=yes
14631 else
14632 xorg_cv_cc_flag_unknown_warning_option=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14639 CFLAGS="$xorg_testset_save_CFLAGS"
14640 fi
14641
14642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14645 fi
14646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14650 $as_echo_n "(cached) " >&6
14651 else
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654 int i;
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 xorg_cv_cc_flag_unused_command_line_argument=yes
14658 else
14659 xorg_cv_cc_flag_unused_command_line_argument=no
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 fi
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14666 CFLAGS="$xorg_testset_save_CFLAGS"
14667 fi
14668
14669 found="no"
14670
14671 if test $found = "no" ; then
14672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14674 fi
14675
14676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14678 fi
14679
14680 CFLAGS="$CFLAGS -Werror=nonnull"
14681
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14683 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14684 cacheid=xorg_cv_cc_flag__Werror_nonnull
14685 if eval \${$cacheid+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 int i;
14691 int
14692 main ()
14693 {
14694
14695 ;
14696 return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_c_try_link "$LINENO"; then :
14700 eval $cacheid=yes
14701 else
14702 eval $cacheid=no
14703 fi
14704 rm -f core conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
14706 fi
14707
14708
14709 CFLAGS="$xorg_testset_save_CFLAGS"
14710
14711 eval supported=\$$cacheid
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14713 $as_echo "$supported" >&6; }
14714 if test "$supported" = "yes" ; then
14715 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14716 found="yes"
14717 fi
14718 fi
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734 xorg_testset_save_CFLAGS="$CFLAGS"
14735
14736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 int i;
14746 _ACEOF
14747 if ac_fn_c_try_compile "$LINENO"; then :
14748 xorg_cv_cc_flag_unknown_warning_option=yes
14749 else
14750 xorg_cv_cc_flag_unknown_warning_option=no
14751 fi
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14757 CFLAGS="$xorg_testset_save_CFLAGS"
14758 fi
14759
14760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14763 fi
14764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 int i;
14773 _ACEOF
14774 if ac_fn_c_try_compile "$LINENO"; then :
14775 xorg_cv_cc_flag_unused_command_line_argument=yes
14776 else
14777 xorg_cv_cc_flag_unused_command_line_argument=no
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 fi
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14784 CFLAGS="$xorg_testset_save_CFLAGS"
14785 fi
14786
14787 found="no"
14788
14789 if test $found = "no" ; then
14790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14792 fi
14793
14794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14796 fi
14797
14798 CFLAGS="$CFLAGS -Werror=init-self"
14799
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14801 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14802 cacheid=xorg_cv_cc_flag__Werror_init_self
14803 if eval \${$cacheid+:} false; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 int i;
14809 int
14810 main ()
14811 {
14812
14813 ;
14814 return 0;
14815 }
14816 _ACEOF
14817 if ac_fn_c_try_link "$LINENO"; then :
14818 eval $cacheid=yes
14819 else
14820 eval $cacheid=no
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14824 fi
14825
14826
14827 CFLAGS="$xorg_testset_save_CFLAGS"
14828
14829 eval supported=\$$cacheid
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14831 $as_echo "$supported" >&6; }
14832 if test "$supported" = "yes" ; then
14833 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14834 found="yes"
14835 fi
14836 fi
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852 xorg_testset_save_CFLAGS="$CFLAGS"
14853
14854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 int i;
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 xorg_cv_cc_flag_unknown_warning_option=yes
14867 else
14868 xorg_cv_cc_flag_unknown_warning_option=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14875 CFLAGS="$xorg_testset_save_CFLAGS"
14876 fi
14877
14878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14881 fi
14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890 int i;
14891 _ACEOF
14892 if ac_fn_c_try_compile "$LINENO"; then :
14893 xorg_cv_cc_flag_unused_command_line_argument=yes
14894 else
14895 xorg_cv_cc_flag_unused_command_line_argument=no
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14902 CFLAGS="$xorg_testset_save_CFLAGS"
14903 fi
14904
14905 found="no"
14906
14907 if test $found = "no" ; then
14908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910 fi
14911
14912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914 fi
14915
14916 CFLAGS="$CFLAGS -Werror=main"
14917
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14919 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14920 cacheid=xorg_cv_cc_flag__Werror_main
14921 if eval \${$cacheid+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 int i;
14927 int
14928 main ()
14929 {
14930
14931 ;
14932 return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 eval $cacheid=yes
14937 else
14938 eval $cacheid=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 fi
14943
14944
14945 CFLAGS="$xorg_testset_save_CFLAGS"
14946
14947 eval supported=\$$cacheid
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14949 $as_echo "$supported" >&6; }
14950 if test "$supported" = "yes" ; then
14951 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14952 found="yes"
14953 fi
14954 fi
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970 xorg_testset_save_CFLAGS="$CFLAGS"
14971
14972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14981 int i;
14982 _ACEOF
14983 if ac_fn_c_try_compile "$LINENO"; then :
14984 xorg_cv_cc_flag_unknown_warning_option=yes
14985 else
14986 xorg_cv_cc_flag_unknown_warning_option=no
14987 fi
14988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14993 CFLAGS="$xorg_testset_save_CFLAGS"
14994 fi
14995
14996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14999 fi
15000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 int i;
15009 _ACEOF
15010 if ac_fn_c_try_compile "$LINENO"; then :
15011 xorg_cv_cc_flag_unused_command_line_argument=yes
15012 else
15013 xorg_cv_cc_flag_unused_command_line_argument=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15016 fi
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15021 fi
15022
15023 found="no"
15024
15025 if test $found = "no" ; then
15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028 fi
15029
15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032 fi
15033
15034 CFLAGS="$CFLAGS -Werror=missing-braces"
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15037 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15038 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15039 if eval \${$cacheid+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 int i;
15045 int
15046 main ()
15047 {
15048
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_link "$LINENO"; then :
15054 eval $cacheid=yes
15055 else
15056 eval $cacheid=no
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060 fi
15061
15062
15063 CFLAGS="$xorg_testset_save_CFLAGS"
15064
15065 eval supported=\$$cacheid
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15067 $as_echo "$supported" >&6; }
15068 if test "$supported" = "yes" ; then
15069 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15070 found="yes"
15071 fi
15072 fi
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088 xorg_testset_save_CFLAGS="$CFLAGS"
15089
15090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 int i;
15100 _ACEOF
15101 if ac_fn_c_try_compile "$LINENO"; then :
15102 xorg_cv_cc_flag_unknown_warning_option=yes
15103 else
15104 xorg_cv_cc_flag_unknown_warning_option=no
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107 fi
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15111 CFLAGS="$xorg_testset_save_CFLAGS"
15112 fi
15113
15114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15117 fi
15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15122 $as_echo_n "(cached) " >&6
15123 else
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126 int i;
15127 _ACEOF
15128 if ac_fn_c_try_compile "$LINENO"; then :
15129 xorg_cv_cc_flag_unused_command_line_argument=yes
15130 else
15131 xorg_cv_cc_flag_unused_command_line_argument=no
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 fi
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15138 CFLAGS="$xorg_testset_save_CFLAGS"
15139 fi
15140
15141 found="no"
15142
15143 if test $found = "no" ; then
15144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146 fi
15147
15148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15150 fi
15151
15152 CFLAGS="$CFLAGS -Werror=sequence-point"
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15155 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15156 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15157 if eval \${$cacheid+:} false; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 int i;
15163 int
15164 main ()
15165 {
15166
15167 ;
15168 return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 eval $cacheid=yes
15173 else
15174 eval $cacheid=no
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 fi
15179
15180
15181 CFLAGS="$xorg_testset_save_CFLAGS"
15182
15183 eval supported=\$$cacheid
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15185 $as_echo "$supported" >&6; }
15186 if test "$supported" = "yes" ; then
15187 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15188 found="yes"
15189 fi
15190 fi
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206 xorg_testset_save_CFLAGS="$CFLAGS"
15207
15208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 int i;
15218 _ACEOF
15219 if ac_fn_c_try_compile "$LINENO"; then :
15220 xorg_cv_cc_flag_unknown_warning_option=yes
15221 else
15222 xorg_cv_cc_flag_unknown_warning_option=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 fi
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15229 CFLAGS="$xorg_testset_save_CFLAGS"
15230 fi
15231
15232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235 fi
15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15244 int i;
15245 _ACEOF
15246 if ac_fn_c_try_compile "$LINENO"; then :
15247 xorg_cv_cc_flag_unused_command_line_argument=yes
15248 else
15249 xorg_cv_cc_flag_unused_command_line_argument=no
15250 fi
15251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252 fi
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15256 CFLAGS="$xorg_testset_save_CFLAGS"
15257 fi
15258
15259 found="no"
15260
15261 if test $found = "no" ; then
15262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264 fi
15265
15266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268 fi
15269
15270 CFLAGS="$CFLAGS -Werror=return-type"
15271
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15273 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15274 cacheid=xorg_cv_cc_flag__Werror_return_type
15275 if eval \${$cacheid+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 int i;
15281 int
15282 main ()
15283 {
15284
15285 ;
15286 return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_c_try_link "$LINENO"; then :
15290 eval $cacheid=yes
15291 else
15292 eval $cacheid=no
15293 fi
15294 rm -f core conftest.err conftest.$ac_objext \
15295 conftest$ac_exeext conftest.$ac_ext
15296 fi
15297
15298
15299 CFLAGS="$xorg_testset_save_CFLAGS"
15300
15301 eval supported=\$$cacheid
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15303 $as_echo "$supported" >&6; }
15304 if test "$supported" = "yes" ; then
15305 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15306 found="yes"
15307 fi
15308 fi
15309
15310 if test $found = "no" ; then
15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313 fi
15314
15315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15317 fi
15318
15319 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15322 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15323 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15324 if eval \${$cacheid+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 int i;
15330 int
15331 main ()
15332 {
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 eval $cacheid=yes
15340 else
15341 eval $cacheid=no
15342 fi
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 fi
15346
15347
15348 CFLAGS="$xorg_testset_save_CFLAGS"
15349
15350 eval supported=\$$cacheid
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15352 $as_echo "$supported" >&6; }
15353 if test "$supported" = "yes" ; then
15354 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15355 found="yes"
15356 fi
15357 fi
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373 xorg_testset_save_CFLAGS="$CFLAGS"
15374
15375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 int i;
15385 _ACEOF
15386 if ac_fn_c_try_compile "$LINENO"; then :
15387 xorg_cv_cc_flag_unknown_warning_option=yes
15388 else
15389 xorg_cv_cc_flag_unknown_warning_option=no
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 fi
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15396 CFLAGS="$xorg_testset_save_CFLAGS"
15397 fi
15398
15399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15402 fi
15403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15407 $as_echo_n "(cached) " >&6
15408 else
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 int i;
15412 _ACEOF
15413 if ac_fn_c_try_compile "$LINENO"; then :
15414 xorg_cv_cc_flag_unused_command_line_argument=yes
15415 else
15416 xorg_cv_cc_flag_unused_command_line_argument=no
15417 fi
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 fi
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423 CFLAGS="$xorg_testset_save_CFLAGS"
15424 fi
15425
15426 found="no"
15427
15428 if test $found = "no" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432
15433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435 fi
15436
15437 CFLAGS="$CFLAGS -Werror=trigraphs"
15438
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15440 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15441 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15442 if eval \${$cacheid+:} false; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 int i;
15448 int
15449 main ()
15450 {
15451
15452 ;
15453 return 0;
15454 }
15455 _ACEOF
15456 if ac_fn_c_try_link "$LINENO"; then :
15457 eval $cacheid=yes
15458 else
15459 eval $cacheid=no
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463 fi
15464
15465
15466 CFLAGS="$xorg_testset_save_CFLAGS"
15467
15468 eval supported=\$$cacheid
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15470 $as_echo "$supported" >&6; }
15471 if test "$supported" = "yes" ; then
15472 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15473 found="yes"
15474 fi
15475 fi
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491 xorg_testset_save_CFLAGS="$CFLAGS"
15492
15493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 int i;
15503 _ACEOF
15504 if ac_fn_c_try_compile "$LINENO"; then :
15505 xorg_cv_cc_flag_unknown_warning_option=yes
15506 else
15507 xorg_cv_cc_flag_unknown_warning_option=no
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510 fi
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15514 CFLAGS="$xorg_testset_save_CFLAGS"
15515 fi
15516
15517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15520 fi
15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529 int i;
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532 xorg_cv_cc_flag_unused_command_line_argument=yes
15533 else
15534 xorg_cv_cc_flag_unused_command_line_argument=no
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 fi
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15541 CFLAGS="$xorg_testset_save_CFLAGS"
15542 fi
15543
15544 found="no"
15545
15546 if test $found = "no" ; then
15547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549 fi
15550
15551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15553 fi
15554
15555 CFLAGS="$CFLAGS -Werror=array-bounds"
15556
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15558 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15559 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15560 if eval \${$cacheid+:} false; then :
15561 $as_echo_n "(cached) " >&6
15562 else
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 int i;
15566 int
15567 main ()
15568 {
15569
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_c_try_link "$LINENO"; then :
15575 eval $cacheid=yes
15576 else
15577 eval $cacheid=no
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 fi
15582
15583
15584 CFLAGS="$xorg_testset_save_CFLAGS"
15585
15586 eval supported=\$$cacheid
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15588 $as_echo "$supported" >&6; }
15589 if test "$supported" = "yes" ; then
15590 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15591 found="yes"
15592 fi
15593 fi
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609 xorg_testset_save_CFLAGS="$CFLAGS"
15610
15611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15616 $as_echo_n "(cached) " >&6
15617 else
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 int i;
15621 _ACEOF
15622 if ac_fn_c_try_compile "$LINENO"; then :
15623 xorg_cv_cc_flag_unknown_warning_option=yes
15624 else
15625 xorg_cv_cc_flag_unknown_warning_option=no
15626 fi
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 fi
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15632 CFLAGS="$xorg_testset_save_CFLAGS"
15633 fi
15634
15635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15638 fi
15639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15643 $as_echo_n "(cached) " >&6
15644 else
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 int i;
15648 _ACEOF
15649 if ac_fn_c_try_compile "$LINENO"; then :
15650 xorg_cv_cc_flag_unused_command_line_argument=yes
15651 else
15652 xorg_cv_cc_flag_unused_command_line_argument=no
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15659 CFLAGS="$xorg_testset_save_CFLAGS"
15660 fi
15661
15662 found="no"
15663
15664 if test $found = "no" ; then
15665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667 fi
15668
15669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671 fi
15672
15673 CFLAGS="$CFLAGS -Werror=write-strings"
15674
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15676 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15677 cacheid=xorg_cv_cc_flag__Werror_write_strings
15678 if eval \${$cacheid+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 int i;
15684 int
15685 main ()
15686 {
15687
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 if ac_fn_c_try_link "$LINENO"; then :
15693 eval $cacheid=yes
15694 else
15695 eval $cacheid=no
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 fi
15700
15701
15702 CFLAGS="$xorg_testset_save_CFLAGS"
15703
15704 eval supported=\$$cacheid
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15706 $as_echo "$supported" >&6; }
15707 if test "$supported" = "yes" ; then
15708 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15709 found="yes"
15710 fi
15711 fi
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727 xorg_testset_save_CFLAGS="$CFLAGS"
15728
15729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 int i;
15739 _ACEOF
15740 if ac_fn_c_try_compile "$LINENO"; then :
15741 xorg_cv_cc_flag_unknown_warning_option=yes
15742 else
15743 xorg_cv_cc_flag_unknown_warning_option=no
15744 fi
15745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15750 CFLAGS="$xorg_testset_save_CFLAGS"
15751 fi
15752
15753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15756 fi
15757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15761 $as_echo_n "(cached) " >&6
15762 else
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 int i;
15766 _ACEOF
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768 xorg_cv_cc_flag_unused_command_line_argument=yes
15769 else
15770 xorg_cv_cc_flag_unused_command_line_argument=no
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15777 CFLAGS="$xorg_testset_save_CFLAGS"
15778 fi
15779
15780 found="no"
15781
15782 if test $found = "no" ; then
15783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 fi
15786
15787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15789 fi
15790
15791 CFLAGS="$CFLAGS -Werror=address"
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15794 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15795 cacheid=xorg_cv_cc_flag__Werror_address
15796 if eval \${$cacheid+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798 else
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 int i;
15802 int
15803 main ()
15804 {
15805
15806 ;
15807 return 0;
15808 }
15809 _ACEOF
15810 if ac_fn_c_try_link "$LINENO"; then :
15811 eval $cacheid=yes
15812 else
15813 eval $cacheid=no
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15817 fi
15818
15819
15820 CFLAGS="$xorg_testset_save_CFLAGS"
15821
15822 eval supported=\$$cacheid
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15824 $as_echo "$supported" >&6; }
15825 if test "$supported" = "yes" ; then
15826 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15827 found="yes"
15828 fi
15829 fi
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845 xorg_testset_save_CFLAGS="$CFLAGS"
15846
15847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 int i;
15857 _ACEOF
15858 if ac_fn_c_try_compile "$LINENO"; then :
15859 xorg_cv_cc_flag_unknown_warning_option=yes
15860 else
15861 xorg_cv_cc_flag_unknown_warning_option=no
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15868 CFLAGS="$xorg_testset_save_CFLAGS"
15869 fi
15870
15871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15874 fi
15875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 int i;
15884 _ACEOF
15885 if ac_fn_c_try_compile "$LINENO"; then :
15886 xorg_cv_cc_flag_unused_command_line_argument=yes
15887 else
15888 xorg_cv_cc_flag_unused_command_line_argument=no
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15895 CFLAGS="$xorg_testset_save_CFLAGS"
15896 fi
15897
15898 found="no"
15899
15900 if test $found = "no" ; then
15901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15903 fi
15904
15905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15907 fi
15908
15909 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15910
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15912 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15913 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15914 if eval \${$cacheid+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 int i;
15920 int
15921 main ()
15922 {
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_link "$LINENO"; then :
15929 eval $cacheid=yes
15930 else
15931 eval $cacheid=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext \
15934 conftest$ac_exeext conftest.$ac_ext
15935 fi
15936
15937
15938 CFLAGS="$xorg_testset_save_CFLAGS"
15939
15940 eval supported=\$$cacheid
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15942 $as_echo "$supported" >&6; }
15943 if test "$supported" = "yes" ; then
15944 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15945 found="yes"
15946 fi
15947 fi
15948
15949 if test $found = "no" ; then
15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952 fi
15953
15954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15956 fi
15957
15958 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15959
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15961 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15962 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15963 if eval \${$cacheid+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 int i;
15969 int
15970 main ()
15971 {
15972
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_link "$LINENO"; then :
15978 eval $cacheid=yes
15979 else
15980 eval $cacheid=no
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984 fi
15985
15986
15987 CFLAGS="$xorg_testset_save_CFLAGS"
15988
15989 eval supported=\$$cacheid
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15991 $as_echo "$supported" >&6; }
15992 if test "$supported" = "yes" ; then
15993 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15994 found="yes"
15995 fi
15996 fi
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012 xorg_testset_save_CFLAGS="$CFLAGS"
16013
16014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16019 $as_echo_n "(cached) " >&6
16020 else
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023 int i;
16024 _ACEOF
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026 xorg_cv_cc_flag_unknown_warning_option=yes
16027 else
16028 xorg_cv_cc_flag_unknown_warning_option=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16035 CFLAGS="$xorg_testset_save_CFLAGS"
16036 fi
16037
16038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16041 fi
16042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 int i;
16051 _ACEOF
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 xorg_cv_cc_flag_unused_command_line_argument=yes
16054 else
16055 xorg_cv_cc_flag_unused_command_line_argument=no
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 fi
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16062 CFLAGS="$xorg_testset_save_CFLAGS"
16063 fi
16064
16065 found="no"
16066
16067 if test $found = "no" ; then
16068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070 fi
16071
16072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16074 fi
16075
16076 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16077
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16079 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16080 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16081 if eval \${$cacheid+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 int i;
16087 int
16088 main ()
16089 {
16090
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 eval $cacheid=yes
16097 else
16098 eval $cacheid=no
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16102 fi
16103
16104
16105 CFLAGS="$xorg_testset_save_CFLAGS"
16106
16107 eval supported=\$$cacheid
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16109 $as_echo "$supported" >&6; }
16110 if test "$supported" = "yes" ; then
16111 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16112 found="yes"
16113 fi
16114 fi
16115
16116 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16117 else
16118 { $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
16119 $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;}
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133 xorg_testset_save_CFLAGS="$CFLAGS"
16134
16135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 int i;
16145 _ACEOF
16146 if ac_fn_c_try_compile "$LINENO"; then :
16147 xorg_cv_cc_flag_unknown_warning_option=yes
16148 else
16149 xorg_cv_cc_flag_unknown_warning_option=no
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16156 CFLAGS="$xorg_testset_save_CFLAGS"
16157 fi
16158
16159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162 fi
16163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16167 $as_echo_n "(cached) " >&6
16168 else
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 int i;
16172 _ACEOF
16173 if ac_fn_c_try_compile "$LINENO"; then :
16174 xorg_cv_cc_flag_unused_command_line_argument=yes
16175 else
16176 xorg_cv_cc_flag_unused_command_line_argument=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16183 CFLAGS="$xorg_testset_save_CFLAGS"
16184 fi
16185
16186 found="no"
16187
16188 if test $found = "no" ; then
16189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191 fi
16192
16193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16195 fi
16196
16197 CFLAGS="$CFLAGS -Wimplicit"
16198
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16200 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16201 cacheid=xorg_cv_cc_flag__Wimplicit
16202 if eval \${$cacheid+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int i;
16208 int
16209 main ()
16210 {
16211
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 eval $cacheid=yes
16218 else
16219 eval $cacheid=no
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16223 fi
16224
16225
16226 CFLAGS="$xorg_testset_save_CFLAGS"
16227
16228 eval supported=\$$cacheid
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16230 $as_echo "$supported" >&6; }
16231 if test "$supported" = "yes" ; then
16232 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16233 found="yes"
16234 fi
16235 fi
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251 xorg_testset_save_CFLAGS="$CFLAGS"
16252
16253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16258 $as_echo_n "(cached) " >&6
16259 else
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16262 int i;
16263 _ACEOF
16264 if ac_fn_c_try_compile "$LINENO"; then :
16265 xorg_cv_cc_flag_unknown_warning_option=yes
16266 else
16267 xorg_cv_cc_flag_unknown_warning_option=no
16268 fi
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 fi
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16274 CFLAGS="$xorg_testset_save_CFLAGS"
16275 fi
16276
16277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16280 fi
16281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 int i;
16290 _ACEOF
16291 if ac_fn_c_try_compile "$LINENO"; then :
16292 xorg_cv_cc_flag_unused_command_line_argument=yes
16293 else
16294 xorg_cv_cc_flag_unused_command_line_argument=no
16295 fi
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 fi
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16301 CFLAGS="$xorg_testset_save_CFLAGS"
16302 fi
16303
16304 found="no"
16305
16306 if test $found = "no" ; then
16307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309 fi
16310
16311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16313 fi
16314
16315 CFLAGS="$CFLAGS -Wnonnull"
16316
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16318 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16319 cacheid=xorg_cv_cc_flag__Wnonnull
16320 if eval \${$cacheid+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 int i;
16326 int
16327 main ()
16328 {
16329
16330 ;
16331 return 0;
16332 }
16333 _ACEOF
16334 if ac_fn_c_try_link "$LINENO"; then :
16335 eval $cacheid=yes
16336 else
16337 eval $cacheid=no
16338 fi
16339 rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16341 fi
16342
16343
16344 CFLAGS="$xorg_testset_save_CFLAGS"
16345
16346 eval supported=\$$cacheid
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16348 $as_echo "$supported" >&6; }
16349 if test "$supported" = "yes" ; then
16350 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16351 found="yes"
16352 fi
16353 fi
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369 xorg_testset_save_CFLAGS="$CFLAGS"
16370
16371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380 int i;
16381 _ACEOF
16382 if ac_fn_c_try_compile "$LINENO"; then :
16383 xorg_cv_cc_flag_unknown_warning_option=yes
16384 else
16385 xorg_cv_cc_flag_unknown_warning_option=no
16386 fi
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 fi
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16392 CFLAGS="$xorg_testset_save_CFLAGS"
16393 fi
16394
16395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398 fi
16399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407 int i;
16408 _ACEOF
16409 if ac_fn_c_try_compile "$LINENO"; then :
16410 xorg_cv_cc_flag_unused_command_line_argument=yes
16411 else
16412 xorg_cv_cc_flag_unused_command_line_argument=no
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16419 CFLAGS="$xorg_testset_save_CFLAGS"
16420 fi
16421
16422 found="no"
16423
16424 if test $found = "no" ; then
16425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16427 fi
16428
16429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16431 fi
16432
16433 CFLAGS="$CFLAGS -Winit-self"
16434
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16436 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16437 cacheid=xorg_cv_cc_flag__Winit_self
16438 if eval \${$cacheid+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 int i;
16444 int
16445 main ()
16446 {
16447
16448 ;
16449 return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_link "$LINENO"; then :
16453 eval $cacheid=yes
16454 else
16455 eval $cacheid=no
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16459 fi
16460
16461
16462 CFLAGS="$xorg_testset_save_CFLAGS"
16463
16464 eval supported=\$$cacheid
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16466 $as_echo "$supported" >&6; }
16467 if test "$supported" = "yes" ; then
16468 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16469 found="yes"
16470 fi
16471 fi
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487 xorg_testset_save_CFLAGS="$CFLAGS"
16488
16489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16494 $as_echo_n "(cached) " >&6
16495 else
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 int i;
16499 _ACEOF
16500 if ac_fn_c_try_compile "$LINENO"; then :
16501 xorg_cv_cc_flag_unknown_warning_option=yes
16502 else
16503 xorg_cv_cc_flag_unknown_warning_option=no
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 fi
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16510 CFLAGS="$xorg_testset_save_CFLAGS"
16511 fi
16512
16513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16516 fi
16517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 int i;
16526 _ACEOF
16527 if ac_fn_c_try_compile "$LINENO"; then :
16528 xorg_cv_cc_flag_unused_command_line_argument=yes
16529 else
16530 xorg_cv_cc_flag_unused_command_line_argument=no
16531 fi
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16537 CFLAGS="$xorg_testset_save_CFLAGS"
16538 fi
16539
16540 found="no"
16541
16542 if test $found = "no" ; then
16543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16545 fi
16546
16547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16549 fi
16550
16551 CFLAGS="$CFLAGS -Wmain"
16552
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16554 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16555 cacheid=xorg_cv_cc_flag__Wmain
16556 if eval \${$cacheid+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561 int i;
16562 int
16563 main ()
16564 {
16565
16566 ;
16567 return 0;
16568 }
16569 _ACEOF
16570 if ac_fn_c_try_link "$LINENO"; then :
16571 eval $cacheid=yes
16572 else
16573 eval $cacheid=no
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16577 fi
16578
16579
16580 CFLAGS="$xorg_testset_save_CFLAGS"
16581
16582 eval supported=\$$cacheid
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16584 $as_echo "$supported" >&6; }
16585 if test "$supported" = "yes" ; then
16586 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16587 found="yes"
16588 fi
16589 fi
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605 xorg_testset_save_CFLAGS="$CFLAGS"
16606
16607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 int i;
16617 _ACEOF
16618 if ac_fn_c_try_compile "$LINENO"; then :
16619 xorg_cv_cc_flag_unknown_warning_option=yes
16620 else
16621 xorg_cv_cc_flag_unknown_warning_option=no
16622 fi
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 fi
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16628 CFLAGS="$xorg_testset_save_CFLAGS"
16629 fi
16630
16631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16634 fi
16635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 int i;
16644 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
16646 xorg_cv_cc_flag_unused_command_line_argument=yes
16647 else
16648 xorg_cv_cc_flag_unused_command_line_argument=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 fi
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16655 CFLAGS="$xorg_testset_save_CFLAGS"
16656 fi
16657
16658 found="no"
16659
16660 if test $found = "no" ; then
16661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16663 fi
16664
16665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16667 fi
16668
16669 CFLAGS="$CFLAGS -Wmissing-braces"
16670
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16672 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16673 cacheid=xorg_cv_cc_flag__Wmissing_braces
16674 if eval \${$cacheid+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 int i;
16680 int
16681 main ()
16682 {
16683
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"; then :
16689 eval $cacheid=yes
16690 else
16691 eval $cacheid=no
16692 fi
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 fi
16696
16697
16698 CFLAGS="$xorg_testset_save_CFLAGS"
16699
16700 eval supported=\$$cacheid
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16702 $as_echo "$supported" >&6; }
16703 if test "$supported" = "yes" ; then
16704 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16705 found="yes"
16706 fi
16707 fi
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723 xorg_testset_save_CFLAGS="$CFLAGS"
16724
16725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16734 int i;
16735 _ACEOF
16736 if ac_fn_c_try_compile "$LINENO"; then :
16737 xorg_cv_cc_flag_unknown_warning_option=yes
16738 else
16739 xorg_cv_cc_flag_unknown_warning_option=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742 fi
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16746 CFLAGS="$xorg_testset_save_CFLAGS"
16747 fi
16748
16749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16752 fi
16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16757 $as_echo_n "(cached) " >&6
16758 else
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761 int i;
16762 _ACEOF
16763 if ac_fn_c_try_compile "$LINENO"; then :
16764 xorg_cv_cc_flag_unused_command_line_argument=yes
16765 else
16766 xorg_cv_cc_flag_unused_command_line_argument=no
16767 fi
16768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16769 fi
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16773 CFLAGS="$xorg_testset_save_CFLAGS"
16774 fi
16775
16776 found="no"
16777
16778 if test $found = "no" ; then
16779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16781 fi
16782
16783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16785 fi
16786
16787 CFLAGS="$CFLAGS -Wsequence-point"
16788
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16790 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16791 cacheid=xorg_cv_cc_flag__Wsequence_point
16792 if eval \${$cacheid+:} false; then :
16793 $as_echo_n "(cached) " >&6
16794 else
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 int i;
16798 int
16799 main ()
16800 {
16801
16802 ;
16803 return 0;
16804 }
16805 _ACEOF
16806 if ac_fn_c_try_link "$LINENO"; then :
16807 eval $cacheid=yes
16808 else
16809 eval $cacheid=no
16810 fi
16811 rm -f core conftest.err conftest.$ac_objext \
16812 conftest$ac_exeext conftest.$ac_ext
16813 fi
16814
16815
16816 CFLAGS="$xorg_testset_save_CFLAGS"
16817
16818 eval supported=\$$cacheid
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16820 $as_echo "$supported" >&6; }
16821 if test "$supported" = "yes" ; then
16822 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16823 found="yes"
16824 fi
16825 fi
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841 xorg_testset_save_CFLAGS="$CFLAGS"
16842
16843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h. */
16852 int i;
16853 _ACEOF
16854 if ac_fn_c_try_compile "$LINENO"; then :
16855 xorg_cv_cc_flag_unknown_warning_option=yes
16856 else
16857 xorg_cv_cc_flag_unknown_warning_option=no
16858 fi
16859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16860 fi
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16864 CFLAGS="$xorg_testset_save_CFLAGS"
16865 fi
16866
16867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16870 fi
16871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16875 $as_echo_n "(cached) " >&6
16876 else
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879 int i;
16880 _ACEOF
16881 if ac_fn_c_try_compile "$LINENO"; then :
16882 xorg_cv_cc_flag_unused_command_line_argument=yes
16883 else
16884 xorg_cv_cc_flag_unused_command_line_argument=no
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16891 CFLAGS="$xorg_testset_save_CFLAGS"
16892 fi
16893
16894 found="no"
16895
16896 if test $found = "no" ; then
16897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16899 fi
16900
16901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16903 fi
16904
16905 CFLAGS="$CFLAGS -Wreturn-type"
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16908 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16909 cacheid=xorg_cv_cc_flag__Wreturn_type
16910 if eval \${$cacheid+:} false; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 int i;
16916 int
16917 main ()
16918 {
16919
16920 ;
16921 return 0;
16922 }
16923 _ACEOF
16924 if ac_fn_c_try_link "$LINENO"; then :
16925 eval $cacheid=yes
16926 else
16927 eval $cacheid=no
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931 fi
16932
16933
16934 CFLAGS="$xorg_testset_save_CFLAGS"
16935
16936 eval supported=\$$cacheid
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16938 $as_echo "$supported" >&6; }
16939 if test "$supported" = "yes" ; then
16940 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16941 found="yes"
16942 fi
16943 fi
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959 xorg_testset_save_CFLAGS="$CFLAGS"
16960
16961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16970 int i;
16971 _ACEOF
16972 if ac_fn_c_try_compile "$LINENO"; then :
16973 xorg_cv_cc_flag_unknown_warning_option=yes
16974 else
16975 xorg_cv_cc_flag_unknown_warning_option=no
16976 fi
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 fi
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16982 CFLAGS="$xorg_testset_save_CFLAGS"
16983 fi
16984
16985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988 fi
16989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16993 $as_echo_n "(cached) " >&6
16994 else
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16997 int i;
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"; then :
17000 xorg_cv_cc_flag_unused_command_line_argument=yes
17001 else
17002 xorg_cv_cc_flag_unused_command_line_argument=no
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 fi
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17009 CFLAGS="$xorg_testset_save_CFLAGS"
17010 fi
17011
17012 found="no"
17013
17014 if test $found = "no" ; then
17015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17017 fi
17018
17019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17021 fi
17022
17023 CFLAGS="$CFLAGS -Wtrigraphs"
17024
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17026 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17027 cacheid=xorg_cv_cc_flag__Wtrigraphs
17028 if eval \${$cacheid+:} false; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033 int i;
17034 int
17035 main ()
17036 {
17037
17038 ;
17039 return 0;
17040 }
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043 eval $cacheid=yes
17044 else
17045 eval $cacheid=no
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17049 fi
17050
17051
17052 CFLAGS="$xorg_testset_save_CFLAGS"
17053
17054 eval supported=\$$cacheid
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17056 $as_echo "$supported" >&6; }
17057 if test "$supported" = "yes" ; then
17058 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17059 found="yes"
17060 fi
17061 fi
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077 xorg_testset_save_CFLAGS="$CFLAGS"
17078
17079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17084 $as_echo_n "(cached) " >&6
17085 else
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17088 int i;
17089 _ACEOF
17090 if ac_fn_c_try_compile "$LINENO"; then :
17091 xorg_cv_cc_flag_unknown_warning_option=yes
17092 else
17093 xorg_cv_cc_flag_unknown_warning_option=no
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 fi
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17100 CFLAGS="$xorg_testset_save_CFLAGS"
17101 fi
17102
17103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17106 fi
17107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17111 $as_echo_n "(cached) " >&6
17112 else
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115 int i;
17116 _ACEOF
17117 if ac_fn_c_try_compile "$LINENO"; then :
17118 xorg_cv_cc_flag_unused_command_line_argument=yes
17119 else
17120 xorg_cv_cc_flag_unused_command_line_argument=no
17121 fi
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17127 CFLAGS="$xorg_testset_save_CFLAGS"
17128 fi
17129
17130 found="no"
17131
17132 if test $found = "no" ; then
17133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17135 fi
17136
17137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17139 fi
17140
17141 CFLAGS="$CFLAGS -Warray-bounds"
17142
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17144 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17145 cacheid=xorg_cv_cc_flag__Warray_bounds
17146 if eval \${$cacheid+:} false; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17151 int i;
17152 int
17153 main ()
17154 {
17155
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161 eval $cacheid=yes
17162 else
17163 eval $cacheid=no
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 fi
17168
17169
17170 CFLAGS="$xorg_testset_save_CFLAGS"
17171
17172 eval supported=\$$cacheid
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17174 $as_echo "$supported" >&6; }
17175 if test "$supported" = "yes" ; then
17176 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17177 found="yes"
17178 fi
17179 fi
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195 xorg_testset_save_CFLAGS="$CFLAGS"
17196
17197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17202 $as_echo_n "(cached) " >&6
17203 else
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206 int i;
17207 _ACEOF
17208 if ac_fn_c_try_compile "$LINENO"; then :
17209 xorg_cv_cc_flag_unknown_warning_option=yes
17210 else
17211 xorg_cv_cc_flag_unknown_warning_option=no
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 fi
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17218 CFLAGS="$xorg_testset_save_CFLAGS"
17219 fi
17220
17221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17224 fi
17225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17229 $as_echo_n "(cached) " >&6
17230 else
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233 int i;
17234 _ACEOF
17235 if ac_fn_c_try_compile "$LINENO"; then :
17236 xorg_cv_cc_flag_unused_command_line_argument=yes
17237 else
17238 xorg_cv_cc_flag_unused_command_line_argument=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 fi
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17245 CFLAGS="$xorg_testset_save_CFLAGS"
17246 fi
17247
17248 found="no"
17249
17250 if test $found = "no" ; then
17251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17253 fi
17254
17255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17257 fi
17258
17259 CFLAGS="$CFLAGS -Wwrite-strings"
17260
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17262 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17263 cacheid=xorg_cv_cc_flag__Wwrite_strings
17264 if eval \${$cacheid+:} false; then :
17265 $as_echo_n "(cached) " >&6
17266 else
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17269 int i;
17270 int
17271 main ()
17272 {
17273
17274 ;
17275 return 0;
17276 }
17277 _ACEOF
17278 if ac_fn_c_try_link "$LINENO"; then :
17279 eval $cacheid=yes
17280 else
17281 eval $cacheid=no
17282 fi
17283 rm -f core conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17285 fi
17286
17287
17288 CFLAGS="$xorg_testset_save_CFLAGS"
17289
17290 eval supported=\$$cacheid
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17292 $as_echo "$supported" >&6; }
17293 if test "$supported" = "yes" ; then
17294 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17295 found="yes"
17296 fi
17297 fi
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313 xorg_testset_save_CFLAGS="$CFLAGS"
17314
17315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17324 int i;
17325 _ACEOF
17326 if ac_fn_c_try_compile "$LINENO"; then :
17327 xorg_cv_cc_flag_unknown_warning_option=yes
17328 else
17329 xorg_cv_cc_flag_unknown_warning_option=no
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 fi
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17336 CFLAGS="$xorg_testset_save_CFLAGS"
17337 fi
17338
17339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17342 fi
17343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17347 $as_echo_n "(cached) " >&6
17348 else
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351 int i;
17352 _ACEOF
17353 if ac_fn_c_try_compile "$LINENO"; then :
17354 xorg_cv_cc_flag_unused_command_line_argument=yes
17355 else
17356 xorg_cv_cc_flag_unused_command_line_argument=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 fi
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17363 CFLAGS="$xorg_testset_save_CFLAGS"
17364 fi
17365
17366 found="no"
17367
17368 if test $found = "no" ; then
17369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17371 fi
17372
17373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17375 fi
17376
17377 CFLAGS="$CFLAGS -Waddress"
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17380 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17381 cacheid=xorg_cv_cc_flag__Waddress
17382 if eval \${$cacheid+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 int i;
17388 int
17389 main ()
17390 {
17391
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 eval $cacheid=yes
17398 else
17399 eval $cacheid=no
17400 fi
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 fi
17404
17405
17406 CFLAGS="$xorg_testset_save_CFLAGS"
17407
17408 eval supported=\$$cacheid
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17410 $as_echo "$supported" >&6; }
17411 if test "$supported" = "yes" ; then
17412 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17413 found="yes"
17414 fi
17415 fi
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431 xorg_testset_save_CFLAGS="$CFLAGS"
17432
17433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 int i;
17443 _ACEOF
17444 if ac_fn_c_try_compile "$LINENO"; then :
17445 xorg_cv_cc_flag_unknown_warning_option=yes
17446 else
17447 xorg_cv_cc_flag_unknown_warning_option=no
17448 fi
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 fi
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17454 CFLAGS="$xorg_testset_save_CFLAGS"
17455 fi
17456
17457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17460 fi
17461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17469 int i;
17470 _ACEOF
17471 if ac_fn_c_try_compile "$LINENO"; then :
17472 xorg_cv_cc_flag_unused_command_line_argument=yes
17473 else
17474 xorg_cv_cc_flag_unused_command_line_argument=no
17475 fi
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 fi
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17481 CFLAGS="$xorg_testset_save_CFLAGS"
17482 fi
17483
17484 found="no"
17485
17486 if test $found = "no" ; then
17487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17489 fi
17490
17491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17493 fi
17494
17495 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17496
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17498 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17499 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17500 if eval \${$cacheid+:} false; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 int i;
17506 int
17507 main ()
17508 {
17509
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 if ac_fn_c_try_link "$LINENO"; then :
17515 eval $cacheid=yes
17516 else
17517 eval $cacheid=no
17518 fi
17519 rm -f core conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17521 fi
17522
17523
17524 CFLAGS="$xorg_testset_save_CFLAGS"
17525
17526 eval supported=\$$cacheid
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17528 $as_echo "$supported" >&6; }
17529 if test "$supported" = "yes" ; then
17530 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17531 found="yes"
17532 fi
17533 fi
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549 xorg_testset_save_CFLAGS="$CFLAGS"
17550
17551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17556 $as_echo_n "(cached) " >&6
17557 else
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 int i;
17561 _ACEOF
17562 if ac_fn_c_try_compile "$LINENO"; then :
17563 xorg_cv_cc_flag_unknown_warning_option=yes
17564 else
17565 xorg_cv_cc_flag_unknown_warning_option=no
17566 fi
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 fi
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17572 CFLAGS="$xorg_testset_save_CFLAGS"
17573 fi
17574
17575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17578 fi
17579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17587 int i;
17588 _ACEOF
17589 if ac_fn_c_try_compile "$LINENO"; then :
17590 xorg_cv_cc_flag_unused_command_line_argument=yes
17591 else
17592 xorg_cv_cc_flag_unused_command_line_argument=no
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 fi
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17599 CFLAGS="$xorg_testset_save_CFLAGS"
17600 fi
17601
17602 found="no"
17603
17604 if test $found = "no" ; then
17605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17607 fi
17608
17609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17611 fi
17612
17613 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17614
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17616 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17617 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17618 if eval \${$cacheid+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17623 int i;
17624 int
17625 main ()
17626 {
17627
17628 ;
17629 return 0;
17630 }
17631 _ACEOF
17632 if ac_fn_c_try_link "$LINENO"; then :
17633 eval $cacheid=yes
17634 else
17635 eval $cacheid=no
17636 fi
17637 rm -f core conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
17639 fi
17640
17641
17642 CFLAGS="$xorg_testset_save_CFLAGS"
17643
17644 eval supported=\$$cacheid
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17646 $as_echo "$supported" >&6; }
17647 if test "$supported" = "yes" ; then
17648 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17649 found="yes"
17650 fi
17651 fi
17652
17653
17654 fi
17655
17656
17657
17658
17659
17660
17661
17662 CWARNFLAGS="$BASE_CFLAGS"
17663 if test "x$GCC" = xyes ; then
17664 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17665 fi
17666
17667
17668
17669
17670
17671
17672
17673
17674 # Check whether --enable-strict-compilation was given.
17675 if test "${enable_strict_compilation+set}" = set; then :
17676 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17677 else
17678 STRICT_COMPILE=no
17679 fi
17680
17681
17682
17683
17684
17685
17686 STRICT_CFLAGS=""
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700 xorg_testset_save_CFLAGS="$CFLAGS"
17701
17702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17707 $as_echo_n "(cached) " >&6
17708 else
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 int i;
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714 xorg_cv_cc_flag_unknown_warning_option=yes
17715 else
17716 xorg_cv_cc_flag_unknown_warning_option=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 fi
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17723 CFLAGS="$xorg_testset_save_CFLAGS"
17724 fi
17725
17726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17729 fi
17730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17734 $as_echo_n "(cached) " >&6
17735 else
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738 int i;
17739 _ACEOF
17740 if ac_fn_c_try_compile "$LINENO"; then :
17741 xorg_cv_cc_flag_unused_command_line_argument=yes
17742 else
17743 xorg_cv_cc_flag_unused_command_line_argument=no
17744 fi
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17750 CFLAGS="$xorg_testset_save_CFLAGS"
17751 fi
17752
17753 found="no"
17754
17755 if test $found = "no" ; then
17756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17758 fi
17759
17760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762 fi
17763
17764 CFLAGS="$CFLAGS -pedantic"
17765
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17767 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17768 cacheid=xorg_cv_cc_flag__pedantic
17769 if eval \${$cacheid+:} false; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774 int i;
17775 int
17776 main ()
17777 {
17778
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 if ac_fn_c_try_link "$LINENO"; then :
17784 eval $cacheid=yes
17785 else
17786 eval $cacheid=no
17787 fi
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 fi
17791
17792
17793 CFLAGS="$xorg_testset_save_CFLAGS"
17794
17795 eval supported=\$$cacheid
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17797 $as_echo "$supported" >&6; }
17798 if test "$supported" = "yes" ; then
17799 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17800 found="yes"
17801 fi
17802 fi
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818 xorg_testset_save_CFLAGS="$CFLAGS"
17819
17820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17825 $as_echo_n "(cached) " >&6
17826 else
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17829 int i;
17830 _ACEOF
17831 if ac_fn_c_try_compile "$LINENO"; then :
17832 xorg_cv_cc_flag_unknown_warning_option=yes
17833 else
17834 xorg_cv_cc_flag_unknown_warning_option=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 fi
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17841 CFLAGS="$xorg_testset_save_CFLAGS"
17842 fi
17843
17844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17847 fi
17848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856 int i;
17857 _ACEOF
17858 if ac_fn_c_try_compile "$LINENO"; then :
17859 xorg_cv_cc_flag_unused_command_line_argument=yes
17860 else
17861 xorg_cv_cc_flag_unused_command_line_argument=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 fi
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17868 CFLAGS="$xorg_testset_save_CFLAGS"
17869 fi
17870
17871 found="no"
17872
17873 if test $found = "no" ; then
17874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17876 fi
17877
17878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17880 fi
17881
17882 CFLAGS="$CFLAGS -Werror"
17883
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17885 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17886 cacheid=xorg_cv_cc_flag__Werror
17887 if eval \${$cacheid+:} false; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 int i;
17893 int
17894 main ()
17895 {
17896
17897 ;
17898 return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_link "$LINENO"; then :
17902 eval $cacheid=yes
17903 else
17904 eval $cacheid=no
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 fi
17909
17910
17911 CFLAGS="$xorg_testset_save_CFLAGS"
17912
17913 eval supported=\$$cacheid
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17915 $as_echo "$supported" >&6; }
17916 if test "$supported" = "yes" ; then
17917 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17918 found="yes"
17919 fi
17920 fi
17921
17922 if test $found = "no" ; then
17923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17925 fi
17926
17927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17929 fi
17930
17931 CFLAGS="$CFLAGS -errwarn"
17932
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17934 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17935 cacheid=xorg_cv_cc_flag__errwarn
17936 if eval \${$cacheid+:} false; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941 int i;
17942 int
17943 main ()
17944 {
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 eval $cacheid=yes
17952 else
17953 eval $cacheid=no
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 fi
17958
17959
17960 CFLAGS="$xorg_testset_save_CFLAGS"
17961
17962 eval supported=\$$cacheid
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17964 $as_echo "$supported" >&6; }
17965 if test "$supported" = "yes" ; then
17966 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17967 found="yes"
17968 fi
17969 fi
17970
17971
17972
17973 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17974 # activate it with -Werror, so we add it here explicitly.
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988 xorg_testset_save_CFLAGS="$CFLAGS"
17989
17990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999 int i;
18000 _ACEOF
18001 if ac_fn_c_try_compile "$LINENO"; then :
18002 xorg_cv_cc_flag_unknown_warning_option=yes
18003 else
18004 xorg_cv_cc_flag_unknown_warning_option=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 fi
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18011 CFLAGS="$xorg_testset_save_CFLAGS"
18012 fi
18013
18014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017 fi
18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18022 $as_echo_n "(cached) " >&6
18023 else
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026 int i;
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"; then :
18029 xorg_cv_cc_flag_unused_command_line_argument=yes
18030 else
18031 xorg_cv_cc_flag_unused_command_line_argument=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 fi
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18038 CFLAGS="$xorg_testset_save_CFLAGS"
18039 fi
18040
18041 found="no"
18042
18043 if test $found = "no" ; then
18044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046 fi
18047
18048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18050 fi
18051
18052 CFLAGS="$CFLAGS -Werror=attributes"
18053
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18055 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18056 cacheid=xorg_cv_cc_flag__Werror_attributes
18057 if eval \${$cacheid+:} false; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h. */
18062 int i;
18063 int
18064 main ()
18065 {
18066
18067 ;
18068 return 0;
18069 }
18070 _ACEOF
18071 if ac_fn_c_try_link "$LINENO"; then :
18072 eval $cacheid=yes
18073 else
18074 eval $cacheid=no
18075 fi
18076 rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18078 fi
18079
18080
18081 CFLAGS="$xorg_testset_save_CFLAGS"
18082
18083 eval supported=\$$cacheid
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18085 $as_echo "$supported" >&6; }
18086 if test "$supported" = "yes" ; then
18087 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18088 found="yes"
18089 fi
18090 fi
18091
18092
18093
18094 if test "x$STRICT_COMPILE" = "xyes"; then
18095 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18096 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18097 fi
18098
18099
18100
18101
18102
18103
18104 cat >>confdefs.h <<_ACEOF
18105 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18106 _ACEOF
18107
18108 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18109 if test "x$PVM" = "x"; then
18110 PVM="0"
18111 fi
18112
18113 cat >>confdefs.h <<_ACEOF
18114 #define PACKAGE_VERSION_MINOR $PVM
18115 _ACEOF
18116
18117 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18118 if test "x$PVP" = "x"; then
18119 PVP="0"
18120 fi
18121
18122 cat >>confdefs.h <<_ACEOF
18123 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18124 _ACEOF
18125
18126
18127
18128 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18129 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18130 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18131 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18132
18133
18134
18135
18136 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18137 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18138 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18139 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18140 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18141
18142
18143
18144
18145
18146
18147 if test x$APP_MAN_SUFFIX = x ; then
18148 APP_MAN_SUFFIX=1
18149 fi
18150 if test x$APP_MAN_DIR = x ; then
18151 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18152 fi
18153
18154 if test x$LIB_MAN_SUFFIX = x ; then
18155 LIB_MAN_SUFFIX=3
18156 fi
18157 if test x$LIB_MAN_DIR = x ; then
18158 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18159 fi
18160
18161 if test x$FILE_MAN_SUFFIX = x ; then
18162 case $host_os in
18163 solaris*) FILE_MAN_SUFFIX=4 ;;
18164 *) FILE_MAN_SUFFIX=5 ;;
18165 esac
18166 fi
18167 if test x$FILE_MAN_DIR = x ; then
18168 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18169 fi
18170
18171 if test x$MISC_MAN_SUFFIX = x ; then
18172 case $host_os in
18173 solaris*) MISC_MAN_SUFFIX=5 ;;
18174 *) MISC_MAN_SUFFIX=7 ;;
18175 esac
18176 fi
18177 if test x$MISC_MAN_DIR = x ; then
18178 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18179 fi
18180
18181 if test x$DRIVER_MAN_SUFFIX = x ; then
18182 case $host_os in
18183 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18184 *) DRIVER_MAN_SUFFIX=4 ;;
18185 esac
18186 fi
18187 if test x$DRIVER_MAN_DIR = x ; then
18188 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18189 fi
18190
18191 if test x$ADMIN_MAN_SUFFIX = x ; then
18192 case $host_os in
18193 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18194 *) ADMIN_MAN_SUFFIX=8 ;;
18195 esac
18196 fi
18197 if test x$ADMIN_MAN_DIR = x ; then
18198 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18199 fi
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215 XORG_MAN_PAGE="X Version 11"
18216
18217 MAN_SUBSTS="\
18218 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18219 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18220 -e 's|__xservername__|Xorg|g' \
18221 -e 's|__xconfigfile__|xorg.conf|g' \
18222 -e 's|__projectroot__|\$(prefix)|g' \
18223 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18224 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18225 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18226 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18227 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18228 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18229 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18230
18231
18232
18233 # Check whether --enable-silent-rules was given.
18234 if test "${enable_silent_rules+set}" = set; then :
18235 enableval=$enable_silent_rules;
18236 fi
18237
18238 case $enable_silent_rules in # (((
18239 yes) AM_DEFAULT_VERBOSITY=0;;
18240 no) AM_DEFAULT_VERBOSITY=1;;
18241 *) AM_DEFAULT_VERBOSITY=0;;
18242 esac
18243 am_make=${MAKE-make}
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18245 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18246 if ${am_cv_make_support_nested_variables+:} false; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249 if $as_echo 'TRUE=$(BAR$(V))
18250 BAR0=false
18251 BAR1=true
18252 V=1
18253 am__doit:
18254 @$(TRUE)
18255 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18256 am_cv_make_support_nested_variables=yes
18257 else
18258 am_cv_make_support_nested_variables=no
18259 fi
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18262 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18263 if test $am_cv_make_support_nested_variables = yes; then
18264 AM_V='$(V)'
18265 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18266 else
18267 AM_V=$AM_DEFAULT_VERBOSITY
18268 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18269 fi
18270 AM_BACKSLASH='\'
18271
18272
18273
18274 # Check whether --enable-malloc0returnsnull was given.
18275 if test "${enable_malloc0returnsnull+set}" = set; then :
18276 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18277 else
18278 MALLOC_ZERO_RETURNS_NULL=auto
18279 fi
18280
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18283 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18284 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18285 if ${xorg_cv_malloc0_returns_null+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 if test "$cross_compiling" = yes; then :
18289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18291 as_fn_error $? "cannot run test program while cross compiling
18292 See \`config.log' for more details" "$LINENO" 5; }
18293 else
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 #include <stdlib.h>
18298
18299 int
18300 main ()
18301 {
18302
18303 char *m0, *r0, *c0, *p;
18304 m0 = malloc(0);
18305 p = malloc(10);
18306 r0 = realloc(p,0);
18307 c0 = calloc(0,10);
18308 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 if ac_fn_c_try_run "$LINENO"; then :
18315 xorg_cv_malloc0_returns_null=yes
18316 else
18317 xorg_cv_malloc0_returns_null=no
18318 fi
18319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18320 conftest.$ac_objext conftest.beam conftest.$ac_ext
18321 fi
18322
18323 fi
18324
18325 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18326 fi
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18328 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18329
18330 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18331 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18332 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18333 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18334 else
18335 MALLOC_ZERO_CFLAGS=""
18336 XMALLOC_ZERO_CFLAGS=""
18337 XTMALLOC_ZERO_CFLAGS=""
18338 fi
18339
18340
18341
18342
18343
18344
18345 # Obtain compiler/linker options for depedencies
18346
18347 pkg_failed=no
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
18349 $as_echo_n "checking for XINERAMA... " >&6; }
18350
18351 if test -n "$XINERAMA_CFLAGS"; then
18352 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
18353 elif test -n "$PKG_CONFIG"; then
18354 if test -n "$PKG_CONFIG" && \
18355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
18356 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
18357 ac_status=$?
18358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18359 test $ac_status = 0; }; then
18360 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
18361 test "x$?" != "x0" && pkg_failed=yes
18362 else
18363 pkg_failed=yes
18364 fi
18365 else
18366 pkg_failed=untried
18367 fi
18368 if test -n "$XINERAMA_LIBS"; then
18369 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
18370 elif test -n "$PKG_CONFIG"; then
18371 if test -n "$PKG_CONFIG" && \
18372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
18373 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
18374 ac_status=$?
18375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376 test $ac_status = 0; }; then
18377 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
18378 test "x$?" != "x0" && pkg_failed=yes
18379 else
18380 pkg_failed=yes
18381 fi
18382 else
18383 pkg_failed=untried
18384 fi
18385
18386
18387
18388 if test $pkg_failed = yes; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391
18392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18393 _pkg_short_errors_supported=yes
18394 else
18395 _pkg_short_errors_supported=no
18396 fi
18397 if test $_pkg_short_errors_supported = yes; then
18398 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
18399 else
18400 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
18401 fi
18402 # Put the nasty error message in config.log where it belongs
18403 echo "$XINERAMA_PKG_ERRORS" >&5
18404
18405 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1) were not met:
18406
18407 $XINERAMA_PKG_ERRORS
18408
18409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18410 installed software in a non-standard prefix.
18411
18412 Alternatively, you may set the environment variables XINERAMA_CFLAGS
18413 and XINERAMA_LIBS to avoid the need to call pkg-config.
18414 See the pkg-config man page for more details." "$LINENO" 5
18415 elif test $pkg_failed = untried; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18420 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18421 is in your PATH or set the PKG_CONFIG environment variable to the full
18422 path to pkg-config.
18423
18424 Alternatively, you may set the environment variables XINERAMA_CFLAGS
18425 and XINERAMA_LIBS to avoid the need to call pkg-config.
18426 See the pkg-config man page for more details.
18427
18428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18429 See \`config.log' for more details" "$LINENO" 5; }
18430 else
18431 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
18432 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18434 $as_echo "yes" >&6; }
18435
18436 fi
18437
18438 # Allow checking code with lint, sparse, etc.
18439
18440
18441
18442
18443
18444 # Check whether --with-lint was given.
18445 if test "${with_lint+set}" = set; then :
18446 withval=$with_lint; use_lint=$withval
18447 else
18448 use_lint=no
18449 fi
18450
18451
18452 # Obtain platform specific info like program name and options
18453 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18454 case $host_os in
18455 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18456 lint_name=splint
18457 lint_options="-badflag"
18458 ;;
18459 *freebsd* | *netbsd*)
18460 lint_name=lint
18461 lint_options="-u -b"
18462 ;;
18463 *solaris*)
18464 lint_name=lint
18465 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18466 ;;
18467 esac
18468
18469 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18470 if test "x$use_lint" = x"yes" ; then
18471 # Extract the first word of "$lint_name", so it can be a program name with args.
18472 set dummy $lint_name; ac_word=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474 $as_echo_n "checking for $ac_word... " >&6; }
18475 if ${ac_cv_path_LINT+:} false; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 case $LINT in
18479 [\\/]* | ?:[\\/]*)
18480 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18481 ;;
18482 *)
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486 IFS=$as_save_IFS
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492 break 2
18493 fi
18494 done
18495 done
18496 IFS=$as_save_IFS
18497
18498 ;;
18499 esac
18500 fi
18501 LINT=$ac_cv_path_LINT
18502 if test -n "$LINT"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18504 $as_echo "$LINT" >&6; }
18505 else
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18508 fi
18509
18510
18511 if test "x$LINT" = "x"; then
18512 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18513 fi
18514 elif test "x$use_lint" = x"no" ; then
18515 if test "x$LINT" != "x"; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18517 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18518 fi
18519 else
18520 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18521 fi
18522
18523 # User supplied flags override default flags
18524 if test "x$LINT_FLAGS" != "x"; then
18525 lint_options=$LINT_FLAGS
18526 fi
18527
18528 LINT_FLAGS=$lint_options
18529
18530 if test "x$LINT" != x; then
18531 LINT_TRUE=
18532 LINT_FALSE='#'
18533 else
18534 LINT_TRUE='#'
18535 LINT_FALSE=
18536 fi
18537
18538
18539
18540 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
18541
18542 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
18543
18544 cat >confcache <<\_ACEOF
18545 # This file is a shell script that caches the results of configure
18546 # tests run on this system so they can be shared between configure
18547 # scripts and configure runs, see configure's option --config-cache.
18548 # It is not useful on other systems. If it contains results you don't
18549 # want to keep, you may remove or edit it.
18550 #
18551 # config.status only pays attention to the cache file if you give it
18552 # the --recheck option to rerun configure.
18553 #
18554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18556 # following values.
18557
18558 _ACEOF
18559
18560 # The following way of writing the cache mishandles newlines in values,
18561 # but we know of no workaround that is simple, portable, and efficient.
18562 # So, we kill variables containing newlines.
18563 # Ultrix sh set writes to stderr and can't be redirected directly,
18564 # and sets the high bit in the cache file unless we assign to the vars.
18565 (
18566 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18567 eval ac_val=\$$ac_var
18568 case $ac_val in #(
18569 *${as_nl}*)
18570 case $ac_var in #(
18571 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18573 esac
18574 case $ac_var in #(
18575 _ | IFS | as_nl) ;; #(
18576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18577 *) { eval $ac_var=; unset $ac_var;} ;;
18578 esac ;;
18579 esac
18580 done
18581
18582 (set) 2>&1 |
18583 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18584 *${as_nl}ac_space=\ *)
18585 # `set' does not quote correctly, so add quotes: double-quote
18586 # substitution turns \\\\ into \\, and sed turns \\ into \.
18587 sed -n \
18588 "s/'/'\\\\''/g;
18589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18590 ;; #(
18591 *)
18592 # `set' quotes correctly as required by POSIX, so do not add quotes.
18593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18594 ;;
18595 esac |
18596 sort
18597 ) |
18598 sed '
18599 /^ac_cv_env_/b end
18600 t clear
18601 :clear
18602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18603 t end
18604 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18605 :end' >>confcache
18606 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18607 if test -w "$cache_file"; then
18608 if test "x$cache_file" != "x/dev/null"; then
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18610 $as_echo "$as_me: updating cache $cache_file" >&6;}
18611 if test ! -f "$cache_file" || test -h "$cache_file"; then
18612 cat confcache >"$cache_file"
18613 else
18614 case $cache_file in #(
18615 */* | ?:*)
18616 mv -f confcache "$cache_file"$$ &&
18617 mv -f "$cache_file"$$ "$cache_file" ;; #(
18618 *)
18619 mv -f confcache "$cache_file" ;;
18620 esac
18621 fi
18622 fi
18623 else
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18625 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18626 fi
18627 fi
18628 rm -f confcache
18629
18630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18631 # Let make expand exec_prefix.
18632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18633
18634 DEFS=-DHAVE_CONFIG_H
18635
18636 ac_libobjs=
18637 ac_ltlibobjs=
18638 U=
18639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18640 # 1. Remove the extension, and $U if already installed.
18641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18644 # will be set to the directory where LIBOBJS objects are built.
18645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18647 done
18648 LIBOBJS=$ac_libobjs
18649
18650 LTLIBOBJS=$ac_ltlibobjs
18651
18652
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18654 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18655 if test -n "$am_sleep_pid"; then
18656 # Hide warnings about reused PIDs.
18657 wait $am_sleep_pid 2>/dev/null
18658 fi
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18660 $as_echo "done" >&6; }
18661 if test -n "$EXEEXT"; then
18662 am__EXEEXT_TRUE=
18663 am__EXEEXT_FALSE='#'
18664 else
18665 am__EXEEXT_TRUE='#'
18666 am__EXEEXT_FALSE=
18667 fi
18668
18669 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18670 as_fn_error $? "conditional \"AMDEP\" was never defined.
18671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18672 fi
18673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18674 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18676 fi
18677 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18678 as_fn_error $? "conditional \"LINT\" was never defined.
18679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18680 fi
18681
18682 : "${CONFIG_STATUS=./config.status}"
18683 ac_write_fail=0
18684 ac_clean_files_save=$ac_clean_files
18685 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18687 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18688 as_write_fail=0
18689 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18690 #! $SHELL
18691 # Generated by $as_me.
18692 # Run this file to recreate the current configuration.
18693 # Compiler output produced by configure, useful for debugging
18694 # configure, is in config.log if it exists.
18695
18696 debug=false
18697 ac_cs_recheck=false
18698 ac_cs_silent=false
18699
18700 SHELL=\${CONFIG_SHELL-$SHELL}
18701 export SHELL
18702 _ASEOF
18703 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18704 ## -------------------- ##
18705 ## M4sh Initialization. ##
18706 ## -------------------- ##
18707
18708 # Be more Bourne compatible
18709 DUALCASE=1; export DUALCASE # for MKS sh
18710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18711 emulate sh
18712 NULLCMD=:
18713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18714 # is contrary to our usage. Disable this feature.
18715 alias -g '${1+"$@"}'='"$@"'
18716 setopt NO_GLOB_SUBST
18717 else
18718 case `(set -o) 2>/dev/null` in #(
18719 *posix*) :
18720 set -o posix ;; #(
18721 *) :
18722 ;;
18723 esac
18724 fi
18725
18726
18727 as_nl='
18728 '
18729 export as_nl
18730 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18731 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18734 # Prefer a ksh shell builtin over an external printf program on Solaris,
18735 # but without wasting forks for bash or zsh.
18736 if test -z "$BASH_VERSION$ZSH_VERSION" \
18737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18738 as_echo='print -r --'
18739 as_echo_n='print -rn --'
18740 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18741 as_echo='printf %s\n'
18742 as_echo_n='printf %s'
18743 else
18744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18746 as_echo_n='/usr/ucb/echo -n'
18747 else
18748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18749 as_echo_n_body='eval
18750 arg=$1;
18751 case $arg in #(
18752 *"$as_nl"*)
18753 expr "X$arg" : "X\\(.*\\)$as_nl";
18754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18755 esac;
18756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18757 '
18758 export as_echo_n_body
18759 as_echo_n='sh -c $as_echo_n_body as_echo'
18760 fi
18761 export as_echo_body
18762 as_echo='sh -c $as_echo_body as_echo'
18763 fi
18764
18765 # The user is always right.
18766 if test "${PATH_SEPARATOR+set}" != set; then
18767 PATH_SEPARATOR=:
18768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18770 PATH_SEPARATOR=';'
18771 }
18772 fi
18773
18774
18775 # IFS
18776 # We need space, tab and new line, in precisely that order. Quoting is
18777 # there to prevent editors from complaining about space-tab.
18778 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18779 # splitting by setting IFS to empty value.)
18780 IFS=" "" $as_nl"
18781
18782 # Find who we are. Look in the path if we contain no directory separator.
18783 as_myself=
18784 case $0 in #((
18785 *[\\/]* ) as_myself=$0 ;;
18786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787 for as_dir in $PATH
18788 do
18789 IFS=$as_save_IFS
18790 test -z "$as_dir" && as_dir=.
18791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18792 done
18793 IFS=$as_save_IFS
18794
18795 ;;
18796 esac
18797 # We did not find ourselves, most probably we were run as `sh COMMAND'
18798 # in which case we are not to be found in the path.
18799 if test "x$as_myself" = x; then
18800 as_myself=$0
18801 fi
18802 if test ! -f "$as_myself"; then
18803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18804 exit 1
18805 fi
18806
18807 # Unset variables that we do not need and which cause bugs (e.g. in
18808 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18809 # suppresses any "Segmentation fault" message there. '((' could
18810 # trigger a bug in pdksh 5.2.14.
18811 for as_var in BASH_ENV ENV MAIL MAILPATH
18812 do eval test x\${$as_var+set} = xset \
18813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18814 done
18815 PS1='$ '
18816 PS2='> '
18817 PS4='+ '
18818
18819 # NLS nuisances.
18820 LC_ALL=C
18821 export LC_ALL
18822 LANGUAGE=C
18823 export LANGUAGE
18824
18825 # CDPATH.
18826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18827
18828
18829 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18830 # ----------------------------------------
18831 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18832 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18833 # script with STATUS, using 1 if that was 0.
18834 as_fn_error ()
18835 {
18836 as_status=$1; test $as_status -eq 0 && as_status=1
18837 if test "$4"; then
18838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18840 fi
18841 $as_echo "$as_me: error: $2" >&2
18842 as_fn_exit $as_status
18843 } # as_fn_error
18844
18845
18846 # as_fn_set_status STATUS
18847 # -----------------------
18848 # Set $? to STATUS, without forking.
18849 as_fn_set_status ()
18850 {
18851 return $1
18852 } # as_fn_set_status
18853
18854 # as_fn_exit STATUS
18855 # -----------------
18856 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18857 as_fn_exit ()
18858 {
18859 set +e
18860 as_fn_set_status $1
18861 exit $1
18862 } # as_fn_exit
18863
18864 # as_fn_unset VAR
18865 # ---------------
18866 # Portably unset VAR.
18867 as_fn_unset ()
18868 {
18869 { eval $1=; unset $1;}
18870 }
18871 as_unset=as_fn_unset
18872 # as_fn_append VAR VALUE
18873 # ----------------------
18874 # Append the text in VALUE to the end of the definition contained in VAR. Take
18875 # advantage of any shell optimizations that allow amortized linear growth over
18876 # repeated appends, instead of the typical quadratic growth present in naive
18877 # implementations.
18878 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18879 eval 'as_fn_append ()
18880 {
18881 eval $1+=\$2
18882 }'
18883 else
18884 as_fn_append ()
18885 {
18886 eval $1=\$$1\$2
18887 }
18888 fi # as_fn_append
18889
18890 # as_fn_arith ARG...
18891 # ------------------
18892 # Perform arithmetic evaluation on the ARGs, and store the result in the
18893 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18894 # must be portable across $(()) and expr.
18895 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18896 eval 'as_fn_arith ()
18897 {
18898 as_val=$(( $* ))
18899 }'
18900 else
18901 as_fn_arith ()
18902 {
18903 as_val=`expr "$@" || test $? -eq 1`
18904 }
18905 fi # as_fn_arith
18906
18907
18908 if expr a : '\(a\)' >/dev/null 2>&1 &&
18909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18910 as_expr=expr
18911 else
18912 as_expr=false
18913 fi
18914
18915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18916 as_basename=basename
18917 else
18918 as_basename=false
18919 fi
18920
18921 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18922 as_dirname=dirname
18923 else
18924 as_dirname=false
18925 fi
18926
18927 as_me=`$as_basename -- "$0" ||
18928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18929 X"$0" : 'X\(//\)$' \| \
18930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18931 $as_echo X/"$0" |
18932 sed '/^.*\/\([^/][^/]*\)\/*$/{
18933 s//\1/
18934 q
18935 }
18936 /^X\/\(\/\/\)$/{
18937 s//\1/
18938 q
18939 }
18940 /^X\/\(\/\).*/{
18941 s//\1/
18942 q
18943 }
18944 s/.*/./; q'`
18945
18946 # Avoid depending upon Character Ranges.
18947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18950 as_cr_digits='0123456789'
18951 as_cr_alnum=$as_cr_Letters$as_cr_digits
18952
18953 ECHO_C= ECHO_N= ECHO_T=
18954 case `echo -n x` in #(((((
18955 -n*)
18956 case `echo 'xy\c'` in
18957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18958 xy) ECHO_C='\c';;
18959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18960 ECHO_T=' ';;
18961 esac;;
18962 *)
18963 ECHO_N='-n';;
18964 esac
18965
18966 rm -f conf$$ conf$$.exe conf$$.file
18967 if test -d conf$$.dir; then
18968 rm -f conf$$.dir/conf$$.file
18969 else
18970 rm -f conf$$.dir
18971 mkdir conf$$.dir 2>/dev/null
18972 fi
18973 if (echo >conf$$.file) 2>/dev/null; then
18974 if ln -s conf$$.file conf$$ 2>/dev/null; then
18975 as_ln_s='ln -s'
18976 # ... but there are two gotchas:
18977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18979 # In both cases, we have to default to `cp -pR'.
18980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18981 as_ln_s='cp -pR'
18982 elif ln conf$$.file conf$$ 2>/dev/null; then
18983 as_ln_s=ln
18984 else
18985 as_ln_s='cp -pR'
18986 fi
18987 else
18988 as_ln_s='cp -pR'
18989 fi
18990 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18991 rmdir conf$$.dir 2>/dev/null
18992
18993
18994 # as_fn_mkdir_p
18995 # -------------
18996 # Create "$as_dir" as a directory, including parents if necessary.
18997 as_fn_mkdir_p ()
18998 {
18999
19000 case $as_dir in #(
19001 -*) as_dir=./$as_dir;;
19002 esac
19003 test -d "$as_dir" || eval $as_mkdir_p || {
19004 as_dirs=
19005 while :; do
19006 case $as_dir in #(
19007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19008 *) as_qdir=$as_dir;;
19009 esac
19010 as_dirs="'$as_qdir' $as_dirs"
19011 as_dir=`$as_dirname -- "$as_dir" ||
19012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19013 X"$as_dir" : 'X\(//\)[^/]' \| \
19014 X"$as_dir" : 'X\(//\)$' \| \
19015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19016 $as_echo X"$as_dir" |
19017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19018 s//\1/
19019 q
19020 }
19021 /^X\(\/\/\)[^/].*/{
19022 s//\1/
19023 q
19024 }
19025 /^X\(\/\/\)$/{
19026 s//\1/
19027 q
19028 }
19029 /^X\(\/\).*/{
19030 s//\1/
19031 q
19032 }
19033 s/.*/./; q'`
19034 test -d "$as_dir" && break
19035 done
19036 test -z "$as_dirs" || eval "mkdir $as_dirs"
19037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19038
19039
19040 } # as_fn_mkdir_p
19041 if mkdir -p . 2>/dev/null; then
19042 as_mkdir_p='mkdir -p "$as_dir"'
19043 else
19044 test -d ./-p && rmdir ./-p
19045 as_mkdir_p=false
19046 fi
19047
19048
19049 # as_fn_executable_p FILE
19050 # -----------------------
19051 # Test if FILE is an executable regular file.
19052 as_fn_executable_p ()
19053 {
19054 test -f "$1" && test -x "$1"
19055 } # as_fn_executable_p
19056 as_test_x='test -x'
19057 as_executable_p=as_fn_executable_p
19058
19059 # Sed expression to map a string onto a valid CPP name.
19060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19061
19062 # Sed expression to map a string onto a valid variable name.
19063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19064
19065
19066 exec 6>&1
19067 ## ----------------------------------- ##
19068 ## Main body of $CONFIG_STATUS script. ##
19069 ## ----------------------------------- ##
19070 _ASEOF
19071 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19072
19073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074 # Save the log message, to keep $0 and so on meaningful, and to
19075 # report actual input values of CONFIG_FILES etc. instead of their
19076 # values after options handling.
19077 ac_log="
19078 This file was extended by libXinerama $as_me 1.1.4, which was
19079 generated by GNU Autoconf 2.69. Invocation command line was
19080
19081 CONFIG_FILES = $CONFIG_FILES
19082 CONFIG_HEADERS = $CONFIG_HEADERS
19083 CONFIG_LINKS = $CONFIG_LINKS
19084 CONFIG_COMMANDS = $CONFIG_COMMANDS
19085 $ $0 $@
19086
19087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19088 "
19089
19090 _ACEOF
19091
19092 case $ac_config_files in *"
19093 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19094 esac
19095
19096 case $ac_config_headers in *"
19097 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19098 esac
19099
19100
19101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19102 # Files that config.status was made for.
19103 config_files="$ac_config_files"
19104 config_headers="$ac_config_headers"
19105 config_commands="$ac_config_commands"
19106
19107 _ACEOF
19108
19109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19110 ac_cs_usage="\
19111 \`$as_me' instantiates files and other configuration actions
19112 from templates according to the current configuration. Unless the files
19113 and actions are specified as TAGs, all are instantiated by default.
19114
19115 Usage: $0 [OPTION]... [TAG]...
19116
19117 -h, --help print this help, then exit
19118 -V, --version print version number and configuration settings, then exit
19119 --config print configuration, then exit
19120 -q, --quiet, --silent
19121 do not print progress messages
19122 -d, --debug don't remove temporary files
19123 --recheck update $as_me by reconfiguring in the same conditions
19124 --file=FILE[:TEMPLATE]
19125 instantiate the configuration file FILE
19126 --header=FILE[:TEMPLATE]
19127 instantiate the configuration header FILE
19128
19129 Configuration files:
19130 $config_files
19131
19132 Configuration headers:
19133 $config_headers
19134
19135 Configuration commands:
19136 $config_commands
19137
19138 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19139
19140 _ACEOF
19141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19142 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19143 ac_cs_version="\\
19144 libXinerama config.status 1.1.4
19145 configured by $0, generated by GNU Autoconf 2.69,
19146 with options \\"\$ac_cs_config\\"
19147
19148 Copyright (C) 2012 Free Software Foundation, Inc.
19149 This config.status script is free software; the Free Software Foundation
19150 gives unlimited permission to copy, distribute and modify it."
19151
19152 ac_pwd='$ac_pwd'
19153 srcdir='$srcdir'
19154 INSTALL='$INSTALL'
19155 MKDIR_P='$MKDIR_P'
19156 AWK='$AWK'
19157 test -n "\$AWK" || AWK=awk
19158 _ACEOF
19159
19160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19161 # The default lists apply if the user does not specify any file.
19162 ac_need_defaults=:
19163 while test $# != 0
19164 do
19165 case $1 in
19166 --*=?*)
19167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19169 ac_shift=:
19170 ;;
19171 --*=)
19172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19173 ac_optarg=
19174 ac_shift=:
19175 ;;
19176 *)
19177 ac_option=$1
19178 ac_optarg=$2
19179 ac_shift=shift
19180 ;;
19181 esac
19182
19183 case $ac_option in
19184 # Handling of the options.
19185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19186 ac_cs_recheck=: ;;
19187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19188 $as_echo "$ac_cs_version"; exit ;;
19189 --config | --confi | --conf | --con | --co | --c )
19190 $as_echo "$ac_cs_config"; exit ;;
19191 --debug | --debu | --deb | --de | --d | -d )
19192 debug=: ;;
19193 --file | --fil | --fi | --f )
19194 $ac_shift
19195 case $ac_optarg in
19196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19197 '') as_fn_error $? "missing file argument" ;;
19198 esac
19199 as_fn_append CONFIG_FILES " '$ac_optarg'"
19200 ac_need_defaults=false;;
19201 --header | --heade | --head | --hea )
19202 $ac_shift
19203 case $ac_optarg in
19204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19205 esac
19206 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19207 ac_need_defaults=false;;
19208 --he | --h)
19209 # Conflict between --help and --header
19210 as_fn_error $? "ambiguous option: \`$1'
19211 Try \`$0 --help' for more information.";;
19212 --help | --hel | -h )
19213 $as_echo "$ac_cs_usage"; exit ;;
19214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19216 ac_cs_silent=: ;;
19217
19218 # This is an error.
19219 -*) as_fn_error $? "unrecognized option: \`$1'
19220 Try \`$0 --help' for more information." ;;
19221
19222 *) as_fn_append ac_config_targets " $1"
19223 ac_need_defaults=false ;;
19224
19225 esac
19226 shift
19227 done
19228
19229 ac_configure_extra_args=
19230
19231 if $ac_cs_silent; then
19232 exec 6>/dev/null
19233 ac_configure_extra_args="$ac_configure_extra_args --silent"
19234 fi
19235
19236 _ACEOF
19237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19238 if \$ac_cs_recheck; then
19239 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19240 shift
19241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19242 CONFIG_SHELL='$SHELL'
19243 export CONFIG_SHELL
19244 exec "\$@"
19245 fi
19246
19247 _ACEOF
19248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249 exec 5>>config.log
19250 {
19251 echo
19252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19253 ## Running $as_me. ##
19254 _ASBOX
19255 $as_echo "$ac_log"
19256 } >&5
19257
19258 _ACEOF
19259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19260 #
19261 # INIT-COMMANDS
19262 #
19263 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19264
19265
19266 # The HP-UX ksh and POSIX shell print the target directory to stdout
19267 # if CDPATH is set.
19268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19269
19270 sed_quote_subst='$sed_quote_subst'
19271 double_quote_subst='$double_quote_subst'
19272 delay_variable_subst='$delay_variable_subst'
19273 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19274 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19275 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19276 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19277 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19278 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19279 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19280 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19281 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19282 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19283 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19284 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19285 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19286 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19287 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19288 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19289 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19290 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19291 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19292 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19293 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19294 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19295 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19296 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19297 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19298 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19299 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19300 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19301 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19302 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19303 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19304 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19305 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19306 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19307 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19308 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19309 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19310 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19311 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19312 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19313 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19314 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19315 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19316 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19317 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19318 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19319 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19320 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19321 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19322 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19323 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19324 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19325 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19326 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19327 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19328 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19329 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19330 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19331 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"`'
19332 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19333 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19334 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19335 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19336 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19337 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19338 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19339 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19340 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19341 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19342 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19343 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19344 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19345 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19346 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19347 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19348 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19349 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19350 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19351 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19352 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19353 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19354 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19355 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19356 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19357 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19358 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19359 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19360 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19361 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19362 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19363 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19364 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19365 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19366 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19367 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19368 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19369 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19370 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19371 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19372 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19373 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19374 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19375 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19376 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19377 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19378 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19379 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19380 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19381 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19382 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19383 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19384 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19385 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19386 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19387 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19388 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19389 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19390 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19391 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19392 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19393 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19394 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19395 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19396 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19397 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19398 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19399 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19400 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19401 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19402 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19403 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19404 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19405 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19406 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19407 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19408
19409 LTCC='$LTCC'
19410 LTCFLAGS='$LTCFLAGS'
19411 compiler='$compiler_DEFAULT'
19412
19413 # A function that is used when there is no print builtin or printf.
19414 func_fallback_echo ()
19415 {
19416 eval 'cat <<_LTECHO_EOF
19417 \$1
19418 _LTECHO_EOF'
19419 }
19420
19421 # Quote evaled strings.
19422 for var in SHELL \
19423 ECHO \
19424 PATH_SEPARATOR \
19425 SED \
19426 GREP \
19427 EGREP \
19428 FGREP \
19429 LD \
19430 NM \
19431 LN_S \
19432 lt_SP2NL \
19433 lt_NL2SP \
19434 reload_flag \
19435 OBJDUMP \
19436 deplibs_check_method \
19437 file_magic_cmd \
19438 file_magic_glob \
19439 want_nocaseglob \
19440 DLLTOOL \
19441 sharedlib_from_linklib_cmd \
19442 AR \
19443 AR_FLAGS \
19444 archiver_list_spec \
19445 STRIP \
19446 RANLIB \
19447 CC \
19448 CFLAGS \
19449 compiler \
19450 lt_cv_sys_global_symbol_pipe \
19451 lt_cv_sys_global_symbol_to_cdecl \
19452 lt_cv_sys_global_symbol_to_import \
19453 lt_cv_sys_global_symbol_to_c_name_address \
19454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19455 lt_cv_nm_interface \
19456 nm_file_list_spec \
19457 lt_cv_truncate_bin \
19458 lt_prog_compiler_no_builtin_flag \
19459 lt_prog_compiler_pic \
19460 lt_prog_compiler_wl \
19461 lt_prog_compiler_static \
19462 lt_cv_prog_compiler_c_o \
19463 need_locks \
19464 MANIFEST_TOOL \
19465 DSYMUTIL \
19466 NMEDIT \
19467 LIPO \
19468 OTOOL \
19469 OTOOL64 \
19470 shrext_cmds \
19471 export_dynamic_flag_spec \
19472 whole_archive_flag_spec \
19473 compiler_needs_object \
19474 with_gnu_ld \
19475 allow_undefined_flag \
19476 no_undefined_flag \
19477 hardcode_libdir_flag_spec \
19478 hardcode_libdir_separator \
19479 exclude_expsyms \
19480 include_expsyms \
19481 file_list_spec \
19482 variables_saved_for_relink \
19483 libname_spec \
19484 library_names_spec \
19485 soname_spec \
19486 install_override_mode \
19487 finish_eval \
19488 old_striplib \
19489 striplib; do
19490 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19491 *[\\\\\\\`\\"\\\$]*)
19492 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19493 ;;
19494 *)
19495 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19496 ;;
19497 esac
19498 done
19499
19500 # Double-quote double-evaled strings.
19501 for var in reload_cmds \
19502 old_postinstall_cmds \
19503 old_postuninstall_cmds \
19504 old_archive_cmds \
19505 extract_expsyms_cmds \
19506 old_archive_from_new_cmds \
19507 old_archive_from_expsyms_cmds \
19508 archive_cmds \
19509 archive_expsym_cmds \
19510 module_cmds \
19511 module_expsym_cmds \
19512 export_symbols_cmds \
19513 prelink_cmds \
19514 postlink_cmds \
19515 postinstall_cmds \
19516 postuninstall_cmds \
19517 finish_cmds \
19518 sys_lib_search_path_spec \
19519 configure_time_dlsearch_path \
19520 configure_time_lt_sys_library_path; do
19521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19522 *[\\\\\\\`\\"\\\$]*)
19523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19524 ;;
19525 *)
19526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19527 ;;
19528 esac
19529 done
19530
19531 ac_aux_dir='$ac_aux_dir'
19532
19533 # See if we are running on zsh, and set the options that allow our
19534 # commands through without removal of \ escapes INIT.
19535 if test -n "\${ZSH_VERSION+set}"; then
19536 setopt NO_GLOB_SUBST
19537 fi
19538
19539
19540 PACKAGE='$PACKAGE'
19541 VERSION='$VERSION'
19542 RM='$RM'
19543 ofile='$ofile'
19544
19545
19546
19547
19548 _ACEOF
19549
19550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19551
19552 # Handling of arguments.
19553 for ac_config_target in $ac_config_targets
19554 do
19555 case $ac_config_target in
19556 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19560 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19561 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19562 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
19563
19564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19565 esac
19566 done
19567
19568
19569 # If the user did not use the arguments to specify the items to instantiate,
19570 # then the envvar interface is used. Set only those that are not.
19571 # We use the long form for the default assignment because of an extremely
19572 # bizarre bug on SunOS 4.1.3.
19573 if $ac_need_defaults; then
19574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19577 fi
19578
19579 # Have a temporary directory for convenience. Make it in the build tree
19580 # simply because there is no reason against having it here, and in addition,
19581 # creating and moving files from /tmp can sometimes cause problems.
19582 # Hook for its removal unless debugging.
19583 # Note that there is a small window in which the directory will not be cleaned:
19584 # after its creation but before its name has been assigned to `$tmp'.
19585 $debug ||
19586 {
19587 tmp= ac_tmp=
19588 trap 'exit_status=$?
19589 : "${ac_tmp:=$tmp}"
19590 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19591 ' 0
19592 trap 'as_fn_exit 1' 1 2 13 15
19593 }
19594 # Create a (secure) tmp directory for tmp files.
19595
19596 {
19597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19598 test -d "$tmp"
19599 } ||
19600 {
19601 tmp=./conf$$-$RANDOM
19602 (umask 077 && mkdir "$tmp")
19603 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19604 ac_tmp=$tmp
19605
19606 # Set up the scripts for CONFIG_FILES section.
19607 # No need to generate them if there are no CONFIG_FILES.
19608 # This happens for instance with `./config.status config.h'.
19609 if test -n "$CONFIG_FILES"; then
19610
19611
19612 ac_cr=`echo X | tr X '\015'`
19613 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19614 # But we know of no other shell where ac_cr would be empty at this
19615 # point, so we can use a bashism as a fallback.
19616 if test "x$ac_cr" = x; then
19617 eval ac_cr=\$\'\\r\'
19618 fi
19619 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19621 ac_cs_awk_cr='\\r'
19622 else
19623 ac_cs_awk_cr=$ac_cr
19624 fi
19625
19626 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19627 _ACEOF
19628
19629
19630 {
19631 echo "cat >conf$$subs.awk <<_ACEOF" &&
19632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19633 echo "_ACEOF"
19634 } >conf$$subs.sh ||
19635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19636 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19637 ac_delim='%!_!# '
19638 for ac_last_try in false false false false false :; do
19639 . ./conf$$subs.sh ||
19640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19641
19642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19643 if test $ac_delim_n = $ac_delim_num; then
19644 break
19645 elif $ac_last_try; then
19646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19647 else
19648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19649 fi
19650 done
19651 rm -f conf$$subs.sh
19652
19653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19654 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19655 _ACEOF
19656 sed -n '
19657 h
19658 s/^/S["/; s/!.*/"]=/
19659 p
19660 g
19661 s/^[^!]*!//
19662 :repl
19663 t repl
19664 s/'"$ac_delim"'$//
19665 t delim
19666 :nl
19667 h
19668 s/\(.\{148\}\)..*/\1/
19669 t more1
19670 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19671 p
19672 n
19673 b repl
19674 :more1
19675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19676 p
19677 g
19678 s/.\{148\}//
19679 t nl
19680 :delim
19681 h
19682 s/\(.\{148\}\)..*/\1/
19683 t more2
19684 s/["\\]/\\&/g; s/^/"/; s/$/"/
19685 p
19686 b
19687 :more2
19688 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19689 p
19690 g
19691 s/.\{148\}//
19692 t delim
19693 ' <conf$$subs.awk | sed '
19694 /^[^""]/{
19695 N
19696 s/\n//
19697 }
19698 ' >>$CONFIG_STATUS || ac_write_fail=1
19699 rm -f conf$$subs.awk
19700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19701 _ACAWK
19702 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19703 for (key in S) S_is_set[key] = 1
19704 FS = ""
19705
19706 }
19707 {
19708 line = $ 0
19709 nfields = split(line, field, "@")
19710 substed = 0
19711 len = length(field[1])
19712 for (i = 2; i < nfields; i++) {
19713 key = field[i]
19714 keylen = length(key)
19715 if (S_is_set[key]) {
19716 value = S[key]
19717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19718 len += length(value) + length(field[++i])
19719 substed = 1
19720 } else
19721 len += 1 + keylen
19722 }
19723
19724 print line
19725 }
19726
19727 _ACAWK
19728 _ACEOF
19729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19730 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19732 else
19733 cat
19734 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19735 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19736 _ACEOF
19737
19738 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19739 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19740 # trailing colons and then remove the whole line if VPATH becomes empty
19741 # (actually we leave an empty line to preserve line numbers).
19742 if test "x$srcdir" = x.; then
19743 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19744 h
19745 s///
19746 s/^/:/
19747 s/[ ]*$/:/
19748 s/:\$(srcdir):/:/g
19749 s/:\${srcdir}:/:/g
19750 s/:@srcdir@:/:/g
19751 s/^:*//
19752 s/:*$//
19753 x
19754 s/\(=[ ]*\).*/\1/
19755 G
19756 s/\n//
19757 s/^[^=]*=[ ]*$//
19758 }'
19759 fi
19760
19761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19762 fi # test -n "$CONFIG_FILES"
19763
19764 # Set up the scripts for CONFIG_HEADERS section.
19765 # No need to generate them if there are no CONFIG_HEADERS.
19766 # This happens for instance with `./config.status Makefile'.
19767 if test -n "$CONFIG_HEADERS"; then
19768 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19769 BEGIN {
19770 _ACEOF
19771
19772 # Transform confdefs.h into an awk script `defines.awk', embedded as
19773 # here-document in config.status, that substitutes the proper values into
19774 # config.h.in to produce config.h.
19775
19776 # Create a delimiter string that does not exist in confdefs.h, to ease
19777 # handling of long lines.
19778 ac_delim='%!_!# '
19779 for ac_last_try in false false :; do
19780 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19781 if test -z "$ac_tt"; then
19782 break
19783 elif $ac_last_try; then
19784 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19785 else
19786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19787 fi
19788 done
19789
19790 # For the awk script, D is an array of macro values keyed by name,
19791 # likewise P contains macro parameters if any. Preserve backslash
19792 # newline sequences.
19793
19794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19795 sed -n '
19796 s/.\{148\}/&'"$ac_delim"'/g
19797 t rset
19798 :rset
19799 s/^[ ]*#[ ]*define[ ][ ]*/ /
19800 t def
19801 d
19802 :def
19803 s/\\$//
19804 t bsnl
19805 s/["\\]/\\&/g
19806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19807 D["\1"]=" \3"/p
19808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19809 d
19810 :bsnl
19811 s/["\\]/\\&/g
19812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19813 D["\1"]=" \3\\\\\\n"\\/p
19814 t cont
19815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19816 t cont
19817 d
19818 :cont
19819 n
19820 s/.\{148\}/&'"$ac_delim"'/g
19821 t clear
19822 :clear
19823 s/\\$//
19824 t bsnlc
19825 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19826 d
19827 :bsnlc
19828 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19829 b cont
19830 ' <confdefs.h | sed '
19831 s/'"$ac_delim"'/"\\\
19832 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19833
19834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19835 for (key in D) D_is_set[key] = 1
19836 FS = ""
19837 }
19838 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19839 line = \$ 0
19840 split(line, arg, " ")
19841 if (arg[1] == "#") {
19842 defundef = arg[2]
19843 mac1 = arg[3]
19844 } else {
19845 defundef = substr(arg[1], 2)
19846 mac1 = arg[2]
19847 }
19848 split(mac1, mac2, "(") #)
19849 macro = mac2[1]
19850 prefix = substr(line, 1, index(line, defundef) - 1)
19851 if (D_is_set[macro]) {
19852 # Preserve the white space surrounding the "#".
19853 print prefix "define", macro P[macro] D[macro]
19854 next
19855 } else {
19856 # Replace #undef with comments. This is necessary, for example,
19857 # in the case of _POSIX_SOURCE, which is predefined and required
19858 # on some systems where configure will not decide to define it.
19859 if (defundef == "undef") {
19860 print "/*", prefix defundef, macro, "*/"
19861 next
19862 }
19863 }
19864 }
19865 { print }
19866 _ACAWK
19867 _ACEOF
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19869 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19870 fi # test -n "$CONFIG_HEADERS"
19871
19872
19873 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19874 shift
19875 for ac_tag
19876 do
19877 case $ac_tag in
19878 :[FHLC]) ac_mode=$ac_tag; continue;;
19879 esac
19880 case $ac_mode$ac_tag in
19881 :[FHL]*:*);;
19882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19883 :[FH]-) ac_tag=-:-;;
19884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19885 esac
19886 ac_save_IFS=$IFS
19887 IFS=:
19888 set x $ac_tag
19889 IFS=$ac_save_IFS
19890 shift
19891 ac_file=$1
19892 shift
19893
19894 case $ac_mode in
19895 :L) ac_source=$1;;
19896 :[FH])
19897 ac_file_inputs=
19898 for ac_f
19899 do
19900 case $ac_f in
19901 -) ac_f="$ac_tmp/stdin";;
19902 *) # Look for the file first in the build tree, then in the source tree
19903 # (if the path is not absolute). The absolute path cannot be DOS-style,
19904 # because $ac_f cannot contain `:'.
19905 test -f "$ac_f" ||
19906 case $ac_f in
19907 [\\/$]*) false;;
19908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19909 esac ||
19910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19911 esac
19912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19913 as_fn_append ac_file_inputs " '$ac_f'"
19914 done
19915
19916 # Let's still pretend it is `configure' which instantiates (i.e., don't
19917 # use $as_me), people would be surprised to read:
19918 # /* config.h. Generated by config.status. */
19919 configure_input='Generated from '`
19920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19921 `' by configure.'
19922 if test x"$ac_file" != x-; then
19923 configure_input="$ac_file. $configure_input"
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19925 $as_echo "$as_me: creating $ac_file" >&6;}
19926 fi
19927 # Neutralize special characters interpreted by sed in replacement strings.
19928 case $configure_input in #(
19929 *\&* | *\|* | *\\* )
19930 ac_sed_conf_input=`$as_echo "$configure_input" |
19931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19932 *) ac_sed_conf_input=$configure_input;;
19933 esac
19934
19935 case $ac_tag in
19936 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19938 esac
19939 ;;
19940 esac
19941
19942 ac_dir=`$as_dirname -- "$ac_file" ||
19943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19944 X"$ac_file" : 'X\(//\)[^/]' \| \
19945 X"$ac_file" : 'X\(//\)$' \| \
19946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19947 $as_echo X"$ac_file" |
19948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19949 s//\1/
19950 q
19951 }
19952 /^X\(\/\/\)[^/].*/{
19953 s//\1/
19954 q
19955 }
19956 /^X\(\/\/\)$/{
19957 s//\1/
19958 q
19959 }
19960 /^X\(\/\).*/{
19961 s//\1/
19962 q
19963 }
19964 s/.*/./; q'`
19965 as_dir="$ac_dir"; as_fn_mkdir_p
19966 ac_builddir=.
19967
19968 case "$ac_dir" in
19969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19970 *)
19971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19972 # A ".." for each directory in $ac_dir_suffix.
19973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19974 case $ac_top_builddir_sub in
19975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19977 esac ;;
19978 esac
19979 ac_abs_top_builddir=$ac_pwd
19980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19981 # for backward compatibility:
19982 ac_top_builddir=$ac_top_build_prefix
19983
19984 case $srcdir in
19985 .) # We are building in place.
19986 ac_srcdir=.
19987 ac_top_srcdir=$ac_top_builddir_sub
19988 ac_abs_top_srcdir=$ac_pwd ;;
19989 [\\/]* | ?:[\\/]* ) # Absolute name.
19990 ac_srcdir=$srcdir$ac_dir_suffix;
19991 ac_top_srcdir=$srcdir
19992 ac_abs_top_srcdir=$srcdir ;;
19993 *) # Relative name.
19994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19995 ac_top_srcdir=$ac_top_build_prefix$srcdir
19996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19997 esac
19998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19999
20000
20001 case $ac_mode in
20002 :F)
20003 #
20004 # CONFIG_FILE
20005 #
20006
20007 case $INSTALL in
20008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20010 esac
20011 ac_MKDIR_P=$MKDIR_P
20012 case $MKDIR_P in
20013 [\\/$]* | ?:[\\/]* ) ;;
20014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20015 esac
20016 _ACEOF
20017
20018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20019 # If the template does not know about datarootdir, expand it.
20020 # FIXME: This hack should be removed a few years after 2.60.
20021 ac_datarootdir_hack=; ac_datarootdir_seen=
20022 ac_sed_dataroot='
20023 /datarootdir/ {
20024 p
20025 q
20026 }
20027 /@datadir@/p
20028 /@docdir@/p
20029 /@infodir@/p
20030 /@localedir@/p
20031 /@mandir@/p'
20032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20033 *datarootdir*) ac_datarootdir_seen=yes;;
20034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20037 _ACEOF
20038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039 ac_datarootdir_hack='
20040 s&@datadir@&$datadir&g
20041 s&@docdir@&$docdir&g
20042 s&@infodir@&$infodir&g
20043 s&@localedir@&$localedir&g
20044 s&@mandir@&$mandir&g
20045 s&\\\${datarootdir}&$datarootdir&g' ;;
20046 esac
20047 _ACEOF
20048
20049 # Neutralize VPATH when `$srcdir' = `.'.
20050 # Shell code in configure.ac might set extrasub.
20051 # FIXME: do we really want to maintain this feature?
20052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20053 ac_sed_extra="$ac_vpsub
20054 $extrasub
20055 _ACEOF
20056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20057 :t
20058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20059 s|@configure_input@|$ac_sed_conf_input|;t t
20060 s&@top_builddir@&$ac_top_builddir_sub&;t t
20061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20062 s&@srcdir@&$ac_srcdir&;t t
20063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20064 s&@top_srcdir@&$ac_top_srcdir&;t t
20065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20066 s&@builddir@&$ac_builddir&;t t
20067 s&@abs_builddir@&$ac_abs_builddir&;t t
20068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20069 s&@INSTALL@&$ac_INSTALL&;t t
20070 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20071 $ac_datarootdir_hack
20072 "
20073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20074 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20075
20076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20077 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20079 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20081 which seems to be undefined. Please make sure it is defined" >&5
20082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20083 which seems to be undefined. Please make sure it is defined" >&2;}
20084
20085 rm -f "$ac_tmp/stdin"
20086 case $ac_file in
20087 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20088 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20089 esac \
20090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20091 ;;
20092 :H)
20093 #
20094 # CONFIG_HEADER
20095 #
20096 if test x"$ac_file" != x-; then
20097 {
20098 $as_echo "/* $configure_input */" \
20099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20100 } >"$ac_tmp/config.h" \
20101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20102 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20105 else
20106 rm -f "$ac_file"
20107 mv "$ac_tmp/config.h" "$ac_file" \
20108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20109 fi
20110 else
20111 $as_echo "/* $configure_input */" \
20112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20113 || as_fn_error $? "could not create -" "$LINENO" 5
20114 fi
20115 # Compute "$ac_file"'s index in $config_headers.
20116 _am_arg="$ac_file"
20117 _am_stamp_count=1
20118 for _am_header in $config_headers :; do
20119 case $_am_header in
20120 $_am_arg | $_am_arg:* )
20121 break ;;
20122 * )
20123 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20124 esac
20125 done
20126 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20127 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20128 X"$_am_arg" : 'X\(//\)[^/]' \| \
20129 X"$_am_arg" : 'X\(//\)$' \| \
20130 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20131 $as_echo X"$_am_arg" |
20132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20133 s//\1/
20134 q
20135 }
20136 /^X\(\/\/\)[^/].*/{
20137 s//\1/
20138 q
20139 }
20140 /^X\(\/\/\)$/{
20141 s//\1/
20142 q
20143 }
20144 /^X\(\/\).*/{
20145 s//\1/
20146 q
20147 }
20148 s/.*/./; q'`/stamp-h$_am_stamp_count
20149 ;;
20150
20151 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20152 $as_echo "$as_me: executing $ac_file commands" >&6;}
20153 ;;
20154 esac
20155
20156
20157 case $ac_file$ac_mode in
20158 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20159 # Older Autoconf quotes --file arguments for eval, but not when files
20160 # are listed without --file. Let's play safe and only enable the eval
20161 # if we detect the quoting.
20162 case $CONFIG_FILES in
20163 *\'*) eval set x "$CONFIG_FILES" ;;
20164 *) set x $CONFIG_FILES ;;
20165 esac
20166 shift
20167 for mf
20168 do
20169 # Strip MF so we end up with the name of the file.
20170 mf=`echo "$mf" | sed -e 's/:.*$//'`
20171 # Check whether this is an Automake generated Makefile or not.
20172 # We used to match only the files named 'Makefile.in', but
20173 # some people rename them; so instead we look at the file content.
20174 # Grep'ing the first line is not enough: some people post-process
20175 # each Makefile.in and add a new line on top of each file to say so.
20176 # Grep'ing the whole file is not good either: AIX grep has a line
20177 # limit of 2048, but all sed's we know have understand at least 4000.
20178 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20179 dirpart=`$as_dirname -- "$mf" ||
20180 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20181 X"$mf" : 'X\(//\)[^/]' \| \
20182 X"$mf" : 'X\(//\)$' \| \
20183 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20184 $as_echo X"$mf" |
20185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20186 s//\1/
20187 q
20188 }
20189 /^X\(\/\/\)[^/].*/{
20190 s//\1/
20191 q
20192 }
20193 /^X\(\/\/\)$/{
20194 s//\1/
20195 q
20196 }
20197 /^X\(\/\).*/{
20198 s//\1/
20199 q
20200 }
20201 s/.*/./; q'`
20202 else
20203 continue
20204 fi
20205 # Extract the definition of DEPDIR, am__include, and am__quote
20206 # from the Makefile without running 'make'.
20207 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20208 test -z "$DEPDIR" && continue
20209 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20210 test -z "$am__include" && continue
20211 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20212 # Find all dependency output files, they are included files with
20213 # $(DEPDIR) in their names. We invoke sed twice because it is the
20214 # simplest approach to changing $(DEPDIR) to its actual value in the
20215 # expansion.
20216 for file in `sed -n "
20217 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20219 # Make sure the directory exists.
20220 test -f "$dirpart/$file" && continue
20221 fdir=`$as_dirname -- "$file" ||
20222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20223 X"$file" : 'X\(//\)[^/]' \| \
20224 X"$file" : 'X\(//\)$' \| \
20225 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20226 $as_echo X"$file" |
20227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20228 s//\1/
20229 q
20230 }
20231 /^X\(\/\/\)[^/].*/{
20232 s//\1/
20233 q
20234 }
20235 /^X\(\/\/\)$/{
20236 s//\1/
20237 q
20238 }
20239 /^X\(\/\).*/{
20240 s//\1/
20241 q
20242 }
20243 s/.*/./; q'`
20244 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20245 # echo "creating $dirpart/$file"
20246 echo '# dummy' > "$dirpart/$file"
20247 done
20248 done
20249 }
20250 ;;
20251 "libtool":C)
20252
20253 # See if we are running on zsh, and set the options that allow our
20254 # commands through without removal of \ escapes.
20255 if test -n "${ZSH_VERSION+set}"; then
20256 setopt NO_GLOB_SUBST
20257 fi
20258
20259 cfgfile=${ofile}T
20260 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20261 $RM "$cfgfile"
20262
20263 cat <<_LT_EOF >> "$cfgfile"
20264 #! $SHELL
20265 # Generated automatically by $as_me ($PACKAGE) $VERSION
20266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20267 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20268
20269 # Provide generalized library-building support services.
20270 # Written by Gordon Matzigkeit, 1996
20271
20272 # Copyright (C) 2014 Free Software Foundation, Inc.
20273 # This is free software; see the source for copying conditions. There is NO
20274 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20275
20276 # GNU Libtool is free software; you can redistribute it and/or modify
20277 # it under the terms of the GNU General Public License as published by
20278 # the Free Software Foundation; either version 2 of of the License, or
20279 # (at your option) any later version.
20280 #
20281 # As a special exception to the GNU General Public License, if you
20282 # distribute this file as part of a program or library that is built
20283 # using GNU Libtool, you may include this file under the same
20284 # distribution terms that you use for the rest of that program.
20285 #
20286 # GNU Libtool is distributed in the hope that it will be useful, but
20287 # WITHOUT ANY WARRANTY; without even the implied warranty of
20288 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20289 # GNU General Public License for more details.
20290 #
20291 # You should have received a copy of the GNU General Public License
20292 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20293
20294
20295 # The names of the tagged configurations supported by this script.
20296 available_tags=''
20297
20298 # Configured defaults for sys_lib_dlsearch_path munging.
20299 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20300
20301 # ### BEGIN LIBTOOL CONFIG
20302
20303 # Which release of libtool.m4 was used?
20304 macro_version=$macro_version
20305 macro_revision=$macro_revision
20306
20307 # Whether or not to build shared libraries.
20308 build_libtool_libs=$enable_shared
20309
20310 # Whether or not to build static libraries.
20311 build_old_libs=$enable_static
20312
20313 # What type of objects to build.
20314 pic_mode=$pic_mode
20315
20316 # Whether or not to optimize for fast installation.
20317 fast_install=$enable_fast_install
20318
20319 # Shared archive member basename,for filename based shared library versioning on AIX.
20320 shared_archive_member_spec=$shared_archive_member_spec
20321
20322 # Shell to use when invoking shell scripts.
20323 SHELL=$lt_SHELL
20324
20325 # An echo program that protects backslashes.
20326 ECHO=$lt_ECHO
20327
20328 # The PATH separator for the build system.
20329 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20330
20331 # The host system.
20332 host_alias=$host_alias
20333 host=$host
20334 host_os=$host_os
20335
20336 # The build system.
20337 build_alias=$build_alias
20338 build=$build
20339 build_os=$build_os
20340
20341 # A sed program that does not truncate output.
20342 SED=$lt_SED
20343
20344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20345 Xsed="\$SED -e 1s/^X//"
20346
20347 # A grep program that handles long lines.
20348 GREP=$lt_GREP
20349
20350 # An ERE matcher.
20351 EGREP=$lt_EGREP
20352
20353 # A literal string matcher.
20354 FGREP=$lt_FGREP
20355
20356 # A BSD- or MS-compatible name lister.
20357 NM=$lt_NM
20358
20359 # Whether we need soft or hard links.
20360 LN_S=$lt_LN_S
20361
20362 # What is the maximum length of a command?
20363 max_cmd_len=$max_cmd_len
20364
20365 # Object file suffix (normally "o").
20366 objext=$ac_objext
20367
20368 # Executable file suffix (normally "").
20369 exeext=$exeext
20370
20371 # whether the shell understands "unset".
20372 lt_unset=$lt_unset
20373
20374 # turn spaces into newlines.
20375 SP2NL=$lt_lt_SP2NL
20376
20377 # turn newlines into spaces.
20378 NL2SP=$lt_lt_NL2SP
20379
20380 # convert \$build file names to \$host format.
20381 to_host_file_cmd=$lt_cv_to_host_file_cmd
20382
20383 # convert \$build files to toolchain format.
20384 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20385
20386 # An object symbol dumper.
20387 OBJDUMP=$lt_OBJDUMP
20388
20389 # Method to check whether dependent libraries are shared objects.
20390 deplibs_check_method=$lt_deplibs_check_method
20391
20392 # Command to use when deplibs_check_method = "file_magic".
20393 file_magic_cmd=$lt_file_magic_cmd
20394
20395 # How to find potential files when deplibs_check_method = "file_magic".
20396 file_magic_glob=$lt_file_magic_glob
20397
20398 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20399 want_nocaseglob=$lt_want_nocaseglob
20400
20401 # DLL creation program.
20402 DLLTOOL=$lt_DLLTOOL
20403
20404 # Command to associate shared and link libraries.
20405 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20406
20407 # The archiver.
20408 AR=$lt_AR
20409
20410 # Flags to create an archive.
20411 AR_FLAGS=$lt_AR_FLAGS
20412
20413 # How to feed a file listing to the archiver.
20414 archiver_list_spec=$lt_archiver_list_spec
20415
20416 # A symbol stripping program.
20417 STRIP=$lt_STRIP
20418
20419 # Commands used to install an old-style archive.
20420 RANLIB=$lt_RANLIB
20421 old_postinstall_cmds=$lt_old_postinstall_cmds
20422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20423
20424 # Whether to use a lock for old archive extraction.
20425 lock_old_archive_extraction=$lock_old_archive_extraction
20426
20427 # A C compiler.
20428 LTCC=$lt_CC
20429
20430 # LTCC compiler flags.
20431 LTCFLAGS=$lt_CFLAGS
20432
20433 # Take the output of nm and produce a listing of raw symbols and C names.
20434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20435
20436 # Transform the output of nm in a proper C declaration.
20437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20438
20439 # Transform the output of nm into a list of symbols to manually relocate.
20440 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20441
20442 # Transform the output of nm in a C name address pair.
20443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20444
20445 # Transform the output of nm in a C name address pair when lib prefix is needed.
20446 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20447
20448 # The name lister interface.
20449 nm_interface=$lt_lt_cv_nm_interface
20450
20451 # Specify filename containing input files for \$NM.
20452 nm_file_list_spec=$lt_nm_file_list_spec
20453
20454 # The root where to search for dependent libraries,and where our libraries should be installed.
20455 lt_sysroot=$lt_sysroot
20456
20457 # Command to truncate a binary pipe.
20458 lt_truncate_bin=$lt_lt_cv_truncate_bin
20459
20460 # The name of the directory that contains temporary libtool files.
20461 objdir=$objdir
20462
20463 # Used to examine libraries when file_magic_cmd begins with "file".
20464 MAGIC_CMD=$MAGIC_CMD
20465
20466 # Must we lock files when doing compilation?
20467 need_locks=$lt_need_locks
20468
20469 # Manifest tool.
20470 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20471
20472 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20473 DSYMUTIL=$lt_DSYMUTIL
20474
20475 # Tool to change global to local symbols on Mac OS X.
20476 NMEDIT=$lt_NMEDIT
20477
20478 # Tool to manipulate fat objects and archives on Mac OS X.
20479 LIPO=$lt_LIPO
20480
20481 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20482 OTOOL=$lt_OTOOL
20483
20484 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20485 OTOOL64=$lt_OTOOL64
20486
20487 # Old archive suffix (normally "a").
20488 libext=$libext
20489
20490 # Shared library suffix (normally ".so").
20491 shrext_cmds=$lt_shrext_cmds
20492
20493 # The commands to extract the exported symbol list from a shared archive.
20494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20495
20496 # Variables whose values should be saved in libtool wrapper scripts and
20497 # restored at link time.
20498 variables_saved_for_relink=$lt_variables_saved_for_relink
20499
20500 # Do we need the "lib" prefix for modules?
20501 need_lib_prefix=$need_lib_prefix
20502
20503 # Do we need a version for libraries?
20504 need_version=$need_version
20505
20506 # Library versioning type.
20507 version_type=$version_type
20508
20509 # Shared library runtime path variable.
20510 runpath_var=$runpath_var
20511
20512 # Shared library path variable.
20513 shlibpath_var=$shlibpath_var
20514
20515 # Is shlibpath searched before the hard-coded library search path?
20516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20517
20518 # Format of library name prefix.
20519 libname_spec=$lt_libname_spec
20520
20521 # List of archive names. First name is the real one, the rest are links.
20522 # The last name is the one that the linker finds with -lNAME
20523 library_names_spec=$lt_library_names_spec
20524
20525 # The coded name of the library, if different from the real name.
20526 soname_spec=$lt_soname_spec
20527
20528 # Permission mode override for installation of shared libraries.
20529 install_override_mode=$lt_install_override_mode
20530
20531 # Command to use after installation of a shared archive.
20532 postinstall_cmds=$lt_postinstall_cmds
20533
20534 # Command to use after uninstallation of a shared archive.
20535 postuninstall_cmds=$lt_postuninstall_cmds
20536
20537 # Commands used to finish a libtool library installation in a directory.
20538 finish_cmds=$lt_finish_cmds
20539
20540 # As "finish_cmds", except a single script fragment to be evaled but
20541 # not shown.
20542 finish_eval=$lt_finish_eval
20543
20544 # Whether we should hardcode library paths into libraries.
20545 hardcode_into_libs=$hardcode_into_libs
20546
20547 # Compile-time system search path for libraries.
20548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20549
20550 # Detected run-time system search path for libraries.
20551 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20552
20553 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20554 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20555
20556 # Whether dlopen is supported.
20557 dlopen_support=$enable_dlopen
20558
20559 # Whether dlopen of programs is supported.
20560 dlopen_self=$enable_dlopen_self
20561
20562 # Whether dlopen of statically linked programs is supported.
20563 dlopen_self_static=$enable_dlopen_self_static
20564
20565 # Commands to strip libraries.
20566 old_striplib=$lt_old_striplib
20567 striplib=$lt_striplib
20568
20569
20570 # The linker used to build libraries.
20571 LD=$lt_LD
20572
20573 # How to create reloadable object files.
20574 reload_flag=$lt_reload_flag
20575 reload_cmds=$lt_reload_cmds
20576
20577 # Commands used to build an old-style archive.
20578 old_archive_cmds=$lt_old_archive_cmds
20579
20580 # A language specific compiler.
20581 CC=$lt_compiler
20582
20583 # Is the compiler the GNU compiler?
20584 with_gcc=$GCC
20585
20586 # Compiler flag to turn off builtin functions.
20587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20588
20589 # Additional compiler flags for building library objects.
20590 pic_flag=$lt_lt_prog_compiler_pic
20591
20592 # How to pass a linker flag through the compiler.
20593 wl=$lt_lt_prog_compiler_wl
20594
20595 # Compiler flag to prevent dynamic linking.
20596 link_static_flag=$lt_lt_prog_compiler_static
20597
20598 # Does compiler simultaneously support -c and -o options?
20599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20600
20601 # Whether or not to add -lc for building shared libraries.
20602 build_libtool_need_lc=$archive_cmds_need_lc
20603
20604 # Whether or not to disallow shared libs when runtime libs are static.
20605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20606
20607 # Compiler flag to allow reflexive dlopens.
20608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20609
20610 # Compiler flag to generate shared objects directly from archives.
20611 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20612
20613 # Whether the compiler copes with passing no objects directly.
20614 compiler_needs_object=$lt_compiler_needs_object
20615
20616 # Create an old-style archive from a shared archive.
20617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20618
20619 # Create a temporary old-style archive to link instead of a shared archive.
20620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20621
20622 # Commands used to build a shared archive.
20623 archive_cmds=$lt_archive_cmds
20624 archive_expsym_cmds=$lt_archive_expsym_cmds
20625
20626 # Commands used to build a loadable module if different from building
20627 # a shared archive.
20628 module_cmds=$lt_module_cmds
20629 module_expsym_cmds=$lt_module_expsym_cmds
20630
20631 # Whether we are building with GNU ld or not.
20632 with_gnu_ld=$lt_with_gnu_ld
20633
20634 # Flag that allows shared libraries with undefined symbols to be built.
20635 allow_undefined_flag=$lt_allow_undefined_flag
20636
20637 # Flag that enforces no undefined symbols.
20638 no_undefined_flag=$lt_no_undefined_flag
20639
20640 # Flag to hardcode \$libdir into a binary during linking.
20641 # This must work even if \$libdir does not exist
20642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20643
20644 # Whether we need a single "-rpath" flag with a separated argument.
20645 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20646
20647 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20648 # DIR into the resulting binary.
20649 hardcode_direct=$hardcode_direct
20650
20651 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20652 # DIR into the resulting binary and the resulting library dependency is
20653 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20654 # library is relocated.
20655 hardcode_direct_absolute=$hardcode_direct_absolute
20656
20657 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20658 # into the resulting binary.
20659 hardcode_minus_L=$hardcode_minus_L
20660
20661 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20662 # into the resulting binary.
20663 hardcode_shlibpath_var=$hardcode_shlibpath_var
20664
20665 # Set to "yes" if building a shared library automatically hardcodes DIR
20666 # into the library and all subsequent libraries and executables linked
20667 # against it.
20668 hardcode_automatic=$hardcode_automatic
20669
20670 # Set to yes if linker adds runtime paths of dependent libraries
20671 # to runtime path list.
20672 inherit_rpath=$inherit_rpath
20673
20674 # Whether libtool must link a program against all its dependency libraries.
20675 link_all_deplibs=$link_all_deplibs
20676
20677 # Set to "yes" if exported symbols are required.
20678 always_export_symbols=$always_export_symbols
20679
20680 # The commands to list exported symbols.
20681 export_symbols_cmds=$lt_export_symbols_cmds
20682
20683 # Symbols that should not be listed in the preloaded symbols.
20684 exclude_expsyms=$lt_exclude_expsyms
20685
20686 # Symbols that must always be exported.
20687 include_expsyms=$lt_include_expsyms
20688
20689 # Commands necessary for linking programs (against libraries) with templates.
20690 prelink_cmds=$lt_prelink_cmds
20691
20692 # Commands necessary for finishing linking programs.
20693 postlink_cmds=$lt_postlink_cmds
20694
20695 # Specify filename containing input files.
20696 file_list_spec=$lt_file_list_spec
20697
20698 # How to hardcode a shared library path into an executable.
20699 hardcode_action=$hardcode_action
20700
20701 # ### END LIBTOOL CONFIG
20702
20703 _LT_EOF
20704
20705 cat <<'_LT_EOF' >> "$cfgfile"
20706
20707 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20708
20709 # func_munge_path_list VARIABLE PATH
20710 # -----------------------------------
20711 # VARIABLE is name of variable containing _space_ separated list of
20712 # directories to be munged by the contents of PATH, which is string
20713 # having a format:
20714 # "DIR[:DIR]:"
20715 # string "DIR[ DIR]" will be prepended to VARIABLE
20716 # ":DIR[:DIR]"
20717 # string "DIR[ DIR]" will be appended to VARIABLE
20718 # "DIRP[:DIRP]::[DIRA:]DIRA"
20719 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20720 # "DIRA[ DIRA]" will be appended to VARIABLE
20721 # "DIR[:DIR]"
20722 # VARIABLE will be replaced by "DIR[ DIR]"
20723 func_munge_path_list ()
20724 {
20725 case x$2 in
20726 x)
20727 ;;
20728 *:)
20729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20730 ;;
20731 x:*)
20732 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20733 ;;
20734 *::*)
20735 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20736 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20737 ;;
20738 *)
20739 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20740 ;;
20741 esac
20742 }
20743
20744
20745 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20746 func_cc_basename ()
20747 {
20748 for cc_temp in $*""; do
20749 case $cc_temp in
20750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20752 \-*) ;;
20753 *) break;;
20754 esac
20755 done
20756 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20757 }
20758
20759
20760 # ### END FUNCTIONS SHARED WITH CONFIGURE
20761
20762 _LT_EOF
20763
20764 case $host_os in
20765 aix3*)
20766 cat <<\_LT_EOF >> "$cfgfile"
20767 # AIX sometimes has problems with the GCC collect2 program. For some
20768 # reason, if we set the COLLECT_NAMES environment variable, the problems
20769 # vanish in a puff of smoke.
20770 if test set != "${COLLECT_NAMES+set}"; then
20771 COLLECT_NAMES=
20772 export COLLECT_NAMES
20773 fi
20774 _LT_EOF
20775 ;;
20776 esac
20777
20778
20779 ltmain=$ac_aux_dir/ltmain.sh
20780
20781
20782 # We use sed instead of cat because bash on DJGPP gets confused if
20783 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20784 # text mode, it properly converts lines to CR/LF. This bash problem
20785 # is reportedly fixed, but why not run on old versions too?
20786 sed '$q' "$ltmain" >> "$cfgfile" \
20787 || (rm -f "$cfgfile"; exit 1)
20788
20789 mv -f "$cfgfile" "$ofile" ||
20790 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20791 chmod +x "$ofile"
20792
20793 ;;
20794
20795 esac
20796 done # for ac_tag
20797
20798
20799 as_fn_exit 0
20800 _ACEOF
20801 ac_clean_files=$ac_clean_files_save
20802
20803 test $ac_write_fail = 0 ||
20804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20805
20806
20807 # configure is writing to config.log, and then calls config.status.
20808 # config.status does its own redirection, appending to config.log.
20809 # Unfortunately, on DOS this fails, as config.log is still kept open
20810 # by configure, so config.status won't be able to write to it; its
20811 # output is simply discarded. So we exec the FD to /dev/null,
20812 # effectively closing config.log, so it can be properly (re)opened and
20813 # appended to by config.status. When coming back to configure, we
20814 # need to make the FD available again.
20815 if test "$no_create" != yes; then
20816 ac_cs_success=:
20817 ac_config_status_args=
20818 test "$silent" = yes &&
20819 ac_config_status_args="$ac_config_status_args --quiet"
20820 exec 5>/dev/null
20821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20822 exec 5>>config.log
20823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20824 # would make configure fail if this is the last instruction.
20825 $ac_cs_success || as_fn_exit 1
20826 fi
20827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20830 fi
20831
20832